/* Colours come from the book cover: cream paper, title red, chain gold, burnt edge.
   Layout: a smoky opening "stage" (title, then "Are you ready?") followed by paper bands. */
:root {
  --paper: #fbf4ea;
  --paper-2: #f4e8d6;
  --card: #fffaf3;
  --ink: #1e1612;
  --ink-2: #4b3c33;
  --muted: #7a6659;
  --red: #d7141b;
  --red-deep: #a80f15;
  --red-on-dark: #ff4a4f;
  --gold: #c99328;
  --gold-deep: #8d6114;
  --gold-light: #f2c45f;
  --ember: #ef6a1c;
  --line: rgba(30, 22, 18, .12);
  --line-strong: rgba(30, 22, 18, .22);

  --font-display: "Montserrat", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .18 .11 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.red { color: var(--red); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  font: 700 .9rem var(--font-display); text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 1em 1.7em; border-radius: 999px; border: 2px solid transparent;
  font: 800 1rem/1 var(--font-display); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 12px 26px -10px rgba(215, 20, 27, .6); }
.btn-red:hover { background: var(--red-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: rgba(255, 250, 243, .55); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: .72em 1.2em; font-size: .85rem; }

/* ================= TOP BAR ================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--paper); /* solid: no blur behind the bar (blurring the page under it on every scroll step is costly), and no text showing through */
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%); transition: transform .45s ease;
}
.topbar.show { transform: none; }
.topbar-inner {
  max-width: 1200px; margin-inline: auto; height: 60px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { font: italic 900 1.02rem/1 var(--font-display); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand span { font-size: .78em; font-weight: 800; }
.brand em { color: var(--red); }

/* ================= OPENING STAGE ================= */
.stage { position: relative; }
.stage-bg {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100lvh;
  margin-bottom: -100vh; margin-bottom: -100lvh;
  overflow: hidden; pointer-events: none;
}
.stage-bg::after { /* soft warm vignette like the cover's edges */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(150, 95, 50, .14) 100%);
}
#smoke, #dust { position: absolute; inset: 0; width: 100%; height: 100%; }
#smoke { transition: opacity .3s linear; }

.burn-corner {
  position: absolute; top: 0; right: 0;
  width: clamp(150px, 30vw, 430px); height: auto; aspect-ratio: 400 / 320;
  overflow: visible;
}
.burn-glow { animation: flicker 3.2s ease-in-out infinite alternate; will-change: opacity; } /* its own layer (script.js), so the flicker never redraws the blur */
.burn-corner .embers { animation: crawl 9s linear infinite; }
.burn-corner .spark { animation: spark 4s ease-out infinite; opacity: 0; }
@keyframes flicker { 0% { opacity: .55; } 40% { opacity: .9; } 60% { opacity: .7; } 100% { opacity: 1; } }
@keyframes crawl { to { stroke-dashoffset: -260; } }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-14px, -36px); } }

.burn-hole {
  position: absolute; left: 6%; top: 63%;
  width: clamp(26px, 3.6vw, 44px); aspect-ratio: 1.12;
  border-radius: 47% 53% 44% 56% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 50% 50%,
    #2a170d 0 26%, #6b3412 34%, #e0862e 41%, #f6c56a 45%,
    rgba(176, 102, 40, .55) 52%, rgba(176, 102, 40, .18) 64%, rgba(176, 102, 40, 0) 72%);
  filter: drop-shadow(0 0 6px rgba(239, 106, 28, .55));
  animation: holeGlow 2.8s ease-in-out infinite alternate;
}
@keyframes holeGlow { to { filter: drop-shadow(0 0 12px rgba(239, 106, 28, .85)); } }

.hero, .ready { position: relative; z-index: 1; }
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding-block: 96px 120px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.hero-content { text-align: center; will-change: transform, opacity; }
.eyebrow {
  font: 700 .78rem/1 var(--font-display); letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1.4rem;
}
.title {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  line-height: .9; letter-spacing: -.025em;
  font-size: clamp(3rem, 12.5vw, 8.6rem);
  display: flex; flex-direction: column; align-items: center;
  text-shadow: 0 2px 0 rgba(255, 250, 243, .6), 0 18px 40px rgba(120, 70, 30, .18);
}
.t1 { color: var(--ink); }
.t2 { display: flex; align-items: baseline; gap: .16em; }
.t-and { font-size: .5em; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.t-master { color: var(--red); }
.swoosh { width: min(520px, 82%); height: auto; margin: .5rem auto 0; }
.swoosh path:first-child { fill: var(--ink); }
.swoosh path:last-child { fill: var(--red); }
.subtitle {
  margin-top: 1.1rem;
  font: italic 700 clamp(1.02rem, 2.5vw, 1.5rem)/1.35 var(--font-display);
  color: var(--ink);
}
.sub2 { margin: .7rem auto 0; max-width: 36ch; font: 500 1.02rem/1.5 var(--font-body); font-style: italic; color: var(--ink-2); }
.lang-link { display: inline-block; margin-top: 1.4rem; font: 800 .78rem/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.lang-link:hover { color: var(--red); }
.footer .lang-link { color: rgba(251, 244, 234, .8); }
.hero-cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.scroll-cue {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none;
  font: 700 .68rem/1 var(--font-display); letter-spacing: .3em; text-transform: uppercase;
}
.scroll-cue i { width: 22px; height: 36px; border: 2px solid var(--line-strong); border-radius: 12px; position: relative; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--red); border-radius: 2px; animation: wheel 2.2s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.fade-in { opacity: 0; animation: fadeUp 1.8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0s); }
.scroll-cue.fade-in { animation-name: fadeOnly; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeOnly { to { opacity: 1; } }

/* "Your journey starts now. Are you ready?" — held on screen for a moment while the words come in */
.ready { height: 150vh; }
.ready-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; place-content: center; text-align: center;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.ready-line {
  font: italic 900 clamp(2.2rem, 7.6vw, 5.6rem)/1.08 var(--font-display);
  letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}
.ready-q { color: var(--red); margin-top: .35em; }
/* Words come in one after another once the message is on screen (script.js adds .show and each word's --i).
   Only opacity and position change, so the browser does it without repainting and scrolling stays smooth. */
.ready-line .w {
  display: inline-block; opacity: 0; transform: translateY(.45em);
  transition: opacity .8s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.ready.show .ready-line .w { opacity: 1; transform: none; }

/* ================= SHARED SECTION STYLES ================= */
.band { position: relative; padding-block: clamp(76px, 10vw, 132px); }
.band:nth-of-type(even) { background-color: rgba(232, 214, 188, .32); }
.wrap {
  width: min(1180px, 100%); margin-inline: auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.wrap.narrow { width: min(840px, 100%); }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { max-width: 780px; margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 .76rem/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.center .kicker::after { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
h2 {
  font: italic 900 clamp(2rem, 5.2vw, 3.5rem)/1.04 var(--font-display);
  letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}
h3 { font-family: var(--font-display); }
.sec-lead { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); }
.sec-lead.left { max-width: 46ch; }

/* scroll reveal (only hides when JS is running) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ================= VIDEO PLAYER ================= */
.player {
  position: relative; margin: 0 auto;
  width: min(1000px, 100%); aspect-ratio: 16 / 9;
  border-radius: 20px; overflow: hidden; background: #140d0a;
  box-shadow: 0 40px 80px -36px rgba(30, 22, 18, .6), 0 0 0 1px rgba(30, 22, 18, .1);
}
.player.tall { aspect-ratio: 9 / 16; width: min(440px, 100%, calc(80svh * 9 / 16)); }
.player video { width: 100%; height: 100%; object-fit: cover; background: #140d0a; }
.play {
  position: absolute; inset: 0; border: 0; cursor: pointer; color: #fff;
  display: grid; place-content: center; justify-items: center; gap: 16px;
  background: radial-gradient(circle at 50% 50%, rgba(20, 13, 10, .05), rgba(20, 13, 10, .45));
  transition: opacity .4s ease;
}
.play-icon {
  width: 88px; height: 88px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; animation: pulse 2.4s ease-out infinite;
  transition: transform .25s ease;
}
.play:hover .play-icon { transform: scale(1.08); }
.play-icon svg { width: 36px; height: 36px; fill: #fff; margin-left: 5px; }
.play-label { font: 800 .9rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.play-label .dur { opacity: .75; margin-left: .4em; }
.player.playing .play { opacity: 0; pointer-events: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(215, 20, 27, .55); } 70%, 100% { box-shadow: 0 0 0 22px rgba(215, 20, 27, 0); } }

/* ================= NOT ANOTHER QUIT PLAN ================= */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 84px); align-items: start; }
.prose { display: grid; gap: 1.1rem; }
.prose p { font-size: clamp(1.08rem, 1.8vw, 1.22rem); color: var(--ink-2); max-width: 58ch; }
.prose .aside { font-style: italic; color: var(--ink); padding-left: 18px; border-left: 3px solid var(--red); }

/* ================= ONE BOOK, ONE DAY ================= */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: 3px;
}
.step { text-align: center; position: relative; }
.step-icon {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--card); border: 2px solid var(--gold); color: var(--gold-deep);
}
.step-icon svg { width: 32px; height: 32px; }
.step-final .step-icon { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 12px 26px -8px rgba(215, 20, 27, .6); }
.step-time { font: 800 .74rem/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }
.step h3 { font-size: 1.28rem; font-weight: 800; margin: 10px 0 8px; color: var(--ink); }
.step p:last-child { color: var(--ink-2); }
.step-final h3 { color: var(--red); }
.source-note { margin-top: clamp(30px, 4vw, 48px); text-align: center; font-size: .95rem; color: var(--muted); }
.source-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ================= LAST CIGARETTE ================= */
.cig { position: relative; width: min(340px, 78%); height: 26px; margin: 40px auto 64px; }
.cig-body {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% - 18px);
  background: linear-gradient(#ffffff, #ece5da);
  border-radius: 4px 1px 1px 4px;
  box-shadow: 0 12px 20px -10px rgba(30, 22, 18, .45), inset 0 -2px 0 rgba(0, 0, 0, .05);
}
.cig-filter {
  position: absolute; left: 0; top: 0; bottom: 0; width: 30%; border-radius: 4px 0 0 4px;
  background: #d98b3a radial-gradient(rgba(110, 55, 10, .38) 1px, transparent 1.6px) 0 0 / 6px 6px;
}
.cig-ember {
  position: absolute; top: 0; bottom: 0; right: -18px; width: 18px; border-radius: 0 7px 7px 0;
  background: radial-gradient(circle at 35% 50%, #ffd36a, #ff5a1a 45%, #7a1d08 92%);
  box-shadow: 0 0 18px #ff6a22, 0 0 42px rgba(255, 106, 34, .5);
}
.cig-wisp { position: absolute; right: -14px; bottom: 100%; width: 16px; height: 140px; }
.cig-wisp i {
  position: absolute; left: 0; bottom: 0; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 100, 94, .38), rgba(110, 100, 94, 0) 70%);
  filter: blur(3px); opacity: 0;
}
.cig.in .cig-body { animation: burn 5.5s cubic-bezier(.4, 0, .6, 1) forwards; }
.cig.in .cig-ember { animation: glow 1.4s ease-in-out infinite alternate, out 1.2s ease-in 5.4s forwards; }
.cig.in .cig-wisp i { animation: puff 3.2s ease-out infinite; }
.cig.in .cig-wisp i:nth-child(2) { animation-delay: 1.05s; }
.cig.in .cig-wisp i:nth-child(3) { animation-delay: 2.1s; }
.cig.in .cig-wisp { animation: wispStop .8s ease 5.6s forwards; }
.cig.done .cig-wisp i { animation: none; opacity: 0; }
@keyframes burn { to { width: calc(64% - 18px); } }
@keyframes glow { to { box-shadow: 0 0 26px #ff7a2a, 0 0 60px rgba(255, 106, 34, .6); } }
@keyframes out {
  to { background: radial-gradient(circle at 35% 50%, #b9b2aa, #8a837c 50%, #5b554f 92%); box-shadow: none; }
}
@keyframes puff {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(10px, -130px) scale(4.5); }
}
@keyframes wispStop { to { opacity: 0; } }

.quote p {
  max-width: 30ch; margin-inline: auto;
  font: italic 500 clamp(1.4rem, 3.6vw, 2.25rem)/1.4 var(--font-body);
  color: var(--ink); text-wrap: balance;
}

/* ================= STORIES FROM THE BOOK ================= */
.story-list {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 28px); max-width: 1000px; margin-inline: auto;
}
.story {
  padding: clamp(24px, 3.6vw, 38px); border-radius: 22px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -44px rgba(30, 22, 18, .55);
}
.story-num { display: flex; align-items: center; gap: 14px; }
.story-num strong {
  font: italic 900 clamp(3rem, 7vw, 4.4rem)/.9 var(--font-display); color: var(--red);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.story-num span {
  max-width: 17ch; font: 800 .74rem/1.35 var(--font-display); letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-deep);
}
.story-who { margin-top: 18px; font: 700 .78rem/1.3 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.story h3 { margin-top: 6px; font: italic 900 clamp(1.3rem, 2.6vw, 1.65rem)/1.2 var(--font-display); color: var(--ink); }
.story h3 + p { margin-top: 10px; color: var(--ink-2); }
/* the last card stands out: thirty years, then never again */
.story-final { background: var(--ink); border-color: var(--ink); }
.story-final .story-num strong { color: var(--red-on-dark); }
.story-final .story-num span { color: var(--gold-light); }
.story-final .story-who { color: rgba(251, 244, 234, .6); }
.story-final h3 { color: var(--paper); }
.story-final h3 + p { color: rgba(251, 244, 234, .82); }

/* ================= COST CALCULATOR ================= */
.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1000px; margin-inline: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 70px -46px rgba(30, 22, 18, .6);
}
.calc-inputs { padding: clamp(22px, 4vw, 44px); display: grid; gap: 28px; align-content: start; }
.field { display: grid; gap: 10px; min-width: 0; }
.field label { font: 800 .78rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.range-row { display: flex; align-items: center; gap: 18px; }
.range-row input { flex: 1; min-width: 0; accent-color: var(--red); height: 28px; }
.range-row output { min-width: 2.2ch; text-align: right; font: italic 900 2.3rem/1 var(--font-display); color: var(--red); font-variant-numeric: tabular-nums; }
.calc input[type="number"], .calc select {
  width: 100%; min-width: 0; padding: 12px 14px; font: 700 1rem/1.2 var(--font-display);
  background: var(--paper); border: 2px solid var(--line-strong); border-radius: 12px;
}
.calc input[type="number"]:focus, .calc select:focus { outline: none; border-color: var(--red); }
.money { display: flex; }
.money select { width: auto; flex: 0 0 auto; border-radius: 12px 0 0 12px; border-right-width: 1px; cursor: pointer; }
.money input { border-radius: 0 12px 12px 0 !important; border-left-width: 1px !important; }
.calc-results {
  padding: clamp(22px, 4vw, 44px); background: var(--ink); color: var(--paper);
  display: grid; gap: 16px; align-content: center;
}
.res { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(251, 244, 234, .14); }
.res-label { font: 700 .78rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: rgba(251, 244, 234, .7); }
.res-val { font: italic 900 clamp(1.4rem, 3vw, 2rem)/1.1 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.res-big .res-val { color: var(--red-on-dark); font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.res-note { color: rgba(251, 244, 234, .8); font-size: 1rem; }
.res-note strong { color: var(--gold-light); font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* ================= QUESTIONS ================= */
.q-list { list-style: none; }
.q-list li {
  position: relative; padding: 20px 0 20px 50px; border-bottom: 1px solid var(--line);
  font: 800 clamp(1.1rem, 2.2vw, 1.4rem)/1.32 var(--font-display); color: var(--ink);
}
.q-list li:first-child { border-top: 1px solid var(--line); }
.q-list li::before { /* one gold chain link */
  content: ""; position: absolute; left: 2px; top: 50%;
  width: 30px; height: 16px; border: 3.5px solid var(--gold); border-radius: 10px;
  transform: translateY(-50%) rotate(-24deg);
}
.also-inside { /* "Also inside: ..." under the heading (logical properties, so it flips in Arabic) */
  margin-top: 1.6rem; max-width: 46ch; padding-inline-start: 16px;
  border-inline-start: 3px solid var(--gold); color: var(--ink-2); font-size: 1.04rem; line-height: 1.55;
}

/* ================= FAQ ================= */
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 52px 22px 0;
  font: 800 clamp(1.02rem, 2vw, 1.18rem)/1.35 var(--font-display); color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font: 700 1.3rem/1 var(--font-display);
  transition: transform .3s ease, background-color .3s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--ink); }
.faq-list details p { padding: 0 52px 24px 0; color: var(--ink-2); font-size: 1.08rem; }

/* ================= GET THE BOOK ================= */
.get-grid {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: center;
  width: min(1020px, 100%);
}
.get-cover { width: clamp(150px, 22vw, 270px); height: auto; border-radius: 6px; box-shadow: 0 40px 60px -30px rgba(30, 22, 18, .7); }
/* The cover sits tilted. It floats gently, a light sweeps across it once, and on a computer it leans toward the mouse (script.js). */
.get-cover-wrap { position: relative; perspective: 1000px; }
.cover-3d { position: relative; transform: rotate(-4deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.sheen { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; pointer-events: none; }
.sheen::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 250, 235, .6) 50%, rgba(255, 255, 255, 0));
  transform: translateX(-130%) skewX(-12deg);
}
.js .get-cover-wrap.reveal.in .sheen::after { animation: sheen 1.7s cubic-bezier(.4, 0, .2, 1) .9s both; }
.js .get-cover-wrap.reveal.in { animation: floaty 7s ease-in-out 1.5s infinite; }
@keyframes sheen { to { transform: translateX(330%) skewX(-12deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.book-format { margin-top: 12px; font: 800 .8rem/1.3 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.notify { display: flex; gap: 10px; margin-top: 26px; max-width: 520px; }
.notify input {
  flex: 1; min-width: 0; padding: 15px 22px; border-radius: 999px;
  border: 2px solid var(--line-strong); background: var(--card); font: 600 1rem/1.2 var(--font-display);
}
.notify input:focus { outline: none; border-color: var(--red); }
.form-msg { margin-top: 14px; min-height: 1.6em; font: 700 .98rem/1.4 var(--font-display); color: var(--ink); }
.form-msg.err { color: var(--red); }
/* Sign-up messages stay hidden until the Formspree script shows one (it adds data-fs-active).
   The script injects the same rule, but this keeps them hidden if the script is blocked or slow. */
[data-fs-error]:not([data-fs-active]), [data-fs-success]:not([data-fs-active]) { display: none; }

/* ================= FOOTER ================= */
.footer {
  background: var(--ink); color: rgba(251, 244, 234, .78); text-align: center;
  padding-block: 44px calc(44px + env(safe-area-inset-bottom, 0px));
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: grid; gap: 6px; font-size: .95rem;
}
.footer-title { font: italic 900 1.35rem/1.2 var(--font-display); color: var(--paper); }
.footer-title span { font-size: .75em; font-weight: 800; }
.footer-title em { color: var(--red-on-dark); }
.footer .muted { color: rgba(251, 244, 234, .45); margin-top: 6px; }

/* ================= SEND IT TO A SMOKER ================= */
.share-card {
  max-width: 760px; margin-inline: auto;
  padding: clamp(30px, 5vw, 56px) clamp(20px, 5vw, 56px);
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 40px 70px -50px rgba(30, 22, 18, .6);
}
.share-card .sec-lead { max-width: 44ch; margin-inline: auto; }
.share-btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-wa { background: #0b7a5c; color: #fff; box-shadow: 0 12px 26px -10px rgba(11, 122, 92, .55); }
.btn-wa:hover { background: #075e47; }
.btn-wa svg { width: 1.35em; height: 1.35em; }
.share-btns .btn-line svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-msg { margin-top: 14px; min-height: 1.5em; font: 700 .95rem/1.4 var(--font-display); color: var(--gold-deep); overflow-wrap: anywhere; }

/* ================= READ THE FIRST PAGE ================= */
/* The opening of the book, set like a printed page lying on two more pages */
.page-stack { position: relative; max-width: 660px; margin-inline: auto; }
.page-stack::before, .page-stack::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px;
  background: #f6eddf; border: 1px solid var(--line);
}
.page-stack::before { transform: rotate(-2.2deg) translate(-6px, 8px); }
.page-stack::after { transform: rotate(1.4deg) translate(5px, 4px); }
.book-page {
  position: relative; z-index: 1;
  padding: clamp(32px, 6vw, 64px) clamp(22px, 6vw, 64px) clamp(26px, 4vw, 40px);
  background: #fffcf6; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 40px 70px -40px rgba(30, 22, 18, .55), inset 0 0 70px rgba(201, 147, 40, .08);
}
.page-head { text-align: center; margin-bottom: 26px; }
.page-chapter { font: 800 .72rem/1 var(--font-display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }
.page-title { margin-top: 12px; font: italic 500 clamp(1.5rem, 3.4vw, 2rem)/1.2 var(--font-body); color: var(--ink); }
.page-text p { font: 400 clamp(1.04rem, 2vw, 1.15rem)/1.8 var(--font-body); color: var(--ink); text-align: justify; hyphens: auto; }
.page-text p + p { text-indent: 1.6em; }
html[dir="ltr"] .page-text p:first-child::first-letter { /* a drop cap, English only (Arabic letters must stay joined) */
  float: left; font: 500 3.5em/.82 var(--font-body); color: var(--red); padding: .08em .1em 0 0;
}
.page-text .page-more { /* the next paragraph, fading out */
  max-height: 3.6em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 15%, transparent); mask-image: linear-gradient(#000 15%, transparent);
}
.page-num { margin-top: 14px; text-align: center; font: 500 .9rem/1 var(--font-body); color: var(--muted); }
.excerpt-cta { margin-top: clamp(32px, 4vw, 46px); text-align: center; }
.js .page-stack.reveal { transform: perspective(1400px) translateY(46px) rotateX(9deg); transform-origin: 50% 100%; transition-duration: 1.2s; }
.js .page-stack.reveal.in { transform: none; }

/* ================= ABOUT THE AUTHOR ================= */
.author-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 6vw, 84px); align-items: center; }
.author-text .prose { margin-top: 22px; }
.author-facts { list-style: none; display: grid; gap: 14px; }
.author-facts li {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 50px -40px rgba(30, 22, 18, .55);
}
.author-facts strong { /* the same width on every card, so the words beside the numbers line up */
  flex: 0 0 auto; width: 2.3ch; text-align: center;
  font: italic 900 clamp(2.4rem, 5vw, 3.2rem)/1 var(--font-display); color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.author-facts span { font: 800 .76rem/1.4 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.author-facts .fact-free { background: var(--ink); border-color: var(--ink); }
.author-facts .fact-free strong { color: var(--red-on-dark); }
.author-facts .fact-free span { color: var(--gold-light); }

/* ================= MOTION =================
   Everything here moves only opacity and transform, which the browser animates without repainting,
   so scrolling stays smooth. Each effect plays once when it comes on screen (script.js adds .in),
   and "reduce motion" switches them all off (end of this file). */

/* Reading progress: a thin line under the top bar burns down like a cigarette as you read,
   and goes out at the end of the page. One element slides; script.js says how far. */
.burnline { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; clip-path: inset(-8px 0); }
.burnline i {
  position: absolute; inset: 0; transform: translateX(-100%); will-change: transform;
  background: linear-gradient(90deg, rgba(75, 60, 51, .12), rgba(75, 60, 51, .4) 80%, rgba(239, 106, 28, .9));
}
.burnline i::after { /* the ember */
  content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: radial-gradient(circle, #fff0b8 0 18%, #ffb347 34%, #ef6a1c 52%, rgba(239, 106, 28, 0) 72%);
  animation: flicker 1.4s ease-in-out infinite alternate;
}
.burnline.out i::after { animation: none; opacity: 0; transition: opacity 1s ease; }

/* Section labels: their small gold lines draw out from the word */
.js .reveal .kicker::before, .js .reveal .kicker::after { transform: scaleX(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1) .3s; }
.js .reveal .kicker::before { transform-origin: 100% 50%; }
.js .reveal .kicker::after { transform-origin: 0 50%; }
.js .reveal.in .kicker::before, .js .reveal.in .kicker::after { transform: none; }

/* Headings: a gold brush stroke sweeps under the red words */
h2 .red {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9.5C52 4 128 1.5 198 4c-66 1.8-130 4.2-196 5.5Z' fill='%23c99328' fill-opacity='.55'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .28em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.js .reveal h2 .red { background-size: 0% .28em; transition: background-size 1.1s cubic-bezier(.6, 0, .2, 1) .55s; }
.js .reveal.in h2 .red { background-size: 100% .28em; }

/* Recovery timeline: the line draws itself, then each step comes in along it */
.js .timeline::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s cubic-bezier(.5, 0, .2, 1) .1s; }
.js .timeline.drawn::before { transform: none; }
.js .step.reveal .step-icon { transform: scale(.35); transition: transform .9s cubic-bezier(.2, 1.6, .35, 1); transition-delay: inherit; }
.js .step.reveal.in .step-icon { transform: none; }
.step-final .step-icon::after { /* a red ring pulses out from the last step a few times */
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--red); opacity: 0; pointer-events: none;
}
.step-final.in .step-icon::after { animation: ring 2.4s ease-out 1.8s 3; }
@keyframes ring { from { opacity: .75; transform: scale(1); } to { opacity: 0; transform: scale(1.75); } }

/* Lists: questions, FAQ and the author's numbers come in one after another (script.js gives each item its --i) */
.js .q-list.reveal, .js .faq-list.reveal, .js .author-facts.reveal { transform: none; }
.js .q-list.reveal li, .js .faq-list.reveal details, .js .author-facts.reveal li {
  opacity: 0; transform: translateX(var(--from-x, -24px));
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 110ms + 150ms);
}
.js .faq-list.reveal details { transform: translateY(18px); }
.js .q-list.reveal.in li, .js .faq-list.reveal.in details, .js .author-facts.reveal.in li { opacity: 1; transform: none; }
.js .q-list.reveal li::before { transform: translateY(-50%) rotate(-110deg) scale(.6); transition: transform 1s cubic-bezier(.2, 1.5, .4, 1); transition-delay: inherit; }
.js .q-list.reveal.in li::before { transform: translateY(-50%) rotate(-24deg); }

/* Main buttons: a soft light passes over them now and then */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .36) 50%, rgba(255, 255, 255, 0));
  transform: translateX(-130%) skewX(-15deg);
  animation: shine 6.5s ease-in-out 3.4s infinite;
}
@keyframes shine { 0% { transform: translateX(-130%) skewX(-15deg); } 15%, 100% { transform: translateX(260%) skewX(-15deg); } }

@media (min-width: 761px) {
  .js .timeline .step:nth-child(2) { transition-delay: .3s; }
  .js .timeline .step:nth-child(3) { transition-delay: .6s; }
  .js .timeline .step:nth-child(4) { transition-delay: .9s; }
  .js .timeline .step:nth-child(5) { transition-delay: 1.2s; }
  .js .story-list .story:nth-child(even) { transition-delay: .15s; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .author-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .story-list { grid-template-columns: minmax(0, 1fr); }
  .timeline::before { top: 12px; bottom: 12px; left: 33px; right: auto; width: 3px; height: auto; background: linear-gradient(var(--gold), var(--red)); }
  .js .timeline::before { transform: scaleY(0); transform-origin: 50% 0; }
  .js .timeline.drawn::before { transform: none; }
  .step { display: grid; grid-template-columns: 68px minmax(0, 1fr); column-gap: 20px; text-align: left; }
  .step-icon { grid-row: 1 / span 3; margin: 0; }
  .step-time { margin-top: 6px; }
  .get-grid { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .get-text .sec-lead.left { margin-inline: auto; }
  .notify { margin-inline: auto; }
}
@media (max-width: 520px) {
  .hero { padding-block: 84px 110px; }
  .hero-cta { flex-direction: column; align-items: stretch; width: min(320px, 100%); margin-inline: auto; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .notify { flex-direction: column; }
  .share-btns { flex-direction: column; align-items: stretch; width: min(340px, 100%); margin-inline: auto; }
  .brand { font-size: .9rem; }
  .faq-list details p { padding-right: 0; }
  .burn-hole { left: 4%; top: 70%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fade-in, .js .reveal, .ready-line .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .ready { height: auto; }
  .ready-pin { position: relative; height: auto; padding-block: 18vh; }
  .js .timeline::before, .js .step.reveal .step-icon, .js .q-list.reveal li, .js .faq-list.reveal details, .js .author-facts.reveal li, .js .page-stack.reveal,
  .js .reveal .kicker::before, .js .reveal .kicker::after { opacity: 1 !important; transform: none !important; }
  .js .q-list.reveal li::before { transform: translateY(-50%) rotate(-24deg) !important; }
  .js .reveal h2 .red { background-size: 100% .28em !important; }
  .btn-shine::after, .sheen, .step-final .step-icon::after, .burnline i::after { display: none; }
  .js .get-cover-wrap.reveal.in { animation: none; }
}

/* Sign-up messages from Formspree: the field error sits inside the form, on its own line */
.notify { flex-wrap: wrap; }
.notify .form-msg { flex: 0 0 100%; margin-top: 0; }
