/* oathline.io: one stylesheet for every page (home, Get started, Proof, Privacy, 404).
   Values from .claude/skills/better-* (motion, focus, contrast, type, layout) and landing-page-design/OATHLINE.md
   (Geist self-hosted, dark default, verdict colours mean only verdicts). Build spec: redesign 2026-10-08.
   Order: fonts, tokens, base, components, page sections, secondary pages, then one block per breakpoint
   (>=1100, <=1160, <=960, <=860, <=640, <=480, <=380, <=359 px, written in em at 16px so they follow
   the visitor's text size), then motion, then forced colours.
   Spacing steps: 4 8 12 16 20 24 32 40 48 64 80 96. Radii: 6 8 12 16 20 24 28, pills 9999. */

@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ================= tokens ================= */
:root {
  color-scheme: dark;
  --bg: #000000;          /* page */
  --surface: #111111;     /* tiles, the game shell, form card, FAQ rows */
  --surface-2: #1A1A1A;   /* raised panes inside a surface: tx pane, phone case card, receipt rows */
  --sunken: #070707;      /* wells: oathline's answer pane, code, inputs, mini visuals rows */
  --key: #262626;         /* resting fill of the three answer keys and the game pills' numbers */
  --line: #262626;        /* separators (footer top, table rules) */
  --line-2: #3A3A3A;      /* decorative outlines: tags, kbd, ghost pills */
  --line-3: #6E6E6E;      /* control boundaries (inputs, keys, ghost buttons, game pills, contents chips, outlined dots): >= 3:1 */
  --bg-hover: #262626;    /* hover fill of ghost buttons, copy buttons, nav and contents links (never a resting surface) */
  --bg-selected: #262626; /* the current page's nav link */
  --border-hover: #BDBDBD; /* input boundary on hover */
  --bg-inverse: #FFFFFF; --text-inverse: #000000; /* filled marks: picked key, current pill, lit gates, filled badges and squares, selection */
  --text: #FFFFFF;
  --muted: #BDBDBD;       /* body copy, ledes */
  --faint: #8F8F8F;       /* captions, placeholders, unlit tagline words */
  --focus: #FFFFFF;
  --btn-bg: #FFFFFF; --btn-text: #000000; --btn-hover: #E6E6E6;
  --glass: rgba(17, 17, 17, 0.85);   /* nav pill */
  --overlay: rgba(0, 0, 0, 0.97);    /* phone menu */
  --ring: 0 0 0 1px rgba(255, 255, 255, 0.08);
  --ring-hover: 0 0 0 1px rgba(255, 255, 255, 0.14);
  --allow: #4ADE80; --ask: #FBBF24; --block: #F87171;
  /* verdict tints are opaque (14% of the verdict mixed onto --surface-2), so text on them measures the same on any parent */
  --allow-bg: #213528; --ask-bg: #39311B; --block-bg: #392626;
  --paper: #F2F1EC; --paper-ink: #141414; --paper-muted: #52514D; --paper-line: #C9C7BF;
  --paper-allow: #166534; --paper-ask: #7B5100; --paper-block: #B91C1C; /* Ask stays amber (hue ~75) in both themes, apart from Block */
  --media-control: #F2F1EC; --media-control-ink: #141414; /* play button and video focus ring: always on the dark recording */
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* type roles (rem sizes, unitless line heights): each size is used with its own leading */
  --fs-caption: 0.75rem; --lh-caption: 1.4;
  --fs-small: 0.8125rem; --lh-small: 1.45;
  --fs-ui: 0.875rem; --lh-ui: 1.45;
  --lh-ui-long: 1.5;       /* --fs-ui notes that run to several lines */
  --lh-code: 1.5;          /* code blocks and the transcript, at --fs-small */
  --fs-key: 0.9375rem;     /* answer keys and How it works tabs, 960px and below */
  --fs-body: 1rem; --lh-body: 1.5;
  --fs-heading-sm: 1.125rem; --lh-heading-sm: 1.3; /* game title, "never" titles, tabs, large buttons */
  --fs-title-sm: 1.25rem; --lh-title-sm: 1.3;     /* Get started h3, the proof link tile */
  --fs-lede: 1.125rem; --lh-lede: 1.55;
  --fs-h3: 1.375rem;
  --fs-tx: 1.5rem; --ls-tx: -0.015em;
  --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-display: clamp(2rem, 1.2rem + 3.6vw, 3.75rem);
  --fs-display-doc: clamp(2.25rem, 1.6rem + 2.4vw, 3rem);
  --fs-tagline: clamp(1.875rem, 1rem + 3.4vw, 3.5rem);
  --fs-stat: clamp(2.5rem, 2rem + 1.5vw, 3rem);
  --fs-score: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --fs-menu: 1.875rem;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #FFFFFF; --surface: #F4F4F4; --surface-2: #FFFFFF; --sunken: #EAEAEA; --key: #FFFFFF;
    --line: #E4E4E4; --line-2: #D0D0D0; --line-3: #7C7C7C; --bg-hover: #EAEAEA; --bg-selected: #EAEAEA; --border-hover: #3D3D3D;
    --bg-inverse: #0A0A0A; --text-inverse: #FFFFFF;
    --text: #0A0A0A; --muted: #3D3D3D; --faint: #5E5E5E; --focus: #0A0A0A;
    --btn-bg: #0A0A0A; --btn-text: #FFFFFF; --btn-hover: #2A2A2A;
    --glass: rgba(255, 255, 255, 0.85); --overlay: rgba(255, 255, 255, 0.97);
    --ring: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06), 0 2px 4px 0 rgba(0, 0, 0, 0.04);
    --ring-hover: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.08), 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --allow: #166534; --ask: #7B5100; --block: #B91C1C;
    --allow-bg: #E8F0EB; --ask-bg: #F2EEE6; --block-bg: #F8E8E8; /* 10% of the verdict on white, opaque */
    --paper: #FFFDF5; --media-control: #FFFDF5;
  }
}
/* increased contrast: stronger surface edges, decorative outlines drawn as control boundaries, captions as body copy */
@media (prefers-contrast: more) {
  :root { --ring: 0 0 0 1px rgba(255, 255, 255, 0.28); --ring-hover: 0 0 0 1px rgba(255, 255, 255, 0.4); --line-2: var(--line-3); --faint: var(--muted); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: light) {
  :root { --ring: 0 0 0 1px rgba(0, 0, 0, 0.3); --ring-hover: 0 0 0 1px rgba(0, 0, 0, 0.42); --line-2: var(--line-3); --faint: var(--muted); }
}

/* ================= base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/var(--lh-body) 'Geist', system-ui, sans-serif; text-wrap: pretty; overflow-wrap: break-word; } /* inherited: no lone last word (headings balance instead); a word wider than the line (large text) breaks instead of widening the page */
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b, strong, em, i { font-weight: 600; font-style: normal; }
img, video, svg { display: block; max-width: 100%; }
code, pre, kbd, .mono, .addr { font-family: var(--mono); }
.addr { white-space: nowrap; }
.line { display: block; }
.i { display: block; width: 1rem; height: 1rem; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
::selection { background: var(--bg-inverse); color: var(--text-inverse); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 100; background: var(--btn-bg); color: var(--btn-text); padding: 8px 12px; border-radius: 9999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
#main:focus { outline: none; } /* the skip link's target: focus moves to the landmark, which needs no ring */
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
kbd { display: inline-block; min-width: 20px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--line-2); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 400; text-align: center; color: var(--faint); }
button, .btn, .key, .burger, .copy, .pg-nav button, [role="tab"], .num-link, .play { -webkit-tap-highlight-color: transparent; }

/* ================= components ================= */
/* buttons: one filled button per view ("Request an invite"); everything else is ghost */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px; border-radius: 9999px; background: var(--btn-bg); color: var(--btn-text); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition-property: background-color, border-color, color, opacity; transition-duration: 150ms; transition-timing-function: ease-out; }
.btn .i { width: 1.25rem; height: 1.25rem; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: var(--fs-ui); line-height: var(--lh-ui); }
.btn-sm .i { width: 1rem; height: 1rem; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: var(--fs-heading-sm); line-height: var(--lh-heading-sm); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-3); }
.btn[aria-disabled="true"] { cursor: progress; opacity: 0.6; }
.link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-3); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color 150ms ease-out; }
.link .i { display: inline-block; vertical-align: -0.2em; margin-inline-start: 6px; width: 1.25rem; height: 1.25rem; }
.kicker { font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); padding: 4px 12px; border-radius: 9999px; box-shadow: var(--ring); border: 1px solid transparent; }
.tag { display: inline-block; font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 9999px; border: 1px solid var(--line-2); white-space: nowrap; }
.badge { display: inline-block; font-family: var(--mono); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); padding: 3px 8px; border-radius: 6px; border: 1px dashed var(--line-3); white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 9999px; border: 1px solid transparent; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; white-space: nowrap; }
.chip .i { width: 0.875rem; height: 0.875rem; --sw: 21; }
.chip.allow { color: var(--allow); background: var(--allow-bg); }
.chip.ask { color: var(--ask); background: var(--ask-bg); }
.chip.block { color: var(--block); background: var(--block-bg); }
.chip.neutral { color: var(--muted); background: var(--surface-2); box-shadow: var(--ring); }
.note-box { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-3); font-size: var(--fs-ui); line-height: var(--lh-ui-long); color: var(--muted); }

/* headings and section frame */
.h1 { margin-top: 16px; font-size: var(--fs-display); line-height: 1.1; letter-spacing: -0.025em; max-width: 840px; }
.h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -0.02em; max-width: 760px; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }
.lede { font-size: var(--fs-lede); line-height: var(--lh-lede); color: var(--muted); max-width: 46ch; }
.sec { padding-block: 96px; }
.sec-head { display: grid; gap: 12px; justify-items: start; margin-bottom: 40px; }
.sec-sub { font-size: var(--fs-lede); line-height: var(--lh-lede); color: var(--muted); max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ================= island nav and phone menu ================= */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; padding-inline: 24px; }
.nav-pill { pointer-events: auto; display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 4px 4px 4px 16px; border-radius: 9999px; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid transparent; box-shadow: var(--ring), 0 8px 24px -12px rgba(0, 0, 0, 0.25); } /* the highest surface: ring plus elevation */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav-pill { background: var(--surface); } }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-inline-end: 12px; font-weight: 600; text-decoration: none; }
.brand svg { width: 20px; height: 20px; flex: none; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 9999px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); text-decoration: none; white-space: nowrap; transition-property: color, background-color; transition-duration: 150ms; transition-timing-function: ease-out; }
.nav-links a[aria-current] { color: var(--text); background: var(--bg-selected); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; } /* colour is never the only cue */
.nav-pill .btn { flex: none; }
.burger { display: none; position: relative; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 9999px; background: transparent; color: var(--text); cursor: pointer; }
.burger span { position: absolute; left: 12px; width: 16px; height: 0; border-top: 2px solid currentColor; border-radius: 2px; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.menu-open .burger span:first-child { translate: 0 4px; rotate: 45deg; }
.menu-open .burger span:last-child { translate: 0 -4px; rotate: -45deg; }
.menu { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; padding: 88px 24px; background: var(--overlay); overscroll-behavior: contain; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 150ms ease-out, visibility 0s linear 150ms; }
/* centred when it fits; when it is taller than the screen (zoom, landscape) it overflows downwards, so every link can be scrolled to */
.menu > :first-child { margin-top: auto; }
.menu > :last-child { margin-bottom: auto; }
.menu a { opacity: 0; transition: opacity 150ms ease-out, translate 0s linear 150ms; }
.menu a:not(.btn) { align-self: start; padding: 6px 0; font-size: var(--fs-menu); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; color: var(--muted); text-decoration: none; }
.menu a[aria-current] { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu .btn { margin-top: 24px; align-self: start; }
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 300ms ease-out, visibility 0s; }
.menu-open .menu a { opacity: 1; transition: opacity 300ms ease-out, translate 300ms ease-out; }
.menu-open .menu .btn { transition: opacity 300ms ease-out, translate 300ms ease-out, background-color 150ms ease-out, scale 150ms ease-out; }
html:not(.js) .burger, html:not(.js) .menu { display: none; }

/* ================= footer ================= */
footer { border-top: 1px solid var(--line); padding: 48px 0 64px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot-row .brand { min-height: 44px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-block; padding-block: 12px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); text-decoration: none; transition: color 150ms ease-out; }
.foot-note { max-width: 48ch; margin-top: 48px; font-size: var(--fs-ui); line-height: var(--lh-ui-long); color: var(--muted); }

/* ================= home: hero ================= */
.hero { padding-top: 96px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: start; margin-top: 16px; }
.hero .lede { max-width: 46ch; }
.hero-act { display: grid; gap: 12px; justify-items: start; }
.hero-act--narrow { display: none; }
.proof-line { display: flex; align-items: flex-start; gap: 8px; max-width: 48ch; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); text-decoration: none; }
.proof-line .i { margin-top: 2px; color: var(--muted); }
.proof-line span { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color 150ms ease-out; }

/* ================= home: Spot the drain ================= */
.pg { margin-top: 40px; }
.pg-shell { position: relative; border-radius: 28px; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; padding: 8px; }
.pg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 8px 12px 12px 16px; }
.pg-title { flex: 1 1 260px; min-width: 0; }
.pg-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pg-title h2 { font-size: var(--fs-heading-sm); line-height: var(--lh-heading-sm); }
.pg-title p { margin-top: 2px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); max-width: 44ch; }
.pg-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-nav button { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 4px; border-radius: 9999px; border: 1px solid var(--line-3); background: var(--surface-2); color: var(--muted); font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; cursor: pointer; transition-property: background-color, color, border-color; transition-duration: 150ms; transition-timing-function: ease-out; }
.pg-nav .pn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9999px; background: var(--key); box-shadow: var(--ring); border: 1px solid transparent; font-variant-numeric: tabular-nums; color: var(--text); }
.pg-nav .ps { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 9999px; margin-inline-start: -2px; }
.pg-nav .ps:empty { display: none; }
.pg-nav .ps svg { width: 10px; height: 10px; --sw: 35; } /* about 2px of stroke at 10px */
.pg-nav button.is-same .ps { background: var(--bg-inverse); color: var(--text-inverse); }
.pg-nav button.is-diff .ps { box-shadow: inset 0 0 0 1.5px currentColor; }
.pg-nav button[aria-current="step"] { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--bg-inverse); }
.pg-nav button[aria-current="step"] .pn { background: var(--text-inverse); color: var(--bg-inverse); box-shadow: none; }
.pg-nav button[aria-current="step"].is-same .ps { background: var(--text-inverse); color: var(--bg-inverse); }
.pg-score { display: flex; flex-direction: column; align-items: flex-end; margin-inline-start: auto; }
.score-k { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); }
.score-v { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--muted); }
.score-v b { display: inline-block; color: var(--text); }

/* the deck: one card per transaction (without JavaScript the cards simply stack) */
.deck { display: grid; gap: 8px; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "tx answer" "next answer"; gap: 8px; }
.tx-pane { grid-area: tx; display: flex; flex-direction: column; gap: 20px; min-width: 0; min-height: 340px; padding: 24px; border-radius: 20px; background: var(--surface-2); box-shadow: var(--ring); border: 1px solid transparent; }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.case-no { font-family: var(--mono); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--faint); font-variant-numeric: tabular-nums; }
.tx { font-size: var(--fs-tx); line-height: 1.4; letter-spacing: var(--ls-tx); color: var(--muted); overflow-wrap: anywhere; } /* large text: the amount breaks rather than run under the next card */
.tx b { color: var(--text); }
.tx .addr { color: var(--text); font-size: 0.86em; letter-spacing: 0; }
.keys { display: grid; gap: 10px; }
.keys-q { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.keys-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.key { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 88px; padding: 12px 8px 14px; border-radius: 16px; border: 1px solid var(--line-3); background: var(--key); color: var(--text); font-size: 1rem; line-height: 1.25; font-weight: 600; cursor: pointer; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.55); transition-property: background-color, border-color, color, opacity, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.key .glyph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9999px; }
.key .glyph svg { width: 20px; height: 20px; }
.key.allow .glyph { color: var(--allow); background: var(--allow-bg); }
.key.ask .glyph { color: var(--ask); background: var(--ask-bg); }
.key.block .glyph { color: var(--block); background: var(--block-bg); }
.key kbd { display: none; position: absolute; top: 8px; inset-inline-end: 8px; }
.key[aria-disabled="true"] { cursor: default; opacity: 0.4; box-shadow: none; }
.key.is-picked[aria-disabled="true"] { opacity: 1; background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--bg-inverse); }
.key.is-picked .glyph { background: var(--text-inverse); }
.key.is-picked kbd { display: none; }
.key.is-picked::after { content: 'Your call'; position: absolute; top: -11px; left: 50%; translate: -50% 0; padding-inline: 8px; border-radius: 9999px; background: var(--bg); color: var(--text); box-shadow: var(--ring); border: 1px solid var(--line-3); font-size: var(--fs-caption); line-height: var(--lh-caption); padding-block: 1px; font-weight: 600; white-space: nowrap; }

/* oathline's answer: three gates, then the receipt prints */
.answer-pane { grid-area: answer; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 24px; border-radius: 20px; background: var(--sunken); box-shadow: var(--ring); border: 1px solid transparent; }
.answer-head { font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; }
.gates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gate { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 9px 7px 7px; border-radius: 12px; background: var(--surface); color: var(--faint); font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; box-shadow: var(--ring); border: 1px solid transparent; transition-property: color, background-color; transition-duration: 150ms; transition-timing-function: ease-out; }
.g-ico { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9999px; border: 1.5px dashed var(--line-2); transition-property: background-color, border-color, color; transition-duration: 150ms; transition-timing-function: ease-out; }
.g-ico svg { grid-area: 1 / 1; width: 14px; height: 14px; --sw: 21; }
.g-n { min-width: 0; overflow-wrap: anywhere; }
.g-ico .g-ok, .g-final .g-done { display: none; }
.g-final .g-ico svg { opacity: 0; }
.gate.on { color: var(--text); }
.gate.on .g-ico { border: 1.5px solid currentColor; }
.gate.on:not(.g-final) .g-ico { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--bg-inverse); }
.gate.on .g-ico .g-step { display: none; }
.gate.on .g-ico .g-ok { display: block; }
.g-final.on .g-idle { display: none; }
.g-final.on .g-done { display: inline; }
.g-final.on .g-ico svg { opacity: 1; }
.g-final.on.allow { color: var(--allow); background: var(--allow-bg); }
.g-final.on.ask { color: var(--ask); background: var(--ask-bg); }
.g-final.on.block { color: var(--block); background: var(--block-bg); }
.idle { flex: 1; display: grid; place-items: center; min-height: 120px; margin: -16px 4px 0; padding: 24px 16px; border-radius: 0 0 12px 12px; border: 1px dashed var(--line-2); border-top: 0; text-align: center; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--faint); }

.slot { position: relative; display: none; padding: 4px 0 16px; overflow: hidden; }
.slot::before { content: ''; position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 8px; border-radius: 9999px; background: var(--bg-inverse); }
.receipt { position: relative; display: block; margin-inline: 4px; padding: 20px 20px 28px; background: var(--paper); color: var(--paper-ink); border: 1px solid transparent; font-size: var(--fs-ui); line-height: var(--lh-ui);
  /* torn bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) bottom left / 16px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) bottom left / 16px 8px repeat-x; }
.receipt:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: -6px; }
.r-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--paper-line); font-family: var(--mono); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--paper-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.r-verdict { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 1.5rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.r-verdict .glyph { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9999px; color: var(--paper); }
.r-verdict .glyph svg { width: 18px; height: 18px; --sw: 20; } /* 2.5px stroke beside the 700 verdict */
.receipt.allow .r-verdict { color: var(--paper-allow); } .receipt.allow .r-verdict .glyph { background: var(--paper-allow); }
.receipt.ask .r-verdict { color: var(--paper-ask); } .receipt.ask .r-verdict .glyph { background: var(--paper-ask); }
.receipt.block .r-verdict { color: var(--paper-block); } .receipt.block .r-verdict .glyph { background: var(--paper-block); }
.r-reason { margin-top: 12px; font-family: var(--mono); font-size: var(--fs-ui); line-height: var(--lh-ui-long); color: var(--paper-ink); }
.r-rows { margin-top: 16px; border-top: 1px dashed var(--paper-line); }
.r-rows > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: baseline; gap: 12px; padding-top: 12px; }
.r-rows dt { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 600; color: var(--paper-muted); }
.r-rows dd { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--paper-ink); }
.r-match { display: flex; align-items: flex-start; gap: 6px; font-weight: 600; } /* a wrapped line starts under the text, not under the icon */
.r-match .m-ico { display: grid; place-items: center; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 9999px; background: var(--paper-ink); color: var(--paper); }
.r-match .m-ico svg { width: 10px; height: 10px; --sw: 35; }
.r-match.diff .m-ico { background: transparent; color: var(--paper-ink); box-shadow: inset 0 0 0 1.5px var(--paper-ink); }
.case > .next { grid-area: next; align-self: start; justify-self: start; display: none; padding-inline-end: 18px; } /* icon side 2px tighter */
.case > .next:focus-visible, .toc a:focus-visible { outline-offset: -2px; } /* inside scrollers that clip an outer ring */

/* with JavaScript: states, and the deck scrolls sideways one card at a time */
.js .slot { display: block; }
.js .case:not(.is-answered) .receipt { display: none; }
.js .case:not(.is-answered) .slot { padding-bottom: 0; }
.js .case.is-picked .idle, .js .case.is-answered .idle { display: none; }
.js .case.is-picked > .next { display: inline-flex; } /* from the pick: the next Tab stop at once, never focusable while invisible */
.js .deck { display: flex; align-items: flex-start; gap: 16px; padding-block: 8px; margin-block: -8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; } /* 8px inside, so the scroller does not clip the card's ring and shadow */
.js .deck::-webkit-scrollbar { display: none; }
.js .case { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }

/* without JavaScript: every answer is simply shown under its transaction */
html:not(.js) .keys, html:not(.js) .gates, html:not(.js) .idle, html:not(.js) .pg-nav, html:not(.js) .pg-score, html:not(.js) .pg-hint, html:not(.js) .r-you, html:not(.js) .next, html:not(.js) #pg-sum { display: none !important; }
html:not(.js) .slot { display: block; }
html:not(.js) .tx-pane { min-height: 0; }

.pg-sum { display: grid; gap: 16px; justify-items: start; margin-top: 8px; padding: 28px; border-radius: 20px; background: var(--surface-2); box-shadow: var(--ring); border: 1px solid transparent; }
.sum-line:focus { outline: none; }
.sum-line:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sum-line { font-size: var(--fs-score); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sum-list { display: grid; gap: 8px; width: 100%; }
.sum-list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.sum-list .s-ico { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 9999px; }
.sum-list .s-ico svg { width: 12px; height: 12px; --sw: 27; }
.sum-list .same .s-ico { background: var(--bg-inverse); color: var(--text-inverse); }
.sum-list .diff .s-ico { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.sum-list b { color: var(--text); }
.sum-note { color: var(--muted); max-width: 48ch; }
.sum-note .link { font-weight: 400; text-underline-offset: 4px; }
#pg-again { padding-inline-start: 18px; }
.pg.is-done .pg-hint, .pg.is-done .case > .next { display: none; } /* the score is on screen: nothing left to see */
.pg-hint { display: flex; justify-content: center; margin-top: 12px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--faint); text-align: center; }
.hint-touch { display: none; }

/* ================= home: tagline ================= */
.tagline { padding-block: 96px; }
.tagline p[data-words] { max-width: 20ch; font-size: var(--fs-tagline); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.tagline .w { color: var(--faint); transition: color 300ms ease-out; }
.tagline .w.lit { color: var(--text); }

/* ================= home: demo and "never" ================= */
.demo-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.video { border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; }
.video-frame { position: relative; }
.video video { width: 100%; aspect-ratio: 1500 / 920; background: #000; outline: 1px solid rgba(255, 255, 255, 0.1); outline-offset: -1px; }
.video video:focus-visible { outline: 2px solid var(--media-control); outline-offset: -2px; } /* the recording is dark in both themes */
.play { position: absolute; top: 74%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 9999px; background: var(--media-control); color: var(--media-control-ink); cursor: pointer; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6); transition: box-shadow 150ms ease-out; } /* top 74%: centred in the empty band under the poster's text */
/* the play button always sits on the dark recording, so it keeps light colours in both themes, its focus ring too */
.play:focus-visible { outline-color: var(--media-control); }
.play svg { width: 28px; height: 28px; translate: 2px 0; }
.video figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px 20px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.cap { flex-basis: 100%; max-width: 48ch; }
.end { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.transcript { margin: 0 20px 20px; }
.transcript summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; border-radius: 8px; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary .i { --sw: 16; color: var(--muted); transition: color 150ms ease-out; }
.transcript[open] summary .i { color: var(--text); rotate: 45deg; }
.transcript pre { margin-top: 8px; padding: 16px; border-radius: 12px; background: var(--sunken); font-size: var(--fs-small); line-height: var(--lh-code); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.never { display: grid; gap: 16px; }
.never-list { display: grid; gap: 8px; }
.never-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; }
.nv-ico { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9999px; background: var(--surface-2); color: var(--muted); }
.nv-ico svg { width: 18px; height: 18px; }
.nv-t { font-size: var(--fs-heading-sm); line-height: var(--lh-heading-sm); font-weight: 600; }
.nv-d { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--muted); }

/* ================= home: How it works (tabs) ================= */
.steps { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.steps-list { display: grid; gap: 8px; }
.steps-list [role="tab"] { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 12px 20px; border-radius: 16px; border: 1px solid var(--line-3); background: transparent; color: var(--muted); text-align: start; font-size: var(--fs-heading-sm); line-height: var(--lh-heading-sm); font-weight: 600; cursor: pointer; transition-property: background-color, color, border-color; transition-duration: 150ms; transition-timing-function: ease-out; }
.steps-list [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--text); border-color: var(--text); } /* every tab has a boundary; the open one a strong one */
.sn { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.steps-list [aria-selected="true"] .sn { color: var(--text); }
.steps-panels { min-width: 0; }
.step-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; min-height: 320px; padding: 32px; border-radius: 28px; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; }
.sp-copy { display: grid; gap: 12px; min-width: 0; }
.sp-copy p { color: var(--muted); max-width: 48ch; }
.sp-vis { display: grid; gap: 12px; min-width: 0; padding: 12px; border-radius: 24px; background: var(--surface-2); box-shadow: var(--ring); border: 1px solid transparent; }
.m-head { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; }
.m-file { font-family: var(--mono); font-size: var(--fs-caption); font-weight: 400; color: var(--faint); }
.m-lines { display: grid; gap: 8px; counter-reset: m; }
.m-lines li { counter-increment: m; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--sunken); font-family: var(--mono); font-size: var(--fs-small); line-height: var(--lh-small); }
.m-lines li::before { content: counter(m); color: var(--faint); }
.m-sig .i, .vs-t .i, .num-tag .i { --sw: 16; } /* 2px stroke beside 600 text */
.m-sig { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; color: var(--text); }
.vs-row { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--sunken); }
.vs-k { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 600; color: var(--faint); }
.vs-v { font-size: var(--fs-body); line-height: var(--lh-body); }
.vs-v.mono { font-size: var(--fs-ui); }
.vs-no .vs-v { color: var(--faint); }
.vs-t { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; }
.vs-no .vs-t { color: var(--muted); }
.vs-yes .vs-t { color: var(--text); }
.trio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tg { display: grid; gap: 6px; padding: 12px; border-radius: 20px; background: var(--sunken); }
.tg-from { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 600; color: var(--faint); }
.tg-msg { font-size: var(--fs-ui); line-height: var(--lh-ui); }
.tg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.tg-btns span { padding: 5px; border-radius: 8px; background: var(--surface-2); box-shadow: var(--ring); border: 1px solid transparent; text-align: center; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; }
.trio-note { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
html:not(.js) .steps { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .steps-list { display: none; }
html:not(.js) .steps-panels { display: grid; gap: 16px; }

/* ================= home and proof: numbers ================= */
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.num { display: grid; gap: 16px; align-content: start; min-width: 0; padding: 24px; border-radius: 28px; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; }
.num-tag { display: flex; align-items: center; gap: 8px; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; color: var(--muted); }
.num-tag .i { color: var(--text); }
.num.warn .num-tag .i { color: var(--muted); }
.num-v { font-size: var(--fs-stat); line-height: 1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.num-d { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--muted); max-width: 48ch; }
.dots { display: grid; grid-template-columns: repeat(12, 14px); gap: 5px; min-height: 52px; align-content: start; }
.dots:empty { display: none; }
.dots-spacer { min-height: 52px; } /* a tile without squares keeps its caption level with its neighbours */
html:not(.js) .dots-spacer { display: none; }
.dots i { display: block; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line-3); }
.dots i.on { box-shadow: none; background: var(--bg-inverse); }
.dots i.on.w::after { content: ''; display: block; width: 6px; height: 1.5px; margin: 6.25px auto 0; background: var(--text-inverse); }
.num-link { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: 28px; background: var(--surface-2); box-shadow: var(--ring); border: 1px solid transparent; font-size: var(--fs-title-sm); line-height: var(--lh-title-sm); font-weight: 600; text-decoration: none; transition: box-shadow 150ms ease-out; }
.num-link .go { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 9999px; background: var(--surface); color: var(--text); box-shadow: var(--ring); border: 1px solid transparent; } /* one filled button per view: the nav invite */
.num-link .go svg { width: 20px; height: 20px; }

/* ================= home: two ways to use it ================= */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; padding: 32px; border-radius: 28px; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; }
.mode > p:not(.note-box) { color: var(--muted); max-width: 48ch; }
.mode > .link { margin-top: auto; }
.mode > .code, .mode > .mp-vis, .mode > .note-box { align-self: stretch; }
.mode > .note-box { max-width: 32rem; }
.code { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 16px; border-radius: 12px; background: var(--sunken); box-shadow: var(--ring); border: 1px solid transparent; }
.code code { flex: 1; min-width: 0; padding-block: 8px; font-size: var(--fs-ui); line-height: var(--lh-ui); white-space: nowrap; }
.copy { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 1px solid transparent; border-radius: 8px; background: var(--surface-2); color: var(--text); cursor: pointer; box-shadow: var(--ring); transition: background-color 150ms ease-out; }
.copy .i { grid-area: 1 / 1; width: 1.125rem; height: 1.125rem; transition-property: opacity, scale, filter; transition-duration: 300ms; transition-timing-function: var(--ease); }
.copy .ic-done { opacity: 0; }
.copy.done .ic-copy { opacity: 0; }
.copy.done .ic-done { opacity: 1; }
.copy-sm { width: 32px; height: 32px; }
.copy-sm .i { width: 1rem; height: 1rem; }
.mp-vis { display: grid; gap: 10px; padding: 12px; border-radius: 24px; background: var(--surface-2); box-shadow: var(--ring); border: 1px solid transparent; }
.sh-head, .k3-head { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 600; color: var(--faint); }
.sh-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--sunken); font-size: var(--fs-ui); line-height: var(--lh-ui); }
.sh-k { color: var(--muted); }
.sh-v { text-align: end; font-weight: 600; }
.sh-zero { font-family: var(--mono); }
.k3-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.k3 { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: 12px; background: var(--sunken); font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; }
.k3-dot { position: relative; width: 28px; height: 28px; border-radius: 9999px; border: 2px solid currentColor; }
.k3-dot::after { content: ''; position: absolute; inset: 6px; border-radius: 9999px; background: currentColor; }
.k3-note { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.modes-more { margin-top: 24px; max-width: 48ch; color: var(--muted); }

/* ================= home: FAQ ================= */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.faq details { border-radius: 16px; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; transition: box-shadow 150ms ease-out; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 20px; border-radius: 16px; list-style: none; cursor: pointer; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 1.25rem; height: 1.25rem; color: var(--muted); transition: color 150ms ease-out; }
.faq details[open] summary .i { color: var(--text); rotate: 45deg; }
.faq details p { max-width: 48ch; padding: 0 20px 20px; color: var(--muted); }
.sec-sub .link { font-weight: 400; color: var(--text); }

/* ================= home: invite ================= */
.beta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.beta-copy { display: grid; gap: 16px; justify-items: start; }
.ticks { display: grid; gap: 12px; margin-top: 8px; }
.ticks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks .tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 9999px; background: var(--surface-2); box-shadow: var(--ring); border: 1px solid transparent; color: var(--text); }
.ticks .tick svg { width: 14px; height: 14px; --sw: 11; } /* 1.5px stroke beside 400 text */
.form { display: grid; gap: 16px; padding: 28px; border-radius: 28px; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label { font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; margin: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--sunken); color: var(--text); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400; transition: border-color 150ms ease-out; }
.form input::placeholder, .form textarea::placeholder { color: var(--faint); opacity: 1; }
.form textarea { min-height: 96px; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%238F8F8F' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
[dir="rtl"] .form select { background-position: left 14px center; } /* background-position has no logical form */
.form [aria-invalid="true"] { border: 2px solid var(--block); padding: 10px 13px; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.err-text { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--block); }
.err-text .i, .result .i { margin-top: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.result { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.result.ok { color: var(--text); }
.result.err { color: var(--block); }
.fine { max-width: 48ch; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--faint); }
.fine a { color: var(--muted); text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================= secondary pages ================= */
/* Get started, Privacy, 404: <main id="main" class="doc">; one top edge on every page */
.doc { padding-top: 128px; padding-bottom: 96px; }
.doc-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
.doc-intro .toc { justify-self: stretch; }
.doc-intro h1, .doc h1 { font-size: var(--fs-display-doc); line-height: 1.1; letter-spacing: -0.025em; max-width: 840px; }
.doc-intro .lede { max-width: 46ch; }
.doc-intro .note { margin-top: 8px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-3); font-size: var(--fs-ui); line-height: var(--lh-ui-long); color: var(--muted); max-width: 48ch; }
.toc { min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.toc a { padding: 6px 12px; border-radius: 9999px; border: 1px solid var(--line-3); font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); text-decoration: none; white-space: nowrap; transition-property: color, background-color, border-color; transition-duration: 150ms; transition-timing-function: ease-out; }
.prose { min-width: 0; margin-top: 16px; }
.prose > p, .prose > ul, .prose > ol { max-width: 48ch; margin-top: 16px; }
.prose > ul, .prose > ol { padding-inline-start: 1.25em; }
.prose > ul { list-style: disc; }
.prose > ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--faint); }
.prose h2 { margin-top: 64px; font-size: 1.875rem; line-height: 1.2; letter-spacing: -0.015em; }
.prose h3 { margin-top: 32px; font-size: var(--fs-title-sm); line-height: var(--lh-title-sm); letter-spacing: -0.01em; }
.prose > .net { margin-top: 8px; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; color: var(--muted); }
.prose a:not(.btn), .doc-intro a:not(.btn), .note a, .wrong a, .sources a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color 150ms ease-out; }
.prose :not(pre) > code, .doc-intro code, .note code { padding: 0 0.25em; border-radius: 6px; background: var(--sunken); box-shadow: var(--ring); border: 1px solid transparent; font-size: 0.875em; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose pre { position: relative; margin-top: 16px; padding-block: 16px; padding-inline: 16px 52px; border-radius: 12px; background: var(--sunken); box-shadow: var(--ring); border: 1px solid transparent; font-size: var(--fs-small); line-height: var(--lh-code); white-space: pre-wrap; overflow-wrap: anywhere; }
.prose pre code { font-size: inherit; }
.prose pre .copy { position: absolute; top: 4px; inset-inline-end: 4px; }
.table, .prose table { width: 100%; margin-top: 16px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: var(--fs-ui); line-height: var(--lh-ui); }
.table th, .prose table th { padding: 12px 16px; background: var(--surface); text-align: start; vertical-align: bottom; font-weight: 600; color: var(--muted); }
.table td, .prose table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table td:first-child, .prose table td:first-child { font-weight: 600; }
.table:has(> thead th:nth-child(2):last-child) { max-width: 40rem; } /* the two-column doc tables: 60 to 75 characters a line */
.table td code, .prose td code { white-space: normal; overflow-wrap: anywhere; }
.table td code.hex { word-break: break-all; }
.table td:has(> code.hex), .table code.hex { text-wrap: balance; } /* a 42-character address breaks into two even halves */
.table td code.nobreak { white-space: nowrap; overflow-wrap: normal; }
.table .cell-copy { display: flex; align-items: flex-start; gap: 8px; }
.table .cell-copy code { flex: 1; min-width: 0; }
.table tr.us td { font-weight: 600; color: var(--text); }
.table tr.us td:first-child { border-inline-start: 2px solid var(--text); padding-inline-start: 14px; } /* a border, so it also shows in forced colours */

/* Proof */
.hero-short { padding-top: 128px; }
.hero-short .lede { margin-top: 16px; }
.nums-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* in four columns the 223px dot grid can be wider than a tile: let the squares shrink, 14px max */
.nums-4 .dots { grid-template-columns: repeat(12, minmax(0, 14px)); gap: 4px; }
.nums-4 .dots i { width: 100%; height: auto; aspect-ratio: 1; }
.nums-4 .dots i.on.w::after { margin-top: calc(50% - 0.75px); }
.wrong { margin-top: 48px; padding: 24px; border-radius: 28px; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; }
.list { display: grid; gap: 12px; margin-top: 16px; }
.list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); }
.list li > .i { margin-top: 4px; color: var(--muted); }
.list li > span { max-width: 48ch; }
.list b { color: var(--text); }
.sources { counter-reset: src; gap: 16px; margin-top: 0; }
.sources li { grid-template-columns: 32px minmax(0, 1fr); counter-increment: src; }
.sources li::before { content: counter(src, decimal-leading-zero); padding-top: 2px; font-family: var(--mono); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--faint); font-variant-numeric: tabular-nums; }
.note { margin-top: 24px; max-width: 48ch; color: var(--muted); }
.cta-end { display: grid; justify-items: start; }
.cta-end .h2 { margin-top: 12px; }
.cta-end .lede { margin-top: 16px; }
.cta-end > .btn { margin-top: 24px; }

/* 404 */
.notfound { min-height: 60vh; }
.notfound .btn { margin-top: 24px; }
.notfound .fine { margin-top: 16px; }

/* Get started: pick a setup (tabs), numbered steps, reference accordions */
.gs-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; }
.gs-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.gs-facts .i { color: var(--allow); }
.gs-invite { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--muted); }
.gs-body > h2:first-child { margin-top: 64px; }
.gs-tablist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.gs-tablist .p-card { display: grid; align-content: start; gap: 8px; min-height: 44px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-3); background: transparent; color: var(--muted); text-align: start; font: inherit; text-decoration: none; cursor: pointer; transition-property: background-color, color, border-color; transition-duration: 150ms; transition-timing-function: ease-out; }
.gs-tablist .p-card[aria-selected="true"] { background: var(--surface); color: var(--text); border-color: var(--text); }
.gs-tablist .p-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gs-tablist .p-name { font-size: var(--fs-heading-sm); line-height: var(--lh-heading-sm); font-weight: 600; color: var(--text); }
.gs-tablist .p-tag { padding: 2px 8px; border-radius: 9999px; background: var(--allow-bg); color: var(--allow); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 600; white-space: nowrap; }
.gs-tablist .p-desc { font-size: var(--fs-ui); line-height: var(--lh-ui-long); }
.gs-tablist .p-meta { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--faint); }
.gs-tablist .p-card[aria-selected="true"] .p-meta { color: var(--muted); }
.js .gs-tablist + .gs-panel { margin-top: 48px; }
.gs-panel { margin-top: 64px; }
.js .gs-panel { margin-top: 48px; }
.js .gs-panel .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the selected tab already names it */
.gs-panel > p { max-width: 60ch; margin-top: 16px; color: var(--muted); }
.gs-panel > p b, .gs-panel p b { color: var(--text); }
.gs-before { padding: 20px 24px; border-radius: 16px; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; }
.gs-before ul { margin-top: 8px; display: grid; gap: 8px; padding-inline-start: 1.25em; list-style: disc; color: var(--muted); max-width: 64ch; }
.gs-before li::marker { color: var(--faint); }
.gs-before b { color: var(--text); }
.gs-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--ask-bg); color: var(--text) !important; font-size: var(--fs-ui); line-height: var(--lh-ui-long); max-width: none !important; }
.gs-banner .i { width: 1.25rem; height: 1.25rem; margin-top: 1px; color: var(--ask); }
.gs-steps { counter-reset: gs; margin-top: 32px; display: grid; gap: 0; }
.gs-steps > li { position: relative; counter-increment: gs; padding-inline-start: 56px; padding-bottom: 40px; }
.gs-steps > li:last-child { padding-bottom: 0; }
.gs-steps > li::before { content: counter(gs); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9999px; border: 1px solid var(--line-3); background: var(--bg); font-size: var(--fs-ui); line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.gs-steps > li::after { content: ""; position: absolute; inset-inline-start: 15.5px; top: 40px; bottom: 8px; width: 1px; background: var(--line); }
.gs-steps > li:last-child::after { display: none; }
.gs-steps h3 { margin-top: 4px !important; }
.gs-steps > li > p { max-width: 60ch; margin-top: 12px; color: var(--muted); }
.gs-steps > li > p b { color: var(--text); }
.gs-steps pre { margin-top: 16px; }
.gs-steps .note-box { margin-top: 16px; max-width: 64ch; }
.gs-tip { margin-top: 16px; padding: 20px 24px; border-radius: 16px; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; max-width: 64ch; }
.gs-tip p { color: var(--muted); }
.gs-tip p + p { margin-top: 12px; }
.gs-tip .kicker { color: var(--text); }
.gs-tip .kicker + p { margin-top: 8px; }
.gs-example { padding: 12px 16px; border-radius: 12px; background: var(--sunken); color: var(--text) !important; }
.more { margin-top: 12px; }
.more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: 600; color: var(--text); border-radius: 8px; }
.more summary::-webkit-details-marker { display: none; }
.more summary .i { --sw: 16; color: var(--muted); transition: rotate 200ms var(--ease), color 150ms ease-out; }
.more[open] summary .i { color: var(--text); rotate: 45deg; }
.more pre { margin-top: 4px !important; }
.gs-verdicts { max-width: 64ch; }
.vd { display: inline-block; padding: 2px 10px; border-radius: 9999px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; }
.vd.allow { background: var(--allow-bg); color: var(--allow); }
.vd.ask { background: var(--ask-bg); color: var(--ask); }
.vd.block { background: var(--block-bg); color: var(--block); }
.gs-next { margin-top: 40px !important; padding-top: 24px; border-top: 1px solid var(--line); max-width: 64ch !important; }
.gs-ref { display: grid; gap: 8px; margin-top: 24px; }
.gs-ref details { border-radius: 16px; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; }
.gs-ref summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 20px; border-radius: 16px; list-style: none; cursor: pointer; font-weight: 600; }
.gs-ref summary::-webkit-details-marker { display: none; }
.gs-ref summary .i { width: 1.25rem; height: 1.25rem; color: var(--muted); transition: rotate 200ms var(--ease), color 150ms ease-out; }
.gs-ref details[open] summary .i { color: var(--text); rotate: 45deg; }
.ref-body { padding: 0 20px 20px; color: var(--muted); }
.ref-body > p, .ref-body > ul { max-width: 64ch; margin-top: 12px; }
.ref-body > :first-child { margin-top: 0; }
.ref-body ul { display: grid; gap: 8px; padding-inline-start: 1.25em; list-style: disc; }
.ref-body li::marker { color: var(--faint); }
.ref-body b { color: var(--text); }
.ref-body .table { margin-top: 12px; }
.ref-body > .table:first-child { margin-top: 0; }
.ref-body a, .gs-invite a, .gs-panel a:not(.btn), .gs-help a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.gs-help { margin-top: 32px !important; color: var(--muted); }
.gs .gs-tip, .gs .gs-steps .note-box, .gs .gs-verdicts { max-width: none; }
.prose .gs-tablist a.p-card { text-decoration: none; color: var(--muted); }
.prose .gs-tablist a.p-card[aria-selected="true"] { color: var(--text); }
.gs-steps > li, .gs-paths, .gs-panel { min-width: 0; }
.gs-body pre { max-width: 100%; }
.gs .note-box { border: 1px solid transparent; border-radius: 16px; background: var(--surface); box-shadow: var(--ring); padding: 16px 20px; }
.gs-h3 { margin-top: 32px; }
@media (max-width: 40em) {
  .gs-body pre { white-space: pre; overflow-wrap: normal; overflow-x: auto; } /* code keeps its lines on phones; scroll sideways */
  .gs .gs-steps > li { padding-inline-start: 0; }
  .gs .gs-steps > li::before { position: static; display: grid; margin-bottom: 8px; }
  .gs .gs-steps > li::after { display: none; }
  .gs .gs-steps > li { padding-bottom: 48px; }
}
@media (hover: hover) and (pointer: fine) {
  .gs-tablist .p-card:hover { color: var(--text); background: var(--surface); }
  .gs-tablist .p-card[aria-selected="true"]:hover { border-color: var(--text); }
  .gs-ref summary:hover .i, .more summary:hover .i { color: var(--text); }
}
@media (max-width: 53.75em) {
  .gs-tablist { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gs-tablist .p-card { padding: 12px 16px; gap: 4px; }
  .gs-steps > li { padding-inline-start: 44px; }
  .gs-steps > li::before { width: 28px; height: 28px; }
  .gs-steps > li::after { inset-inline-start: 13.5px; top: 36px; }
  .gs-before, .gs-tip { padding: 16px; }
}
@media (max-width: 68.6875em) {
  .gs .doc-grid > .toc { display: none; } /* below the two columns the setup cards are the contents */
}
@media (forced-colors: active) {
  .gs-tablist .p-card[aria-selected="true"] { border: 2px solid Highlight; }
}

/* ================= breakpoints ================= */
@media (min-width: 68.75em) {
  .doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; grid-template-areas: "intro toc" "body toc"; column-gap: 64px; }
  .doc-grid > .doc-intro { grid-area: intro; }
  .doc-grid > .toc { grid-area: toc; position: sticky; top: 96px; align-self: start; flex-direction: column; flex-wrap: nowrap; gap: 2px; margin-top: 0; }
  .doc-grid > .toc a { padding: 6px 10px; border: 0; border-radius: 8px; white-space: normal; }
  .doc-grid > .prose { grid-area: body; }
}

/* >=961: wide surfaces hold their content in two columns instead of one 48ch column and an empty half */
@media (min-width: 60.0625em) {
  .wrong .list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .pg-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .pg-sum > .sum-line { grid-column: 1; grid-row: 1; }
  .pg-sum > .sum-list { grid-column: 1; grid-row: 2 / span 2; }
  .pg-sum > .sum-note { grid-column: 2; grid-row: 1 / span 2; }
  .pg-sum > .cta-row { grid-column: 2; grid-row: 3; }
}

/* >=641: the invite pill sits 8px from the nav pill's edge on every side (18 + 8 = the 26px end cap) */
@media (min-width: 40.0625em) {
  .nav-pill { padding-inline-end: 7px; }
}

/* <=1160: title, four pills and the score fit one row only without the pill labels, so the first pick never shifts the deck */
@media (max-width: 72.5em) {
  .pg-nav .pl { display: none; }
  .pg-nav button { justify-content: center; min-width: 44px; min-height: 44px; padding: 4px; }
  .pg-nav .pn { width: 34px; height: 34px; }
  .pg-nav .ps { position: absolute; top: -3px; inset-inline-end: -3px; margin: 0; background: var(--surface); color: var(--text); } /* its own colours: the disc is --surface, never the pill's inverse */
  .pg-nav button[aria-current="step"] .pn { background: transparent; color: var(--text-inverse); }
}

@media (max-width: 68.6875em) {
  .nums-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 60em) {
  .sec { padding-block: 80px; }
  .tagline { padding-block: 64px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-list [role="tab"] { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; min-height: 64px; padding: 10px 14px; font-size: var(--fs-key); }
  .step-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; min-height: 0; }
  .sp-vis { padding: 0; border-radius: 0; background: none; box-shadow: none; border: 0; } /* its rows sit in the panel: no second rounded surface at a 24px or smaller inset */
  .demo-grid, .beta { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .nums { grid-template-columns: minmax(0, 1fr); }
  .nums:not(.nums-4) .num { grid-template-columns: auto minmax(0, 1fr); column-gap: 32px; align-items: center; }
  .nums:not(.nums-4) .num-tag, .nums:not(.nums-4) .num-d { grid-column: 1 / -1; }
  .nums:not(.nums-4) .dots { min-height: 0; justify-self: start; }
  .nums-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 53.75em) {
  :root { --fs-tx: 1.25rem; --ls-tx: -0.01em; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  /* the deck: a swipeable row of cards with the next one peeking in */
  .pg-shell { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .pg-head { padding: 0 0 12px; gap: 8px 12px; }
  .pg-title { flex-basis: 100%; }
  .pg-title p { margin-top: 4px; }
  .case { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "tx" "answer" "next"; gap: 0; border-radius: 24px; background: var(--surface-2); box-shadow: var(--ring); border: 1px solid transparent; }
  .tx-pane { min-height: 0; padding: 16px; gap: 12px; border-radius: 0; background: transparent; box-shadow: none; border: 0; }
  .keys-q { display: none; }
  .key { min-height: 72px; gap: 6px; padding: 8px 4px 10px; border-radius: 8px; font-size: var(--fs-key); } /* 24px card - 16px inset */
  .key .glyph { width: 32px; height: 32px; }
  .key .glyph svg { width: 18px; height: 18px; }
  .answer-pane { margin: 0 8px 8px; padding: 16px 12px; border-radius: 16px; }
  .js .case:not(.is-picked) .answer-pane { display: none; }
  .idle { display: none; }
  .gates { gap: 6px; }
  .gate { flex-direction: column; align-items: flex-start; gap: 6px; padding: 7px; font-size: var(--fs-caption); }
  .receipt { margin-inline: 2px; padding: 16px 14px 24px; }
  .r-rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .case > .next { justify-self: stretch; margin: 0 8px 8px; min-height: 48px; }
  /* the gap equals the gutter, so the previous card ends exactly at the screen edge; the next one peeks 28px in */
  .js .deck { margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; gap: 24px; }
  .js .case { flex: 0 0 calc(100% - 28px); }
  .js .deck::after { content: ''; flex: 0 0 4px; } /* 28px - gap: just room for the last card to snap to the gutter */
  .pg-sum { margin-inline-end: 28px; padding: 20px; border-radius: 24px; } /* the case card's width: both share their edges */
  .modes { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40em) {
  :root { --fs-lede: 1rem; --lh-lede: 1.5; }
  html { scroll-padding-top: 88px; }
  .wrap { padding-inline: 16px; }
  /* nav: brand, invite, burger; the links go behind the burger */
  .nav { top: 8px; padding-inline: 16px; }
  .nav-links { display: none; }
  .burger { display: block; }
  .pg-title-row { justify-content: space-between; }
  .nums:not(.nums-4) .dots { justify-self: end; }
  html:not(.js) .nav { position: absolute; }
  html:not(.js) .nav-pill { flex-wrap: wrap; justify-content: center; border-radius: 24px; padding: 4px 8px; }
  html:not(.js) .nav-links { display: flex; order: 3; flex-basis: 100%; justify-content: center; }
  html:not(.js) main { margin-top: 48px; } /* adds to .doc / .hero / .hero-short top padding: the wrapped no-JS nav pill is taller */
  .sec { padding-block: 64px; }
  .sec-head { margin-bottom: 24px; }
  .hero { padding-top: 72px; }
  .h1 { margin-top: 12px; }
  .hero-row { margin-top: 12px; }
  .pg { margin-top: 24px; }
  .hero-act--wide { display: none; }
  .hero-act--narrow { display: grid; gap: 16px; justify-items: stretch; margin-top: 24px; padding-bottom: 16px; }
  .hero-act--narrow .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-act--narrow .cta-row .btn { min-height: 48px; }
  .hero-act--narrow .cta-row .link { align-self: center; padding-block: 4px; }
  .pg.is-done ~ .hero-act--narrow .btn { display: none; }
  .js .deck { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; gap: 16px; }
  .js .deck::after { flex-basis: 12px; }
  .tagline { padding-block: 48px; }
  .play { width: 64px; height: 64px; }
  .steps-list [role="tab"] { padding: 10px; font-size: var(--fs-ui); line-height: var(--lh-heading-sm); } /* tab labels keep their heading leading */
  .step-panel { padding: 20px 16px; border-radius: 24px; }
  .mode { padding: 20px 16px; border-radius: 24px; }
  .code code { white-space: normal; overflow-wrap: anywhere; }
  .faq summary { min-height: 60px; }
  .form { padding: 20px 16px; border-radius: 24px; }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { width: 100%; }
  footer { padding: 32px 0 48px; }
  /* secondary pages */
  .doc { padding-top: 88px; padding-bottom: 64px; }
  .hero-short { padding-top: 88px; }
  .prose h2 { margin-top: 48px; font-size: 1.5rem; }
  .toc { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { flex: none; }
  .nums-4 { grid-template-columns: minmax(0, 1fr); }
  .nums-4 .dots, .nums-4 .dots-spacer { min-height: 0; } /* one column: nothing to keep level, so no empty band under short dot rows */
  .wrong { padding: 20px 16px; border-radius: 24px; }
  .num, .num-link { border-radius: 24px; }
  .mp-vis { padding: 0; border-radius: 0; background: none; box-shadow: none; border: 0; } /* a 16px inset is too small for a second rounded surface */
  .dots-spacer { display: none; }
  /* tables become one labelled card per row */
  .table, .doc .table, .prose table { display: block; border: 0; border-radius: 0; overflow: visible; }
  .table thead, .prose table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .table tbody, .table tr, .table td, .prose table tbody, .prose table tr, .prose table td { display: block; }
  .table tr, .prose table tr { margin-bottom: 8px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--ring); border: 1px solid transparent; }
  .table td, .prose table td { padding: 0; border: 0; }
  .table td + td, .prose table td + td { margin-top: 12px; }
  .table td[data-label]::before { content: attr(data-label); content: attr(data-label) / ""; display: block; margin-bottom: 2px; font: 600 var(--fs-caption)/var(--lh-caption) 'Geist', system-ui, sans-serif; color: var(--faint); }
  .table tr.us { box-shadow: var(--ring), inset 2px 0 0 var(--text); }
  .table tr.us td:first-child { border-inline-start: 0; padding-inline-start: 0; }
  [dir="rtl"] .table tr.us { box-shadow: var(--ring), inset -2px 0 0 var(--text); }
}

@media (max-width: 30em) {
  .nums:not(.nums-4) .num { grid-template-columns: minmax(0, 1fr); }
  .nums:not(.nums-4) .dots { justify-self: start; }
  .num-link { padding: 20px; }
}

@media (max-width: 23.75em) {
  .steps-list [role="tab"] { font-size: var(--fs-small); padding-inline: 8px; }
}

@media (max-width: 22.4375em) {
  :root { --fs-tx: 1.125rem; } /* keeps "3,000,000,000 DRB" (one unbreakable unit) and the answer keys on the first screen at 320 */
  .nav { padding-inline: 8px; }
  .nav-pill { padding-inline-start: 12px; }
  .brand { margin-inline-end: 4px; }
  .nav-pill { max-width: 100%; min-width: 0; }
  .brand { min-width: 0; }
  /* narrow screens and large text: a label, tag or long word wraps rather than widen the page */
  .btn { white-space: normal; text-align: center; }
  .tag, .badge, .chip, .table td code.nobreak { white-space: normal; }
  h1, h2, h3, .table td code.nobreak { overflow-wrap: anywhere; }
  .nav-pill .btn { min-width: 0; padding-inline: 12px; font-size: var(--fs-small); }
}
/* <=319 (large text on a phone): brand and menu only; the menu still ends with the invite */
@media (max-width: 19.9375em) {
  .nav-pill .btn { display: none; }
}

/* ================= light scheme: values that are not tokens ================= */
@media (prefers-color-scheme: light) {
  .key { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
  .video video { outline-color: rgba(0, 0, 0, 0.1); }
  .form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%235E5E5E' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); }
}
/* increased contrast: the select chevron is --faint, lifted to --muted like every other icon (after the light rule above) */
@media (prefers-contrast: more) { .form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23BDBDBD' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); } }
@media (prefers-contrast: more) and (prefers-color-scheme: light) { .form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%233D3D3D' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); } }

/* ================= hover (pointer devices only) ================= */
@media (hover: hover) {
  .btn:not([aria-disabled="true"]):hover { background: var(--btn-hover); }
  .btn-ghost:not([aria-disabled="true"]):hover { background: var(--bg-hover); }
  .link:hover, .prose a:not(.btn):hover, .doc-intro a:not(.btn):hover, .note a:hover, .wrong a:hover, .sources a:hover { text-decoration-color: currentColor; }
  .nav-links a:hover { color: var(--text); background: var(--bg-hover); }
  .menu a:not(.btn):hover { color: var(--text); }
  .foot-links a:hover { color: var(--text); }
  .proof-line:hover span { text-decoration-color: currentColor; }
  .pg-nav button:hover { color: var(--text); border-color: var(--line-3); }
  .pg-nav button[aria-current="step"]:hover { color: var(--text-inverse); border-color: var(--bg-inverse); }
  .key.allow:not([aria-disabled="true"]):hover { border-color: var(--allow); }
  .key.ask:not([aria-disabled="true"]):hover { border-color: var(--ask); }
  .key.block:not([aria-disabled="true"]):hover { border-color: var(--block); }
  .steps-list [role="tab"]:hover { color: var(--text); background: var(--surface); }
  .steps-list [role="tab"][aria-selected="true"]:hover { border-color: var(--text); }
  .num-link:hover { box-shadow: var(--ring-hover); }
  .faq details:hover { box-shadow: var(--ring-hover); }
  .transcript summary:hover .i { color: var(--text); }
  .copy:hover { background: var(--bg-hover); }
  .play:hover { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2), 0 8px 24px -8px rgba(0, 0, 0, 0.6); }
  .toc a:hover { color: var(--text); background: var(--bg-hover); }
  .form input:hover, .form select:hover, .form textarea:hover { border-color: var(--border-hover); }
  .form [aria-invalid="true"]:hover { border-color: var(--block); }
}
@media (hover: hover) and (pointer: fine) {
  .key kbd { display: block; }
}
@media (pointer: coarse) {
  .hint-touch { display: inline; }
  .hint-keys { display: none; }
}

/* ================= motion: only when the visitor has not asked for less ================= */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* press */
  .btn, .key, .pg-nav button, .steps-list [role="tab"], .num-link, .copy, .play, .burger { transition-property: background-color, border-color, color, opacity, box-shadow, scale; transition-duration: 150ms; transition-timing-function: ease-out; }
  .btn:not(:disabled):not([aria-disabled="true"]):active,
  .key:not(:disabled):not([aria-disabled="true"]):active,
  .pg-nav button:not(:disabled):not([aria-disabled="true"]):active,
  .steps-list [role="tab"]:not(:disabled):not([aria-disabled="true"]):active,
  .num-link:not([aria-disabled="true"]):active,
  .copy:not(:disabled):not([aria-disabled="true"]):active,
  .play:not(:disabled):active,
  .burger:not(:disabled):active { scale: 0.96; }
  .key:not([aria-disabled="true"]):active { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.55); }
  .js .case.is-picked > .next { animation: rise 300ms ease-out both; } /* no delay: Next is never focusable while invisible */
  /* links and small icon moves */
  .link .i { transition: translate 150ms ease-out; }
  .num-link .go { transition: translate 150ms ease-out; }
  .faq summary .i, .transcript summary .i { transition-property: color, rotate; transition-duration: 150ms; transition-timing-function: ease-out; }
  .burger span { transition-property: translate, rotate; transition-duration: 150ms; transition-timing-function: ease-out; }
  .menu a { translate: 0 12px; }
  .menu-open .menu a { translate: none; }
  .copy .ic-done, .copy.done .ic-copy { scale: 0.25; filter: blur(4px); }
  .copy.done .ic-done { scale: 1; filter: none; }
  /* section entrance: a 12px rise only. Content is visible by default (never hidden until a reveal fires: fast
     scrolling used to show empty screens); motion only enhances. The second chunk of a section 100ms later. */
  .js [data-reveal] { transition-property: translate; transition-duration: 300ms; transition-timing-function: ease-out; }
  .js [data-reveal]:not(.in) { translate: 0 12px; }
  .js .sec-head[data-reveal] ~ [data-reveal], .js .beta-copy[data-reveal] ~ [data-reveal] { transition-delay: 100ms; }
  /* number dots fill when the tile comes into view */
  .js .dots i.on { transition: background-color 200ms ease-out; }
  .js .dots:not(.lit) i.on { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-3); }
  .js .dots:not(.lit) i.on.w::after { opacity: 0; }
  /* the game */
  .js .deck.fitted { transition: height 300ms var(--ease); }
  .gate.on .g-ico { animation: pop 300ms var(--ease); }
  .js .case.is-answered .receipt { animation: print 900ms steps(9, end) both; }
  .score-v.bump b { animation: bump 300ms var(--ease); }
  .pg-sum:not([hidden]) { animation: rise 300ms ease-out both; }
  .js .step-panel:not([hidden]) { animation: fade 150ms ease-out; }
}
@media (prefers-reduced-motion: no-preference) and (prefers-color-scheme: light) {
  .key:not([aria-disabled="true"]):active { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12); } /* the light edge only sinks */
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .link:hover .i { translate: 2px 0; }
  .num-link:hover .go { translate: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-open .menu, .menu-open .menu a { transition: opacity 150ms ease-out; }
  .js .case.is-answered .receipt, .js .case.is-picked > .next, .pg-sum:not([hidden]) { animation: fade 200ms ease-out both; }
}
@keyframes print { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pop { from { scale: 0.6; } to { scale: 1; } }
@keyframes bump { 0% { scale: 1; } 40% { scale: 1.25; } 100% { scale: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ================= forced colours ================= */
@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
  .pg-nav button[aria-current="step"], .steps-list [role="tab"][aria-selected="true"] { border: 2px solid Highlight; }
  .key.is-picked[aria-disabled="true"] { border: 3px solid Highlight; }
  .dots i, .dots i.on, .play, .nv-ico, .ticks .tick, .key .glyph, .r-verdict .glyph, .r-match .m-ico, .pg-nav .ps, .sum-list .s-ico { forced-color-adjust: none; }
  .dots i { box-shadow: inset 0 0 0 1.5px CanvasText; }
  .dots i.on { background: CanvasText; }
  .tagline .w { color: CanvasText; }
  .play:focus-visible { outline-color: Highlight; }
  /* same call = filled badge, different call = outlined badge, also in forced colours */
  .pg-nav button.is-same .ps, .pg-nav button[aria-current="step"].is-same .ps, .r-match:not(.diff) .m-ico, .sum-list .same .s-ico { background: CanvasText; color: Canvas; }
  .pg-nav button.is-diff .ps, .r-match.diff .m-ico, .sum-list .diff .s-ico { background: Canvas; color: CanvasText; box-shadow: inset 0 0 0 1.5px CanvasText; }
}
