/* =========================================================================
   The 91-Day Habit Workbook — Companion Site
   Design system distilled from the book's own interior:
   cream paper · forest-green ink · antique gold · Marcellus + Source Serif 4
   ========================================================================= */

/* ---------- Fonts ----------
   Loaded via <link rel="preconnect"> + <link rel="stylesheet"> in each page's
   <head> (non-render-blocking, with preconnect) rather than a blocking @import.
   To fully self-host: drop subset WOFF2 files in assets/fonts/ and swap the
   <head> font <link> for local @font-face rules (see README). */

/* ---------- Design tokens ---------- */
:root {
  /* Paper — matched to the book interior (--bg-cream #F7F4EC) */
  --paper:      #F7F4EC;
  --paper-lite: #FBFAF4;
  --paper-card: #FFFDF8;
  --paper-deep: #F0EEE6;
  --paper-band: #E9E6DE;

  /* Ink — the book's muted green-grey (--ink-dark #2E4038) */
  --ink:      #2E4038;
  --ink-soft: #3A4A40;
  --ink-deep: #213029;

  /* Gold — the book's antique gold (--gold #A8813F) */
  --gold:      #A8813F;
  --gold-lite: #C2A25E;
  --gold-warm: #CDB784;
  --gold-deep: #876A33;

  /* Text — book body inks */
  --text:  #3A4A40;
  --text-2:#5D6A5F;
  --muted: #7E8B80;

  /* Lines — book border-tan #C6BFA9 */
  --line:      rgba(46, 64, 56, 0.15);
  --line-gold: rgba(168, 129, 63, 0.42);
  --line-soft: rgba(46, 64, 56, 0.08);
  --line-tan:  #C6BFA9;

  /* ---- COVER PALETTE (sampled from the printed KDP cover) ----
     The book's outward identity: deep forest green + antique gold. */
  --cv-green-top:  #1C3729;
  --cv-green:      #172F24;
  --cv-green-deep: #12271D;
  --cv-gold:       #C6A15B;   /* rules, eyebrows, small caps */
  --cv-gold-bright:#E7C77F;   /* the "91", headline accents */
  --cv-cream:      #EDE4CE;   /* title + body text on green */
  --cv-cream-dim:  #D8D3C4;   /* secondary text on green */
  --cv-sage:       #8FA394;

  /* Type */
  --display: 'Marcellus', 'Times New Roman', serif;
  --body:    'Source Serif 4', Georgia, serif;
  --hand:    'Caveat', cursive;

  /* Rhythm */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(30,45,35,.07), 0 6px 18px rgba(30,45,35,.06);
  --shadow-md: 0 4px 14px rgba(30,45,35,.10), 0 22px 48px rgba(30,45,35,.12);
  --shadow-lg: 0 30px 70px rgba(22,48,36,.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--body);
  color: var(--text);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(168,129,63,.06), transparent 45%),
    radial-gradient(circle at 88% 78%, rgba(46,64,56,.05), transparent 42%);
  line-height: 1.68;
  font-size: 18px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--ink-soft); text-decoration-color: var(--line-gold); text-underline-offset: 3px; }

/* ---------- Accessibility: skip link + focus-visible ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--cv-green); color: var(--cv-cream);
  padding: 12px 18px; border-radius: 6px; font-family: var(--display);
  text-decoration: none; box-shadow: var(--shadow-md);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* A single, clearly visible focus ring on every interactive control.
   :focus-visible = keyboard focus only, so mouse users don't see rings. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
/* On the dark hero / green sections, use the brighter gold so the ring reads. */
.hero *:focus-visible,
.section--ink *:focus-visible,
.signup *:focus-visible,
.site-footer *:focus-visible,
body.dark-hero .site-header:not(.is-scrolled) *:focus-visible {
  outline-color: var(--cv-gold-bright);
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 26px; }
.narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section--tint { background: var(--paper-lite); border-block: 1px solid var(--line-soft); }
.section--ink {
  background: linear-gradient(170deg, var(--cv-green-top), var(--cv-green) 55%, var(--cv-green-deep));
  color: var(--cv-cream);
}
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.14; letter-spacing: .2px; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--cv-cream); }

h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
p  { max-width: 66ch; }
.lead { font-size: clamp(1.12rem, 2vw, 1.32rem); color: var(--text-2); }
.section--ink .lead { color: var(--cv-cream-dim); }

/* Eyebrow / kicker */
.kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: .74rem;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: .8em;
}
.section--ink .kicker { color: var(--cv-gold); }
.kicker::before, .kicker.kicker--both::after {
  content: ""; width: 26px; height: 1px; background: var(--line-gold);
}
.kicker--center { justify-content: center; }

/* Section heading block */
.head { max-width: 640px; }
.head--center { margin-inline: auto; text-align: center; }
.head h2 { margin-top: .5rem; }
.head p { margin-top: 1rem; }
.head--center p { margin-inline: auto; }

/* Handwritten accent */
.hand { font-family: var(--hand); color: var(--gold-deep); font-size: 1.5em; line-height: 1; }

/* Ornamental diamond divider */
.diamond { display: inline-block; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.rule-orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px auto; color: var(--gold); }
.rule-orn::before, .rule-orn::after { content: ""; height: 1px; width: 72px; background: var(--line-gold); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--cv-green); --btn-fg: var(--cv-cream);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--display); font-size: 1rem; letter-spacing: .04em;
  padding: 15px 30px; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { --btn-bg: linear-gradient(135deg, var(--cv-gold-bright), var(--cv-gold)); --btn-fg: #1B2E22; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-gold); box-shadow: none;
}
.section--ink .btn--ghost { color: var(--cv-cream); border-color: rgba(198,161,91,.55); }
.btn--ghost:hover { background: rgba(176,141,87,.08); box-shadow: none; }
.btn--lg { padding: 18px 38px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row--center { justify-content: center; }

/* ---------- Corner-bracket ornament (from the cover) ---------- */
.bracketed { position: relative; }
.bracketed::before, .bracketed::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border: 2px solid var(--line-gold);
}
.bracketed::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.bracketed::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,244,236,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(18,39,29,.10); background: rgba(247,244,236,.95); }

/* On pages that open with the dark cover hero, the bar blends in at the
   top and resolves to paper once you scroll. */
/* NOTE: the header is sticky, so it occupies flow ABOVE the hero — a
   transparent bar would expose the cream page background, not the hero.
   Matching the hero's top gradient stop makes the two read as one field. */
body.dark-hero .site-header:not(.is-scrolled) {
  background: var(--cv-green-top); border-bottom-color: transparent; box-shadow: none;
}
body.dark-hero .site-header:not(.is-scrolled) .brand,
body.dark-hero .site-header:not(.is-scrolled) .nav__links a { color: var(--cv-cream); }
body.dark-hero .site-header:not(.is-scrolled) .brand__name small { color: var(--cv-gold); }
body.dark-hero .site-header:not(.is-scrolled) .brand__mark {
  background: transparent; border-color: rgba(198,161,91,.6); color: var(--cv-gold-bright);
}
body.dark-hero .site-header:not(.is-scrolled) .nav__toggle span { background: var(--cv-cream); }
body.dark-hero .site-header:not(.is-scrolled) .nav__links a.nav__cta { color: #22160A; }
@media (max-width: 860px) {
  /* the open mobile panel always needs its solid paper backing */
  body.dark-hero .site-header:not(.is-scrolled) .nav__links.open a { color: var(--text-2); }
  body.dark-hero .site-header:not(.is-scrolled) .nav__links.open a.nav__cta { color: #22160A; }
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 40px; height: 40px; flex: none; border: 1.5px solid var(--gold); border-radius: 3px;
  display: grid; place-items: center; font-family: var(--display); color: var(--ink);
  font-size: 1.1rem; background: var(--paper-lite); position: relative;
}
.brand__mark span { font-size: 1.15rem; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 1.02rem; letter-spacing: .02em; line-height: 1.1; }
.brand__name small { display: block; font-family: var(--body); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__links a { font-family: var(--display); color: var(--text-2); text-decoration: none; font-size: 1rem; letter-spacing: .01em; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0; background: var(--gold); transition: width .25s ease; }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta { padding: 10px 20px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 4px;
    background: var(--paper-lite); border-bottom: 1px solid var(--line);
    padding: 18px 26px 26px; align-items: stretch;
    transform: translateY(-140%); transition: transform .32s ease; z-index: -1;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav__links .nav__cta { margin-top: 10px; text-align: center; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (mirrors the printed cover: deep green + gold) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(20px, 3vw, 46px); padding-bottom: clamp(44px, 6vw, 84px);
  background:
    radial-gradient(ellipse at 72% 28%, rgba(231,199,127,.10), transparent 55%),
    linear-gradient(168deg, var(--cv-green-top), var(--cv-green) 52%, var(--cv-green-deep));
  color: var(--cv-cream);
}
/* hairline gold rule closing the hero, like the cover's inner frame */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold) 20%, var(--line-gold) 80%, transparent);
}
.hero h1 { color: var(--cv-cream); font-size: clamp(2.1rem, 4.3vw, 3.35rem); }
.hero h1 em { color: var(--cv-gold-bright); font-style: normal; }
.hero .kicker { color: var(--cv-gold); }
.hero .kicker::before, .hero .kicker::after { background: rgba(198,161,91,.55); }
.hero__sub { color: var(--cv-cream-dim); }
.hero__meta { color: var(--cv-cream-dim); }
.hero__meta .diamond { background: var(--cv-gold); }
.hero__trust { color: var(--cv-cream); }
.hero .btn--ghost { color: var(--cv-cream); border-color: rgba(198,161,91,.55); }
.hero .btn--ghost:hover { background: rgba(198,161,91,.12); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--cv-gold-bright); }
.hero__sub { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--cv-cream); max-width: 48ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 30px; color: var(--cv-cream); font-size: .95rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .diamond { width: 7px; height: 7px; }
.hero__actions { margin-top: 6px; }
.hero__trust { margin-top: 20px; font-size: .9rem; color: var(--cv-cream); }

/* Book mockup */
.book-stage { perspective: 2200px; display: grid; place-items: center; position: relative; }

/* warm golden bloom so the cover lifts off the dark hero (hero only).
   Elliptical + offset so it reads as ambient light, not a plate rim. */
.hero .book-stage::before {
  content: ""; position: absolute; z-index: 0;
  width: 122%; height: 104%; border-radius: 50%;
  background: radial-gradient(ellipse at 52% 46%,
      rgba(240,214,150,.72) 0%,
      rgba(231,199,127,.52) 24%,
      rgba(210,170,98,.30) 48%,
      rgba(198,161,91,.12) 66%,
      transparent 78%);
  filter: blur(46px); transform: translateY(-2%);
  pointer-events: none;
}
/* soft cast shadow on the ground under the book (both contexts) */
.book-stage::after {
  content: ""; position: absolute; z-index: 0; bottom: 4%;
  left: 14%; right: 10%; height: 26px;
  background: radial-gradient(ellipse, rgba(4,14,9,.5), transparent 72%);
  filter: blur(16px); pointer-events: none;
}

/* ---- the book: a real 3-D cuboid (front / back / spine / page-block) ---- */
.book {
  --d: 46px;                       /* spine thickness */
  position: relative; z-index: 1;
  width: min(320px, 72vw); aspect-ratio: 7.125 / 10.25;
  transform-style: preserve-3d;
  transform: rotateY(-31deg);
}

/* front cover sits at the front of the block (z = 0) */
.book__cover {
  position: absolute; inset: 0; border-radius: 2px 3px 3px 2px;
  background: var(--cv-green); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(231,199,127,.22),
              0 26px 44px rgba(4,14,9,.42);
}
.book__cover svg, .book__cover object { width: 100%; height: 100%; display: block; }
/* spine crease near the binding + a soft cover sheen */
.book__cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(105deg, rgba(255,255,255,.13), transparent 42%),
    linear-gradient(90deg, rgba(0,0,0,.34), transparent 7%);
}

/* back cover, pushed one thickness behind the front.
   Solid dark green so any sliver that shows on the far edge reads as the
   book's own bound edge, never as a stray panel. */
.book__back {
  position: absolute; inset: 0; border-radius: 3px;
  background: var(--cv-green-deep);
  transform: translateZ(calc(-1 * var(--d)));
}
/* left spine face — connects front-left to back-left (faces away from us at
   this angle; kept solid dark green so its back edge blends). */
.book__spine {
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--d);
  transform-origin: left center; transform: rotateY(90deg);
  background: var(--cv-green-deep);
}
/* right page-block — the cream leaves, the strongest "this is a book" cue.
   A hair narrower than the spine depth so its front lip tucks under the
   cover's rounded corner instead of poking past it. */
.book__pages {
  position: absolute; top: 4px; bottom: 4px; right: 0; width: calc(var(--d) - 2px);
  transform-origin: right center; transform: rotateY(-90deg);
  background:
    linear-gradient(90deg, rgba(0,0,0,.18), transparent 22%),
    repeating-linear-gradient(90deg, #efe7d2 0 1.4px, #d4c7a4 1.4px 3.2px);
}

/* ---------- Feature / value cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.card__num { font-family: var(--display); color: var(--gold-deep); font-size: .82rem; letter-spacing: .22em; }
.card h3 { margin: 12px 0 10px; }
.card p { color: var(--text-2); font-size: 1rem; }
.card__icon { width: 46px; height: 46px; margin-bottom: 16px; color: var(--ink-soft); }
.card__icon svg { width: 100%; height: 100%; }

/* ---------- Numbered science points ---------- */
.points { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line-soft); }
.point { display: grid; grid-template-columns: 84px 1fr; gap: 20px; background: var(--paper-card); padding: 26px 28px; align-items: start; }
.point__n { font-family: var(--display); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.point h3 { font-size: 1.28rem; margin-bottom: 6px; }
.point p { color: var(--text-2); font-size: 1.02rem; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--cv-gold-bright); line-height: 1; }
.stat__lbl { margin-top: 10px; font-size: .92rem; letter-spacing: .06em; color: var(--cv-cream-dim); text-transform: uppercase; }

/* ---------- Chain-of-dots motif ---------- */
.chain { display: flex; flex-wrap: wrap; gap: 9px; max-width: 520px; }
.chain i { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line-gold); display: inline-block; }
.chain i.on { background: var(--gold); border-color: var(--gold); }
.chain i.hl { background: var(--ink); border-color: var(--ink); }

/* single centred row, as on the cover band */
.chain--row {
  flex-wrap: nowrap; justify-content: center; margin-inline: auto;
  max-width: none; gap: clamp(5px, 1.2vw, 10px);
}
.chain--row i { width: clamp(8px, 1.5vw, 14px); height: clamp(8px, 1.5vw, 14px); flex: none; }
.section--ink .chain i { border-color: rgba(198,161,91,.45); }
.section--ink .chain i.on { background: var(--cv-gold); border-color: var(--cv-gold); }
.section--ink .chain i.hl { background: var(--cv-gold-bright); border-color: var(--cv-gold-bright); }

/* ---------- Phases timeline ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.phase { padding: 30px 28px; background: var(--paper-card); border-right: 1px solid var(--line); }
.phase:last-child { border-right: 0; }
.phase__wk { font-family: var(--display); color: var(--gold-deep); letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; }
.phase h3 { margin: 8px 0 10px; }
.phase p { font-size: .98rem; color: var(--text-2); }

/* ---------- Signup form ---------- */
.signup {
  background:
    radial-gradient(circle at 12% 20%, rgba(231,199,127,.14), transparent 42%),
    linear-gradient(155deg, var(--cv-green-top), var(--cv-green) 58%, var(--cv-green-deep));
  color: var(--cv-cream); border-radius: 8px; padding: clamp(34px, 5vw, 60px);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(198,161,91,.28);
}
.signup__seal { position: absolute; right: -30px; top: -30px; width: 190px; opacity: .14; color: var(--cv-gold-bright); }
.signup h2 { color: var(--cv-cream); }
.signup .kicker { color: var(--cv-gold); }
.signup .kicker::before { background: rgba(198,161,91,.55); }
.signup .lead { color: var(--cv-cream-dim); }
.form {
  display: grid; grid-template-columns: 1fr;   /* single-input forms: full width */
  gap: 14px; margin-top: 28px; max-width: 600px;
}
/* two columns only when a first-name field shares the row with email */
.form:has(input[type=text]) { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .form:has(input[type=text]) { grid-template-columns: 1fr; } }
.form input[type=email], .form input[type=text] {
  width: 100%; padding: 16px 18px; font-family: var(--body); font-size: 1.02rem;
  border-radius: 5px; border: 1px solid rgba(198,161,91,.55);
  background: rgba(247,244,236,.97); color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(18,39,29,.14);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form input::placeholder { color: #9b9a8b; }
.form input:focus {
  outline: none; border-color: var(--cv-gold-bright);
  box-shadow: 0 0 0 3px rgba(231,199,127,.30), inset 0 1px 2px rgba(18,39,29,.10);
}
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form label:not(.form-consent) {
  font-family: var(--display); font-size: .82rem; letter-spacing: .04em;
  color: var(--cv-cream); text-transform: uppercase;
}
.form-consent {
  grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px;
  font-size: .88rem; color: var(--cv-cream-dim); line-height: 1.45; cursor: pointer;
}
.form-consent input[type=checkbox] {
  flex: none; width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--cv-gold); cursor: pointer;
}
.form-consent a { color: var(--cv-gold); }
.form button[type=submit] { grid-column: 1 / -1; width: 100%; }
.form__note, .form__msg { grid-column: 1 / -1; }
.form__note { margin-top: 2px; font-size: .86rem; color: #B9B29C; display: flex; align-items: center; gap: 8px; }
.form__msg { margin-top: 2px; font-size: .98rem; min-height: 1.2em; }
.form__msg.ok { color: #B7D7B0; }
.form__msg.err { color: #E7B4A0; }
.form-check { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; font-size: .9rem; color: #C9C2AE; }

/* ---------- Reading list (books page) ---------- */
.book-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 22px; align-items: center;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
}
.book-row:last-child { border-bottom: 0; }
/* stacked cover + button in the last column */
.book-row__buy { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.book-cover-link { display: block; line-height: 0; border-radius: 3px; }
.book-cover-img {
  width: 116px; height: auto; display: block; border-radius: 3px;
  border: 1px solid var(--line); background: var(--paper-deep);
  box-shadow: 0 10px 24px rgba(30,45,35,.22), 0 2px 6px rgba(30,45,35,.12);
  transition: transform .22s ease, box-shadow .22s ease;
}
.book-cover-link:hover .book-cover-img {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(30,45,35,.28), 0 3px 8px rgba(30,45,35,.16);
}
.book-row__buy .btn { width: 100%; }
.book-row__n { font-family: var(--display); font-size: 2rem; color: var(--gold); text-align: center; }
.book-row h3 { font-size: 1.35rem; }
.book-row .by { color: var(--muted); font-style: italic; }
.book-row .by a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--line-gold); }
.book-row .by a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.book-row p { color: var(--text-2); margin-top: 4px; font-size: 1rem; }

/* ---------- Downloads (next page) ---------- */
.dl { display: grid; grid-template-columns: 60px 1fr auto; gap: 22px; align-items: center; padding: 26px; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.dl + .dl { margin-top: 18px; }
.dl__icon { width: 52px; height: 52px; color: var(--ink-soft); }
.dl h3 { font-size: 1.28rem; }
.dl p { color: var(--text-2); font-size: .98rem; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 4px; font-family: var(--display); font-size: 1.2rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 24px; color: var(--text-2); }

/* ---------- Quote / promise ---------- */
.pull { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.28; color: var(--ink); max-width: 20ch; margin-inline: auto; }
.section--ink .pull { color: var(--cv-cream); }
.pull .hand { font-size: 1.1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cv-green-deep); color: #B9BFB2; padding-block: 64px 34px; }
.site-footer a { color: #DED7C2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-warm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand__name { font-family: var(--display); color: #F2ECDC; font-size: 1.3rem; }
.footer-col h4 { color: var(--gold-warm); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--body); font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: .96rem; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(201,173,122,.18); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: #9A9482; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(30px, 4vw, 46px); text-align: center; }
.page-hero .kicker { margin-bottom: 18px; }
.page-hero p { margin: 18px auto 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-deep); }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  max-width: 720px; margin-inline: auto;
  background: var(--paper-lite); border: 1px solid var(--line-gold); border-radius: 8px;
  box-shadow: var(--shadow-md); padding: 18px 20px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.consent p { margin: 0; font-size: .92rem; color: var(--text-2); flex: 1 1 300px; }
.consent a { color: var(--gold-deep); }
.consent__btns { display: flex; gap: 10px; flex: 0 0 auto; }
.consent .btn { padding: 10px 20px; font-size: .95rem; }
@media (max-width: 480px) { .consent__btns { flex: 1 1 100%; } .consent .btn { flex: 1; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Print (tracker page) ---------- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; font-size: 12px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__eyebrow, .hero .kicker { justify-content: center; }
  .hero__sub, .hero p { margin-inline: auto; }
  .hero__meta, .hero__actions .btn-row { justify-content: center; }
  .book-stage { order: -1; margin-bottom: 20px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: 1fr; }
  .phase { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .point { grid-template-columns: 1fr; gap: 6px; }
  .point__n { font-size: 1.8rem; }
  .book-row, .dl { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .book-row__n { margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .form .btn { width: 100%; }
}
