/* urTestr brand tokens (see the brand guide). Every page is dark (brand-night), same as the home page (his call 2026-11-19). */
:root {
  --brand-teal: #2DD4BF;
  --brand-teal-deep: #0F766E;
  --brand-ink: #0F172A;
  --brand-night: #0B1020;
  --surface: #0B1020;
  --surface-raised: #1E293B;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #334155;
  --border-input: #94A3B8;
  --accent: #2DD4BF;
  --on-accent: #0F172A;
  --focus: #5EEAD4;
  --danger: #FCA5A5;
  /* on night */
  --night-raised: #1E293B;
  --night-text: #F8FAFC;
  --night-muted: #94A3B8;
  --night-focus: #5EEAD4;
  --night-danger: #FCA5A5;
  --font-display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --header-h: 88px; /* .top: 24px padding + 40px logo + 24px padding */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-padding-top: var(--header-h); } /* in-page links land below the sticky header */
body { margin: 0; background: var(--surface); color: var(--text); font: 400 16px/26px var(--font-body); }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-wrap: balance; margin: 0; }
h2 { font-size: 30px; line-height: 36px; }
h3 { font-size: 18px; line-height: 24px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface-raised); color: var(--text); padding: 8px 12px; z-index: 30; } /* above the sticky header */

/* Dark bands */
.night { background: var(--brand-night); color: var(--night-text); }
.night a { color: var(--brand-teal); }
.night :focus-visible { outline-color: var(--night-focus); }

.top { padding-block: 24px; }
.top img { display: block; height: 40px; width: auto; }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 56px; letter-spacing: -0.5px; }
.hero .lead { margin-top: 16px; font-size: 19px; line-height: 30px; color: var(--night-muted); max-width: 34em; }

/* Waitlist form */
.join { background: var(--night-raised); border-radius: var(--radius-md); padding: 24px; display: grid; gap: 16px; }
.fields { display: grid; gap: 16px; }
.join h2 { font-size: 22px; line-height: 28px; }
.join label, .join legend { font-weight: 700; font-size: 14px; }
.join legend { padding: 0 0 4px; }
.join fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.join input[type="email"] { width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--night-muted); background: var(--brand-night); color: var(--night-text); font: inherit; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--night-muted); border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; }
.roles label:has(input:checked) { border-color: var(--brand-teal); background: rgba(45, 212, 191, .12); }
.roles input, .check input { accent-color: var(--brand-teal); width: 18px; height: 18px; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 4px; flex: none; }
.btn { appearance: none; border: 0; border-radius: var(--radius-md); padding: 14px 20px; font: 800 17px/20px var(--font-display); cursor: pointer; background: var(--brand-teal); color: var(--brand-ink); }
.btn:hover { background: #5EEAD4; }
.btn[disabled] { opacity: .7; cursor: progress; }
.note { font-size: 14px; line-height: 20px; color: var(--night-muted); }
.msg { font-size: 15px; line-height: 22px; min-height: 0; }
.msg.error { color: var(--night-danger); }
.done { display: grid; gap: 8px; }
.done:focus { outline: none; } /* focus moves here only so screen readers announce it; not a control */
.done h2 { color: var(--brand-teal); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Light sections */
section.block { padding-block: 64px; }
section.block + section.block { padding-top: 0; }
.intro { color: var(--text-muted); margin-top: 8px; max-width: 40em; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(s); font: 800 15px/32px var(--font-display); width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--brand-ink); color: var(--surface-raised); text-align: center; }
.steps p { color: var(--text-muted); }
.price { margin-top: 40px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.price > div { display: grid; gap: 8px; }
.price .fine { grid-column: 1 / -1; margin-top: 0; padding-top: 16px; border-top: 1px solid var(--border); }
.fine { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--text-muted); }

footer { --footer-pad: 32px; padding-block: var(--footer-pad); font-size: 14px; line-height: 22px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer p { color: var(--night-muted); }

/* Legal pages: footer stays at the bottom on short pages (no light strip under it). */
body:not(.home) { display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100svh; }
/* Legal pages use the home page's full content width and edges (his call 2026-11-19: no empty strip on the right). */
.doc { padding-block: 48px 64px; width: 100%; }
.doc h1 { font-size: 36px; line-height: 42px; }
.doc h2 { font-size: 22px; line-height: 28px; margin-top: 32px; }
.doc p, .doc ul { margin-top: 12px; }
.doc .updated { color: var(--text-muted); margin-top: 8px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero h1 { font-size: 38px; line-height: 44px; }
  .cols, .price { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section.block { padding-block: 40px; }
}
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Home page: dark throughout, test-sweep canvas behind the hero (sweep.js). */
.home { background: var(--brand-night); color: var(--night-text); }
.home a { color: var(--brand-teal); }
.home :focus-visible { outline-color: var(--night-focus); }
.home .skip:focus { background: var(--night-raised); color: var(--night-text); }
/* Header stays at the top while scrolling, on every page. Solid so page text never shows through behind the logo. */
.bar { position: sticky; top: 0; z-index: 20; background: var(--brand-night); }
/* Home: see-through at the very top so the hero sweep runs behind the logo, solid from the first pixel of scroll.
   CSS-only (scroll-driven); browsers without it simply keep the solid header. */
@supports (animation-timeline: scroll()) {
  .home .bar { animation: bar-solid linear both; animation-timeline: scroll(); animation-range: 0 1px; }
  @keyframes bar-solid { from { background-color: transparent; } to { background-color: var(--brand-night); } }
}
/* 1px separator under the logo, the same width as the page content (inside the side padding). */
.top { position: relative; }
.top::after { content: ""; position: absolute; bottom: 0; height: 1px; background: #475569; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
/* The hero slides up under the header so its canvas starts at the very top. */
.stage { margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); position: relative; overflow: hidden; border-bottom: 1px solid var(--night-raised); }
#sweep { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Keeps text readable over the moving devices. */
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 90% at 25% 50%, rgba(11, 16, 32, .9), rgba(11, 16, 32, .4) 70%, rgba(11, 16, 32, 0)); }
.home .hero { position: relative; z-index: 1; min-height: min(80svh, 720px); padding-block: 64px; } /* same space above and below (his call: balanced) */
.status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; padding: 6px 14px 6px 10px; border-radius: var(--radius-pill); background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .45); font-weight: 700; font-size: 15px; line-height: 20px; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, .2); }
.home .hero h1 { font-size: clamp(42px, 5vw, 64px); line-height: 1.05; letter-spacing: -1.5px; }
.home .hero h1 em { font-style: normal; color: var(--brand-teal); }
.home .hero .lead { margin-top: 24px; font-size: 19px; line-height: 30px; color: #CBD5E1; max-width: 32em; }
.platforms { margin-top: 16px; color: var(--brand-teal); font-weight: 700; }
.home .join { position: relative; background: rgba(30, 41, 59, .94); border: 1px solid #334155; border-radius: 20px; padding: 28px; }

.home section.block, .home section.block + section.block { padding-block: 96px 0; }
.home main { padding-bottom: 96px; }
.home .intro, .home .steps p, .home .fine { color: var(--night-muted); }
.home section h2 { font-size: clamp(30px, 4.5vw, 42px); line-height: 1.1; letter-spacing: -.5px; }
.home .cols { gap: 0; margin-top: 40px; }
.home .side { padding: 0 32px 0 0; display: grid; gap: 16px; align-content: start; }
.home .side + .side { padding: 0 0 0 32px; border-left: 1px solid #334155; }
.home .side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
/* A check mark per item, like the tick in the logo. */
.home .side li { position: relative; padding-left: 30px; }
.home .side li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 7px; border-left: 3px solid var(--brand-teal); border-bottom: 3px solid var(--brand-teal); transform: rotate(-45deg); }

/* How a test works is a real sequence, so it is drawn as a timeline. */
.home .steps { position: relative; margin-top: 40px; gap: 32px; }
/* Line stops at the centre of circle 4: right = one column (of 4, 3 gaps of 32px) minus half a circle. */
.home .steps::after { content: ""; position: absolute; left: 0; right: calc((100% - 96px) / 4 - 19px); top: 18px; height: 2px; background: linear-gradient(90deg, var(--brand-teal), #334155); }
.home .steps li { position: relative; z-index: 1; gap: 10px; }
/* Solid brand teal (same as the logo and the hero button) with ink numbers, like the button: 10:1. White on this teal is only 1.8:1. */
.home .steps li::before { width: 38px; height: 38px; line-height: 38px; font-size: 19px; background: var(--brand-teal); color: var(--brand-ink); box-shadow: 0 0 0 4px var(--brand-night); }

/* FAQ: native <details> (keyboard and screen-reader friendly), one per question. */
.faq { margin-top: 32px; border-top: 1px solid #334155; }
.faq details { border-bottom: 1px solid #334155; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 0; font: 700 18px/26px var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; flex: none; width: 26px; text-align: center; font-size: 24px; line-height: 26px; color: var(--brand-teal); }
.faq details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.faq summary:hover { color: var(--brand-teal); }
.faq details p { padding: 0 42px 20px 0; color: #CBD5E1; max-width: 46em; }
/* Pricing box in brand teal (same as the logo and the hero button) with ink text, like the button: 10:1 even for the small print. */
.home .price { background: var(--brand-teal); color: var(--brand-ink); border: 0; border-radius: 20px; padding: 32px; }
.home .price .fine { color: var(--brand-ink); border-top-color: rgba(15, 23, 42, .3); }
.home .price h3 { font-size: 22px; line-height: 28px; }
/* 2px line above the footer, content width like the logo separator. Every page. */
footer .wrap { position: relative; }
footer .wrap::before { content: ""; position: absolute; top: calc(-1 * var(--footer-pad)); height: 2px; background: #475569; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }

@media (max-width: 860px) {
  .home .hero { min-height: 0; padding-block: 40px; }
  .stage::after { background: linear-gradient(180deg, rgba(11, 16, 32, .45), rgba(11, 16, 32, .75)); }
  .home .hero h1 { letter-spacing: -1px; }
  .home .cols { grid-template-columns: minmax(0, 1fr); }
  .home .side { padding: 0; }
  .home .side + .side { padding: 24px 0 0; margin-top: 24px; border-left: 0; border-top: 1px solid #334155; }
  .home .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  /* Phones: one line segment from each circle down to the next, none after the last step. */
  .home .steps::after { display: none; }
  .home .steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 38px; bottom: -24px; width: 2px; background: rgba(45, 212, 191, .5); }
  .home .steps li { grid-template-columns: 38px minmax(0, 1fr); column-gap: 16px; }
  .home .steps li::before { grid-row: span 2; }
  .home section.block, .home section.block + section.block { padding-top: 64px; }
  .home main { padding-bottom: 64px; }
}
