/* The Challenge: shared styles for the sales page, thank-you page and resend page.
   Colors come from the book cover: warm paper, black ink, gold rule. */
:root {
  --paper: #f7f3ea; --paper-2: #efe8d8; --card: #fffdf8; --ink: #161412; --ink-2: #2a2723;
  --muted: #6a6358; --line: #e2d9c6; --gold: #b0842f; --gold-ink: #86611c;
  --ok: #1e7f4f; --err: #b3261e;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Motion: strong custom curves (the built-in CSS easings are too weak) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: light;
}
::selection { background: #e8c77f; color: var(--ink); }
h1, h2, h3, h4, .pullquote, .big { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
section[id] { scroll-margin-top: 60px; }
button, .btn, .tab, summary, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Base (thanks.html, resend.html, and the buy forms) ---------- */
.wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-family: var(--serif); font-size: 32px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin: 28px 0 8px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 16px 0; }
.price { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.1; }
.price small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 6px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input, textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 84px; resize: vertical; }
.btn { display: inline-block; width: 100%; text-align: center; background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 15px 18px; font: inherit; font-weight: 600; cursor: pointer; margin-top: 18px; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #000; } }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.tabs { display: flex; gap: 8px; margin: 20px 0 4px; }
.tab { flex: 1; text-align: center; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; font-weight: 600; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab, .qty button { transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.tab:active, .qty button:active { transform: scale(.97); }
/* Switching tabs or adding recipients: fade the new content in instead of popping it (enter only; nothing leaves animated) */
form.card { transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
@starting-style { form.card { opacity: 0; transform: translateY(6px); } }
.rcpt.is-new { animation: rise 260ms var(--ease-out) var(--d, 0ms) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.qty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.qty button { padding: 12px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; line-height: 1.3; }
.qty button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.qty small { display: block; font-size: 12px; font-weight: 400; opacity: .8; }
.qty .save { color: var(--gold-ink); font-weight: 600; opacity: 1; }
.qty button[aria-pressed="true"] .save { color: #e8c77f; }
.rcpt { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 14px; }
.msg { margin-top: 12px; font-size: 15px; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.fine { font-size: 13px; color: var(--muted); }
ul.clean { padding-left: 18px; }
.hidden { display: none !important; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: currentColor; border-radius: 50%; animation: spin .6s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sales page ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; margin: 0 auto; }
section { padding: 72px 0; }
.section-title { font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 16px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 620px; }
.rule { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 0 0 24px; }

/* Scroll reveal (class added by JS, so content is never hidden without it) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out) var(--d, 0ms), transform 600ms var(--ease-out) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Hero entrance on load: short stagger, first view only */
.hero h1, .hero .lede, .hero .cta-row, .hero .micro, .hero-cover, .trust { animation: rise-in 560ms var(--ease-out) both; }
.hero-cover { animation-delay: 40ms; }
.hero .lede { animation-delay: 80ms; }
.hero .cta-row { animation-delay: 140ms; }
.hero .micro { animation-delay: 180ms; }
.trust { animation-delay: 240ms; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  /* Keep the fades that help, drop the movement */
  .reveal { transform: none; transition: opacity 300ms ease; }
  .hero h1, .hero .lede, .hero .cta-row, .hero .micro, .hero-cover, .trust { animation-name: fade-in; animation-duration: 300ms; }
  form.card, .tab, .qty button, .btn { transition-property: opacity, background-color, color; }
  .btn:active, .tab:active, .qty button:active { transform: none; }
  .rcpt.is-new { animation-name: fade-in; }
}
@keyframes fade-in { from { opacity: 0; } }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(247, 243, 234, .92); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-decoration: none; }
.brand span { font-size: 11px; letter-spacing: .3em; margin-right: 6px; vertical-align: 2px; }
.topbar .btn { width: auto; margin: 0; padding: 9px 16px; font-size: 15px; }

/* Hero */
.hero { padding: 40px 0 64px; position: relative; isolation: isolate; }
/* No z-index here: it would isolate the cover's multiply blend from the aurora. DOM order already paints it on top. */
.hero > .container { position: relative; }

/* Aurora background, ported from the Aceternity "AuroraBackground" React component to plain CSS
   and recolored from blue/violet to the cover's gold. Light drifts from the top-right corner. */
.aurora-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora {
  --white-gradient: repeating-linear-gradient(100deg, #fff 0%, #fff 7%, transparent 10%, transparent 12%, #fff 16%);
  --aurora: repeating-linear-gradient(100deg, #e8c77f 10%, #f1d596 15%, #d9a441 20%, #f6e7c1 25%, #c9973a 30%);
  position: absolute; inset: -10px; opacity: .5; will-change: transform;
  background-image: var(--white-gradient), var(--aurora);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(10px) invert(1);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
}
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--white-gradient), var(--aurora);
  background-size: 200%, 100%;
  background-attachment: fixed;
  mix-blend-mode: difference;
  animation: aurora 60s linear infinite; /* constant ambient motion: linear */
}
@keyframes aurora { from { background-position: 50% 50%, 50% 50%; } to { background-position: 350% 50%, 350% 50%; } }
.hero.is-offscreen .aurora::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .aurora::after { animation: none; } }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6.4vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px; }
.hero h1 em { font-style: italic; color: var(--gold-ink); }
.hero .lede { margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row .btn { width: auto; margin: 0; padding: 16px 26px; font-size: 17px; }
.cta-row .link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; padding: 12px 4px; transition: text-decoration-color 150ms ease, opacity 150ms ease; }
@media (hover: hover) and (pointer: fine) { .cta-row .link:hover { text-decoration-color: var(--ink); } }
.cta-row .link:active { opacity: .6; }
.micro { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.hero-cover { max-width: 300px; margin: 0 auto; width: 100%; }

/* ---------- 3D book ----------
   States (set by JS): closed -> open (shows the ownership page) -> ajar (rests slightly open, inviting a tap).
   Only transform and opacity animate. */
.book {
  --ease-book: cubic-bezier(0.65, 0, 0.35, 1); /* on-screen movement: ease-in-out, weighted like a hardcover */
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  container-type: inline-size; font: inherit; color: inherit; text-align: center;
}
.book:focus-visible { outline: 2px solid var(--ink); outline-offset: 10px; border-radius: 6px; }
.book-body {
  position: relative; display: block; aspect-ratio: 640 / 802;
  perspective: 2600px; perspective-origin: 30% 50%;
}
/* The page underneath, with a stack of page edges on the right and bottom */
.book-page {
  position: absolute; inset: 1.2% 1.4% 1.2% 3%; display: flex; flex-direction: column; align-items: center;
  padding: 16cqi 7cqi 0 27cqi; /* left padding keeps the text clear of the open cover */ background: #fcfaf4; border-radius: 1px 3px 3px 1px;
  box-shadow:
    1px 1px 0 #e6dfcf, 2px 2px 0 #fbf8f1, 3px 3px 0 #e6dfcf, 4px 4px 0 #fbf8f1, 5px 5px 0 #ddd4c1,
    0 28px 40px -18px rgba(60, 45, 20, .45), 0 8px 16px -8px rgba(60, 45, 20, .25);
}
/* Gutter shadow along the hinge */
.book-page::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; background: linear-gradient(90deg, rgba(60, 45, 20, .16), transparent); pointer-events: none; }
.op-kicker { font-size: 3.3cqi; letter-spacing: .18em; text-transform: uppercase; color: #8b8375; }
.op-name { margin-top: 3cqi; font-family: var(--serif); font-weight: 700; font-size: 9cqi; line-height: 1.1; color: var(--ink); max-width: 100%; overflow-wrap: anywhere; text-wrap: balance; }
.op-meta { margin-top: 2cqi; font-size: 3cqi; line-height: 1.35; color: #8b8375; max-width: 100%; overflow-wrap: anywhere; }
.op-rule { width: 100%; height: 1px; background: #e2dccf; margin: 5cqi 0 4cqi; }
.op-h { font-size: 3.4cqi; font-weight: 700; color: var(--ink); }
.op-lines { align-self: stretch; display: grid; gap: 2.4cqi; margin-top: 3.5cqi; }
.op-lines i { display: block; height: 1.3cqi; border-radius: 2px; background: #ebe5d8; }
.op-lines i:nth-child(3n) { width: 72%; }

.book-cover {
  position: absolute; inset: 0; display: block; transform-origin: 0% 50%;
  transform: rotateY(0deg); transition: transform 650ms var(--ease-book); will-change: transform;
  border-radius: 2px 4px 4px 2px; overflow: hidden;
  box-shadow: 0 28px 40px -18px rgba(60, 45, 20, .45), 0 8px 16px -8px rgba(60, 45, 20, .25), inset -1px 0 0 rgba(0,0,0,.08);
}
.book-cover img { display: block; width: 100%; height: 100%; }
/* Light falls off as the cover turns away from the page */
.book-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(40, 30, 15, .28)); opacity: 0; transition: opacity 650ms var(--ease-book); }
.book[data-state="ajar"] .book-cover { transform: rotateY(-16deg); }
.book[data-state="ajar"] .book-shade { opacity: .35; }
.book[data-state="open"] .book-cover { transform: rotateY(-72deg); transition-duration: 900ms; }
.book[data-state="open"] .book-shade { opacity: 1; transition-duration: 900ms; }
.book:active .book-body { transform: scale(.985); }
.book-body { transition: transform 160ms var(--ease-out); }

.book-hint { margin: 30px 0 0; font-size: 13px; color: var(--muted); text-align: center; transition: opacity 300ms ease; }
.book-hint .hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .book-hint .hint-touch { display: none; } .book-hint .hint-mouse { display: inline; } }
.book-hint.is-done { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .book-cover, .book-shade, .book-body { transition: none; }
}
.trust { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--muted); }
.trust strong { color: var(--ink); font-weight: 600; }

/* Problem */
.problem { background: var(--paper-2); }
.pains { display: grid; gap: 16px; margin: 8px 0 32px; }
.pain { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.pain p { margin: 0; }
.pain .n { font-family: var(--serif); font-size: 28px; color: var(--gold); line-height: 1; margin-bottom: 10px; display: block; }
.pullquote { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 28px); line-height: 1.35; margin: 0; padding-left: 20px; border-left: 3px solid var(--gold); }

/* Scoreboard */
.board-section { background: var(--ink); color: #f3eee3; }
.board-section .section-title { color: #fff; }
.board-section .lede { color: #b9b1a3; }
.board { border: 1px solid #34302a; border-radius: 16px; overflow: hidden; background: #1c1a17; }
.board-head, .row { display: grid; grid-template-columns: 64px 1fr auto 36px; gap: 12px; align-items: center; padding: 14px 18px; }
.board-head { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8f877a; border-bottom: 1px solid #34302a; }
.row { border-bottom: 1px solid #2a2722; }
.row:last-child { border-bottom: 0; }
.row .day { font-family: var(--serif); font-weight: 700; font-size: 18px; color: #fff; }
.row .day small { display: block; font-family: var(--sans); font-weight: 400; font-size: 12px; color: #8f877a; }
.row .what { font-size: 15px; color: #d7d0c3; }
.row .amt { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; color: #fff; }
.mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.mark.x { background: rgba(214, 69, 58, .16); color: #ff8a80; }
.mark.ok { background: rgba(52, 168, 110, .18); color: #7fdcaa; }
.row.total { background: #25221d; }
.row.total .amt { font-family: var(--serif); font-size: 22px; color: #e8c77f; }
.board-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 20px; font-size: 14px; color: #b9b1a3; }
.board-foot a { color: #fff; }
.receipts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.receipts:empty { display: none; }
.receipts img { border-radius: 10px; border: 1px solid #34302a; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }

/* Inside the book */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feature { background: var(--card); padding: 26px 24px; }
.feature h3 { font-family: var(--serif); font-size: 21px; line-height: 1.25; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.toc { display: grid; gap: 12px; margin-top: 32px; }
.part { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.part .label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.part h4 { font-family: var(--serif); font-size: 20px; margin: 0 0 2px; }
.part p { margin: 0; font-size: 15px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; text-align: center; }
.stat { padding: 18px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.stat b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }

/* Proof */
.proof { background: var(--paper-2); }
.quotes { display: grid; gap: 16px; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 0; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 19px; line-height: 1.45; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 44px; line-height: .6; color: var(--gold); margin-bottom: 8px; }
.quote figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); display: block; }
.quote.feature-quote { background: var(--ink); color: #f3eee3; border-color: var(--ink); }
.quote.feature-quote figcaption { color: #b9b1a3; }
.quote.feature-quote figcaption strong { color: #fff; }

.quote.story .story-text { margin: 0 0 16px; font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.also { margin: 24px 0 0; font-size: 15px; color: var(--muted); }
.swipe-hint { display: none; margin: -16px 0 14px; font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.board-section .swipe-hint { color: #d9b56a; }

/* Bigger tap areas for small inline links without changing the layout */
.board-foot a, .goal-updated a, footer a, .faq details a, .buy .fine a { padding-block: 10px; }
.brand { padding-block: 8px; }
#order { scroll-margin-top: 72px; }
.also strong { color: var(--ink); }

/* Instagram comments */
.comments { display: grid; gap: 14px; }
.ig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; }
.ig figcaption { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; }
.ig .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink); background: var(--paper); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e1306c; margin-right: 4px; flex: none; }
.ig b { font-weight: 700; }
.ig .tick { width: 16px; height: 16px; fill: #0095f6; flex: none; }
.ig blockquote { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.ig .likes { margin-top: auto; font-size: 13px; color: var(--muted); font-weight: 600; }
.ig.wide blockquote { font-family: var(--serif); font-size: 22px; line-height: 1.4; }

.omoni { display: grid; gap: 24px; margin-top: 40px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; align-items: center; }
.omoni img { width: 100%; border-radius: 12px; aspect-ratio: 460 / 600; object-fit: cover; object-position: top; }
.omoni-text { padding: 0 4px 8px; }
.omoni-lead { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 18px; }
.omoni-text .ig { background: var(--paper); margin-bottom: 18px; }
.omoni-text p { margin: 0 0 12px; }

/* How it works */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px 24px 24px 76px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-ink); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.step h3 { margin: 0 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Buy */
.buy { background: var(--paper-2); }
.buy-grid { display: grid; gap: 32px; align-items: start; }
.buy .wrap { padding: 0; }
.buy .card { box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 20px 40px -24px rgba(60, 45, 20, .25); }
.includes { list-style: none; padding: 0; margin: 16px 0 0; }
.includes li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid var(--line); font-size: 16px; }
.includes li::before { content: "\2713"; position: absolute; left: 4px; color: var(--gold-ink); font-weight: 700; }
.second-copy { margin-top: 24px; padding: 20px; border-radius: 14px; border: 1px dashed var(--gold); background: rgba(176, 132, 47, .06); }
.second-copy p { margin: 0 0 8px; font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.second-copy small { color: var(--muted); font-size: 14px; }

/* Why now: the ₦10M challenge */
.why { background: var(--ink); color: #e9e3d6; }
.why-grid { display: grid; gap: 40px; align-items: center; }
.why .big { font-family: var(--serif); font-size: clamp(44px, 8vw, 76px); line-height: 1; letter-spacing: -0.02em; margin: 0 0 20px; color: #fff; }
.why .big em { color: #e8c77f; font-style: normal; }
.why-story p { margin: 0 0 16px; color: #cfc7b8; }
.why-story strong, .why-story em { color: #fff; }
.why .sign { font-family: var(--serif); font-style: italic; font-size: 24px; color: #e8c77f; margin-top: 8px; }

.goal { background: #1f1c18; border: 1px solid #3a342b; border-radius: 20px; padding: 28px 24px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.goal p { margin: 0; }
.goal-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9d9484; }
.goal-earned { font-family: var(--serif); font-weight: 800; font-size: clamp(40px, 7vw, 56px); line-height: 1.05; color: #fff; margin-top: 8px !important; font-variant-numeric: lining-nums tabular-nums; }
.meter-thumb span { font-variant-numeric: tabular-nums; }
.goal-of { color: #9d9484; font-size: 15px; margin-top: 2px !important; }

.meter { margin: 44px 0 8px; }
.meter-track { position: relative; height: 14px; border-radius: 999px; background: #34302a; }
/* Bar animates with clip-path (fill) and transform (thumb): no layout work per frame. 1.4s is fine here: it's explanatory and seen once. */
.meter-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #9b7226, #e8c77f); transition: clip-path 1400ms var(--ease-out); }
.meter-tick { position: absolute; top: 3px; bottom: 3px; width: 1px; background: rgba(255,255,255,.14); }
.meter-rail { position: absolute; inset: 0; pointer-events: none; transition: transform 1400ms var(--ease-out); }
.meter-thumb { position: absolute; top: 50%; left: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; border: 4px solid #e8c77f; box-shadow: 0 0 0 6px rgba(232, 199, 127, .14), 0 2px 10px rgba(0,0,0,.4); }
.meter-thumb span { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: #e8c77f; color: var(--ink); font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.meter-thumb span::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: #e8c77f; }
.meter-scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #7f776a; font-variant-numeric: tabular-nums; }

.goal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.goal-stats div { background: #26221d; border-radius: 12px; padding: 14px 16px; }
.goal-stats b { display: block; font-family: var(--serif); font-size: 22px; color: #fff; font-variant-numeric: lining-nums; }
.goal-stats span { font-size: 13px; color: #9d9484; }
.goal-copy p { font-size: 15px; color: #cfc7b8; }
.goal-copy strong { color: #fff; }
.goal .btn { background: #e8c77f; color: var(--ink); margin-top: 20px; }
@media (hover: hover) and (pointer: fine) { .goal .btn:hover { background: #f1d596; } }
.goal-updated { margin-top: 14px !important; font-size: 13px; color: #7f776a; text-align: center; }
.goal-updated a { color: #cfc7b8; }
@media (prefers-reduced-motion: reduce) { .meter-fill, .meter-rail { transition: none; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; transition: color 150ms ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--gold-ink); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--gold-ink); } }
.faq details p { margin: 0 0 20px; color: var(--muted); }
.faq details[open] p { animation: rise-sm 220ms var(--ease-out); }
@keyframes rise-sm { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .faq details[open] p { animation-name: fade-in; } }

/* Authors */
.authors { display: grid; gap: 16px; }
.author { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.author h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; }
.author p { margin: 0; color: var(--muted); font-size: 16px; }

/* Final CTA */
.final { background: var(--ink); color: #f3eee3; text-align: center; }
.final .section-title { color: #fff; max-width: 760px; margin-left: auto; margin-right: auto; }
.final .section-title em { font-style: italic; color: #e8c77f; }
.final .lede { color: #b9b1a3; margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; }
.final .btn { background: #f3eee3; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .final .btn:hover { background: #fff; } .final .btn.secondary:hover { background: rgba(255,255,255,.06); } }
.final .btn.secondary { background: transparent; color: #fff; border-color: #6a6358; }
.final .micro { color: #8f877a; }

footer { padding: 32px 0 110px; font-size: 14px; color: var(--muted); }
footer .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Sticky mobile buy bar */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(calc(100% + 16px)); transition: transform 200ms var(--ease-out); box-shadow: 0 -10px 30px -20px rgba(0,0,0,.3); }
/* Enter a little slower than exit: it arrives to invite, and gets out of the way fast */
.buybar.show { transform: translateY(0); transition-duration: 320ms; }
.buybar .t { font-family: var(--serif); font-weight: 700; line-height: 1.2; }
.buybar .t small { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--muted); }
.buybar .btn { width: auto; margin: 0; padding: 12px 20px; }
@media (prefers-reduced-motion: reduce) { .buybar { transition: none; } }

/* Larger screens */
@media (min-width: 760px) {
  section { padding: 104px 0; }
  .hero { padding: 56px 0 88px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 56px; }
  .hero-cover { max-width: 380px; }
  .pains { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .quote.story { grid-column: 1 / -1; }
  .comments { grid-template-columns: repeat(3, 1fr); }
  .ig.wide { grid-column: span 2; grid-row: span 2; justify-content: center; padding: 32px; }
  .ig.wide blockquote { font-size: 28px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .goal { padding: 36px 36px 28px; }
  .omoni { grid-template-columns: 5fr 7fr; gap: 48px; padding: 20px 48px 20px 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 76px 24px 24px; }
  .buy-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .authors { grid-template-columns: repeat(2, 1fr); }
  .receipts { grid-template-columns: repeat(4, 1fr); }
  .buybar { display: none; }
  footer { padding-bottom: 32px; }
}
@media (max-width: 759px) {
  section { padding: 56px 0; }

  /* Hero: fit the headline and the buy button on the first screen */
  .hero { padding: 16px 0 44px; }
  .hero-grid { gap: 20px; }
  .hero-cover { max-width: 176px; order: -1; }
  .book-hint { margin-top: 14px; font-size: 12px; }
  .hero h1 { margin-bottom: 14px; }
  .hero .lede { font-size: 17px; margin-bottom: 22px; }
  .lede { font-size: 17px; }
  .trust { margin-top: 32px; flex-direction: column; gap: 6px; }
  /* Ambient motion costs battery on phones: keep the gold glow, drop the drift */
  .aurora::after { animation: none; }

  /* Long card lists become swipeable rows so the page isn't 20 screens tall */
  .comments, .quotes, .features {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none;
    background: none; border: 0; border-radius: 0;
  }
  .comments::-webkit-scrollbar, .quotes::-webkit-scrollbar, .features::-webkit-scrollbar { display: none; }
  .comments > *, .quotes > *, .features > * { flex: 0 0 84%; scroll-snap-align: start; }
  .feature { border: 1px solid var(--line); border-radius: 14px; }
  .ig.wide blockquote { font-size: 20px; }
  .quote.story .story-text { font-size: 19px; }
  /* Cards in a swipe row fade in with their row, not one by one off-screen */
  .comments > .reveal, .quotes > .reveal { opacity: 1; transform: none; }
  .swipe-hint { display: block; }
  .omoni { margin-top: 28px; }
  .board-head, .row { grid-template-columns: 48px 1fr auto 28px; gap: 10px; padding: 12px 14px; }
  .board-head .what-h { visibility: hidden; }
  .row .what { font-size: 14px; }
  .mark { width: 24px; height: 24px; font-size: 13px; }
  .stat b { font-size: 24px; }
  .cta-row .btn { width: 100%; }
  .cta-row .link { width: 100%; text-align: center; }
}
