/* =========================================================
   THE PREDIABETES ACTION PLAN — Funnel Design System
   Fonts: Outfit (display) + Inter (body)
   Palette: clinical navy + warm amber + quiet clinical green
   ========================================================= */

:root{
  /* --- color --- */
  --navy-950:#0b1c2c;
  --navy-900:#0f2438;
  --navy-800:#15304a;
  --navy-700:#1e3f5e;
  --navy-600:#2c5378;
  --amber-600:#b9812b;
  --amber-900:#6b4a1e;
  --amber-500:#c99a4a;
  --amber-300:#e4c88b;
  --amber-100:#f8ecd7;
  --green-700:#255943;
  --green-600:#2f6f52;
  --green-100:#e4f0e9;
  --paper-0:#ffffff;
  --paper-50:#f4f6f7;
  --paper-100:#eaeef1;
  --ink-900:#152029;
  --ink-700:#374752;
  --ink-500:#5c6d78;
  --ink-300:#9aabb5;
  --line:#dbe2e6;
  --danger:#a3402f;

  /* --- type --- */
  --font-display:'Outfit', sans-serif;
  --font-body:'Inter', sans-serif;

  /* --- layout --- */
  --maxw:1120px;
  --maxw-narrow:760px;
  --radius-s:6px;
  --radius-m:10px;
  --radius-l:18px;
  --shadow-card:0 1px 2px rgba(15,36,56,.06), 0 12px 28px -16px rgba(15,36,56,.22);
  --shadow-pop:0 24px 60px -20px rgba(11,28,44,.45);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--paper-50);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{max-width:100%;display:block;}
a{color:inherit;}
h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--navy-950);
  line-height:1.12;
  margin:0 0 .5em;
  letter-spacing:-.01em;
}
p{margin:0 0 1em;}
.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}
.container-narrow{
  max-width:var(--maxw-narrow);
  margin:0 auto;
  padding:0 24px;
}
:focus-visible{outline:3px solid var(--amber-500); outline-offset:2px;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important;}
}

/* ---------- eyebrow / kicker ---------- */
.kicker{
  font-family:var(--font-display);
  font-weight:600;
  font-size:14px;
  color:var(--amber-600);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}
.kicker::before{
  content:"";
  width:22px;height:2px;
  background:var(--amber-500);
  display:inline-block;
  border-radius:2px;
}

/* ---------- buttons ----------
   Deliberately NOT the soft-gradient / glow-shadow / full-pill formula.
   Hard offset shadow + ink border = a pressable, stamped, printed-ticket
   feel that matches the editorial/clinical brand instead of a generic
   SaaS CTA. */
.btn{
  font-family:var(--font-display);
  font-weight:700;
  font-size:16px;
  text-transform:uppercase;
  letter-spacing:.04em;
  border:2px solid transparent;
  border-radius:6px;
  padding:16px 28px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
  line-height:1.2;
}
.btn-primary{
  background:var(--amber-500);
  color:var(--navy-950);
  border-color:var(--amber-900);
  box-shadow:4px 4px 0 var(--amber-900);
}
.btn-primary:hover{background:var(--amber-300); transform:translate(-2px,-2px); box-shadow:6px 6px 0 var(--amber-900);}
.btn-primary:active{transform:translate(1px,1px); box-shadow:2px 2px 0 var(--amber-900);}
.btn-lg{padding:20px 36px;font-size:17px;width:100%;max-width:520px;}
.btn-outline{
  background:transparent;
  border:2px solid rgba(255,255,255,.55);
  color:#fff;
  box-shadow:4px 4px 0 rgba(255,255,255,.18);
}
.btn-outline:hover{border-color:#fff; transform:translate(-2px,-2px); box-shadow:6px 6px 0 rgba(255,255,255,.18);}
.btn-ghost{
  background:var(--paper-0);
  color:var(--navy-800);
  border:2px solid var(--navy-950);
  box-shadow:3px 3px 0 rgba(0,0,0,.35);
}
.btn-ghost:hover{transform:translate(-2px,-2px); box-shadow:5px 5px 0 rgba(0,0,0,.35);}
.btn-sub{
  display:block;
  text-align:center;
  font-size:13px;
  color:var(--ink-500);
  margin-top:10px;
}
.btn-wrap{display:flex; flex-direction:column; align-items:center;}

/* ---------- top bar ---------- */
.topbar{
  background:var(--navy-950);
  color:#cfe0ea;
  font-size:13px;
  text-align:center;
  padding:8px 16px;
}

/* ---------- header ---------- */
.site-header{
  background:var(--navy-950);
  padding:18px 0;
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand .mark img{width:100%;height:100%;object-fit:cover;border-radius:inherit;}
.brand{
  font-family:var(--font-display);
  font-weight:700;
  font-size:17px;
  color:#fff;
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand .mark{
  width:34px;height:34px;border-radius:9px;
  overflow:hidden;
  display:inline-flex;align-items:center;justify-content:center;
  background:radial-gradient(circle at 35% 30%, var(--amber-300), var(--amber-600));
  font-size:14px;color:var(--navy-950);font-weight:800;
  flex:none;
}
.header-cta{font-size:14px;}

/* ---------- hero ---------- */
.hero{
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(201,154,74,.16), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  color:#eef3f6;
  padding:64px 0 60px;
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
}
.hero h1{
  color:#fff;
  font-size:clamp(32px,4.6vw,52px);
  font-weight:700;
}
.hero h1 em{
  font-style:normal;
  color:var(--amber-300);
}
.hero .lede{
  font-size:19px;
  color:#c7d6df;
  max-width:52ch;
  margin-bottom:28px;
}
.hero-proof{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  margin-top:30px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.12);
}
.hero-proof .stat b{
  display:block;
  font-family:var(--font-display);
  font-size:26px;
  color:#fff;
}
.hero-proof .stat span{
  font-size:13px;
  color:#9db2bf;
}

/* ---------- glucose curve visual ---------- */
.curve-card{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius-l);
  padding:26px 26px 18px;
  backdrop-filter:blur(2px);
}
.curve-card .cc-head{
  display:flex;justify-content:space-between;align-items:baseline;
  margin-bottom:6px;
}
.curve-card .cc-head b{color:#fff;font-family:var(--font-display);font-size:15px;}
.curve-card .cc-head span{font-size:12px;color:#9db2bf;}
.curve-legend{display:flex;gap:18px;margin-top:10px;font-size:12px;color:#c7d6df;}
.curve-legend i{display:inline-block;width:12px;height:3px;border-radius:2px;margin-right:6px;vertical-align:middle;}

/* ---------- book mock ---------- */
.book-mock{
  position:relative;
  perspective:1400px;
}
.book-mock .cover{
  width:100%;
  max-width:340px;
  margin:0 auto;
  border-radius:4px 10px 10px 4px;
  box-shadow:var(--shadow-pop);
  transform:rotateY(-18deg) rotateX(2deg);
  transition:transform .4s ease;
}
.book-mock:hover .cover{transform:rotateY(-10deg) rotateX(1deg);}
.book-mock .cover img{border-radius:4px 10px 10px 4px;}

/* ---------- sections ---------- */
section{padding:84px 0;}
.section-tight{padding:56px 0;}
.section-head{
  max-width:640px;
  margin:0 auto 48px;
  text-align:center;
}
.section-head h2{font-size:clamp(26px,3.4vw,38px);}
.section-head p{color:var(--ink-500); font-size:17px;}
.on-dark{background:var(--navy-950); color:#e7eef1;}
.on-dark h2, .on-dark h3{color:#fff;}
.on-dark .section-head p{color:#a9bcc7;}
.on-cream{background:var(--amber-100);}
.on-green{background:var(--green-100);}
.divider-line{
  height:1px;
  background:var(--line);
  border:none;
  margin:0;
}

/* ---------- problem / stakes ---------- */
.stakes-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.stake{
  background:var(--paper-0);
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  padding:26px 22px;
}
.stake .num{
  font-family:var(--font-display);
  color:var(--amber-600);
  font-size:14px;
  font-weight:700;
  margin-bottom:10px;
}
.stake h4{font-size:17px;margin-bottom:8px;}
.stake p{color:var(--ink-500);font-size:14.5px;margin:0;}

/* ---------- author ---------- */
.author-wrap{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:44px;
  align-items:start;
  background:var(--paper-0);
  border:1px solid var(--line);
  border-radius:var(--radius-l);
  padding:44px;
  box-shadow:var(--shadow-card);
}
.author-photo{
  width:100%;
  aspect-ratio:1/1;
  border-radius:50%;
  background:linear-gradient(160deg,var(--navy-700),var(--navy-950));
  display:flex;align-items:center;justify-content:center;
  color:var(--amber-300);
  font-family:var(--font-display);
  font-weight:700;
  font-size:44px;
}
.author-cred{
  font-size:13px;
  color:var(--amber-600);
  font-weight:600;
  letter-spacing:.02em;
  margin-bottom:6px;
}

/* ---------- method / chapters ---------- */
.chapter-list{list-style:none;margin:0;padding:0;}
.chapter-list li{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:20px;
  padding:22px 0;
  border-bottom:1px solid var(--line);
}
.chapter-list li:first-child{padding-top:0;}
.chapter-list .cnum{
  font-family:var(--font-display);
  font-weight:700;
  font-size:22px;
  color:var(--amber-600);
}
.chapter-list h4{margin-bottom:4px;font-size:18px;}
.chapter-list p{margin:0;color:var(--ink-500);font-size:15px;}

/* ---------- bonuses ---------- */
.bonus-card{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:24px;
  background:var(--paper-0);
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  padding:22px;
  align-items:center;
}
.bonus-card img{border-radius:6px; box-shadow:0 10px 22px -12px rgba(15,36,56,.35);}
.bonus-tag{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  color:var(--green-700);
  background:var(--green-100);
  padding:4px 10px;
  border-radius:20px;
  margin-bottom:8px;
}
.bonus-value{
  color:var(--ink-300);
  text-decoration:line-through;
  font-size:14px;
  margin-left:8px;
}
.bonus-grid{display:grid;gap:18px;}

/* ---------- stack / order box ---------- */
.stack-box{
  background:var(--navy-950);
  color:#fff;
  border-radius:var(--radius-l);
  padding:40px;
  box-shadow:var(--shadow-pop);
}
.stack-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  border-bottom:1px dashed rgba(255,255,255,.15);
  font-size:15.5px;
}
.stack-row b{color:#fff;}
.stack-row .val{color:#9db2bf;}
.stack-total{
  display:flex;justify-content:space-between;align-items:center;
  padding-top:22px;margin-top:6px;
  font-family:var(--font-display);
  font-size:20px;
}
.price-today{
  text-align:center;
  margin:26px 0 8px;
}
.price-today .was{color:#9db2bf;text-decoration:line-through;font-size:18px;margin-right:10px;}
.price-today .now{
  font-family:var(--font-display);
  font-size:52px;
  font-weight:700;
  color:#fff;
}
.price-today .now sup{font-size:22px;top:-1.3em;}
.price-today .cycle{color:#9db2bf;font-size:14px;display:block;margin-top:2px;}

/* ---------- guarantee ---------- */
.guarantee{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:36px;
  align-items:center;
  background:var(--paper-0);
  border:1px solid var(--line);
  border-radius:var(--radius-l);
  padding:40px;
  box-shadow:var(--shadow-card);
}
.seal{
  width:140px;height:140px;
  border-radius:50%;
  border:2px solid var(--amber-500);
  display:flex;align-items:center;justify-content:center;
  text-align:center;
  font-family:var(--font-display);
  color:var(--navy-950);
  padding:10px;
}
.seal b{display:block;font-size:26px;}
.seal span{font-size:11px;color:var(--ink-500);}

/* ---------- FAQ ---------- */
.faq-item{
  border-bottom:1px solid var(--line);
}
.faq-q{
  width:100%;
  text-align:left;
  background:none;
  border:none;
  padding:20px 0;
  font-family:var(--font-display);
  font-weight:600;
  font-size:16.5px;
  color:var(--navy-950);
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  gap:20px;
}
.faq-q .plus{
  flex:none;
  width:24px;height:24px;
  border-radius:50%;
  border:1.5px solid var(--amber-500);
  color:var(--amber-600);
  display:flex;align-items:center;justify-content:center;
  font-size:15px;
  transition:transform .2s ease;
}
.faq-item[data-open="true"] .plus{transform:rotate(45deg);}
.faq-a{
  max-height:0;
  overflow:hidden;
  transition:max-height .25s ease;
  color:var(--ink-500);
  font-size:15px;
}
.faq-a-inner{padding-bottom:20px;}

/* ---------- sticky CTA ---------- */
.sticky-cta{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  background:var(--navy-950);
  border-top:1px solid rgba(255,255,255,.1);
  padding:12px 16px;
  transform:translateY(120%);
  transition:transform .3s ease;
}
.sticky-cta.show{transform:translateY(0);}
.sticky-cta .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.sticky-cta .info{color:#fff;font-size:14px;}
.sticky-cta .info small{display:block;color:#9db2bf;font-weight:400;font-size:12px;}
.sticky-cta .btn{padding:12px 22px;font-size:15px;white-space:nowrap;}

/* ---------- footer ---------- */
footer{
  background:var(--navy-950);
  color:#8fa3af;
  padding:52px 0 30px;
  font-size:13px;
}
footer a{color:#cfe0ea;text-decoration:underline;}
.footer-links{
  display:flex;flex-wrap:wrap;gap:18px;
  margin-bottom:24px;
  font-size:13px;
}
.footer-cb-badge{
  display:flex;align-items:center;gap:10px;margin-bottom:18px;
}
.footer-cb-badge img{height:40px;width:auto;background:#fff;border-radius:6px;padding:4px;}
.footer-cb-badge span{font-size:12.5px;color:#8fa3af;}
.disclaimer-block{
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:24px;
  margin-top:24px;
  line-height:1.7;
}
.disclaimer-block p{margin-bottom:12px;color:#7c92a0;}

/* ---------- image-based CTA button ---------- */
.cta-img-btn{
  display:block;
  width:100%;
  max-width:420px;
  margin:0 auto;
  transition:transform .12s ease, filter .12s ease;
  cursor:pointer;
}
.cta-img-btn:hover{transform:translateY(-2px); filter:brightness(1.03);}
.cta-img-btn:active{transform:translateY(1px);}
.cta-img-btn.small{max-width:220px;}
.payment-cards-img{height:34px;width:auto;}

/* ---------- payment / trust strip ---------- */
.trust-strip{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:22px;
  margin-top:22px;
}
.trust-strip .cb-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--ink-500);
}
.trust-strip .cb-badge .cb-word{font-weight:700;color:#c0392b;margin-left:.3em;}
.trust-strip.on-dark .cb-badge .cb-word{color:#e2897d;}
.card-chips{display:flex;gap:8px;flex-wrap:wrap;}
.card-chip{
  font-family:var(--font-display);
  font-weight:700;
  font-size:11px;
  letter-spacing:.03em;
  color:var(--ink-500);
  border:1px solid var(--line);
  background:var(--paper-0);
  border-radius:5px;
  padding:5px 9px;
}
.trust-strip.on-dark .cb-badge{color:#9db2bf;}
.trust-strip.on-dark .card-chip{
  color:#c7d6df;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.04);
}
.lock-icon{width:13px;height:13px;vertical-align:-2px;margin-right:2px;}

/* ---------- last-chance cross-sell (download pages) ---------- */
.crosssell-box{
  margin-top:40px;
  background:var(--navy-950);
  border-radius:var(--radius-l);
  padding:32px;
  color:#fff;
}
.crosssell-box .kicker{color:var(--amber-300);}
.crosssell-box h3{color:#fff;font-size:19px;margin-bottom:6px;}
.crosssell-box>p{color:#c7d6df;margin-bottom:22px;}
.crosssell-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.crosssell-grid.single{grid-template-columns:1fr;max-width:420px;}
.crosssell-card{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-m);
  padding:20px;
  display:flex;
  gap:14px;
  align-items:center;
}
.crosssell-card img{width:56px;border-radius:5px;flex:none;}
.crosssell-card .cs-body h4{color:#fff;font-size:14.5px;margin-bottom:4px;}
.crosssell-card .cs-body p{color:#9db2bf;font-size:12.5px;margin:0 0 10px;}
.crosssell-card .cs-body a{
  font-family:var(--font-display);font-weight:700;font-size:12.5px;
  color:var(--navy-950);background:var(--amber-500);
  padding:8px 14px;border-radius:6px;text-decoration:none;display:inline-block;
}
@media (max-width:600px){.crosssell-grid{grid-template-columns:1fr;}}

/* ---------- utility ---------- */
.checklist{list-style:none;margin:0;padding:0;}
.checklist li{
  display:flex;gap:12px;align-items:flex-start;
  padding:10px 0;
  font-size:15.5px;
}
.checklist li::before{
  content:"✓";
  flex:none;
  width:22px;height:22px;
  border-radius:50%;
  background:var(--green-100);
  color:var(--green-700);
  font-size:13px;
  font-weight:700;
  display:flex;align-items:center;justify-content:center;
  margin-top:2px;
}
.pill{
  display:inline-block;
  background:var(--amber-100);
  color:var(--amber-600);
  border-radius:20px;
  padding:5px 14px;
  font-size:12.5px;
  font-weight:700;
}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;}
.center{text-align:center;}
.mt-0{margin-top:0;}

/* ---------- responsive ---------- */
@media (max-width:960px){
  .hero-grid{grid-template-columns:1fr;}
  .hero .lede{max-width:none;}
  .stakes-grid{grid-template-columns:1fr 1fr;}
  .author-wrap{grid-template-columns:1fr;text-align:left;}
  .author-photo{width:120px;}
  .two-col{grid-template-columns:1fr;gap:32px;}
  .guarantee{grid-template-columns:1fr;text-align:center;}
  .seal{margin:0 auto;}
}
@media (max-width:640px){
  section{padding:56px 0;}
  .stakes-grid{grid-template-columns:1fr 1fr;}
  .bonus-card{grid-template-columns:96px 1fr;padding:16px;}
  .stack-box, .author-wrap, .guarantee{padding:26px;}
  .price-today .now{font-size:42px;}
  .sticky-cta .info{display:none;}
}
