:root {
  --orange: #E3741A; --orange-l: #FF9A3C; --orange-d: #A84C08; --apricot: #FFB46B; --peach: #FFEEDC; --cream: #FFF8F1;
  --ink: #2A1F17; --ink-2: #6E5D50; --line: #F1E3D4;
  --protein: #2F6FED; --carbs: #E89B0C; --fat: #D6458B; --water: #1BA3D6; --steps: #7C4DDB; --green: #1FB859;
  --out: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1); --io: cubic-bezier(.7, 0, .2, 1);
  --gutter: clamp(16px, 5vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Nunito, ui-rounded, system-ui, sans-serif; color: var(--ink); background: var(--cream); overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p, ul, figure { margin: 0; }
main { overflow-x: clip; }

/* ---------------- type + reveal ---------------- */
.kicker { font-weight: 900; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
h2 { font-weight: 900; font-size: clamp(34px, 5vw, 62px); line-height: 1.02; letter-spacing: -.025em; }
.body { font-weight: 700; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; color: var(--ink-2); margin-top: 18px; max-width: 30em; }
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--out) var(--d, 0s), transform .9s var(--out) var(--d, 0s), filter .9s var(--out) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.split .w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s var(--out); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.split.in .w > span { transform: none; }
.split .acc { color: var(--orange); }
.reveal-phone { opacity: 0; transform: translateY(120px) rotate(-6deg) scale(.94); transition: opacity .8s var(--out), transform 1.4s var(--spring); }
.reveal-phone.in { opacity: 1; transform: none; }

/* ---------------- nav ---------------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 14px var(--gutter); transition: background .4s, box-shadow .4s, padding .4s; }
.nav.scrolled { padding-top: 10px; padding-bottom: 10px; background: rgba(255,250,244,.8); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 1px 0 rgba(42,31,23,.08), 0 10px 30px -18px rgba(42,31,23,.35); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 28px; letter-spacing: -.03em; }
.brand img { width: 46px; height: 46px; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(42,31,23,.22); transition: width .4s, height .4s; }
.nav.scrolled .brand img { width: 40px; height: 40px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; font-weight: 800; font-size: 15px; }
.nav-links a { white-space: nowrap; padding: 9px 13px; border-radius: 999px; transition: background .2s; }
.nav-links a:hover { background: rgba(42,31,23,.08); }
.nav-cta { white-space: nowrap; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 900; font-size: 15px; transition: transform .2s var(--out), background .2s; }
.nav-cta:hover { transform: scale(1.04); background: var(--orange); }
@media (max-width: 1060px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }
@media (max-width: 760px) { .brand { font-size: 24px; } .brand img { width: 40px; height: 40px; } }

/* ---------------- buttons ---------------- */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 18px; border-radius: 16px; background: #120C08; color: #fff; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); transition: transform .25s var(--spring); }
.store:hover { transform: translateY(-2px) scale(1.03); }
.store svg { width: 24px; height: 28px; fill: #fff; }
.store svg.play { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; font-weight: 800; font-size: 21px; line-height: 1.05; letter-spacing: -.01em; }
.store small { font-size: 11px; font-weight: 700; opacity: .8; letter-spacing: 0; }

/* ---------------- 1. hero gym ---------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: clip; }
.gym { position: absolute; inset: 0; overflow: hidden; background: #F6C892; cursor: pointer; touch-action: pan-y; }
.gym > * { position: absolute; inset: 0; pointer-events: none; }
.gym-bg { background: url("assets/img/gym.webp") var(--bgx, 50%) 100% / cover no-repeat; }
.gym-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,246,236,.72) 0%, rgba(255,246,236,.38) 34%, rgba(255,246,236,0) 58%), linear-gradient(180deg, rgba(255,236,214,.35), transparent 30%); }
/* sunlight drifting across the wall and floor */
.beams { background: repeating-linear-gradient(112deg, transparent 0 90px, rgba(255,238,200,.22) 90px 150px, transparent 150px 260px); mix-blend-mode: soft-light; animation: beams 14s ease-in-out infinite alternate; }
@keyframes beams { from { transform: translateX(-40px); opacity: .55; } to { transform: translateX(40px); opacity: 1; } }
.motes i { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,250,235,.95), rgba(255,240,210,0) 70%); animation: mote linear infinite; }
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .7; } 100% { transform: translate(var(--sway, 30px), -260px); opacity: 0; } }
.roo-stage { z-index: 1; }
.dust { z-index: 2; }
.puff { position: absolute; left: 0; top: 0; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(255,246,232,.95), rgba(235,205,170,.55) 55%, rgba(235,205,170,0) 72%); }
.ring { position: absolute; left: 0; top: 0; border-radius: 50%; border: 3px solid rgba(255,250,240,.85); box-shadow: 0 0 0 2px rgba(168,76,8,.12); }
.hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 80px; max-width: 760px; pointer-events: none; will-change: transform, opacity; }
.hero-copy a { pointer-events: auto; }
.pill { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: rgba(227,116,26,.14); color: var(--orange-d); font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-weight: 900; font-size: clamp(48px, 8vw, 108px); line-height: .94; letter-spacing: -.04em; margin-top: 22px; max-width: 8.2em; text-shadow: 0 2px 30px rgba(255,246,236,.6); }
.lede { font-weight: 800; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; margin-top: 22px; max-width: 25em; color: #4A3A2E; }
.reassure { margin-top: 18px; font-weight: 800; font-size: 15px; color: rgba(42,31,23,.7); }
.hint { position: absolute; z-index: 2; right: var(--gutter); bottom: 86px; font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(80,40,10,.55); opacity: 0; animation: hint 1s var(--out) 3s forwards; pointer-events: none; transition: opacity .4s; }
@keyframes hint { to { opacity: .9; } }
.hint.gone { animation: none; opacity: 0; }
.edge { position: absolute; z-index: 3; left: 0; bottom: -1px; width: 100%; height: 60px; pointer-events: none; }
/* no room for Roo beside the copy (phones, tablets, narrow windows; script.js measures it): copy on top, Roo below */
.hero.stacked { height: auto; min-height: 100vh; min-height: 100svh; }
.hero.stacked .gym-bg { --bgx: 22%; }
.hero.stacked .gym-bg::after { background: linear-gradient(180deg, rgba(255,246,236,.82) 0%, rgba(255,246,236,.55) 45%, rgba(255,246,236,0) 70%); }
.hero.stacked .hero-copy { height: auto; justify-content: flex-start; padding: 104px var(--gutter) 380px; }
.hero.stacked .hint { display: none; }
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
}

/* ---------------- proof strip (under the hero) ---------------- */
.proof { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: clamp(24px, 6vw, 80px); padding: 40px var(--gutter) 0; text-align: center; }
.proof-item b { display: flex; align-items: baseline; justify-content: center; gap: 5px; font-weight: 900; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.proof-item b small { font-size: .45em; letter-spacing: 0; color: var(--orange); }
.proof-item > span { display: block; margin-top: 6px; font-weight: 800; font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr 1fr; row-gap: 26px; padding-top: 28px; } }

/* ---------------- Roo, the puppet ---------------- */
.roo { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; opacity: 0; transition: opacity .4s; }
.roo.ready { opacity: 1; }
.roo-body { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; will-change: transform; transform-style: preserve-3d; }
.roo-shadow { position: absolute; left: 0; top: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(70,35,10,.38), rgba(70,35,10,0)); }
/* every joint keeps its depth, so turning the body shifts the layers like a 3D figure */
.roo-view { position: absolute; transform-style: preserve-3d; }
.roo-view[hidden] { display: none; }
.rj { position: absolute; width: 0; height: 0; transform-origin: 0 0; transform-style: preserve-3d; }
.rj > img, .roo-held, .roo-bar { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
.roo-held, .roo-bar { display: none; }
.roo-held svg, .roo-bar svg { width: 100%; height: 100%; overflow: visible; }
.roo[data-prop="dumbbells"] .roo-held, .roo[data-prop="barbell"] .roo-bar { display: block; }
.roo-bar { left: 0; top: 0; transform-origin: 50% 50%; }
.roo-face { transform-origin: 50% 50%; }

/* ---------------- phone mockup ---------------- */
.iphone { position: relative; width: 300px; aspect-ratio: 432 / 904; flex: none; }
.ip-in { position: absolute; left: 0; top: 0; width: 432px; height: 904px; transform: scale(var(--k, .7)); transform-origin: 0 0; }
.ip-frame { position: absolute; inset: 0; border-radius: 70px; padding: 6px;
  background: linear-gradient(145deg, #4A4D52 0%, #2A2C30 20%, #6B6E73 42%, #24262A 62%, #50535A 82%, #1C1D20 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18), 0 60px 100px -40px rgba(60,30,10,.55), 0 30px 50px -30px rgba(60,30,10,.45); }
.ip-in > i { position: absolute; width: 5px; border-radius: 3px; background: linear-gradient(90deg, #2A2C30, #5B5E64); }
.ip-in > .b1 { left: -3px; top: 172px; height: 34px; } .ip-in > .b2 { left: -3px; top: 232px; height: 62px; }
.ip-in > .b3 { left: -3px; top: 308px; height: 62px; } .ip-in > .b4 { right: -3px; top: 262px; height: 96px; }
.ip-bezel { width: 100%; height: 100%; border-radius: 64px; background: #050506; padding: 9px; }
.ip-scr { position: relative; width: 402px; height: 874px; border-radius: 55px; overflow: hidden; background: var(--cream); isolation: isolate; transform: translateZ(0); }
.tap { position: absolute; z-index: 40; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 6px 20px rgba(0,0,0,.28); pointer-events: none; transform: translate(300px, 960px); }
.sb { position: absolute; inset: 0 0 auto 0; height: 54px; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 50px; font: 600 17px/1 -apple-system, "SF Pro Text", system-ui, sans-serif; color: var(--ink); pointer-events: none; }
.sb.light { color: #fff; }
.sb svg { fill: currentColor; }
.sb .ic { display: flex; gap: 6px; align-items: center; }
.island { position: absolute; z-index: 30; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; }
.homebar { position: absolute; z-index: 20; bottom: 8px; left: 50%; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: var(--ink); opacity: .85; }
.homebar.light { background: #fff; }

/* ---------------- drawn app screens (the app's own colours) ---------------- */
.ui { position: absolute; inset: 0; padding: 62px 18px 0; display: flex; flex-direction: column; gap: 12px; font-family: Nunito, system-ui, sans-serif; color: var(--ink); background: var(--cream); }
.ui-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; }
.ui-top h4 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.ui-top small { display: block; font-size: 13px; font-weight: 800; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }
.ui-av { width: 42px; height: 42px; border-radius: 50%; background: var(--peach); display: grid; place-items: center; overflow: hidden; }
.ui-av img { width: 46px; margin-top: 10px; }
.card { background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 14px 16px; }
.card h5 { margin: 0; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--peach); color: var(--orange-d); font-weight: 800; font-size: 13px; white-space: nowrap; }
.btn { display: grid; place-items: center; height: 52px; border-radius: 16px; background: var(--orange); color: #fff; font-weight: 900; font-size: 17px; }
.btn.soft { background: var(--peach); color: var(--orange-d); }
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; padding: 10px 14px 0; background: rgba(255,255,255,.94); border-top: 1px solid var(--line); display: flex; justify-content: space-around; }
.tabs span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #B4A597; }
.tabs span.on { color: var(--orange); }
.tabs svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bar { height: 10px; border-radius: 5px; background: #F3E9DF; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v, 0%); border-radius: inherit; background: var(--c, var(--orange)); transition: width .8s var(--out); }
.roll { display: inline-grid; overflow: hidden; vertical-align: bottom; }
.roll > span { grid-area: 1 / 1; }

/* workout session (section 2) */
.w-demo { position: relative; height: 270px; border-radius: 24px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #FFE2C2, #FFD0A0 70%); }
.w-demo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(180deg, #E9B784, #D9A06A); border-top: 3px solid rgba(255,255,255,.5); }
.w-demo .roo-stage { position: absolute; inset: 0; z-index: 1; }
.w-demo .tag { position: absolute; z-index: 2; left: 12px; top: 12px; }
.w-title { display: flex; justify-content: space-between; align-items: flex-end; }
.w-title b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.w-title small { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.sets { display: grid; gap: 8px; }
.set { display: grid; grid-template-columns: 34px 1fr 1fr 46px; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); font-weight: 800; font-size: 16px; transition: background .3s, border-color .3s; }
.set .n { color: var(--ink-2); }
.set .ok { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #F3E9DF; transition: background .3s, transform .3s var(--spring); }
.set .ok svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
.set.done { background: #FFF1E3; border-color: #FFD3A8; }
.set.done .ok { background: var(--orange); }
.set.done .ok svg { opacity: 1; }
.set.hit .ok { transform: scale(.85); }
.rest { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 16px; border-radius: 18px; background: var(--ink); color: #fff; font-weight: 800; transform: translateY(14px); opacity: 0; transition: transform .5s var(--spring), opacity .3s; }
.rest.on { transform: none; opacity: 1; }
.rest b { margin-left: auto; font-size: 24px; font-variant-numeric: tabular-nums; }
.rest svg { width: 34px; height: 34px; transform: rotate(-90deg); }

/* form demo (section 3) */
.d-stage { position: relative; height: 470px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #2E241D, #3D2F25 70%); }
.d-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 30%, rgba(255,170,90,.32), transparent 70%); }
.d-stage::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: -60px; height: 150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.12), rgba(255,255,255,0)); }
.d-stage .grid-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 40px); transform: perspective(240px) rotateX(55deg); transform-origin: 50% 100%; }
.d-stage .roo-stage { position: absolute; inset: 0; z-index: 1; }
.d-stage .cue { position: absolute; z-index: 2; left: 50%; top: 18px; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; background: rgba(18,161,80,.92); color: #fff; font-weight: 900; font-size: 15px; white-space: nowrap; transition: opacity .25s; }
.d-stage .angle { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.d-stage .angle svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.seg { display: flex; padding: 4px; border-radius: 16px; background: #F3E9DF; }
.seg span { flex: 1; height: 42px; display: grid; place-items: center; border-radius: 12px; font-weight: 900; font-size: 15px; color: var(--ink-2); transition: background .3s, color .3s, box-shadow .3s; }
.seg span.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(42,31,23,.12); }
.muscles { display: flex; flex-wrap: wrap; gap: 8px; }
.muscles .chip { background: #FDECEC; color: #C23333; }
.muscles .chip i { width: 9px; height: 9px; border-radius: 50%; background: #E04545; }

/* food scan (section 4) */
.cam { position: absolute; inset: 0; overflow: hidden; background: #120C08; }
/* the app's own food photo, filling the viewfinder like a live camera */
.cam .plate { position: absolute; left: 0; top: 96px; width: 100%; height: 560px; object-fit: cover; transform: scale(1.02); transition: transform .7s var(--spring), opacity .4s; }
.cam .plate.out { transform: translateX(-35%) scale(1.15) rotate(-4deg); opacity: 0; }
.cam .plate.pre { transform: translateX(35%) scale(1.15) rotate(4deg); opacity: 0; }
.cam::after { content: ""; position: absolute; left: 0; right: 0; top: 96px; height: 560px; box-shadow: inset 0 0 60px rgba(0,0,0,.35); pointer-events: none; }
.frame { position: absolute; z-index: 3; left: 50%; top: 376px; width: 312px; height: 312px; margin: -156px 0 0 -156px; }
.frame i { position: absolute; width: 44px; height: 44px; border: 5px solid #fff; }
.frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 18px 0 0; }
.frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 18px; }
.frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }
.frame .sweep { position: absolute; left: 10px; right: 10px; top: 10px; height: 4px; border-radius: 2px; background: #fff; box-shadow: 0 0 18px 6px rgba(255,180,107,.8); opacity: 0; }
.frame.scanning .sweep { opacity: 1; animation: sweep 1.1s var(--io) infinite alternate; }
@keyframes sweep { to { transform: translateY(284px); } }
.cam-top { position: absolute; z-index: 4; top: 64px; left: 0; right: 0; display: flex; justify-content: center; }
.cam-top .chip { background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.shutter { position: absolute; z-index: 4; bottom: 54px; left: 50%; width: 78px; height: 78px; margin-left: -39px; border-radius: 50%; border: 5px solid #fff; display: grid; place-items: center; }
.shutter i { width: 60px; height: 60px; border-radius: 50%; background: #fff; transition: transform .2s; }
.shutter.hit i { transform: scale(.8); }
.flash { position: absolute; z-index: 8; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.result { position: absolute; z-index: 6; left: 10px; right: 10px; bottom: 10px; padding: 18px 18px 16px; border-radius: 34px; background: #fff; transform: translateY(110%); transition: transform .6s var(--spring); box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
.result.on { transform: none; }
.result .grab { width: 44px; height: 5px; border-radius: 3px; background: #E7DCD1; margin: -6px auto 12px; }
.result .r-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.result .r-head b { font-size: 23px; font-weight: 900; letter-spacing: -.01em; }
.result .r-head span { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.result .kcal { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 12px; }
.result .kcal b { font-size: 46px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.result .kcal span { font-weight: 800; color: var(--ink-2); }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.macros div { display: grid; gap: 6px; font-weight: 800; font-size: 13px; color: var(--ink-2); }
.macros b { font-size: 19px; color: var(--ink); }
.toast { position: absolute; z-index: 9; left: 50%; top: 66px; transform: translate(-50%, -30px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 900; font-size: 15px; white-space: nowrap; transition: transform .5s var(--spring), opacity .3s; display: flex; gap: 8px; align-items: center; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast i { width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.toast svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* daily snapshot (section 5) */
.fire { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 26px; background: linear-gradient(160deg, #FFF3E2, #FFE1BD); border: 1.5px solid #FFD3A8; overflow: hidden; }
.flame { position: relative; width: 104px; height: 128px; flex: none; }
.flame svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; transform-origin: 50% 100%; transition: transform .9s var(--spring); }
.flame .ash { position: absolute; left: 6px; right: 6px; bottom: 0; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, #CDC3BA, #ECE6E0 70%, transparent); transform-origin: 50% 100%; transform: scale(var(--ash, .3)); transition: transform .9s var(--out); }
.fire .left b { display: block; font-size: 44px; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fire .left span { font-weight: 800; color: var(--ink-2); }
.fire .left small { display: block; margin-top: 8px; font-weight: 800; font-size: 13px; color: var(--orange-d); }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ring-c { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); }
.ring-c svg { width: 74px; height: 74px; transform: rotate(-90deg); }
.ring-c svg circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring-c .prog { transition: stroke-dashoffset .9s var(--out); }
.ring-c b { font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ring-c small { font-size: 12px; font-weight: 800; color: var(--ink-2); margin-top: -6px; }
.quick { display: grid; gap: 8px; }
.q-row { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 10px 0 12px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); font-weight: 800; transition: transform .2s; }
.q-row.hit { transform: scale(.97); }
.q-row .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.q-row small { display: block; font-size: 12px; color: var(--ink-2); }
.q-row .plus { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); }
.q-row .plus svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.spark { position: absolute; z-index: 30; left: 0; top: 0; width: 14px; height: 14px; pointer-events: none; }

/* ---------------- section layout ---------------- */
.sec { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); padding: clamp(80px, 11vw, 150px) var(--gutter); max-width: 1240px; margin: 0 auto; }
.band { position: relative; overflow: clip; }
.stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.stage .iphone { width: min(330px, 76vw, max(220px, (100vh - 170px) * 432 / 904)); }
.head { padding: 0 var(--gutter); max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ticks { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 10px; font-weight: 800; font-size: 16px; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks li::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.8 11 12 5.2' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
@media (max-width: 900px) {
  .sec { grid-template-columns: 1fr; }
  .sec > .stage, .sec > .move-stage { order: 2; }
}

/* 2. meet */
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.facts li { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 16px; color: var(--ink-2); }
.facts b { flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-weight: 900; font-size: 26px; color: #fff; background: linear-gradient(160deg, var(--orange-l), var(--orange)); box-shadow: 0 10px 20px -10px rgba(227,116,26,.8); }
.facts li:nth-child(2) b { background: linear-gradient(160deg, #F8C98F, #D9965A); box-shadow: 0 10px 20px -10px rgba(217,150,90,.8); }
.facts li:nth-child(3) b { background: linear-gradient(160deg, #54443A, var(--ink)); box-shadow: 0 10px 20px -10px rgba(42,31,23,.7); }

/* 3. demo band: warm, sunny, with weight plates drifting up */
.demo-sec { background: linear-gradient(160deg, #FFD2A8 0%, #FFE6C9 55%, #FFF3E2 100%); }
.demo-sec .kicker { color: #C9631F; }
.demo-sec .ticks li::before { background-color: #E0782F; }
.plates { position: absolute; inset: 0; pointer-events: none; }
.plates i { position: absolute; bottom: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95) 0 14%, rgba(255,255,255,.18) 15% 34%, rgba(255,255,255,.55) 35% 42%, rgba(255,255,255,.2) 43%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); animation: plate linear infinite; }
@keyframes plate { to { transform: translate(var(--sway, 20px), calc(-100vh - 220px)) rotate(var(--spin, 180deg)); } }
/* 4. scan band: lilac */
.scan-sec { background: linear-gradient(200deg, #CDBFFF 0%, #E4DCFF 55%, #F4F0FF 100%); }
.scan-sec .kicker { color: #6A4FD8; }
.scan-sec .ticks li::before { background-color: #7B61E8; }
/* 5. snapshot band: fresh mint */
.snap-sec { background: linear-gradient(160deg, #C9F2DC 0%, #E2F8EC 60%, #F2FCF6 100%); }
.snap-sec .kicker { color: #12894A; }

/* ---------------- 6. inside the app ---------------- */
.screens { padding: clamp(90px, 12vw, 160px) 0 clamp(70px, 9vw, 120px); }
.fan { position: relative; height: clamp(440px, 52vw, 640px); margin-top: clamp(40px, 6vw, 70px); }
.shot { position: absolute; left: 50%; top: 0; width: clamp(180px, 21vw, 280px); margin-left: calc(clamp(180px, 21vw, 280px) / -2); transform: translate(0, 60px) scale(.9); opacity: 0; transition: transform 1.2s var(--spring), opacity .7s var(--out); transition-delay: calc((2 - (var(--d) * var(--d))) * 0s + (var(--d) + 2) * 70ms); z-index: calc(10 - var(--d) * var(--d)); }
.shot .iphone { width: 100%; }
.shot figcaption { margin-top: 14px; text-align: center; font-weight: 900; font-size: 15px; color: var(--ink-2); }
.fan.in .shot { opacity: 1; transform: translateX(calc(var(--d) * clamp(110px, 17vw, 250px))) translateY(calc(var(--d) * var(--d) * 14px)) rotate(calc(var(--d) * 5deg)); }
@media (max-width: 760px) {
  .fan { height: auto; display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--gutter) 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fan::-webkit-scrollbar { display: none; }
  .shot, .fan.in .shot { position: relative; left: auto; margin: 0; flex: none; width: 62vw; transform: none; opacity: 1; scroll-snap-align: center; }
}

/* ---------------- 7. moves ---------------- */
.moves { position: relative; background: linear-gradient(180deg, var(--cream), #FFF1E3); padding-bottom: clamp(60px, 8vw, 110px); }
.moves .sec { padding-bottom: clamp(40px, 5vw, 64px); }
.move-stage { position: relative; height: clamp(440px, 50vw, 560px); border-radius: 40px; overflow: hidden; }
.move-bg { position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 18%, #FFD9AE, #FFB46B 65%, #F59A48); }
.move-bg::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 64px); }
.move-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, #B9733B, #9A5A2A); box-shadow: inset 0 3px 0 rgba(255,255,255,.25); }
.move-floor::before { content: ""; position: absolute; left: 50%; top: 22%; width: 70%; height: 50%; transform: translateX(-50%); border-radius: 50%; background: rgba(42,31,23,.18); }
.move-stage .roo-stage { position: absolute; inset: 0; z-index: 1; }
.move-read { position: absolute; z-index: 2; left: 0; right: 0; top: 26px; text-align: center; color: #fff; }
.move-read b { display: inline-grid; font-weight: 900; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(120,50,0,.35); }
.move-read span { display: block; margin-top: 4px; font-weight: 800; font-size: 15px; opacity: .95; transition: opacity .3s; }
.marquee { display: grid; gap: 16px; margin-top: 10px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mrow { display: flex; gap: 14px; width: max-content; animation: marq var(--dur, 60s) linear infinite; }
.mrow.rev { animation-direction: reverse; }
.marquee:hover .mrow { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.mcard { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 20px; background: #fff; box-shadow: 0 8px 22px -14px rgba(60,30,10,.4); }
.mcard .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.mcard .ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mcard b { display: block; font-weight: 900; font-size: 15px; white-space: nowrap; }
.mcard span { font-weight: 800; font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* ---------------- 8. goals ---------------- */
.goal-sec { background: linear-gradient(170deg, #E3741A 0%, #C85A10 100%); color: #fff; padding: clamp(90px, 12vw, 150px) 0; }
.goal-sec .kicker { color: #FFE2C2; }
.goal-sec .body { color: rgba(255,255,255,.88); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1240px; margin: clamp(40px, 6vw, 64px) auto 0; padding: 0 var(--gutter); }
.ccard { position: relative; min-height: 470px; padding: 22px 20px 20px; border-radius: 28px; overflow: hidden; color: #fff; display: flex; flex-direction: column; opacity: 0; transform: translateY(60px) rotate(var(--r, 0deg)) scale(.92); transition: opacity .7s var(--out) var(--dl), transform 1.1s var(--spring) var(--dl); box-shadow: 0 30px 50px -30px rgba(60,20,0,.6); }
.cards.in .ccard { opacity: 1; transform: rotate(calc(var(--r) * .3)); }
.ccard:hover { transform: rotate(0deg) translateY(-6px) !important; transition-delay: 0s !important; }
.ccard .k { font-weight: 900; font-size: 12px; letter-spacing: .12em; opacity: .85; }
.ccard h3 { margin-top: 8px; font-weight: 900; font-size: 26px; line-height: 1.05; letter-spacing: -.02em; }
.ccard p { margin-top: 8px; font-weight: 700; font-size: 15px; line-height: 1.4; opacity: .9; max-width: 15em; }
.ccard .art { position: absolute; right: -14px; bottom: 58px; height: 46%; width: auto; max-width: 78%; transform-origin: 50% 100%; animation: sway 4.5s ease-in-out infinite; animation-delay: var(--dl); }
@keyframes sway { 50% { transform: rotate(-2.5deg) translateY(-4px); } }
.ccard .stat { position: relative; z-index: 1; margin-top: auto; display: grid; gap: 8px; padding: 12px 14px; border-radius: 18px; background: rgba(0,0,0,.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ccard .stat small { font-weight: 800; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.ccard .stat .bar { background: rgba(255,255,255,.25); height: 8px; }
.ccard .stat .bar i { background: #fff; width: 0; transition: width 1.4s var(--out) calc(var(--dl) + .5s); }
.cards.in .ccard .stat .bar i { width: var(--p); }
@media (max-width: 1060px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .ccard { min-height: 420px; } }

/* ---------------- 9. coach ---------------- */
.coach-sec { background: linear-gradient(180deg, #FFE7EC 0%, #FFF3F5 100%); padding: clamp(90px, 12vw, 150px) 0; }
.coach-sec .kicker { color: #D4456A; }
.score { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.score b { font-weight: 900; font-size: 64px; letter-spacing: -.04em; line-height: 1; }
.score span { display: flex; flex-direction: column; align-items: flex-start; font-weight: 800; color: var(--ink-2); text-align: left; }
.score i { font-style: normal; color: var(--ink); font-weight: 900; font-size: 18px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1140px; margin: clamp(40px, 6vw, 64px) auto 0; padding: 0 var(--gutter); }
.rcard { padding: 22px; border-radius: 26px; background: #fff; box-shadow: 0 24px 50px -30px rgba(120,30,60,.45); opacity: 0; transform: translateY(50px) rotate(var(--r)); transition: opacity .7s var(--out) var(--dl), transform 1s var(--spring) var(--dl); }
.reviews.in .rcard { opacity: 1; transform: rotate(calc(var(--r) * .4)); }
.rcard .ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--bg); color: var(--fg); transform: scale(0); transition: transform .6s var(--spring) calc(var(--dl) + .4s); }
.reviews.in .rcard .ic { transform: none; }
.rcard .ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rcard h3 { margin-top: 14px; font-weight: 900; font-size: 19px; letter-spacing: -.01em; }
.rcard p { margin-top: 8px; font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.rcard small { display: inline-block; margin-top: 14px; padding: 5px 10px; border-radius: 999px; background: #F7EEF0; font-weight: 900; font-size: 12px; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reviews { grid-template-columns: 1fr; } }

/* ---------------- 10. FAQ ---------------- */
.faq-sec { padding: clamp(90px, 12vw, 150px) var(--gutter); }
.faq-wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq-wrap .head { padding: 0; margin: 0; text-align: left; align-items: flex-start; position: sticky; top: 110px; }
.faq-roo { width: min(220px, 50vw); height: auto; margin-top: 26px; animation: sway 5s ease-in-out infinite; transform-origin: 50% 100%; }
.faq-roo.reveal.in { transform: none; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 22px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(60,30,10,.4); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 900; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--peach) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23A84C08' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .4s var(--spring), background-color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: #FFD9B5; }
.faq details p { padding: 0 22px 20px; font-weight: 700; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .head { position: static; } .faq-roo { display: none; } }

/* ---------------- 11. download ---------------- */
.final { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: clip; }
.final .gym { cursor: default; }
.final .gym-bg { background-position: 70% 100%; }
.final .gym-bg::after { background: radial-gradient(62% 52% at 50% 40%, rgba(255,248,241,.94), rgba(255,248,241,.7) 55%, rgba(255,248,241,.1) 85%); }
.final-copy { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 110px var(--gutter) 300px; pointer-events: none; }
.final-copy a { pointer-events: auto; }
.final-icon { width: 104px; height: 104px; border-radius: 26px; background: #fff; box-shadow: 0 20px 40px -14px rgba(120,50,0,.45); }
.final h2 { margin-top: 26px; font-size: clamp(40px, 6.4vw, 84px); max-width: 11em; }
.final .body { margin-left: auto; margin-right: auto; color: #4A3A2E; }
.final .ctas { justify-content: center; }
.fine { margin-top: 18px; font-weight: 800; font-size: 14px; color: rgba(42,31,23,.7); }
.foot { position: relative; z-index: 2; padding: 20px var(--gutter) 26px; text-align: center; font-weight: 800; font-size: 14px; color: #fff; text-shadow: 0 1px 6px rgba(80,40,10,.5); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 8px; }
.foot-links a { color: #fff; }
@media (max-width: 760px) { .final-copy { padding-bottom: 300px; } .final .gym-bg { background-position: 60% 100%; } }

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-phone, .split .w > span, .ccard, .rcard, .shot { opacity: 1 !important; transform: none !important; filter: none !important; }
}
