/* Retestify launch site. Tokens follow the product's design spec (design/ui-design-spec.md):
   quiet paper, ink text, one petrol accent, status colour only on status, graphite evidence table. */

:root {
  --canvas: #EDF1F2;
  --paper: #F7F9FA;
  --surface: #FFFFFF;
  --surface-2: #F5F8F9;
  --table: #1A2327;
  --table-2: #222D32;
  --table-ink: #E8EEF0;
  --table-ink-2: #AFC0C7;
  --table-line: #33434A;
  --ink: #0E1A1F;
  --ink-2: #33444C;
  --ink-3: #53636B;
  --edge: #6B7C84;
  --line: #D3DCDF;
  --accent: #0B5566;
  --accent-hover: #084655;
  --accent-ink: #FFFFFF;
  --accent-tint: #DDEDF1;
  --focus: #0B5566;
  --table-focus: #6CC6DB;
  --ok: #146C43;  --ok-tint: #E0F2E8;
  --fail: #B42318; --fail-tint: #FCE8E6;
  --limit: #8A4B00; --limit-tint: #FBEFD9;
  --ok-on-dark: #62D49C;
  --fail-on-dark: #FF9086;
  --limit-on-dark: #F1B85E;
  --shadow: 0 1px 2px rgba(14, 26, 31, .06), 0 12px 32px -12px rgba(14, 26, 31, .18);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0B1114; --paper: #0E1518; --surface: #121A1E; --surface-2: #0F171A;
    --table: #05080A; --table-2: #0C1215; --table-line: #26343A;
    --ink: #E6EDF0; --ink-2: #B5C3C9; --ink-3: #93A4AC;
    --edge: #7F939C; --line: #26343A;
    --accent: #6CC6DB; --accent-hover: #8AD4E5; --accent-ink: #03222A; --accent-tint: #0F3440;
    --focus: #6CC6DB;
    --ok: #62D49C; --ok-tint: #0F2E20;
    --fail: #FF9086; --fail-tint: #3A1512;
    --limit: #F1B85E; --limit-tint: #33240C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0B1114; --paper: #0E1518; --surface: #121A1E; --surface-2: #0F171A;
  --table: #05080A; --table-2: #0C1215; --table-line: #26343A;
  --ink: #E6EDF0; --ink-2: #B5C3C9; --ink-3: #93A4AC;
  --edge: #7F939C; --line: #26343A;
  --accent: #6CC6DB; --accent-hover: #8AD4E5; --accent-ink: #03222A; --accent-tint: #0F3440;
  --focus: #6CC6DB;
  --ok: #62D49C; --ok-tint: #0F2E20;
  --fail: #FF9086; --fail-tint: #3A1512;
  --limit: #F1B85E; --limit-tint: #33240C;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 750; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 720; }
h3, .h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .code-card :focus-visible { outline-color: var(--table-focus); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; color: var(--accent-ink); }

.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.fine { font-size: 14px; color: var(--ink-3); margin: 12px 0 0; }
.accent { color: var(--accent); }

/* Flag-driven visibility. Default (and any failure) is the waitlist. */
html[data-signup="closed"] .when-open { display: none !important; }
html[data-signup="open"] .when-closed { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: 650 16px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--edge); }
.btn-ghost:hover { color: var(--ink); background: var(--surface); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .7; cursor: progress; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -0.02em; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand img { border-radius: 7px; }
.brand-sm { font-size: 16px; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.header-inner > .btn { margin-left: auto; }
@media (min-width: 860px) { .nav { display: flex; } .header-inner > .btn { margin-left: 8px; } }

/* Hero */
.hero { padding: 48px 0 64px; background: radial-gradient(1200px 500px at 85% -10%, var(--accent-tint), transparent 60%), var(--paper); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 80px 0 96px; } .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--limit); box-shadow: 0 0 0 3px var(--limit-tint); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Example report card */
.report { margin: 0; background: var(--table); color: var(--table-ink); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.report-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.report-title { font-size: 14px; color: var(--table-ink-2); font-weight: 550; }
.tag { display: inline-flex; align-items: center; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; }
.tag-example { background: var(--limit-tint); color: var(--limit); border: 1px dashed currentColor; }
.report .tag-example, .section-dark .tag-example, .tag-on-dark { background: transparent; color: var(--limit-on-dark); }
.screens { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; align-items: start; }
.screen { min-width: 0; }
.screen-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--table-ink-2); margin-bottom: 8px; }
.pill { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill-ok { background: var(--ok-tint); color: var(--ok); }
.pill-fail { background: var(--fail-tint); color: var(--fail); }
.pill-limit { background: var(--limit-tint); color: var(--limit); }
.report .pill-ok, .section-dark .pill-ok { background: #0F2E20; color: var(--ok-on-dark); }
.report .pill-fail, .section-dark .pill-fail { background: #3A1512; color: var(--fail-on-dark); }

/* Page mocks (illustrations, aria-hidden) */
.mock { position: relative; background: #F4F7F8; border-radius: 10px; padding: 12px; overflow: hidden; color: #33444C; font-family: var(--font); }
.mock-desk { padding: 14px 18% 16px 14px; }
.mock-phone { display: flex; flex-direction: column; min-height: 230px; border: 5px solid #0C1215; border-radius: 18px; padding: 10px 10px 46px; }
.mock-phone > * { flex: 0 0 auto; }
.mock-lg { width: min(100%, 240px); min-height: 340px; margin: 0 auto; border-width: 7px; border-radius: 26px; padding: 14px 14px 56px; }
.m-nav { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; }
.m-nav i { display: block; height: 6px; width: 18%; background: #C7D2D6; border-radius: 3px; }
.m-nav i:first-child { width: 22%; background: #0B5566; height: 8px; }
.m-nav .m-burger { margin-left: auto; width: 14px; height: 10px; background: repeating-linear-gradient(#7C8C93 0 2px, transparent 2px 4px); border-radius: 0; }
.m-burger-on { outline: 2px solid #0B5566; outline-offset: 3px; }
.m-h { height: 10px; width: 62%; background: #33444C; border-radius: 3px; margin-bottom: 12px; }
.m-h-short { width: 44%; }
.m-field { height: 14px; background: #FFFFFF; border: 1.5px solid #B9C6CB; border-radius: 4px; margin-bottom: 8px; font-size: 9px; padding: 0 6px; display: flex; align-items: center; }
.m-tall { height: 30px; }
.m-btn { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 14px; border-radius: 5px; background: #0B5566; color: #fff; font-size: 10px; font-weight: 700; margin-top: 2px; align-self: flex-start; }
.m-target-ok { box-shadow: 0 0 0 2px #F4F7F8, 0 0 0 4px #62D49C; }
.m-target-fail { box-shadow: 0 0 0 2px #F4F7F8, 0 0 0 4px #FF9086; }
.m-overlay { position: absolute; z-index: 1; left: 0; right: 0; bottom: 30px; height: 26px; background: #E25822; color: #fff; font-size: 10px; font-weight: 700; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; white-space: nowrap; overflow: hidden; box-shadow: 0 -4px 12px rgba(0,0,0,.18); }
.mock-lg .m-overlay { bottom: 38px; height: 30px; font-size: 11px; }
.mock-phone .m-target-fail { margin-top: auto; }
.m-menu { background: #fff; border: 1.5px solid #B9C6CB; border-radius: 6px; height: 101px; overflow: hidden; margin-bottom: 12px; display: flex; flex-direction: column; font-size: 10px; font-weight: 600; }
.m-menu span { padding: 4px 10px; border-bottom: 1px solid #E3E9EB; min-height: 21px; }
.m-menu .m-clipped { background: #FCE8E6; color: #B42318; outline: 2px dashed #FF9086; outline-offset: -2px; }
.m-img { height: 70px; background: linear-gradient(135deg, #C7D7DC, #9FB4BC); border-radius: 6px; margin-bottom: 10px; }
.m-missing { border-style: dashed; border-color: #FF9086; color: #B42318; background: #FCE8E6; }
.m-btn-out { background: transparent; color: #0B5566; border: 1.5px solid #0B5566; }
.m-gone { background: transparent; border: 2px dashed #FF9086; }
.m-console { font: 600 9px/1.4 var(--mono); background: #1A2327; color: #FF9086; padding: 8px; border-radius: 6px; margin-bottom: 10px; }
.m-console b { color: #FFB4AC; }

.steps { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--table-line); }
.steps li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--table-line); font-size: 14.5px; }
.steps .step-meta { font: 500 12.5px/1.2 var(--mono); color: var(--table-ink-2); text-align: right; }
.steps .is-fail .step-meta { color: var(--fail-on-dark); }
.glyph { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 800; }
.glyph.ok { background: #0F2E20; color: var(--ok-on-dark); }
.glyph.fail { background: #3A1512; color: var(--fail-on-dark); }
.report-foot { font-size: 14px; color: var(--table-ink); margin-top: 14px; line-height: 1.55; }
.report-foot .muted { display: block; color: var(--table-ink-2); font-size: 13px; margin-top: 6px; }
@media (max-width: 420px) {
  .steps li { grid-template-columns: 24px 1fr; }
  .steps .step-meta { grid-column: 2; text-align: left; }
}

/* Sections */
.section { padding: 72px 0; }
.section-tight { padding: 24px 0; }
@media (min-width: 980px) { .section { padding: 104px 0; } .section-tight { padding: 32px 0; } }
.band { background: var(--canvas); border-block: 1px solid var(--line); }
.kicker { font: 700 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-lede { color: var(--ink-2); max-width: 40em; font-size: 1.08rem; }

.problem { padding-block: 64px; }
.problem h2 { max-width: 18em; }
.problem-grid { display: grid; gap: 8px 48px; color: var(--ink-2); font-size: 1.08rem; }
@media (min-width: 820px) { .problem-grid { grid-template-columns: 1fr 1fr; } }

.how { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; counter-reset: how; }
@media (min-width: 720px) { .how { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.how p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-tint); color: var(--accent); font: 750 15px/1 var(--mono); margin-bottom: 16px; }

/* Timeline */
.timeline-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .timeline-card { padding: 32px 36px; } }
.timeline-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.timeline-head h2 { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 1fr; gap: 2px; padding: 0 0 18px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--edge); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t-ok::before { border-color: var(--ok); }
.timeline .t-fail::before { border-color: var(--fail); background: var(--fail); }
.timeline .t-alert::before { border-color: var(--fail); }
.timeline .t-change::before { border-color: var(--accent); border-radius: 3px; }
.t-when { font: 600 13px/1.4 var(--mono); color: var(--ink-3); }
.t-what { color: var(--ink-2); font-size: 15.5px; }
.t-what b { color: var(--ink); }
@media (min-width: 720px) { .timeline li { grid-template-columns: 110px 1fr; gap: 16px; } }

/* Evidence explorer */
.section-dark { background: var(--table); color: var(--table-ink); }
.section-dark .kicker { color: var(--table-focus); }
.section-dark .section-lede { color: var(--table-ink-2); }
.tabs { display: flex; gap: 6px; margin: 36px 0 18px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--table-2); border: 1px solid var(--table-line); border-radius: 12px; width: max-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 9px; border: 0; background: transparent; color: var(--table-ink-2); font: 600 15px/1 var(--font); cursor: pointer; }
.tab:hover { color: var(--table-ink); }
.tab[aria-selected="true"] { background: var(--table-ink); color: #0E1A1F; }
.panels { display: grid; gap: 18px; }
.panel { display: grid; gap: 24px; background: var(--table-2); border: 1px solid var(--table-line); border-radius: 18px; padding: 24px; }
.panel[hidden] { display: none; }
@media (min-width: 820px) { .panel { grid-template-columns: 280px 1fr; gap: 40px; padding: 36px; align-items: center; } }
.panel-visual { padding: 8px 0; }
.panel-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--table-ink-2); }
.panel h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.eo { margin: 18px 0; display: grid; gap: 10px; }
.eo > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--table); border: 1px solid var(--table-line); }
.eo dt { font: 700 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--table-ink-2); }
.eo dd { margin: 0; font-size: 15.5px; }
.eo > div:last-child dt { color: var(--fail-on-dark); }
.panel-note { color: var(--table-ink-2); font-size: 15px; margin: 0; }
@media (max-width: 420px) { .eo > div { grid-template-columns: 1fr; gap: 2px; } }

/* Definition */
.def-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .def-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.def-grid p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-tint); box-shadow: inset 0 0 0 2px var(--accent); }
.code-card { margin: 0; background: var(--table); color: var(--table-ink); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.code-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--table-line); font: 600 13px/1 var(--mono); color: var(--table-ink-2); }
.code-card pre { margin: 0; padding: 18px; overflow-x: auto; font: 500 13.5px/1.65 var(--mono); tab-size: 2; }
.code-card .k { color: #9ED7E5; }
.code-card .s { color: #F1D08A; }

/* Boundaries / who */
.bound-grid, .who-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 720px) { .bound-grid { grid-template-columns: 1fr 1fr; } .who-grid { grid-template-columns: repeat(3, 1fr); } }
.bound, .who { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.bound h3 { display: flex; gap: 10px; align-items: center; }
.bound h3::before { content: ""; flex: 0 0 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.bound p, .who p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.who { border-top: 3px solid var(--accent); }

/* Status */
.status-card { border: 1.5px dashed var(--edge); border-radius: 18px; padding: 24px; background: var(--surface-2); }
@media (min-width: 720px) { .status-card { padding: 32px 36px; } }
.status-grid { display: grid; gap: 8px 40px; margin-top: 12px; }
@media (min-width: 820px) { .status-grid { grid-template-columns: 1fr 1fr; } }
.status-grid p { color: var(--ink-2); font-size: 15.5px; }
.status-label { margin-bottom: 8px; }

/* Join */
.join { background: linear-gradient(180deg, var(--paper), var(--accent-tint)); }
.join-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .join-grid { grid-template-columns: 1fr 460px; gap: 64px; } }
.join-copy p { color: var(--ink-2); font-size: 1.1rem; max-width: 28em; }
.join-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .join-card { padding: 32px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; font-size: 15px; margin-bottom: 8px; }
.field input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); font: 400 17px/1.2 var(--font); }
.field input::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus-visible { outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--fail); }
.field-err { color: var(--fail); font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-bottom: 4px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent label { font-size: 15px; color: var(--ink-2); cursor: pointer; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--fail); outline-offset: 2px; }
#wl-consent-err { margin: 6px 0 0 36px; }
.waitlist .btn { margin-top: 20px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.is-busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--fail); background: var(--fail-tint); padding: 10px 12px; border-radius: 8px; }
.wl-done { text-align: left; }
.wl-done:focus { outline: none; }
.done-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.wl-done h3 { font-size: 1.4rem; }
.wl-done p { color: var(--ink-2); }
.wl-done b { color: var(--ink); word-break: break-all; }

/* FAQ */
.faq-wrap { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 24px; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; font-weight: 650; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: 0 0 auto; font: 500 24px/1 var(--mono); color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin: 0 0 20px; max-width: 42em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--canvas); padding: 40px 0; }
.footer-inner { display: grid; gap: 12px; }
.footer-inner p { margin: 0; color: var(--ink-2); font-size: 15px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-inner nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 32px; } .footer-inner .small { grid-column: 1 / -1; } }

/* Simple content pages (privacy, 404) */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2.2em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; }
.doc .updated { font: 600 13px/1 var(--mono); color: var(--ink-3); margin-bottom: 28px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin: 24px 0; }
.callout p:last-child { margin: 0; }

/* Privacy: self-service waitlist removal */
[hidden] { display: none !important; }
.removal { margin-top: 2.2em; scroll-margin-top: 96px; }
.removal:focus { outline: none; }
.doc .removal h2 { margin-top: 0; }
.removal .waitlist > p:first-child { margin-top: 0; }
.rm-confirm p:first-child { margin-top: 0; color: var(--ink); }
.rm-confirm .btn { margin-top: 8px; }
