/* The Ulcer Relief Handbook landing page
   Mobile first. Breakpoints: 640px, 960px. */

:root {
  --forest-950: #07170F;
  --forest-900: #0B2117;
  --forest-850: #0F2A1E;
  --forest-800: #143626;
  --forest-700: #1C4A35;
  --green-600: #1F6B45;
  --green-500: #2A8558;
  --leaf-400: #8FD16F;
  --leaf-300: #A9DE8C;
  --leaf-200: #CDEDB9;
  --leaf-100: #E8F6DE;
  --gold: #D4A24C;
  --gold-soft: #F3E6CC;
  --clay: #9A5A2C;
  --warm: #F8EFE2;

  --paper: #FCFBF7;
  --cream: #F5F1E7;
  --sand: #EAE3D2;
  --ink: #0D1C14;
  --ink-2: #33443A;
  --muted: #5E6E64;
  --line: rgba(13, 28, 20, .09);
  --line-2: rgba(13, 28, 20, .14);
  --on-dark: #EEF3EC;
  --on-dark-2: rgba(238, 243, 236, .68);
  --line-dark: rgba(238, 243, 236, .1);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(7, 23, 15, .05), 0 2px 8px rgba(7, 23, 15, .04);
  --shadow-md: 0 1px 2px rgba(7, 23, 15, .06), 0 12px 32px -12px rgba(7, 23, 15, .18);
  --shadow-lg: 0 2px 4px rgba(7, 23, 15, .06), 0 32px 64px -24px rgba(7, 23, 15, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--leaf-200); color: var(--forest-900); }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

/* Type */
.display {
  font-size: clamp(2.6rem, 11.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 600;
  text-wrap: balance;
}
.display em, .h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
.display em { font-size: 1.1em; color: var(--leaf-300); line-height: .9; }
.display--sm { font-size: clamp(2.1rem, 9vw, 3.6rem); }
.h2 {
  font-size: clamp(2rem, 8.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 600;
  text-wrap: balance;
}
.h2 em { font-size: 1.1em; color: var(--green-600); }
.lede { font-size: 1.075rem; line-height: 1.6; color: var(--on-dark-2); max-width: 34em; }
.sub { font-size: 1.05rem; color: var(--muted); max-width: 34em; margin-top: 14px; text-wrap: pretty; }

/* Buttons */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  white-space: nowrap; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: .88rem; }
.btn--lg { --h: 58px; font-size: 1.04rem; padding: 0 26px; }
.btn--block { width: 100%; }
.btn--leaf {
  background: var(--leaf-400);
  color: var(--forest-950);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1px 2px rgba(7,23,15,.2), 0 10px 24px -10px rgba(143, 209, 111, .6);
}
.btn--leaf:hover { background: var(--leaf-300); }
.btn--ghost {
  color: var(--on-dark);
  background: rgba(238, 243, 236, .05);
  box-shadow: inset 0 0 0 1.5px rgba(238, 243, 236, .28);
}
.btn--ghost:hover { background: rgba(238, 243, 236, .1); }
.hero__cta .btn--ghost { margin-top: 12px; }
.btn .ic { width: 18px; height: 18px; stroke-width: 2.1; }
.btn__sep { width: 1px; height: 18px; background: rgba(7, 23, 15, .22); }
.btn__price { font-weight: 700; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, .quotes:focus-visible {
  outline: 2px solid var(--leaf-400); outline-offset: 3px;
}

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0;
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; padding: 0 10px 0 16px;
  border-radius: 999px;
  background: rgba(11, 33, 23, .97);
  border: 1px solid rgba(238, 243, 236, .09);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.4);
  transition: background-color .3s var(--ease);
}
.nav.is-scrolled .nav__bar { background: rgb(9, 28, 19); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--on-dark); }
.brand__mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--leaf-400), var(--green-500));
  color: var(--forest-950);
}
.brand__mark .ic { width: 18px; height: 18px; stroke-width: 2; }
.brand__name { font-weight: 700; font-size: 1.12rem; letter-spacing: -.03em; }
.brand__name span { color: var(--leaf-400); }

/* Hero */
.hero {
  position: relative;
  background: var(--forest-900);
  color: var(--on-dark);
  padding: calc(112px + env(safe-area-inset-top, 0px)) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(238,243,236,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
.hero__glow {
  position: absolute; z-index: -1;
  width: 620px; height: 620px; border-radius: 50%;
  right: -260px; bottom: -120px;
  background: radial-gradient(closest-side, rgba(143,209,111,.28), rgba(143,209,111,0));
}
.hero__grid { display: grid; gap: 8px; }
.hero__copy .lede { margin-top: 20px; }
.hero__cta { margin-top: 28px; }
.assure {
  display: flex; flex-wrap: nowrap; justify-content: center; gap: 8px 14px;
  margin-top: 16px;
  font-size: .76rem; color: var(--on-dark-2);
}
.assure li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.assure .ic { width: 14px; height: 14px; color: var(--leaf-400); }

/* 3D book */
.hero__visual { padding: 28px 0 44px; }
.stage {
  position: relative;
  height: 470px;
  display: grid; place-items: center;
  perspective: 1600px;
}
.book {
  --w: 216px; --h: 312px; --d: 30px;
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(5deg) rotateZ(-1deg);
  animation: float 7s ease-in-out infinite;
}
.book > div { position: absolute; }
.book__front {
  inset: 0;
  transform: translateZ(calc(var(--d) / 2));
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  box-shadow: inset 4px 0 6px -2px rgba(0,0,0,.35);
}
.book__back {
  inset: 0;
  transform: translateZ(calc(var(--d) / -2));
  border-radius: 3px 8px 8px 3px;
  background: var(--forest-950);
  box-shadow: 30px 30px 60px rgba(0,0,0,.5);
}
.book__pages {
  top: 5px; bottom: 5px;
  width: var(--d);
  left: calc(var(--w) - var(--d) / 2 - 3px);
  transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #F4EFE2 0 1.5px, #DDD4BF 1.5px 2.5px);
}
.book__spine {
  top: 0; bottom: 0;
  width: var(--d);
  left: calc(var(--d) / -2);
  transform: rotateY(-90deg);
  background: linear-gradient(90deg, #06140D, #0E2A1D);
}
.cover {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  padding: 22px 20px 18px 24px;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(143,209,111,.28), transparent 60%),
    linear-gradient(160deg, #1A4632 0%, #0E2A1D 55%, #081A11 100%);
  color: #F2EEE3;
}
.cover::before {
  content: ""; position: absolute; inset: 9px; border: 1px solid rgba(205, 237, 185, .2); border-radius: 3px 5px 5px 3px; pointer-events: none;
}
.cover::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 7px; width: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,.12), rgba(0,0,0,.25), rgba(255,255,255,.08));
}
.cover__art { position: absolute; right: -24px; top: 34px; width: 190px; color: var(--leaf-300); opacity: .5; }
.cover__author { position: relative; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--leaf-200); font-weight: 500; }
.cover__title {
  position: relative; margin-top: auto;
  font-family: var(--serif); font-size: 44px; line-height: .92; letter-spacing: -.01em;
}
.cover__rule { position: relative; width: 38px; height: 2px; background: var(--gold); margin: 14px 0 10px; border-radius: 2px; }
.cover__sub { position: relative; font-size: 9.5px; line-height: 1.45; color: rgba(242, 238, 227, .72); max-width: 150px; }
.cover__brand {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  margin-top: 18px; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(242, 238, 227, .6);
}
.cover__brand .ic { width: 11px; height: 11px; color: var(--leaf-400); }
.stage__shadow {
  position: absolute; bottom: 58px; left: 50%;
  width: 240px; height: 36px; transform: translateX(-46%);
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent);
  animation: shadow 7s ease-in-out infinite;
}
.chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  font-size: .8rem; color: var(--on-dark-2);
  background: rgb(20, 54, 38);
  border: 1px solid rgba(238, 243, 236, .12);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.chip b { color: var(--on-dark); font-weight: 600; }
.chip .ic {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  background: var(--leaf-400); color: var(--forest-950); stroke-width: 2;
}
.chip--a { left: 0; top: 4px; animation: bob 6s ease-in-out infinite; }
.chip--b { right: 0; bottom: 4px; animation: bob 6s ease-in-out -3s infinite; }

@keyframes float { 50% { transform: rotateY(-24deg) rotateX(3deg) rotateZ(-1deg) translateY(-10px); } }
@keyframes shadow { 50% { opacity: .7; transform: translateX(-46%) scale(.92); } }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* Proof strip */
.strip { background: var(--forest-950); color: var(--on-dark-2); border-top: 1px solid var(--line-dark); }
.strip__row { display: grid; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
.strip__item { display: flex; align-items: center; gap: 12px; font-size: .92rem; line-height: 1.45; }
.strip__item .ic { color: var(--leaf-400); width: 22px; height: 22px; }

/* Sections */
.section { padding: 80px 0; background: var(--paper); }
.section--cream { background: var(--cream); }
.section--forest { background: var(--forest-900); color: var(--on-dark); }
.section--forest .h2 em { color: var(--leaf-300); }
.head { margin-bottom: 36px; }
.head--light .sub { color: var(--on-dark-2); }

/* Pains */
.pains { display: grid; gap: 10px; }
.pain {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px 16px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.pain { align-items: flex-start; padding: 18px 18px 18px 14px; }
.pain h3 { font-size: 1.02rem; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.pain p { font-size: .93rem; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.pain__ic {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: #FBEDE4; color: #B4532A;
}
.turn {
  margin-top: 28px; padding: 24px 22px;
  border-radius: var(--r-lg);
  background: var(--forest-900); color: var(--on-dark-2);
  font-size: 1.04rem; line-height: 1.6;
  position: relative; overflow: hidden;
}
.turn::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(143,209,111,.25), transparent);
}
.turn strong { color: var(--on-dark); font-weight: 600; }

/* Three steps */
.steps3 { display: grid; gap: 12px; counter-reset: s; }
.step3 {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 22px;
  border-radius: var(--r-lg);
  background: var(--cream);
  border: 1px solid var(--line);
}
.step3__n {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.6rem; line-height: 1;
  background: var(--forest-900); color: var(--leaf-300);
}
.step3 h3 { font-size: 1.22rem; letter-spacing: -.025em; font-weight: 600; }
.step3 p { margin-top: 4px; color: var(--muted); font-size: .98rem; }

/* Sneak peek page */
.page {
  position: relative;
  background: #FBF8F0;
  color: var(--ink);
  border-radius: 6px 18px 18px 6px;
  padding: 26px 22px 0;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 6px 0 10px -6px rgba(0,0,0,.15);
  overflow: hidden;
  max-width: 560px;
}
.page__top { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.page__ch { color: var(--green-600); font-weight: 600; }
.page__title { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; line-height: 1.05; letter-spacing: -.01em; margin-top: 18px; }
.page__intro { margin-top: 10px; font-size: .95rem; color: var(--ink-2); line-height: 1.6; }
.page__cols { display: grid; gap: 18px; margin-top: 20px; }
.page__cols h4 { font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.page__cols ul li, .page__cols ol li { font-size: .92rem; color: var(--ink-2); padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.page__cols ol { counter-reset: m; }
.page__cols ol li { counter-increment: m; display: flex; gap: 10px; }
.page__cols ol li::before { content: counter(m); font-weight: 600; color: var(--green-600); }
.page__cols ul li { display: flex; gap: 10px; }
.page__cols ul li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--leaf-400); }
.page__fade {
  position: relative; margin: -80px -22px 0; padding: 110px 22px 24px;
  background: linear-gradient(to bottom, rgba(251,248,240,0), #FBF8F0 60%);
  text-align: center;
}
.page__fade span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--forest-900); color: var(--on-dark); font-size: .86rem; font-weight: 500;
}
.page__fade .ic { width: 15px; height: 15px; color: var(--leaf-400); }

/* Table of contents */
.toc { border-top: 1px solid var(--line-2); }
.toc li {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 6px 10px;
  padding: 22px 0; border-bottom: 1px solid var(--line-2);
}
.toc__p { font-size: .78rem; color: var(--muted); white-space: nowrap; padding-top: 5px; font-variant-numeric: tabular-nums; }
.toc .toc__warn {
  margin-top: 12px; padding: 20px 16px 20px 14px;
  background: var(--warm); border: 1px solid rgba(154, 90, 44, .16); border-radius: var(--r-md);
}
.toc__warn .toc__n { color: var(--clay); }
.toc__warn .toc__n .ic { width: 24px; height: 24px; margin-top: 2px; }

/* Package note */
.more {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 28px; padding: 22px 20px;
  border-radius: var(--r-lg);
  background: var(--leaf-100); border: 1px solid rgba(31, 107, 69, .14);
}
.more__ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--green-600); color: #fff; }
.more h3 { font-size: 1.1rem; letter-spacing: -.02em; font-weight: 600; }
.more p { color: var(--ink-2); font-size: .95rem; margin-top: 6px; }
.more a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--green-600); font-weight: 600; font-size: .95rem; text-decoration: none; }
.more a .ic { width: 16px; height: 16px; stroke-width: 2.2; }

/* Kente stripe */
.kente {
  display: block; height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--green-600) 0 30px, var(--gold) 30px 40px, var(--forest-950) 40px 46px,
    var(--clay) 46px 62px, var(--gold) 62px 66px, var(--leaf-400) 66px 82px, var(--forest-950) 82px 86px);
}
.kente--cover { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; opacity: .9; }

/* Hero secondary link */
.peek-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; font-size: .92rem; font-weight: 500;
  color: var(--on-dark); text-decoration: none;
  border-bottom: 1px solid rgba(238, 243, 236, .25); padding-bottom: 2px;
}
.peek-link .ic { width: 15px; height: 15px; color: var(--leaf-400); }

/* Remedy cards */
.remedies__title { margin-top: 56px; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; color: var(--on-dark); }
.remedies {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 18px var(--gutter) 6px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; max-width: 1120px; margin: 0 auto;
}
.remedies::-webkit-scrollbar { display: none; }
.remedy {
  flex: 0 0 76%; scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 22px 20px 18px;
  border-radius: var(--r-lg);
  background: rgba(238, 243, 236, .05); border: 1px solid var(--line-dark);
}
.remedy__tag { align-self: flex-start; padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: rgba(212, 162, 76, .14); color: var(--gold); }
.remedy h4 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.05; margin-top: 16px; color: var(--on-dark); }
.remedy p { color: var(--on-dark-2); font-size: .92rem; line-height: 1.55; margin-top: 8px; flex: 1; }
.remedy__ch { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-dark); font-size: .8rem; color: var(--leaf-300); }
.toc__n { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--green-600); font-style: italic; }
.toc h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; }
.toc p { margin-top: 5px; color: var(--muted); font-size: .96rem; line-height: 1.55; }

/* Tiles */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  padding: 18px 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.tile__ic {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--leaf-100); color: var(--green-600);
  margin-bottom: 16px;
}
.tile h3 { font-size: 1rem; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; }
.tile p { margin-top: 5px; font-size: .88rem; line-height: 1.5; color: var(--muted); }

/* Fit */
.fit { display: grid; gap: 12px; max-width: 640px; }
.fit__col { padding: 24px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.fit__col h3 { font-size: 1.15rem; letter-spacing: -.02em; font-weight: 600; margin-bottom: 14px; }
.fit__col li { display: flex; gap: 12px; padding: 9px 0; font-size: .98rem; line-height: 1.45; }
.fit__col .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; stroke-width: 2.4; margin-top: 1px; }
.fit__col--yes { background: var(--leaf-100); border-color: rgba(31, 107, 69, .14); }
.fit__col--yes .ic { background: var(--green-600); color: #fff; }
.fit__col--no { background: var(--paper); }
.fit__col--no .ic { background: var(--sand); color: var(--ink-2); }
.fit__col--no li { color: var(--muted); }

/* Author */
.author { display: grid; gap: 32px; }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5; max-width: 420px;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(90% 60% at 20% 10%, rgba(143,209,111,.3), transparent 60%),
    linear-gradient(160deg, var(--forest-700), var(--forest-950));
  border: 1px solid var(--line-dark);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.portrait__initials { font-family: var(--serif); font-size: 7rem; color: rgba(238, 243, 236, .9); letter-spacing: -.02em; }
.portrait__leaf { position: absolute; right: -30px; bottom: -30px; width: 220px; height: 220px; color: rgba(143,209,111,.15); stroke-width: .6; }
.author__copy p { color: var(--on-dark-2); font-size: 1.04rem; margin-top: 16px; }
.author__copy .h2 { margin-bottom: 4px; }
.creds { margin-top: 28px; display: grid; gap: 10px; }
.creds li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--r-md);
  background: rgba(238, 243, 236, .04); border: 1px solid var(--line-dark);
  font-size: .94rem; line-height: 1.5; color: var(--on-dark);
}
.creds .ic { color: var(--gold); width: 22px; height: 22px; margin-top: 1px; }
.creds a { color: var(--leaf-300); font-weight: 600; text-underline-offset: 3px; }
.motto {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  font-family: var(--serif); font-style: italic; font-size: 1.55rem; line-height: 1.2; color: var(--gold);
}
.author__copy .motto { color: var(--gold); font-size: 1.55rem; }

/* Testimonials */
.quotes {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 12px;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  max-width: 1120px; margin: 0 auto;
}
.quotes::-webkit-scrollbar { display: none; }
.quote {
  flex: 0 0 84%;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 24px 22px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 3px; color: #D9A53B; }
.stars .ic { width: 16px; height: 16px; fill: currentColor; stroke-width: 1; }
.quote blockquote { margin-top: 16px; font-size: 1.06rem; line-height: 1.55; letter-spacing: -.01em; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote figcaption b { display: block; font-size: .92rem; font-weight: 600; }
.quote figcaption small { display: block; font-size: .82rem; color: var(--muted); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest-800); color: var(--leaf-300);
  font-weight: 600; font-size: .9rem;
}

/* Offer */
.offer {
  max-width: 520px; margin: 0 auto;
  padding: 26px 22px 22px;
  border-radius: var(--r-xl);
  background: var(--forest-900); color: var(--on-dark);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  isolation: isolate;
}
.offer::before {
  content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -160px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(143,209,111,.3), transparent);
}
.offer__top { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line-dark); }
.offer__title { font-size: 1.45rem; letter-spacing: -.03em; font-weight: 600; line-height: 1.15; }
.offer__by { color: var(--on-dark-2); font-size: .92rem; margin-top: 2px; }
.mini-book {
  flex: none; width: 64px; height: 90px;
  border-radius: 2px 6px 6px 2px;
  padding: 8px 7px;
  display: flex; align-items: flex-end;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(143,209,111,.35), transparent 60%),
    linear-gradient(160deg, #1A4632, #081A11);
  box-shadow: inset 3px 0 4px -1px rgba(0,0,0,.4), 0 10px 20px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(238,243,236,.08);
}
.mini-book { position: relative; overflow: hidden; }
.mini-book::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--green-600) 0 8px, var(--gold) 8px 11px, var(--clay) 11px 15px, var(--leaf-400) 15px 19px);
}
.mini-book span { position: relative; font-family: var(--serif); color: #F2EEE3; font-size: 13px; line-height: .95; }
.mini-book--sm { width: 52px; height: 72px; }
.mini-book--sm span { font-size: 11px; }
.offer__list { display: grid; gap: 4px; padding: 18px 0; }
.offer__list li { display: flex; gap: 13px; align-items: center; padding: 8px 0; font-size: .98rem; line-height: 1.4; }
.offer__list .ic { color: var(--leaf-400); width: 20px; height: 20px; }
.offer__price {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 20px 0; margin-bottom: 18px;
  border-top: 1px solid var(--line-dark);
}
.price { display: flex; align-items: flex-start; gap: 5px; font-size: 3.3rem; line-height: 1; font-weight: 600; letter-spacing: -.05em; }
.price small { font-size: .95rem; font-weight: 600; letter-spacing: 0; margin-top: 8px; color: var(--leaf-300); }
.offer__price > div { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-width: 0; }
.price__note { display: block; color: var(--on-dark-2); font-size: .84rem; line-height: 1.3; white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(143,209,111,.14); color: var(--leaf-300);
  font-size: .8rem; font-weight: 600;
}
.badge .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.pay { margin-top: 18px; text-align: center; }
.pay__lock { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--on-dark-2); }
.pay__lock .ic { width: 14px; height: 14px; }
.pay__methods { display: flex; flex-wrap: nowrap; justify-content: center; gap: 5px; margin-top: 12px; }
.pay__methods span {
  padding: 4px 8px; border-radius: 7px; white-space: nowrap;
  background: rgba(238, 243, 236, .06); border: 1px solid var(--line-dark);
  font-size: .66rem; font-weight: 600; color: var(--on-dark-2);
}

/* Flow */
.flow { display: grid; gap: 0; position: relative; }
.flow li { display: flex; gap: 18px; position: relative; padding-bottom: 28px; }
.flow li:last-child { padding-bottom: 0; }
.flow li:not(:last-child)::before {
  content: ""; position: absolute; left: 23px; top: 52px; bottom: 6px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-2) 0 5px, transparent 5px 10px);
}
.flow__ic {
  flex: none; width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--green-600);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.flow h3 { font-size: 1.12rem; letter-spacing: -.02em; font-weight: 600; margin-top: 2px; }
.flow p { color: var(--muted); font-size: .98rem; margin-top: 3px; }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  font-size: 1.06rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic {
  width: 32px; height: 32px; padding: 7px; border-radius: 50%;
  background: var(--cream); transition: transform .3s var(--ease), background-color .2s;
}
.faq details[open] summary .ic { transform: rotate(45deg); background: var(--leaf-200); }
.faq details p { padding: 0 44px 22px 0; color: var(--muted); font-size: .98rem; }
.faq details a { color: var(--green-600); font-weight: 500; }

/* Final */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--forest-900); color: var(--on-dark);
  padding: 96px 0 100px;
  text-align: center;
}
.final__glow {
  position: absolute; z-index: -1; left: 50%; top: 100%;
  width: 800px; height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(143,209,111,.3), transparent);
}
.final__inner { max-width: 640px; }
.final .display { font-size: clamp(2.5rem, 11.6vw, 4.8rem); line-height: .98; letter-spacing: -.05em; }
.final .display em { color: var(--gold); display: inline-block; margin-top: 6px; white-space: nowrap; font-size: 1.05em; }
.final__sub { margin: 22px auto 0; max-width: 30em; color: var(--on-dark-2); font-size: 1.05rem; text-wrap: pretty; }
.final .btn { margin-top: 34px; }
.final__note { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .88rem; color: var(--on-dark-2); }
.final__note .ic { width: 16px; height: 16px; color: var(--leaf-400); }

/* Footer */
.foot { background: var(--forest-950); color: var(--on-dark-2); padding: 48px 0 calc(110px + var(--safe-b)); font-size: .88rem; }
.brand--light { color: var(--on-dark); }
.foot__top { display: flex; flex-direction: column; gap: 22px; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.foot__contact { display: flex; flex-wrap: wrap; gap: 10px; }
.foot__contact a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line-dark); text-decoration: none; color: var(--on-dark);
}
.foot__contact .ic { width: 16px; height: 16px; color: var(--leaf-400); }
.foot__addr { display: flex; align-items: center; gap: 8px; padding: 20px 0 0; }
.foot__addr .ic { width: 16px; height: 16px; color: var(--leaf-400); }
.foot__disc { margin-top: 20px; border-top: 1px solid var(--line-dark); display: flex; gap: 12px; padding: 24px 0; line-height: 1.6; border-bottom: 1px solid var(--line-dark); }
.foot__disc .ic { width: 18px; height: 18px; margin-top: 3px; color: #D9A53B; }
.foot__bottom { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 22px; font-size: .82rem; }
.foot__bottom a { color: var(--on-dark); }

/* Sticky dock */
.dock {
  position: fixed; z-index: 30;
  left: 10px; right: 10px; bottom: calc(10px + var(--safe-b));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 20px;
  background: rgb(9, 28, 19);
  border: 1px solid rgba(238, 243, 236, .1);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.5);
  color: var(--on-dark);
  transform: translateY(calc(100% + 30px));
  transition: transform .45s var(--ease);
}
.dock.is-on { transform: none; }
.dock__info { display: grid; line-height: 1.25; min-width: 0; }
.dock__info b { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.dock__info span { font-size: .8rem; color: var(--on-dark-2); white-space: nowrap; }
.dock__info b, .dock__info span { overflow: hidden; text-overflow: ellipsis; }
.dock__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.dock__wa {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(238, 243, 236, .07); border: 1px solid var(--line-dark);
  color: #25D366;
}
.dock__wa .ic { width: 22px; height: 22px; }

/* Checkout sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(4, 12, 8, .55); animation: fade .3s var(--ease); }
.sheet__panel {
  position: relative; width: 100%; max-width: 480px;
  max-height: 92dvh; overflow-y: auto;
  padding: 12px 20px calc(22px + var(--safe-b));
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.3);
  animation: up .42s var(--ease);
}
.sheet.is-closing .sheet__panel { animation: down .28s var(--ease) forwards; }
.sheet.is-closing .sheet__scrim { animation: fade .28s var(--ease) reverse forwards; }
.sheet__grab { display: block; width: 40px; height: 5px; border-radius: 5px; background: var(--sand); margin: 0 auto 14px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head span { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.sheet__head span .ic { width: 16px; height: 16px; color: var(--green-600); }
.sheet__close {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); color: var(--ink-2);
}
.sheet__close .ic { width: 18px; height: 18px; }
.sheet__product {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; margin: 14px 0 22px;
  background: var(--cream); border-radius: var(--r-md);
}
.sheet__product h2 { font-size: 1.05rem; letter-spacing: -.02em; font-weight: 600; line-height: 1.25; }
.sheet__product p { font-size: .82rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.sheet__price { margin-left: auto; font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; white-space: nowrap; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .88rem; font-weight: 600; letter-spacing: -.01em; }
.field i { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input {
  width: 100%; height: 54px; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #9AA59E; }
.field input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(42, 133, 88, .14); }
.field input[aria-invalid="true"] { border-color: #C2412D; box-shadow: 0 0 0 4px rgba(194, 65, 45, .1); }
.field small { font-size: .8rem; color: var(--muted); }
.form .btn { margin-top: 8px; }
.form .btn[disabled] { opacity: .75; pointer-events: none; }
.form__foot { text-align: center; font-size: .8rem; color: var(--muted); }
.form__error { padding: 12px 14px; border-radius: 12px; background: #FCEDEA; color: #9C3322; font-size: .88rem; line-height: 1.45; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(7,23,15,.25); border-top-color: var(--forest-950); animation: rot .8s linear infinite; }

@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rot { to { transform: rotate(360deg); } }

/* Hero entrance (pure CSS, no JS needed) */
.rise { animation: rise .9s var(--ease) both; }
.rise--2 { animation-delay: .08s; }
.rise--3 { animation-delay: .16s; }
.rise--4 { animation-delay: .26s; animation-duration: 1.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transition: opacity .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Larger phones and up */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .section { padding: 104px 0; }
  .pains { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tile { padding: 24px 22px; }
  .page__cols { grid-template-columns: 1fr 1.3fr; gap: 28px; }
  .page { padding: 36px 36px 0; }
  .page__fade { margin: -80px -36px 0; }
  .quote { flex-basis: 360px; }
  .remedy { flex-basis: 300px; }
  .strip__row { grid-template-columns: 1fr 1fr; }
  .foot__top { flex-direction: row; align-items: center; justify-content: space-between; }
  .foot__bottom { flex-direction: column; }
  .dock { left: 50%; right: auto; width: 460px; transform: translate(-50%, calc(100% + 30px)); }
  .dock.is-on { transform: translate(-50%, 0); }
  .sheet { align-items: center; }
  .sheet__panel { border-radius: 28px; padding-bottom: 26px; animation-name: pop; }
  .sheet.is-closing .sheet__panel { animation-name: popout; }
  .sheet__grab { display: none; }
  .offer { padding: 36px 34px 30px; }
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes popout { to { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Desktop */
@media (min-width: 960px) {
  .hero { padding-top: 150px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
  .hero__copy { padding-bottom: 80px; }
  .hero__cta .btn--block { width: auto; }
  .hero__visual { padding: 0 0 40px; }
  .stage { height: 540px; }
  .book { --w: 276px; --h: 398px; --d: 36px; }
  .cover { padding: 30px 28px 24px 32px; }
  .cover__title { font-size: 58px; }
  .cover__author, .cover__sub { font-size: 11px; }
  .cover__sub { max-width: 190px; }
  .cover__brand { font-size: 10px; }
  .cover__art { width: 240px; }
  .head { margin-bottom: 52px; }
  .steps3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step3 { flex-direction: column; padding: 32px 28px; }
  .peek { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
  .peek .head { margin: 0; }
  .toc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .toc li { border-top: 1px solid var(--line-2); border-bottom: 0; }
  .toc .toc__warn { grid-column: 1 / -1; margin-top: 16px; padding: 22px 24px; }
  .remedies { padding-left: var(--gutter); }
  .author { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .flow li { flex-direction: column; padding: 0; }
  .flow li:not(:last-child)::before { left: 60px; right: -12px; top: 23px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(to right, var(--line-2) 0 5px, transparent 5px 10px); }
  .final__inner .btn--block { width: auto; min-width: 320px; }
  .dock { display: none; }
  .foot { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Light hero with flat book mockup ===== */
.hero--light {
  background: radial-gradient(120% 70% at 50% 28%, #FBF9F3 0%, #F1EDE2 55%, #E7E2D4 100%);
  color: var(--ink);
  padding-top: calc(96px + env(safe-area-inset-top, 0px));
  padding-bottom: 56px;
}
.hero--light::before { background-image: radial-gradient(rgba(13,28,20,.05) 1px, transparent 1px); }
.hero--light .display em { color: var(--green-600); }
.hero--light .lede { color: var(--muted); }
.hero--light .btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(13,28,20,.22); }
.hero--light .btn--ghost:hover { background: rgba(13,28,20,.04); }
.hero--light .assure { color: var(--muted); }
.hero--light .assure .ic { color: var(--green-600); }
.hero--light .hero__visual { padding: 4px 0 28px; }

.mock { position: relative; width: min(218px, 60vw); margin: 0 auto; padding: 0 22px 24px 0; }
.mock__back {
  position: absolute; left: 22px; top: 20px; right: 0; bottom: 0;
  border-radius: 4px 10px 10px 4px;
  background: linear-gradient(160deg, #D3D6C8, #C3C8B8);
  transform: rotate(-1deg);
  box-shadow: 0 30px 50px -22px rgba(20, 40, 25, .35);
}
.mock__book {
  position: relative;
  aspect-ratio: 3 / 4.15;
  display: flex; flex-direction: column;
  padding: 22px 16px 18px 28px;
  border-radius: 4px 10px 10px 4px;
  background: linear-gradient(170deg, #1F3E2D 0%, #1A3526 100%);
  color: #F1ECDD;
  transform: rotate(-3deg);
  box-shadow: 0 2px 4px rgba(0,0,0,.14), 0 26px 44px -18px rgba(10, 30, 18, .55);
  overflow: hidden;
}
.mock__book::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 13px;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.12));
  border-right: 1px solid rgba(255,255,255,.05);
}
.mock__label { position: relative; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #CF9A43; }
.mock__title {
  position: relative; margin-top: 14px;
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 26px; line-height: 1.1; letter-spacing: -.01em;
  font-variation-settings: "opsz" 72;
}
.mock__sub { position: relative; margin-top: 12px; font-size: 11.5px; line-height: 1.5; color: rgba(241,236,221,.78); max-width: 92%; }
.mock__author { position: relative; margin-top: auto; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: rgba(241,236,221,.68); }
.mock__leaf { position: absolute; right: -4px; bottom: -4px; width: 64%; stroke: rgba(205, 222, 190, .42); stroke-width: 1.1; }

@media (min-width: 960px) {
  .hero--light { padding-top: 140px; padding-bottom: 88px; }
  .hero--light .hero__visual { order: 2; padding: 0; }
  .mock { width: 330px; }
  .mock__book { padding: 34px 26px 28px 42px; }
  .mock__title { font-size: 38px; }
  .mock__sub { font-size: 14.5px; }
  .mock__label { font-size: 12px; }
  .mock__author { font-size: 11.5px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero--light .hero__cta { margin-top: 8px; }

.mini-book span { font-size: 11px; line-height: 1; }
.mini-book--sm span { font-size: 9px; }
