/* Sonar identity site — the whole stylesheet.
 *
 * One file, no framework, no build step. Four pages that do one thing each do
 * not need a design system; they need to load instantly and be legible.
 */

:root {
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-faint: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --ground: #f6f8fb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #15803d;
  --green-soft: #ecfdf3;
  --red: #b42318;
  --red-soft: #fef3f2;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8edf5;
    --ink-muted: #a3aebc;
    --ink-faint: #7a8595;
    --line: #263040;
    --surface: #151b24;
    --ground: #0d1117;
    --blue: #5b8dee;
    --blue-dark: #7aa4f2;
    --green: #6ec48a;
    --green-soft: #12271a;
    --red: #f0836f;
    --red-soft: #2a1512;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

main {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px 32px;
  box-shadow:
    0 1px 2px rgb(15, 23, 42, 0.04),
    0 12px 32px -16px rgb(15, 23, 42, 0.18);
}

.brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
  text-wrap: balance;
}

p {
  color: var(--ink-muted);
  margin: 0 0 16px;
  font-size: 15px;
}

p.small {
  font-size: 13.5px;
  color: var(--ink-faint);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}

input[type='email'] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 9px;
}

input[type='email']:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  margin-top: 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.btn:hover {
  background: var(--blue-dark);
}

button[disabled] {
  opacity: 0.55;
  cursor: default;
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.note.ok {
  background: var(--green-soft);
  color: var(--green);
}

.note.error {
  background: var(--red-soft);
  color: var(--red);
}

.code {
  display: block;
  margin: 12px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 9px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }

  * {
    transition: none !important;
  }
}

footer {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
}

footer a {
  color: var(--ink-faint);
}

[hidden] {
  display: none !important;
}
