*{box-sizing:border-box}
:root{--bg:#0f1115;--panel:#171a21;--panel2:#1e222b;--line:#2a2f3a;--txt:#e8eaed;--muted:#9aa3b2;--accent:#2A9D8F;--accent2:#E9C46A;--map-off:#353b47;--hd-bg:rgba(15,17,21,.85);--mcta-bg:rgba(15,17,21,.94);--mcta-shadow:rgba(0,0,0,.4)}
/* light theme — mirrors the in-app palette (public/app.css html[data-theme="light"]); applied from the shared fbw_theme localStorage key by the head script, so landing + app stay in sync */
html[data-theme="light"]{--bg:#f4f6f9;--panel:#ffffff;--panel2:#e6ebf2;--line:#bcc7d6;--txt:#141d29;--muted:#4d5867;--accent2:#b8860b;--map-off:#bcc6d4;--hd-bg:rgba(244,246,249,.85);--mcta-bg:rgba(244,246,249,.94);--mcta-shadow:rgba(15,25,40,.18)}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--txt);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}
.wrap{max-width:1060px;margin:0 auto;padding:0 24px}
a{color:var(--accent)}
/* header */
.hd{position:sticky;top:0;z-index:10;background:var(--hd-bg);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.hd-in{display:flex;align-items:center;gap:14px;padding-top:16px;padding-bottom:16px} /* top/bottom only: .wrap owns the 24px side padding on the same element */
.logo{font-weight:800;font-size:18px;color:var(--txt);text-decoration:none;letter-spacing:.5px}
.logo b{color:var(--accent)}
.hd-sp{flex:1}
.hd a.lng{color:var(--muted);text-decoration:none;font-size:14px;font-weight:600}
.hd-link{color:var(--muted);text-decoration:none;font-size:14px;font-weight:600}
.hd-link:hover{color:var(--txt)}
.hd-theme{background:none;border:0;padding:4px;margin:0;cursor:pointer;font-size:18px;line-height:1;color:var(--muted);border-radius:8px}
.hd-theme:hover{background:var(--panel2)}
.btn{display:inline-block;padding:11px 22px;border-radius:10px;font-weight:700;font-size:15px;text-decoration:none;border:1px solid var(--line);color:var(--txt);background:var(--panel2);cursor:pointer}
.btn.pri{background:var(--accent);border-color:var(--accent);color:#0b1512}
.btn.big{padding:15px 34px;font-size:17px}
/* hero — stacked: text on top, the animated coverage diagram centered beneath it */
.hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:56px 0 44px}
.hero-txt{max-width:700px}
h1{margin:0 0 16px;font-size:clamp(30px,5vw,46px);line-height:1.15;font-weight:800}
h1 em{font-style:normal;color:var(--accent)}
.sub{margin:0 auto 14px;color:var(--muted);font-size:clamp(16px,2.2vw,19px);max-width:600px}
.cta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:center}
.cta .note{flex-basis:100%;color:var(--muted);font-size:13.5px;margin-top:6px}
.hero-img{width:100%;display:flex;justify-content:center;margin:2px 0 24px}
/* .hero-anim reserves side gutters for the labels; .hero-figs is the centered silhouette
   column (its % of the box leaves gutters on each side for the pinned pills). */
.hero-anim{position:relative;width:100%;max-width:440px}
.hero-figs{width:58%;margin:0 auto;line-height:0}
.hero-img img{width:100%;max-width:320px;height:auto}
.hero-figs .hero-svg{width:100%;height:auto;display:block}
/* inline hero silhouette: active muscles teal, inactive parts follow the theme's map-off
   (light-gray in light mode instead of a black figure), outline follows the page bg — mirrors the in-app body map */
/* animation-fill-mode:backwards so that during each polygon's stagger delay it shows the
   0% keyframe (dim) instead of the un-animated full-teal base — otherwise on load every
   muscle flashes fully lit, then jumps to the dim-and-sweep wave. Backwards makes the
   load state match the wave: all start dim and light up top-to-bottom. */
.hero-svg .hb-on{fill:var(--accent);animation:muscleWave 5s ease-in-out infinite backwards}
.hero-svg .hb-off{fill:var(--map-off)}
.hero-svg polygon{stroke:var(--bg)}
/* rolling activation sweep: each active muscle dims then re-lights teal; the per-polygon
   animation-delay (set in landingPage.js from its y-position) makes it travel top-to-bottom.
   Animate fill-opacity (not `fill`) — Safari/WebKit does NOT animate a `var()` color inside
   @keyframes, which left the whole wave static on iOS; fill-opacity is animatable everywhere
   and keeps the teal (and its light/dark theming) intact. */
@keyframes muscleWave{0%{fill-opacity:.3}16%{fill-opacity:1}80%{fill-opacity:1}100%{fill-opacity:.3}}
/* coverage percentage labels pinned in the side gutters (side + y set in landingPage.js).
   The inner edge sits just outside the figure column (which spans 22%..78%) so a wide/long
   label always grows OUTWARD, never over the silhouette; a caret points it at the body. */
.hero-pct{position:absolute;transform:translateY(-50%);max-width:150px;background:var(--accent);color:#06110e;border-radius:12px;
  padding:6px 12px;line-height:1;pointer-events:none;box-shadow:0 4px 16px rgba(0,0,0,.3);will-change:opacity}
.hero-pct.l{right:calc(79% + 8px);text-align:right}
.hero-pct.r{left:calc(79% + 8px);text-align:left}
.hero-pct b{display:block;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.hero-pct span{display:block;font-size:9.5px;font-weight:700;line-height:1.15;letter-spacing:.03em;text-transform:uppercase;opacity:.72;margin-top:2px}
.hero-pct::after{content:"";position:absolute;top:50%;transform:translateY(-50%);width:0;height:0;border:6px solid transparent}
.hero-pct.l::after{left:100%;border-left-color:var(--accent)}
.hero-pct.r::after{right:100%;border-right-color:var(--accent)}
/* The hero wave is a gentle fill-opacity/count pulse (no parallax/zoom/large motion), so it
   deliberately plays even under prefers-reduced-motion — it's the product's core visual. */
/* sections */
section{padding:44px 0}
h2{font-size:clamp(22px,3.4vw,30px);margin:0 0 24px;font-weight:800}
.cards3{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.fcard{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px}
.fcard .ico{font-size:28px}
.fcard h3{margin:10px 0 6px;font-size:17px}
.fcard p{margin:0;color:var(--muted);font-size:14.5px}
/* steps */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;counter-reset:st}
.step{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px;position:relative}
.step::before{counter-increment:st;content:counter(st);position:absolute;top:-14px;left:18px;width:30px;height:30px;border-radius:50%;background:var(--accent);color:#0b1512;font-weight:800;display:flex;align-items:center;justify-content:center}
.step h3{margin:8px 0 6px;font-size:16.5px}
.step p{margin:0;color:var(--muted);font-size:14.5px}
/* pwa band */
.band{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:28px;display:flex;gap:24px;align-items:center;flex-wrap:wrap}
.band .emoji{font-size:44px}
.band h2{margin:0 0 8px}
.band p{margin:0;color:var(--muted)}
/* faq */
details.faq{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin-bottom:10px}
details.faq summary{cursor:pointer;font-weight:700;font-size:15.5px}
details.faq p{color:var(--muted);font-size:14.5px;margin:10px 0 2px}
/* footer */
footer{border-top:1px solid var(--line);padding:28px 0 40px;color:var(--muted);font-size:13.5px}
footer .wrap{display:flex;gap:16px;flex-wrap:wrap;align-items:center}
footer .sp{flex:1}
.logo .brandmark{width:24px;height:24px;vertical-align:-6px;margin-right:8px}
/* three pillars */
.pillars{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.pillar{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px;border-top:3px solid var(--accent)}
.pillar h3{margin:0 0 8px;font-size:17px}
.pillar p{margin:0;color:var(--muted);font-size:14.5px}
/* program prose */
.prose{max-width:760px}
.prose p{margin:0 0 14px;color:var(--muted);font-size:15.5px}
.prose .lead{color:var(--txt);font-size:clamp(17px,2.4vw,20px);font-weight:600}
.prose .musc-lbl{color:var(--txt);font-weight:700;margin-bottom:4px}
.prose .musc{color:var(--accent);font-weight:600}
/* free vs pro tiers */
.tiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-bottom:20px}
.tier{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px}
.tier.pro{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.tier h3{margin:0 0 14px;font-size:18px}
.tier.pro h3{color:var(--accent)}
.tier ul{margin:0;padding:0;list-style:none}
.tier li{position:relative;padding:0 0 10px 26px;color:var(--muted);font-size:14.5px}
.tier li::before{content:"✓";position:absolute;left:0;top:0;color:var(--accent);font-weight:800}
.price-line{color:var(--txt);font-weight:600;font-size:16px;margin:0 0 20px}
/* comparison table */
.cmp-wrap{overflow-x:auto}
.cmp{width:100%;border-collapse:collapse;min-width:520px}
.cmp th,.cmp td{padding:12px 14px;text-align:center;border-bottom:1px solid var(--line);font-size:14.5px}
.cmp thead th{color:var(--muted);font-weight:700}
.cmp thead th.you{color:var(--accent)}
.cmp th[scope=row]{text-align:left;color:var(--txt);font-weight:600}
.cmp td.yes{color:var(--accent);font-weight:800;font-size:17px}
.cmp-note{color:var(--muted);font-size:12.5px;margin:12px 0 0}
/* final cta band */
.ctaband{background:linear-gradient(135deg,var(--panel),var(--panel2));border:1px solid var(--accent);border-radius:20px;padding:44px 28px;text-align:center}
.ctaband h2{margin:0 0 10px}
.ctaband p{margin:0 0 22px;color:var(--muted);font-size:16px}
/* sticky mobile CTA bar (mobile only) */
.mcta{display:none}
/* ---------------- mobile ---------------- */
@media (max-width:640px){
  .wrap{padding:0 18px}
  section{padding:32px 0}
  h2{margin:0 0 18px}
  /* hero: tighter spacing; diagram capped for small screens */
  .hero{padding:24px 0 22px;gap:6px}
  .sub{margin:0 auto 12px}
  .hero-img{margin:2px 0 18px}
  .hero-anim{max-width:340px}
  .hero-figs{width:56%}
  .hero-pct{padding:5px 9px;max-width:82px}
  .hero-pct.l{right:calc(78% + 4px)}
  .hero-pct.r{left:calc(78% + 4px)}
  .hero-pct b{font-size:13px}
  .hero-pct span{font-size:8px}
  /* full-width thumb-friendly CTAs */
  .cta{gap:10px}
  .cta .btn{flex:1 1 100%;text-align:center;padding:16px 20px}
  .cta .btn.big{padding:16px 20px}
  #pro .cta .btn,section .ctaband .btn{width:100%}
  /* comparison table -> stacked cards, no horizontal scroll */
  .cmp-wrap{overflow-x:visible}
  .cmp{min-width:0;border-collapse:separate}
  .cmp thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .cmp tbody,.cmp tr,.cmp th[scope=row],.cmp td{display:block}
  .cmp tr{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:8px 14px;margin-bottom:12px}
  .cmp th[scope=row]{border:0;padding:8px 0 6px;font-size:15.5px}
  .cmp td{border:0;border-top:1px solid var(--line);text-align:left;padding:9px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14.5px}
  .cmp td::before{content:attr(data-label);color:var(--muted);font-weight:600}
  .cmp td.yes{color:var(--accent);font-weight:800;font-size:15px}
  .cmp-note{text-align:center}
  /* generous single-column stacking already handled by auto-fit grids */
  .pillar,.fcard,.step,.tier,.band{padding:18px}
  .ctaband{padding:32px 20px}
  /* sticky bottom CTA */
  body{padding-bottom:76px}
  /* hidden until the hero's own CTA scrolls out of view (toggled by the page script) so the
     two never crowd the screen at once */
  .mcta{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;align-items:center;gap:12px;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--mcta-bg);
    backdrop-filter:blur(10px);border-top:1px solid var(--line);box-shadow:0 -6px 24px var(--mcta-shadow);
    transform:translateY(120%);opacity:0;pointer-events:none;transition:transform .35s ease,opacity .35s ease}
  .mcta.show{transform:translateY(0);opacity:1;pointer-events:auto}
  .mcta .btn{flex:1 1 auto;text-align:center;padding:14px 18px}
  .mcta-note{flex:0 0 auto;color:var(--muted);font-size:11.5px;max-width:38%;line-height:1.2}
}
/* ---------------- small phones ---------------- */
@media (max-width:520px){
  .hd-link{display:none}
  .hd-in{padding-top:12px;padding-bottom:12px;gap:10px}
  .logo{font-size:16px}
  .logo .brandmark{width:21px;height:21px}
  h1{font-size:clamp(27px,7.5vw,34px)}
}
