/* The Franchise Flywheel funnel - shared stylesheet
   Light-only per Desiree's spec. Tokens inherited verbatim from the
   existing Franchise Flywheel course docs (module workbook / offer ladder).
   Token architecture kept identical so dark can be re-added later. */

:root{
  /* palette (light values, verbatim from existing :root) */
  --ground:#FDFEFA;
  --page:#EAF2DE;
  --paper:#FFFFFF;
  --panel:#F5FAEF;
  --panel-2:#EEF5E4;
  --ink:#24281E;
  --ink-soft:#566A36;
  --muted:#7C8073;
  --green:#8CC444;
  --green-strong:#4F8200;
  --green-tint:#E9F3DA;
  --orange:#FF6C2F;
  --orange-tint:#FFEDE4;
  --orange-ink:#B23E0E;
  --line:#D3E1BE;
  --rule:#B9C79B;

  /* funnel-only semantic tokens (layered, no new brand colours) */
  --cta:#4F8200;          /* primary action fill (green-strong) */
  --cta-ink:#FFFFFF;      /* primary action label */

  /* shadows (inherited exactly) */
  --shadow:0 1px 3px rgba(36,40,30,.08),0 12px 34px rgba(36,40,30,.09);
  --shadow-core:0 2px 6px rgba(36,40,30,.1),0 16px 40px rgba(79,130,0,.14);

  /* spacing scale (8pt based) */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-8:48px; --space-10:64px;
  --space-12:96px; --space-16:128px;

  /* radius */
  --r-sm:10px; --r-md:14px; --r-lg:16px; --r-xl:20px; --r-pill:999px;
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--page);
  color:var(--ink);
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  font-size:17px;
}
@media (max-width:600px){ body{ font-size:16px; } }

img{ max-width:100%; display:block; }

/* tabular figures on money */
.tnum{ font-variant-numeric:tabular-nums; }

/* ---------- containers ---------- */
.wrap-read{ max-width:720px; margin:0 auto; padding:0 20px; }
.wrap-std{ max-width:880px; margin:0 auto; padding:0 20px; }
.wrap-wide{ max-width:1120px; margin:0 auto; padding:0 20px; }
@media (min-width:768px){
  .wrap-read,.wrap-std,.wrap-wide{ padding:0 32px; }
}

/* ---------- section rhythm ---------- */
.section{ padding:56px 0; }
@media (min-width:768px){ .section{ padding:96px 0; } }
.section.tight{ padding:40px 0; }
@media (min-width:768px){ .section.tight{ padding:64px 0; } }

.bg-page{ background:var(--page); }
.bg-paper{ background:var(--paper); }
.bg-panel{ background:var(--panel); }
.bg-tint{ background:var(--green-tint); }
.bg-ink{ background:var(--ink); color:var(--ground); }

/* ---------- typography ---------- */
h1,h2,h3{ margin:0; letter-spacing:-.015em; }
.eyebrow{
  font-size:.75rem; font-weight:800; line-height:1.2;
  letter-spacing:.16em; text-transform:uppercase;
  color:var(--green-strong); margin:0 0 var(--space-3);
}
.eyebrow.on-orange{ color:var(--orange-ink); }
.eyebrow.on-dark{ color:#DCEFC0; }

.h1{
  font-size:clamp(2.5rem,6vw,4rem); font-weight:800;
  line-height:1.05; letter-spacing:-.02em;
}
.h2{
  font-size:clamp(1.75rem,4vw,2.5rem); font-weight:800;
  line-height:1.12; letter-spacing:-.015em;
}
.h3{
  font-size:1.375rem; font-weight:800; line-height:1.2; letter-spacing:-.01em;
}
.lead{
  font-size:clamp(1.0625rem,2vw,1.25rem); font-weight:500;
  line-height:1.5; color:var(--ink-soft);
}
.prose{ max-width:66ch; }
.prose p{ margin:0 0 var(--space-4); }
.prose p:last-child{ margin-bottom:0; }
.small{ font-size:.84rem; line-height:1.5; color:var(--muted); }
.disclaimer{ font-size:.78rem; line-height:1.5; color:var(--muted); }

.price-display{
  font-size:clamp(2rem,5vw,3rem); font-weight:800;
  line-height:1; letter-spacing:-.01em; font-variant-numeric:tabular-nums;
}

.mt-2{ margin-top:var(--space-2); }
.mt-3{ margin-top:var(--space-3); }
.mt-4{ margin-top:var(--space-4); }
.mt-5{ margin-top:var(--space-5); }
.mt-6{ margin-top:var(--space-6); }
.mt-8{ margin-top:var(--space-8); }
.center{ text-align:center; }

/* orange spent only on the value-gap argument */
.gap-accent{ color:var(--orange-ink); }
.on-dark .gap-accent{ color:var(--orange); }

/* ---------- header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:20;
  background:rgba(234,242,222,.9); backdrop-filter:saturate(1.2) blur(8px);
  border-bottom:1px solid var(--line);
}
.site-header .bar{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:var(--ink);
}
.brand .mark{
  height:56px; width:56px; flex:none;
  border-radius:12px;
  background:linear-gradient(150deg,var(--green-strong),#6FA82E 60%,var(--green));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:20px;
}
.brand .name{ font-weight:800; font-size:1.05rem; letter-spacing:-.01em; }
.brand .name span{ color:var(--green-strong); }
@media (max-width:600px){
  .site-header .bar{ height:60px; }
  .brand .mark{ height:40px; width:40px; font-size:15px; }
  .brand .name{ font-size:.95rem; }
  /* header CTA crowds the wrapped brand on small screens; the hero CTA
     and the sticky bottom bar carry the action there instead.
     .site-header prefix beats the later .btn display rule at higher specificity */
  .site-header .header-cta{ display:none; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:inherit; font-size:17px; font-weight:700; line-height:1;
  min-height:52px; padding:16px 28px; border-radius:14px;
  border:1px solid transparent; cursor:pointer; text-decoration:none;
  transition:transform .15s ease-out, background .15s ease-out, box-shadow .15s ease-out;
}
.btn-primary{ background:var(--cta); color:var(--cta-ink); }
.btn-primary:hover{ background:#3F6A00; transform:translateY(-2px); }
.btn-primary:active{ transform:scale(.98); }
.btn-lg{ font-size:19px; min-height:60px; padding:20px 36px; }
.btn-block{ width:100%; }
.btn-secondary{
  background:transparent; color:var(--ink-soft);
  border:1px solid var(--rule);
}
.btn-secondary:hover{ background:var(--panel); }
.btn:focus-visible{ outline:3px solid var(--green-strong); outline-offset:3px; }
.on-dark .btn:focus-visible{ outline-color:var(--green); }
.textlink{
  color:var(--green-strong); font-weight:600; text-decoration:underline;
  text-underline-offset:3px; cursor:pointer;
}
.textlink:hover{ color:#3F6A00; }
.on-dark .textlink{ color:var(--green); }
.btn[disabled]{ opacity:.6; cursor:not-allowed; }

/* spinner for loading buttons */
.spinner{
  width:18px; height:18px; border-radius:50%;
  border:2px solid rgba(255,255,255,.4); border-top-color:#fff;
  animation:spin .7s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---------- hero ---------- */
.hero{
  background:linear-gradient(140deg,var(--green-strong),#6FA82E 60%,var(--green));
  color:#fff; border-radius:var(--r-xl);
  padding:64px 40px; box-shadow:var(--shadow);
}
@media (max-width:600px){ .hero{ padding:44px 24px; } }
.hero .eyebrow{ color:#E4F5C8; }
.hero .h1{ color:#fff; max-width:16ch; }
.hero .lead{ color:#F2FAE4; max-width:44ch; }
.hero .micro{ color:#EAF7D6; font-size:.9rem; margin-top:var(--space-3); }
.hero .micro .gap-accent{ color:#FFD9C6; font-weight:700; }

/* ---------- cards ---------- */
.card{
  background:var(--paper); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:24px; box-shadow:var(--shadow);
}
.card.pad-lg{ padding:32px; }
.card.accent{ border-left:5px solid var(--green); }
.card.core{ box-shadow:var(--shadow-core); }

.grid{ display:grid; gap:16px; }
.grid-2{ grid-template-columns:1fr 1fr; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:600px){
  .grid-2,.grid-3{ grid-template-columns:1fr; }
}

/* stat cards */
.stat .num{
  font-size:clamp(1.75rem,4vw,2.5rem); font-weight:800;
  color:var(--green-strong); line-height:1; font-variant-numeric:tabular-nums;
}
.stat .label{ margin-top:8px; color:var(--ink-soft); font-size:.95rem; }

/* pull-quote */
.pullquote{
  border-left:4px solid var(--orange);
  padding:8px 0 8px 24px; margin:var(--space-6) 0;
  font-size:1.375rem; font-weight:800; line-height:1.25; letter-spacing:-.01em;
}

/* ---------- before / after ---------- */
.ba{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:600px){ .ba{ grid-template-columns:1fr; } }
.ba .col{ border-radius:var(--r-lg); padding:24px; }
.ba .before{ background:var(--panel-2); color:var(--ink-soft); }
.ba .after{ background:var(--green-tint); color:var(--ink); border:1px solid var(--line); }
.ba .tag{
  font-size:.7rem; font-weight:800; text-transform:uppercase;
  letter-spacing:.14em; margin-bottom:10px; display:inline-block;
}
.ba .before .tag{ color:var(--muted); }
.ba .after .tag{ color:var(--green-strong); }

/* ---------- feature list ---------- */
.feature{ display:flex; gap:14px; align-items:flex-start; }
.feature .ic{
  flex:none; width:36px; height:36px; border-radius:10px;
  background:var(--green-tint); color:var(--green-strong);
  display:flex; align-items:center; justify-content:center;
}
.feature h3{ font-size:1.05rem; }
.feature p{ margin:4px 0 0; color:var(--ink-soft); font-size:.95rem; }

/* ---------- value stack ---------- */
.vstack{ }
.vstack .row{
  display:flex; justify-content:space-between; align-items:baseline; gap:16px;
  padding:16px 0; border-bottom:1px solid var(--line);
}
.vstack .row .item{ font-weight:600; }
.vstack .row .val{ color:var(--green-strong); font-weight:800; font-variant-numeric:tabular-nums; }
.vstack .subtotal{
  display:flex; justify-content:space-between; align-items:baseline; gap:16px;
  padding-top:20px; margin-top:4px; border-top:2px solid var(--rule);
}
.vstack .subtotal .item{ font-size:1.15rem; font-weight:800; }
.vstack .subtotal .val{ font-size:1.5rem; font-weight:800; color:var(--ink); font-variant-numeric:tabular-nums; }
.vstack .drop{
  margin-top:24px; text-align:center;
}
.vstack .drop .arrow{ color:var(--orange-ink); font-weight:800; letter-spacing:.02em; }
.vstack .drop .pay{
  margin-top:8px; font-size:.85rem; font-weight:800; text-transform:uppercase;
  letter-spacing:.12em; color:var(--orange-ink);
}
.vstack .drop .price{
  font-size:clamp(2.25rem,6vw,3.25rem); font-weight:800; color:var(--green-strong);
  font-variant-numeric:tabular-nums; line-height:1;
}

/* ---------- price anchor (the climax) ---------- */
.anchor{
  background:var(--ink); color:var(--ground);
  border-radius:var(--r-xl); padding:48px 40px; text-align:center;
  box-shadow:var(--shadow-core);
}
@media (max-width:600px){ .anchor{ padding:36px 24px; } }
.anchor .worth-label,.anchor .price-label{
  font-size:.8rem; font-weight:800; text-transform:uppercase;
  letter-spacing:.14em; color:#AAB79A;
}
.anchor .worth{
  font-size:clamp(2.75rem,8vw,4.5rem); font-weight:800; line-height:1;
  color:var(--orange); font-variant-numeric:tabular-nums; margin-top:8px;
}
.anchor .worth-sub{ color:#C7D2B6; margin-top:8px; }
.anchor .vs{
  width:64px; height:1px; background:#3a4230; margin:28px auto;
}
.anchor .price{
  font-size:clamp(2rem,6vw,3rem); font-weight:800; line-height:1;
  color:#fff; font-variant-numeric:tabular-nums; margin-top:8px;
}
.anchor .reinforce b{ color:var(--green); }
.anchor .reinforce{ color:#D6DFC8; margin-top:20px; max-width:40ch; margin-left:auto; margin-right:auto; }

/* ---------- guarantee ---------- */
.guarantee{
  background:var(--green-tint); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:32px; display:flex; gap:20px; align-items:flex-start;
}
@media (max-width:600px){ .guarantee{ flex-direction:column; } }
.guarantee .seal{
  flex:none; width:56px; height:56px; border-radius:50%;
  background:var(--paper); border:2px solid var(--green-strong);
  color:var(--green-strong); display:flex; align-items:center; justify-content:center;
}

/* ---------- testimonial empty-safe ---------- */
.testi-empty{
  border:1.5px dashed var(--rule); border-radius:var(--r-lg);
  padding:40px 32px; text-align:center; background:var(--panel);
}
.testi-empty .ic{
  width:44px; height:44px; margin:0 auto 16px; border-radius:12px;
  background:var(--green-tint); color:var(--green-strong);
  display:flex; align-items:center; justify-content:center;
}
.testi-empty h3{ margin-bottom:8px; }
.testi-empty p{ color:var(--ink-soft); max-width:46ch; margin:0 auto; }

/* ---------- Mark authority ---------- */
.authority{ display:grid; grid-template-columns:220px 1fr; gap:32px; align-items:center; }
@media (max-width:600px){ .authority{ grid-template-columns:1fr; } }
.portrait{
  aspect-ratio:1; border-radius:var(--r-lg); overflow:hidden;
  background:linear-gradient(150deg,var(--panel-2),var(--green-tint));
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; flex-direction:column;
  color:var(--green-strong);
}
.portrait .initials{ font-size:2.5rem; font-weight:800; }
.portrait .tofill{ font-size:.7rem; color:var(--muted); margin-top:6px; text-transform:uppercase; letter-spacing:.1em; }

/* ---------- FAQ accordion ---------- */
.faq{ display:flex; flex-direction:column; gap:16px; }
.faq details{
  background:var(--paper); border:1px solid var(--line);
  border-radius:var(--r-md); overflow:hidden;
}
.faq summary{
  list-style:none; cursor:pointer; padding:18px 20px;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  font-weight:700; min-height:44px;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary:focus-visible{ outline:3px solid var(--green-strong); outline-offset:-3px; }
.faq summary .chev{ flex:none; transition:transform .2s ease-out; color:var(--green-strong); }
.faq details[open] summary .chev{ transform:rotate(180deg); }
.faq .answer{ padding:0 20px 20px; color:var(--ink-soft); }

/* ---------- sticky CTA bar ---------- */
.sticky-cta{
  position:fixed; left:0; right:0; bottom:0; z-index:10;
  background:var(--ink); color:#fff;
  padding:12px 20px calc(12px + env(safe-area-inset-bottom));
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  transform:translateY(120%); transition:transform .25s ease-out;
  box-shadow:0 -6px 24px rgba(36,40,30,.18);
}
.sticky-cta.show{ transform:translateY(0); }
.sticky-cta .reminder{ font-size:.9rem; color:#D6DFC8; max-width:52ch; }
@media (max-width:720px){ .sticky-cta .reminder{ display:none; } }
.sticky-cta .btn{ min-height:48px; }
@media (max-width:720px){ .sticky-cta .btn{ flex:1; } }
body.has-sticky{ padding-bottom:88px; }

/* ---------- forms ---------- */
.field{ margin-bottom:16px; }
.field label{ display:block; font-weight:700; margin-bottom:6px; }
.field .help{ font-size:.84rem; color:var(--muted); margin:0 0 8px; }
.field input[type=text],
.field input[type=number],
.field input[type=email],
.field input[type=tel]{
  width:100%; min-height:48px; padding:12px 14px;
  font-family:inherit; font-size:16px; color:var(--ink);
  background:var(--paper); border:1.5px solid var(--rule); border-radius:12px;
}
.field input:focus-visible{ outline:3px solid var(--green-strong); outline-offset:1px; border-color:var(--green-strong); }
.field .err{ color:var(--orange-ink); font-size:.84rem; margin-top:6px; display:none; }
.field.invalid .err{ display:block; }
.field.invalid input{ border-color:var(--orange-ink); }

/* six-function rating control */
.ratings{ display:flex; flex-direction:column; gap:16px; }
.rating-row{ display:grid; grid-template-columns:1fr auto; gap:8px 16px; align-items:center; }
@media (max-width:600px){ .rating-row{ grid-template-columns:1fr; } }
.rating-row .rname{ font-weight:600; }
.segmented{ display:inline-flex; gap:6px; }
.segmented input{ position:absolute; opacity:0; width:0; height:0; }
.segmented label{
  min-width:44px; min-height:44px; padding:0 4px;
  display:flex; align-items:center; justify-content:center;
  border:1.5px solid var(--rule); border-radius:10px; cursor:pointer;
  font-weight:700; color:var(--ink-soft); background:var(--paper);
  transition:background .12s ease-out, color .12s ease-out, border-color .12s ease-out;
}
.segmented input:checked + label{
  background:var(--green-strong); color:#fff; border-color:var(--green-strong);
}
.segmented input:focus-visible + label{ outline:3px solid var(--green-strong); outline-offset:2px; }
.rating-scale-hint{ font-size:.78rem; color:var(--muted); }

/* honest disclaimer panel (calculator) */
.honest-note{
  background:var(--green-tint); border:1px solid var(--line);
  border-radius:var(--r-md); padding:16px 20px;
  font-size:.86rem; line-height:1.55; color:var(--ink-soft);
}
.honest-note strong{ color:var(--ink); }

/* order summary / checkout */
.summary-row{ display:flex; justify-content:space-between; gap:16px; padding:10px 0; }
.summary-total{
  display:flex; justify-content:space-between; gap:16px;
  padding-top:16px; margin-top:8px; border-top:2px solid var(--rule);
  font-weight:800; font-size:1.25rem;
}
.summary-total .amt{ color:var(--green-strong); font-variant-numeric:tabular-nums; }

/* order bump */
.bump{
  border:2px dashed var(--orange); background:var(--orange-tint);
  border-radius:var(--r-lg); padding:20px 24px; margin:24px 0;
}
.bump .bump-head{ display:flex; gap:12px; align-items:flex-start; }
.bump input[type=checkbox]{
  flex:none; width:24px; height:24px; margin-top:2px; accent-color:var(--green-strong);
  cursor:pointer;
}
.bump label{ cursor:pointer; }
.bump .bump-title{ font-weight:800; }
.bump .bump-price{ color:var(--orange-ink); font-weight:800; }

/* readiness meter */
.readiness .weakest{
  display:inline-flex; gap:8px; align-items:center;
  background:var(--orange-tint); color:var(--orange-ink);
  border-radius:var(--r-pill); padding:8px 16px; font-weight:700; margin-top:12px;
}

/* stages (system on one page) */
.stages{ display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
@media (max-width:600px){ .stages{ grid-template-columns:1fr; } }
.stage{
  background:var(--paper); border:1px solid var(--line); border-left:4px solid var(--green);
  border-radius:var(--r-md); padding:16px;
}
.stage .n{ font-size:.7rem; font-weight:800; color:var(--green-strong); letter-spacing:.1em; text-transform:uppercase; }
.stage h3{ font-size:1rem; margin:4px 0 6px; }
.stage p{ margin:0; font-size:.86rem; color:var(--ink-soft); }

/* footer */
.site-footer{
  background:var(--panel); border-top:1px solid var(--line);
  padding:40px 0; text-align:center; color:var(--muted); font-size:.84rem;
}
.site-footer .brand{ justify-content:center; margin-bottom:12px; }

/* timeline (90-day map) */
.timeline{ display:flex; flex-direction:column; gap:12px; }
.timeline .t{
  display:grid; grid-template-columns:auto 1fr; gap:16px; align-items:baseline;
  padding:16px 0; border-bottom:1px solid var(--line);
}
.timeline .when{ font-weight:800; color:var(--green-strong); font-size:.9rem; white-space:nowrap; }

/* reduced motion */
@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  html{ scroll-behavior:auto; }
  .sticky-cta{ transition:none; }
}
