/* Editorial, minimal, large-print. Three type roles:
   --serif for headlines, book titles and prices; --sans for reading text; --mono for labels, numbers and the timer. */
:root {
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gold: #d9a441;
  --line: #d9d3c5;
  --muted: #5c6661;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.55 var(--sans); padding-bottom: 82px; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7.4vw, 4.3rem); line-height: 1.03; }
h2 { font-size: clamp(1.9rem, 5.2vw, 3rem); line-height: 1.08; }
h3 { font: 600 1.22rem/1.25 var(--sans); letter-spacing: -0.005em; }
em { font-style: italic; color: var(--accent); }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); margin: 0 auto; }
.label { font: 700 0.78rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.fine { font: 400 0.8rem/1.6 var(--mono); letter-spacing: 0.01em; color: var(--muted); }
.sub { font-size: clamp(1.08rem, 2.4vw, 1.3rem); color: var(--muted); margin-top: 18px; text-wrap: pretty; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Sections: every one opens with a numbered label and a rule, so the page reads as clear steps */
section { padding: clamp(56px, 8vw, 104px) 0; }
section.band { background: var(--tint); }
.head { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--ink); margin-bottom: clamp(30px, 5vw, 54px); }
.idx { display: flex; justify-content: space-between; font: 700 0.74rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.idx b { color: var(--accent); font-weight: 700; }
.head h2 { max-width: 18ch; }
.head .sub { margin-top: 0; max-width: 46ch; }
@media (min-width: 900px) { .head { grid-template-columns: 1fr 1fr; column-gap: 48px; } .head .idx { grid-column: 1 / -1; } .head .sub { align-self: end; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 14px 30px; border: 0; border-radius: 4px; background: var(--ink); color: #fff; font: 600 1.14rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer; }
.btn:hover { background: var(--accent); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #e8b95c; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); min-height: 58px; font-size: 1.05rem; }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* Timer strip and navigation */
.strip { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; text-align: center; padding: 9px 12px; font: 500 clamp(0.72rem, 2.9vw, 0.86rem) var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.strip strong { color: var(--gold); font-weight: 700; }
.timer { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.strip .timer { color: var(--gold); margin-left: 8px; font-size: 1.15em; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav .brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.nav .brand b { display: block; font: 500 1.35rem/1.1 var(--serif); letter-spacing: -0.01em; }
.nav small { display: block; font: 500 0.64rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav nav { display: none; gap: 28px; font-size: 0.98rem; }
.nav nav a { color: var(--ink); text-decoration: none; }
.nav nav a:hover { color: var(--accent); }
.nav .btn { min-height: 46px; padding: 8px 18px; font-size: 0.98rem; }
@media (min-width: 900px) { .nav nav { display: flex; } }

/* Hero */
.hero { padding: clamp(34px, 6vw, 72px) 0 clamp(44px, 6vw, 80px); text-align: center; }
.hero h1 { max-width: 17ch; margin: 14px auto 0; }
.hero .sub { max-width: 44ch; margin-left: auto; margin-right: auto; }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 980px; margin: clamp(26px, 4vw, 44px) auto 0; border-radius: 6px; overflow: hidden; background: #000; }
.video video { width: 100%; height: 100%; object-fit: cover; }
.playbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; white-space: nowrap; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 600 clamp(0.98rem, 3.4vw, 1.2rem) var(--sans); padding: 14px 26px 14px 16px; cursor: pointer; box-shadow: 0 10px 34px rgba(0,0,0,.4); }
.playbtn[hidden] { display: none; }
.playbtn svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--ink); color: #fff; }
.hero .act { max-width: 980px; margin: 14px auto 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; font: 500 0.74rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ticks li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* Photo + numbered points */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { width: 100%; border-radius: 6px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; } .split.flip > img { order: 2; } }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 54px 1fr; gap: 4px 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font: 700 0.8rem var(--mono); letter-spacing: 0.1em; color: var(--accent); padding-top: 6px; }
.steps b { font: 500 1.42rem/1.2 var(--serif); letter-spacing: -0.01em; }
.steps span { color: var(--muted); font-size: 1.02rem; }
@media (min-width: 900px) { .steps.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; } .steps.two li:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* Photo strip */
.gallery { display: grid; gap: 22px; grid-template-columns: 1fr; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.gallery figcaption { margin-top: 10px; font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.gallery figcaption b { color: var(--accent); margin-right: 8px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.wide-photo { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 6px; margin-bottom: clamp(26px, 4vw, 44px); }

/* Books, drawn in code. Seen from the front, with a page block and back cover showing at the right and bottom edge,
   so each one reads as a book and not a sheet. All sizes use the cover's own width. */
.bk { container-type: inline-size; position: relative; isolation: isolate; width: 100%; padding: 0 6% 3.4% 0; filter: drop-shadow(0 12px 14px rgba(20,25,22,.2)); }
.bk::after { content: ""; position: absolute; z-index: 0; inset: 3.2% 0 0 6%; background: var(--c); filter: brightness(.6); border-radius: 3px 5px 5px 3px; }
.bk::before { content: ""; position: absolute; z-index: 1; inset: 1.6% 1.6% 1.2% 3%; border-radius: 2px 3px 3px 2px; background:
  linear-gradient(#f7f2e6, #f7f2e6) padding-box,
  repeating-linear-gradient(0deg, #f7f2e6 0, #f7f2e6 2px, #cfc7b4 2px, #cfc7b4 3px);
  background: repeating-linear-gradient(90deg, #f8f4e9 0, #f8f4e9 2px, #cdc4b0 2px, #cdc4b0 3px); box-shadow: inset 0 -3px 0 #e6dfce; }
.bk .face { position: relative; z-index: 2; aspect-ratio: 5 / 7; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8.5cqw 8cqw 8cqw 11cqw; color: #f6f1e6; border-radius: 2px 4px 4px 2px; overflow: hidden;
  background: linear-gradient(125deg, rgba(255,255,255,.12), transparent 42%), radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 1.6px) 0 0 / 7px 7px, var(--c); }
.bk .face::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6cqw; background: linear-gradient(90deg, rgba(0,0,0,.32), rgba(0,0,0,.12) 50%, rgba(255,255,255,.16) 78%, transparent); }
.bk .frame { position: absolute; inset: 4cqw 4cqw 4cqw 8.5cqw; border: 0.45cqw solid rgba(217,164,65,.6); border-radius: 1.2cqw; pointer-events: none; }
.bk .top { width: 100%; display: flex; justify-content: space-between; font: 700 3.1cqw var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.bk .art { width: 42cqw; aspect-ratio: 1; margin: 7cqw 0 6cqw; border-radius: 50%; display: grid; place-items: center; color: #f6ead0; background: rgba(246,241,230,.1); box-shadow: inset 0 0 0 0.5cqw rgba(217,164,65,.75), 0 0 0 1.6cqw rgba(246,241,230,.06); }
.bk .art svg { width: 27cqw; height: 27cqw; }
.bk b { font: 500 9.4cqw/1.08 var(--serif); letter-spacing: -0.012em; text-wrap: balance; }
.bk p { font: 400 3.9cqw/1.35 var(--sans); color: rgba(246,241,230,.84); margin-top: 3.4cqw; max-width: 26ch; text-wrap: balance; }
.bk i { margin-top: auto; padding-top: 3cqw; font: 700 3.2cqw var(--mono); font-style: normal; letter-spacing: 0.2em; text-transform: uppercase; color: #f6f1e6; }
.bk i::before { content: ""; display: block; width: 9cqw; border-top: 0.5cqw solid var(--gold); margin: 0 auto 3cqw; }
.shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
.shelf figcaption { margin-top: 16px; font-size: 1rem; line-height: 1.4; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.shelf figcaption span { display: block; font: 700 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.shelf figure:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 10px); margin: 0 auto; }
@media (min-width: 900px) { .shelf { grid-template-columns: repeat(5, 1fr); gap: 26px; } .shelf figure:last-child:nth-child(odd) { grid-column: auto; width: auto; } }
/* A bundle shown as a tidy row of its books, never overlapping */
.set { display: grid; gap: 3%; align-items: end; margin: 0 auto; }
.set { flex: none; }
.set.n5 { grid-template-columns: repeat(5, 1fr); width: 100%; }
.set.n3 { grid-template-columns: repeat(3, 1fr); width: 76%; }
.set.n1 { grid-template-columns: 1fr; width: 25%; }
/* Calculator */
.calc { display: grid; background: #fff; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; }
.calc form { padding: clamp(22px, 4vw, 40px); }
@media (min-width: 900px) { .calc { grid-template-columns: 1.25fr 1fr; } }
.field { margin: 0 0 26px; border: 0; padding: 0; }
.field:last-child { margin-bottom: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 1.06rem; padding: 0; margin-bottom: 8px; }
.field output { float: right; font: 700 1.1rem var(--mono); color: var(--accent); }
input[type=range] { width: 100%; height: 44px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choices label { margin: 0; font-size: 0.98rem; font-weight: 500; text-align: center; padding: 14px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.choices input { position: absolute; opacity: 0; }
.choices label:has(input:checked) { background: var(--ink); color: #fff; box-shadow: none; }
.choices label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.result { background: var(--ink); color: #fff; padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.result .label { color: var(--gold); }
.result .big { font: 500 clamp(3.6rem, 14vw, 5.4rem)/1 var(--serif); letter-spacing: -0.03em; margin: 12px 0 14px; font-variant-numeric: tabular-nums; }
.result p { color: rgba(255,255,255,.86); margin-bottom: 22px; }
.result .fine { color: rgba(255,255,255,.66); margin-top: 18px; }

/* Deal box and bundles */
.deal { border: 1px solid var(--ink); border-radius: 6px; background: #fff; text-align: center; padding: 26px 20px 22px; max-width: 520px; margin: 0 auto clamp(34px, 5vw, 54px); }
.deal .now { font: 500 1.5rem var(--serif); margin-top: 8px; }
.deal .was { margin-top: 6px; font-size: 1rem; color: var(--muted); }
.deal .was b { color: var(--ink); font-weight: 600; }
.deal .timer { display: block; font-size: clamp(2.3rem, 9vw, 3rem); margin: 12px 0 8px; }
.deal.dark { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.deal.dark .was, .deal.dark .fine { color: rgba(255,255,255,.7); } .deal.dark .was b { color: #fff; } .deal.dark .label { color: var(--gold); }
.tiers { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 1000px) { .tiers { grid-template-columns: 1.22fr 1fr 1fr; gap: 18px; } }
.tier { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tier.best { background: #fff; border: 2px solid var(--ink); }
.tier .flag { background: var(--ink); color: #fff; text-align: center; padding: 11px; font: 700 0.72rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.tier .in { display: flex; flex-direction: column; flex: 1; padding: 26px 22px 22px; }
.tier .set { margin-bottom: 24px; } .tier .shelfline { min-height: 150px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); margin-bottom: 22px; padding-bottom: 14px; } .tier .shelfline .set { margin-bottom: 0; }
.tier h3 { font: 500 1.7rem/1.12 var(--serif); letter-spacing: -0.015em; margin-top: 6px; }
.price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 4px; }
.price b { font: 500 3.6rem/1 var(--serif); letter-spacing: -0.03em; }
.tier.best .price b { font-size: 4.6rem; }
.price s { font: 500 1.05rem var(--mono); color: var(--muted); }
.price span { font: 500 0.74rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.save { align-self: flex-start; font: 700 0.74rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--gold); color: var(--ink); border-radius: 3px; padding: 5px 10px; margin: 6px 0 18px; }
.has { list-style: none; padding: 0; margin: 0 0 20px; font-size: 1rem; }
.has li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); position: relative; }
.has li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.has li.no { color: #a3a8a2; }
.has li.no::before { content: "–"; color: #b9bdb7; }
.nudge { background: var(--tint); border-radius: 4px; padding: 12px 14px; font-size: 0.98rem; margin-bottom: 16px; }
.nudge b { color: var(--accent); }
.tier .btn { margin-top: auto; }
.tier .fine { text-align: center; margin-top: 10px; }

/* Stats, parts, tags, single offer (single-book page) */
.stats { display: grid; border-top: 1px solid var(--ink); }
.stats div { padding: 28px 0; border-bottom: 1px solid var(--line); }
.stats b { display: block; font: 500 clamp(4rem, 15vw, 6.4rem)/0.95 var(--serif); letter-spacing: -0.04em; color: var(--accent); }
.stats span { display: block; margin-top: 10px; font-size: 1.15rem; }
@media (min-width: 760px) { .stats { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.parts { display: grid; border-top: 1px solid var(--ink); }
.parts div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.parts h3 { font: 500 1.5rem/1.15 var(--serif); margin: 8px 0 6px; }
.parts p { color: var(--muted); font-size: 1.02rem; }
@media (min-width: 900px) { .parts { grid-template-columns: repeat(4, 1fr); column-gap: 28px; } .parts div { border-bottom: 0; } }
.tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 500 0.76rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 8px 14px; }
.offer { display: grid; gap: 34px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: clamp(24px, 5vw, 54px); }
.offer .bk { max-width: 300px; margin: 0 auto; }
.offer .price b { font-size: 5rem; }
.offer h3 { font: 500 1.9rem/1.12 var(--serif); margin-top: 8px; }
@media (min-width: 900px) { .offer { grid-template-columns: 330px 1fr; gap: 60px; } }
.inside { display: grid; gap: 40px; align-items: start; }
.inside .bk { max-width: 320px; margin: 0 auto; }
@media (min-width: 980px) { .inside { grid-template-columns: 340px 1fr; gap: 64px; } }

/* About, questions, closing */
.about p { margin-top: 16px; font-size: 1.12rem; }
.about .fine { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.74rem; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; position: relative; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.12rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--mono); color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { padding: 0 44px 24px 0; color: var(--muted); }
.last { background: var(--ink); color: #fff; text-align: center; }
.last h2 { color: #fff; max-width: 18ch; margin: 12px auto 0; }
.last .label { color: var(--gold); }
.last .set { margin: 40px auto; max-width: 520px; } .last .set.n1 { max-width: 220px; width: 100%; }
.last .fine { color: rgba(255,255,255,.66); margin-top: 16px; }
footer { padding: 30px 0 22px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; }
footer b { font: 500 1.2rem var(--serif); }

/* Always-visible buy bar */
.buybar { position: fixed; inset: auto 0 0 0; z-index: 40; background: #fff; border-top: 1px solid var(--ink); padding: 9px 14px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.buybar div { line-height: 1.25; min-width: 0; }
.buybar div b { display: block; font: 500 1.08rem var(--serif); }
.buybar div span { font: 500 0.74rem var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.buybar div span strong { color: var(--ink); font-size: 1.15em; }
.buybar .btn { min-height: 54px; padding: 8px 24px; font-size: 1.06rem; white-space: nowrap; flex: none; }

/* Upgrade prompt */
dialog { border: 0; border-radius: 6px; padding: 0; width: min(520px, 100% - 24px); color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgba(15,20,18,.78); }
dialog .in { padding: 30px 24px 24px; text-align: center; }
dialog h2 { font-size: 1.9rem; margin-top: 10px; }
dialog .set { margin: 26px auto; }
dialog .btn { margin-top: 10px; }
