/* ==========================================================================
   The GenZ Personal Finance Handbook: sales page + thank-you page styles
   Brand taken from the book itself: deep navy, emerald, a touch of gold,
   Poppins headings, Lato text.

   HOW THIS FILE IS ORGANISED
   1. Design tokens (colours, fonts, spacing)   <- change brand colours here
   2. Base and layout helpers
   3. Buttons and prices
   4. Header and navigation
   5. Hero and book mockup
   6. Page sections (in the same order as index.html)
   7. Footer, sticky bar, toast, sample-page viewer
   8. Thank-you page
   9. Motion and responsive rules
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  --navy-950: #061224;
  --navy-900: #0A1F3C;   /* primary brand colour (matches the book cover) */
  --navy-800: #0F2B52;
  --navy-700: #17386A;
  --navy-300: #9FB3CF;   /* muted text on navy */
  --navy-200: #C5D3E6;   /* body text on navy */

  --emerald-500: #10B981; /* accent: buttons, highlights */
  --emerald-400: #34D399;
  --emerald-700: #047857; /* accent text on white (passes contrast) */
  --emerald-50:  #E8F8F1;

  --gold: #F2A91E;        /* used sparingly, like the underline on the cover */

  --ink: #0F1B2D;
  --muted: #475670;
  --line: #DCE3EC;
  --mist: #F3F6FA;
  --white: #FFFFFF;

  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --header-h: 68px;
  --focus: var(--emerald-700);
}

/* On dark backgrounds the keyboard focus ring turns gold so it stays visible */
.site-header, .hero, .section--navy, .site-footer, .sticky-cta, .thanks-hero { --focus: var(--gold); }

/* 2. BASE AND LAYOUT ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; color: var(--navy-900); letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--gold); color: var(--navy-950);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--mist { background: var(--mist); }

.section-head { max-width: 50rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2, .learn-intro h2 {
  font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.75rem);
  line-height: 1.15;
}
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; margin-top: 1rem; }
.section--navy .lead { color: var(--navy-200); }

.section-cta { margin: 3rem 0 0; }

/* 3. BUTTONS AND PRICES -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 1.7rem;
  background: var(--emerald-500); color: var(--navy-950);
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; letter-spacing: .02em;
  text-decoration: none; border: 0; border-radius: 12px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, .28);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { background: var(--emerald-400); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16, 185, 129, .4); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.1rem; }
.btn-sm { padding: .6rem 1.15rem; font-size: .88rem; box-shadow: none; }

.price { display: flex; flex-direction: column; line-height: 1.2; margin: 0; }
.price-amount { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: inherit; }
.price-note { font-size: .9rem; color: var(--navy-300); }

/* 4. HEADER AND NAVIGATION ----------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, .1); box-shadow: 0 8px 24px rgba(6, 18, 36, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--white); }
.brand-text { font-family: var(--font-head); font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.5rem; }
.site-nav ul a {
  position: relative; color: var(--navy-200); text-decoration: none; font-size: .95rem; font-weight: 700; padding: .35rem 0;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--emerald-500); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav ul a:hover { color: var(--white); }
.site-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: transparent; border: 0; color: var(--white);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer; place-items: center;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* 5. HERO AND BOOK MOCKUP ------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6.5rem); }

/* Decorative circles echo the shapes on the book cover */
.hero-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-circle--big { width: 780px; height: 780px; background: var(--navy-800); top: -320px; right: -260px; }
.hero-circle--arc { width: 150px; height: 150px; background: var(--gold); bottom: -92px; left: 6%; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hero-edition { color: var(--emerald-400); font-weight: 700; font-size: 1rem; margin-bottom: 1.1rem; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 1.2rem + 3.7vw, 4rem); line-height: 1.08; letter-spacing: -0.03em; }
.gold-bar { display: block; width: 72px; height: 5px; background: var(--gold); margin: 1.5rem 0; border-radius: 2px; }
.hero-lead { font-size: 1.2rem; color: var(--navy-200); max-width: 36rem; }

.hero-points { margin: 1.6rem 0 2rem; display: grid; gap: .6rem; }
.hero-points li, .final-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--white); }
.hero-points .icon, .final-list .icon { color: var(--emerald-400); margin-top: .22rem; stroke-width: 2.4; }

.hero-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.hero-buy .price-amount { color: var(--white); }
.hero-receive { margin: 1.4rem 0 0; font-size: .92rem; color: var(--navy-300); max-width: 34rem; }

.hero-visual { min-height: 540px; }

/* Light "stage" behind the navy book so the cover stands out from the navy page.
   The emerald dot and the disc echo the circles on the cover itself. */
.stage { position: relative; display: grid; place-items: center; }
.stage::before {
  content: ""; position: absolute; z-index: 0; top: 50%; left: 50%;
  width: min(430px, 100%); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 32% 28%, #F6F9FD 0%, #DCE6F3 100%);
}
.stage::after {
  content: ""; position: absolute; z-index: 0; top: 50%; left: 50%;
  width: 92px; aspect-ratio: 1; border-radius: 50%; background: var(--emerald-500);
  transform: translate(-236px, -170px);
}

/* eBook mockup built from the real cover image */
.book { position: relative; z-index: 1; width: min(320px, 68vw); transform: perspective(1600px) rotateY(-16deg) rotateX(3deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.book img { width: 100%; border-radius: 3px 8px 8px 3px; box-shadow: 0 30px 50px -12px rgba(0, 0, 0, .55), 0 12px 20px -8px rgba(0, 0, 0, .4); }
.book::before { /* spine highlight */
  content: ""; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 7%;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(255, 255, 255, .16) 45%, rgba(0, 0, 0, 0));
  pointer-events: none;
}
.book::after { /* page edge */
  content: ""; position: absolute; right: -7px; top: 5px; bottom: 5px; width: 8px; z-index: 0;
  background: repeating-linear-gradient(180deg, #E9EEF5 0 2px, #C9D3E0 2px 3px);
  border-radius: 0 3px 3px 0;
}
.hero-visual:hover .book, .final-visual:hover .book { transform: perspective(1600px) rotateY(-6deg) rotateX(1deg) translateY(-6px); }

/* Quick facts */
.facts { background: var(--mist); border-bottom: 1px solid var(--line); }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-list li { padding: 1.4rem 1.5rem; display: grid; gap: .1rem; border-left: 1px solid var(--line); }
.facts-list li:first-child { border-left: 0; padding-left: 0; }
.facts-list strong { font-family: var(--font-head); font-weight: 600; color: var(--navy-900); font-size: 1.1rem; }
.facts-list span { color: var(--muted); font-size: .92rem; line-height: 1.4; }

/* 6. PAGE SECTIONS ------------------------------------------------------- */

/* B. Problem */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2.5rem; }
.problems li { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.problems .icon { color: var(--emerald-700); margin-bottom: .9rem; }
.problems h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: .5rem; }
.problems p { color: var(--muted); margin: 0; }

.pullquote { margin: clamp(3rem, 6vw, 4.5rem) 0 0; max-width: 52rem; }
.pullquote::before { content: ""; display: block; width: 56px; height: 5px; background: var(--gold); border-radius: 2px; margin-bottom: 1.5rem; }
.pullquote p { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1.3vw, 1.9rem); line-height: 1.4; color: var(--navy-900); letter-spacing: -0.015em; }
.pullquote footer { color: var(--muted); font-size: .95rem; }

/* C. Solution and the Money Ladder (the one bold moment on the page) */
.ladder-intro { max-width: 46rem; margin-bottom: 2rem; }
.ladder-intro h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.ladder-intro p { color: var(--navy-200); margin: 0; }

.ladder-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; align-items: end; }
.ladder-steps li { display: flex; }
.ladder-step {
  width: 100%; min-height: calc(112px + var(--i) * 36px);
  display: flex; flex-direction: column; justify-content: space-between; gap: .75rem;
  padding: 1rem .9rem; text-align: left; cursor: pointer;
  color: var(--white); background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; border-radius: 12px 12px 0 0;
  font-family: var(--font-body);
  transition: opacity .5s calc(var(--i) * 80ms), transform .6s calc(var(--i) * 80ms) cubic-bezier(.2, .7, .2, 1), background-color .2s 0s, color .2s 0s;
}
.ladder-step:hover { background: var(--navy-700); }
.ladder-step.is-active { background: var(--emerald-500); color: var(--navy-950); border-color: var(--emerald-400); }
.ladder-num { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; line-height: 1; }
.ladder-label { font-weight: 700; font-size: .95rem; line-height: 1.25; }

.ladder-detail { margin-top: 0; padding: 1.5rem 1.75rem; background: var(--white); color: var(--navy-900); border-radius: 0 0 var(--radius) var(--radius); }
.ladder-detail h4 { color: var(--navy-900); font-size: 1.35rem; margin: .15rem 0 .5rem; }
.ladder-detail p { margin: 0; }
.ladder-detail-count { color: var(--emerald-700); font-weight: 700; font-size: .95rem; }
.ladder-detail.is-changing { animation: swap .35s ease; }

.solution-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.solution-points h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.solution-points p { color: var(--navy-200); margin: 0; }

/* D. What's inside */
.toc { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(7, auto); grid-auto-flow: column; column-gap: 3rem; }
.toc-item { display: grid; grid-template-columns: 3.4rem 1fr; gap: .5rem; padding: 1.3rem .75rem; margin-inline: -.75rem; border-top: 1px solid var(--line); transition: background-color .2s ease; }
.toc-item:hover { background: var(--mist); }
.toc-num { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; line-height: 1.1; color: var(--emerald-700); }
.toc-item h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: .3rem; }
.toc-item p { color: var(--muted); font-size: .98rem; margin: 0; line-height: 1.55; }
.toc-item--plan { background: var(--emerald-50); border-top-color: transparent; border-radius: 10px; }
.toc-item--plan:hover { background: #D8F3E7; }

.appendices { margin-top: 3rem; }
.appendices h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.appendices ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.appendices li { display: grid; gap: .35rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.appendices strong { font-family: var(--font-head); font-weight: 600; color: var(--navy-900); font-size: 1rem; }
.appendices span { color: var(--muted); font-size: .96rem; line-height: 1.5; }

/* E. What you will gain */
.learn-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.learn-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.learn-intro .btn { margin-top: 1.5rem; }
.gains li { display: grid; grid-template-columns: 52px 1fr; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.gains li:first-child { border-top: 0; padding-top: 0; }
.gain-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--emerald-700); box-shadow: 0 2px 8px rgba(10, 31, 60, .08); }
.gains h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.gains p { color: var(--muted); margin: 0 0 .4rem; }
.gain-ref { font-size: .9rem; font-weight: 700; color: var(--emerald-700); }

/* F. Sample pages */
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: none; }
.section-head--row > div { max-width: 40rem; }
.rail-controls { display: flex; gap: .5rem; }
.rail-btn { width: 46px; height: 46px; display: grid; place-items: center; background: var(--white); color: var(--navy-900); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.rail-btn:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.preview-rail {
  --pad: max(1rem, calc((100vw - var(--container)) / 2));
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem var(--pad) 2rem; scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--navy-300) transparent;
}
.preview-card { flex: 0 0 clamp(230px, 24vw, 290px); scroll-snap-align: start; margin: 0; }
.preview-open { display: block; width: 100%; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: zoom-in; box-shadow: 0 6px 20px rgba(10, 31, 60, .1); transition: transform .25s ease, box-shadow .25s ease; }
.preview-open:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(10, 31, 60, .18); }
.preview-card figcaption { margin-top: .8rem; font-weight: 700; color: var(--navy-900); line-height: 1.35; }
.preview-card figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }

/* G. 30-day plan */
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.week { background: var(--navy-800); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.week h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: 1rem; }
.week-tag { display: block; width: fit-content; margin-bottom: .6rem; padding: .15rem .65rem; background: var(--emerald-500); color: var(--navy-950); font-weight: 700; font-size: .85rem; border-radius: 6px; }

.checklist li { margin: 0 0 .85rem; }
.checklist label { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; color: #E6EEF9; font-size: .98rem; line-height: 1.5; }
.checklist input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: .1rem 0 0;
  border: 2px solid var(--navy-300); border-radius: 6px; background: transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.checklist input:checked {
  background: var(--emerald-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061224' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat;
  border-color: var(--emerald-500);
}
.checklist input:checked + span { text-decoration: line-through; text-decoration-color: var(--navy-300); opacity: .7; }

.roadmap-title { margin: 4rem 0 1.5rem; font-size: 1.5rem; }
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.roadmap li { position: relative; padding-top: 1.6rem; border-top: 3px solid var(--navy-700); }
.roadmap li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--emerald-500); }
.roadmap-when { display: block; color: var(--emerald-400); font-weight: 700; font-size: .95rem; }
.roadmap strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--white); margin: .15rem 0 .4rem; }
.roadmap p { color: var(--navy-200); margin: 0; font-size: .98rem; line-height: 1.55; }

.plan-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.plan-notes p { color: var(--navy-200); margin: 0; }
.plan-notes strong { color: var(--white); }

/* H. Who should read */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fit { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 18px; }
.fit--yes { background: var(--emerald-50); border: 1px solid #BFE9D6; }
.fit--no { background: var(--mist); border: 1px solid var(--line); }
.fit h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.fit li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.fit li:last-child { margin-bottom: 0; }
.fit .icon { margin-top: .2rem; stroke-width: 2.4; }
.fit--yes .icon { color: var(--emerald-700); }
.fit--no .icon { color: var(--muted); }

/* I. Why this guide */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.strengths li { border-top: 2px solid var(--navy-900); padding-top: 1.1rem; }
.strengths h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.strengths p { color: var(--muted); margin: 0; }

.callouts-title { margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: 1.4rem; }
.callouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.callout { padding: 1.35rem 1.25rem 1.2rem; border-radius: 12px; display: flex; flex-direction: column; gap: .35rem; }
.callout p { margin: 0; font-size: .98rem; line-height: 1.55; flex: 1; }
.callout small { color: var(--muted); font-size: .88rem; }
.callout-tag { width: fit-content; padding: .2rem .65rem; border-radius: 6px; font-family: var(--font-head); font-weight: 600; font-size: .82rem; margin-bottom: .45rem; }
.callout--do { background: #FDF1D3; }
.callout--do .callout-tag { background: var(--gold); color: var(--navy-950); }
.callout--watch { background: #FCE6E2; }
.callout--watch .callout-tag { background: #B3261E; color: var(--white); }
.callout--reality { background: #E3EAF4; }
.callout--reality .callout-tag { background: var(--navy-900); color: var(--white); }
.callout--key { background: #DDF4EA; }
.callout--key .callout-tag { background: var(--emerald-700); color: var(--white); }

/* J. Final purchase section (reuses the navy section, hero buy row and book) */
.final { position: relative; overflow: hidden; }
.final-circle { top: auto; right: auto; bottom: -420px; left: -260px; }
.final-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.final-visual { display: grid; place-items: center; }
.book--final { width: min(270px, 62vw); }
.final-copy h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); line-height: 1.12; }
.final-list { margin: 1.4rem 0 2rem; display: grid; gap: .6rem; }
.final-note { margin: 1.25rem 0 0; font-size: .92rem; color: var(--navy-300); max-width: 34rem; }

/* K. FAQ */
.faq-wrap { max-width: 52rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1rem; letter-spacing: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; line-height: 1.4; color: var(--navy-900);
  transition: color .2s;
}
.faq-q:hover { color: var(--emerald-700); }
.faq-q .icon { color: var(--emerald-700); transition: transform .3s ease; }
.faq-item.is-open .faq-q .icon { transform: rotate(180deg); }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); padding-bottom: 1.3rem; margin: 0; max-width: 44rem; }
.faq-a a { color: var(--emerald-700); font-weight: 700; }
/* With JavaScript the answers collapse; without it they simply stay open */
html.js .faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s linear .3s; }
html.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s ease, visibility 0s; }

/* 7. FOOTER, STICKY BAR, TOAST, VIEWER ----------------------------------- */
.site-footer { background: var(--navy-950); color: var(--navy-200); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr 2fr; gap: 3rem; }
.footer-brand p { margin: 1rem 0 0; color: var(--navy-300); font-size: .95rem; }
.footer-mail { display: inline-flex; align-items: center; gap: .5rem; color: var(--navy-200); text-decoration: none; }
.footer-mail:hover { color: var(--white); text-decoration: underline; }
.footer-nav li { margin-bottom: .55rem; }
.footer-nav a { color: var(--navy-200); text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.disclaimer h2 { color: var(--white); font-size: 1rem; margin-bottom: .6rem; letter-spacing: 0; }
.disclaimer p { font-size: .9rem; color: var(--navy-300); line-height: 1.6; }
.footer-bottom { margin-top: 2.5rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom p { margin: 0; font-size: .88rem; color: var(--navy-300); }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .12);
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .price-amount { color: var(--white); font-size: 1.3rem; }
.sticky-cta .price-note { font-size: .8rem; }

.toast {
  position: fixed; left: 50%; bottom: 5.5rem; z-index: 100; transform: translateX(-50%);
  width: min(92vw, 30rem); padding: 1rem 1.25rem; border-radius: 12px;
  background: var(--navy-950); color: var(--white); border: 1px solid var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35); font-size: .95rem; line-height: 1.5;
}
.toast[hidden] { display: none; }

.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; color: var(--white); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: 1rem; }
.lightbox::backdrop { background: rgba(6, 18, 36, .9); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .75rem; min-width: 0; }
.lightbox img { max-height: calc(100vh - 7rem); width: auto; max-width: 100%; border-radius: 6px; background: var(--white); }
.lightbox figcaption { font-weight: 700; text-align: center; }
.lightbox-nav, .lightbox-close { width: 48px; height: 48px; display: grid; place-items: center; color: var(--white); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; cursor: pointer; transition: background-color .2s; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }

/* 8. THANK-YOU PAGE ------------------------------------------------------ */
.thanks-hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); padding: clamp(3rem, 8vw, 6rem) 0; min-height: calc(100vh - var(--header-h)); display: grid; align-items: center; }
.thanks-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.thanks-copy h1 { color: var(--white); font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.1; letter-spacing: -0.03em; }
.thanks-copy .lead { color: var(--navy-200); font-size: 1.25rem; margin-top: 1.25rem; }

.success-badge { width: 84px; height: 84px; margin-bottom: 1.5rem; }
.success-badge circle { fill: var(--emerald-500); }
.success-badge .ring { fill: none; stroke: var(--emerald-400); stroke-width: 2; opacity: .5; }
.success-badge .tick { fill: none; stroke: var(--navy-950); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 0; }

.download-box { margin: 2rem 0 0; }
.download-box .btn { gap: .75rem; }
.download-hint { margin: 1rem 0 0; font-size: .95rem; color: var(--navy-300); max-width: 32rem; }

.steps { margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .15); display: grid; gap: 1rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .9rem; align-items: start; color: var(--navy-200); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy-800); border: 1px solid var(--navy-700); color: var(--emerald-400); font-family: var(--font-head); font-weight: 600; }
.steps strong { color: var(--white); }

.thanks-visual { min-height: 560px; align-content: center; gap: 2.5rem; }
.thanks-visual::before { top: 40%; }
.thanks-visual::after { top: 40%; }
.first-step { position: relative; z-index: 1; max-width: 22rem; text-align: center; color: var(--navy-200); font-size: 1rem; margin: 0; }
.first-step strong { color: var(--white); }

.help-strip { background: var(--mist); border-top: 1px solid var(--line); padding: 2rem 0; }
.help-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.help-inner p { margin: 0; color: var(--muted); }
.help-inner a { color: var(--emerald-700); font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--navy-900); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.back-link--light { color: var(--navy-200); font-size: .95rem; }
.back-link--light:hover { color: var(--white); }
.book--thanks { width: min(260px, 60vw); }
.thanks-visual:hover .book { transform: perspective(1600px) rotateY(-6deg) rotateX(1deg) translateY(-6px); }

.thanks-footer { background: var(--navy-950); color: var(--navy-300); padding: 2rem 0; font-size: .9rem; }
.thanks-footer p { margin: 0 0 .6rem; max-width: 62rem; line-height: 1.6; }
.thanks-footer p:last-child { margin-bottom: 0; }

/* 9. MOTION AND RESPONSIVE RULES ----------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: perspective(1600px) rotateY(-42deg) rotateX(6deg) translateX(40px); } to { opacity: 1; transform: perspective(1600px) rotateY(-16deg) rotateX(3deg); } }
@keyframes swap { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tick { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }

/* One orchestrated entrance: the hero copy rises in, then the book settles */
[data-seq] { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 90ms); }
.book--hero { animation: settle 1.1s cubic-bezier(.2, .7, .2, 1) .35s both; }

/* The Money Ladder steps rise one by one when they scroll into view */
html.js .ladder:not(.is-in) .ladder-step { opacity: 0; transform: translateY(32px); }

.success-badge { animation: pop .6s cubic-bezier(.2, .7, .2, 1) both; }
.success-badge .tick { animation: tick .6s ease .45s both; }

@media (max-width: 1080px) {
  .weeks { grid-template-columns: repeat(2, 1fr); }
  .callouts { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .site-nav { gap: 1.25rem; }
  html.js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.25rem 1rem 1.5rem; background: var(--navy-900);
    border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 30px rgba(6, 18, 36, .4);
  }
  html.js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: .25rem; }
  .site-nav ul a { display: block; padding: .75rem 0; font-size: 1.05rem; }
  .site-nav ul a::after { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .75rem; }
  html:not(.js) .site-nav { flex-wrap: wrap; }

  .hero-grid, .final-grid, .thanks-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; }
  .hero-visual .book { width: min(240px, 58vw); }
  .stage::before { width: min(320px, 92%); }
  .stage::after { width: 64px; transform: translate(-150px, -120px); }
  .hero-circle--big { width: 560px; height: 560px; top: -250px; right: -200px; }
  .thanks-visual { min-height: 470px; }

  .facts-list { grid-template-columns: repeat(2, 1fr); }
  .facts-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .problems, .strengths, .solution-points { grid-template-columns: repeat(2, 1fr); }
  .toc { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .appendices ul { grid-template-columns: 1fr; }
  .learn-grid { grid-template-columns: 1fr; }
  .learn-intro { position: static; }
  .plan-notes, .fit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .disclaimer { grid-column: 1 / -1; }

  .sticky-cta { display: flex; }
  .footer-bottom { padding-bottom: 5.5rem; }
  .rail-controls { display: none; }
  .section-head--row { display: block; }
}

@media (max-width: 760px) {
  /* The ladder becomes a staircase that steps to the right */
  .ladder-steps { grid-template-columns: 1fr; gap: .4rem; }
  .ladder-steps li { margin-left: calc((var(--i) - 1) * 4.5%); }
  .ladder-step { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem; padding: .9rem 1rem; border-radius: 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .ladder-step.is-active { border-bottom-color: var(--emerald-400); }
  .ladder-num { font-size: 1.4rem; min-width: 1.4rem; }
  .ladder-detail { margin-top: .75rem; border-radius: var(--radius); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand-text { font-size: .9rem; }
  .hero-circle--arc { left: -40px; }
  .hero-buy { gap: 1rem 1.5rem; }
  .btn-lg { width: 100%; }
  .problems, .strengths, .solution-points, .weeks, .callouts, .roadmap, .footer-grid { grid-template-columns: 1fr; }
  .preview-card { flex-basis: 68vw; }
  .gains li { grid-template-columns: 44px 1fr; gap: 1rem; }
  .gain-icon { width: 44px; height: 44px; }
  .toc-item { grid-template-columns: 2.8rem 1fr; }
  .lightbox[open] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: .75rem; }
  .lightbox-nav { position: absolute; bottom: .75rem; z-index: 2; }
  .lightbox-prev { left: .75rem; }
  .lightbox-next { right: .75rem; }
  .lightbox img { max-height: calc(100vh - 9rem); }
  .help-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .book { transform: perspective(1600px) rotateY(-10deg); }
}
