/* neetflash.com, every page but maintenance.html (which must stand alone:
   the maintenance redirect sends every other URL, this file included, back to
   it) and the Worker's legal pages (worker/index.js, which links this file).
   Brand constants: docs/engineering/brand-spec.md section 1; the role tokens
   are pinned to the theme by test/core/surface_brand_colours_test.dart.
   The owl blocks below are written by scripts/export-brand-icons.py. */
:root {
  --primary: #502B95;
  --primary-dark: #412379;
  --primary-soft: #875CD6;
  --accent: #FB6B00;
  --accent-text: #C2410C;
  --text: #1E0F38;
  --text-muted: #5C5470;
  --text-soft: #6E6684;
  --bg: #F7F5FB;
  --lilac: #F0E9FE;
  --card: #FFFFFF;
  --border: #E9E5F1;
  --edge: rgba(80, 43, 149, 0.22);
  --accent-wash: rgba(251, 107, 0, 0.09);
  /* Signals keep their colours (brand-spec section 3). */
  --success-text: #1B6B3A;
  --success-wash: #E8F5EC;
  --bio: #10B981;
  --phys: #0EA5E9;
  --chem: #F59E0B;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--card); color: var(--text); font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.on-purple :focus-visible { outline-color: #FFFFFF; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
/* A pose's canvas overhangs its owl's box (raised wings, props), so an owl
   near the edge of a narrow window would widen the page. Every page's
   content is in <main>, so it is clipped once, there. Clip, not hidden:
   no scroll box, so sticky children still stick. */
main { overflow-x: clip; }
.sec { padding: 110px 0; }
.alt { background: var(--bg); }
.stack { display: flex; flex-direction: column; }
.center { text-align: center; align-items: center; }
.row { display: flex; flex-wrap: wrap; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.label { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.h1 { margin: 0; font-size: clamp(42px, 6.2vw, 84px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 900; }
.h2 { margin: 0; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 900; }
.h3 { margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 900; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text-muted); }
.body { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-muted); }
.accent { color: var(--accent-text); }
.prop { width: 56px; height: 56px; flex: none; }

/* Buttons: sticker style, a hard key shadow in the brand ink family. */
.btn { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: none !important; }
.btn-orange { background: var(--accent); color: var(--text); box-shadow: 0 4px 0 var(--primary-dark); }
.btn-orange:hover { color: var(--text); box-shadow: 0 6px 0 var(--primary-dark); }
.btn-purple { background: var(--primary); color: #FFFFFF; box-shadow: 0 4px 0 var(--text); }
.btn-purple:hover { color: #FFFFFF; box-shadow: 0 6px 0 var(--text); }
.btn-ghost { background: #FFFFFF; color: var(--text); border-color: var(--primary); box-shadow: 0 4px 0 var(--primary); }
.btn-ghost:hover { color: var(--text); box-shadow: 0 6px 0 var(--primary); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
/* Store badges: the markup and rules the live site had before #2158,
   unchanged. Inert while pending, as
   live: /store-links.js turns them into links once a listing exists. */
.store-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 16px 0 12px; border-radius: 8px;
  text-decoration: none; text-align: left;
  background: #000; color: white;
  transition: transform 0.2s, box-shadow 0.2s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30,15,56,0.25); }
.store-btn.is-pending { cursor: default; }
.store-btn.is-pending:hover { transform: none; box-shadow: none; }
.store-btn svg { flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; line-height: 1.05; }
.store-kicker { font-size: 9.5px; font-weight: 500; letter-spacing: 0.2px; }
.store-btn[data-store="play"] .store-kicker { text-transform: uppercase; }
.store-name { font-size: 19px; font-weight: 600; letter-spacing: -0.3px; }
.store-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges .store-row { justify-content: flex-start; }
@media (max-width: 380px) {
  .store-row { gap: 8px; }
  .store-btn { gap: 6px; padding: 0 9px 0 8px; }
  .store-btn svg { width: 17px; height: 20px; }
  .store-kicker { font-size: 8.5px; }
  .store-name { font-size: 15.5px; }
}
/* The live #download card: a white field so the QR scans. */
.qr-card { display: inline-flex; flex-direction: column; align-items: center; gap: 22px; align-self: flex-start; background: #FFFFFF; color: var(--text); border: 2px solid rgba(80, 43, 149, 0.30); border-radius: 12px; padding: 30px 36px 32px; max-width: 100%; box-shadow: 8px 8px 0 var(--text); }
.qr-row { display: flex; align-items: center; gap: 22px; text-align: left; }
.qr-card img { width: 123px; height: 123px; display: block; flex-shrink: 0; }
.qr-title { font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -0.3px; }
.qr-hint { font-size: 13px; font-weight: 600; margin-top: 6px; }
@media (max-width: 480px) {
  .qr-card { align-self: stretch; padding: 22px 12px 24px; gap: 18px; }
  .qr-row { gap: 14px; }
  .qr-title { font-size: 20px; }
  .qr-hint { font-size: 12px; }
  .store-row { gap: 10px; }
  .store-btn { height: 42px; padding: 0 12px 0 10px; }
  .store-name { font-size: 17px; }
}
@media (hover: none) { .hint-mouse { display: none; } }
@media (hover: hover) { .hint-touch { display: none; } }

.sticker { background: #FFFFFF; border: 2px solid var(--primary-dark); border-radius: 28px; box-shadow: 8px 8px 0 var(--primary-dark); }
.panel { background: #FFFFFF; border-radius: 32px; padding: 36px; }
.panel-soft { background: var(--bg); border-radius: 28px; padding: 32px; }
.alt .panel-soft { background: #FFFFFF; }
.pill, .game-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; padding: 9px 16px; border-radius: 999px; background: var(--bg); color: var(--primary); }
.pill .prop, .game-chip .bi { width: 26px; height: 26px; flex: none; }
.game-chip:first-child { background: var(--accent-wash); color: var(--accent-text); }

/* Speech bubble with a tail. */
.bubble { position: relative; background: #FFFFFF; border: 2px solid var(--primary-dark); border-radius: 20px; padding: 12px 16px; font-weight: 700; font-size: 16px; line-height: 1.35; box-shadow: 4px 4px 0 var(--primary-dark); }
.bubble::after { content: ""; position: absolute; width: 16px; height: 16px; background: #FFFFFF; border-right: 2px solid var(--primary-dark); border-bottom: 2px solid var(--primary-dark); transform: rotate(45deg); }
.bubble.tail-down::after { left: 34px; bottom: -10px; }
.bubble.tail-left::after { left: -10px; top: 22px; transform: rotate(135deg); }
.bubble.tail-right::after { right: -10px; top: 22px; transform: rotate(-45deg); }
.bubble-text { display: block; transition: opacity .15s ease; }

/* ===== The owl ======================================================
   The art and every keyframe below the marker are the exporter's own
   (scripts/export-brand-icons.py, from assets/brand/owl-mascot.svg),
   written in by it. This file only adds what sits on top: where it
   looks, its mood (brows, pupils, lids), a wave and a blink at rest. Each
   extra moves an INNER group, so the generated choreography on the outer
   group still plays over it untouched. */
/* owl-css:begin GENERATED by scripts/export-brand-icons.py (OWL_CSS); edit it there, not here. */
.nf-enter, .nf-land, .nf-hop { transform-box: fill-box; transform-origin: 50% 100%; }
.nf-wing-l2, .nf-wing-l { transform-origin: 182px 358px; }
.nf-wing-r2, .nf-wing-r { transform-origin: 450px 354px; }
.nf-ball, .nf-shadow, .nf-shadow > g, .nf-spark { transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes nf-fly { 0% { transform: translate(-30%, -150%) rotate(-12deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes nf-squash { 0%, 78% { transform: none; } 84% { transform: scale(1.1, .86); } 92% { transform: scale(.96, 1.05); } 100% { transform: none; } }
@keyframes nf-shadow-in { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
/* Each wing lifts OUTWARD (left clockwise, right anticlockwise): the
   other way the back wing swings behind the body and vanishes. */
@keyframes nf-flap-l { 0%, 20%, 40%, 60%, 80% { transform: rotate(-10deg); } 10%, 30%, 50%, 70% { transform: rotate(42deg); } 90% { transform: rotate(20deg); } 100% { transform: rotate(0); } }
@keyframes nf-flap-r { 0%, 20%, 40%, 60%, 80% { transform: rotate(8deg); } 10%, 30%, 50%, 70% { transform: rotate(-38deg); } 90% { transform: rotate(-18deg); } 100% { transform: rotate(0); } }
@keyframes nf-read { 0% { transform: none; } 4% { transform: translate(-16px, 6px); } 14% { transform: translate(14px, 6px); } 16% { transform: translate(-16px, 12px); } 26% { transform: translate(14px, 12px); } 28% { transform: translate(-16px, 18px); } 38% { transform: translate(14px, 18px); } 46% { transform: none; } 50%, 85% { transform: translate(0, -8px); } 92%, 100% { transform: none; } }
@keyframes nf-blink { 0%, 42%, 48%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.08); } }
@keyframes nf-brows { 0%, 46%, 86%, 100% { transform: none; } 52%, 78% { transform: translateY(-16px); } }
@keyframes nf-hop { 0%, 54%, 76%, 100% { transform: none; } 58% { transform: scale(1.06, .92); } 64% { transform: translateY(-12%) scale(.97, 1.04); } 70% { transform: none; } 73% { transform: scale(1.05, .94); } }
@keyframes nf-shadow-hop { 0%, 58%, 72%, 100% { transform: none; opacity: 1; } 64% { transform: scale(.7); opacity: .6; } }
@keyframes nf-joy-l { 0%, 58%, 76%, 100% { transform: none; } 64% { transform: rotate(36deg); } }
@keyframes nf-joy-r { 0%, 58%, 76%, 100% { transform: none; } 64% { transform: rotate(-32deg); } }
@keyframes nf-spark { 0%, 48% { transform: scale(0) rotate(-30deg); opacity: 0; } 54% { transform: scale(1.25); opacity: 1; } 60% { transform: rotate(8deg); opacity: 1; } 82% { transform: rotate(20deg); opacity: 1; } 92%, 100% { transform: scale(.4) rotate(40deg); opacity: 0; } }
/* owl-css:end */
/* owl-play:begin GENERATED by scripts/export-brand-icons.py (OWL_PLAY_CSS); edit it there, not here. */
.nf-play .nf-spark { opacity: 0; }
.nf-play.nf-hello .nf-enter { animation: nf-fly 1.15s cubic-bezier(.25,.9,.3,1) both; }
.nf-play.nf-hello .nf-land { animation: nf-squash 1.45s ease-out both; }
.nf-play.nf-hello .nf-shadow { animation: nf-shadow-in 1.15s ease-in both; }
.nf-play.nf-hello .nf-wing-l2 { animation: nf-flap-l 1.25s linear both; }
.nf-play.nf-hello .nf-wing-r2 { animation: nf-flap-r 1.25s linear both; }
.nf-play :is(.nf-shadow > g, .nf-pupils, .nf-ball, .nf-brows, .nf-hop, .nf-wing-l, .nf-wing-r, .nf-spark) {
  animation-duration: 3.4s; animation-delay: 1.45s;
  animation-iteration-count: 1; animation-timing-function: ease-in-out;
}
.nf-play .nf-shadow > g { animation-name: nf-shadow-hop; }
.nf-play .nf-hop { animation-name: nf-hop; }
.nf-play .nf-wing-l { animation-name: nf-joy-l; }
.nf-play .nf-wing-r { animation-name: nf-joy-r; }
.nf-play .nf-pupils { animation-name: nf-read; }
.nf-play .nf-ball { animation-name: nf-blink; animation-timing-function: linear; }
.nf-play .nf-brows { animation-name: nf-brows; }
.nf-play .nf-spark { animation-name: nf-spark; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) {
  .nf-play g { animation: none !important; }
}
/* owl-play:end */
.owl { display: inline-block; width: var(--w, 200px); line-height: 0; flex: none; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.owl .nf-owl { width: 100%; height: auto; overflow: visible; display: block; }
.owl .nf-spark { opacity: 0; }
.owl[data-shadow="off"] .nf-shadow { display: none; }
.owl[data-play="hello"]:not(.nf-play) .nf-enter, .owl[data-play="hello"]:not(.nf-play) .nf-shadow { opacity: 0; }
.owl.now :is(.nf-shadow > g, .nf-pupils, .nf-ball, .nf-brows, .nf-hop, .nf-wing-l, .nf-wing-r, .nf-spark) { animation-delay: 0s; }
.owl .nf-pupils > g { transform: translate(var(--lx, 0px), var(--ly, 0px)); transition: transform .16s ease-out; }
.owl[data-busy] .nf-pupils > g { transform: none; }
.owl .nf-pupils > g > circle:first-child { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(var(--pupil, 1)); transition: transform .25s ease; }
.owl .nf-brows > g { transform: translateY(var(--brow-y, 0px)); transition: transform .25s ease; }
.owl .nf-brows > g > path { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .25s ease; }
.owl .nf-brows > g > path:first-child { transform: rotate(var(--brow-l, 0deg)); }
.owl .nf-brows > g > path:last-child { transform: rotate(var(--brow-r, 0deg)); }
.owl .nf-lid { fill: #502B95; }
.owl.blink .nf-ball { transform: scaleY(.08); transition: transform .06s ease-in; }
.owl .nf-wing-r > g { transform-origin: 450px 354px; } /* the far shoulder, in the art's own coordinates */
.owl.wave .nf-wing-r > g { animation: owl-wave .5s ease-in-out 6 alternate; }
@keyframes owl-wave { from { transform: rotate(0deg); } to { transform: rotate(-42deg); } }
/* A pose's canvas is -150 -160 900 900; the owl's own box is 0 20 580 700.
   Grow the canvas by 900/580 and pull it back by its overhang on each side
   (top 180, right 170, bottom 20, left 150, as shares of 580), so --w sizes
   the owl the same in either and the props overhang the box. */
.owl .nf-pose { width: 155.17%; height: auto; max-width: none; margin: -31.03% -29.31% -3.45% -25.86%; display: block; }
.owl.hop .nf-pose { animation: pose-hop .55s cubic-bezier(.3, .7, .4, 1); }
@keyframes pose-hop { 40% { transform: translateY(-8%); } }
@media (prefers-reduced-motion: reduce) { .owl.hop .nf-pose { animation: none; } }
/* Moods: brows raised, tilted or lowered; pupils wide or small. Lids are
   drawn by the script, from the same eye circles. */
.owl[data-mood="happy"] { --brow-y: -16px; --pupil: 1.08; }
.owl[data-mood="shocked"] { --brow-y: -28px; --pupil: .66; }
.owl[data-mood="worried"] { --brow-y: -10px; --brow-l: -13deg; --brow-r: 13deg; }
.owl[data-mood="smug"] { --brow-y: 6px; --brow-l: 9deg; --brow-r: -3deg; }
.owl[data-mood="suspicious"] { --brow-y: 10px; --brow-l: 15deg; --brow-r: -15deg; --pupil: .85; }
.owl[data-mood="sleepy"] { --brow-y: 12px; --brow-l: -4deg; --brow-r: 4deg; }
@media (prefers-reduced-motion: reduce) {
  .owl .nf-pupils > g, .owl .nf-brows > g, .owl .nf-brows > g > path, .owl.blink .nf-ball { transition: none; }
  .owl.wave .nf-wing-r > g { animation: none; }
}

/* Owls standing on each other's heads (pricing). */
.totem { height: 330px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.totem .owl + .owl { margin-top: calc(var(--w) * -0.17); }

/* Moonlight (D7): a still pool of lilac light behind the owl. */
.moonlight { background: radial-gradient(closest-side, rgba(240, 233, 254, .95) 0%, rgba(240, 233, 254, .75) 42%, rgba(240, 233, 254, 0) 100%); }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.brand svg { width: 40px; height: 35px; }
.nav-links { display: flex; gap: 22px; flex: 1; justify-content: center; font-size: 15px; font-weight: 700; }
.nav-links a { color: var(--text); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--primary); }
.nav-links .nav-quiz, .mobile-menu .nav-quiz { color: var(--primary); font-weight: 800; }
.nav-school { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.nav-school:hover { color: var(--primary); border-color: var(--edge); }
.nav-school svg { width: 16px; height: 16px; }
.nav-cta { white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: #FFFFFF; color: var(--text); cursor: pointer; place-items: center; }
.mobile-menu { border-top: 1px solid var(--border); background: #FFFFFF; padding: 8px 24px 20px; display: flex; flex-direction: column; }
.mobile-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
.mobile-menu .btn { margin-top: 16px; }
@media (max-width: 1180px) { .nav-school { display: none; } }
/* Below this the seven links and the button no longer fit one line, even in
   the fallback font (scripts/check-landing-nav.mjs sweeps 901..1920px). */
@media (max-width: 1080px) { .nav-links, .nav-cta { display: none; } .nav .wrap { justify-content: space-between; } .menu-toggle { display: grid; } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--primary); color: #FFFFFF; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; color: #FFFFFF; }

/* ===== Inner pages: hero, breadcrumbs, long text ===== */
.page-hero { background: var(--bg); padding: 56px 0 64px; }
.page-hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.page-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-hero-art { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--primary); }
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--text); }
.prose h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 900; margin: 48px 0 12px; }
.prose h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 800; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--text-muted); }
.prose li { margin-bottom: 6px; }
.prose strong, .prose b { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 800; background: var(--bg); }
.toc { background: var(--bg); border-radius: 20px; padding: 20px 24px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2 240px; font-size: 15px; line-height: 1.8; }
.note { background: var(--accent-wash); border-radius: 16px; padding: 16px 18px; color: var(--text); font-size: 15px; line-height: 1.55; }

/* ===== Hero ===== */
.hero { background: var(--bg); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.hero-copy { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { background: #FFFFFF; border: 1.5px solid var(--edge); padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--primary); }
.ticks { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
.ticks span { display: inline-flex; gap: 6px; align-items: center; }
.hero-stage { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: center; position: relative; }
.hero-pool { position: absolute; inset: -6% -10% 6%; z-index: 0; }
.hero-stage .owl { --w: min(430px, 82vw); z-index: 1; }
.hero-bubble { position: absolute; top: 2%; right: 0; z-index: 2; max-width: 220px; }
.hero-caption { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text-soft); z-index: 1; }
@media (max-width: 700px) { .hero-bubble { position: relative; top: auto; right: auto; margin-bottom: 8px; } }


/* ===== FSRS ===== */
.giant { margin: 0; font-size: clamp(56px, 11vw, 168px); line-height: 0.9; letter-spacing: -0.06em; font-weight: 900; color: var(--primary); }
.stat { flex: 1 1 300px; min-width: 0; background: var(--bg); border-radius: 20px; padding: 22px 26px; text-align: left; display: flex; gap: 16px; align-items: center; }
.stat b { display: block; font-size: 40px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; }
.stat span { color: var(--text-muted); font-size: 15px; }

/* ===== Demo ===== */
.demo-card { flex: 999 1 560px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt { font: inherit; font-size: 18px; font-weight: 700; text-align: left; padding: 16px 18px; border-radius: 16px; cursor: pointer; min-height: 56px; background: #FFFFFF; color: var(--text); border: 2px solid var(--edge); transition: transform .12s ease, border-color .12s ease; }
.opt:hover:not([disabled]) { transform: translateY(-1px); border-color: var(--primary); }
.opt[disabled] { cursor: default; }
.opt.right { background: var(--success-wash); color: var(--success-text); border-color: var(--success-text); }
.opt.wrong { background: var(--accent-wash); color: var(--accent-text); border-color: var(--accent-text); }
.opt.dim { color: var(--text-soft); border-color: var(--border); }
.rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rate { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; cursor: pointer; min-height: 60px; background: var(--bg); color: var(--text); border: 2px solid var(--edge); }
.rate b { font-size: 16px; }
.rate small { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.rate[aria-pressed="true"] { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }
.rate[aria-pressed="true"] small { color: #FFFFFF; }
.explain { background: var(--bg); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.verdict { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; border-top: 2px dashed var(--edge); padding-top: 16px; }
.demo-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.demo-side .bubble { max-width: 320px; text-align: center; font-size: 17px; }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Difference ===== */
.vs { flex: 1 1 420px; min-width: 0; border-radius: 28px; padding: 32px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.vs ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.4; }
.vs li { display: flex; gap: 10px; align-items: flex-start; }
.vs li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.vs-without { background: var(--bg); color: var(--text-muted); }
.vs-with { background: var(--primary); color: #FFFFFF; }

/* ===== Features ===== */
.bar { height: 16px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar > * { display: block; height: 100%; border-radius: 999px; }

/* ===== Steps ===== */
.step { flex: 1 1 300px; min-width: 0; border: 2px solid var(--primary-dark); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: 6px 6px 0 var(--primary-soft); background: #FFFFFF; }
.step-num { font-size: 72px; font-weight: 900; line-height: 0.8; color: var(--primary); letter-spacing: -0.06em; }
.done-strip { background: var(--bg); border-radius: 24px; padding: 16px 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }

/* ===== Spec tiles ===== */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tile { border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; background: #FFFFFF; border: 2px solid var(--border); transition: transform .2s ease; position: relative; overflow: hidden; }
.tile:hover { transform: rotate(-1.5deg) translateY(-4px); }
.tile .label { color: inherit; }
.tile-big { font-size: 54px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.tile-mid { font-size: 36px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; }
.tile p { margin: 0; font-size: 17px; line-height: 1.4; }
.tile .prop { width: 72px; height: 72px; margin-top: auto; align-self: flex-end; }
.tile-purple { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }
.tile-orange { background: var(--accent); color: var(--text); border-color: var(--accent); }
.tile-lilac { background: var(--lilac); border-color: var(--lilac); }
.tile .prop-chip { width: 84px; height: 84px; border-radius: 22px; background: #FFFFFF; display: grid; place-items: center; margin-top: auto; align-self: flex-end; }
.tile .prop-chip .prop { margin: 0; width: 64px; height: 64px; align-self: auto; }
@media (prefers-reduced-motion: reduce) { .tile:hover { transform: none; } .btn:hover { transform: none; } }

/* ===== Habit ===== */
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.game-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 20px; background: var(--bg); font-weight: 800; font-size: 14px; text-align: center; }
.game-badge .bi { width: 52px; height: 52px; }
.game-badge.locked { background: #FFFFFF; border: 2px dashed var(--edge); color: var(--text-soft); }
.game-badge.locked svg { width: 52px; height: 46px; fill: #D8D2E4; }
.game-badge.more { background: var(--lilac); color: var(--primary); }
.jam-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; }
.jam-row + .jam-row { border-top: 1px solid var(--border); }
.avatar { width: 36px; height: 36px; border-radius: 50%; color: #FFFFFF; display: grid; place-items: center; font-weight: 800; flex: none; }

/* ===== Parents ===== */
.q-card { background: #FFFFFF; border-radius: 20px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.q-card .prop { width: 44px; height: 44px; }
.mini { background: var(--bg); border-radius: 16px; padding: 14px 16px; }
.mini b { display: block; font-size: 32px; font-weight: 900; letter-spacing: -0.03em; }
.mini span { font-size: 14px; color: var(--text-muted); }
.subj { display: flex; align-items: center; gap: 10px; }
.subj > span:first-child { width: 90px; font-weight: 700; }
.subj > span:last-child { width: 64px; text-align: right; font-size: 14px; color: var(--text-muted); }
.subj .bar { flex: 1; height: 12px; }

/* ===== Pricing ===== */
.seg { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; background: var(--bg); padding: 6px; border-radius: 28px; margin-top: 8px; }
.seg button { font: inherit; font-weight: 800; font-size: 15px; padding: 10px 16px; border-radius: 999px; cursor: pointer; min-height: 44px; border: none; background: transparent; color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--primary); color: #FFFFFF; }
.seg .save { font-size: 12px; margin-left: 6px; color: var(--accent-text); }
.seg button[aria-pressed="true"] .save { display: none; }
.plan { flex: 1 1 320px; min-width: 0; border: 2px solid var(--border); border-radius: 32px; padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; background: #FFFFFF; }
.plan-hot { border: 3px solid var(--primary); box-shadow: 8px 8px 0 var(--primary); }
.plan-flag { position: absolute; top: -16px; left: 28px; background: var(--accent); color: var(--text); font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px; letter-spacing: 0.04em; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 52px; font-weight: 900; letter-spacing: -0.05em; }
.price span { color: var(--text-soft); }
.plan dl { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.plan dl > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.plan dl > div:last-child { border-bottom: none; }
.plan dt { color: var(--text-muted); }
.plan dd { margin: 0; font-weight: 700; text-align: right; }
.plan .btn { margin-top: auto; }

/* ===== Engine ===== */
.bib { margin: 0; background: #FFFFFF; border: 2px solid var(--border); border-radius: 20px; padding: 20px 22px; font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 14px; line-height: 1.6; color: var(--text); overflow-x: auto; }

/* ===== FAQ ===== */
.faq details { border: 2px solid var(--border); border-radius: 20px; background: #FFFFFF; }
.faq details[open] { border-color: var(--edge); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; font-weight: 800; font-size: 18px; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq .faq-chevron::after { content: "+"; font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1; }
.faq details[open] summary::after, .faq details[open] .faq-chevron::after { content: "\2212"; }
.faq p, .faq .faq-a { margin: 0; padding: 0 22px 20px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
/* The homepage FAQ: a heading per question, with the +/- on its chevron
   (scripts/gen-seo-schema.py reads .faq-q / .faq-chevron / .faq-a), so its
   summary draws none, open or shut. */
.faq summary:has(.faq-q)::after, .faq details[open] summary:has(.faq-q)::after { content: none; }
.faq .faq-q { margin: 0; font: inherit; flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* ===== Final CTA ===== */
.cta { background: var(--primary); color: #FFFFFF; }
.cta .wrap { padding-top: 90px; padding-bottom: 90px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.cta-stage { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; align-items: center; aspect-ratio: 1; max-width: 460px; margin: 0 auto; }
.cta-stage .owl { --w: min(280px, 64vw); }
.cta-stage .owl[data-pose] { --w: min(280px, 56vw); } /* its wider canvas must still fit a phone */

/* ===== Footer ===== */
.foot { border-top: 1px solid var(--border); background: #FFFFFF; }
.foot .wrap { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(130px, auto)); gap: 32px; }
.foot-cols .stack { gap: 10px; font-size: 15px; }
.foot-cols a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot-cols a:hover { color: var(--primary); text-decoration: underline; }
.foot-base { border-top: 1px solid var(--border); padding-top: 20px; color: var(--text-soft); font-size: 14px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Homepage additions: subjects, problem, check lists, compare ===== */
.subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.subject { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 28px; background: #FFFFFF; border: 2px solid var(--border); text-decoration: none; color: var(--text); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; overflow: hidden; }
.subject:hover { color: var(--text); transform: translateY(-4px); border-color: var(--subj); box-shadow: 6px 6px 0 var(--subj); }
.subject::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--subj); }
.subject-name { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.subject-meta { color: var(--text-muted); font-size: 15px; font-weight: 600; }
.subject .bar { height: 10px; margin-top: 4px; }
.subject .go { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--primary); }
.problem { flex: 1 1 300px; min-width: 0; background: #FFFFFF; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.problem .prop { width: 64px; height: 64px; }
.problem h3 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.verdict-x { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--accent-text); display: flex; gap: 8px; align-items: center; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23502B95' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.checks li.no { color: var(--text-soft); }
.checks li.no::before { background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10h8' fill='none' stroke='%236E6684' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.checks b { color: var(--text); }
.check-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.check-strip span { display: inline-flex; align-items: center; gap: 8px; background: #FFFFFF; border: 1.5px solid var(--border); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 15px; }
.check-strip svg { width: 16px; height: 16px; }
.habit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.habit { background: var(--bg); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.habit .prop { width: 44px; height: 44px; }
.habit b { font-size: 18px; letter-spacing: -0.01em; }
.habit p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.5; }
.compare-wrap { background: #FFFFFF; border: 2px solid var(--border); border-radius: 28px; padding: 8px 8px 0; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.compare caption { text-align: left; padding: 18px 18px 10px; font-size: 24px; font-weight: 900; letter-spacing: -0.03em; }
.compare th, .compare td { padding: 12px 18px; text-align: left; border-top: 1px solid var(--border); }
.compare thead th { border-top: none; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.compare thead th:last-child, .compare td:last-child { background: var(--lilac); }
.compare thead th:last-child { color: var(--primary); border-radius: 14px 14px 0 0; }
.compare tbody th { font-weight: 600; color: var(--text-muted); }
.compare td { font-weight: 800; }
.compare .yes { color: var(--primary); }
.compare .nope { color: var(--text-soft); font-weight: 600; }
.alt .seg { background: #FFFFFF; }

/* ===== The two parent pages: for-parents.html (what a parent gets) and
   parent.html (approving a child, the link the app and the SMS send). ===== */
.pa-steps .step { gap: 14px; }
.pa-steps .step h3 { margin: 0; font-size: 26px; letter-spacing: -0.03em; font-weight: 900; line-height: 1.1; }

/* The illustrative dashboard and Sunday email */
.pa-fig { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pa-figcap { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.pa-dash-wrap { position: relative; padding-top: 118px; }
.pa-dash-owl { position: absolute; top: 0; right: 28px; z-index: 2; }
.pa-dash { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.pa-verdict { font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.pa-verdict[data-v="ontrack"] { background: var(--success-wash); color: var(--success-text); }
.pa-verdict[data-v="slipping"] { background: var(--accent-wash); color: var(--accent-text); }
.pa-verdict[data-v="inactive"] { background: var(--bg); color: var(--text-muted); border: 1.5px dashed var(--edge); }
.pa-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pa-minis .mini b { font-size: 26px; }
.pa-minis .mini small { display: block; font-size: 12px; font-weight: 700; margin-top: 2px; }
.pa-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 88px; }
.pa-week i { display: block; background: var(--primary); border-radius: 8px 8px 4px 4px; min-height: 4px; transition: height .35s ease; }
.pa-week i.today { background: var(--primary-soft); }
.pa-week i.none { background: var(--border); }
.pa-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-soft); margin-top: 6px; }
.pa-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pa-dash .subj > span:first-child { width: 86px; }
@media (prefers-reduced-motion: reduce) { .pa-week i { transition: none; } }
@media (max-width: 440px) { .pa-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pa-minis .mini:last-child { grid-column: 1 / -1; } .pa-dash { padding-left: 18px; padding-right: 18px; } }

.pa-mail { background: #FFFFFF; border: 2px solid var(--border); border-radius: 24px; overflow: hidden; }
.pa-mail-head { background: var(--bg); padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--text-muted); }
.pa-mail-head b { color: var(--text); font-size: 16px; }
.pa-mail-body { padding: 24px 22px 26px; font-size: 15px; line-height: 1.5; color: var(--text); display: flex; flex-direction: column; gap: 12px; }
.pa-mail-body p { margin: 0; }
.pa-mail-brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; color: var(--primary); }
.pa-mail-brand svg { width: 30px; height: 26px; }
.pa-mail-h { margin: 6px 0 0; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; color: var(--primary); }
.pa-mail-dates { font-size: 13px; color: var(--text-soft); }
.pa-mail-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pa-mail-tiles > div { border-radius: 12px; padding: 14px 8px; text-align: center; }
.pa-mail-tiles b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.pa-mail-tiles span { display: block; font-size: 12px; font-weight: 700; margin-top: 4px; }
.pa-fig-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pa-fig-row small { font-size: 12px; color: var(--text-soft); }
.pa-mail .bar { height: 10px; margin-top: 4px; }
.pa-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.pa-worth { background: var(--accent-wash); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 12px 14px; font-size: 14px; }
.pa-worth b:first-child { color: var(--accent-text); }
.pa-finished { background: var(--success-wash); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pa-finished > b { color: var(--success-text); }
.pa-mail-cta { align-self: center; background: var(--primary); color: #FFFFFF; font-weight: 800; padding: 12px 26px; border-radius: 10px; font-size: 15px; }
.pa-mail-foot { font-size: 12px; color: var(--text-soft); }

.pa-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pa-chips .pill { background: #FFFFFF; }
.pa-chips .pill svg { width: 18px; height: 18px; }

/* A promise in purple beside a grid of plain facts */
.pa-promise { flex: 1 1 360px; min-width: 0; background: var(--primary); color: #FFFFFF; border-radius: 32px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.pa-promise .label { color: #FFFFFF; }
.pa-promise p { margin: 0; font-size: 17px; line-height: 1.55; }
.pa-promise .moonlight { align-self: center; border-radius: 50%; padding: 18px 26px 6px; }
.pa-rgrid { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pa-r { background: #FFFFFF; border: 2px solid var(--border); border-radius: 22px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.pa-r .prop { width: 44px; height: 44px; }
.pa-r b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.pa-r span { display: block; font-size: 15px; line-height: 1.5; color: var(--text-muted); }

/* Signposts between the two parent pages: "you may want the other one" */
.pa-signs { display: flex; flex-wrap: wrap; gap: 14px; }
.pa-sign { flex: 1 1 280px; min-width: 0; display: flex; gap: 14px; align-items: flex-start; background: #FFFFFF; border: 2px solid var(--border); border-radius: 20px; padding: 16px 18px; }
.pa-sign .prop { width: 40px; height: 40px; flex: none; }
.pa-sign p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.pa-sign b { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }
.pa-sign a { font-weight: 800; }
.pa-sign.is-main { border-color: var(--primary); box-shadow: 4px 4px 0 var(--primary-soft); }

/* ===== The legal pages and /delete-account: tabs, fact cards ===== */
.legal-hero .page-hero-copy { gap: 22px; }
.legal-hero .h1 { font-size: clamp(42px, 5.8vw, 76px); }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 4px; background: #FFFFFF; border: 1.5px solid var(--border); padding: 5px; border-radius: 26px; width: fit-content; max-width: 100%; }
.doc-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 15px; color: var(--text); text-decoration: none; }
.doc-tabs a:hover { color: var(--primary); background: var(--bg); }
.doc-tabs a[aria-current="page"] { background: var(--primary); color: #FFFFFF; }
.doc-facts { display: flex; flex-wrap: wrap; gap: 14px; }
.doc-fact { background: #FFFFFF; border: 2px solid var(--primary-dark); border-radius: 20px; box-shadow: 5px 5px 0 var(--primary-dark); padding: 12px 20px 14px; min-width: 0; }
.doc-fact span { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.doc-fact b { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; }
.doc-fact.quiet { border-color: var(--border); box-shadow: none; }
.doc-fact.quiet b { font-size: 18px; line-height: 1.3; padding-top: 2px; }
.doc-entity { margin: 0; font-size: 15px; color: var(--text-muted); }
@media (max-width: 480px) { .doc-tabs a { padding: 0 12px; font-size: 14px; } .doc-fact { padding: 10px 14px 12px; } }
