/* RBT Practice marketing site. Tokens from web/BRIEF.md (single indigo accent, locked).
   Shape rule: controls 8px, cards 14px, hero panels 20px, chips and badges full pill.
   z-index scale: header 50, mobile nav 49, skip link 100. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/geist-latin.woff2) format('woff2-variations'), url(/assets/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/geist-mono-latin.woff2) format('woff2-variations'), url(/assets/geist-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2212;
}

:root {
  --bg: #F6F7FA;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --sunken: #EEF0F5;
  --ink: #0E1220;
  --muted: #596074;
  --faint: #8A91A5;
  --line: #E3E6EE;
  --line-strong: #D3D7E2;
  --accent: #5252D8;
  --accent-hover: #4343C2;
  --accent-tint: #EEEEFC;
  --accent-ink: #4343C2;
  --on-accent: #FFFFFF;
  --success: #0E9F6E;
  --success-ink: #0A7A55;
  --success-tint: #E8F6F0;
  --danger: #D9364B;
  --danger-ink: #B8283C;
  --danger-tint: #FCEDEF;
  --warning: #B7791F;
  --dA: #5252D8; --dB: #0E8F8A; --dC: #C2610F; --dD: #C2367A; --dE: #5B7A1F; --dF: #7A4BC2;
  --frame: #0E1220;
  --shadow-sm: 0 1px 2px rgba(14, 18, 32, .06), 0 1px 1px rgba(14, 18, 32, .03);
  --shadow: 0 1px 2px rgba(14, 18, 32, .05), 0 10px 28px -8px rgba(14, 18, 32, .12);
  --shadow-lg: 0 2px 6px rgba(14, 18, 32, .05), 0 32px 64px -20px rgba(14, 18, 32, .22);
  --r-control: 8px;
  --r-card: 14px;
  --r-panel: 20px;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light;
}

/* Dark is the default theme: <html data-theme="dark"> ships in the markup and the head script only
   switches to light for a saved "light" choice (or "system" on a light OS). */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0A0C12;
    --surface: #11141D;
    --raised: #171B27;
    --sunken: #0E1119;
    --ink: #EDEFF6;
    --muted: #9BA2B7;
    --faint: #6D7489;
    --line: #232838;
    --line-strong: #2E3446;
    --accent: #8D8DF2;
    --accent-hover: #A3A3F6;
    --accent-tint: #1B1C3A;
    --accent-ink: #A3A3F6;
    --on-accent: #0A0C12;
    --success: #3DD6A0;
    --success-ink: #3DD6A0;
    --success-tint: #0F2A22;
    --danger: #FF7A8A;
    --danger-ink: #FF8F9C;
    --danger-tint: #2E151B;
    --warning: #F2B84B;
    --dA: #8D8DF2; --dB: #3CC4BE; --dC: #F0934A; --dD: #EE6FA9; --dE: #9DC25A; --dF: #B08CF0;
    --frame: #1E2230;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 32px 64px -20px rgba(0, 0, 0, .75);
}
:root[data-theme="light"] { color-scheme: light; }

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.ph { width: 1.25em; height: 1.25em; flex: none; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-control); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- buttons, links, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 48px; padding: 0 1.25rem; border: 0; border-radius: var(--r-control);
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(14, 18, 32, .16), 0 4px 12px -4px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--faint), var(--shadow-sm); }
.btn-sm { height: 38px; padding: 0 .95rem; font-size: .9375rem; }
.btn-arrow { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn:focus-visible { outline-offset: 3px; border-radius: var(--r-control); }

.text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.text-link .ph { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover .ph { transform: translateX(3px); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; margin-left: 1rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.eyebrow .ph { color: var(--accent); width: 1.1em; height: 1.1em; }

.dchip { display: inline-flex; align-items: center; gap: .45rem; height: 28px; padding: 0 .7rem 0 .25rem; border-radius: 999px; font-size: .8125rem; font-weight: 500; white-space: nowrap;
  background: color-mix(in srgb, var(--hue) 11%, var(--surface)); color: color-mix(in srgb, var(--hue) 62%, var(--ink)); }
.dchip-letter, .dletter { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; font-size: .75rem; font-weight: 700; font-family: var(--font-mono);
  background: var(--hue); color: var(--bg); }
.dletter { width: 30px; height: 30px; font-size: .875rem; }
.dletter.sm { width: 18px; height: 18px; font-size: .6875rem; }
.dletter.lg { width: 40px; height: 40px; font-size: 1.0625rem; }
/* Light mode: small light letters on the teal (B) and orange (C) hues measured 3.7-3.9:1. A 20% deeper fill keeps the hue and passes AA. */
:root[data-theme="light"] :is(.dchip-letter, .dletter) { background: color-mix(in srgb, var(--hue) 80%, #000); }
.task-code { font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }

.store-badges { display: flex; flex-wrap: wrap; gap: .625rem; }
.store-badge { display: inline-flex; align-items: center; gap: .6rem; height: 48px; padding: 0 1rem 0 .85rem; border-radius: var(--r-control); background: var(--ink); color: var(--bg); text-decoration: none; transition: transform .25s var(--ease), opacity .2s; }
.store-badge .ph { width: 24px; height: 24px; }
.store-badge span { display: grid; line-height: 1.1; }
.store-badge small { font-size: .6875rem; opacity: .8; }
.store-badge strong { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.store-badge:hover { opacity: .9; }
.store-badge:active { transform: translateY(1px); }

/* ---------- header ---------- */
.header-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, background-color .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand-mark { display: inline-block; width: 36px; height: 15px; background: currentColor;  }
.brand-word { line-height: 1; transform: translateY(-.5px); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; height: 38px; padding: 0 .8rem; border-radius: var(--r-control); color: var(--muted); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: color .2s, background-color .2s; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-control); background: transparent; cursor: pointer; }
.nav-toggle .ph { width: 24px; height: 24px; }
.nav-close-icon { display: none; }
.nav-toggle[aria-expanded="true"] .nav-open-icon { display: none; }
.nav-toggle[aria-expanded="true"] .nav-close-icon { display: block; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); z-index: 49; }
.mobile-nav ul { list-style: none; padding: .5rem 0 1rem; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
.mobile-nav a .ph { color: var(--muted); }
/* The full desktop nav (brand, 5 links, More, theme, CTA) needs about 930 px; below 1040 px it was wrapping
   labels onto two lines, so the phone menu now covers everything under 1040 px. */
@media (max-width: 1039px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-grid; }
}
@media (min-width: 1040px) { .mobile-nav { display: none !important; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-title { font-size: clamp(1.875rem, 1.1rem + 2.4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.025em; }
.section-title.narrow { max-width: 20ch; }
.section-band { background: var(--surface); border-block: 1px solid var(--line); }
.fineprint { font-size: .875rem; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(28px, 4.2vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); overflow: clip; isolation: isolate; }
.hero-head { display: grid; gap: 1.5rem; align-items: end; }
.hero-copy { display: grid; gap: 1.125rem; }
.hero-title { font-size: clamp(2.5rem, 1.05rem + 3.9vw, 4.25rem); line-height: 1.02; letter-spacing: -0.038em; max-width: 12.5em; font-weight: 600; text-wrap: balance; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
@media (min-width: 1024px) {
  .hero-head { grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; }
  .hero-ctas { padding-bottom: .375rem; }
}
@media (max-width: 479px) { .hero-ctas .btn { width: 100%; } }
/* stage: the product floats on a soft wash that fades into the page (no boxed panel) */
.hero-stage { position: relative; margin-top: clamp(32px, 4vw, 52px); }
.hero-stage::before { content: ""; position: absolute; z-index: -1; inset: -40px 0 18% 0; pointer-events: none;
  background: radial-gradient(52% 58% at 50% 42%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%); }
.stage-wrap { position: relative; margin-block: 0; }
.stage-note { display: none; }
@media (min-width: 1100px) {
  .stage-note { display: grid; position: absolute; z-index: 2; right: -28px; bottom: 92px; width: 292px; grid-template-columns: 22px 1fr; gap: 10px; padding: 16px 18px; border-radius: var(--r-card);
    background: var(--raised); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); font-size: .9375rem; line-height: 1.45; color: var(--ink); }
  .stage-note .ph { width: 22px; height: 22px; color: var(--accent-ink); }
  .stage-note strong { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
}

/* browser frame */
.browser { border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden; }
.browser-hero { border-radius: 16px; box-shadow: 0 1px 2px rgba(14, 18, 32, .05), 0 24px 48px -16px rgba(24, 28, 70, .22), 0 64px 120px -40px rgba(24, 28, 70, .28), 0 0 0 1px var(--line); }
.browser-bar { position: relative; display: flex; align-items: center; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--sunken) 70%, var(--surface)); }
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.browser-url { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .35rem; height: 26px; padding: 0 .8rem; border-radius: 7px; background: var(--bg); color: var(--muted); font-size: .75rem; white-space: nowrap; max-width: 62%; overflow: hidden; }
.browser-url .ph { width: 12px; height: 12px; }

/* practice run (mirrors /app/practice/run/:mode after answering) */
.run { position: relative; background: var(--bg); font-size: 15px; }
.run .ph { width: 18px; height: 18px; }
.run-top { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.run-close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-control); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.run-title { font-weight: 500; font-size: .9375rem; }
.run-count { color: var(--muted); font-size: .8125rem; }
.run-body { display: grid; gap: 28px; padding: 24px 20px 84px; }
.run-qnum { font-size: .8125rem; color: var(--muted); }
.run-qnum b { color: var(--ink); font-weight: 500; }
.run-prompt { margin: 8px 0 18px; font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.015em; max-width: 40em; }
.run-opts { list-style: none; display: grid; gap: 10px; }
.run-opt { padding: 12px 16px 12px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(14, 18, 32, .04); }
.run-opt-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.run-opt-text { font-size: .96875rem; line-height: 1.4; color: var(--muted); }
.run-why { margin: 10px 0 0 40px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.5; color: var(--muted); }
.run-why strong { color: var(--ink); font-weight: 600; }
.run-opt .q-letter { width: 28px; height: 28px; font-size: .75rem; }
.run-opt.is-wrong { background: var(--danger-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 45%, transparent); }
.run-opt.is-right { background: var(--success-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 50%, transparent); }
.run-opt.is-wrong .q-letter { background: var(--danger-ink); color: var(--bg); }
.run-opt.is-right .q-letter { background: var(--success-ink); color: var(--bg); }
.run-opt.is-wrong .run-opt-text, .run-opt.is-right .run-opt-text { color: var(--ink); }
.run-opt.is-wrong .run-why { border-top-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.run-opt.is-right .run-why { border-top-color: color-mix(in srgb, var(--success) 25%, transparent); }
.run-verdict { display: inline-flex; align-items: center; gap: 5px; font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.run-verdict .ph { width: 15px; height: 15px; }
.run-verdict.ok { color: var(--success-ink); }
.run-verdict.no { color: var(--danger-ink); }
.run-rail { display: none; }
.run-card { display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.run-card + .run-card { margin-top: 14px; }
.run-card-head { display: flex; justify-content: space-between; font-size: .8125rem; font-weight: 500; }
.run-card-head .mono { color: var(--muted); font-weight: 400; }
.run-segs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.run-segs i { height: 5px; border-radius: 3px; background: var(--sunken); }
.run-segs i.ok { background: var(--success); }
.run-segs i.no { background: var(--danger); }
.run-figs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.run-figs dt { font-size: .75rem; color: var(--muted); }
.run-figs dd { margin: 2px 0 0; font-size: 1.125rem; }
.run-figs dd.ok { color: var(--success-ink); }
.run-figs dd.no { color: var(--danger-ink); }
.run-domain { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; }
.run-dl { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font: 600 .75rem/1 var(--font-mono); color: color-mix(in srgb, var(--hue) 78%, var(--ink)); background: color-mix(in srgb, var(--hue) 12%, var(--surface)); }
.run-task { font-size: .84375rem; color: var(--ink); }
.run-task .mono { margin-right: 4px; }
.run-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.run-map span { display: grid; place-items: center; height: 34px; border-radius: var(--r-control); font: 500 .75rem/1 var(--font-mono); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.run-map .ok { background: var(--success-tint); color: var(--success-ink); box-shadow: none; }
.run-map .no { background: var(--danger-tint); color: var(--danger-ink); box-shadow: none; }
.run-map .is-current { box-shadow: 0 0 0 2px var(--accent); }
.run-map .is-next { background: var(--accent-tint); color: var(--accent-ink); box-shadow: none; }
.run-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 20px; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .875rem; }
.run-bottom kbd { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; margin-left: 8px; border-radius: 5px; font: 500 .6875rem/1 var(--font-mono); box-shadow: inset 0 0 0 1px currentColor; opacity: .7; }
.run-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: var(--r-control); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.run-status { display: inline-flex; align-items: center; gap: 7px; color: var(--danger-ink); font-weight: 500; }
.run-next { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 16px; border-radius: var(--r-control); background: var(--accent); color: var(--on-accent); font-weight: 600; white-space: nowrap; }
.run-next .ph { margin-left: 6px; }
@media (max-width: 639px) {
  .run-status { display: none; }
  .run-verdict { font-size: .75rem; }
  .run-why { margin-left: 0; }
  .run-opts .run-opt:nth-child(n+3) { display: none; }
  .run-body { padding-bottom: 80px; }
}
@media (min-width: 900px) {
  .run-top { padding: 0 28px; }
  .run-body { grid-template-columns: minmax(0, 1fr) 256px; gap: 32px; padding: 28px 28px 88px; }
  .run-rail { display: block; }
  .run-bottom { padding: 0 28px; }
  .run-bottom .run-next { margin-right: calc(256px + 32px); }
}
@media (min-width: 1200px) { .run-body { grid-template-columns: minmax(0, 1fr) 272px; gap: 40px; padding: 30px 36px 92px; } .run-top, .run-bottom { padding-inline: 36px; } .run-bottom .run-next { margin-right: calc(272px + 40px); } }

/* phone frame */
.phone { width: 252px; padding: 9px; border-radius: 40px; background: var(--frame); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone-screen { border-radius: 32px; overflow: hidden; background: var(--bg); min-height: 500px; display: flex; flex-direction: column; }
.phone-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 38px; padding: 0 20px; font-size: .75rem; font-weight: 600; }
.phone-notch { width: 78px; height: 22px; border-radius: 999px; background: var(--frame); }
.phone-sys { display: flex; justify-content: flex-end; gap: 4px; }
.phone-sys .ph { width: 14px; height: 14px; }
.pm-kicker { display: flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--muted); font-weight: 500; }
.pm-kicker .ph { width: 14px; height: 14px; color: var(--accent); }

/* ---------- interactive question ---------- */
.q { display: grid; gap: 14px; }
.q-prompt, .guide-q > p:first-child { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.q-options { list-style: none; display: grid; gap: 8px; }
.q-opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 14px 10px 10px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); text-align: left; font-size: .96875rem; line-height: 1.4; cursor: pointer; transition: box-shadow .2s, background-color .2s, transform .2s var(--ease); }
.q-opt:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.q-opt:active { transform: scale(.995); }
.q-letter { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--sunken); color: var(--muted); font-family: var(--font-mono); font-size: .8125rem; font-weight: 600; transition: background-color .2s, color .2s; }
.q-icon { width: 22px; height: 22px; display: none; }
.q-why { display: none; margin: 6px 4px 6px 50px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.q-answer { display: none; gap: 10px; padding-top: 4px; }
.q-answer p { font-size: .96875rem; }
.q-answer-lead { color: var(--ink); }
.q-takeaway { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--accent-tint); color: var(--ink); font-size: .9375rem; line-height: 1.5; }
.q-takeaway .ph { width: 22px; height: 22px; color: var(--accent-ink); }
.q-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; min-height: 24px; }
.q-status { font-size: .9375rem; font-weight: 600; }
.q-status:empty { display: none; }
.q-reveal { margin-left: auto; background: none; border: 0; padding: 4px 0; color: var(--accent-ink); font-weight: 600; font-size: .9375rem; cursor: pointer; }
.q-reveal:hover { text-decoration: underline; text-underline-offset: 3px; }
.q-more { margin-left: auto; display: none; align-items: center; gap: .35rem; font-size: .9375rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.q-more .ph { width: 1em; height: 1em; }
.q-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* answered state (set by site.js); without JS the full review is visible */
.q.is-answered .q-why, html:not(.js) .q-why { display: block; }
.q.is-answered .q-answer, html:not(.js) .q-answer { display: grid; }
.q.is-answered .q-reveal, html:not(.js) .q-reveal { display: none; }
.q.is-answered .q-more { display: inline-flex; }
.q.is-answered .q-opt { cursor: default; }
.q.is-answered .q-opt:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.q.is-answered .q-opt[data-correct], html:not(.js) .q-opt[data-correct] { background: var(--success-tint); box-shadow: inset 0 0 0 1.5px var(--success); }
.q.is-answered .q-opt[data-correct] .q-letter, html:not(.js) .q-opt[data-correct] .q-letter { background: var(--success-ink); color: var(--bg); }
.q.is-answered .q-opt[data-correct] .q-icon-ok, html:not(.js) .q-opt[data-correct] .q-icon-ok { display: block; color: var(--success); }
.q.is-answered .q-opt.is-wrong { background: var(--danger-tint); box-shadow: inset 0 0 0 1.5px var(--danger); }
.q.is-answered .q-opt.is-wrong .q-letter { background: var(--danger-ink); color: var(--bg); }
.q.is-answered .q-opt.is-wrong .q-icon-no { display: block; color: var(--danger); }
.q.is-answered .q-opt:not([data-correct]):not(.is-wrong) .q-text { color: var(--muted); }
.q.is-correct .q-status { color: var(--success-ink); }
.q.is-incorrect .q-status { color: var(--danger-ink); }
@media (prefers-reduced-motion: no-preference) {
  .q.is-answered .q-why, .q.is-answered .q-answer { animation: rise .45s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- facts band ---------- */
.facts { padding-block: 8px clamp(40px, 5vw, 64px); }
.facts-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
.facts-grid li { display: grid; gap: 6px; padding-inline: 0 16px; }
.fact-num { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.fact-label { color: var(--muted); font-size: .9375rem; line-height: 1.4; max-width: 18ch; }
@media (min-width: 768px) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .facts-grid li { padding-inline: 28px; border-left: 1px solid var(--line); }
  .facts-grid li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- six sections ---------- */
.comp-bar { display: flex; gap: 4px; height: 14px; margin: clamp(28px, 4vw, 44px) 0 20px; }
.comp-bar span { display: block; height: 100%; border-radius: 4px; background: var(--hue); }
.comp-bar span:first-child { border-radius: 7px 4px 4px 7px; }
.comp-bar span:last-child { border-radius: 4px 7px 7px 4px; }
.bento { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(12, 1fr); gap: 16px; } .bento-tile { grid-column: span var(--span); } }
.bento-tile { position: relative; display: grid; gap: 6px; align-content: start; min-height: 190px; padding: 22px 24px 24px; border-radius: var(--r-card); text-decoration: none; color: var(--ink);
  background: linear-gradient(160deg, color-mix(in srgb, var(--hue) 9%, var(--surface)), var(--surface) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 16%, var(--line));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bento-tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 40%, var(--line)), var(--shadow); }
.bento-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bento-icon { width: 36px; height: 36px; color: color-mix(in srgb, var(--hue) 80%, var(--ink)); }
.bento-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.bento-count { color: var(--muted); font-size: .9375rem; }
.bento-count .mono { color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.bento-meta { margin-top: auto; padding-top: 14px; font-size: .8125rem; color: var(--muted); }
.bento-go { position: absolute; right: 22px; bottom: 22px; width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.bento-tile:hover .bento-go { transform: translate(2px, -2px); color: var(--ink); }

/* ---------- rationales ---------- */
.split-sticky { display: grid; gap: 40px; }
.points { list-style: none; display: grid; gap: 20px; margin: 32px 0 28px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.points .ph { width: 28px; height: 28px; color: var(--accent-ink); }
.points p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.points strong { color: var(--ink); font-weight: 600; }
@media (min-width: 1024px) {
  .split-sticky { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .sticky-col { position: sticky; top: calc(var(--header-h) + 40px); }
}
/* ---------- mock exams ---------- */
.mock-layout { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .mock-layout { grid-template-columns: 7fr 5fr; gap: 80px; } }
.mock-figure { margin: 0; padding: clamp(18px, 3vw, 36px); border-radius: var(--r-panel); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.mock-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
@media (min-width: 640px) { .mock-grid { grid-template-columns: repeat(17, 1fr); } }
.cell { aspect-ratio: 1; border-radius: 5px; background: var(--hue); }
.cell-pilot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); background-image: repeating-linear-gradient(135deg, transparent 0 3px, var(--line) 3px 4.5px); }
.mock-legend { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 20px; margin-top: 24px; font-size: .875rem; color: var(--muted); }
.mock-legend li { display: flex; align-items: center; gap: 8px; }
.mock-legend .mono { margin-left: auto; color: var(--ink); }
.lg-swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--hue); flex: none; }
.lg-pilot .lg-swatch { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.mock-copy { display: grid; gap: 18px; justify-items: start; }
.mock-facts { display: grid; gap: 0; margin: 12px 0 8px; width: 100%; }
.mock-facts div { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.mock-facts div:first-child { border-top: 0; padding-top: 4px; }
.mock-facts dt { font-size: 1.625rem; font-weight: 500; letter-spacing: -0.03em; }
.mock-facts dd { margin: 0; color: var(--muted); font-size: .96875rem; line-height: 1.5; }
.js .mock-grid[data-reveal] .cell { opacity: 0; transform: scale(.4); }
.js .mock-grid.is-in .cell { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 9ms); }
@media (prefers-reduced-motion: reduce) { .js .mock-grid[data-reveal] .cell { opacity: 1; transform: none; transition: none; } }

/* ---------- devices ---------- */
.devices { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .devices { grid-template-columns: 7fr 5fr; gap: 80px; } }
.platforms { list-style: none; display: grid; gap: 0; margin: 32px 0 20px; }
.platforms li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.platforms li:first-child { border-top: 0; padding-top: 0; }
.platforms p { color: var(--muted); font-size: 1rem; line-height: 1.55; margin-bottom: 12px; max-width: 48ch; }
.platforms .pf-name { color: var(--ink); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.015em; margin-bottom: 4px; }
.pf-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-ink); }
.pf-icon .ph { width: 24px; height: 24px; }
.devices-visual { display: grid; place-items: center; padding: clamp(24px, 4vw, 48px) 16px; border-radius: var(--r-panel);
  background: radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--accent-tint); }
.phone-cards .phone-screen { min-height: 470px; }
.fc-body { padding: 10px 16px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; align-items: flex-start; }
.flashcard { position: relative; width: 100%; flex: 1; min-height: 330px; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1200px; text-align: left; }
.fc-face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s var(--ease); }
.fc-back { transform: rotateY(180deg); background: var(--accent-tint); }
.flashcard.is-flipped .fc-front { transform: rotateY(-180deg); }
.flashcard.is-flipped .fc-back { transform: rotateY(0deg); }
@media (prefers-reduced-motion: reduce) { .fc-face { transition: none; } }
.fc-label { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fc-text { font-size: .9375rem; line-height: 1.5; font-weight: 500; }
.fc-front .fc-text { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.fc-hint { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--muted); }
.fc-hint .ph { width: 14px; height: 14px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: 4fr 8fr; gap: 72px; } .faq-side { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
.faq-list { display: grid; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 20px 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 40px 22px 0; color: var(--muted); }
.faq-body p { max-width: 68ch; }
.faq-body a, .faq-more a, .prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.faq-more { margin-top: 24px; color: var(--muted); font-size: .9375rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg); }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 5fr 7fr; gap: 64px; } }
.footer-brand { display: grid; gap: 18px; justify-items: start; }
.footer-disclaimer { color: var(--muted); font-size: .875rem; line-height: 1.55; max-width: 52ch; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-title { font-size: .875rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.footer-bottom a { color: var(--muted); }

/* ---------- inner pages ---------- */
.page-head { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.page-title { font-size: clamp(2.125rem, 1.3rem + 3vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 22ch; margin-top: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .875rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumb-sep { width: 12px; height: 12px; color: var(--faint); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.meta-chip { display: inline-flex; align-items: center; gap: .4rem; height: 32px; padding: 0 .8rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .875rem; color: var(--muted); white-space: nowrap; }
.meta-chip .ph { width: 16px; height: 16px; color: var(--accent-ink); }

.prose { color: var(--ink); font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); letter-spacing: -0.025em; margin-top: 2.2em; line-height: 1.2; }
.prose h3 { font-size: 1.25rem; letter-spacing: -0.015em; margin-top: 1.8em; line-height: 1.3; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--faint); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose strong { font-weight: 600; }
.prose code { font-family: var(--font-mono); font-size: .9em; padding: .1em .35em; border-radius: 5px; background: var(--sunken); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose .table-wrap { overflow-x: auto; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 16px; vertical-align: top; }
.prose th { font-weight: 600; background: var(--sunken); }
.prose tr + tr td { border-top: 1px solid var(--line); }
.prose picture, .prose img { border-radius: var(--r-card); height: auto; }
.prose .heading-anchor { margin-left: .35em; color: var(--faint); text-decoration: none; opacity: 0; transition: opacity .2s; }
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }

/* free test page */
.ft-layout { display: grid; gap: 40px; padding-bottom: clamp(64px, 8vw, 112px); }
@media (min-width: 1024px) { .ft-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; } .ft-aside { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 24px); } .ft-main { grid-column: 1; grid-row: 1 / span 2; } }
.ft-intro { max-width: 68ch; }
.ft-intro p + p { margin-top: 1em; }
.ft-intro p { color: var(--muted); font-size: 1.0625rem; }
.ft-intro strong { color: var(--ink); font-weight: 600; }
.side-card { padding: 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.side-card + .side-card { margin-top: 12px; }
.side-title { font-size: .875rem; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.toc { list-style: none; display: grid; gap: 2px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: var(--r-control); color: var(--muted); font-size: .9375rem; text-decoration: none; line-height: 1.3; }
.toc a:hover { background: var(--sunken); color: var(--ink); }
.toc a.is-current { color: var(--ink); font-weight: 600; }
.toc .mono { margin-left: auto; font-size: .8125rem; color: var(--muted); font-weight: 400; }
.toc-sub a { padding-left: 20px; font-size: .875rem; }
.score { display: grid; gap: 10px; }
.score-line { display: flex; align-items: baseline; gap: .5rem; }
.score-num { font-size: 2.25rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.score-of { color: var(--muted); font-size: .9375rem; }
.score-steps { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; }
.score-steps i { height: 6px; border-radius: 2px; background: var(--line); }
.score-steps i.ok { background: var(--success); }
.score-steps i.no { background: var(--danger); }
.score-reset { justify-self: start; background: none; border: 0; padding: 0; color: var(--accent-ink); font-size: .875rem; font-weight: 600; cursor: pointer; }
.score-reset[hidden] { display: none; }
.side-cta { display: grid; gap: 14px; background: var(--accent-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent); }
.side-cta p { font-size: .9375rem; color: var(--ink); line-height: 1.5; }
.side-cta .btn { width: 100%; }
@media (max-width: 1023px) { .ft-aside .side-cta { display: none; } }
.ft-domain { padding-top: clamp(48px, 6vw, 72px); }
.ft-dhead { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.ft-dhead h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.025em; flex: 1 1 18ch; }
.ft-dstats { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-list { display: grid; gap: 16px; }
.ft-card { padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.q-meta { display: flex; align-items: center; gap: .6rem; font-size: .8125rem; color: var(--muted); }
.q-meta .mono { color: var(--ink); font-weight: 600; }
.ft-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; padding: 18px 20px; border-radius: var(--r-card); background: color-mix(in srgb, var(--hue) 7%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 16%, var(--line)); }
.ft-next p { font-size: .96875rem; line-height: 1.45; }
.ft-next strong { font-weight: 600; }
.ft-related { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; font-size: .9375rem; }
.ft-related a { color: var(--accent-ink); text-underline-offset: 3px; }
.result-panel { display: grid; gap: 20px; margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 4vw, 44px); border-radius: var(--r-panel); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.result-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.result-grid li { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--hue) 8%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 16%, var(--line)); font-size: .8125rem; color: var(--muted); }
.result-grid .mono { font-size: 1.25rem; color: var(--ink); font-weight: 500; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.faq-block { margin-top: clamp(56px, 7vw, 88px); }
.faq-block > h2 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem); letter-spacing: -0.025em; margin-bottom: 20px; }

/* guides */
.guide-filters { display: none; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.js .guide-filters { display: flex; }
.chip-btn { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); font-size: .875rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.chip-btn:hover { color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.guide-grid { list-style: none; display: grid; gap: 16px; padding-bottom: clamp(64px, 8vw, 112px); }
@media (min-width: 700px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } .guide-grid.has-featured > li:first-child { grid-column: span 2; } }
.guide-grid[data-filtered] > li:first-child { grid-column: auto; }
.guide-card { position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 24px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow); }
.has-featured > li:first-child .guide-card { background: linear-gradient(150deg, var(--accent-tint), var(--surface) 75%); }
.has-featured > li:first-child .guide-title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.guide-topic { font-size: .8125rem; font-weight: 600; color: var(--accent-ink); }
.guide-title { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.guide-desc { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.guide-meta { margin-top: auto; padding-top: 8px; display: flex; gap: 14px; font-size: .8125rem; color: var(--muted); }
.guide-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.guide-meta .ph { width: 14px; height: 14px; }
.empty-state { padding: 48px 24px; border-radius: var(--r-card); text-align: center; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

.article-grid { display: grid; gap: 40px; padding-bottom: clamp(56px, 7vw, 96px); }
@media (min-width: 1024px) { .article-grid { grid-template-columns: minmax(0, 720px) 280px; justify-content: space-between; gap: 64px; align-items: start; } .article-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 1023px) { .article-aside { order: -1; } .article-aside .side-cta { display: none; } }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: .9375rem; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta .ph { width: 17px; height: 17px; }
.takeaway-box { margin-bottom: 36px; padding: 22px 24px; border-radius: var(--r-card); background: var(--accent-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent); }
.takeaway-label { display: flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9375rem; margin-bottom: 10px; color: var(--accent-ink); }
.takeaway-label .ph { width: 20px; height: 20px; }
.takeaway-box ul { list-style: none; display: grid; gap: 8px; }
.takeaway-box li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; line-height: 1.55; }
.takeaway-box li .ph { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-ink); }
.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.sources ol { padding-left: 1.3em; display: grid; gap: 8px; color: var(--muted); font-size: .9375rem; }
.sources a { color: var(--accent-ink); text-underline-offset: 3px; word-break: break-word; }
.guide-cta { display: grid; gap: 18px; margin-top: 48px; padding: clamp(24px, 4vw, 36px); border-radius: var(--r-panel); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.guide-cta-title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -0.025em; }
.guide-cta-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.related { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.025em; margin-bottom: 24px; }
.related .guide-grid { padding-bottom: 0; }

/* outline hub */
.outline-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.outline-wrap { overflow-x: auto; margin-top: 28px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.outline-table th, .outline-table td { padding: 14px 18px; text-align: left; white-space: nowrap; }
.outline-table thead th { font-size: .8125rem; font-weight: 600; color: var(--muted); background: var(--sunken); }
.outline-table tbody tr + tr td { border-top: 1px solid var(--line); }
.outline-table td.num, .outline-table th.num { text-align: right; font-family: var(--font-mono); }
.outline-table tfoot td { border-top: 1px solid var(--line-strong); font-weight: 600; }
.outline-table a { color: var(--ink); text-decoration: none; font-weight: 500; }
.outline-table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.od { padding-top: clamp(48px, 6vw, 72px); }
.od-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.od-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.025em; flex: 1 1 16ch; }
.task-list { list-style: none; display: grid; gap: 10px; }
@media (min-width: 760px) { .task-list { grid-template-columns: 1fr 1fr; } }
.task-list li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.task-list .mono { font-size: .875rem; font-weight: 600; color: color-mix(in srgb, var(--hue) 70%, var(--ink)); padding-top: 1px; }
.task-list strong { display: block; font-weight: 600; letter-spacing: -0.01em; }
.task-list p { color: var(--muted); font-size: .9375rem; line-height: 1.5; margin-top: 2px; }
.od-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; }

/* simple content pages */
.doc { padding-bottom: clamp(64px, 8vw, 112px); }
.doc .prose { max-width: 72ch; }
.doc-cards { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 760px) { .doc-cards { grid-template-columns: 1fr 1fr; } }
.contact-card { display: grid; gap: 12px; padding: 24px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.contact-card h2 { font-size: 1.125rem; letter-spacing: -0.015em; }
.contact-card p { color: var(--muted); font-size: .96875rem; line-height: 1.55; }
.contact-email { display: inline-flex; align-items: center; gap: .5rem; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); font-weight: 600; color: var(--accent-ink); text-decoration: none; letter-spacing: -0.015em; word-break: break-all; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-email .ph { width: 24px; height: 24px; flex: none; }
.legal-meta { color: var(--muted); font-size: .9375rem; margin-top: 12px; }
.notfound { min-height: 52vh; display: grid; align-content: center; gap: 24px; padding-block: 64px; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- reveal on scroll (motion is motivated: sections enter in reading order) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.mock-grid) { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-in:not(.mock-grid) { opacity: 1; transform: none; }
  .js .facts-grid [data-reveal]:nth-child(2) { transition-delay: 60ms; }
  .js .facts-grid [data-reveal]:nth-child(3) { transition-delay: 120ms; }
  .js .facts-grid [data-reveal]:nth-child(4) { transition-delay: 180ms; }
  .js .ready-legend li:nth-child(2) { transition-delay: 90ms; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* guide sources + practice block (rendered from the guide's own Markdown) */
.sources-body { display: grid; gap: 10px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.sources-body ul, .sources-body ol { padding-left: 1.3em; display: grid; gap: 8px; }
.sources-body a, .guide-cta-text a { color: var(--accent-ink); text-underline-offset: 3px; word-break: break-word; }
.guide-cta-text { display: grid; gap: 10px; color: var(--muted); max-width: 64ch; }

/* guide Markdown extras */
.prose .term-list { margin-top: 1.1em; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.term-list > div { display: grid; gap: 2px; padding: 14px 18px; }
.term-list > div + div { border-top: 1px solid var(--line); }
.term-list dt { font-weight: 600; letter-spacing: -0.01em; }
.term-list dd { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
@media (min-width: 640px) { .term-list > div { grid-template-columns: minmax(150px, 34%) 1fr; gap: 20px; } }
.prose > ol, .prose li > ol { list-style: none; padding-left: 0; counter-reset: ol; }
.prose > ol > li, .prose li > ol > li { position: relative; padding-left: 2.5em; counter-increment: ol; }
.prose > ol > li::before, .prose li > ol > li::before { content: counter(ol); position: absolute; left: 0; top: .2em; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); font: 600 .8125rem/1 var(--font-mono); }
.prose .guide-q { margin-top: 1.4em; }
.prose .guide-q + .guide-q { margin-top: 14px; }
.prose .q-prompt, .prose .guide-q > p:first-child { font-size: 1.125rem; }

/* QA pass 1: rhythm, display numerals, hero measure */
.section { padding-block: clamp(64px, 7vw, 104px); }
.facts { padding-bottom: 0; }
.facts + .section { padding-top: clamp(56px, 6vw, 88px); }
.fact-num, .mock-facts dt, .score-num, .bento-count .mono, .result-grid .mono { font-family: var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.fact-num { font-weight: 600; letter-spacing: -0.045em; }
.mock-facts dt { font-weight: 600; }

/* QA pass 2: mobile */
.text-link { display: inline; }
.text-link .ph { display: inline-block; vertical-align: -0.15em; margin-left: .35em; }
@media (max-width: 639px) {
  .url-path { display: none; }
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bento-tile { min-height: 0; padding: 16px 16px 18px; gap: 4px; }
  .bento-head { margin-bottom: 10px; }
  .bento-icon { width: 26px; height: 26px; }
  .dletter { width: 26px; height: 26px; font-size: .8125rem; }
  .bento-name { font-size: 1rem; }
  .bento-count { font-size: .875rem; }
  .bento-meta { font-size: .75rem; padding-top: 8px; }
  .bento-go { display: none; }
  .mock-grid { grid-template-columns: repeat(17, 1fr); gap: 3px; }
  .cell { border-radius: 3px; }
}
@media (max-width: 1023px) { .mock-copy { order: -1; } }
.q-prompt, .guide-q > p:first-child { text-wrap: pretty; }
.result-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .result-grid { grid-template-columns: repeat(3, 1fr); } }
.result-grid li { align-content: space-between; min-height: 84px; }
@media (min-width: 700px) { .ft-main .guide-grid { grid-template-columns: repeat(2, 1fr); } }
.ft-main .guide-grid { padding-bottom: 28px; }
.prose .q-options { padding-left: 0; }
.prose .q-options li + li { margin-top: 0; }
.prose .guide-q .q-why { margin-top: 6px; }
.compare-table th[scope="row"] { font-weight: 500; white-space: normal; }
.compare-table thead th:not(:first-child), .compare-table td { text-align: center; width: 24%; }
.compare-table td:last-child, .compare-table thead th:last-child { background: color-mix(in srgb, var(--accent-tint) 55%, var(--surface)); }
.compare-table thead th:last-child { color: var(--accent-ink); }
.compare-table td .ph { margin-inline: auto; }
.compare-table td .mono { font-family: var(--font-sans); font-weight: 600; font-variant-numeric: tabular-nums; }
.muted-dash { display: inline-block; color: var(--faint); }
.muted-dash .ph { width: 18px; height: 18px; }
.term-list dd::first-letter { text-transform: uppercase; }
.doc .article-body { max-width: 72ch; }
.glance { list-style: none; display: grid; gap: 10px; }
.glance li { display: flex; align-items: baseline; gap: .6rem; color: var(--muted); font-size: .9375rem; }
.glance-num { min-width: 3.2ch; color: var(--ink); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.doc.article-grid { padding-bottom: clamp(64px, 8vw, 112px); }
/* free test grid: intro, then tools, then questions (DOM order = reading order on mobile) */
@media (min-width: 1024px) {
  .ft-layout { grid-template-rows: auto 1fr; }
  .ft-intro { grid-column: 1; grid-row: 1; }
  .ft-main { grid-row: 2; }
  .ft-aside { grid-row: 1 / span 2; }
}
@media (max-width: 1023px) { .ft-aside .score { display: none; } }
.ft-main > .ft-domain:first-child { padding-top: 8px; }
/* QA pass 3: mobile TOC, crumbs, glance */
.toc-mobile { display: none; margin-bottom: 24px; padding: 0; }
.toc-mobile summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-weight: 600; font-size: .9375rem; cursor: pointer; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile .toc { padding: 0 20px 16px; }
.toc-caret { width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease); }
.toc-mobile[open] .toc-caret { transform: rotate(180deg); }
@media (max-width: 1023px) {
  .toc-mobile { display: block; }
  .article-aside [data-toc] { display: none; }
  .aside-after { order: 1; }
  .crumbs li[aria-current] { flex: 1 1 0; min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.glance li { display: grid; grid-template-columns: 4.6ch 1fr; }
@media (max-width: 1023px) {
  .article-aside:not(.aside-after) { display: none; }
  .page-head { padding-bottom: 24px; }
}
.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(14, 18, 32, .16), 0 4px 10px -4px color-mix(in srgb, var(--accent) 28%, transparent); }
:root[data-theme="dark"] .btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 0, 0, .4); }
.outline-table thead th.num { font-family: var(--font-sans); }

/* =====================================================================
   Round 2 design pass: rhythm, hero emphasis, try-it, readiness frame,
   pricing plan rows, ink CTA panel, guide template. Later rules win.
   ===================================================================== */

/* type rhythm */
.section-title { font-size: clamp(1.875rem, 1.05rem + 2.5vw, 2.875rem); line-height: 1.06; letter-spacing: -0.03em; }
.section-title.narrow { max-width: 18ch; }
.hero-title .hl { color: var(--accent-ink); }
:root[data-theme="dark"] .hero-title .hl { color: var(--accent); }

/* buttons */
.btn-lg { height: 54px; padding: 0 1.5rem; font-size: 1.0625rem; border-radius: 10px; }
.btn-lg .btn-arrow { width: 1.1em; height: 1.1em; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; font-weight: 500; }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover { transform: translateY(-1px); }
  .btn-primary:active { transform: translateY(1px) scale(.985); }
}

/* header */
.site-header.is-scrolled { box-shadow: 0 10px 28px -22px rgba(14, 18, 32, .35); }
.read-progress { display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .page-guide .read-progress { display: block; animation: read-progress linear both; animation-timeline: scroll(root); }
  }
}
@keyframes read-progress { to { transform: scaleX(1); } }

/* facts band */
.facts { padding-top: clamp(8px, 2vw, 20px); }
.facts-grid li { gap: 10px; }
.fact-num { font-size: clamp(2.5rem, 1.7rem + 2.3vw, 3.75rem); }
.fact-label { max-width: 22ch; }

/* try it: a real question to answer, next to the three promises */
.section-try { padding-top: clamp(64px, 7vw, 112px); }
.try-card { padding: clamp(18px, 2.6vw, 30px); border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.try-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.try-hint { margin-left: auto; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); font-size: .8125rem; font-weight: 600; }
.q-try .q-prompt { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); }
.q.is-answered .try-hint { visibility: hidden; }

/* readiness: the real dashboard with example progress, fading into the page */
.ready-figure { margin: clamp(28px, 4vw, 48px) 0 0; }
.ready-frame { max-height: 600px; overflow: hidden; padding: 2px 2px 0; margin: -2px -2px 0;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 74%, transparent 100%); }
.ready-legend ol { list-style: none; display: grid; gap: 22px; margin-top: 12px; }
@media (min-width: 900px) { .ready-legend ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.ready-legend li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.ready-legend li > .ph { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-ink); }
.ready-legend p { color: var(--muted); font-size: .96875rem; line-height: 1.55; }
.ready-legend strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; margin-bottom: 2px; }
.ready-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 28px; font-size: .875rem; color: var(--muted); }
.ready-note .ph { width: 18px; height: 18px; margin-top: 1px; }

.dash { display: grid; background: var(--bg); font-size: 14px; }
@media (min-width: 900px) { .dash { grid-template-columns: 216px minmax(0, 1fr); } }
.dash .ph { width: 18px; height: 18px; }
.dash kbd { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 5px; font: 500 .6875rem/1 var(--font-mono); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dash-side { display: none; }
@media (min-width: 900px) { .dash-side { display: flex; flex-direction: column; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--surface); } }
.app-logo { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px 6px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.app-logo-tile { position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent); }
.app-logo-tile::before { content: ""; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--on-accent); }
.app-logo-tile i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--on-accent); }
.dash-nav { list-style: none; display: grid; gap: 2px; }
.dash-nav li { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--r-control); color: var(--muted); font-weight: 500; font-size: 13.5px; }
.dash-nav li.is-active { background: var(--accent-tint); color: var(--accent-ink); }
.dash-side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 28px; }
.dash-mini { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-card); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.dash-mini small { display: block; font-size: 12px; color: var(--muted); }
.dash-mini b { font-size: 15px; font-weight: 600; }
.dash-flame { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.dash-flame .ph, .dash-streak .ph { color: var(--warning); }
.dash-premium { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 13px; }
.dash-premium .ph { color: var(--success); }
.dash-main { min-width: 0; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); font-weight: 500; }
.dash-search { display: none; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 10px; border-radius: var(--r-control); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 13px; font-weight: 400; }
.dash-search kbd:first-of-type { margin-left: 40px; }
@media (min-width: 700px) { .dash-search { display: inline-flex; } }
.dash-grid { display: grid; gap: 16px; padding: 16px; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); padding: 24px; gap: 20px; } }
.dash-card { padding: 16px 18px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 1px 3px rgba(14, 18, 32, .05); }
.dash-hero { display: flex; flex-direction: column; padding: 0; }
.dash-hero-top { display: grid; gap: 20px; padding: 22px; align-items: center; justify-items: start; }
@media (min-width: 700px) { .dash-hero-top { grid-template-columns: auto minmax(0, 1fr); gap: 32px; padding: 26px 28px; } }
.ring { --v: 0; --s: 150px; --t: 11px; position: relative; display: block; flex: none; width: var(--s); height: var(--s); border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--sunken) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--t) - 1px), #000 calc(100% - var(--t)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--t) - 1px), #000 calc(100% - var(--t))); }
.ring-sm { --t: 4px; }
.ring-sm .ring-target { display: none; }
.ring-target { position: absolute; left: calc(50% - 1px); top: 0; width: 2px; height: 50%; transform-origin: 50% 100%; transform: rotate(288deg); background: linear-gradient(var(--ink) 0 16px, transparent 16px); }
.dash-ring { position: relative; }
.dash-ring-num { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; align-items: baseline; text-align: center; }
.dash-ring-num b { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.dash-ring-num small { font-size: 18px; color: var(--muted); }
.dash-ring-num em { flex-basis: 100%; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); }
.dash-h { font-size: clamp(20px, 1.05rem + .7vw, 27px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; max-width: 17ch; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; }
.dash-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--r-control); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.dash-ghost { display: inline-flex; align-items: center; height: 42px; padding: 0 12px; font-weight: 500; }
.dash-domains { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; padding: 14px 22px; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .dash-domains { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 14px 28px; } }
.dash-domains li > span { display: flex; justify-content: space-between; font-size: 12px; }
.dash-domains b { font: 600 12px/1 var(--font-mono); color: color-mix(in srgb, var(--hue) 78%, var(--ink)); }
.dash-domains i { display: block; height: 4px; margin-top: 7px; border-radius: 4px; background: linear-gradient(var(--hue), var(--hue)) 0 0 / var(--p) 100% no-repeat, var(--sunken); }
.dash-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.dash-figs div { padding: 12px 22px; }
.dash-figs div + div { border-left: 1px solid var(--line); }
.dash-figs dt { font-size: 12px; color: var(--muted); }
.dash-figs dd { margin: 2px 0 0; font-size: 17px; font-weight: 500; }
@media (max-width: 699px) { .dash-figs div { padding: 10px 12px; } .dash-figs dd { font-size: 15px; } }
.dash-col { display: grid; gap: 16px; align-content: start; }
.dash-card-head { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dash-card-head .ph { color: var(--muted); }
.dash-card-head em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 500; color: var(--accent-ink); }
.dash-big { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.dash-big b { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.dash-big span { font-size: 13px; color: var(--muted); }
.dash-bar { display: block; height: 6px; margin-top: 12px; border-radius: 6px; background: var(--sunken); overflow: hidden; }
.dash-bar i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--accent); }
.dash-week { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; font-size: 11px; color: var(--muted); text-align: center; }
.dash-week li > span { display: flex; align-items: flex-end; height: 36px; margin-bottom: 4px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.dash-week li i { display: block; width: 100%; background: color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 4px; }
.dash-week li i.met { background: var(--accent); }
.dash-week li.is-today { color: var(--ink); font-weight: 600; }
.dash-streak { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.dash-streak em { margin-left: auto; font-style: normal; color: var(--muted); }

/* devices: two platforms, badges inline */
.platforms .store-badges { margin-top: 4px; }

/* pricing: Free vs Premium, both paid plans visible as plan rows */
.section-pricing { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-tint) 55%, transparent) 55%, transparent); }
.plans { display: grid; gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .plans { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 20px; align-items: stretch; } }
.plan { display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-panel); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.plan-free .plan-cta { margin-top: auto; }
.plan-premium { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-lg); background: linear-gradient(180deg, color-mix(in srgb, var(--accent-tint) 70%, var(--surface)), var(--surface) 46%); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.plan-name { font-size: 1.375rem; letter-spacing: -0.02em; }
.plan-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 500; color: var(--accent-ink); }
.plan-kicker .ph { width: 18px; height: 18px; }
.plan-price { display: flex; align-items: baseline; gap: .5rem; }
.plan-amount { font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-per { color: var(--muted); font-size: 1rem; }
.plan-options { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
@media (min-width: 640px) { .plan-options { grid-template-columns: 1.2fr 1fr; } }
.plan-option { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-content: start; padding: 16px 18px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.plan-option:hover { box-shadow: inset 0 0 0 1px var(--faint); }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.po-radio { grid-row: 1 / span 3; margin-top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow .2s var(--ease); }
.plan-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); }
.plan-option:has(input:checked) .po-radio { box-shadow: inset 0 0 0 6px var(--accent); }
.plan-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.po-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 600; }
.po-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 600; }
.po-price { color: var(--muted); font-size: .9375rem; }
.po-amount { color: var(--ink); font-size: 1.875rem; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.po-sub { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.plan-go .plan-cta { width: 100%; }
.plan-cta-monthly { display: none; }
.plan-premium:has(input[value="monthly"]:checked) .plan-cta-monthly { display: inline-flex; }
.plan-premium:has(input[value="monthly"]:checked) .plan-cta-yearly { display: none; }
@supports not selector(:has(*)) { .plan-cta-monthly { display: inline-flex; margin-top: 8px; } }
.plan-list { list-style: none; display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .96875rem; line-height: 1.45; }
@media (min-width: 640px) { .plan-list-2 { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.li-check { width: 20px; height: 20px; margin-top: 1px; color: var(--success); }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; font-size: .9375rem; font-weight: 500; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .ph { width: 19px; height: 19px; color: var(--accent-ink); }
.plans-disclaimer { max-width: 92ch; margin: 16px auto 0; text-align: center; font-size: .8125rem; line-height: 1.55; color: var(--muted); }
.pricing-top { padding-bottom: clamp(32px, 4vw, 48px); }
.pricing-top .plans { margin-top: 0; }
@media (max-width: 639px) { .trust-row { justify-content: flex-start; flex-direction: column; } }

/* comparison table, grouped by job */
.compare-group th { padding: 22px 18px 8px !important; background: transparent; font-size: .8125rem; font-weight: 600; color: var(--ink); text-align: left; }
.compare-table tbody:first-of-type .compare-group th { padding-top: 16px !important; }
.outline-table tbody tr.compare-group + tr td, .outline-table tbody tr.compare-group + tr th { border-top: 0; }
.compare-table tbody tr:not(.compare-group) th, .compare-table tbody tr:not(.compare-group) td { border-top: 1px solid var(--line); }
.compare-table tbody tr.compare-group + tr th, .compare-table tbody tr.compare-group + tr td { border-top: 0; }

/* FAQ side note */
.faq-contact { display: grid; grid-template-columns: 26px 1fr; gap: 12px; max-width: 34ch; margin-top: 28px; padding: 18px 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.faq-contact .ph { width: 26px; height: 26px; color: var(--accent-ink); }
.faq-contact a { color: var(--accent-ink); overflow-wrap: anywhere; text-underline-offset: 3px; }
@media (max-width: 1023px) { .faq-contact { display: none; } }
.faq-item summary { transition: color .2s; }
.faq-item summary:hover { color: var(--accent-ink); }

/* final CTA: one confident ink panel */
.final { padding-top: clamp(24px, 3vw, 40px); }
.cta-panel { position: relative; overflow: hidden; display: grid; gap: 32px; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-panel); background: #0E1220; color: #EDEFF6; box-shadow: var(--shadow-lg); text-align: left; }
.cta-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 85% at 100% 0%, rgba(82, 82, 216, .42), transparent 62%), radial-gradient(45% 70% at 0% 100%, rgba(82, 82, 216, .16), transparent 70%); }
.cta-panel > * { position: relative; }
@media (min-width: 900px) { .cta-panel { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 56px; } }
.cta-title { font-size: clamp(2rem, 1.15rem + 2.7vw, 3.375rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; color: #F4F5FA; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; margin-top: 28px; }
.cta-panel .btn-primary { background: #6363E0; color: #FFFFFF; }
.cta-panel .btn-primary:hover { background: #7272E8; }
.cta-panel .store-badge { background: #F4F5FA; color: #0E1220; }
.cta-panel :focus-visible { outline-color: #A3A3F6; }
.cta-points { list-style: none; display: grid; gap: 16px; }
.cta-points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: #B4BACB; font-size: 1rem; line-height: 1.5; }
.cta-points strong { color: #F4F5FA; font-weight: 600; }
.cta-points .ph { width: 22px; height: 22px; color: #3DD6A0; }
:root[data-theme="dark"] .cta-panel { background: var(--raised); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
:root[data-theme="dark"] .cta-panel .btn-primary { background: var(--accent); color: var(--on-accent); }
:root[data-theme="dark"] .cta-panel .btn-primary:hover { background: var(--accent-hover); }

/* guides index */
.guide-topic { display: inline-flex; align-items: center; gap: 8px; }
.guide-topic-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-control); background: var(--accent-tint); color: var(--accent-ink); }
.guide-topic-icon .ph { width: 17px; height: 17px; }
.guide-meta { align-items: center; }
.guide-go { margin-left: auto; width: 18px !important; height: 18px !important; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.guide-card:hover .guide-go { transform: translateX(3px); color: var(--accent-ink); }
.guide-card:hover .guide-title { color: var(--accent-ink); }
.guide-title { transition: color .2s; }
.guide-grid .guide-date { display: none; }
.has-featured > li:first-child .guide-date { display: inline-flex; }
.has-featured > li:first-child .guide-card { padding: clamp(24px, 3vw, 36px); justify-content: flex-start; }
.has-featured > li:first-child .guide-desc { font-size: 1rem; max-width: 56ch; }

/* guide article: TOC progress, practice card, native CTA, tidy sources */
.toc-track { gap: 0; padding-left: 14px; box-shadow: inset 1px 0 0 var(--line); }
.toc-track a { position: relative; margin: 0; padding: 7px 8px; border-radius: 0 var(--r-control) var(--r-control) 0; }
.toc-track a.is-current::before { content: ""; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--accent); }
.practice-card { display: grid; gap: 14px; margin-top: 12px; padding: 18px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.pc-title { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; }
.pc-title .ph { width: 18px; height: 18px; color: var(--accent); }
.pc-list { list-style: none; display: grid; gap: 12px; }
.pc-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: .875rem; font-weight: 500; line-height: 1.3; }
.pc-list .dletter { margin-top: 1px; }
.pc-name small { display: block; margin-top: 3px; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.pc-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--accent-ink); }
.pc-ico .ph { width: 18px; height: 18px; }
.practice-card .btn { width: 100%; }
.pc-note { font-size: .8125rem; color: var(--muted); text-align: center; }
.guide-cta-native { position: relative; overflow: hidden; gap: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.guide-cta-native::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--dA) 0 17%, var(--dB) 17% 28%, var(--dC) 28% 53%, var(--dD) 53% 72%, var(--dE) 72% 85%, var(--dF) 85%); }
.gc-kicker { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--accent-ink); }
.gc-kicker .ph { width: 16px; height: 16px; }
.gc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 12px 4px 6px; border-radius: 999px; background: color-mix(in srgb, var(--hue) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 22%, var(--line)); font-size: .875rem; font-weight: 500; }
.gc-count { color: var(--muted); font-weight: 400; }
.gc-count .mono { color: var(--ink); }
.guide-cta-row { margin-top: 4px; }
.sources-body, .sources ol { font-size: .875rem; }
.sources a, .sources-body a { overflow-wrap: anywhere; word-break: normal; }
.prose { line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem); letter-spacing: -0.028em; }
.prose p, .prose li { max-width: 68ch; }
.prose .table-wrap { background: var(--surface); }
.takeaway-box { background: color-mix(in srgb, var(--accent-tint) 75%, var(--surface)); }

/* about: numerals no longer collide with their labels */
.glance li { grid-template-columns: 4.4rem 1fr; }

/* motion: product frames arrive with the page, then sit still */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-ctas, .hero-stage { animation: rise-in .9s var(--ease) both; }
  .hero-ctas { animation-delay: .08s; }
  .hero-stage { animation-delay: .16s; }
  .stage-note { animation: rise-in .8s var(--ease) .6s both; }
  .plan-option, .plan-option .po-radio { transition-duration: .25s; }
}
/* short laptop screens (1280x720 and similar): keep both verdicts above the fold */
@media (min-width: 1024px) and (max-height: 780px) {
  .hero { padding-top: 20px; }
  .hero-copy { gap: .75rem; }
  .hero-stage { margin-top: 26px; }
  .run-top { height: 46px; }
  .run-body { padding-top: 20px; }
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.compare-group th { background: linear-gradient(90deg, transparent 76%, color-mix(in srgb, var(--accent-tint) 55%, var(--surface)) 76%) !important; }
/* comparison table: fixed columns so the Premium tint lines up in every row, phone included */
.compare-table { table-layout: fixed; }
.compare-table thead th:first-child { width: 52%; }
.compare-table thead th:not(:first-child) { width: 24%; }
@media (max-width: 639px) {
  .compare-table thead th:first-child { width: 50%; }
  .compare-table thead th:not(:first-child) { width: 25%; }
  .compare-group th { background: linear-gradient(90deg, transparent 75%, color-mix(in srgb, var(--accent-tint) 55%, var(--surface)) 75%) !important; }
  .compare-table th, .compare-table td { padding: 12px 12px; }
  .compare-table td { white-space: normal; }
}
/* final CTA on phones: full-width button, badges side by side */
.cta-row .store-badges { flex: 0 0 auto; flex-wrap: nowrap; }
@media (max-width: 479px) { .cta-row .btn { width: 100%; } .cta-row .store-badge { padding-inline: .75rem; } }
.run-bottom kbd { opacity: 1; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent); }
@media (max-width: 639px) { .facts { padding-top: 32px; } }
/* devices: the phone floats on the same soft wash as the hero instead of a boxed panel */
.devices-visual { background: radial-gradient(56% 60% at 50% 55%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%); border-radius: 0; }
/* small laptops: give the headline the full measure so it stays on two lines */
@media (min-width: 1024px) and (max-width: 1279px) { .hero-head { grid-template-columns: minmax(0, 1fr); } .hero-title { max-width: 16em; } }

/* =====================================================================
   Round 2b (independent critique): saving line, web-Premium note, pricing
   order on phones, free-test phone flow, methodology, overflow hardening.
   ===================================================================== */

/* never wider than the phone: grid/flex children may shrink, long words wrap */
.article-grid > *, .article-body, .ft-layout > *, .ft-main, .split-sticky > *, .mock-layout > *, .devices > *, .faq-layout > *, .plans > *, .footer-top > *, .dash-grid > *, .run-body > * { min-width: 0; }
.takeaway-box, .toc-mobile, .side-card, .practice-card, .guide-cta, .faq-block, .sources, .result-panel { box-sizing: border-box; max-width: 100%; }
.takeaway-box li span, .toc a, .prose, .guide-cta-text, .faq-body p, .sources-body, .term-list dd { overflow-wrap: anywhere; }
.prose { overflow-wrap: break-word; }
@media (max-width: 639px) {
  .takeaway-box { padding: 18px 16px; }
  .guide-cta, .result-panel { padding-inline: 16px; }
  .toc-mobile summary { padding-inline: 16px; }
  .toc-mobile .toc { padding-inline: 16px; }
  .article-meta { gap: 6px 14px; }
}

/* yearly saving, right next to $29.99 */
.po-save { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px; background: var(--success-tint); color: var(--success-ink); font-size: .8125rem; font-weight: 600; line-height: 1.3; }

/* the note that belongs next to every purchase control */
.plan-web-note { display: grid; grid-template-columns: 18px 1fr; gap: 8px; margin-top: 12px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.plan-web-note .ph { width: 17px; height: 17px; margin-top: 1px; color: var(--accent-ink); }

/* Free plan: the short summary only shows where the card is compressed */
.plan-free-short { display: none; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
@media (max-width: 899px) {
  .plans-premium-first .plan-premium { order: -1; }
  .plans-premium-first .plan-free { gap: 12px; padding: 18px 20px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
  .plans-premium-first .plan-free .plan-list { display: none; }
  .plans-premium-first .plan-free .plan-free-short { display: block; }
  .plans-premium-first .plan-free .plan-amount { font-size: 2rem; }
  .plans-premium-first .plan-free .plan-cta { margin-top: 4px; }
}

/* free test on phones: two-line lead, question 1 right away, sections behind one control */
.ft-lead { display: none; }
.ft-jump { margin-bottom: 4px; }
.ft-jump + .ft-domain { padding-top: 20px; }
@media (min-width: 1024px) { .ft-jump { display: none !important; } }
@media (max-width: 1023px) { .ft-aside { display: none; } }
@media (max-width: 639px) {
  .page-free-test .page-head { padding-bottom: 16px; }
  .ft-lead { display: block; margin-top: 12px; max-width: 36ch; color: var(--muted); font-size: 1rem; line-height: 1.5; }
  .page-free-test .meta-row { margin-top: 14px; }
  .page-free-test .meta-row .meta-chip:not(:last-child) { display: none; }
  .ft-layout { gap: 24px; }
  .ft-intro { order: 3; }
  .ft-dhead { margin-bottom: 16px; }
}

/* methodology block (About) and the links to it */
.prose .method-list { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 1.2em; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.method-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 18px 20px; margin: 0 !important; }
.method-list li + li { border-top: 1px solid var(--line); }
.method-list .ph { width: 28px; height: 28px; color: var(--accent-ink); }
.prose .method-list h3 { margin: 0 0 4px; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.35; }
.prose .method-list p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.article-method, .meta-link { color: var(--accent-ink); text-decoration: none; }
.article-method { display: inline-flex; align-items: center; gap: .4rem; }
.article-method:hover, .meta-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta-link .ph { color: var(--accent-ink); }

/* guides directory: one clear starting point */
.guide-card.is-start { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-sm); }
.guide-card.is-start .guide-topic { color: var(--accent-ink); }
.guide-card.is-start .guide-topic-icon { background: var(--accent); color: var(--on-accent); }
/* narrow phones (320-374 px): brand, CTA and menu still fit on one line */
@media (max-width: 374px) {
  .header-inner { gap: .5rem; }
  .brand { font-size: 1rem; }
  .brand .brand-mark { width: 30px; height: 12.5px; }
  .header-actions { gap: .25rem; }
  .header-cta.btn-sm { height: 34px; padding: 0 .65rem; font-size: .8125rem; }
  .nav-toggle { width: 36px; height: 36px; }
}
.po-radio { grid-row: 1 / span 4; }
.plan-option > :not(.po-radio):not(input) { grid-column: 2; }
.po-save { border-radius: 8px; }
/* theme toggle: icon button in the desktop header, a row in the phone menu (JS only) */
.theme-toggle { display: none; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: var(--r-control); background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s; }
.theme-toggle:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.theme-toggle .ph, .theme-row .ph { width: 20px; height: 20px; }
@media (min-width: 1040px) { .js .theme-toggle { display: inline-grid; } }
.theme-row { display: none; width: 100%; align-items: center; justify-content: space-between; padding: .9rem 0; border: 0; background: none; font: inherit; font-weight: 500; font-size: 1.0625rem; color: var(--ink); cursor: pointer; text-align: left; }
.js .theme-row { display: flex; }
.theme-row-value { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9375rem; }
.tt-light, .tt-system { display: none; }
:root[data-theme-pref="light"] .tt-dark, :root[data-theme-pref="system"] .tt-dark { display: none; }
:root[data-theme-pref="light"] .tt-light { display: block; }
:root[data-theme-pref="system"] .tt-system { display: block; }

/* Compact article choices share the existing question design tokens. */
.guide-q .q-options > button { display:block; width:100%; min-height:50px; padding:10px 14px; border:0; border-radius:10px; background:var(--surface); box-shadow:inset 0 0 0 1px var(--line-strong); text-align:left; font-size:.96875rem; line-height:1.4; cursor:pointer; }
.guide-q .q-options > button:hover { box-shadow:inset 0 0 0 1px var(--accent); }
.guide-q.is-answered .q-options > button { cursor:default; }
.guide-q.is-answered [data-correct], html:not(.js) .guide-q [data-correct] { background:var(--success-tint); box-shadow:inset 0 0 0 1.5px var(--success); }
.guide-q.is-answered .is-wrong { background:var(--danger-tint); box-shadow:inset 0 0 0 1.5px var(--danger); }

/* ---------- responsive audit 2026-10-02 (Playwright device matrix, 320 to 2560 px) ---------- */
/* Desktop nav: labels never wrap; the "More" group is a real dropdown (it was an unstyled <details> with a raw marker). */
.site-nav a, .site-nav summary { white-space: nowrap; }
.site-nav ul { align-items: center; }
@media (max-width: 1199px) { .site-nav a, .site-nav summary { padding-inline: .6rem; } .header-inner { gap: 1rem; } }
.nav-more { position: relative; }
.nav-more summary { display: inline-flex; align-items: center; gap: .3rem; height: 38px; padding: 0 .8rem; border-radius: var(--r-control); color: var(--muted); font-size: .9375rem; font-weight: 500; cursor: pointer; list-style: none; user-select: none; transition: color .2s, background-color .2s; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: ""; width: .45em; height: .45em; margin-top: -.2em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.nav-more summary:hover, .nav-more[open] summary { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav-more[open] summary::after { margin-top: .2em; transform: rotate(-135deg); }
.nav-more > ul { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; display: grid; gap: 2px; min-width: 210px; padding: 6px; background: var(--raised); border-radius: var(--r-card); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.nav-more > ul a { display: flex; width: 100%; height: 40px; }

/* Tables: every wrapper scrolls sideways instead of widening the page (the quiz score table did not). */
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 100%; }
.bento { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  /* Exam outline: the numeric columns used to sit off-screen behind a sideways scroll. */
  .outline-table th, .outline-table td { padding: 11px 12px; white-space: normal; }
  .outline-table { font-size: .875rem; }
  .outline-table thead th { font-size: .75rem; vertical-align: bottom; }
}
/* Comparison table on the narrowest phones: "Unlimited" no longer clips. */
@media (max-width: 400px) {
  .compare-table thead th:first-child { width: 42%; }
  .compare-table thead th:not(:first-child) { width: 29%; }
  .compare-table th, .compare-table td { padding: 11px 8px; font-size: .875rem; }
}

/* Article pages (lib/articles.mjs): the takeaway box holds a heading and plain list items, which the
   icon + text grid below collapsed into a 20 px column (one word per line). Styled for both shapes. */
.takeaway-box > h2 { display: flex; align-items: center; gap: .45rem; margin: 0 0 10px; font-size: .9375rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--accent-ink); }
.takeaway-box li:not(:has(> .ph)) { display: block; position: relative; padding-left: 26px; }
.takeaway-box li:not(:has(> .ph))::before { content: ""; position: absolute; left: 5px; top: .42em; width: 5px; height: 10px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(40deg); }
.article-body, .article-body > * { min-width: 0; }
.prose :is(h2, h3) { overflow-wrap: anywhere; }

/* Touch targets (WCAG 2.2 SC 2.5.8 asks 24 px, platform guidance 44 px). Visuals stay put; padding grows the hit area. */
.q-reveal { min-height: 44px; padding: 10px 4px; }
.linklike { min-height: 32px; padding-block: 6px; }
.footer-bottom a { display: inline-block; padding-block: 6px; }
.crumbs a { display: inline-block; padding-block: 4px; }
.btn-sm { min-height: 38px; }
@media (pointer: coarse) { .btn-sm, .site-nav a, .nav-toggle { min-height: 44px; } }
.interval-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; margin-top: 12px; }
.interval-cells button { min-height: 44px; border: 0; border-radius: var(--r-control); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font: 600 .9375rem/1 var(--font-sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.interval-cells button:hover { box-shadow: inset 0 0 0 1px var(--accent); }

/* Phone menu: tall menus (landscape phones) scroll inside the header instead of running off the screen. */
.mobile-nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
/* Header on very narrow screens (Galaxy Fold cover display, 280 px): the logo word goes, the CTA stays. */
@media (max-width: 319px) { .brand-word { display: none; } .container { width: min(100% - 24px, 1200px); } }

/* Hero demo window: keyboard hints mean nothing on touch widths and pushed "Next question" out of the frame. */
@media (max-width: 639px) {
  .run-bottom { gap: 8px; padding: 0 12px; }
  .run-bottom kbd { display: none; }
  .run-next { padding: 0 14px; }
  .run-btn { padding: 0 10px; }
}
.run-btn, .run-next { white-space: nowrap; }

/* Final CTAs: store badges wrap under the button instead of poking out of the panel. */
@media (max-width: 479px) {
  .cta-row .store-badges { flex-wrap: wrap; width: 100%; }
  .cta-row .store-badge { flex: 1 1 140px; justify-content: center; }
}

/* Contact: the address no longer breaks mid-domain. */
.contact-email { word-break: normal; overflow-wrap: anywhere; font-size: clamp(.8125rem, 3.9vw, 1.375rem); min-width: 0; }
@media (max-width: 359px) { .contact-email .ph { display: none; } .contact-card { padding: 18px; } }

/* Flashcard flip: hide the inactive face explicitly. Some engines (the Windows WebKit build) ignore
   backface-visibility and drew the mirrored back over the front. */
.fc-face { transition: transform .6s var(--ease), visibility 0s linear .3s; }
.fc-back, .flashcard.is-flipped .fc-front { visibility: hidden; }
.flashcard.is-flipped .fc-back { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .fc-face { transition: none; } }
/* Exam outline on phones: three columns fit without sideways scrolling (tasks and question counts repeat in each section below). */
@media (max-width: 639px) {
  .outline-table :is(th, td):nth-child(n + 4) { display: none; }
  .outline-table td.num { white-space: nowrap; padding-inline: 8px; }
  .outline-table th.num { white-space: normal; width: 27%; padding-inline: 8px; }
  .outline-table td:first-child { padding-right: 8px; }
}
.browser-url { text-overflow: ellipsis; }

/* Article sidebar contents (lib/articles.mjs emits a plain list inside .side-card): same look as the .toc links. */
.article-aside nav.side-card::before { content: "On this page"; display: block; margin-bottom: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.article-aside nav.side-card ul { list-style: none; display: grid; gap: 2px; padding: 0; }
.article-aside nav.side-card a { display: block; padding: 7px 8px; margin: 0 -8px; border-radius: var(--r-control); color: var(--muted); font-size: .9375rem; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.article-aside nav.side-card a:hover { background: var(--sunken); color: var(--ink); }

/* UK Site Safety Prep brand layer, loaded after the base site.css.
   Base tokens come from the RBT marketing system (same components and spacing).
   Accent: safety yellow #F2C94C with dark slate #10242C text on it (matches the app icon and OG image).
   Concrete #F3F1EB and slate #0B161B are the page backgrounds (from the app DESIGN.md). */

:root {
  --bg: #F3F1EB;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --sunken: #E9E6DC;
  --ink: #10242C;
  --muted: #4B5B61;
  --faint: #7A858A;
  --line: #DEDACD;
  --line-strong: #CBC6B6;
  --accent: #F2C94C;
  --accent-hover: #E6B73A;
  --accent-tint: #FCF4D6;
  --accent-ink: #7A5A00;
  --on-accent: #10242C;
  --frame: #10242C;
  --dA: #7A5A00; --dB: #17865F; --dC: #B5552A; --dD: #3B6E8F; --dE: #5B7A1F; --dF: #6B4E8F;
}

:root[data-theme="dark"] {
  --bg: #0B161B;
  --surface: #13242B;
  --raised: #172C34;
  --sunken: #0F1E24;
  --ink: #EEF1EC;
  --muted: #B3BDBE;
  --faint: #7F8D91;
  --line: #22363E;
  --line-strong: #2F4750;
  --accent: #F2C94C;
  --accent-hover: #F7D66A;
  --accent-tint: #2A2510;
  --accent-ink: #F6D66B;
  --on-accent: #10242C;
  --frame: #0B161B;
  --dA: #F6D66B; --dB: #5FC79A; --dC: #F09A66; --dD: #7FB4D6; --dE: #B5D17A; --dF: #B9A0E0;
}

/* Logo: a plain yellow tile with a slate chevron, drawn in CSS so no third-party mark is needed. */
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--on-accent);
  -webkit-mask: none;
  mask: none;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 9px;
  height: 5px;
  border-left: 2.5px solid var(--on-accent);
  border-bottom: 2.5px solid var(--on-accent);
  transform: translate(-50%, -50%) rotate(-45deg);
}
.brand .brand-mark { width: 26px; height: 26px; }
.brand-word { font-weight: 600; }

/* Buttons on the yellow accent: slate text, keep the lift and shadow from the base system. */
.btn-primary { color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); }

/* Store badge: the app is not on Google Play yet, so the disabled badge uses muted tones. */
.store-badge[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

/* Plain status line used where a live link would otherwise appear before launch. */
.launch-note { display: inline-flex; align-items: center; gap: .5rem; padding: 6px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); font-size: .875rem; font-weight: 600; }

/* Question options without the interactive script: static letter + text rows. */
.q-static .q-opt { cursor: default; }
.q-static .q-opt:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.q-static details { margin-top: 4px; }
.q-static details summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; font-size: .9375rem; padding: 4px 0; list-style: revert; }
.q-static details .q-answer-body { display: grid; gap: 10px; padding-top: 8px; }
.q-static details p { font-size: .96875rem; line-height: 1.6; }

.guide-card .guide-meta { color: var(--faint); }
.guide-card .guide-topics { list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: .9375rem; }
.guide-card .guide-topics li::before { content: "- "; color: var(--accent-ink); font-weight: 700; }

.page-table th, .page-table td { text-align: left; vertical-align: top; }
.page-table td:first-child { font-weight: 600; white-space: nowrap; }

@media (max-width: 639px) {
  .page-table td:first-child { white-space: normal; }
}

/* Simple legal prose layout (privacy, terms, deletion). */
.policy h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin-top: 2.25rem; }
.policy p { margin-top: .75rem; color: var(--muted); max-width: 70ch; }
.policy p a, .prose a { color: var(--accent-ink); text-underline-offset: 3px; }

/* Live free-question quiz. Without JavaScript (html:not(.js)) every explanation is visible and options are plain. */
.js .quiz-item .q-feedback { display: none; }
.js .quiz-item .q-feedback.is-open { display: grid; gap: 10px; }
.q-feedback { display: grid; gap: 10px; }
.q-feedback .q-status { font-weight: 600; font-size: .9375rem; }
.q-opt { width: 100%; font: inherit; color: inherit; background: var(--surface); border: 0; text-align: left; }
html:not(.js) .q-opt { cursor: default; }
.q-opt:disabled { cursor: default; opacity: 1; }
.q-opt.is-correct { background: var(--success-tint); box-shadow: inset 0 0 0 1.5px var(--success); }
.q-opt.is-wrong { background: var(--danger-tint); box-shadow: inset 0 0 0 1.5px var(--danger); }
.quiz-score { margin-top: 28px; display: grid; gap: 12px; justify-items: start; }
.quiz-total { font-weight: 600; font-size: 1.0625rem; min-height: 1.5em; }
.quiz-reset[hidden] { display: none; }
.question-list { display: grid; gap: 28px; }
.quiz-item { padding: 22px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }

/* Without JavaScript the menu toggle has nothing to do, so the links below it stay visible instead. */
html:not(.js) .nav-toggle { display: none; }

/* Breadcrumbs: a visible separator between steps (the base stylesheet had none). */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs li[aria-current="page"] { color: var(--ink); font-weight: 600; }
.crumbs { padding-top: 22px; }

/* Header: keep the wordmark on one line, and drop the long status pill on small screens. */
.brand-word { white-space: nowrap; }
@media (max-width: 1039px) {
  .header-status { display: none; }
}
