/* Brand values from docs/BRAND.md. System fonts only: the CSP allows
   nothing from anywhere but this site, and the page needs no web font. */
:root {
  color-scheme: light dark;
  --bg: #f8fafc;
  --text: #0b0f14;
  --muted: #475569;
  --accent: #4f46e5;
  --brand-1: #0891b2;
  --brand-3: #7c3aed;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --accent: #818cf8;
    --brand-1: #22d3ee;
    --brand-3: #c084fc;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main, footer {
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wordmark {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

/* The lockup splits by weight, not colour (BRAND.md), so it survives one ink. */
.wordmark .light { font-weight: 400; }
.wordmark .bold { font-weight: 800; }
.wordmark .tld {
  font-weight: 400;
  background: linear-gradient(90deg, var(--brand-1), var(--accent), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

.what { font-size: 1.05rem; line-height: 1.55; margin-top: 0.75rem; }
.what code { font-family: ui-monospace, Consolas, "JetBrains Mono", monospace; font-size: 0.95em; }
.status {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  margin-top: 4rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

a { color: var(--accent); }

/* The waitlist form (ADR 0033). No script; the browser validates the email. */
.join { margin-top: 2rem; }
.join label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.join .optional { margin-top: 0.9rem; font-weight: 400; font-size: 0.95rem; }
.join .optional span { color: var(--muted); }
.join-row { display: flex; gap: 0.5rem; }
.join input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--muted);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.join button {
  padding: 0.65rem 1.3rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--bg); /* contrast: 6.0:1 light, 6.4:1 dark (WCAG AA) */
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.join button:hover { filter: brightness(1.1); }
.join input:focus-visible, .join button:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 2px;
}
/* ADR 0045: the eligibility declaration, a checkbox beside its wording. */
.join .declare {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 1rem;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
}
.join .declare input {
  width: auto;
  flex: none;
  margin: 0.2rem 0 0;
  accent-color: var(--accent);
}
.wordmark a { color: inherit; text-decoration: none; }
.note { color: var(--muted); font-size: 0.85rem; margin-top: 0.9rem; }

/* The honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The notice page. */
.prose { padding-top: 3rem; }
.prose h2 { font-size: 1.3rem; }
.prose li { margin-bottom: 0.3rem; }

/* The legal pages (terms, privacy, beta addendum): wider for their tables,
   which scroll inside their own box on a narrow screen. */
main.legal, main.legal + footer { max-width: 48rem; }
.wordmark.wordmark-small { font-size: 1.25rem; margin: 0 0 1.5rem; }
.wordmark-small a { color: inherit; text-decoration: none; }
.legal h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
.legal table { border-collapse: collapse; font-size: 0.9rem; min-width: 34rem; }
.legal th, .legal td {
  border: 1px solid var(--muted);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

a:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }

/* The product page (ADR 0047 §1). Longer than the old one-screen page, so it
   starts at the top instead of centring, and gets a bar with Sign in / up. */
body.home { justify-content: flex-start; }
.topbar {
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.topbar-brand { color: var(--text); text-decoration: none; font-size: 1.15rem; }
.topbar-brand .light { font-weight: 400; }
.topbar-brand .bold { font-weight: 800; }
.topbar-brand .tld {
  background: linear-gradient(90deg, var(--brand-1), var(--accent), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
}
.topbar nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; font-size: 0.95rem; }
.home main { padding-top: 2.5rem; }
.button-link {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--bg); /* the same pair as the form button: WCAG AA */
  font-weight: 600;
  text-decoration: none;
}
.button-link:hover { filter: brightness(1.1); }
.button-link:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.cta { display: flex; gap: 1.25rem; align-items: center; margin: 1.25rem 0 0.5rem; }
.cta .button-link { padding: 0.65rem 1.3rem; }
.home section { margin-top: 2.5rem; }
.home h2, .join h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.features { padding-left: 1.1rem; }
.features li, .steps li { margin-bottom: 0.6rem; }
.features code, .steps code, .home section p code {
  font-family: ui-monospace, Consolas, "JetBrains Mono", monospace;
  font-size: 0.92em;
}
.record {
  margin: 0.5rem 0 1rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--muted);
  border-radius: 0.5rem;
  font: 0.8rem/1.5 ui-monospace, Consolas, "JetBrains Mono", monospace;
}
.home .join { margin-top: 3rem; }
.headline {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.join button { white-space: nowrap; }
