/* ───────────────────────────────────────────────────────────────────────
   FitPlan — design system. Warm, light, ONE bold orange accent.
   Mobile-first. Pastels are background tints only, never competing accents.
   Layout is intentionally dense (two-column bands) so the page reads "full"
   with minimal scrolling — it's a simple product, not a long sales letter.
   ─────────────────────────────────────────────────────────────────────── */
:root{
  /* Centralized design tokens (tune freely, keep the structure) */
  --bg:#FFFBF5;                 /* warm off-white */
  --section-tint-1:#FFF0E2;     /* warm peach */
  --section-tint-2:#FFF6E6;     /* pale amber/butter */
  --accent:#C2410C;             /* burnt orange — AA-safe as text AND fill */
  --accent-dark:#9A3412;        /* hover / pressed */
  --accent-bright:#F97316;      /* decorative-only (big numbers, gradients) */
  --text:#2A2018;               /* warm near-black */
  --text-muted:#7A6E63;         /* warm gray */
  --card:#FFFFFF;
  --green:#3C9D63;              /* tiny "included ✓" only */
  --danger:#B42318;
  --line:#F0E4D6;               /* warm hairline */

  --radius:14px; --radius-sm:10px; --radius-lg:22px;
  --shadow-sm:0 1px 2px rgba(60,40,20,.05), 0 2px 8px rgba(60,40,20,.05);
  --shadow:0 6px 22px rgba(60,40,20,.09);
  --shadow-accent:0 8px 22px rgba(194,65,12,.26);

  --font-display:'Space Grotesk','Segoe UI',Helvetica,Arial,sans-serif;
  --font-body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;

  --maxw:1080px; --readw:720px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-body); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{max-width:100%; display:block;}
h1,h2,h3,h4{font-family:var(--font-display); line-height:1.1; letter-spacing:-.02em; margin:0; font-weight:700;}
h1{font-size:clamp(1.95rem,5.5vw,3rem);}
h2{font-size:clamp(1.45rem,3.6vw,2.1rem);}
h3{font-size:1.12rem;}
p{margin:0 0 .85rem;}
a{color:var(--accent); text-decoration:none;}
a:hover{color:var(--accent-dark);}
.container{max-width:var(--maxw); margin:0 auto; padding:0 20px;}
.narrow{max-width:var(--readw);}
.hidden{display:none !important;}
.muted{color:var(--text-muted);}
.eyebrow{font-family:var(--font-body); font-weight:700; font-size:.78rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--accent);}
.center{text-align:center;}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:700; font-size:1rem;
  border:none; border-radius:999px; padding:14px 28px; cursor:pointer;
  text-decoration:none; transition:transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
  will-change:transform;
}
.btn-primary{background:var(--accent); color:#fff; box-shadow:var(--shadow-accent);}
.btn-primary:hover{background:var(--accent-dark); color:#fff; transform:translateY(-2px); box-shadow:0 12px 26px rgba(194,65,12,.32);}
.btn-primary:active{transform:translateY(0) scale(.98);}
.btn-ghost{background:transparent; color:var(--accent); border:1.5px solid var(--accent);}
.btn-ghost:hover{background:var(--section-tint-1); transform:translateY(-2px);}
.btn-ghost:active{transform:scale(.98);}
.btn-block{display:flex; width:100%;}
.btn:disabled{opacity:.55; cursor:not-allowed; box-shadow:none; transform:none;}

/* ── Header ───────────────────────────────────────────────────────────── */
header.site{position:sticky; top:0; z-index:30; background:rgba(255,251,245,.85);
  backdrop-filter:saturate(160%) blur(12px); border-bottom:1px solid var(--line);}
header.site .container{display:flex; align-items:center; justify-content:space-between; height:60px;}
.brand{display:inline-flex; align-items:center; gap:8px; font-family:var(--font-display); font-weight:700; font-size:1.25rem; color:var(--text); letter-spacing:-.02em; cursor:pointer;}
.brand span{color:var(--accent);}
.brand-logo{width:30px; height:30px; display:block;}
.header-right{display:flex; align-items:center; gap:12px;}
.region-toggle{display:inline-flex; border:1.5px solid var(--line); border-radius:999px; overflow:hidden; background:#fff;}
.region-toggle button{border:none; background:transparent; font-family:var(--font-body); font-weight:600;
  font-size:.85rem; padding:6px 12px; cursor:pointer; color:var(--text-muted);}
.region-toggle button.active{background:var(--accent); color:#fff;}
.header-cta{display:none;}
@media(min-width:720px){ .header-cta{display:inline-flex; padding:9px 18px; font-size:.92rem;} }

/* ── Sections & tints (tight padding for a fuller feel) ───────────────── */
section{padding:clamp(40px,5.5vw,72px) 0;}
.tint-1{background:var(--section-tint-1);}
.tint-2{background:var(--section-tint-2);}
.section-head{max-width:620px; margin:0 0 26px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.section-head p{color:var(--text-muted); margin-top:8px;}

/* Two-column band: the core densifying layout */
.split{display:grid; gap:clamp(28px,4vw,52px); align-items:center;}
@media(min-width:840px){ .split{grid-template-columns:1fr 1fr;} .split.wide-left{grid-template-columns:1.1fr .9fr;} }

/* ── Hero (two-column on desktop) ─────────────────────────────────────── */
.hero{padding-top:clamp(34px,5vw,56px); padding-bottom:clamp(34px,5vw,56px);}
.hero .split{align-items:center;}
.hero h1{margin:10px 0 0; max-width:16ch;}
.hero .sub{font-size:clamp(1.02rem,2vw,1.18rem); color:var(--text-muted); max-width:42ch; margin:14px 0 22px;}
.hero .cta-row{display:flex; gap:12px; flex-wrap:wrap;}
.hero-counters{display:flex; gap:24px; flex-wrap:wrap; margin-top:26px;}
.counter .n{font-family:var(--font-display); font-weight:700; font-size:clamp(1.5rem,4vw,2.1rem); color:var(--accent); line-height:1;}
.counter .l{font-size:.8rem; color:var(--text-muted); margin-top:4px;}
@media(max-width:839px){ .hero{text-align:center;} .hero .sub{margin-left:auto;margin-right:auto;} .hero .cta-row,.hero-counters{justify-content:center;} .hero h1{margin-left:auto;margin-right:auto;} }

/* ── Cards / grids ────────────────────────────────────────────────────── */
.grid{display:grid; gap:14px;}
.grid-2{grid-template-columns:1fr;}
.grid-3{grid-template-columns:1fr;}
.grid-4{grid-template-columns:1fr 1fr;}
@media(min-width:560px){ .grid-2{grid-template-columns:1fr 1fr;} .grid-3{grid-template-columns:1fr 1fr;} }
@media(min-width:880px){ .grid-3{grid-template-columns:repeat(3,1fr);} .grid-4{grid-template-columns:repeat(4,1fr);} }
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:18px 20px; box-shadow:var(--shadow-sm); transition:transform .2s var(--ease), box-shadow .2s var(--ease);}
.card:hover{transform:translateY(-3px); box-shadow:var(--shadow);}
.card h3{margin-bottom:5px;}
.card p{margin:0; color:var(--text-muted); font-size:.92rem;}
.check{display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px;
  border-radius:7px; background:rgba(60,157,99,.13); color:var(--green); font-weight:800; margin-bottom:10px; font-size:.85rem;}

/* Differentiator "hack" cards — compact, with an orange marker */
.hack{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px; box-shadow:var(--shadow-sm);}
.hack h3{margin-bottom:5px; font-size:1.02rem;}
.hack .mark{display:inline-block; color:var(--accent); font-weight:800; margin-right:7px;}
.hack p{margin:0; color:var(--text-muted); font-size:.9rem;}

/* How it works — compact numbered steps */
.steps{display:grid; gap:14px;}
.step-row{display:flex; gap:14px; align-items:flex-start;}
.step-num{flex:none; width:38px; height:38px; border-radius:50%; background:var(--accent); color:#fff;
  font-family:var(--font-display); font-weight:700; font-size:1.05rem; display:flex; align-items:center; justify-content:center;}
.step-row h3{margin-bottom:2px;}
.step-row p{margin:0; color:var(--text-muted); font-size:.92rem;}

/* ── Image placeholders (swappable from /assets) ──────────────────────── */
.img-ph{position:relative; border:2px dashed #e0bfa3; border-radius:var(--radius); color:#b38a64;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:5px;
  background:linear-gradient(135deg,#fff3e8,#fff8ec); padding:16px; font-size:.78rem; aspect-ratio:4/3;}
.img-ph .lbl{font-family:var(--font-display); font-weight:700; font-size:.68rem; letter-spacing:.06em; color:var(--accent);}
.img-ph.square{aspect-ratio:1/1;}
.img-ph.ex-ph{width:56px; height:44px; flex:none; aspect-ratio:auto; padding:4px; font-size:7px; border-width:1.5px;}
.img-ph.ex-ph .lbl{font-size:7px;}
.img-ph.ex-ph.has-img{border:none; padding:0; overflow:hidden;}
.img-ph.ex-ph.has-img .ex-img{width:100%; height:100%; object-fit:contain; display:block; border-radius:6px;}

/* ── Founder story ────────────────────────────────────────────────────── */
.founder p{font-size:1rem;}
/* Before → After transformation triptych: equal portrait tiles. */
.founder-photos{display:grid; grid-template-columns:repeat(auto-fit, minmax(105px, 1fr)); gap:10px;}
.founder-photos > .img-wrap{aspect-ratio:3/4;}

/* Image wrapper + photos */
.img-wrap{position:relative; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); background:var(--section-tint-2);}
.img-wrap .photo{width:100%; height:100%; object-fit:cover; display:block;}
.img-wrap .photo.contain{object-fit:contain;}
.photo-cap{position:absolute; bottom:8px; left:8px; background:rgba(31,24,16,.62); color:#fff;
  padding:3px 10px; border-radius:999px; font-size:.74rem; font-weight:600; letter-spacing:.02em;}
.img-ph.fill{aspect-ratio:auto; width:100%; height:100%;}

/* Hero photo (portrait transformation shot) */
.hero-photo{margin:0; border-radius:var(--radius-lg); overflow:hidden;}
.hero-photo .img-wrap{aspect-ratio:4/5; border-radius:var(--radius-lg);}
@media(max-width:839px){ .hero-photo{max-width:380px; margin:8px auto 0;} }

/* ── Price ────────────────────────────────────────────────────────────── */
.price-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:clamp(24px,3.5vw,34px); box-shadow:var(--shadow); text-align:center;}
.price-card .amount{font-family:var(--font-display); font-weight:700; font-size:clamp(2.4rem,7vw,3.2rem); color:var(--accent); line-height:1;}
.price-card .anchor{color:var(--text-muted); margin:6px 0 18px; font-size:.95rem;}
.price-list{list-style:none; padding:0; margin:0 auto 20px; max-width:300px; text-align:left; display:grid; gap:8px;}
.price-list li{display:flex; gap:9px; align-items:flex-start; font-size:.95rem;}
.price-list .tick{color:var(--green); font-weight:800; flex:none;}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq{display:grid; gap:9px;}
.faq details{background:var(--card); border:1px solid var(--line); border-radius:var(--radius-sm); padding:2px 18px; box-shadow:var(--shadow-sm);}
.faq summary{list-style:none; cursor:pointer; font-family:var(--font-display); font-weight:700; font-size:.98rem;
  padding:13px 0; display:flex; justify-content:space-between; align-items:center; gap:12px;}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:'+'; color:var(--accent); font-size:1.4rem; font-weight:400; transition:transform .2s var(--ease);}
.faq details[open] summary::after{transform:rotate(45deg);}
.faq details p{margin:0 0 15px; color:var(--text-muted); font-size:.92rem;}

/* Sample preview mini-card (in the how-it-works band) */
.sample-card .day{margin:0;}
.sample-note{font-size:.82rem; color:var(--text-muted); margin-top:8px;}

/* ── Reviews ──────────────────────────────────────────────────────────── */
.link-btn{background:none; border:none; padding:0; font:inherit; color:var(--accent);
  font-weight:700; cursor:pointer; text-decoration:underline; text-underline-offset:2px;}
.link-btn:hover{color:var(--accent-dark);}

/* Star rows (read-only display) */
.stars{display:inline-flex; gap:2px; line-height:1;}
.stars .star{color:#e7d6c3; font-size:1rem;}
.stars .star.on{color:#F5A623;}

/* Average-rating summary line */
.reviews-summary{display:flex; align-items:center; justify-content:center; gap:14px; margin:0 0 24px; min-height:1px;}
.reviews-summary:empty{display:none;}
.rv-avg{font-family:var(--font-display); font-weight:700; font-size:2.6rem; color:var(--accent); line-height:1;}

/* Review cards */
.review-card{display:flex; flex-direction:column; gap:10px;}
.review-card .rv-text{color:var(--text); font-size:.95rem; margin:0; flex:1;}
.rv-meta{display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:.85rem;}
.rv-name{font-weight:700;}
.rv-goal{color:var(--text-muted);}
.rv-badge{display:inline-flex; align-items:center; gap:3px; background:rgba(60,157,99,.13);
  color:var(--green); font-weight:700; font-size:.72rem; padding:2px 9px; border-radius:999px;}
.rv-empty{grid-column:1/-1; text-align:center; color:var(--text-muted); padding:18px 0;}
.rv-empty .btn{margin-top:8px;}

/* Submission form */
.review-form-wrap{max-width:560px; margin:26px auto 0;}
.review-form{background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:clamp(22px,3.5vw,32px); box-shadow:var(--shadow);}
.review-form h3{margin-bottom:2px;}
.review-form .field textarea{width:100%; padding:13px 15px; border:2px solid var(--line); border-radius:var(--radius-sm);
  font-family:var(--font-body); font-size:1rem; background:#fff; color:var(--text); resize:vertical;}
.review-form .field textarea:focus{outline:none; border-color:var(--accent);}
.review-form-actions{display:flex; gap:12px; margin-top:6px;}
.rv-thanks{background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:clamp(22px,3.5vw,32px); box-shadow:var(--shadow); text-align:center;}

/* Interactive star picker */
.star-input{display:inline-flex; gap:4px;}
.si-star{background:none; border:none; cursor:pointer; padding:2px; font-size:2rem; line-height:1;
  color:#e7d6c3; transition:color .12s, transform .12s var(--ease);}
.si-star:hover{transform:scale(1.12);}
.si-star.on{color:#F5A623;}

/* ── Footer ───────────────────────────────────────────────────────────── */
footer.site{background:var(--text); color:#d8cdc2; padding:36px 0; font-size:.9rem;}
footer.site a{color:#fff;}
footer.site .foot-top{display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:18px;}
footer.site .brand{color:#fff;}
.disclaimer{border-left:3px solid var(--danger); background:rgba(180,35,24,.13); color:#ffd9d4;
  padding:13px 15px; border-radius:8px; font-size:.84rem; line-height:1.55;}

/* ═══════════ QUIZ ═══════════ */
.quiz-progress{position:sticky; top:60px; z-index:20; background:var(--bg); padding:14px 0 8px;}
.quiz-progress .bar{height:8px; background:var(--line); border-radius:999px; overflow:hidden;}
.quiz-progress .bar > i{display:block; height:100%; width:0; background:var(--accent);
  border-radius:999px; transition:width .45s var(--ease);}
.quiz-progress .meta{display:flex; justify-content:space-between; font-size:.82rem; color:var(--text-muted); margin-top:8px;}
.quiz-wrap{min-height:56vh; padding-bottom:56px;}
.step-screen{max-width:600px; margin:0 auto;}
.step-screen h2{font-size:clamp(1.45rem,4.5vw,2rem);}
.step-screen .hint{color:var(--text-muted); margin:6px 0 22px;}
.step-screen{animation:stepIn .4s var(--ease);}
@keyframes stepIn{from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:none;}}

.options{display:grid; gap:11px;}
.opt{display:flex; flex-direction:column; gap:3px; text-align:left; cursor:pointer;
  background:var(--card); border:2px solid var(--line); border-radius:var(--radius);
  padding:16px 19px; font-family:var(--font-body); font-size:1.02rem; font-weight:600; color:var(--text);
  transition:border-color .15s, background .15s, transform .1s var(--ease), box-shadow .15s;}
.opt:hover{border-color:var(--accent); transform:translateY(-2px); box-shadow:var(--shadow-sm);}
.opt:focus-visible{outline:3px solid rgba(194,65,12,.4); outline-offset:2px;}
.opt.selected{border-color:var(--accent); background:var(--section-tint-1); box-shadow:var(--shadow-accent);}
.opt .sub{font-weight:400; font-size:.86rem; color:var(--text-muted);}

.field{margin-bottom:15px;}
.field label{display:block; font-weight:600; font-size:.88rem; margin-bottom:6px;}
.field input,.field select{width:100%; padding:13px 15px; border:2px solid var(--line); border-radius:var(--radius-sm);
  font-family:var(--font-body); font-size:1.02rem; background:#fff; color:var(--text);}
.field input:focus,.field select:focus{outline:none; border-color:var(--accent);}
.row2{display:grid; grid-template-columns:1fr 1fr; gap:13px;}
.unit-toggle{display:inline-flex; border:2px solid var(--line); border-radius:999px; overflow:hidden; margin-bottom:16px; background:#fff;}
.unit-toggle button{border:none; background:transparent; font-family:var(--font-body); font-weight:600; padding:9px 17px; cursor:pointer; color:var(--text-muted);}
.unit-toggle button.active{background:var(--accent); color:#fff;}
.nav-row{display:flex; justify-content:space-between; gap:13px; margin-top:26px;}
.err{color:var(--danger); font-size:.9rem; margin-top:10px; min-height:1.2em;}

.building{max-width:460px; margin:9vh auto; text-align:center;}
.spinner{width:50px; height:50px; margin:0 auto 20px; border-radius:50%;
  border:5px solid var(--section-tint-1); border-top-color:var(--accent); animation:spin 1s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}

/* ── Preview / paywall ────────────────────────────────────────────────── */
.kpis{display:flex; gap:11px; flex-wrap:wrap; margin:16px 0;}
.kpi{flex:1 1 110px; background:var(--section-tint-2); border-radius:var(--radius-sm); padding:14px 16px;}
.kpi .v{font-family:var(--font-display); font-weight:700; font-size:1.3rem; color:var(--accent); line-height:1.1;}
.kpi .l{font-size:.74rem; text-transform:uppercase; letter-spacing:.04em; color:var(--text-muted); margin-top:4px;}
.paywall{background:linear-gradient(135deg,var(--accent-bright),var(--accent)); color:#fff;
  border-radius:var(--radius-lg); padding:28px; text-align:center; margin-top:22px; box-shadow:var(--shadow-accent);}
.paywall .price{font-family:var(--font-display); font-weight:700; font-size:2.2rem; margin:5px 0 4px;}
.paywall .btn-primary{background:#fff; color:var(--accent); box-shadow:none;}
.paywall .btn-primary:hover{background:#fff3e8; color:var(--accent-dark);}

/* ── Plan render ──────────────────────────────────────────────────────── */
.day{border:1px solid var(--line); border-radius:var(--radius); margin-bottom:14px; overflow:hidden; background:#fff; box-shadow:var(--shadow-sm);}
.day-head{background:var(--accent); color:#fff; padding:11px 16px; font-family:var(--font-display); font-weight:700;}
.ex-row{display:flex; gap:13px; align-items:center; padding:10px 16px; border-bottom:1px solid var(--line);}
.ex-row:last-child{border-bottom:none;}
.ex-name{flex:1;}
.ex-sets{color:var(--accent); font-weight:700; white-space:nowrap;}
.ex-prog{font-size:.8rem; color:var(--text-muted); margin-top:2px;}
table{width:100%; border-collapse:collapse; font-size:.93rem; margin-bottom:14px;}
th,td{text-align:left; padding:9px; border-bottom:1px solid var(--line); vertical-align:top;}
th{background:var(--section-tint-2); color:var(--accent); font-size:.76rem; text-transform:uppercase; letter-spacing:.04em;}
.tag{display:inline-block; background:var(--section-tint-1); color:var(--accent); border-radius:999px; padding:5px 13px; font-size:.84rem; margin:0 6px 6px 0; font-weight:600;}
#planHost h3{margin:24px 0 11px;}
#planHost h4{margin:16px 0 7px;}

/* ── Scroll-reveal ────────────────────────────────────────────────────── */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .6s var(--ease), transform .6s var(--ease);}
.reveal.in{opacity:1; transform:none;}
.reveal.d1{transition-delay:.07s;} .reveal.d2{transition-delay:.14s;} .reveal.d3{transition-delay:.2s;}

@media(prefers-reduced-motion:reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important;}
  .reveal{opacity:1; transform:none;}
}
