/* Clerion marketing site — the shared stylesheet for the landing, security, about
   and how-it-works pages. The legal pages (privacy, terms, accessibility, sms) keep
   their own inline styles.

   Ported from the Claude Design handoff in docs/design/design_handoff_marketing_site/;
   where the port departs from it is recorded in that folder's DECISIONS.md. */

:root {
  --bg: #fcfcfd;
  --surface: #ffffff;
  --surface-muted: #f8f9fb;
  --ink: #0f1115;
  --ink-2: #3d424b;
  --muted: #6b7079;
  /* The design's #9aa0a8 and #a86a10 fall short of WCAG AA on --bg (2.6:1, 4.3:1).
     These are the nearest greys and amber that pass: 4.5:1 for small text, 3:1 for
     the 40px+ two-tone headings. */
  --subtle: #6e747c;
  --subtle-large: #8b9199;
  --dot: #c4c8cf;
  --accent: #4a6fa5;
  --accent-ink: #30486b;
  --success: #2f7a55;
  --amber: #a0640f;
  --hairline: rgba(15, 17, 21, 0.07);
  --hairline-soft: rgba(15, 17, 21, 0.06);
  --hairline-strong: rgba(15, 17, 21, 0.08);
  --col: min(1088px, calc(100% - 48px));
  --rise: 24px;
  --section: 144px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  /* Not system-ui: the Google Fonts subset of Inter has no "→", and the design draws
     that arrow from the generic sans-serif. */
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; }
[id] { scroll-margin-top: 24px; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 10;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }
.skip-link:hover { color: #fff; }

.col { width: var(--col); margin-inline: auto; }
.section { padding-top: var(--section); }
.section-body { display: grid; gap: 40px; }
.tnum { font-variant-numeric: tabular-nums; }

@keyframes rise { from { opacity: 0; transform: translateY(var(--rise)); } to { opacity: 1; transform: none; } }
@keyframes tilt { from { opacity: 0; transform: rotateX(28deg) translateY(80px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes flow { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav { height: 72px; border-bottom: 1px solid var(--hairline-soft); }
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 24px; height: 24px; }
.brand span { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; font-size: 13.5px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 500; }
.nav-actions { position: relative; display: flex; gap: 8px; align-items: center; }
.nav-contact { font-size: 13px; color: var(--ink); padding: 7px 12px; }
.contact-pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 10;
  display: flex; align-items: center; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 17, 21, 0.08);
  padding: 10px 10px 10px 14px; font-size: 13px; color: var(--muted);
}
.contact-pop[hidden] { display: none; }
.nav-cta {
  font-size: 13px; font-weight: 500; background: var(--ink); color: #fff;
  padding: 7px 14px; border-radius: 8px;
}
.nav-cta:hover { color: #fff; }

/* ── Headings ─────────────────────────────────────────────────────────────── */
.h1 { font-size: 60px; font-weight: 600; line-height: 1.04; letter-spacing: -0.045em; }
.h1 .soft, .soft { color: var(--subtle-large); }
.h2 { font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.measure { max-width: 620px; }
.eyebrow { font-size: 13.5px; color: var(--muted); }
.lede { font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.section-head { display: grid; gap: 14px; }
.section-head p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 620px; }
.head-row {
  display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
}
.head-link { font-size: 13.5px; font-weight: 500; color: var(--ink); }

/* Page hero for the inner pages: eyebrow, two-tone H1, one line of lede. */
.page-hero { padding-top: 120px; display: grid; gap: 28px; }

/* ── Hairline panels ──────────────────────────────────────────────────────── */
/* Cells draw their own right and bottom rules; the panel's overflow clips the
   outer ones, so the dividers stay correct however the auto-fit grid wraps. */
.panel {
  border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface);
  overflow: hidden; display: grid;
}
.panel > * { box-shadow: 1px 0 0 var(--hairline), 0 1px 0 var(--hairline); }

/* ── Badge strip ──────────────────────────────────────────────────────────── */
.badges { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.badge { display: flex; align-items: center; gap: 14px; padding: 22px 24px; }
.badge-seal { height: 52px; width: auto; }
.badge-text { display: grid; gap: 2px; }
.badge-title { font-size: 13.5px; font-weight: 500; }
.badge-sub { font-size: 12.5px; color: var(--muted); }
.badge-logo { display: grid; gap: 8px; align-content: center; }
.badge-logo img { height: 22px; width: auto; justify-self: start; }
.badge-plain { display: grid; gap: 2px; align-content: center; }

/* ── Status pills ─────────────────────────────────────────────────────────── */
.pill {
  justify-self: start; font-size: 12px; font-weight: 500; border-radius: 999px; padding: 3px 9px;
}
.pill-done { color: var(--success); background: rgba(47, 122, 85, 0.08); }
.pill-request { color: var(--accent-ink); background: rgba(74, 111, 165, 0.08); }

/* ── Closing CTA ──────────────────────────────────────────────────────────── */
.cta {
  padding: 176px 0 144px;
  display: grid; gap: 24px; justify-items: center; text-align: center;
}
.cta-title { font-size: 52px; font-weight: 600; line-height: 1.06; letter-spacing: -0.045em; }
.cta-sub { font-size: 17px; color: var(--muted); }
.cta-sub-narrow { max-width: 520px; }
.cta-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.btn { font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 8px; }
.btn-primary, .btn-primary:hover { background: var(--ink); color: #fff; }
.btn-secondary, .btn-secondary:hover {
  background: var(--surface); color: var(--ink); border: 1px solid rgba(15, 17, 21, 0.1);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hairline-soft); }
.footer-inner {
  padding: 28px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--subtle);
}
.footer-mark { display: flex; align-items: center; gap: 8px; }
.footer-mark img { width: 18px; height: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--subtle); }
.footer-links a:hover { color: var(--ink); }

/* ── Landing ──────────────────────────────────────────────────────────────── */
.hero { padding-top: 120px; display: grid; gap: 40px; }
.hero .h1 span { display: block; animation: rise 0.9s ease-out 0.1s both; }
.hero .h1 span + span { animation-delay: 0.3s; }
.hero-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 32px; flex-wrap: wrap;
  animation: rise 0.9s ease-out 0.5s both;
}
.hero-sub { font-size: 17px; line-height: 1.55; color: var(--muted); }
.hero-link { display: flex; gap: 8px; font-size: 15px; white-space: nowrap; }
.hero-link > span:first-child { color: var(--ink); font-weight: 500; }
.hero-link > span + span { color: var(--muted); }
.hero-link:hover > span { color: var(--accent); }

.stage {
  position: relative; overflow: hidden;
  padding: 64px max(24px, calc((100% - 1136px) / 2)) 96px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(to bottom, #fcfcfd 0%, #eef0f4 55%, #e3e7ee 100%);
  perspective: 2200px;
}
.stage-floor {
  position: absolute; left: 16%; right: 16%; bottom: 48px; height: 60px; border-radius: 50%;
  background: rgba(15, 17, 21, 0.16); filter: blur(28px); pointer-events: none;
}
.stage-frame {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 2768 / 1370;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline-soft), 0 30px 70px rgba(15, 17, 21, 0.10);
  transform-origin: 50% 100%;
  animation: tilt 1.4s cubic-bezier(.2, .7, .2, 1) 0.8s both;
}
/* Crops the app's left icon rail and the half row at the bottom out of the shot. */
.stage-frame img { width: 104.05%; max-width: none; height: auto; margin-left: -4.05%; }

.badges-landing { padding-top: 48px; }
.badges-security { padding-top: 56px; }

.flow {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--hairline-soft);
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(74, 111, 165, 0.07) 0%, rgba(74, 111, 165, 0) 70%),
    linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 32px;
  min-height: 440px; padding: 48px 48px 48px 40px;
}
.chips {
  flex: 1 1 380px; max-width: 420px; margin-left: auto;
  display: flex; flex-wrap: wrap; align-content: center; justify-content: flex-end; gap: 8px;
}
.chip {
  display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 8px 14px 8px 10px;
  font-size: 13.5px; color: var(--ink-2); white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 17, 21, 0.04), 0 8px 20px rgba(15, 17, 21, 0.06);
}
.chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot);
}
/* The chips rise once, when the panel scrolls into view (html.js is set in <head>,
   so without JavaScript they are simply shown). */
.js .chips .chip { animation: rise 0.6s ease-out both; animation-play-state: paused; }
.js .chips.in-view .chip { animation-play-state: running; }

.flow-arrow { flex: 0 0 96px; margin: 0 12px; }
.flow-track { position: relative; height: 2px; }
.flow-line {
  position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(90deg, rgba(74, 111, 165, 0) 0%, rgba(74, 111, 165, 0.5) 100%);
}
.flow-dot {
  position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.15);
  animation: flow 2.4s cubic-bezier(.6, 0, .4, 1) infinite;
}
.flow-head {
  position: absolute; right: -2px; top: -5px; width: 12px; height: 12px; border-radius: 1px;
  border-top: 2px solid rgba(74, 111, 165, 0.6); border-right: 2px solid rgba(74, 111, 165, 0.6);
  transform: rotate(45deg);
}

.answer {
  flex: 1 1 300px; background: var(--surface); border-radius: 16px; padding: 28px;
  display: grid; gap: 18px;
  box-shadow: 0 0 0 1px var(--hairline-soft), 0 2px 4px rgba(15, 17, 21, 0.03), 0 24px 60px rgba(15, 17, 21, 0.10);
}
.answer-head { display: flex; align-items: center; justify-content: space-between; }
.answer-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.answer-brand img { width: 20px; height: 20px; }
.answer-tag { font-size: 12px; color: var(--subtle); }
.answer-q { font-size: 23px; font-weight: 600; line-height: 1.28; letter-spacing: -0.025em; }
.answer-a {
  border-top: 1px solid var(--hairline-soft); padding-top: 16px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}
.answer-a strong { font-weight: 600; color: var(--ink); }

.night {
  border-radius: 20px; border: 1px solid var(--hairline-soft); background: var(--surface);
  overflow: hidden; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
.night-col {
  padding: 32px 40px; display: grid; align-content: start;
  box-shadow: 1px 0 0 var(--hairline-soft), 0 1px 0 var(--hairline-soft);
}
.night-label { font-size: 13px; font-weight: 500; color: var(--subtle); padding-bottom: 14px; }
.night-label.is-clerion { color: var(--accent); }
.night-row {
  display: flex; gap: 24px; padding: 13px 0; border-top: 1px solid var(--hairline-soft);
  font-size: 15px; color: var(--subtle);
}
.night-time { width: 40px; font-variant-numeric: tabular-nums; }
.night-row > span + span { color: var(--muted); }
.night-row.is-last, .night-row.is-last > span { color: var(--ink); }
.night-verdict {
  border-top: 1px solid var(--hairline-soft); padding-top: 24px;
  font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; color: var(--ink);
}

.groups { display: grid; gap: 32px; }
.groups-head { display: grid; gap: 12px; }
.groups-sub { font-size: 16px; color: var(--muted); }
.groups-body { display: grid; gap: 18px; }
.groups-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.group-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 999px;
  padding: 10px 16px 10px 12px; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 17, 21, 0.04), 0 8px 20px rgba(15, 17, 21, 0.06);
  transition: background .2s, border-color .2s, color .2s;
}
.group-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.group-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
/* min-height holds the line's height while it swaps text, so nothing below jumps. */
.groups-caption { min-height: 26px; font-size: 16px; line-height: 1.6; color: var(--subtle); transition: color .2s; }
.groups-caption.is-active { color: var(--ink); }

.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { padding: 32px; display: grid; gap: 8px; align-content: start; }
.step-num { font-size: 12.5px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.step-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.step-body { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fact { padding: 28px; display: grid; gap: 6px; align-content: start; }
.fact-title { font-size: 15px; font-weight: 600; }
.fact-body { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ── Security ─────────────────────────────────────────────────────────────── */
.cant { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cant > div { padding: 36px; display: grid; gap: 10px; align-content: start; }
.cant-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.cant-body { font-size: 15px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.cert {
  border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); padding: 36px;
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; align-items: start;
}
.cert > img { width: 96px; height: auto; }
.cert-body { display: grid; gap: 10px; }
.cert-title { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.cert-text { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.cert-link { font-size: 14px; font-weight: 500; margin-top: 4px; }

.docs { border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); overflow: hidden; }
.doc {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 150px 120px;
  gap: 24px; align-items: center; padding: 20px 28px;
}
.doc + .doc { border-top: 1px solid var(--hairline-soft); }
.doc-name { font-size: 15px; font-weight: 600; }
.doc-desc { font-size: 14px; line-height: 1.55; color: var(--muted); }
.doc-link { font-size: 14px; font-weight: 500; justify-self: end; }

/* The address an email link spells out when clicked (see site.js). */
.req-note { grid-column: 1 / -1; flex-basis: 100%; font-size: 13px; line-height: 1.5; color: var(--muted); }
.req-note strong, .contact-pop strong { color: var(--ink); font-weight: 600; }
.note-copy {
  font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid rgba(15, 17, 21, 0.12); border-radius: 6px;
  padding: 2px 10px; margin-left: 10px;
}
.note-copy:hover { border-color: rgba(15, 17, 21, 0.24); }

.controls { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.control { padding: 28px; display: grid; gap: 8px; align-content: start; }
.control-title { font-size: 15.5px; font-weight: 600; }
.control-body { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ── About ────────────────────────────────────────────────────────────────── */
.page-about { --rise: 16px; }
.about-hero { padding-top: 120px; display: grid; gap: 40px; }
.about-hero .h1 { animation: rise 0.8s ease-out both; }
.about-intro {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 64px;
  animation: rise 0.8s ease-out 0.15s both;
}
.about-intro p { font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.about-intro p:first-child { color: var(--ink-2); }

.founders { border-top: 1px solid var(--hairline-strong); }
.founder {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 64px;
  padding: 48px 0; border-bottom: 1px solid var(--hairline-strong);
}
.founder-id { display: flex; gap: 24px; align-items: flex-start; }
.founder-photo {
  flex: 0 0 auto; width: 112px; height: 112px; border-radius: 10px; overflow: hidden; background: #eef0f4;
  box-shadow: 0 0 0 1px var(--hairline-soft), 0 12px 28px rgba(15, 17, 21, 0.08);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-meta { display: grid; gap: 4px; padding-top: 4px; }
.founder-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.founder-role { font-size: 13.5px; color: var(--muted); }
.founder-tag { font-size: 13px; color: var(--subtle); margin-top: 8px; }
.founder-bio { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; max-width: 560px; }
.founder-bio strong { color: var(--ink); font-weight: 600; }

.mission { display: grid; gap: 32px; padding: 88px 0 96px; border-bottom: 1px solid var(--hairline-strong); }
.mission blockquote p {
  font-size: 44px; font-weight: 600; line-height: 1.12; letter-spacing: -0.04em; max-width: 900px; text-wrap: balance;
}
.mission figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.mission-faces { display: flex; }
.mission-faces img {
  width: 28px; height: 28px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 2px var(--bg);
}
.mission-faces img + img { margin-left: -6px; }

/* ── How it works ─────────────────────────────────────────────────────────── */
.how-hero .lede { max-width: 560px; }
.how-steps { padding-top: 120px; display: grid; gap: 16px; }
.how-step {
  border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.how-text { padding: 48px; display: grid; gap: 14px; align-content: center; }
.how-label { font-size: 12.5px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.how-title { font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.how-body { font-size: 15.5px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.how-demo { background: var(--surface-muted); padding: 48px; display: grid; align-content: center; }
.how-demo.is-sources { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; justify-content: center; }
.source {
  border: 1px solid rgba(15, 17, 21, 0.09); border-radius: 8px; padding: 9px 14px;
  font-size: 14px; color: var(--ink-2); background: var(--surface);
}
.card {
  background: var(--surface); border-radius: 10px; padding: 24px;
  box-shadow: 0 0 0 1px var(--hairline-soft), 0 12px 32px rgba(15, 17, 21, 0.06);
}
.card-meta { font-size: 12.5px; color: var(--subtle); }
.card-title { font-size: 16px; font-weight: 600; }

.resolve { display: grid; gap: 4px; }
.resolve .card-title { margin-bottom: 10px; }
.resolve-row {
  display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--hairline-soft);
  font-size: 14px; color: var(--muted);
}
.resolve-row.is-old { color: var(--subtle); }
.resolve-row.is-final { color: var(--ink); font-weight: 600; }
.resolve-row.is-final span + span { color: var(--accent); }

.math { display: grid; gap: 16px; }
.math-head { display: grid; gap: 2px; }
.math-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.math-stats div { display: grid; gap: 2px; }
.math-value { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.math-label { font-size: 11.5px; color: var(--subtle); letter-spacing: 0.04em; text-transform: uppercase; }

.next { display: grid; gap: 4px; }
.next-label { font-size: 11.5px; font-weight: 600; color: var(--amber); letter-spacing: 0.04em; text-transform: uppercase; }
.next .card-meta { margin-bottom: 12px; }
.next-why {
  border-top: 1px solid var(--hairline-soft); padding-top: 14px;
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
}

/* ── Waitlist ─────────────────────────────────────────────────────────────── */
/* The page chrome is static in waitlist.html; React (src/waitlist/) renders the card's
   form and its success state. */
.page-waitlist { --rise: 16px; display: flex; flex-direction: column; }
.wl-stage {
  flex: 1; position: relative; overflow: hidden; padding: 96px 0 64px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(to bottom, #fcfcfd 0%, #fcfcfd 45%, #eef0f4 80%, #e3e7ee 100%);
}
.wl-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px 80px; align-items: start;
}
.wl-intro { display: grid; gap: 28px; animation: rise 0.8s ease-out both; }
.wl-title { font-size: 56px; font-weight: 600; line-height: 1.04; letter-spacing: -0.045em; }
.wl-lede { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 440px; text-wrap: pretty; }
.wl-points { display: grid; max-width: 440px; border-top: 1px solid var(--hairline); }
.wl-points li {
  display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hairline);
  font-size: 15px; color: var(--ink-2);
}
.wl-points li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  margin-top: 9px; flex: 0 0 auto;
}

.wl-card {
  background: var(--surface); border-radius: 16px; padding: 32px; display: grid; gap: 20px;
  box-shadow: 0 0 0 1px var(--hairline-soft), 0 2px 4px rgba(15, 17, 21, 0.03), 0 24px 60px rgba(15, 17, 21, 0.10);
  animation: rise 0.8s ease-out 0.15s both;
}
.wl-staff { border-top: 1px solid var(--hairline); padding-top: 16px; font-size: 13.5px; color: var(--muted); }
.wl-staff a { font-weight: 500; }
.wl-noscript { font-size: 14px; line-height: 1.55; color: var(--muted); }
.wl-noscript a { color: var(--ink); font-weight: 500; }

.wl-form { display: grid; gap: 20px; }
.wl-head { display: grid; gap: 4px; }
.wl-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.wl-head p { font-size: 14px; color: var(--muted); }
.wl-field { display: grid; gap: 8px; position: relative; }
.wl-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.wl-input {
  height: 46px; width: 100%; border-radius: 10px; border: 1px solid rgba(15, 17, 21, 0.12);
  padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); outline: none;
}
.wl-input::placeholder { color: var(--subtle); }
/* The design draws no focus state on the inputs; a keyboard user needs one. */
.wl-input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15); }
.wl-input[aria-invalid="true"] { border-color: #b42318; }
.wl-error { font-size: 12.5px; color: #b42318; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wl-menu {
  position: absolute; top: 78px; left: 0; right: 0; z-index: 5; display: grid; padding: 6px;
  background: var(--surface); border-radius: 10px;
  box-shadow: 0 0 0 1px var(--hairline-strong), 0 16px 40px rgba(15, 17, 21, 0.12);
}
.wl-opt {
  border-radius: 6px; padding: 10px; font-size: 14.5px; color: var(--ink); cursor: pointer;
}
.wl-opt.is-typed { color: var(--ink-2); }
.wl-opt:hover, .wl-opt.is-active { background: #f4f5f7; }

.wl-count {
  display: flex; gap: 12px; align-items: center; background: #f6f7f9; border-radius: 10px; padding: 12px 14px;
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
}
.wl-count::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto;
}
.wl-count.is-count::before { background: var(--success); }

.wl-submit {
  height: 48px; border-radius: 10px; border: 0; background: var(--ink-2); color: #fff;
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s;
}
.wl-submit.is-ready { background: var(--ink); }
.wl-submit:disabled { cursor: progress; }
.wl-fine { font-size: 12.5px; line-height: 1.55; color: var(--subtle); text-wrap: pretty; }
.wl-fine a { color: var(--muted); text-decoration: underline; }

.wl-done { display: grid; gap: 16px; padding: 8px 0; }
.wl-check {
  width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.wl-done h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.wl-done-text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.wl-share { border-top: 1px solid var(--hairline); padding-top: 16px; display: grid; gap: 10px; }
.wl-share h3 { font-size: 14px; font-weight: 500; }
.wl-share p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.wl-copy {
  justify-self: start; height: 40px; border-radius: 8px; border: 1px solid rgba(15, 17, 21, 0.1);
  background: var(--surface); padding: 0 14px; font: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink); cursor: pointer;
}

/* ── Narrow screens ───────────────────────────────────────────────────────── */
@media (max-width: 899px) {
  .doc { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .doc-desc { grid-column: 1 / -1; }
}

@media (max-width: 719px) {
  :root { --section: 96px; }
  .nav { height: auto; }
  .nav-inner { padding: 14px 0 12px; flex-wrap: wrap; row-gap: 10px; }
  /* Wraps rather than scrolls: a scroll box would clip the links' focus ring. */
  .nav-links { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 8px 20px; }
  .nav-contact { padding-inline: 8px; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 30px; }
  .hero, .page-hero, .about-hero { padding-top: 72px; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stage { padding-top: 40px; padding-bottom: 56px; }
  .stage-frame { border-radius: 10px; }
  .flow { padding: 28px 20px; min-height: 0; }
  .chips { flex-basis: 100%; max-width: none; margin-left: 0; justify-content: center; }
  .flow-arrow { flex: 1 0 100%; margin: 0; display: flex; justify-content: center; }
  .flow-track { width: 40px; transform: rotate(90deg); }
  .night-col { padding: 24px; }
  .step, .fact, .control { padding: 24px; }
  .cant > div, .cert { padding: 24px; }
  .cert { grid-template-columns: 64px minmax(0, 1fr); gap: 20px; }
  .cert > img { width: 64px; }
  .doc { padding: 18px 20px; }
  .mission { padding: 64px 0 72px; }
  .mission blockquote p { font-size: 30px; }
  .how-steps { padding-top: 72px; }
  .how-text, .how-demo { padding: 28px; }
  .how-title { font-size: 24px; }
  .cta { padding: 112px 0 96px; }
  .cta-title { font-size: 36px; }
  .wl-stage { padding: 56px 0 56px; }
  .wl-title { font-size: 40px; }
  .wl-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
}
