/* ============================================================
   The AI & Automation Mastery Series — shared design system.
   Warm editorial publisher: paper, ink, one committed terracotta.
   Both index.html and quiz/index.html load this file.
   Colors/type documented in DESIGN.md. Book copy lives in data/books.js.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper: #faf6f0;
  --ink: #211c17;
  --ink-soft: #57544e;
  --terracotta: #c4572e;
  --terracotta-deep: #8c3a1b;
  --terracotta-ghost: #f3e2d8;
  --amber: #e8a33d;
  --amber-ghost: #f7e8cd;
  --card: #fffdf9;
  --line: #e4dacb;
  /* Tier ramp — progression/level semantics ONLY, never on action buttons.
     Warms and deepens as capability rises, finishing in gold at the summit.
     Values chosen to stay legible as large/bold text on --paper. */
  --clay: #9c4a2a;
  --ember: #b2481f;
  --rust: #9a3d18;
  --oxblood: #7c2d17;
  --gilt: #8a5e12;
  --gilt-glow: #e8a33d;
  --font-display: "Literata", Georgia, serif;
  --font-ui: "Archivo", system-ui, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "SFMono-Regular", monospace;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(33, 28, 23, 0.09), 0 10px 30px rgba(33, 28, 23, 0.06);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* z-scale */
  --z-sticky: 10;
  --z-overlay: 20;
  --z-toast: 30;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw + 0.8rem, 3.9rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw + 0.7rem, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
  max-width: 68ch;
  text-wrap: pretty;
}

a {
  color: var(--terracotta-deep);
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.5em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out),
    border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--terracotta);
  color: #fff7ef;
}

.btn-primary:hover {
  background: var(--terracotta-deep);
}

.btn-ghost {
  border-color: currentColor;
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(33, 28, 23, 0.06);
}

/* Ghost button on dark/terracotta grounds */
.on-dark .btn-ghost {
  color: #fff7ef;
}

.on-dark .btn-ghost:hover {
  background: rgba(255, 247, 239, 0.12);
}

/* ---------- Header ---------- */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.wordmark em {
  font-style: italic;
  color: var(--terracotta-deep);
}

.header-cta {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--terracotta-deep);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--terracotta-deep);
  color: #fff7ef;
  padding: clamp(3rem, 8vw, 5.5rem) 0 0;
  overflow: hidden;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lede {
  font-size: clamp(1.05rem, 1.4vw + 0.8rem, 1.25rem);
  line-height: 1.6;
  max-width: 52ch;
  color: #f6e3d4;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 0;
}

.hero .btn-primary {
  background: var(--paper);
  color: var(--terracotta-deep);
}

.hero .btn-primary:hover {
  background: #fff;
}

/* CSS bookshelf: ten spines standing on a shelf line */
.shelf {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: 0 clamp(1.1rem, 4vw, 2rem);
  justify-content: center;
  border-bottom: 14px solid #6e2c12;
}

.spine {
  width: clamp(26px, 3.4vw, 40px);
  height: clamp(110px, 16vw, 180px);
  border-radius: 3px 3px 0 0;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 10px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: inset -3px 0 4px rgba(33, 28, 23, 0.18);
}

.spine:nth-child(even) {
  height: clamp(118px, 17vw, 192px);
  background: var(--amber);
}

.spine:nth-child(3n) {
  background: #e8d9c3;
}

.spine .spine-num {
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
}

.spine .spine-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* ---------- Ladder strip ---------- */
.ladder {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}

.ladder .container {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.ladder .container::-webkit-scrollbar {
  display: none;
}

.ladder-step {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.ladder-step strong {
  color: var(--terracotta-deep);
}

.ladder-arrow {
  color: var(--line);
  flex: 0 0 auto;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.section-head {
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}

.section-head p {
  color: var(--ink-soft);
}

/* ---------- Book rail / cards ---------- */
.rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.2rem;
  -webkit-overflow-scrolling: touch;
}

.book-card {
  scroll-snap-align: start;
  flex: 0 0 min(78vw, 300px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.book-cover {
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.book-cover--img {
  padding: 0;
}
.book-cover--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-band {
  background: var(--terracotta);
  color: #fff7ef;
  padding: 0.7rem 0.8rem 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tier tint deepens as the ladder climbs (set inline via --tier-l) */
.book-cover .cover-band {
  background: color-mix(in oklab, var(--terracotta) calc(100% - var(--tier, 0) * 9%), #3f1c0c calc(var(--tier, 0) * 9%));
}

.cover-num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--terracotta-deep);
  padding: 0.35em 0.4em 0;
}

.cover-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  padding: 0.4rem 0.85rem;
  color: var(--ink);
}

.cover-foot {
  margin-top: auto;
  padding: 0 0.85rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.level-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--amber-ghost);
  border: 1px solid #e6cfa4;
  border-radius: 99px;
  padding: 0.18em 0.7em;
  width: fit-content;
}

.deal-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  color: #5c3a06;
  background: var(--amber);
  border-radius: 99px;
  padding: 0.18em 0.7em;
  width: fit-content;
}

.book-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.book-card .book-sub {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  flex-grow: 1;
}

/* ---------- Vault tier/bundle meta line (reuses .crung / .book-card) ---------- */
.vault-tier-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0;
}

.crung-bump {
  grid-column: 2;
  margin: 0.5rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.crung-bump a {
  color: var(--terracotta-deep);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-ui);
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
}

.price-strike {
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.book-card .btn {
  width: 100%;
}

/* ---------- Bundle panel ---------- */
.bundle {
  background: var(--ink);
  color: var(--paper);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.8rem, 5vw, 3rem);
  display: grid;
  gap: 1.4rem;
}

.bundle h2 {
  margin-bottom: 0.2em;
}

.bundle p {
  color: #cfc8bd;
}

.bundle .price {
  font-size: 2rem;
  color: var(--amber);
}

.bundle .price-strike {
  color: #9b948a;
}

/* ---------- Quiz CTA band ---------- */
.quiz-band {
  background: var(--terracotta-ghost);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quiz-band .container {
  padding-top: clamp(2.4rem, 6vw, 3.6rem);
  padding-bottom: clamp(2.4rem, 6vw, 3.6rem);
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.quiz-band p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.2rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* ============================================================
   Quiz page
   ============================================================ */
.quiz-main {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.5rem) clamp(1.1rem, 4vw, 2rem) 4rem;
}

.progress-wrap {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: grid;
  gap: 0.5rem;
  margin-bottom: clamp(1.6rem, 5vw, 2.5rem);
}

.progress {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}

#screen {
  position: relative;
}

.q-screen {
  animation: slide-in 240ms var(--ease-out);
}

.q-screen.leaving {
  animation: slide-out 200ms var(--ease-out) forwards;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide-out {
  to {
    opacity: 0;
    transform: translateX(-28px);
  }
}

.q-screen.going-back {
  animation-name: slide-in-back;
}

@keyframes slide-in-back {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.q-title {
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  margin-bottom: 1.2rem;
}

.answers {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.answer-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 1rem;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 140ms var(--ease-out), background-color 140ms var(--ease-out);
}

.answer-btn:hover {
  border-color: var(--terracotta);
}

.answer-btn.selected {
  border-color: var(--terracotta);
  background: var(--terracotta-ghost);
}

.answer-letter {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--terracotta-deep);
  background: var(--terracotta-ghost);
}

.answer-btn.selected .answer-letter {
  background: var(--terracotta);
  color: #fff7ef;
}

.back-btn {
  margin-top: 1.6rem;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.6rem 0.6rem 0.6rem 0;
}

.back-btn:hover {
  color: var(--ink);
}

/* ---------- Result screen ---------- */
.result-book {
  display: grid;
  gap: 1.3rem;
  margin: 1.4rem 0 2rem;
}

@media (min-width: 560px) {
  .result-book {
    grid-template-columns: 180px 1fr;
    align-items: start;
  }
}

.result-eyeline {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terracotta-deep);
}

.result-copy h2 {
  margin-bottom: 0.3em;
}

.result-copy .book-sub {
  color: var(--ink-soft);
}

.result-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.split-note {
  background: var(--amber-ghost);
  border: 1px solid #e6cfa4;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  margin: 0 0 1.6rem;
}

/* mini rail on results */
.mini-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0 1rem;
}

.mini-book {
  flex: 0 0 54px;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.mini-book.recommended {
  background: var(--terracotta);
  border-color: var(--terracotta-deep);
  color: #fff7ef;
  box-shadow: var(--shadow);
}

.mini-book.secondary-pick {
  border-color: var(--terracotta);
  color: var(--terracotta-deep);
}

/* ---------- Email capture ---------- */
.email-capture {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 2.2rem;
}

.email-capture h3 {
  margin-bottom: 0.3em;
}

.email-capture p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.email-form input[type="email"] {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

.email-form input[type="email"]:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
  border-color: var(--terracotta);
}

/* ---------- Motion: entrance choreography (sales hero) ---------- */
.hero h1,
.hero .lede,
.hero .hero-ctas {
  animation: rise-in 600ms var(--ease-out) backwards;
}

.hero .lede {
  animation-delay: 90ms;
}

.hero .hero-ctas {
  animation-delay: 180ms;
}

.shelf .spine {
  animation: rise-in 500ms var(--ease-out) backwards;
  animation-delay: calc(240ms + var(--i, 0) * 40ms);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}

/* ---------- Desktop upgrades ---------- */
@media (min-width: 900px) {
  .rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    overflow: visible;
  }

  .book-card {
    flex: initial;
  }

  .bundle {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .hero .container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2rem;
  }

  .hero .shelf {
    border-bottom-width: 12px;
    padding: 0;
  }
}

/* ============================================================
   Quiz result — the immersive reveal
   ============================================================ */

/* Tier colour resolves to --tint on any element carrying data-token.
   Used for level/progress semantics only — never on action buttons. */
[data-token="clay"] { --tint: var(--clay); }
[data-token="ember"] { --tint: var(--ember); }
[data-token="rust"] { --tint: var(--rust); }
[data-token="oxblood"] { --tint: var(--oxblood); }
[data-token="gilt"] { --tint: var(--gilt); }

.result-screen > section,
.result-screen > .email-capture,
.result-screen > .climb-plan,
.result-screen > .share-card {
  animation: rise-in 500ms var(--ease-out) backwards;
}
.result-screen > *:nth-child(2) { animation-delay: 70ms; }
.result-screen > *:nth-child(3) { animation-delay: 140ms; }
.result-screen > *:nth-child(4) { animation-delay: 210ms; }
.result-screen > *:nth-child(n + 5) { animation-delay: 280ms; }

/* 1 — Identity reveal */
.identity {
  text-align: center;
  padding: 0.5rem 0 1.6rem;
}
.identity-eyeline {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}
.identity h1 {
  font-size: clamp(2rem, 6vw + 0.5rem, 3.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}
.identity h1 span {
  color: var(--tint);
}
.identity-can {
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 auto;
  font-size: 1.05rem;
}
.identity-readout {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--tint);
  margin: 0.9rem 0 0;
}

/* 2 — The gap + the climb */
.gap {
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.gap > h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
}
.gap > p {
  color: var(--ink-soft);
  margin-top: -0.2rem;
}

.climb {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0 0 0 0.4rem;
  position: relative;
}
.climb::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
}
.climb-rung {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.7rem 0;
}
.climb-dot {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  position: relative;
  z-index: 1;
}
.climb-body {
  display: grid;
  gap: 0.15rem;
}
.climb-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.02rem;
}
.climb-can {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.climb-lock {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  opacity: 0.9;
}
.climb-here {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff7ef;
  background: var(--tint);
  border-radius: 99px;
  padding: 0.1em 0.6em;
  vertical-align: middle;
}
.climb-cleared .climb-dot {
  background: var(--tint);
  border-color: var(--tint);
  opacity: 0.5;
}
.climb-cleared {
  opacity: 0.6;
}
.climb-current .climb-dot {
  background: var(--tint);
  border-color: var(--tint);
  transform: scale(1.25);
}
.climb-current .climb-name {
  color: var(--tint);
}
.climb-locked {
  opacity: 0.55;
}
.climb-rung[data-token="gilt"] .climb-dot {
  box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.22);
}
.climb-rung[data-token="gilt"].climb-locked {
  opacity: 0.7;
}

/* 3 — Start book */
.start-book {
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.why-fits,
.learn-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.why-fits li,
.learn-list li {
  padding-left: 1.3rem;
  position: relative;
  line-height: 1.5;
}
.why-fits li::before,
.learn-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tint, var(--terracotta));
}
.why-fits li:first-child {
  font-weight: 600;
}

/* 4 — Bundle offer (gold = the summit + the whole climb) */
.bundle-offer {
  margin-top: 2rem;
  border: 2px solid var(--gilt-glow);
  background: var(--amber-ghost);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.3rem, 4vw, 1.8rem);
}
.bundle-offer h3 {
  margin: 0 0 0.4em;
  font-size: 1.3rem;
}
.bundle-offer > p {
  color: #5c451e;
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
}
.bundle-offer-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bundle-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-ui);
}
.bundle-price .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gilt);
}
.bundle-price .price-strike {
  color: #9b7a3c;
  text-decoration: line-through;
}
.bundle-note {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #5c451e;
}
.btn-bundle {
  background: var(--gilt-glow);
  color: #3f2c07;
}
.btn-bundle:hover {
  background: #dd9526;
}

/* 6 — The climb plan (revealed on email) */
.climb-plan {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.climb-plan-lede {
  color: var(--ink-soft);
  margin-top: -0.2rem;
}
.path {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.path-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.9rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
}
.path-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 700;
  color: #fff7ef;
  background: var(--tint);
}
.path-title {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
}
.path-tag {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff7ef;
  background: var(--terracotta);
  border-radius: 99px;
  padding: 0.1em 0.55em;
  vertical-align: middle;
}
.path-outcome {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 0.1rem;
}
.case-study {
  margin: 1.4rem 0 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--terracotta-ghost);
}
.case-study p {
  margin: 0;
  font-size: 1.02rem;
}
.case-study-label {
  font-family: var(--font-mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft) !important;
  margin-bottom: 0.5rem !important;
}

/* 7 — Shareable result */
.share-card {
  margin-top: 2rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.share-line {
  font-size: 1.05rem;
  margin: 0 0 0.9rem;
}
.share-done {
  display: inline-block;
  margin-left: 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tint, var(--terracotta-deep));
}

@media (min-width: 560px) {
  .start-book .result-book {
    grid-template-columns: 160px 1fr;
  }
}

/* ============================================================
   Sales page — trust, climb, calculator, proof, reader
   ============================================================ */

/* Trust strip */
.trust {
  background: var(--terracotta-ghost);
  border-bottom: 1px solid var(--line);
}
.trust .container {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.trust-line {
  margin: 0;
  max-width: 68ch;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

/* The Climb */
.sales-climb {
  display: grid;
  gap: 0.6rem;
}
.climb-tier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  margin-top: 1.4rem;
}
.climb-tier-head:first-child {
  margin-top: 0;
}
.tier-badge {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff7ef;
  background: var(--tint);
  border-radius: 99px;
  padding: 0.22em 0.8em;
}
.tier-can {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.crung {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.crung-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
  display: block;
}
.crung-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--tint);
  text-align: center;
}
.crung-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.crung-head h3 {
  margin: 0;
  font-size: 1.12rem;
}
.crung-outcome {
  margin: 0.35rem 0 0.7rem;
  color: var(--ink);
}
.crung-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}
.crung-buy .price {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
}
.crung-buy .price-strike {
  font-family: var(--font-ui);
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 0.9rem;
}
.crung-link {
  display: block;
}
.crung-head h3 a {
  color: inherit;
  text-decoration: none;
}
.crung-head h3 a:hover {
  color: var(--terracotta);
}
.crung-more {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.crung-more:hover {
  color: var(--terracotta);
  text-decoration: underline;
}
.climb-summit {
  margin-top: 1.6rem;
  border: 2px solid var(--gilt-glow);
  background: var(--amber-ghost);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.4rem, 4vw, 2rem);
}
.climb-summit h3 {
  margin: 0 0 0.4em;
  font-size: 1.4rem;
}
.climb-summit p {
  color: #5c451e;
  margin: 0 0 1.1rem;
}
.climb-summit .price {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--gilt);
}
.climb-summit .price-strike {
  font-family: var(--font-ui);
  color: #9b7a3c;
  text-decoration: line-through;
}

/* ROI calculator */
.calc-section {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.calc {
  display: grid;
  gap: 1.6rem;
}
.calc-grid {
  display: grid;
  gap: 1.2rem;
}
.calc-field {
  display: grid;
  gap: 0.5rem;
}
.calc-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.calc-label output {
  color: var(--terracotta-deep);
  font-variant-numeric: tabular-nums;
}
.calc input[type="range"] {
  width: 100%;
  accent-color: var(--terracotta);
}
.calc-out {
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.calc-big {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}
.calc-big .calc-cur {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--terracotta);
}
.calc-big #c-year {
  font-size: clamp(2.8rem, 9vw, 4.4rem);
  color: var(--terracotta);
  font-variant-numeric: tabular-nums;
}
.calc-big .calc-unit {
  font-size: 1.1rem;
  color: var(--ink-soft);
  font-family: var(--font-ui);
}
.calc-hours {
  color: var(--ink-soft);
  margin: 0.2rem 0 0.6rem;
}
.calc-map {
  margin: 0 auto 1.2rem;
  max-width: 46ch;
}
@media (min-width: 720px) {
  .calc {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.4rem;
  }
  .calc-out {
    border-top: none;
    border-left: 1px solid var(--line);
    padding: 0 0 0 2.4rem;
  }
}

/* Proof grid — homepage curated picks + reused on book pages */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.proof-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.proof-tier {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--tint);
  margin: 0;
}
.proof-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}
.proof-who {
  margin: 0.3rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.proof-result {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Chapter reader */
.reader {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 5vw, 2.4rem);
  max-width: 720px;
}
.reader-eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 0.3rem;
}
.reader-title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  margin: 0 0 1rem;
}
.reader-body {
  position: relative;
  max-height: 22rem;
  overflow: hidden;
}
.reader-body.open {
  max-height: none;
}
.reader-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgba(255, 253, 249, 0), var(--card));
  pointer-events: none;
}
.reader-body.open::after {
  display: none;
}
.reader-body h4 {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  margin: 1.2rem 0 0.3rem;
  color: var(--terracotta-deep);
}
.reader-body p {
  margin: 0 0 0.8rem;
  max-width: none;
}
.reader-body ul {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
}
.reader-body li {
  margin-bottom: 0.35rem;
}
.reader-expand {
  margin: 0.6rem 0 0;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--terracotta-deep);
  cursor: pointer;
  padding: 0.4rem 0;
}
.reader-cta {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.reader-cta > p {
  margin: 0 0 1rem;
  font-weight: 600;
}
.reader-cta-row {
  margin-bottom: 1rem;
}

/* Quiz — climbing progress + question presence */
.qclimb {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.6rem;
}
.qseg {
  flex: 1;
  height: 2px;
  background: var(--line);
}
.qnode {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}
.qnode.done {
  background: var(--tint);
  border-color: var(--tint);
}
.qnode.now {
  border-color: var(--tint);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--tint) 25%, transparent);
}
.answers li {
  animation: rise-in 360ms var(--ease-out) backwards;
}
.answers li:nth-child(2) { animation-delay: 45ms; }
.answers li:nth-child(3) { animation-delay: 90ms; }
.answers li:nth-child(4) { animation-delay: 135ms; }
.answers li:nth-child(5) { animation-delay: 180ms; }

/* ---------- Cookie consent banner ---------- */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-toast);
  background: var(--ink);
  color: #fff7ef;
  box-shadow: 0 -6px 24px rgba(33, 28, 23, 0.18);
  animation: consent-rise 320ms var(--ease-out) backwards;
}
@media (prefers-reduced-motion: reduce) {
  .consent-banner {
    animation: none;
  }
}
@keyframes consent-rise {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.consent-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.1rem clamp(1.1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.consent-copy {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #f2e9de;
}
.consent-actions {
  display: flex;
  gap: 0.6rem;
  flex: 0 0 auto;
}
.consent-actions .btn {
  min-height: 42px;
  padding: 0.55em 1.2em;
}
.consent-actions .btn-ghost {
  color: #fff7ef;
  border-color: rgba(255, 247, 239, 0.5);
}
.consent-actions .btn-ghost:hover {
  background: rgba(255, 247, 239, 0.1);
}
@media (max-width: 560px) {
  .consent-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .consent-actions {
    justify-content: flex-end;
  }
}

/* ---------- Book product pages (books/book-N/) ---------- */
.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}
.breadcrumb {
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.breadcrumb a {
  color: var(--ink-soft);
}
.breadcrumb span[aria-hidden] {
  margin: 0 0.4em;
}
.breadcrumb [aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.book-hero {
  padding: clamp(2.2rem, 6vw, 3.5rem) 0;
  background: color-mix(in oklab, var(--tint, var(--terracotta)) 10%, var(--paper));
  border-bottom: 1px solid var(--line);
}
.book-hero-grid {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.book-hero-cover {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.book-hero h1 {
  margin-top: 0.3rem;
}
.book-hero-tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 1.4rem;
}
.book-hero-alt {
  margin-top: 0.9rem;
  font-size: 0.92rem;
}
@media (max-width: 640px) {
  .book-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .book-hero-cover {
    max-width: 200px;
    margin: 0 auto;
  }
  .book-hero .crung-buy {
    justify-content: center;
  }
}

.book-pitch p,
.book-forwho p {
  font-size: 1.05rem;
  line-height: 1.7;
}
.book-pitch p + p {
  margin-top: 1.1rem;
}

.chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.chapter-list li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.chapter-list .ch-num {
  font-family: var(--font-mono);
  color: var(--terracotta-deep);
  flex: 0 0 auto;
}

.book-faq h2 {
  margin-bottom: 1.2rem;
}
.faq-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.faq-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}
.faq-item p {
  color: var(--ink-soft);
  margin: 0;
}

.next-rung {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.next-rung:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.next-rung img {
  width: 64px;
  border-radius: 6px;
  flex: 0 0 auto;
}
.next-rung .next-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--terracotta-deep);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.next-rung strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.next-rung span span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.next-rung--summit {
  background: var(--amber-ghost);
  border-color: var(--gilt-glow);
}
.prev-rung {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Article / guide pages ---------- */
.article-hero {
  padding: clamp(2rem, 6vw, 3.2rem) 0 clamp(1.2rem, 4vw, 2rem);
}
.article-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.article-dek {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.7;
}
.article-body p {
  margin-bottom: 1.1rem;
}
.article-body h2 {
  margin-top: 2.2rem;
}
.article-body h3 {
  margin-top: 1.6rem;
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
}
.article-body li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.article-body blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1.3rem;
  border-left: 3px solid var(--terracotta);
  background: var(--terracotta-ghost);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.article-cta {
  margin: 2.4rem 0 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.article-cta p {
  margin: 0;
  font-weight: 600;
}
