/* ATLAS Academy, agency.18dn.com
 * Palette (Miro, 2026-10-12): two colours only, black and royal blue.
 * Black surfaces in a few lifted steps; royal blue for actions, links and
 * highlights (actions always carry black text); text is a cool off-white.
 * The look is professional first, with a light technical layer: a faint
 * grid, monospace only for data (lengths, dates, levels, prices). Controls answer in 150-250 ms; scenes move in
 * 400-600 ms and only when the visitor asks. Reduced motion stills it all.
 * Display: Cabinet Grotesk. Body: Atkinson Hyperlegible Next, chosen for
 * readers of every age. All fonts self-hosted: no request leaves the site.
 */
@font-face { font-family: "Atkinson Next"; src: url("fonts/atkinson-next-var.woff") format("woff"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("fonts/cabinet-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("fonts/cabinet-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("fonts/cabinet-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --font-display: "Cabinet Grotesk", "Atkinson Next", system-ui, sans-serif;
  --font-body: "Atkinson Next", "Atkinson Hyperlegible", system-ui, sans-serif;

  --text-xs: 0.84rem;
  --text-sm: 0.94rem;
  --text-base: clamp(1.04rem, 1rem + 0.15vw, 1.12rem);
  --text-lg: clamp(1.16rem, 1.08rem + 0.35vw, 1.34rem);
  --text-xl: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(1.9rem, 1.45rem + 1.9vw, 2.8rem);
  --text-hero: clamp(2.4rem, 1.5rem + 3.4vw, 4.1rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 104px;
  --radius: 12px; --radius-sm: 8px; --radius-lg: 20px;
  --max: 1180px;
  --measure: 66ch;
  --ease: cubic-bezier(.2,.7,.2,1);
  --t-ctl: 180ms;
  --t-scene: 500ms;

  --ivory: #f5f0e6;
  --paper: #fbf8f1;
  --card: #fffdf8;
  --shelf: #e7dcc7;
  --ink: #14212b;
  --ink-2: #33414c;
  --muted: #56616c;
  --plum: #2f5bd6;
  --plum-soft: #e6edff;
  --gold: #5b8cff;
  --gold-hover: #7a9fff;
  --on-gold: #14212b;
  --rule: rgba(20, 33, 43, 0.13);
  --rule-strong: rgba(20, 33, 43, 0.3);
  --link: #2f5bd6;
  --ok: #2c6e48;
  --no: #9a3b2b;
  --focus: #2f5bd6;
  --shadow: 0 1px 1px rgba(0,0,0,.06), 0 6px 18px -6px rgba(0,0,0,.18);
  --shadow-lg: 0 2px 3px rgba(0,0,0,.08), 0 24px 48px -18px rgba(0,0,0,.32);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivory: #0a0d14; --paper: #0f1420; --card: #131a28; --shelf: #1b2334;
    --ink: #eef2fa; --ink-2: #c9d2e3; --muted: #8e99ae;
    --plum: #7fa2ff; --plum-soft: #141d33; --link: #8fb0ff;
    --gold: #5b8cff; --gold-hover: #7a9fff; --on-gold: #070a12;
    --rule: rgba(143, 176, 255, 0.13); --rule-strong: rgba(143, 176, 255, 0.3);
    --ok: #8fb0ff; --no: #8e99ae; --focus: #8fb0ff;
    --shadow: 0 1px 1px rgba(0,0,0,.4), 0 8px 22px -8px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 3px rgba(0,0,0,.45), 0 28px 56px -22px rgba(0,0,0,.75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ivory: #0a0d14; --paper: #0f1420; --card: #131a28; --shelf: #1b2334;
    --ink: #eef2fa; --ink-2: #c9d2e3; --muted: #8e99ae;
    --plum: #7fa2ff; --plum-soft: #141d33; --link: #8fb0ff;
    --gold: #5b8cff; --gold-hover: #7a9fff; --on-gold: #070a12;
    --rule: rgba(143, 176, 255, 0.13); --rule-strong: rgba(143, 176, 255, 0.3);
    --ok: #8fb0ff; --no: #8e99ae; --focus: #8fb0ff;
    --shadow: 0 1px 1px rgba(0,0,0,.4), 0 8px 22px -8px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 3px rgba(0,0,0,.45), 0 28px 56px -22px rgba(0,0,0,.75);
  color-scheme: dark;
}
/* Larger text (the header button, for this visit): every size is in rem. */
:root.large-text { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
:root.has-sticky { scroll-padding-bottom: 96px; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.015em; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: var(--text-lg); font-weight: 700; font-family: var(--font-body); letter-spacing: 0; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }
main > section { padding: var(--s8) 0; }
main > section + section { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s6); }
.section-head p { color: var(--ink-2); margin-top: var(--s3); max-width: 60ch; }
.kind { font-size: var(--text-sm); color: var(--plum); font-weight: 700; }
.level { display: inline-block; font-size: var(--text-sm); font-weight: 700; color: var(--ink); background: var(--plum-soft); border: 1px solid color-mix(in srgb, var(--plum) 30%, transparent); padding: 1px 9px; border-radius: 6px; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color var(--t-ctl) var(--ease), border-color var(--t-ctl) var(--ease), transform var(--t-ctl) var(--ease), box-shadow var(--t-ctl) var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-buy, .btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: inset 0 -2px 0 rgba(20,33,43,.18); }
.btn-buy:hover, .btn-gold:hover { background: var(--gold-hover); }
.btn-ink { background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--plum)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--card); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: var(--text-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.price { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--ink); }
.price small { display: block; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; color: var(--muted); }
.price-unset { color: var(--muted); font-weight: 700; }
.assure { list-style: none; display: grid; gap: 6px; margin-top: var(--s4); font-size: var(--text-sm); color: var(--ink-2); }
.assure li { display: flex; gap: 8px; align-items: center; }
.assure svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* ------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color var(--t-ctl); }
.top.scrolled { border-bottom-color: var(--rule); }
.top .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.brand svg { width: 34px; height: 34px; color: var(--plum); }
.brand small { font-weight: 500; font-size: 1em; color: var(--ink-2); }
.top nav { margin-left: auto; }
.nav { list-style: none; display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 11px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--text-sm); transition: background-color var(--t-ctl); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--plum-soft); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; min-width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; transition: border-color var(--t-ctl); font: inherit; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.text-btn { padding: 0 10px; font-size: var(--text-xs); font-weight: 700; }
.text-btn[aria-pressed="true"] { background: var(--plum-soft); border-color: var(--plum); }
.menu-btn { display: none; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-grid; }
  .top nav { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: var(--text-base); }
  .top-actions { margin-left: 0; }
}
@media (max-width: 420px) { .text-btn { font-size: .72rem; padding: 0 6px; } .brand small { display: none; } }

/* --------------------------------------------------------------- hero */
.hero { padding: var(--s7) 0 var(--s8); }
.hero > .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s7); align-items: center; }
.brandline { color: var(--plum); font-weight: 700; font-size: var(--text-lg); margin-bottom: var(--s3); }
.hero h1 span { display: block; }
.lede { font-size: var(--text-lg); color: var(--ink-2); margin-top: var(--s5); max-width: 52ch; line-height: 1.55; }
.hero-uses { list-style: none; margin-top: var(--s5); display: grid; gap: 8px; }
.hero-uses li { position: relative; padding-left: 26px; color: var(--ink-2); }
.hero-uses li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
@media (max-width: 900px) { .hero > .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } .hero { padding-top: var(--s5); } }

/* --------------------------------------------------- the product shelf */
.shelf { background: var(--paper) var(--grain); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s5) var(--s5) var(--s5); box-shadow: var(--shadow); }
.shelf-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick, .chip { font: inherit; font-size: var(--text-sm); font-weight: 700; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--rule-strong); background: var(--card); color: var(--ink); cursor: pointer; transition: background-color var(--t-ctl), border-color var(--t-ctl), color var(--t-ctl); }
.pick:hover, .chip:hover { border-color: var(--plum); }
.pick[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
:root[data-theme="dark"] .pick[aria-pressed="true"], :root[data-theme="dark"] .chip[aria-pressed="true"] { color: #070a12; }
.shelf-stage { position: relative; margin-top: var(--s6); padding-inline: 10px; perspective: 1100px; perspective-origin: 50% 30%; }
.shelf-row { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 12px; position: relative; z-index: 1; padding: 0 4px; }
.book { transition: transform var(--t-scene) var(--ease), opacity var(--t-scene) var(--ease); transform-style: preserve-3d; }
.book-btn { display: block; border-radius: 3px 7px 7px 3px; position: relative; }
.book-btn img { border-radius: 3px 7px 7px 3px; aspect-ratio: 1; object-fit: cover; box-shadow: 1px 0 0 #27324a, 2px 0 0 #1b2334, 3px 0 0 #27324a, 4px 1px 0 #1b2334, 0 14px 18px -10px rgba(0,0,0,.45); }
.book-btn::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; border-radius: 3px 0 0 3px; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.08) 60%, transparent); pointer-events: none; z-index: 1; }
.ledge { position: relative; height: 16px; margin: -6px -8px 0; border-radius: 4px; background: linear-gradient(var(--shelf), color-mix(in srgb, var(--shelf) 80%, #000)); box-shadow: 0 10px 18px -8px rgba(0,0,0,.45); }
/* The 3D state exists only once app.js has taken over (.is-live). */
.shelf.is-live .shelf-row { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; }
.shelf.is-live .book { transform-origin: 50% 100%; transform: rotateY(calc(clamp(-2, var(--off, 0), 2) * -9deg)) translateZ(calc(clamp(0, var(--dist, 0), 3) * -16px)); }
.shelf.is-live .book:has([aria-current="true"]) { transform: translateY(-14px) translateZ(70px) scale(1.12); z-index: 3; }
.shelf.is-live .book.is-match { transform: translateY(-8px) translateZ(30px); }
.shelf.is-live .book.is-match:has([aria-current="true"]) { transform: translateY(-16px) translateZ(80px) scale(1.12); }
.shelf.is-live .book.is-dim { opacity: .42; transform: translateZ(-50px) scale(.94); }
.shelf-panels { margin-top: var(--s5); min-height: 9.5rem; }
.shelf-panel { border-top: 1px solid var(--rule); padding-top: var(--s4); }
.shelf:not(.is-live) .shelf-panel:not(:first-child) { display: none; }
.panel-kind { font-size: var(--text-sm); color: var(--plum); font-weight: 700; }
.panel-title { font-size: var(--text-xl); margin-top: 4px; }
.panel-title a { color: var(--ink); text-decoration: none; }
.panel-title a:hover { text-decoration: underline; }
.panel-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 6px; color: var(--ink-2); font-size: var(--text-sm); }
.panel-meta .price { font-size: var(--text-lg); }
.panel-lesson { margin-top: 6px; font-size: var(--text-sm); }
.panel-links { display: flex; gap: var(--s4); margin-top: var(--s3); font-weight: 700; }
@media (max-width: 720px) {
  .shelf { padding: var(--s4); }
  .shelf.is-live .shelf-row, .shelf-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 18px 4px 10px; }
  .book { flex: 0 0 92px; scroll-snap-align: center; }
  .shelf.is-live .book { transform: none; }
  .shelf.is-live .book:has([aria-current="true"]), .shelf.is-live .book.is-match:has([aria-current="true"]) { transform: translateY(-10px); }
  .shelf.is-live .book.is-match { transform: translateY(-4px); }
  .shelf.is-live .book.is-dim { transform: none; }
  .ledge { margin-top: -14px; }
}

/* -------------------------------------------------------------- strip */
.strip { padding: 0 0 var(--s7) !important; }
.strip ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--s5) 0; }
.strip li { display: flex; gap: 12px; align-items: flex-start; }
.strip svg { width: 24px; height: 24px; color: var(--plum); flex: none; margin-top: 2px; }
.strip b { display: block; font-size: var(--text-sm); }
.strip span { font-size: var(--text-sm); color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 900px) { .strip ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .strip ul { grid-template-columns: minmax(0, 1fr); } }

/* -------------------------------------------------------------- paths */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.path { display: flex; flex-direction: column; gap: var(--s3); background: var(--card); border: 1px solid var(--rule); border-top: 5px solid var(--plum); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); }
.path[data-path-card="build"] { border-top-color: var(--ink); }
.path[data-path-card="home"] { border-top-color: var(--gold); }
.path h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; }
.path p { color: var(--ink-2); }
.path ul { list-style: none; display: grid; gap: 4px; margin-bottom: var(--s3); }
.path li a { font-weight: 700; }
.path .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .paths { grid-template-columns: minmax(0, 1fr); } }

/* -------------------------------------------------------- free lesson */
.free { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.free-poster { display: block; text-decoration: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transition: transform var(--t-ctl) var(--ease); }
.free-poster:hover { transform: translateY(-2px); }
.poster { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #2a4fb8 0, #12204a 45%, #0a0d14 100%); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(18px, 4vw, 36px); }
.poster::after { content: ""; position: absolute; right: -8%; top: -20%; width: 55%; aspect-ratio: 1; border-radius: 50%; border: 14px solid rgba(91,140,255,.5); }
.poster-mark { font-size: var(--text-sm); font-weight: 700; color: #b8ccff; }
.poster-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 1rem + 1.6vw, 2.2rem); line-height: 1.1; margin-top: 6px; max-width: 18ch; position: relative; z-index: 1; }
.poster-play { position: absolute; left: clamp(18px, 4vw, 36px); top: clamp(18px, 4vw, 36px); width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; }
.poster-play svg { width: 26px; height: 26px; margin-left: 3px; }
.free-title { font-size: var(--text-xl); font-family: var(--font-display); font-weight: 800; margin-top: var(--s3); }
.takeaway { color: var(--ink-2); margin-top: var(--s3); max-width: 56ch; }
.free-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.free-copy .small { margin-top: var(--s3); }
.next { margin-top: var(--s5); border-top: 1px solid var(--rule); padding-top: var(--s4); }
.next-h { font-weight: 700; font-size: var(--text-sm); color: var(--muted); }
.next-card { display: flex; gap: 14px; align-items: center; margin-top: 8px; text-decoration: none; color: var(--ink); }
.next-card img { width: 72px; height: 72px; border-radius: 8px; box-shadow: var(--shadow); }
.next-card b { display: block; }
.next-card small { color: var(--muted); }
@media (max-width: 860px) { .free { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }

/* ------------------------------------------------------------ catalog */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s5); }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--t-ctl) var(--ease), box-shadow var(--t-ctl) var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card[hidden] { display: none; }
.card .cover { display: block; background: var(--shelf); padding: 22px 22px 0; }
.card .cover img { aspect-ratio: 1; object-fit: cover; border-radius: 3px 6px 0 0; box-shadow: 0 -2px 14px -6px rgba(0,0,0,.35); }
/* Wide screens: the cover sits beside the text, so the grid stays short. */
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); }
  .card { flex-direction: row; }
  .card .cover { flex: 0 0 168px; padding: 22px 0 22px 22px; }
  .card .cover img { border-radius: 3px 6px 6px 3px; box-shadow: 2px 0 0 #27324a, 4px 1px 0 #1b2334, 0 12px 16px -10px rgba(0,0,0,.45); }
}
@media (max-width: 759px) {
  .card .cover { padding: 18px 18px 0; }
  .card .cover img { max-width: 168px; border-radius: 3px 6px 6px 3px; }
}
.card .body { display: flex; flex-direction: column; gap: 8px; padding: var(--s5); flex: 1; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.outcome { color: var(--ink-2); }
.facts { display: grid; gap: 4px; margin-top: 4px; font-size: var(--text-sm); }
.facts > div { display: grid; grid-template-columns: 6.2em 1fr; gap: 8px; }
.facts dt { color: var(--muted); font-weight: 700; }
.card-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--rule); flex-wrap: wrap; }
.card-foot .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------------------------------ approval gate */
.gate-sec { background: var(--paper) var(--grain); border-block: 1px solid var(--rule); padding: var(--s8) 0 !important; margin-bottom: var(--s8); }
.gate-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s7); align-items: start; }
.gate-copy p { color: var(--ink-2); margin-top: var(--s3); max-width: 46ch; }
.gate-copy .muted { color: var(--muted); }
.gate-controls { display: flex; gap: var(--s3); margin-top: var(--s5); flex-wrap: wrap; }
.gate { list-style: none; position: relative; display: grid; gap: var(--s4); padding-left: 34px; counter-reset: step; }
.gate::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 2px; background: var(--rule-strong); }
.gate-step { position: relative; counter-increment: step; transition: opacity var(--t-scene) var(--ease), transform var(--t-scene) var(--ease), filter var(--t-scene) var(--ease); }
.gate-step::before { content: counter(step); position: absolute; left: -34px; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--rule-strong); font-weight: 800; font-size: var(--text-sm); color: var(--ink); }
.step-name { font-weight: 800; font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: 6px; line-height: 28px; }
.msg { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); max-width: 52ch; }
.msg-from { font-size: var(--text-xs); font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.msg-draft { border-style: dashed; border-color: var(--rule-strong); }
.stop { border: 2px solid var(--plum); border-radius: var(--radius); background: var(--plum-soft); padding: 16px; max-width: 52ch; position: relative; }
.stop::before { content: ""; position: absolute; left: -2px; right: -2px; top: -12px; height: 8px; border-radius: 3px; background: repeating-linear-gradient(-45deg, var(--plum) 0 10px, var(--gold) 10px 20px); }
.gate-stop .step-name { margin-bottom: 20px; }
.stop-head { font-weight: 800; color: var(--ink); }
.stop-why { font-size: var(--text-sm); color: var(--ink-2); margin-top: 6px; }
.stop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gate-stop::before { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.msg-done { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
/* Armed by app.js: steps light up as the run reaches them. */
.gate.is-armed .gate-step { opacity: .6; filter: saturate(.3); transform: translateX(8px); }
.gate.is-armed .gate-step.is-on { opacity: 1; filter: none; transform: none; }
.gate.is-armed .gate-step.is-now::before { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
@media (max-width: 900px) { .gate-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }

/* ------------------------------------------------------------- finder */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.finder .sub { color: var(--ink-2); margin-top: var(--s3); }
.finder fieldset { border: 0; padding: 0; margin: var(--s5) 0 0; }
.finder legend { font-weight: 800; margin-bottom: 8px; }
.opts { display: grid; gap: 8px; }
.opts-row { grid-template-columns: repeat(3, 1fr); }
.opt-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; transition: border-color var(--t-ctl), background-color var(--t-ctl); }
.opt-card:hover { border-color: var(--plum); }
.opt-card:has(input:checked) { border-color: var(--plum); background: var(--plum-soft); }
.opt-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt-card input { accent-color: var(--plum); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.opt-card b { display: block; }
.opt-card small { color: var(--ink-2); font-size: var(--text-sm); }
.finder-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.result { position: sticky; top: 92px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s5); display: grid; gap: var(--s4); min-height: 14rem; align-content: start; }
.result .empty { color: var(--muted); }
.rec { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding-bottom: var(--s4); border-bottom: 1px solid var(--rule); }
.rec:last-child { border-bottom: 0; padding-bottom: 0; }
.rec img { border-radius: 6px; box-shadow: var(--shadow); }
.rec h3 a { color: var(--ink); }
.rec .why, .rec .needs { font-size: var(--text-sm); color: var(--ink-2); margin-top: 4px; }
.rec .row { display: flex; gap: 14px; align-items: baseline; margin-top: 6px; }
.rec .price { font-size: var(--text-lg); }
.rec .more { font-weight: 700; }
.rec-lesson { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--plum-soft); font-size: var(--text-sm); }
@media (max-width: 900px) { .finder { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }
@media (max-width: 560px) { .opts-row { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ compare */
.compare-picks { margin-bottom: var(--s4); }
.compare-picks[hidden] { display: none; }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; font-size: var(--text-sm); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.compare thead th { background: var(--ink); color: var(--ivory); font-weight: 700; }
.compare tbody th a { color: var(--ink); font-weight: 700; }
.compare td.p { font-weight: 800; white-space: nowrap; }
.compare tr[hidden] { display: none; }
@media (max-width: 820px) {
  table.compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  table.compare { background: none; border: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0; box-shadow: var(--shadow); }
  .compare tbody th { border-bottom: 1px solid var(--rule); font-size: var(--text-base); }
  .compare td { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; border: 0; padding: 6px 14px; }
  .compare td::before { content: attr(data-label); font-weight: 700; color: var(--muted); }
}

/* ------------------------------------------------------------- bundle */
.bundle .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: var(--s7); background: var(--ink); color: var(--ivory); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow-lg); }
.bundle h2 { color: var(--ivory); }
.bundle-sub { margin-top: var(--s3); max-width: 60ch; color: color-mix(in srgb, var(--ivory) 80%, transparent); }
.incl { list-style: none; margin-top: var(--s5); display: grid; gap: 0; max-width: 560px; }
.incl li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(143,176,255,.16); }
.incl li span:last-child { font-weight: 800; white-space: nowrap; }
.sum { margin-top: var(--s4); max-width: 60ch; }
.sum-terms { font-variant-numeric: tabular-nums; }
.bundle .sum { color: var(--ivory); }
.bundle .sum b { color: var(--gold); }
.excl { margin-top: var(--s4); font-size: var(--text-sm); color: color-mix(in srgb, var(--ivory) 78%, transparent); max-width: 60ch; }
.bundle .offer { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: var(--s5); align-self: start; }
.bundle .offer .pr { margin-bottom: var(--s4); }
.bundle .fine { font-size: var(--text-sm); color: var(--muted); margin-top: var(--s4); }
:root[data-theme="dark"] .bundle .wrap { background: #0f1420; border: 1px solid var(--rule); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bundle .wrap { background: #0f1420; border: 1px solid var(--rule); } }
@media (max-width: 860px) { .bundle .wrap { grid-template-columns: minmax(0, 1fr); } }

/* -------------------------------------------------------------- about */
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(220px, .55fr); gap: var(--s6); align-items: start; }
.portrait { width: 220px; aspect-ratio: 1; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow); }
.monogram { display: grid; place-items: center; background: var(--plum); color: var(--ivory); }
.monogram svg { width: 52%; height: auto; }
.about-copy p { color: var(--ink-2); margin-top: var(--s3); max-width: var(--measure); }
.inspect { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s5); }
.inspect ul { list-style: none; display: grid; gap: 6px; margin-top: 8px; font-size: var(--text-sm); }
@media (max-width: 960px) { .about { grid-template-columns: minmax(0, 1fr); } .portrait { width: 140px; } }

/* --------------------------------------------------------------- help */
.help { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s7); }
.steps { list-style: none; display: grid; gap: var(--s4); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 50px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-weight: 800; }
.steps p { color: var(--ink-2); margin-top: 4px; }
.policies { margin-top: var(--s4); font-size: var(--text-sm); color: var(--ink-2); }
@media (max-width: 860px) { .help { grid-template-columns: minmax(0, 1fr); } }
.acc { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.acc details { border-bottom: 1px solid var(--rule); }
.acc summary { cursor: pointer; padding: 16px 36px 16px 0; font-weight: 700; list-style: none; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.4rem; color: var(--plum); transition: transform var(--t-ctl); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .ans, .acc .lessons { padding: 0 0 16px; color: var(--ink-2); max-width: var(--measure); }
.lessons { list-style: none; display: grid; gap: 4px; }

/* -------------------------------------------------------------- close */
.close .box { text-align: center; padding: clamp(28px, 6vw, 64px); border-radius: var(--radius-lg); background: var(--plum); color: #fff; }
.close h2 { color: #fff; }
.close p { margin-top: var(--s3); color: rgba(255,255,255,.85); }
.close .hero-ctas { justify-content: center; }
.close .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.close .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
:root[data-theme="dark"] .close .box { background: #101a33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .close .box { background: #101a33; } }

/* ------------------------------------------------------------- footer */
footer.foot { border-top: 1px solid var(--rule); padding: var(--s7) 0 var(--s6); margin-top: var(--s8); background: var(--paper); }
footer.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); }
.foot-h { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 800; margin-bottom: 10px; letter-spacing: 0; }
footer.foot ul { list-style: none; display: grid; gap: 6px; font-size: var(--text-sm); }
footer.foot a { color: var(--ink-2); }
.about-line { margin-top: var(--s3); color: var(--muted); font-size: var(--text-sm); max-width: 36ch; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--rule); font-size: var(--text-xs); color: var(--muted); }
@media (max-width: 860px) { footer.foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer.foot .cols { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------ product page */
.crumbs { display: flex; gap: 8px; align-items: center; padding-top: var(--s5); font-size: var(--text-sm); color: var(--muted); flex-wrap: wrap; }
.crumbs a { font-weight: 700; }
.p-hero { padding: var(--s5) 0 var(--s8) !important; }
.p-hero > .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s7); align-items: start; }
.p-media { position: sticky; top: 92px; display: grid; gap: var(--s4); }
.frame { background: var(--shelf); border-radius: var(--radius-lg); padding: clamp(18px, 4vw, 40px); box-shadow: var(--shadow); }
.frame img { border-radius: 4px 8px 8px 4px; box-shadow: 2px 0 0 #27324a, 4px 1px 0 #1b2334, 0 24px 32px -16px rgba(0,0,0,.5); }
.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: var(--plum); }
.thumbs img { width: 64px; height: 64px; }
.p-info h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); margin-top: 6px; }
.p-info .lede { margin-top: var(--s4); }
.p-facts { display: grid; gap: 8px; margin-top: var(--s5); padding: var(--s4) 0; border-block: 1px solid var(--rule); }
.p-facts > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; }
.p-facts dt { font-weight: 700; color: var(--muted); }
.p-facts dd { color: var(--ink-2); }
.route-note, .notice, .p-lesson { margin-top: var(--s4); padding: 12px 14px; border-radius: var(--radius-sm); font-size: var(--text-sm); }
.notice { background: color-mix(in srgb, var(--gold) 18%, var(--card)); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); color: var(--ink); }
.route-note, .p-lesson { background: var(--plum-soft); color: var(--ink); }
.large-route .lede { font-size: var(--text-xl); }
.buybox { margin-top: var(--s5); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s5); box-shadow: var(--shadow); }
.editions { border: 0; padding: 0; margin: 0 0 var(--s4); display: grid; gap: 8px; }
.editions legend { font-weight: 800; margin-bottom: 8px; }
.edition { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius-sm); cursor: pointer; transition: border-color var(--t-ctl), background-color var(--t-ctl); }
.edition:hover { border-color: var(--plum); }
.edition:has(input:checked) { border-color: var(--plum); background: var(--plum-soft); }
.edition:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.edition input { accent-color: var(--plum); width: 20px; height: 20px; }
.ed-body small { display: block; color: var(--ink-2); font-size: var(--text-sm); }
.ep .price { font-size: var(--text-lg); }
.summaries { display: grid; gap: var(--s4); }
.summary[hidden] { display: none; }
.summaries:not(.is-live) .summary + .summary { border-top: 1px solid var(--rule); padding-top: var(--s4); }
.sum-name { font-weight: 800; }
.summary .pr { margin: 2px 0 var(--s3); }
.summary .pr small { font-size: var(--text-sm); color: var(--muted); font-weight: 700; }
.sum-rows { display: grid; gap: 4px; margin-bottom: var(--s4); font-size: var(--text-sm); }
.sum-rows > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; }
.sum-rows dt { color: var(--muted); font-weight: 700; }
.access { font-size: var(--text-sm); color: var(--ink-2); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--rule); }
.spec-wrap { margin-top: var(--s5); }
.spec-wrap summary { cursor: pointer; font-weight: 700; color: var(--plum); }
.spec { display: grid; margin-top: var(--s3); }
.spec .row { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: var(--text-sm); }
.spec dt { font-weight: 700; }
.spec dd { color: var(--ink-2); }
.spec-note { font-size: var(--text-xs); color: var(--muted); margin-top: 8px; }
.p-nav { position: sticky; top: 68px; z-index: 20; background: color-mix(in srgb, var(--ivory) 94%, transparent); backdrop-filter: blur(8px); border-block: 1px solid var(--rule); }
.p-nav .wrap { display: flex; gap: 4px; overflow-x: auto; padding: 6px 0; scrollbar-width: none; }
.p-nav a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: var(--text-sm); }
.p-nav a.active, .p-nav a:hover { background: var(--plum-soft); color: var(--ink); }
#learn { padding-top: var(--s8) !important; }
.two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s7); }
.intro p, .two > div > p { margin-top: var(--s3); color: var(--ink-2); max-width: 56ch; }
.outcomes { list-style: none; display: grid; gap: 12px; }
.outcomes li { display: flex; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.outcomes svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 2px; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.fit > div { padding: var(--s5); border-radius: var(--radius); border: 1px solid var(--rule); background: var(--card); }
.fit h3 { display: flex; gap: 8px; align-items: center; }
.fit h3 svg { width: 22px; height: 22px; }
.fit .yes h3 svg { color: var(--ok); }
.fit .no h3 svg { color: var(--no); }
.fit ul { margin-top: 10px; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.pair { display: grid; grid-template-columns: 120px 1fr auto; gap: var(--s5); align-items: center; padding: var(--s5); border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); }
.pair img { border-radius: 6px; box-shadow: var(--shadow); }
.pair p { color: var(--ink-2); margin-top: 4px; }
.pair .side { display: grid; gap: 8px; justify-items: end; }
.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.terms-grid > div { padding: var(--s5); border: 1px solid var(--rule); border-radius: var(--radius); }
.terms-grid p { color: var(--ink-2); margin-top: 6px; font-size: var(--text-sm); }
.back { margin-top: var(--s6); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.3); transform: translateY(110%); transition: transform var(--t-ctl) var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-buy .wrap { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.sticky-buy img { width: 44px; height: 44px; border-radius: 6px; }
.sticky-buy .t { flex: 1; min-width: 0; }
.sticky-buy .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .t span { font-size: var(--text-xs); color: var(--muted); }
@media (max-width: 900px) {
  .p-hero > .wrap, .two { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .p-media { position: static; max-width: 420px; }
  .p-first { display: none; }
  .fit, .terms-grid { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: 80px 1fr; }
  .pair .side { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; }
}

/* ------------------------------------------------- the kit, unfolding */
.kit { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: var(--s6); align-items: start; perspective: 1200px; }
.kit-cover { background: var(--shelf); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transform-origin: left center; transition: transform var(--t-scene) var(--ease); }
.kit-cover img { border-radius: 3px 6px 6px 3px; box-shadow: 2px 0 0 #27324a, 4px 1px 0 #1b2334, 0 16px 22px -12px rgba(0,0,0,.5); }
.kit-ed { font-size: var(--text-base); margin: 0 0 10px; }
.kit-offer + .kit-offer { margin-top: var(--s5); }
.kit-offer[hidden] { display: none; }
.kit-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s4); }
.kit-tile { background: var(--card) var(--grain); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); transform-origin: left center; transition: transform var(--t-scene) var(--ease), opacity var(--t-scene) var(--ease); }
.kit-tile svg { width: 28px; height: 28px; color: var(--plum); }
.kit-tile h3 { margin-top: 8px; }
.kit-tile p { font-size: var(--text-sm); color: var(--ink-2); margin-top: 4px; }
.kit-tile ul { margin-top: 8px; padding-left: 1.1em; font-size: var(--text-sm); color: var(--ink-2); display: grid; gap: 2px; }
.kit-tile:nth-child(2) { transition-delay: 60ms; }
.kit-tile:nth-child(3) { transition-delay: 120ms; }
.kit-tile:nth-child(4) { transition-delay: 180ms; }
.kit.is-folded .kit-cover { transform: rotateY(-8deg) translateZ(20px); }
.kit.is-folded .kit-tile { opacity: 0; visibility: hidden; transform: translateX(-60px) rotateY(-55deg) scale(.92); transition: transform var(--t-scene) var(--ease), opacity var(--t-scene) var(--ease), visibility 0s linear var(--t-scene); }
@media (max-width: 720px) { .kit { grid-template-columns: minmax(0, 1fr); } .kit-cover { max-width: 180px; } }

/* --------------------------------------------- bundle page, legal pages */
.bundle-hero > .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bundle-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); margin-top: 6px; }
.bundle-hero .sum { margin-top: var(--s4); padding: 14px 16px; border-radius: var(--radius-sm); background: var(--plum-soft); }
.incl-h { font-size: var(--text-xl); margin-bottom: var(--s4); }
.incl-list { display: grid; gap: 12px; }
.incl-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.incl-item img { border-radius: 6px; }
.incl-item h3 a { color: var(--ink); }
.incl-item p { font-size: var(--text-sm); color: var(--ink-2); }
.solo { text-align: right; font-size: var(--text-xs); color: var(--muted); }
.solo b { display: block; }
.solo .price { font-size: var(--text-lg); }
.solo-list { display: grid; gap: 12px; }
@media (max-width: 900px) { .bundle-hero > .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .incl-item { grid-template-columns: 60px 1fr; } .solo { grid-column: 2; text-align: left; } }
.page { padding: var(--s7) 0 var(--s9); }
.page .wrap { max-width: 780px; }
.page h1 { font-size: var(--text-2xl); margin: var(--s3) 0 var(--s4); }
.prose h2 { font-size: var(--text-xl); margin: var(--s7) 0 var(--s3); }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: var(--s3); }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.contact { display: grid; gap: var(--s4); margin-top: var(--s6); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s6); }
.contact label { display: grid; gap: 6px; font-weight: 700; font-size: var(--text-sm); }
.contact label .opt { font-weight: 400; color: var(--muted); }
.contact input, .contact textarea, .contact select { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--rule-strong); background: var(--paper); color: var(--ink); }
.contact input:focus-visible, .contact textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.contact .trap { position: absolute; left: -9999px; }
.contact .note { font-size: var(--text-xs); color: var(--muted); }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s6); }
.cards-2 > div { padding: var(--s5); border: 1px solid var(--rule); border-radius: var(--radius); }
.cards-2 h3 { margin-bottom: 6px; }
.cards-2 p { font-size: var(--text-sm); color: var(--ink-2); }
@media (max-width: 640px) { .cards-2 { grid-template-columns: minmax(0, 1fr); } }
.reviews { list-style: none; margin-top: var(--s5); display: grid; gap: var(--s4); }
.reviews .review { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; background: var(--card); }
.reviews .stars { color: var(--ink); letter-spacing: 2px; font-size: 1.2rem; }
.reviews .review-body { margin: 8px 0; color: var(--ink-2); }
.reviews .review-body p + p { margin-top: 8px; }
.reviews .review-who { color: var(--muted); font-size: var(--text-sm); }
/* ---------- Free video lessons (/videos/), on the redesign's tokens ---------- */
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); margin-bottom: var(--s3); }
.tag { display: inline-block; font-size: var(--text-xs); font-weight: 700; padding: 1px 9px; border-radius: 6px; border: 1px solid var(--rule-strong); color: var(--ink); }
.tag-accent { background: var(--plum-soft); border-color: color-mix(in srgb, var(--plum) 30%, transparent); }
.vhero { padding: clamp(40px, 6vw, 80px) 0 clamp(16px, 3vw, 32px); }
.vhero h1 { font-size: var(--text-2xl); max-width: 22ch; }
.vhero h1 em { font-style: normal; color: var(--plum); box-shadow: inset 0 -.18em 0 var(--gold); }
.vhero .lede { margin-top: var(--s4); }
.vhero .hero-ctas { margin-top: var(--s5); }
.vnote { margin-top: var(--s4); font-size: var(--text-sm); }
.vseries { padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--rule); }
.vseries .section-head { margin-bottom: var(--s5); }
.ladder { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s4); counter-reset: none; }
.ladder li { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--rule-strong); font-size: var(--text-xs); color: var(--muted); }
.ladder li b { font-weight: 700; }
.ladder li.on { border-style: solid; border-color: var(--gold); background: var(--plum-soft); color: var(--ink); }
.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: var(--s5); }
.vplay { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: 10px var(--s5); border-bottom: 1px solid var(--rule); font-size: var(--text-xs); color: var(--muted); }
.vplay a { font-weight: 700; font-size: var(--text-sm); }
.vtopic { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vlen { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); }
.vcard .body > .vtake { color: var(--ink-2); }
.vtake b { color: var(--ink); }
.vrel { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: var(--s3); border-radius: var(--radius-sm); background: var(--paper); }
.vrel-cover img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; object-position: top; }
.vrel-k { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.vrel-t { color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.3; }
.vrel-t:hover { text-decoration: underline; }
.vrel-buy { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.vrel-buy .price { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.vcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.vcard .yt, .vcard .yt-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #0a0d14; }
.vcard .yt img { width: 100%; height: 100%; object-fit: cover; }
.vcard .play { position: absolute; right: 16px; bottom: 16px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); }
.vcard .play svg { width: 30px; height: 30px; margin-left: 4px; }
.vcard .yt:hover .play, .vcard .yt:focus-visible .play { transform: scale(1.08); }
.vcard .body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.vcard .body > p { color: var(--ink-2); font-size: var(--text-sm); }
.vmeta { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: var(--text-xs); color: var(--muted); }
.vlinks { display: flex; gap: var(--s4); flex-wrap: wrap; margin-top: auto; font-size: var(--text-sm); font-weight: 700; }
.next-up { grid-column: 1 / -1; font-size: var(--text-sm); }

/* ---------- Product-page panels (offer_panels.py: .op-*) ----------
 * The brief's palette: ivory paper, ink text, plum for structure, gold for
 * the one accent. Long commands and outputs wrap at 390px (no sideways
 * scroll); nothing here moves. */
.op .section-head h2 { max-width: 30ch; }
.op .lede { margin-top: 0; max-width: var(--measure); }
.op h3 { font-size: var(--text-base); margin-bottom: var(--s2); }
.op ul, .op ol { padding-left: 0; }
.op code { font-size: .88em; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1px 6px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.op dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px var(--s3); margin: 0 0 var(--s3); font-size: var(--text-sm); }
.op dt { font-weight: 700; color: var(--muted); }
.op dd { margin: 0; min-width: 0; }
@media (max-width: 520px) { .op dl { grid-template-columns: minmax(0, 1fr); } .op dd + dt { margin-top: 6px; } }
.op-preview { margin-top: var(--s4); padding: var(--s4) var(--s5); border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); max-width: var(--measure); overflow-wrap: anywhere; }
.op-audiences { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s3) 0 0; padding: 0; }
.op-audiences li { font-size: var(--text-xs); font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--plum-soft); color: var(--plum); border: 1px solid color-mix(in srgb, var(--plum) 25%, transparent); }
.op-journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s4); }
.op-step { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s5); }
.op-step ul { list-style: none; display: grid; gap: 8px; }
.op-step p { color: var(--ink-2); }
.op-adds li b { color: var(--plum); margin-right: 4px; }
/* In the box is the kit scene's no-motion fallback: with the script running
 * and motion allowed, the #kit scene shows the files, so the list and its
 * nav link step aside; under reduced motion, or with no script, it shows. */
@media (prefers-reduced-motion: no-preference) {
  .js #box, .js .p-nav a[href="#box"] { display: none; }
}
.op-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s4); }
.op-boxes > .op-box { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--plum); border-radius: var(--radius); padding: var(--s5); }
.op-boxes > .op-box ul { list-style: none; display: grid; gap: 10px; }
.op-boxes > .op-box li { padding-left: 14px; position: relative; color: var(--ink-2); }
.op-boxes > .op-box li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.op-boxes > .op-box li b { color: var(--ink); }
.op-review { list-style: none; counter-reset: opstep; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s3); }
.op-review li { counter-increment: opstep; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s4); overflow-wrap: anywhere; }
.op-review li h3::before { content: counter(opstep) ". "; color: var(--plum); }
.op-review li[data-step="review"] { border: 2px solid var(--plum); background: var(--plum-soft); }
.op-review p { font-size: var(--text-sm); color: var(--ink-2); }
.op-limits { margin-top: var(--s4); font-size: var(--text-sm); color: var(--ink-2); max-width: var(--measure); }
.op-checks, .op-evidence { list-style: none; display: grid; gap: var(--s3); }
.op-checks li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s4) var(--s5); }
.op-checks p { margin-top: 6px; color: var(--ink-2); font-size: var(--text-sm); }
.op-date { display: inline-block; font-size: var(--text-xs); font-weight: 700; color: var(--on-gold); background: var(--gold); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.op-troubleshooting .tag { margin-right: 6px; }
.op-route { list-style: none; display: grid; gap: var(--s3); margin: var(--s4) 0; }
.op-route li { border-left: 3px solid var(--plum); padding-left: var(--s4); }
.op-together .two { margin-top: var(--s4); gap: var(--s5); }
.op-support { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s5); margin-bottom: var(--s4); }
.op-support ul, .op-support + h3 + ol { display: grid; gap: 8px; color: var(--ink-2); font-size: var(--text-sm); }
.op-support ul { list-style: disc; padding-left: 1.1em; }
.op-support + h3 + ol { padding-left: 1.3em; }
.op-support ~ h3 { margin-top: var(--s4); }
.op-support ~ p { color: var(--ink-2); }

/* ------------------------------------------------------ reduced motion */
/* Every scene is readable still: nothing moves, nothing advances by itself
 * (app.js checks the same query), and the shelf keeps its order. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .shelf.is-live .book, .shelf.is-live .book.is-match, .shelf.is-live .book.is-dim { transform: none; }
  .shelf.is-live .book:has([aria-current="true"]) { transform: translateY(-8px); }
  .kit.is-folded .kit-cover { transform: none; }
  .card:hover, .free-poster:hover { transform: none; }
}
@media print { .top, .sticky-buy, .p-nav, .shelf-picks { display: none; } }
@media (max-width: 900px) { .result { position: static; } }
.close :focus-visible { outline-color: var(--gold); }

/* ---------------------------------------------------------------
 * Black + royal blue: the professional layer with a light tech touch
 * (Miro, 2026-10-12). A faint grid fading down the page, a soft blue
 * glow behind the header, monospace for data only. Overrides above.
 * --------------------------------------------------------------- */
body {
  background-color: var(--ivory);
  background-image:
    radial-gradient(1100px 540px at 82% -12%, rgba(91, 140, 255, .13), transparent 70%),
    linear-gradient(rgba(143, 176, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 176, 255, .035) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  background-repeat: no-repeat, repeat, repeat;
}
.top { background: rgba(10, 13, 20, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
h1, h2 { letter-spacing: -0.025em; }
.eyebrow { text-transform: none; letter-spacing: .01em; color: var(--gold); font-weight: 700; }
.vtopic, .vrel-k { text-transform: none; letter-spacing: 0; }
.vmeta, .vlen, .price, .tag, .ladder > * { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace; letter-spacing: 0; }
.btn { border-radius: 9px; }
.btn-gold, .btn-buy { box-shadow: 0 10px 28px -14px rgba(91, 140, 255, .9); }
.btn-ghost { border-color: var(--rule-strong); }
.close .box { background: radial-gradient(640px 260px at 0% 0%, rgba(91, 140, 255, .18), transparent 70%), #0f1420; border: 1px solid var(--rule-strong); }

/* Free lessons: each lesson is a wide panel, video left, details right. */
.vlist { grid-template-columns: 1fr; gap: var(--s6); }
.vcard { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  border-radius: 14px; border-color: var(--rule-strong);
  box-shadow: inset 0 1px 0 rgba(143, 176, 255, .08), 0 34px 70px -46px rgba(91, 140, 255, .55); }
.vcard .yt, .vcard .yt-frame { grid-column: 1; grid-row: 1; }
.vcard .play { width: 68px; height: 68px; right: 22px; bottom: 22px;
  box-shadow: 0 0 0 8px rgba(91, 140, 255, .18), 0 14px 30px -8px rgba(91, 140, 255, .7); }
.vplay { grid-column: 1; grid-row: 2; align-self: start; border-bottom: 0; border-top: 1px solid var(--rule); }
.vcard .body { grid-column: 2; grid-row: 1 / 3; border-left: 1px solid var(--rule); padding: var(--s6); }
.vcard .body h3 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.02em; }
.vrel { background: var(--ivory); border: 1px solid var(--rule); border-radius: 10px; }
.ladder { display: inline-flex; gap: 0; padding: 3px; border-radius: 10px; background: rgba(143, 176, 255, .07); }
.ladder li { border: 0; border-radius: 7px; }
.ladder li.on { background: var(--gold); color: var(--on-gold); }
@media (max-width: 820px) {
  .vcard { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .vcard .body { grid-column: 1; grid-row: 3; border-left: 0; border-top: 1px solid var(--rule); padding: var(--s5); }
}
/* Blocks that were inverted on the old light theme read light-on-black here. */
.compare thead th { background: var(--shelf); color: var(--ink); }
.bundle .wrap, .bundle h2, .bundle .sum { color: var(--ink); }
.bundle-sub { color: var(--ink-2); }
.bundle .wrap { background: radial-gradient(700px 300px at 100% 0%, rgba(91, 140, 255, .14), transparent 70%), var(--paper); border: 1px solid var(--rule-strong); }
.bundle .offer { background: var(--card); border: 1px solid var(--rule); }
.monogram { color: var(--on-gold); background: var(--gold); }
.excl, .excl b { color: var(--ink-2); }

/* Course pages: summary table, how-to steps, module grid, first lessons. */
.mono, .no, .mod-k, .glance th { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace; }
.table-card { border: 1px solid var(--rule-strong); border-radius: 14px; overflow: hidden; background: var(--paper); }
table.glance { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.glance th, .glance td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.glance tr:last-child th, .glance tr:last-child td { border-bottom: 0; }
.glance th { width: 30%; color: var(--muted); font-weight: 600; font-size: var(--text-xs); background: var(--card); }
.glance td { color: var(--ink); }
.how-steps { list-style: none; margin: 0; padding: 0; counter-reset: how; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule-strong); border-radius: 14px; overflow: hidden; background: var(--paper); }
.how-steps li { padding: var(--s5); }
.how-steps li + li { border-left: 1px solid var(--rule); }
.how-steps li::before { counter-increment: how; content: counter(how); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: var(--s4);
  border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font: 700 .9rem ui-monospace, "SF Mono", Menlo, monospace; }
.how-steps h3 { font-size: var(--text-base); margin-bottom: 6px; }
.how-steps p { font-size: var(--text-sm); color: var(--ink-2); }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s4); }
.mod { border: 1px solid var(--rule); border-radius: 12px; padding: var(--s5); background: var(--paper); }
.mod-k { font-size: var(--text-xs); color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.mod h3 { font-size: var(--text-base); }
.mod-items { list-style: none; margin: var(--s3) 0 0; padding: var(--s3) 0 0; border-top: 1px solid var(--rule); }
.mod-items li { display: grid; grid-template-columns: 2.6em 1fr; gap: 4px; padding: 3px 0; font-size: var(--text-sm); color: var(--ink-2); }
.mod-items .no { font-size: var(--text-xs); color: var(--muted); padding-top: 2px; }
.p-first { border: 1px solid var(--rule-strong); border-radius: 12px; padding: var(--s4) var(--s5); background: var(--paper); }
.p-first-h { font-size: var(--text-xs); font-weight: 700; color: var(--gold); }
.p-first .mod-items { margin-top: var(--s2); }
@media (max-width: 860px) {
  .how-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .how-steps li:nth-child(3) { border-left: 0; }
  .how-steps li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .how-steps li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .glance th { width: 38%; padding: 12px 14px; } .glance td { padding: 12px 14px; }
}

/* Sneak peek: real lesson minutes, real pages, real files. */
.peek-link { margin-top: var(--s4); }
.peek-link a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--link); text-decoration: none; }
.peek-link a::before { content: ""; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.peek-link a:hover { text-decoration: underline; }
.peek-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--s5); }
.peek-video { margin: 0; border: 1px solid var(--rule-strong); border-radius: 14px; overflow: hidden; background: var(--paper);
  box-shadow: 0 30px 70px -46px rgba(91, 140, 255, .55); }
.peek-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.peek-video figcaption { display: grid; gap: 4px; padding: var(--s4) var(--s5); border-top: 1px solid var(--rule); }
.peek-video figcaption b { color: var(--ink); }
.peek-video figcaption span, .peek-note, .peek-readme figcaption { font-size: var(--text-sm); color: var(--muted); }
.peek-book, .peek-kit { margin-top: var(--s6); }
.peek-book h3, .peek-kit h3 { font-size: var(--text-lg); }
.peek-note { margin-top: 4px; }
.peek-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: var(--s4); margin-top: var(--s4); }
.peek-page { position: relative; display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--rule-strong); background: #fff;
  transition: transform var(--t-ctl) var(--ease), box-shadow var(--t-ctl) var(--ease); }
.peek-page:hover, .peek-page:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(91, 140, 255, .7); }
.peek-page img { display: block; width: 100%; height: auto; }
.peek-page span { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(10, 13, 20, .86);
  color: var(--ink); font: 600 .74rem ui-monospace, "SF Mono", Menlo, monospace; }
.peek-kit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s4); margin-top: var(--s4); align-items: start; }
.peek-tree { list-style: none; margin: 0; padding: var(--s3) 0; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--paper);
  max-height: 420px; overflow: auto; font: .82rem/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
.peek-tree li { display: flex; justify-content: space-between; gap: var(--s3); padding: 3px var(--s4); color: var(--ink-2); }
.peek-tree li small { color: var(--muted); white-space: nowrap; }
.peek-readme { margin: 0; border: 1px solid var(--rule-strong); border-radius: 12px; overflow: hidden; background: #070a12; }
.peek-readme pre { margin: 0; padding: var(--s4) var(--s5); max-height: 420px; overflow: auto; white-space: pre-wrap;
  font: .8rem/1.6 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-2); }
.peek-readme figcaption { padding: 8px var(--s5); border-top: 1px solid var(--rule); }
@media (max-width: 760px) { .peek-kit-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .peek-page { transition: none; } .peek-page:hover { transform: none; } }

/* ---------------------------------------------- shop master plan, 15 Oct
 * One block for the plan's built-now set (docs/shop-master-plan-status.md):
 * catalog search, the explainable finder, the pairing reason, the edition
 * prompt and "Before you pay". Same tokens, same two colours. Every new
 * control is at least 44px tall with the shared focus ring. */
.why-pair { font-size: var(--text-sm); color: var(--ink-2); margin-top: 6px; max-width: 60ch; }
.vrel .why-pair { margin-top: 2px; }

.cat-tools { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--s3); align-items: end; margin: 0 0 var(--s3); padding: var(--s4); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.cat-tools[hidden] { display: none; }
.cat-tools label { display: grid; gap: 6px; min-width: 0; }
.cat-tools label > span { font-size: var(--text-xs); font-weight: 700; color: var(--ink-2); }
.cat-tools input, .cat-tools select { width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--rule-strong); background: var(--card); color: var(--ink); font: inherit; font-size: var(--text-sm); }
.cat-tools input::placeholder { color: var(--muted); }
.cat-tools input:focus-visible, .cat-tools select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--plum); }
.cat-tools .btn { min-height: 44px; }
.cat-count { min-height: 1.6em; margin: 0 0 var(--s3); font-size: var(--text-sm); color: var(--ink-2); }
.cat-empty { padding: var(--s5); border: 1.5px dashed var(--rule-strong); border-radius: var(--radius); background: var(--paper); }
.cat-empty p + p { margin-top: var(--s3); }
.cat-empty-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.chip, .pick { min-height: 44px; }
.finder .btn-sm, .compare-picks .chip { min-height: 44px; }
@media (max-width: 860px) {
  .cat-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cat-tools .cat-q { grid-column: 1 / -1; }
  .cat-tools .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 420px) { .cat-tools { grid-template-columns: minmax(0, 1fr); } }

/* The finder's answer: one start, set apart from the alternatives. */
.rec-k { font-size: var(--text-xs); font-weight: 800; color: var(--link); margin-bottom: 2px; }
.rec-best { padding: var(--s4); border: 1.5px solid var(--gold); border-radius: var(--radius); background: var(--plum-soft); }
.rec-best:last-child { padding-bottom: var(--s4); border-bottom: 1.5px solid var(--gold); }
.rec-best h3 { font-size: var(--text-lg); }
.rec-sub { font-size: var(--text-sm); font-weight: 800; color: var(--ink-2); }
.rec-alt { grid-template-columns: 64px 1fr; }
.rec-alt img { width: 64px; height: 64px; }
.rec-free { padding: var(--s4); border: 1.5px dashed var(--rule-strong); border-radius: var(--radius); display: grid; gap: var(--s2); }
.rec-out { border-top: 1px solid var(--rule); padding-top: var(--s3); }
.rec-out ul { margin: var(--s2) 0 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: var(--text-sm); color: var(--ink-2); }
.rec-out a { font-weight: 700; }
@media (max-width: 480px) { .rec, .rec-alt { grid-template-columns: 56px 1fr; } .rec img { width: 56px; height: 56px; } }

/* Edition choice: the prompt holds the Buy's place until a pick is made. */
.ed-prompt { padding: var(--s4); border: 1.5px dashed var(--rule-strong); border-radius: var(--radius-sm); color: var(--ink-2); font-size: var(--text-sm); }

/* Before you pay: four questions, answered side by side. */
.before { padding-top: var(--s7); }
.before h2 { margin-bottom: var(--s4); }
.before-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.before-q { background: var(--card); padding: var(--s5); display: grid; gap: var(--s2); align-content: start; font-size: var(--text-sm); color: var(--ink-2); }
.before-q h3 { font-size: var(--text-base); color: var(--ink); }
.before-q b { color: var(--ink); }
.before-q ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.before-q a { font-weight: 700; }
@media (max-width: 1020px) { .before-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .before-grid { grid-template-columns: minmax(0, 1fr); } }
