/* Sales page v2. Base type 19px (never under 18px), large buttons. Colours from site.config.json theme. */
:root {
  --ink: #2a2420; --muted: #5f554d; --accent: #9c4a1f; --accent-dark: #7e3a17; --paper: #f6efe6;
  --card: #fffaf3; --line: #e2d6c8; --strip: #b3261e; --good: #2f6b3a;
  --serif: "Literata", Georgia, serif; --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.45em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 6vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
section { padding: 64px 0; }
section[id], div[id] { scroll-margin-top: 84px; }
.eyebrow { font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.6em; }
.fine { font-size: 18px; color: var(--muted); }
.lead { font-size: 1.2rem; }

/* buttons: big, thumb-sized */
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1.15rem; line-height: 1.2; background: var(--accent); color: #fff; text-decoration: none;
  padding: 16px 26px; min-height: 54px; border-radius: 10px; border: 2px solid var(--accent); text-align: center; transition: background .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-big { font-size: 1.2rem; padding: 19px 30px; min-height: 62px; }
.btn-block { display: block; width: 100%; }
.btn-quiet { background: #fff; color: var(--accent); }
.btn-quiet:hover { background: var(--accent); color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #34566e; outline-offset: 3px; }

/* 1. offer strip */
.offer-strip { background: var(--strip); color: #fff; text-align: center; font-family: var(--sans); font-weight: 700; font-size: 18px; padding: 9px 14px; letter-spacing: 0.02em; }
.offer-strip .countdown { font-family: var(--mono); background: rgba(0,0,0,.22); padding: 2px 8px; border-radius: 4px; margin-left: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 2. sticky nav */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(246,239,230,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: var(--strip); color: #fff; font-weight: 700; border-radius: 6px; font-family: var(--serif); flex: none; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-size: 18px; color: var(--muted); }
.topbar nav { display: flex; align-items: center; gap: 20px; font-family: var(--sans); font-weight: 600; font-size: 18px; }
.nav-link { color: var(--ink); text-decoration: none; }
.nav-link:hover { color: var(--accent); }
.btn-nav { font-size: 18px; padding: 11px 18px; min-height: 48px; white-space: nowrap; }

/* 3. hero */
.hero { padding: 56px 0 26px; }

/* 4. price cards */
.prices { padding-top: 18px; }
.cards { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 22px; align-items: center; }
.side { display: grid; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card-single { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; }
.card-single img { border-radius: 2px 4px 4px 2px; box-shadow: 0 8px 18px rgba(40,25,15,.22); }
.card-single h3 { font-size: 1.1rem; margin-bottom: .2em; }
.card-free { display: block; background: var(--card); }
.card-price-small { font-family: var(--sans); font-weight: 700; font-size: 1.35rem; margin: 0 0 .6em; }
.card-note { font-size: 18px; color: var(--muted); margin: .6em 0 0; }
.card-bundle { position: relative; border: 3px solid var(--accent); padding: 34px 26px 24px; text-align: center; box-shadow: 0 18px 40px rgba(60,35,20,.14); }
.badge { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); background: var(--strip); color: #fff; font-family: var(--sans); font-weight: 700;
  font-size: 18px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 16px; border-radius: 999px; white-space: nowrap; margin: 0; }
.card-bundle h2 { font-size: 1.7rem; }
.card-price, .close-price { font-family: var(--sans); margin: .2em 0 .3em; }
.lib-old { color: var(--muted); font-size: 1.4rem; margin-right: 6px; }
.lib-price.big { font-weight: 700; font-size: 2.8rem; color: var(--accent); }
.guarantee { font-family: var(--sans); font-weight: 600; color: var(--good); margin: 12px 0 0; font-size: 18px; }
.trust { list-style: none; padding: 0; margin: 30px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1000px; font-family: var(--sans); font-weight: 600; font-size: 18px; text-align: center; }
.trust li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.trust li::before { content: "✓ "; color: var(--good); }

/* 5. numbers */
.numbers { background: var(--ink); color: #f1e6d8; padding: 46px 0; }
.big-numbers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center; }
.big-numbers strong { display: block; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: #fff; }
.big-numbers span { font-family: var(--sans); font-size: 18px; color: #d6c6b3; }

/* 6. author */
.author-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; }
.author-grid img { border-radius: 12px; }
.author blockquote { margin: 0 0 1em; font-size: 1.45rem; font-style: italic; line-height: 1.4; }
.signature { font-style: italic; color: var(--muted); }

/* 7. book pitches */
.book { border-top: 1px solid var(--line); }
.book-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.book.mirrored .book-grid { grid-template-columns: 1fr 1.3fr; }
.book.mirrored .book-cover { order: -1; }
.book-cover { max-width: 380px; justify-self: center; border-radius: 3px 6px 6px 3px; box-shadow: 0 22px 44px rgba(40,25,15,.3); }
.book-sub { font-size: 1.15rem; font-style: italic; color: var(--muted); }
.problems-intro { font-family: var(--sans); font-weight: 700; margin-bottom: .4em; }
.problems { padding: 0; list-style: none; margin: 0 0 1.2em; }
.problems li { padding: 6px 0 6px 30px; position: relative; border-bottom: 1px solid var(--line); }
.problems li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.book-facts { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 18px; }
.book-facts span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.book-price { font-family: var(--sans); font-weight: 700; font-size: 2rem; margin: .3em 0; }

/* 8. bundle close */
.bundle-close { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bundle-close img { margin: 0 auto 10px; width: 100%; max-width: 640px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-family: var(--sans); font-weight: 600; }
.ticks li::before { content: "✓ "; color: var(--good); }
.separately { display: block; font-size: 18px; color: var(--muted); }

/* 9. faq */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-family: var(--sans); font-weight: 700; font-size: 1.15rem; list-style: none; position: relative; padding-right: 34px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -3px; color: var(--accent); font-size: 1.6rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7em 0 .3em; }

/* 10. footer and legal pages */
.footer { background: var(--ink); color: #d8cabb; padding: 44px 0 120px; font-size: 18px; }
.footer a { color: #e8b690; }
.brand-foot { font-family: var(--sans); font-weight: 700; color: #fff; }
.footer .fine { color: #a89888; }
body.legal main { padding: 40px 20px 80px; }
body.legal h2 { font-size: 1.4rem; margin-top: 1.4em; }

/* 11. sticky buy bar (phones), shown by site.js once the price cards are out of view */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--accent); font-family: var(--sans); font-size: 18px;
  box-shadow: 0 -6px 18px rgba(40,25,15,.12); }
.sticky-buy strong { font-size: 1.3rem; color: var(--accent); }
@media (min-width: 861px) { .sticky-buy { display: none !important; } }

/* 12. exit save */
.exit { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); width: min(440px, calc(100vw - 28px)); padding: 34px 26px 26px; text-align: center;
  box-shadow: 0 30px 70px rgba(22,19,13,.4); }
.exit::backdrop { background: rgba(22,19,13,.62); }
.exit-close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.8rem; color: var(--muted); cursor: pointer; border-radius: 50%; }
.exit-close:focus-visible { outline-offset: -4px; }
.exit-kicker { font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: .18em; text-transform: uppercase; color: var(--strip); margin-bottom: .5em; }
.exit h2 { font-size: 2rem; }
.seal { display: block; width: 100%; margin: 18px 0 8px; min-height: 76px; border: 3px dashed var(--strip); border-radius: 12px; background: repeating-linear-gradient(135deg, #fff3ea 0 12px, #ffe3d3 12px 24px);
  font-family: var(--sans); font-weight: 700; font-size: 1.15rem; color: var(--strip); cursor: pointer; }
.seal.open { background: #fff; border-style: solid; }
.seal-code { font-family: var(--mono); font-size: 1.8rem; letter-spacing: .12em; color: var(--ink); }
.exit-copied { font-family: var(--sans); font-weight: 600; color: var(--good); margin: 0 0 12px; }

@media (max-width: 860px) {
  body { font-size: 18px; }
  section { padding: 46px 0; }
  .topbar nav .nav-link { display: none; }
  .brand small { display: none; }
  .btn-nav { padding: 10px 14px; }
  .cards { grid-template-columns: 1fr; }
  .card-bundle { order: -1; margin-top: 14px; }
  .trust, .big-numbers { grid-template-columns: repeat(2, 1fr); }
  .author-grid, .book-grid, .book.mirrored .book-grid { grid-template-columns: 1fr; gap: 26px; }
  .book.mirrored .book-cover, .book-cover { order: -1; max-width: 240px; }
  .author-grid img { max-width: 320px; }
  .btn-big { width: 100%; }
}

/* Printable sheets after the books: real pages from the sheets PDF */
.sheets-section { padding: 72px 0 80px; border-top: 1px solid rgba(0,0,0,.08); }
.sheets-section .wrap { max-width: 1700px; }
.sheet-row { display: flex; gap: 28px; justify-content: center; margin-top: 28px; }
.sheet-row img { width: 24%; max-width: 400px; height: auto; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.sheet-row img:nth-child(odd) { transform: rotate(-1.5deg); }
.sheet-row img:nth-child(even) { transform: rotate(1.5deg); }
@media (max-width: 760px) {
  .sheet-row { flex-wrap: wrap; gap: 16px; }
  .sheet-row img { width: 44%; }
}
