/* SecurityMocks design system: shared by every page. */
/* =====================================================================
   TYPE CHOICES (owner requirement: sturdy, long-reading body; no thin fonts)

   Body: Atkinson Hyperlegible Next (400/500/600/700 + italics)
     Designed by the Braille Institute for low-vision readers: large x-height, open apertures,
     generous spacing and real text weights. Its glyphs are deliberately disambiguated
     (I / l / 1, 0 / O, rn / m), which matters on a site full of acronyms, IP addresses,
     CIDR ranges, hashes and port numbers. Set at 17–18px, line-height 1.7, 68ch measure.

   Display: Bricolage Grotesque (600–800, optical-size axis)
     A grotesque with ink traps and a slightly quirky, warm character. Confident and
     youthful at 700–800 without the "hacker terminal" cliché; the opsz axis keeps large
     headings tight and smaller headings sturdy.

   Mono: JetBrains Mono (400–600)
     Tall x-height, slashed/dotted zero and clear l/1, built for reading code and logs;
     used for objective IDs, ports, firewall rules and log lines.
   ===================================================================== */

:root {
  /* ---- Palette: warm paper, deep indigo ink, electric violet, coral; mint/rose for right/wrong ---- */
  --bg: #FFF8F1;
  --surface: #FFFFFF;
  --surface-2: #F6EEE4;
  --surface-3: #F1ECFF;
  --ink: #17123F;
  --ink-2: #4B4670;
  --ink-3: #6A6590;
  --line: #E7DCCF;
  --line-strong: #D3C4B2;
  --brand: #4330D9;
  --brand-hover: #3523BE;
  --brand-soft: #ECE8FF;
  --on-brand: #FFFFFF;
  --lav: #7B6CF6;
  --coral: #FF7A59;
  --coral-soft: #FFE7DD;
  --coral-ink: #B23A17;
  --mint: #087352;
  --mint-soft: #DDF5EC;
  --rose: #B42543;
  --rose-soft: #FCE4E8;
  --on-state: #FFFFFF;
  --night: #15103A;
  --night-2: #1F1852;
  --night-ink: #F3F0FF;
  --night-ink-2: #C9C3F2;
  --night-line: #352C7A;
  --night-accent: #FF9B7E;
  --night-lav: #A99CFF;
  --focus: #4330D9;

  --shadow-1: 0 1px 2px rgb(23 18 63 / .06), 0 2px 8px rgb(23 18 63 / .05);
  --shadow-2: 0 2px 4px rgb(23 18 63 / .05), 0 14px 34px rgb(23 18 63 / .09);
  --shadow-3: 0 4px 10px rgb(23 18 63 / .06), 0 30px 70px rgb(23 18 63 / .18);

  /* ---- Type ---- */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Every font size on the site comes from this list. Text that sits side by side in the same
     role (nav links, footer links, buttons, card text) always shares one token. */
  --text-label: .75rem;                                        /* 12px: mono uppercase labels, tags */
  --text-mono: .8125rem;                                       /* 13px: mono data: chips, specs, codes, axes */
  --text-sm: .9375rem;                                         /* 15px: captions, footnotes, legal, helper text */
  --text-ui: 1rem;                                             /* 16px: nav + footer links, buttons, fields, card text */
  --step-0: clamp(1.0625rem, 1.02rem + .2vw, 1.125rem);        /* 17 → 18px: body */
  --step-1: clamp(1.1875rem, 1.12rem + .35vw, 1.375rem);       /* 19 → 22px: lead, h4 */
  --text-title: clamp(1.125rem, 1.07rem + .25vw, 1.25rem);    /* 18 → 20px: small titles (cards, steps, FAQ) */
  --step-2: clamp(1.375rem, 1.24rem + .6vw, 1.75rem);          /* 22 → 28px: h3 */
  --step-3: clamp(1.95rem, 1.5rem + 2vw, 3rem);                /* 31 → 48px: h2 */
  --step-4: clamp(2.45rem, 1.65rem + 3.6vw, 4.5rem);           /* 39 → 72px: h1 */
  /* Display numerals are graphics (big stats), in three sizes */
  --display-s: clamp(2.4rem, 1.8rem + 2.4vw, 3.5rem);
  --display-m: clamp(2.6rem, 1.9rem + 2.6vw, 4.5rem);
  --display-l: clamp(3.4rem, 1.8rem + 6vw, 7rem);
  --measure: 68ch;

  /* ---- Space & shape ---- */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --r-s: 10px;
  --r: 16px;
  --r-l: 24px;
  --r-xl: 32px;
}

/* Dark tokens apply when the device is dark (unless the visitor chose light) or when the visitor chose dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0B24;
    --surface: #17133A;
    --surface-2: #201B4B;
    --surface-3: #241E58;
    --ink: #F3F0FF;
    --ink-2: #C3BEE6;
    --ink-3: #A39DCB;
    --line: #2E2866;
    --line-strong: #463E91;
    --brand: #9D8FFF;
    --brand-hover: #B7ADFF;
    --brand-soft: #262058;
    --on-brand: #0E0B24;
    --coral-soft: #3A1F2E;
    --coral-ink: #FF9B7E;
    --mint: #4FD6A8;
    --mint-soft: #11372F;
    --rose: #FF8399;
    --rose-soft: #3D1A2C;
    --on-state: #0E0B24;
    --night: #130F33;
    --night-2: #1C1748;
    --focus: #B7ADFF;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-2: 0 14px 34px rgb(0 0 0 / .35);
    --shadow-3: 0 30px 70px rgb(0 0 0 / .5);
  }
  :root:not([data-theme="light"]) img.art { filter: brightness(.94) saturate(1.04); }
}
:root[data-theme="dark"] {
    --bg: #0E0B24;
    --surface: #17133A;
    --surface-2: #201B4B;
    --surface-3: #241E58;
    --ink: #F3F0FF;
    --ink-2: #C3BEE6;
    --ink-3: #A39DCB;
    --line: #2E2866;
    --line-strong: #463E91;
    --brand: #9D8FFF;
    --brand-hover: #B7ADFF;
    --brand-soft: #262058;
    --on-brand: #0E0B24;
    --coral-soft: #3A1F2E;
    --coral-ink: #FF9B7E;
    --mint: #4FD6A8;
    --mint-soft: #11372F;
    --rose: #FF8399;
    --rose-soft: #3D1A2C;
    --on-state: #0E0B24;
    --night: #130F33;
    --night-2: #1C1748;
    --focus: #B7ADFF;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-2: 0 14px 34px rgb(0 0 0 / .35);
    --shadow-3: 0 30px 70px rgb(0 0 0 / .5);
}
:root[data-theme="dark"] img.art { filter: brightness(.94) saturate(1.04); }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Brand tokens used by the logo mark, light buttons and the CTA band */
:root { --mark: #4330D9; --mark-night: #6B57FF; --cta-1: #6B4BFF; --cta-2: #3B2CC4; --cta-3: #22197A; --light-hover: #F1ECFF; }

/* Light/dark toggle in the header */
.theme-toggle {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle .icon { width: 20px; height: 20px; }
.no-js .theme-toggle { display: none; }
@media (max-width: 480px) {
  .site-header .header-inner { gap: 10px; }
  .nav-toggle { width: 44px; padding: 0; justify-content: center; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) { .site-header .brand-name { font-size: var(--text-ui); } .site-header .brand-mark { width: 30px; height: 30px; } }

/* =========================== Base =========================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a:focus-visible:not(.btn) { border-radius: 4px; }
.section-night :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--night-lav); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: var(--step-4); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: var(--step-3); line-height: 1.08; font-weight: 760; letter-spacing: -.028em; }
h3 { font-size: var(--step-2); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
h4 { font-size: var(--step-1); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
strong, b { font-weight: 700; }
code, kbd, samp, .mono { font-family: var(--font-mono); font-size: .88em; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--on-brand); }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-alt { background: var(--alt-bg); }

/* =========================== Page texture (light mode) ===========================
   Warm paper with a fine ink grain, two soft brand glows pinned to the viewport, and a faint 32px
   blueprint grid that shows in the margins and fades out behind the reading column. Alternate sections
   are slightly translucent so the paper shows through. Dark mode keeps its plain night background. */
:root {
  --alt-bg: color-mix(in srgb, var(--surface-2) 76%, transparent);
  --tex: 1;
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .07 0 0 0 0 .25 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --alt-bg: var(--surface-2); --tex: 0; } }
:root[data-theme="dark"] { --alt-bg: var(--surface-2); --tex: 0; }
body::before, body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--tex);
}
body::before {
  background:
    radial-gradient(55vmax 42vmax at -5% -8%, color-mix(in srgb, var(--lav) 15%, transparent), transparent 72%),
    radial-gradient(48vmax 38vmax at 105% 108%, color-mix(in srgb, var(--coral) 13%, transparent), transparent 72%),
    radial-gradient(30vmax 26vmax at 100% 30%, color-mix(in srgb, var(--mint) 6%, transparent), transparent 70%),
    var(--tex-grain);
  background-size: auto, auto, auto, 180px 180px;
}
body::after {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--brand) 9%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--brand) 9%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 62% 75% at 50% 42%, transparent 45%, #000 100%);
  mask-image: radial-gradient(ellipse 62% 75% at 50% 42%, transparent 45%, #000 100%);
}
@media (max-width: 760px) { body::after { opacity: calc(var(--tex) * .55); } }
@media print { body::before, body::after { display: none; } }
/* The page grid already textures light mode, so the hero's own dot grid only shows in dark mode. */
.hero::before { opacity: calc(1 - var(--tex)); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head > p:not(.eyebrow) { color: var(--ink-2); font-size: var(--step-1); line-height: 1.6; margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--coral-ink);
  margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); }

/* =========================== Buttons, tags =========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.35rem;
  border-radius: 14px; border: 2px solid transparent;
  font: 700 var(--text-ui)/1.2 var(--font-body); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #FFFFFF; color: var(--mark); }
.btn-light:hover { background: var(--light-hover); color: var(--cta-3); }
.btn-outline-light { background: transparent; color: #FFFFFF; border-color: rgb(255 255 255 / .55); }
.btn-outline-light:hover { border-color: #FFFFFF; color: #FFFFFF; background: rgb(255 255 255 / .08); }
.btn-sm { min-height: 44px; padding: .55rem 1rem; font-size: var(--text-ui); border-radius: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-mono); font-size: var(--text-label); font-weight: 600; line-height: 1.3;
  padding: .3rem .65rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
}
.tag-coral { background: var(--coral-soft); color: var(--coral-ink); }
.tag-mint { background: var(--mint-soft); color: var(--mint); }
.tag-plain { background: var(--surface-2); color: var(--ink-2); }
.section-alt .tag-plain { background: var(--surface); }
.arrow-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.arrow-link .icon { transition: transform .18s ease; }
.arrow-link:hover .icon { transform: translateX(3px); }

/* =========================== Header =========================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: var(--text-title); letter-spacing: -.03em; }
.brand-name .brand-accent { color: var(--brand); }
.site-footer .brand-name .brand-accent { color: var(--night-lav); }
.brand-mark { overflow: visible; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 700 var(--text-ui) var(--font-body); cursor: pointer;
}
.menu { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu ul a, .menu .sub-toggle {
  display: flex; align-items: center; gap: 6px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--text-ui);
  min-height: 44px; padding: 0 12px; border-radius: 10px;
  background: none; border: 0; font-family: var(--font-body); cursor: pointer; width: 100%;
}
.menu ul a:hover, .menu .sub-toggle:hover { color: var(--ink); background: var(--surface-2); }
.menu-actions .login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; }
.menu-actions .login:hover { background: var(--surface-2); color: var(--ink); }
.sub-toggle .icon { width: 1rem; height: 1rem; transition: transform .2s ease; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub { display: none; }
.sub-toggle[aria-expanded="true"] + .sub { display: block; }
.menu-actions { display: flex; align-items: center; gap: 8px; }
.menu-actions .login { font-weight: 700; font-size: var(--text-ui); color: var(--ink); }
.menu[data-open="true"] {
  display: block; position: absolute; left: 0; right: 0; top: 68px;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
  padding: 12px var(--gutter) 20px; max-height: calc(100dvh - 68px); overflow-y: auto;
}
.menu[data-open="true"] .sub { padding-left: 14px; border-left: 2px solid var(--line); margin: 4px 0 8px 12px; }
.menu[data-open="true"] .menu-actions { flex-direction: column; align-items: stretch; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.menu[data-open="true"] .menu-actions .btn { width: 100%; }
.menu[data-open="true"] .menu-actions .login { justify-content: center; }

@media (min-width: 1400px) {
  .nav-toggle { display: none; }
  .menu, .menu[data-open="true"] {
    display: flex; align-items: center; gap: 14px; position: static;
    background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible;
  }
  .menu > ul { display: flex; align-items: center; gap: 2px; }
  .menu ul a, .menu .sub-toggle { font-size: var(--text-ui); padding: 0 9px; width: auto; white-space: nowrap; }
  .menu-actions a { white-space: nowrap; }
  .has-sub { position: relative; }
  .menu .sub, .menu[data-open="true"] .sub {
    position: absolute; top: calc(100% + 8px); left: -8px; min-width: 250px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-2); padding: 8px; margin: 0;
  }
  .menu .sub a { width: 100%; }
  .menu-actions .btn { min-height: 46px; }
}

/* =========================== Hero =========================== */
.hero { position: relative; isolation: isolate; padding-top: clamp(40px, 6vw, 84px); padding-bottom: var(--section); text-align: center; overflow: hidden; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 0);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 62%);
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; inset: -10% -10% auto;
  height: 720px;
  background:
    radial-gradient(40% 50% at 18% 20%, color-mix(in srgb, var(--lav) 22%, transparent), transparent 70%),
    radial-gradient(36% 46% at 84% 12%, color-mix(in srgb, var(--coral) 20%, transparent), transparent 70%);
}
.hero-copy { max-width: 940px; margin-inline: auto; }
.hero .eyebrow { justify-content: center; color: var(--ink-2); text-transform: none; letter-spacing: .01em; font-size: var(--text-sm); font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); padding: .4rem .9rem .4rem .5rem; border-radius: 999px; box-shadow: var(--shadow-1); }
.hero .eyebrow::before { display: none; }
.hero .eyebrow { font-family: var(--font-body); font-size: var(--text-sm); }
.hero .eyebrow .tag { font-size: var(--text-label); }
@media (max-width: 560px) { .hide-sm { display: none; } .hero-ctas .btn { width: 100%; } }
.hero h1 { margin: 1.1rem auto 0; max-width: 16ch; }
.hero h1 .hl { color: var(--brand); text-decoration: underline wavy var(--coral); text-decoration-thickness: .055em; text-underline-offset: .16em; text-decoration-skip-ink: none; }
.hero-sub { max-width: 60ch; margin: 1.4rem auto 0; font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2rem; }
.hero-note { margin: 1rem 0 0; font-size: var(--text-sm); color: var(--ink-3); }
.hero-facts { list-style: none; padding: 0; margin: 1.6rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-facts li {
  font-family: var(--font-mono); font-size: var(--text-mono); font-weight: 500; line-height: 1.3;
  padding: .45rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.hero-facts b { color: var(--ink); font-weight: 600; }

.stage { position: relative; margin-top: clamp(40px, 5vw, 72px); }
.stage-art { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); background: var(--surface-2); }
.stage-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 6% 50%; }
@media (min-width: 720px) { .stage-art img { aspect-ratio: 2 / 1; object-position: 50% 50%; } }

/* =========================== Sample question card =========================== */
.qcard {
  position: relative; text-align: left;
  width: min(100% - 16px, 660px); margin: -36px auto 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-3); padding: clamp(18px, 3.2vw, 30px);
}
@media (min-width: 720px) { .qcard { margin-top: -120px; } }
@media (min-width: 1100px) { .qcard { margin-top: calc(-1 * min(31vw, 372px)); transform: translateX(56px); } }
.qcard-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.qcard-top .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qcard-mode { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--ink-3); font-weight: 600; }
.qcard h2 { font-size: var(--text-ui); font-family: var(--font-mono); font-weight: 600; letter-spacing: 0; color: var(--ink-3); margin: 0 0 .5rem; }
.qstem { font-size: var(--step-0); line-height: 1.62; margin: 0 0 18px; color: var(--ink); }
.qstem strong { font-weight: 700; }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.opt {
  width: 100%; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start;
  text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px;
  padding: 11px 14px; min-height: 56px;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt:hover { border-color: var(--brand); background: var(--brand-soft); }
.opt[aria-disabled="true"] { cursor: default; }
.opt[aria-disabled="true"]:hover { background: var(--surface); border-color: var(--line-strong); }
.opt .key {
  grid-row: span 3; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: var(--text-ui);
  background: var(--surface-2); color: var(--ink-2);
}
.opt .label { display: block; font-weight: 700; padding-top: 4px; line-height: 1.4; }
.opt .verdict { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-family: var(--font-mono); font-size: var(--text-label); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.opt .verdict .icon { width: 1rem; height: 1rem; stroke-width: 2.6; }
.opt .v-correct { color: var(--mint); }
.opt .v-wrong { color: var(--rose); }
.opt .why { display: block; margin-top: 4px; font-size: var(--text-ui); line-height: 1.58; color: var(--ink-2); }
.opt .yours { display: none; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: var(--text-label); letter-spacing: .04em; }
.js .opt .verdict, .js .opt .why { display: none; }
.js .answered .opt .verdict { display: inline-flex; }
.js .answered .opt .why { display: block; }
.answered .opt.is-chosen .yours { display: inline-block; }
.answered .opt.is-correct-opt { border-color: var(--mint); background: var(--mint-soft); }
.answered .opt.is-correct-opt .key { background: var(--mint); color: var(--on-state); }
.answered .opt.is-chosen:not(.is-correct-opt) { border-color: var(--rose); background: var(--rose-soft); }
.answered .opt.is-chosen:not(.is-correct-opt) .key { background: var(--rose); color: var(--on-state); }
.answered .opt:not(.is-correct-opt):not(.is-chosen) .label { color: var(--ink-2); }
.qcard-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.qresult { margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: var(--text-ui); line-height: 1.5; }
.qresult:empty { display: none; }
.qresult:focus { outline: none; }
.qresult.ok { color: var(--mint); background: var(--mint-soft); }
.qresult.no { color: var(--rose); background: var(--rose-soft); }
.qhint { margin: 0; color: var(--ink-3); font-size: var(--text-sm); line-height: 1.5; }
.answered .qhint { display: none; }
.qsources { font-size: var(--text-sm); line-height: 1.55; color: var(--ink-3); margin: 0 0 12px; }
.qactions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.qactions .qreport { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); color: var(--ink-3); }
.js .qcard:not(.answered) .qsources, .js .qcard:not(.answered) .qactions { display: none; }

/* =========================== Shared section bits =========================== */
.section-head.center > p:not(.eyebrow) { margin-inline: auto; max-width: 62ch; }
.section-head.center .eyebrow { justify-content: center; }
.kicker { font-family: var(--font-mono); font-size: var(--text-mono); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .6rem; }
.story { margin-top: clamp(64px, 8vw, 112px); }
.story-head { max-width: 720px; margin: 0 auto clamp(24px, 3vw, 36px); text-align: center; }
.story-head h3 { font-size: var(--step-2); margin-bottom: .35rem; }
.story-head p { margin: 0; color: var(--ink-2); }
.small-note { max-width: 70ch; margin: 22px auto 0; text-align: center; font-size: var(--text-ui); line-height: 1.6; color: var(--ink-3); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li { font-family: var(--font-mono); font-size: var(--text-mono); font-weight: 600; padding: .45rem .85rem; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink); }

/* =========================== 2. Track (how it works) =========================== */
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; position: relative; }
.track::before {
  content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 7px, transparent 7px 14px);
}
.stop { position: relative; padding-left: 52px; }
.stop-dot { position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 4px solid var(--brand); }
.stop.go .stop-dot { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 7px color-mix(in srgb, var(--coral) 24%, transparent); }
.stop-n {
  display: block; margin: 0 0 16px;
  font-family: var(--font-display); font-weight: 800; font-size: var(--display-l); line-height: .82; letter-spacing: -.055em;
  color: transparent; -webkit-text-stroke: 1.6px color-mix(in srgb, var(--brand) 60%, transparent);
}
.stop.go .stop-n { color: var(--coral); -webkit-text-stroke: 0; }
.stop h3 { font-size: var(--text-title); margin-bottom: .3rem; }
.stop p { margin: 0; color: var(--ink-2); font-size: var(--text-ui); line-height: 1.6; max-width: 32ch; }
.stop .arrow-link { margin-top: 10px; font-size: var(--text-ui); }
.track-loop {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; width: fit-content; max-width: 100%;
  margin: 44px auto 0; padding: 10px 18px; border-radius: 999px; border: 1.5px dashed var(--line-strong);
  font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-2); text-align: center;
}
.track-loop .icon { color: var(--coral-ink); }
@media (min-width: 900px) {
  .track { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .track::before { left: 0; right: 0; top: 9px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(to right, var(--line-strong) 0 7px, transparent 7px 14px); }
  .track::after {
    content: ""; position: absolute; top: 5px; left: 0; width: 10px; height: 10px; border-radius: 50%;
    background: var(--coral); animation: packet 7s linear infinite;
  }
  .stop { padding-left: 0; padding-top: 44px; }
  .stop-dot { top: 0; }
}
@keyframes packet { from { left: 0; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }

/* =========================== Night sections =========================== */
.section-night { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; overflow: clip; }
.section-night h2, .section-night h3, .section-night h4 { color: var(--night-ink); }
.section-night .eyebrow { color: var(--night-accent); }
.section-night .section-head p, .section-night .muted { color: var(--night-ink-2); }
.section-night a:not(.btn) { color: var(--night-lav); }
.section-night a:not(.btn):hover { color: #FFFFFF; }
.section-night::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .07) 1px, transparent 0);
  background-size: 24px 24px;
}
.section-night > .container { position: relative; }

/* =========================== 3. Score report: annotated specimen =========================== */
.specimen { display: grid; gap: 28px; grid-template-areas: "report" "left" "right"; }
.specimen .report { grid-area: report; width: 100%; max-width: 600px; justify-self: center; }
.callouts { grid-area: left; list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; align-content: start; }
.callouts-r { grid-area: right; }
.callout { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--night-ink-2); font-size: var(--text-ui); line-height: 1.55; }
.callout b { display: block; color: var(--night-ink); font-family: var(--font-display); font-size: var(--text-title); line-height: 1.3; letter-spacing: -.01em; margin-bottom: 2px; }
.pin {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--coral); color: #2A1208; font: 700 var(--text-mono)/1 var(--font-mono);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--coral) 26%, transparent);
}
.report .pin { width: 24px; height: 24px; font-size: var(--text-label); margin-left: 8px; vertical-align: middle; box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 28%, transparent); }
@media (min-width: 1100px) {
  .specimen { grid-template-columns: 1fr minmax(0, 580px) 1fr; grid-template-areas: "left report right"; gap: 0 48px; }
  .callouts { align-content: space-between; padding: 40px 0 70px; }
  .callouts-r { align-content: end; padding: 0 0 46px; gap: 64px; }
  .callouts-l .callout { grid-template-columns: 1fr 34px; text-align: right; }
  .callouts-l .callout .pin { order: 2; }
  .callout::after { content: ""; position: absolute; top: 15px; width: 38px; border-top: 2px dashed color-mix(in srgb, var(--coral) 70%, transparent); }
  .callouts-l .callout::after { right: -44px; }
  .callouts-r .callout::after { left: -44px; }
}

.report {
  position: relative; background: var(--surface); color: var(--ink); border-radius: var(--r-l);
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgb(0 0 0 / .35);
  padding: clamp(18px, 3vw, 30px); margin: 0;
}
.report-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.report-head .title { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.score-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.score-big { font-family: var(--font-display); font-weight: 800; font-size: var(--display-m); line-height: .95; letter-spacing: -.04em; color: var(--ink); }
.score-big small { font-size: .32em; letter-spacing: 0; color: var(--ink-3); font-weight: 700; margin-left: 4px; }
.score-label { display: block; font-size: var(--text-sm); color: var(--ink-3); margin-top: 6px; font-family: var(--font-body); letter-spacing: 0; }
.verdict-chip { font-size: var(--text-sm); font-weight: 700; padding: .45rem .8rem; border-radius: 10px; background: var(--coral-soft); color: var(--coral-ink); }
.scale { position: relative; margin: 8px 0 30px; }
.scale-track { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.scale-fill { height: 100%; width: 76.5%; border-radius: 999px; background: linear-gradient(90deg, var(--lav), var(--brand)); }
.scale-pass { position: absolute; top: -6px; left: 81.25%; width: 3px; height: 24px; background: var(--ink); border-radius: 2px; }
.scale-labels { position: relative; height: 18px; margin-top: 6px; font-family: var(--font-mono); font-size: var(--text-label); color: var(--ink-3); }
.scale-labels span { position: absolute; top: 0; }
.scale-labels .s-min { left: 0; }
.scale-labels .s-pass { left: 81.25%; transform: translateX(-50%); color: var(--ink); font-weight: 600; }
.scale-labels .s-max { right: 0; }
.report h3 { font-size: var(--text-mono); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 10px; font-weight: 600; }
.dbars { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.dbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: var(--text-sm); line-height: 1.35; }
.dbar .n { color: var(--ink); font-weight: 600; }
.dbar .n small { color: var(--ink-3); font-weight: 500; font-family: var(--font-mono); font-size: var(--text-label); margin-left: 4px; }
.dbar .v { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-sm); }
.dbar .t { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.dbar .t i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.dbar.low .t i { background: var(--coral); }
.dbar.low .v { color: var(--coral-ink); }
.report-cols { display: grid; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 560px) { .report-cols { grid-template-columns: 1fr 1fr; } }
.report-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--text-sm); line-height: 1.45; color: var(--ink-2); }
.report-cols code { color: var(--brand); font-weight: 600; margin-right: 6px; font-size: var(--text-mono); }
.report-note { margin: 14px 0 0; font-size: var(--text-mono); color: var(--ink-3); line-height: 1.5; }

/* =========================== 4. Domains: every row is a bar =========================== */
.domains-wrap { position: relative; }
.domains-art { display: none; }
@media (min-width: 1280px) {
  .domains-art { display: block; position: absolute; right: 0; top: -8px; width: 150px; border-radius: 30px; transform: rotate(6deg); box-shadow: var(--shadow-2); }
}
.seg-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-bottom: 28px; }
.seg-wrap .seg-label { font-weight: 700; font-size: var(--text-ui); }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.seg button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: transparent; font: 700 var(--text-ui) var(--font-body); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg-status { flex-basis: 100%; text-align: center; font-size: var(--text-sm); color: var(--ink-3); }
.dom-bars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.dom { position: relative; isolation: isolate; display: grid; grid-template-columns: 48px 1fr; gap: 6px 14px; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.dom-fill {
  position: absolute; z-index: -1; left: 0; top: 10px; bottom: 10px; width: calc(var(--w) * 3.4%);
  border-left: 4px solid var(--brand); border-radius: 0 20px 20px 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 15%, transparent), color-mix(in srgb, var(--lav) 6%, transparent));
  transition: width .6s cubic-bezier(.2, .7, .2, 1);
}
.dom.new-ai .dom-fill { border-left-color: var(--coral); background: linear-gradient(90deg, color-mix(in srgb, var(--coral) 18%, transparent), color-mix(in srgb, var(--coral) 5%, transparent)); }
.dom-n { padding: 6px 0 0 16px; font-family: var(--font-mono); font-weight: 600; font-size: var(--text-ui); color: var(--brand); }
.dom-body h3 { font-size: var(--step-2); margin-bottom: .25rem; }
.dom-body .tag { margin-left: 6px; vertical-align: 3px; }
.dom-body p { margin: 0 0 .4rem; max-width: 60ch; color: var(--ink-2); font-size: var(--text-ui); line-height: 1.55; }
.dom-body .arrow-link { font-size: var(--text-ui); }
.dom-w { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.dom-w .pct { font-family: var(--font-display); font-weight: 800; font-size: var(--display-m); line-height: 1; letter-spacing: -.05em; color: var(--ink); }
.dom-w .obj, .dom-w .delta { font-family: var(--font-mono); font-size: var(--text-mono); color: var(--ink-3); }
@media (min-width: 900px) {
  .dom { grid-template-columns: 84px 1fr 230px; align-items: center; padding: 30px 0; }
  .dom-n { font-size: var(--text-title); padding-top: 0; }
  .dom-w { grid-column: 3; flex-direction: column; align-items: flex-end; text-align: right; gap: 4px; padding-right: 8px; }
}
.footnote { margin-top: 20px; font-size: var(--text-sm); color: var(--ink-3); text-align: center; }

/* =========================== Prose (reusable for articles) =========================== */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose p { margin-bottom: 0; }
.prose h2 { margin-top: 2.2em; margin-bottom: .2em; }
.prose h3 { margin-top: 1.8em; margin-bottom: .1em; font-size: var(--step-2); }
.prose h4 { margin-top: 1.6em; margin-bottom: 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.4em; margin-bottom: 0; }
.prose :is(ul, ol):not([class]) > li { padding-left: .25em; }
.prose :is(ul, ol):not([class]) > li + li { margin-top: .45em; }
.prose ul:not([class]) > li::marker { color: var(--coral); }
.prose ol:not([class]) > li::marker { color: var(--brand); font-family: var(--font-mono); font-weight: 600; font-size: .9em; }
.prose a { font-weight: 600; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.6em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--coral);
  background: var(--coral-soft); border-radius: 0 14px 14px 0; color: var(--ink);
}
.prose blockquote p + p { margin-top: .6em; }
.prose code { background: var(--surface-2); border: 1px solid var(--line); padding: .08em .38em; border-radius: 6px; color: var(--ink); }
.prose pre { font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.6; background: var(--night); color: var(--night-ink); padding: 1rem 1.2rem; border-radius: 14px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose kbd { font-family: var(--font-mono); font-size: .85em; padding: .1em .45em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-top: 1.4em; }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table, table.data { width: 100%; border-collapse: collapse; font-size: var(--text-ui); line-height: 1.5; min-width: 520px; }
.prose th, .prose td, table.data th, table.data td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, table.data thead th { font-family: var(--font-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); background: var(--surface-2); font-weight: 600; }
.prose tbody th, table.data tbody th { font-weight: 700; color: var(--ink); }
.prose tbody tr:last-child > *, table.data tbody tr:last-child > * { border-bottom: 0; }
.prose caption, table.data caption { caption-side: bottom; text-align: left; padding: .7rem 1rem; font-size: var(--text-sm); color: var(--ink-3); }

/* =========================== 5. Exam format =========================== */
.footnote + .bignums { margin-top: 32px; }
.bignums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 0; }
.bignums li { padding: 0 16px 0 18px; border-left: 2px solid var(--line-strong); }
.bignums b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--display-l); line-height: .82; letter-spacing: -.055em; color: var(--brand); white-space: nowrap; }
.bignums b small { font-size: .3em; letter-spacing: 0; color: var(--ink-3); margin-left: 6px; font-weight: 700; }
.bignums span { display: block; margin-top: 18px; max-width: 27ch; font-size: var(--text-ui); line-height: 1.5; color: var(--ink-2); }
@media (min-width: 960px) { .bignums { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bignums li { padding-left: 22px; } }

.vs-wrap { max-width: 880px; margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.vs { width: 100%; min-width: 540px; border-collapse: collapse; font-size: var(--text-ui); line-height: 1.4; }
.vs thead th { padding: 0 14px 12px; font: 600 var(--text-label)/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.vs thead th:first-child { text-align: left; }
.vs thead th.v801 { color: var(--coral-ink); }
.vs tbody th { padding: 16px 14px; text-align: left; font-weight: 700; color: var(--ink); border-top: 1px dashed var(--line-strong); }
.vs td { padding: 16px 14px; text-align: center; border-top: 1px dashed var(--line-strong); color: var(--ink-2); }
.vs td.same b { color: var(--ink); }
.vs td.same em { margin-left: 10px; padding: .18rem .55rem; border-radius: 999px; border: 1px solid var(--line-strong); font: 600 var(--text-label)/1.3 var(--font-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); vertical-align: 2px; }
.vs td.chg-new { position: relative; }
.vs td.chg-new span { display: inline-block; padding: .4rem .85rem; border-radius: 10px; background: var(--coral-soft); color: var(--ink); font-weight: 700; }
.vs td.chg-new::before { content: "→"; position: absolute; left: -7px; top: 50%; transform: translateY(-50%); color: var(--coral-ink); font-weight: 700; }
.vs caption { caption-side: bottom; padding-top: 14px; font-size: var(--text-sm); color: var(--ink-3); }
@media (max-width: 600px) {
  table.vs { min-width: 0; font-size: var(--text-sm); }
  .vs tbody th, .vs td { padding: 12px 8px; }
  .vs thead th { padding: 0 8px 10px; }
  .vs td.same em { display: block; width: fit-content; margin: 6px auto 0; }
}

.tl { position: relative; max-width: 1040px; margin: 0 auto; }
.tl-chart { position: relative; }
.tl-band { position: absolute; top: 0; bottom: 30px; left: 12.9%; width: 56.4%; border-radius: 14px; background: repeating-linear-gradient(-45deg, transparent 0 9px, color-mix(in srgb, var(--brand) 9%, transparent) 9px 18px); }
.tl-band span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 var(--text-label)/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.tl-bars { position: relative; display: grid; gap: 10px; padding: 34px 0 12px; }
.tl-bar { position: relative; height: 38px; }
.tl-bar i { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; font: 700 var(--text-sm)/1 var(--font-body); font-style: normal; white-space: nowrap; overflow: hidden; }
.tl-bar .b701 { left: 0; width: 69.3%; background: var(--ink); color: var(--bg); }
.tl-bar .b701x { left: 69.3%; width: 17.3%; background: repeating-linear-gradient(-45deg, var(--ink-3) 0 6px, var(--ink-2) 6px 12px); color: var(--bg); border-radius: 0 10px 10px 0; font-size: var(--text-label); justify-content: center; padding: 0 4px; }
.tl-bar .b801 { left: 12.9%; right: 0; background: linear-gradient(90deg, var(--coral), color-mix(in srgb, var(--coral) 70%, var(--brand))); color: #2A1208; border-radius: 10px 0 0 10px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
.tl-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 2px solid var(--ink); font: 500 var(--text-label)/1 var(--font-mono); color: var(--ink-3); }
.tl-months span { padding-top: 8px; border-left: 1px solid var(--line-strong); padding-left: 4px; height: 22px; }
.tl-today { position: absolute; top: 0; bottom: 0; left: var(--at, 9.3%); width: 0; border-left: 2px dashed var(--ink-2); }
.tl-today span { position: absolute; top: 8px; left: 6px; font: 700 var(--text-label)/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.tl-events { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.tl-events li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: baseline; font-size: var(--text-ui); line-height: 1.5; color: var(--ink-2); }
.tl-events time { font-family: var(--font-display); font-weight: 800; font-size: var(--text-title); letter-spacing: -.02em; color: var(--ink); }
.tl-events strong { color: var(--ink); }
@media (max-width: 899px) {
  .tl-today span { display: none; }
  .tl-band span { font-size: var(--text-label); }
  .tl-bar .b701x { font-size: 0; }
}
@media (min-width: 1100px) {
  .tl-events { position: relative; height: 196px; margin-top: 0; display: block; }
  .tl-events li { position: absolute; top: 18px; left: var(--at); display: block; width: 23%; max-width: 250px; padding-left: 14px; border-left: 2px solid var(--ink); font-size: var(--text-ui); }
  .tl-events li.flip { left: auto; right: calc(100% - var(--at)); padding: 0 14px 0 0; border-left: 0; border-right: 2px solid var(--ink); text-align: right; }
  .tl-events li.low { top: 104px; }
  .tl-events li.low::before { content: ""; position: absolute; right: -2px; top: -86px; height: 86px; border-right: 2px solid var(--ink); }
  .tl-events time { display: block; font-size: var(--text-title); margin-bottom: 2px; }
}

.pace { max-width: 880px; margin: 0 auto; display: grid; gap: 18px; }
.pace-row { display: grid; gap: 8px; }
.pace-label { font: 700 var(--text-mono)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pace-bar { display: flex; height: 54px; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.pace-bar .p { flex: none; display: flex; align-items: center; justify-content: center; background: var(--coral); color: #2A1208; font: 800 var(--text-ui)/1 var(--font-display); white-space: nowrap; }
.pace-bar .m { flex: 1; display: flex; align-items: center; padding: 0 16px; font-weight: 700; color: var(--ink-2); font-size: var(--text-ui); }
@media (min-width: 720px) { .pace-row { grid-template-columns: 170px 1fr; align-items: center; } }
.pace-text { max-width: 70ch; margin: 26px auto 0; text-align: center; color: var(--ink-2); }
.pace-tip { display: flex; gap: 12px; align-items: flex-start; max-width: 70ch; margin: 18px auto 0; padding: 14px 18px; border-left: 4px solid var(--coral); color: var(--ink); background: color-mix(in srgb, var(--coral-soft) 70%, transparent); border-radius: 0 14px 14px 0; }
.pace-tip p { margin: 0; }

.change-grid { display: grid; gap: clamp(36px, 5vw, 56px); }
.scen { display: grid; gap: 18px; justify-items: center; text-align: center; }
.dots { display: grid; grid-template-columns: repeat(9, 22px); gap: 8px; }
.dots i { width: 22px; height: 22px; border-radius: 7px; background: var(--surface); border: 1.5px solid var(--line-strong); }
.dots i.on { background: var(--coral); border-color: var(--coral); }
.scen p { max-width: 44ch; margin: 0; color: var(--ink-2); }
.scen p b { display: block; font-family: var(--font-display); font-size: var(--display-s); line-height: 1; letter-spacing: -.045em; color: var(--ink); margin-bottom: 6px; }
.chain-wrap { text-align: center; }
.chain-wrap > p { margin: 0 auto 16px; font-weight: 700; color: var(--ink); }
.chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; counter-reset: ir; }
.chain li { position: relative; counter-increment: ir; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line-strong); font-weight: 700; font-size: var(--text-ui); line-height: 1.25; color: var(--ink); }
.chain li::before { content: counter(ir); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 600 var(--text-label)/1 var(--font-mono); flex: none; }
.chain li:not(:last-child)::after { content: ""; position: absolute; right: -20px; top: 50%; width: 14px; border-top: 2px solid var(--line-strong); }
@media (max-width: 480px) {
  .chain { flex-direction: column; align-items: center; gap: 18px; }
  .chain li:not(:last-child)::after { right: auto; left: 50%; top: 100%; width: 0; height: 18px; border-top: 0; border-left: 2px solid var(--line-strong); }
}
.topics-wrap { text-align: center; }
.topics-wrap > p { margin: 0 auto 14px; color: var(--ink-2); }
.topics-wrap .arrow-link { margin-top: 20px; }

/* =========================== 6. Practice modes: pick your time =========================== */
.timepick { max-width: 900px; margin: 0 auto; text-align: center; }
.tp-q { margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--ink); }
.tp-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 780px; margin: 0 auto 40px; }
@media (min-width: 720px) { .tp-tabs { grid-template-columns: repeat(4, 1fr); } }
.no-js .tp-tabs { display: none; }
.tp-tab {
  display: grid; place-items: center; min-height: 72px; padding: 10px; cursor: pointer;
  border-radius: 18px; border: 2px solid var(--line-strong); background: var(--surface);
  font: 800 var(--text-title)/1.05 var(--font-display); letter-spacing: -.02em; color: var(--ink);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.tp-tab small { display: block; margin-top: 5px; font: 600 var(--text-label)/1.2 var(--font-mono); letter-spacing: .02em; color: var(--ink-3); }
.tp-tab:hover { border-color: var(--brand); transform: translateY(-2px); }
.tp-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tp-tab[aria-selected="true"] small { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.tp-panels { display: grid; gap: 64px; }
.tp-panel { display: grid; justify-items: center; }
.tp-panel[hidden] { display: none; }
.tp-panel .tag { margin-bottom: 14px; }
.ring { position: relative; width: clamp(190px, 30vw, 250px); aspect-ratio: 1; margin-bottom: 22px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .trk { fill: none; stroke: var(--line); stroke-width: 11; }
.ring .val { fill: none; stroke: var(--brand); stroke-width: 11; stroke-linecap: round; animation: ring-in 1s cubic-bezier(.2, .7, .2, 1) both; }
.ring .val.dashed { stroke: var(--coral); stroke-dasharray: 2 9 !important; animation: none; }
@keyframes ring-in { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-c b { display: block; font: 800 var(--display-s)/1 var(--font-display); letter-spacing: -.045em; color: var(--ink); }
.ring-c span { display: block; margin-top: 6px; font: 600 var(--text-label)/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tp-panel h3 { font-size: var(--step-2); margin-bottom: .35rem; }
.tp-panel p { max-width: 58ch; margin: 0 auto 16px; color: var(--ink-2); }
.specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.specs li { font-family: var(--font-mono); font-size: var(--text-mono); font-weight: 500; padding: .35rem .65rem; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.shared-note { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin: 48px auto 0; color: var(--ink-2); font-size: var(--text-ui); line-height: 1.6; text-align: left; }
.shared-note .icon { color: var(--brand); margin-top: 3px; }

/* =========================== 7. PBQ: keycaps and a live screen =========================== */
.pbq-stage { max-width: 1000px; margin: 0 auto; }
.keys { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 34px; }
@media (min-width: 760px) { .keys { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.no-js .keys { display: none; }
.keycap {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 16px 16px; cursor: pointer; text-align: left;
  border-radius: 16px; border: 1px solid color-mix(in srgb, var(--night-lav) 34%, transparent);
  background: linear-gradient(180deg, rgb(255 255 255 / .11), rgb(255 255 255 / .03));
  color: var(--night-ink); font: 700 var(--text-ui)/1.25 var(--font-body);
  box-shadow: 0 6px 0 0 color-mix(in srgb, var(--night-lav) 26%, var(--night)), 0 12px 24px rgb(0 0 0 / .35);
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease;
}
.keycap .icon { width: 26px; height: 26px; color: var(--night-lav); }
.keycap .kn { font: 600 var(--text-label)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink-2); }
.keycap:hover { transform: translateY(2px); box-shadow: 0 4px 0 0 color-mix(in srgb, var(--night-lav) 26%, var(--night)), 0 8px 18px rgb(0 0 0 / .3); }
.keycap[aria-selected="true"] {
  transform: translateY(5px); border-color: var(--night-lav);
  background: linear-gradient(180deg, color-mix(in srgb, var(--night-lav) 34%, transparent), color-mix(in srgb, var(--night-lav) 14%, transparent));
  box-shadow: 0 1px 0 0 color-mix(in srgb, var(--night-lav) 40%, var(--night)), 0 4px 10px rgb(0 0 0 / .3);
}
.pbq-scene { position: relative; }
.pbq-ui { position: relative; background: var(--surface); color: var(--ink); border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgb(0 0 0 / .45); overflow: hidden; }
.pbq-panel[hidden] { display: none; }
.no-js .pbq-panel + .pbq-panel { border-top: 6px solid var(--night); }
.pbq-ui h3 { color: var(--ink); }
.pbq-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.pbq-bar .t { font-family: var(--font-mono); font-weight: 600; color: var(--ink-2); }
.pbq-bar .ctrls { display: flex; gap: 6px; }
.pbq-bar .ctrl { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: var(--text-label); font-weight: 600; padding: .3rem .6rem; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); }
.pbq-bar .ctrl .icon { width: .95rem; height: .95rem; }
.pbq-body { padding: 16px; }
.pbq-brief { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); }
.pbq-brief h3 { margin: 0 0 .15rem; font-size: var(--text-title); }
.pbq-brief p { margin: 0; font-size: var(--text-ui); line-height: 1.55; color: var(--ink-2); }
.pbq-req { font-size: var(--text-sm); line-height: 1.55; color: var(--ink-2); margin: 0 0 12px; }
.pbq-req ol { margin: 6px 0 0; padding-left: 1.3em; }
.pbq-req code { font-size: var(--text-mono); color: var(--ink); }
.rules { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: var(--text-mono); line-height: 1.35; }
.rules-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.rules th, .rules td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.rules thead th { background: var(--surface-2); color: var(--ink-3); font-weight: 600; font-size: var(--text-label); letter-spacing: .06em; text-transform: uppercase; }
.rules tbody tr:last-child td { border-bottom: 0; }
.rules .allow { color: var(--mint); font-weight: 600; }
.rules .deny { color: var(--rose); font-weight: 600; }
.rules tr.bad td { background: var(--rose-soft); }
.rules tr.bad .cell-bad { font-weight: 700; color: var(--rose); text-decoration: underline wavy; text-underline-offset: 3px; }
.mark { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-family: var(--font-mono); font-size: var(--text-mono); white-space: nowrap; }
.mark .icon { width: .95rem; height: .95rem; stroke-width: 2.8; }
.mark.ok { color: var(--mint); }
.mark.no { color: var(--rose); }
.pbq-debrief { margin-top: 12px; display: grid; gap: 10px; }
.credit { display: flex; align-items: center; gap: 12px; }
.credit .meter { flex: 1; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.credit .meter i { display: block; height: 100%; width: var(--c, 75%); background: linear-gradient(90deg, var(--mint), color-mix(in srgb, var(--mint) 60%, var(--lav))); border-radius: 999px; }
.credit b { font-family: var(--font-mono); font-size: var(--text-mono); white-space: nowrap; }
.debrief-line { margin: 0; font-size: var(--text-sm); line-height: 1.55; color: var(--ink-2); padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.debrief-line strong { color: var(--ink); }
.logs { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; background: var(--surface); }
.logs ol { list-style: none; margin: 0; padding: 6px 0; min-width: 560px; font-family: var(--font-mono); font-size: var(--text-mono); line-height: 1.5; }
.logs li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: center; padding: 4px 12px; color: var(--ink-2); white-space: nowrap; }
.logs li .box { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-strong); }
.logs li.picked { background: var(--rose-soft); color: var(--ink); }
.logs li.picked .box { background: var(--rose); border-color: var(--rose); }
.answer-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: var(--text-sm); color: var(--ink-2); }
.pill-ok, .pill-no { display: inline-flex; align-items: center; gap: 6px; padding: .35rem .75rem; border-radius: 999px; font: 700 var(--text-mono)/1.2 var(--font-mono); }
.pill-ok { background: var(--mint-soft); color: var(--mint); }
.pill-no { background: var(--rose-soft); color: var(--rose); }
.pill-ok .icon, .pill-no .icon { width: 1rem; height: 1rem; stroke-width: 2.8; }
.zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .zones { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.zone { padding: 10px; border-radius: 12px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); display: grid; gap: 8px; align-content: start; min-height: 128px; }
.zone .zn { font: 600 var(--text-label)/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.zone .host { font-size: var(--text-mono); color: var(--ink-2); }
.dev { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; border-radius: 9px; background: var(--surface); border: 1.5px solid var(--mint); font: 600 var(--text-mono)/1.25 var(--font-mono); color: var(--ink); }
.dev .icon { width: 1rem; height: 1rem; stroke-width: 2.8; color: var(--mint); }
.dev.no { border-color: var(--rose); }
.dev.no .icon { color: var(--rose); }
.pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pairs li { display: grid; grid-template-columns: 1fr; gap: 6px; align-items: center; }
@media (min-width: 640px) { .pairs li { grid-template-columns: 1fr 22px 190px; } }
.pairs .ev { padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: var(--text-sm); line-height: 1.45; color: var(--ink); }
.pairs .to { display: none; color: var(--ink-3); }
@media (min-width: 640px) { .pairs .to { display: block; } }
.pairs .pill-ok, .pairs .pill-no { justify-content: space-between; }
.pbq-after { max-width: 66ch; margin: 40px auto 20px; text-align: center; color: var(--night-ink-2); }
.pbq-cta { text-align: center; }

/* =========================== 8. Mock tests: tickets =========================== */
.tickets { list-style: none; margin: 0; padding: 6px 4px 10px; display: grid; gap: 26px; }
@media (min-width: 640px) { .tickets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tickets { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.ticket-w { filter: drop-shadow(0 16px 26px rgb(23 18 63 / .14)); transform: rotate(var(--rot, 0deg)); transition: transform .25s ease; }
.ticket-w:hover { transform: rotate(0deg) translateY(-4px); }
.ticket {
  --stub: 96px;
  display: flex; flex-direction: column; height: 100%; border-radius: 20px; background: var(--surface); color: var(--ink);
  -webkit-mask: radial-gradient(circle 13px at 0 calc(100% - var(--stub)), transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% calc(100% - var(--stub)), transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 13px at 0 calc(100% - var(--stub)), transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% calc(100% - var(--stub)), transparent 97%, #000) right / 51% 100% no-repeat;
}
.ticket-main { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; }
.t-admit { font: 600 var(--text-label)/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); }
.ticket h3 { margin: 2px 0 0; font-size: var(--step-2); }
.ticket p { margin: 0; font-size: var(--text-ui); line-height: 1.55; color: var(--ink-2); }
.ticket .fine { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: grid; gap: 3px; font-family: var(--font-mono); font-size: var(--text-mono); color: var(--ink-2); }
.ticket-stub { height: var(--stub); margin: 0 16px; border-top: 2px dashed var(--line-strong); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.t-num { font: 800 var(--display-s)/1 var(--font-display); letter-spacing: -.05em; color: color-mix(in srgb, var(--ink) 22%, transparent); }
.ticket-stub .btn { min-height: 46px; padding: .55rem 1rem; font-size: var(--text-ui); }
.ticket.free { background: var(--brand); color: var(--on-brand); }
.ticket.free h3, .ticket.free p, .ticket.free .fine { color: var(--on-brand); }
.ticket.free .t-admit { color: color-mix(in srgb, var(--on-brand) 82%, transparent); }
.ticket.free .t-num { color: color-mix(in srgb, var(--on-brand) 38%, transparent); }
.ticket.free .ticket-stub { border-top-color: color-mix(in srgb, var(--on-brand) 45%, transparent); }
.ticket.free .btn { background: var(--on-brand); color: var(--brand); }
.ticket.free .btn:hover { background: color-mix(in srgb, var(--on-brand) 88%, var(--brand)); color: var(--brand-hover); }

.dstack-title { margin: clamp(48px, 6vw, 72px) 0 8px; font-size: var(--step-2); text-align: center; }
.dstack-sub { margin: 0 auto 20px; text-align: center; color: var(--ink-3); font-size: var(--text-ui); }
.dstack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dstack li { display: flex; }
.dstack a {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 76px; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--brand) var(--k), var(--surface)); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3;
  transition: transform .18s ease, background-color .18s ease;
}
.dstack a small { font: 600 var(--text-label)/1 var(--font-mono); color: var(--ink-2); }
.dstack a:hover { transform: translateY(-3px); background: var(--brand); color: var(--on-brand); }
.dstack a:hover small { color: var(--on-brand); }
@media (min-width: 900px) {
  .dstack { flex-direction: row; }
  .dstack li { flex: var(--w) 1 0; min-width: 0; }
  .dstack a { min-height: 132px; }
}
.dstack-all { margin-top: 16px; text-align: center; }

.price-line { margin-top: clamp(48px, 6vw, 72px); text-align: center; }
.price-line p { max-width: 58ch; margin: 0 auto; color: var(--ink-2); }
.price-line strong { color: var(--ink); }
.price-line .stickers { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; max-width: none; margin: 24px auto 22px; }
.sticker {
  display: grid; place-content: center; width: 116px; height: 116px; border-radius: 50%; text-align: center;
  font: 800 var(--step-2)/1 var(--font-display); letter-spacing: -.03em; transform: rotate(var(--r, 0deg));
  box-shadow: 0 10px 20px -8px rgb(23 18 63 / .35);
}
.sticker small { display: block; margin-top: 5px; font: 600 var(--text-label)/1.1 var(--font-mono); letter-spacing: 0; }
.sticker.s1 { background: var(--coral); color: #2A1208; }
.sticker.s2 { background: var(--brand); color: var(--on-brand); }
.sticker.s3 { background: var(--ink); color: var(--bg); }
.stickers[data-access="launch"] .sticker { position: relative; }
.stickers[data-access="launch"] .sticker::after { content: "Soon"; position: absolute; top: -4px; right: -12px; padding: .3rem .55rem; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); font: 700 var(--text-label)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; transform: rotate(10deg); }

/* =========================== 9. Scoring =========================== */
.equation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 22px; margin: 0 auto; font-family: var(--font-display); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.equation .a { font-size: var(--display-l); color: var(--ink); }
.equation .ne { font-size: calc(var(--display-l) * .72); color: var(--coral); }
.equation .b { font-size: var(--display-l); color: transparent; -webkit-text-stroke: 2px var(--ink-3); }
.eq-cap { max-width: 64ch; margin: 18px auto 0; text-align: center; color: var(--ink-2); }
.bigscale { position: relative; max-width: 900px; margin: 40px auto 0; padding-bottom: 30px; }
.bigscale .bar { height: 26px; border-radius: 999px; border: 1px solid var(--line-strong); background: linear-gradient(90deg, var(--surface) 0 81.25%, color-mix(in srgb, var(--mint) 22%, var(--surface)) 81.25%); }
.bigscale .line { position: absolute; top: -10px; left: 81.25%; width: 3px; height: 46px; background: var(--ink); border-radius: 2px; }
.bigscale .lab { position: absolute; bottom: 0; transform: translateX(-50%); font: 600 var(--text-label)/1 var(--font-mono); color: var(--ink-3); }
.bigscale .lab.pass { color: var(--ink); font-weight: 700; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
@media (min-width: 900px) { .pipe { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.pipe li { position: relative; padding: 0 18px; text-align: center; }
.pipe .node { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); color: var(--brand); }
.pipe .node .icon { width: 30px; height: 30px; }
@media (min-width: 900px) { .pipe li:not(:last-child)::after { content: ""; position: absolute; top: 38px; left: calc(50% + 50px); right: calc(-50% + 50px); border-top: 2px dashed var(--line-strong); } }
.pipe b { display: block; font-family: var(--font-display); font-size: var(--text-title); letter-spacing: -.01em; color: var(--ink); }
.pipe p { max-width: 34ch; margin: 6px auto 0; font-size: var(--text-ui); line-height: 1.6; color: var(--ink-2); }
.ready { max-width: 760px; margin: 0 auto; }
.ready-chart { position: relative; height: 170px; margin: 0 auto 8px; max-width: 520px; }
.ready-chart .pl { position: absolute; left: 0; right: 0; bottom: 56px; border-top: 2px dashed var(--ink); }
.ready-chart .pl span { position: absolute; right: 0; top: 8px; font: 700 var(--text-label)/1 var(--font-mono); color: var(--ink); }
.ready-chart .dot { position: absolute; bottom: calc(56px + var(--y)); left: var(--x); transform: translate(-50%, 50%); display: grid; justify-items: center; gap: 6px; }
.ready-chart .dot i { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); }
.ready-chart .xl { position: absolute; bottom: 22px; left: var(--x); transform: translateX(-50%); font: 600 var(--text-label)/1 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.ready-chart .stem { position: absolute; bottom: 56px; left: var(--x); width: 2px; height: var(--y); background: color-mix(in srgb, var(--brand) 35%, transparent); transform: translateX(-50%); }
.ready-chart .ill { position: absolute; left: 0; top: 0; font: 600 var(--text-label)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ready p { text-align: center; color: var(--ink-2); margin: 0; }
.stamp { display: flex; gap: 16px; align-items: center; max-width: 760px; margin: 44px auto 0; padding: 16px 20px; border: 2px dashed var(--coral); border-radius: 18px; color: var(--ink); font-size: var(--text-ui); line-height: 1.55; }
.stamp img { width: 72px; height: 72px; border-radius: 50%; flex: none; object-fit: cover; }
.stamp p { margin: 0; }

/* =========================== 10. Explanations: before / after =========================== */
.compare { max-width: 840px; margin: 0 auto; }
.cmp { --pos: 42%; position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); }
.cmp-before { position: absolute; inset: 0; z-index: 0; padding: clamp(18px, 3vw, 30px); padding-top: 64px; color: var(--ink-3);
  background: repeating-linear-gradient(0deg, var(--surface-2) 0 31px, color-mix(in srgb, var(--line-strong) 60%, transparent) 31px 32px); }
.cmp-after { position: relative; z-index: 1; padding: clamp(18px, 3vw, 30px); padding-top: 64px; background: var(--surface); clip-path: inset(0 0 0 var(--pos)); }
.cmp-label { position: absolute; top: 16px; z-index: 2; font: 600 var(--text-label)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 999px; pointer-events: none; }
.cmp-label.l { left: 16px; background: var(--surface); color: var(--ink-3); border: 1px solid var(--line-strong); }
.cmp-label.r { right: 16px; background: var(--brand); color: var(--on-brand); }
@media (max-width: 480px) { .cmp-label.r { top: auto; bottom: 16px; } .cmp-after { padding-bottom: 64px; } }
.cmp-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--brand); pointer-events: none; }
.cmp-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-size: var(--text-title); box-shadow: 0 6px 18px rgb(23 18 63 / .3); }
.cmp:has(.cmp-range:focus-visible) .cmp-handle::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.cmp-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.no-js .cmp-before, .no-js .cmp-handle, .no-js .cmp-range, .no-js .cmp-label.l { display: none; }
.no-js .cmp-after { clip-path: none; }
.ak-stem { margin: 0 0 14px; font-size: var(--text-ui); line-height: 1.6; }
.ak-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 700; }
.ak-list li { display: flex; align-items: center; gap: 10px; }
.ak-list .k { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); font: 600 var(--text-mono)/1 var(--font-mono); }
.ak-ans { margin-top: 18px; font: 800 var(--display-s)/1 var(--font-display); color: var(--ink-2); letter-spacing: -.03em; }
.ak-none { margin-top: 8px; font: 600 var(--text-mono)/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.anat-opt { border: 1.5px solid var(--rose); background: var(--rose-soft); border-radius: 16px; padding: 14px 16px; }
.anat-opt .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; }
.anat-opt .row .k { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--rose); color: var(--on-state); font-family: var(--font-mono); font-size: var(--text-sm); }
.anat-opt .verdict { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font: 600 var(--text-label)/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--rose); }
.anat-opt .verdict .icon { width: 1rem; height: 1rem; stroke-width: 2.6; }
.anat-why { margin: 10px 0 0; font-size: var(--text-ui); line-height: 1.58; color: var(--ink-2); }
.anat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; font-size: var(--text-sm); color: var(--ink-3); }
.anat-meta a { color: var(--brand); }
.cmp .pin { width: 22px; height: 22px; font-size: var(--text-label); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 30%, transparent); }
.cmp-cap { margin-top: 14px; text-align: center; font-weight: 700; }
.cmp-cap span { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--text-sm); }
.anat-list { list-style: none; max-width: 1080px; margin: 34px auto 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .anat-list { grid-template-columns: repeat(5, 1fr); gap: 24px; } }
.anat-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: var(--text-sm); line-height: 1.55; color: var(--ink-2); }
.anat-list b { display: block; color: var(--ink); }
.anat-list q { font-style: italic; quotes: "\201C" "\201D"; }
.seals { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 18px; }
@media (min-width: 760px) { .seals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .seals { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; } }
.seal { text-align: center; }
.seal .badge { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); outline: 2px dashed color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 5px; transition: transform .3s ease; }
.seal:hover .badge { transform: rotate(-12deg) scale(1.05); }
.seal .badge .icon { width: 32px; height: 32px; }
.seal:nth-child(even) .badge { background: var(--coral-soft); color: var(--coral-ink); outline-color: color-mix(in srgb, var(--coral) 55%, transparent); }
.seal h3 { margin: 0 0 .3rem; font-size: var(--text-title); line-height: 1.3; }
.seal p { margin: 0; font-size: var(--text-sm); line-height: 1.55; color: var(--ink-2); }

/* =========================== 11. Research: sticky notes =========================== */
.stat-big { display: block; margin: 18px 0 4px; font: 800 var(--display-l)/.82 var(--font-display); letter-spacing: -.06em; color: var(--brand); }
.stat-big small { display: block; margin-top: 12px; font: 600 var(--text-mono)/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.notes { list-style: none; margin: 0; padding: 18px 0 0; display: grid; gap: 34px; }
@media (min-width: 680px) { .notes { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; } }
@media (min-width: 1040px) { .notes { grid-template-columns: repeat(3, 1fr); gap: 46px 36px; } }
.note {
  position: relative; display: flex; flex-direction: column; padding: 28px 22px 20px; background: var(--nc);
  border-radius: 4px 4px 22px 4px; transform: rotate(var(--r, 0deg)); transition: transform .25s ease;
  box-shadow: 0 1px 1px rgb(0 0 0 / .06), 0 18px 28px -14px rgb(23 18 63 / .35);
  color: #1D1733;
}
.note:hover { transform: rotate(0deg) translateY(-3px); }
.note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgb(255 255 255 / .55); border: 1px solid rgb(29 23 51 / .06); }
.note .rank { font: 600 var(--text-label)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #8A3A1C; }
.note h3 { margin: .55rem 0 .4rem; font-size: var(--text-title); color: #1D1733; }
.note p { margin: 0 0 14px; font-size: var(--text-ui); line-height: 1.6; color: #474162; }
.note p.answer { margin: auto 0 0; padding-top: 12px; border-top: 1.5px dashed rgb(29 23 51 / .25); display: flex; gap: 8px; font-weight: 700; color: #1D1733; }
.note .answer .icon { width: 1.1rem; height: 1.1rem; margin-top: 4px; color: #087352; stroke-width: 2.6; }
.note.empty { max-width: 560px; margin: 52px auto 0; background: transparent; border: 2px dashed var(--line-strong); box-shadow: none; color: var(--ink-2); text-align: center; }
.note.empty::before { display: none; }
.note.empty h3 { color: var(--ink); }
.note.empty p { color: var(--ink-2); margin: 0; }

/* =========================== 12. CTA band =========================== */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: radial-gradient(120% 140% at 100% 0%, var(--cta-1) 0%, var(--cta-2) 45%, var(--cta-3) 100%);
  color: #FFFFFF; padding: clamp(32px, 6vw, 64px);
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr 260px; } }
.cta-band h2 { color: #FFFFFF; margin-bottom: .4em; }
.cta-band p { color: #F4F1FF; font-size: var(--step-1); line-height: 1.55; max-width: 52ch; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.cta-band img { width: 100%; max-width: 260px; border-radius: 50%; border: 6px solid rgb(255 255 255 / .14); justify-self: center; }

/* =========================== 13. Guides: index page =========================== */
.index { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 44px; border-top: 3px solid var(--ink); }
@media (min-width: 720px) { .index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ix { position: relative; display: grid; gap: 6px; padding: 24px 40px 26px 0; border-bottom: 1px solid var(--line-strong); }
.ix .k { font: 800 var(--step-3)/1 var(--font-display); letter-spacing: -.045em; color: var(--brand); transition: color .2s ease; }
.ix h3 { margin: 4px 0 0; font-size: var(--text-title); line-height: 1.3; }
.ix h3 a { color: var(--ink); text-decoration: none; }
.ix h3 a::after { content: ""; position: absolute; inset: 0; }
.ix h3 a:focus-visible { outline: none; }
.ix:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.ix p { margin: 0; font-size: var(--text-ui); line-height: 1.55; color: var(--ink-2); }
.ix .go { position: absolute; top: 28px; right: 4px; color: var(--ink-3); transition: transform .2s ease, color .2s ease; }
.ix:hover .k { color: var(--coral-ink); }
.ix:hover .go { color: var(--brand); transform: translate(3px, -3px) rotate(-45deg); }

/* =========================== 14. FAQ =========================== */
.faq-c { max-width: 920px; }
.faq-tools { display: grid; gap: 16px; margin-bottom: 26px; }
.no-js .faq-tools { display: none; }
.faq-search { position: relative; }
.faq-search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.faq-search input {
  width: 100%; min-height: 58px; padding: 0 18px 0 52px; border-radius: 18px; border: 2px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 600 var(--text-ui)/1.2 var(--font-body);
}
.faq-search input::placeholder { color: var(--ink-3); }
.faq-search input:focus-visible { outline-offset: 2px; border-color: var(--brand); }
.faq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.faq-chips button {
  min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent;
  font: 700 var(--text-sm)/1 var(--font-body); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.faq-chips button span { font: 600 var(--text-label)/1 var(--font-mono); color: var(--ink-3); }
.faq-chips button:hover { border-color: var(--brand); color: var(--brand); }
.faq-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.faq-chips button[aria-pressed="true"] span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.faq-count { margin: 0; text-align: center; font-size: var(--text-sm); color: var(--ink-3); }
.faq { border-top: 1px solid var(--line-strong); counter-reset: fq; }
.faq details { border-bottom: 1px solid var(--line-strong); counter-increment: fq; }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.6em 1fr 28px; align-items: start; gap: 12px;
  padding: 20px 4px; font-family: var(--font-display); font-weight: 700; font-size: var(--text-title); line-height: 1.35; letter-spacing: -.01em; color: var(--ink);
}
.faq summary::before { content: counter(fq, decimal-leading-zero); padding-top: .2em; font: 600 var(--text-mono)/1.4 var(--font-mono); color: var(--coral-ink); letter-spacing: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 28px; height: 28px; padding: 5px; border-radius: 9px; background: var(--surface); color: var(--brand); transition: transform .2s ease; margin-top: 1px; }
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--brand-soft); }
.faq summary:hover { color: var(--brand); }
.faq .answer { padding: 0 4px 24px calc(2.6em + 16px); max-width: calc(var(--measure) + 4em); color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-empty { padding: 26px 0; text-align: center; color: var(--ink-2); }
@media (max-width: 560px) { .faq summary { grid-template-columns: 2.2em 1fr 28px; font-size: var(--text-title); } .faq .answer { padding-left: 4px; } }

/* =========================== Footer =========================== */
.site-footer { background: var(--night); color: var(--night-ink-2); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: var(--text-ui); }
.site-footer .brand, .site-footer .brand:hover { color: #FFFFFF; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.3fr repeat(4, 1fr); } }
.footer-about p { margin: 14px 0 0; max-width: 34ch; line-height: 1.6; }
.site-footer h2 { font-family: var(--font-mono); font-size: var(--text-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--night-accent); margin: 0 0 12px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--night-ink); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: var(--text-sm); line-height: 1.6; display: grid; gap: 10px; }
.legal p { margin: 0; max-width: 100ch; }

/* =========================== Motion =========================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn-primary:hover, .ticket-w:hover, .note:hover, .tp-tab:hover { transform: none; }
  .track::after { display: none; }
}
@media (forced-colors: active) {
  .opt, .ticket, .ix, .dom, .note, .keycap, .tp-tab { border: 1px solid CanvasText; }
  .answered .opt.is-correct-opt { outline: 3px solid Highlight; }
}

/* =========================== Current page in the main nav =========================== */
.menu ul a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

/* =========================== Design-system page (internal, noindex) =========================== */
.ds-block { margin-top: clamp(48px, 6vw, 80px); }
.ds-block > h2 { font-size: var(--step-2); margin-bottom: .3em; }
.ds-block > p { color: var(--ink-2); max-width: var(--measure); }
.ds-type td.sample { color: var(--ink); line-height: 1.25; }
.ds-type td.sample.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; }
.ds-swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.ds-swatches li { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.4; }
.ds-swatches i { display: block; height: 64px; margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--c); }
.ds-swatches code { display: block; font-size: var(--text-mono); color: var(--ink); }
.ds-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ds-night { margin-top: 16px; padding: 24px; border-radius: var(--r-l); background: var(--night); }
.ds-audit { margin-top: 18px; }
.ds-audit .chips { justify-content: flex-start; margin-top: 10px; }

/* =========================== Inner pages: breadcrumbs and page hero =========================== */
.crumbs { padding-top: clamp(18px, 3vw, 28px); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--text-sm); color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); text-align: center; }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto; height: 560px;
  background:
    radial-gradient(38% 50% at 20% 22%, color-mix(in srgb, var(--lav) 18%, transparent), transparent 70%),
    radial-gradient(34% 44% at 82% 14%, color-mix(in srgb, var(--coral) 16%, transparent), transparent 70%);
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { max-width: 18ch; margin: .2rem auto 0; }
.page-hero .lead { max-width: 62ch; margin: 1.2rem auto 0; }
.qcard.static { margin: 0 auto; transform: none; }

/* =========================== A test, cell by cell (waffle) =========================== */
.waffle-wrap { max-width: 940px; margin: 0 auto; }
.waffle { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 5px; }
@media (min-width: 760px) { .waffle { grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 6px; } }
.waffle i { aspect-ratio: 1; border-radius: 5px; background: var(--c); }
.waffle-legend { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: var(--text-sm); color: var(--ink-2); }
.waffle-legend li { display: inline-flex; align-items: center; gap: 8px; }
.waffle-legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.waffle-legend b { color: var(--ink); }
.w-pbq { --c: var(--coral); }
.w-d1 { --c: var(--brand); }
.w-d2 { --c: color-mix(in srgb, var(--brand) 76%, var(--surface)); }
.w-d3 { --c: color-mix(in srgb, var(--brand) 54%, var(--surface)); }
.w-d4 { --c: color-mix(in srgb, var(--brand) 36%, var(--surface)); }
.w-d5 { --c: color-mix(in srgb, var(--brand) 20%, var(--surface)); }

/* =========================== Mode rows (free test page) =========================== */
.mode-rows { max-width: 940px; margin: 0 auto; border-top: 1px solid var(--line-strong); }
.mode-row { display: grid; gap: 14px 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 820px) { .mode-row { grid-template-columns: 72px 1fr auto; } }
.mode-row .ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.mode-row:nth-child(2) .ic { background: var(--coral-soft); color: var(--coral-ink); }
.mode-row .ic .icon { width: 28px; height: 28px; }
.mode-row h3 { margin: 0 0 .25rem; font-size: var(--step-2); }
.mode-row p { margin: 0; color: var(--ink-2); font-size: var(--text-ui); max-width: 60ch; }

/* =========================== Dumbbell chart (before/after weights) =========================== */
.dumbbell { list-style: none; max-width: 940px; margin: 0 auto; padding: 0; display: grid; gap: 22px; }
.db-row { display: grid; gap: 6px; }
@media (min-width: 760px) { .db-row { grid-template-columns: 300px 1fr; align-items: center; gap: 24px; } }
.db-name { font-weight: 700; font-size: var(--text-ui); color: var(--ink); line-height: 1.35; }
.db-name small { display: block; font: 500 var(--text-mono) var(--font-mono); color: var(--ink-3); }
.db-track { position: relative; height: 44px; }
.db-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line-strong); }
.db-line { position: absolute; top: calc(50% - 2px); height: 4px; border-radius: 4px; left: calc(min(var(--a), var(--b)) / 30 * 100%); width: calc(max(var(--a), var(--b)) / 30 * 100% - min(var(--a), var(--b)) / 30 * 100%); background: color-mix(in srgb, var(--coral) 55%, transparent); }
.db-dot { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; transform: translate(-50%, -50%); left: calc(var(--v) / 30 * 100%); }
.db-dot.old { background: var(--surface); border: 3px solid var(--ink-3); }
.db-dot.new { background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 25%, transparent); }
.db-dot span { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font: 600 var(--text-mono)/1 var(--font-mono); color: var(--ink-2); white-space: nowrap; }
.db-dot.new span { color: var(--coral-ink); top: calc(100% + 6px); bottom: auto; }
.db-axis { max-width: 940px; margin: 18px auto 0; display: flex; justify-content: space-between; font: 500 var(--text-label)/1 var(--font-mono); color: var(--ink-3); }
@media (min-width: 760px) { .db-axis { padding-left: 324px; } }
.db-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 22px; font-size: var(--text-sm); color: var(--ink-2); }
.db-legend span { display: inline-flex; align-items: center; gap: 8px; }
.db-legend i { width: 14px; height: 14px; border-radius: 50%; }

/* =========================== Change tags in tables, topic chip groups =========================== */
table.data .chg { white-space: nowrap; }
.topic-groups { max-width: 1000px; margin: 0 auto; display: grid; gap: 26px; }
.topic-group h3 { margin: 0 0 10px; font-size: var(--text-title); text-align: center; }
.topic-group .chips { justify-content: center; }
.chips.gone li { border-style: dashed; color: var(--ink-2); background: transparent; }

/* =========================== Decision fork =========================== */
.fork { max-width: 900px; margin: 0 auto; text-align: center; }
.fork-q { display: inline-block; max-width: 34ch; margin: 0 auto; padding: 16px 22px; border-radius: 20px; background: var(--ink); color: var(--bg); font: 700 var(--text-title)/1.35 var(--font-display); }
.fork-paths { display: grid; gap: 18px; margin-top: 34px; position: relative; }
@media (min-width: 760px) {
  .fork-paths { grid-template-columns: 1fr 1fr; gap: 48px; }
  .fork-paths::before { content: ""; position: absolute; top: -34px; left: 25%; right: 25%; height: 22px; border: 2px solid var(--line-strong); border-bottom: 0; border-radius: 16px 16px 0 0; }
}
.fork-path { padding-top: 6px; }
.fork-path .ans { display: inline-block; margin-bottom: 10px; padding: .3rem .8rem; border-radius: 999px; font: 700 var(--text-label)/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--brand-soft); color: var(--brand); }
.fork-path:nth-child(2) .ans { background: var(--coral-soft); color: var(--coral-ink); }
.fork-path h3 { margin: 0 0 .3rem; font-size: var(--step-2); }
.fork-path p { margin: 0 auto; max-width: 40ch; color: var(--ink-2); font-size: var(--text-ui); }
.chain.old li::before { background: var(--ink-3); }

/* =========================== Receipt (exam cost) =========================== */
.receipt-w { max-width: 460px; margin: 0 auto; filter: drop-shadow(0 18px 30px rgb(23 18 63 / .14)); }
.receipt {
  padding: 28px 28px 34px; background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-size: var(--text-mono);
  -webkit-mask: radial-gradient(circle 9px at 50% 100%, transparent 96%, #000) 0 100% / 22px 100% repeat-x;
  mask: radial-gradient(circle 9px at 50% 100%, transparent 96%, #000) 0 100% / 22px 100% repeat-x;
  border-radius: 18px 18px 0 0;
}
.receipt h3 { margin: 0 0 4px; font: 700 var(--text-title)/1.3 var(--font-display); text-align: center; }
.receipt .sub { margin: 0 0 18px; text-align: center; color: var(--ink-3); font-size: var(--text-label); letter-spacing: .08em; text-transform: uppercase; }
.receipt dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; padding: 14px 0; border-top: 2px dashed var(--line-strong); border-bottom: 2px dashed var(--line-strong); }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; font-weight: 600; text-align: right; }
.receipt .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-weight: 600; }
.receipt .total b { font: 800 var(--display-s)/1 var(--font-display); letter-spacing: -.04em; color: var(--brand); }
.receipt .fine { margin: 14px 0 0; color: var(--ink-3); font-size: var(--text-label); line-height: 1.5; text-align: center; }

/* =========================== Price ladder =========================== */
.ladder { list-style: none; max-width: 980px; margin: 0 auto; padding: 0; display: grid; gap: 14px; }
.ladder li { display: grid; gap: 6px; }
@media (min-width: 760px) { .ladder li { grid-template-columns: 300px 1fr; align-items: center; gap: 20px; } }
.ladder .what { font-weight: 700; font-size: var(--text-ui); line-height: 1.35; }
.ladder .what small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--text-sm); }
.ladder .bar { position: relative; height: 40px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.ladder .bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) / 1100 * 100%); border-radius: 10px; background: linear-gradient(90deg, var(--lav), var(--brand)); }
.ladder li.hl .bar i { background: linear-gradient(90deg, var(--coral), color-mix(in srgb, var(--coral) 70%, var(--brand))); }
.ladder .bar b { position: absolute; top: 50%; left: calc(var(--p) / 1100 * 100% + 10px); transform: translateY(-50%); font: 800 var(--text-title)/1 var(--font-display); color: var(--ink); white-space: nowrap; }
.ladder li.in .bar b { left: auto; right: 14px; color: #FFFFFF; }
