/* Concept: the page moves through "phases". The background turns ink, lime, bone, ink, lime as you scroll,
   and the ring in the nav (the app icon's ring) fills with your scroll position.
   Tokens come from the Phase app: near-black, lime, Syne for display, Geist for text. */
:root {
  --ink: #0A0A0A;
  --ink-2: #141414;
  --ink-3: #1D1D1D;
  --line: #2A2A2A;
  --lime: #C8F04A;
  --bone: #ECE9E2;
  --bone-2: #E1DDD4;
  --text: #F0EDE8;
  --muted: #8C8C8C;
  --blue: #60A5FA;
  --amber: #F59E0B;
  --pink: #F472B6;
  --font-display: "Syne", system-ui, sans-serif;
  --font-heading: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--ink); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  padding-left: 0; padding-right: 0; overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Sections take their own colors */
.sec { position: relative; padding-block: clamp(72px, 11vw, 140px); background: var(--sbg); color: var(--sfg); }
.sec[data-tone="ink"]  { --sbg: var(--ink);  --sfg: var(--text); --smuted: #9A9A9A; --scard: var(--ink-2); --sline: var(--line); --saccent: var(--lime); }
.sec[data-tone="lime"] { --sbg: var(--lime); --sfg: #0A0A0A;     --smuted: #3d4a14; --scard: #D6F56E;   --sline: rgba(10,10,10,.18); --saccent: #0A0A0A; }
.sec[data-tone="bone"] { --sbg: var(--bone); --sfg: #0A0A0A;     --smuted: #5d5a53; --scard: #F6F4EF;   --sline: rgba(10,10,10,.12); --saccent: #0A0A0A; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--smuted); margin: 0 0 18px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
/* The big hero line stays Syne. Headings that are sentences use a sturdier, narrower face so they read at a glance. */
h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: .98; }
h2, h3 { font-family: var(--font-heading); font-weight: 800; font-stretch: 88%; letter-spacing: -.025em; line-height: 1.04; }
h2 { font-size: clamp(32px, 4.8vw, 60px); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--smuted); max-width: 52ch; margin: 22px 0 0; }

/* Nav */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding-top: env(safe-area-inset-top, 0px); transition: color .35s, background-color .35s; color: var(--text); }
.nav { background: rgba(10, 10, 10, .78); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.nav[data-tone="lime"] { background: rgba(200, 240, 74, .82); }
.nav[data-tone="bone"] { background: rgba(236, 233, 226, .84); }
.nav[data-tone="lime"], .nav[data-tone="bone"] { color: #0A0A0A; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.mark { width: 34px; height: 34px; flex: none; }
.mark circle { transition: stroke .35s; }
.mark .track { stroke: currentColor; opacity: .18; }
.mark .fill { stroke: currentColor; }
.mark text { fill: currentColor; font-family: var(--font-display); font-weight: 800; }
.links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.links a { text-decoration: none; opacity: .78; }
.links a:hover { opacity: 1; }
.links a.cta { opacity: 1; }
@media (max-width: 760px) { .links a:not(.cta) { display: none; } }

/* Download button: two states */
.cta { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 14px; text-decoration: none; border: 0; white-space: nowrap; transition: transform .2s, background-color .3s, color .3s; }
.cta:hover { transform: translateY(-1px); }
.cta .on-live, .cta .on-soon { display: none; }
body[data-launch="soon"] .cta .on-soon { display: inline; }
body[data-launch="live"] .cta .on-live { display: inline; }
.cta-main { background: var(--lime); color: #0A0A0A; }
.nav[data-tone="lime"] .cta, .nav[data-tone="bone"] .cta { background: #0A0A0A; color: var(--lime); }
.sec[data-tone="lime"] .cta-main { background: #0A0A0A; color: var(--lime); }
.cta-big { padding: 16px 28px; font-size: 16px; }
body[data-launch="soon"] .cta-main { cursor: default; }
.apple { width: 18px; height: 18px; }

/* Hero */
.hero { padding-top: calc(68px + clamp(40px, 7vw, 96px)); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 6.8vw, 96px); line-height: .98; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lede { color: #A8A8A8; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 34px; }
.hero-cta small { color: #7d7d7d; font-size: 13px; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .phone-stage { order: 2; } }

/* Phone */
.phone-stage { position: relative; display: grid; place-items: center; perspective: 1200px; min-height: 560px; }
.phone-stage::before { content: ""; position: absolute; width: min(460px, 90vw); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 60px rgba(200,240,74,.03), 0 0 0 140px rgba(200,240,74,.02); }
.phone { position: relative; width: 292px; height: 590px; border-radius: 44px; background: #0F0F0F; border: 1px solid #2f2f2f; padding: 18px 14px; overflow: hidden;
  box-shadow: 0 50px 100px rgba(0,0,0,.6), 0 0 0 8px #151515, 0 0 0 9px #2a2a2a; transform: rotateY(-8deg) rotateX(4deg); transition: transform .25s ease-out; color: var(--text); }
.phone .island { position: absolute; top: 10px; left: 50%; width: 84px; height: 22px; background: #000; border-radius: 999px; transform: translateX(-50%); }
.p-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin: 22px 0 2px; }
.p-sub { color: #888; font-size: 11px; margin: 0 0 12px; }
.p-days { display: flex; justify-content: space-between; margin-bottom: 12px; }
.p-days i { width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; color: #0F0F0F; }
.ring { --p: 0; width: 118px; height: 118px; border-radius: 50%; margin: 6px auto 8px; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--amber) calc(var(--p) * 1%), #2A2A2A 0); }
.ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #0F0F0F; }
.ring b { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: 34px; font-variant-numeric: tabular-nums; }
.p-note { text-align: center; color: #888; font-size: 11px; margin: 0 0 12px; }
.mbar { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #888; margin: 7px 0; }
.mbar span { width: 24px; font-weight: 600; }
.mbar i { flex: 1; height: 6px; border-radius: 3px; background: #2A2A2A; overflow: hidden; position: relative; }
.mbar i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--c); border-radius: 3px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.mbar em { font-style: normal; width: 44px; text-align: right; }
.p-kcal { display: flex; justify-content: space-between; border: 1px solid var(--line); background: #1A1A1A; border-radius: 12px; padding: 9px 11px; font-size: 11px; color: #888; margin: 12px 0 10px; }
.p-kcal b { color: var(--text); font-weight: 600; }
.p-log { background: var(--lime); color: #0F0F0F; border-radius: 12px; text-align: center; font-family: var(--font-display); font-weight: 800; padding: 10px; font-size: 13px; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.chip { border: 1px solid var(--line); background: #1A1A1A; border-radius: 10px; padding: 7px 0; text-align: center; font-size: 9.5px; font-weight: 600; position: relative; }
.chip small { display: block; color: #777; font-weight: 400; font-size: 8px; }
.chip .badge { position: absolute; top: -6px; right: -4px; background: var(--lime); color: #0F0F0F; font-size: 9px; min-width: 15px; height: 15px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.chip.hit .badge { transform: scale(1); }
.chip.hit { border-color: var(--lime); background: #20241A; }
/* floating tiles */
.float { position: absolute; background: #161616; border: 1px solid #2c2c2c; border-radius: 16px; padding: 12px 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); font-size: 12px; color: #aaa; animation: bob 7s ease-in-out infinite; }
.float b { display: block; color: var(--text); font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.1; }
.float { z-index: 3; }
.phone { z-index: 2; }
.float.f1 { left: -4%; top: 16%; }
.float.f2 { right: -6%; bottom: 20%; animation-delay: -3s; }
.float.f2 b { color: var(--lime); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 880px) { .float.f1 { left: 2%; } .float.f2 { right: 2%; } }
@media (max-width: 560px) { .float.f1 { display: none; } .phone-stage { min-height: 520px; } }

/* Strip of promises */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--ink); color: #BDBDBD; }
.ticker-track { display: flex; gap: 48px; width: max-content; padding: 16px 0; animation: slide 38s linear infinite; font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.ticker-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
@keyframes slide { to { transform: translateX(-50%); } }

/* How it works */
.how-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--scard); border: 1px solid var(--sline); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 18px; min-height: 380px; }
.step .tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.step .tag i { width: 26px; height: 26px; border-radius: 50%; background: var(--sfg); color: var(--sbg); font-style: normal; display: grid; place-items: center; font-size: 12px; }
.step h3 { font-size: 24px; line-height: 1.08; }
.step p { margin: 0; color: var(--smuted); font-size: 15px; }
.mini { margin-top: auto; background: #0F0F0F; color: var(--text); border-radius: 16px; padding: 14px; font-size: 12px; }
.mini .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; color: #999; }
.mini .row b { color: var(--text); font-weight: 600; }
.mini .pillrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mini .pillrow span { border: 1px solid #333; border-radius: 999px; padding: 4px 10px; font-size: 11px; color: #ccc; }
.mini .pillrow span.on { background: var(--lime); color: #0F0F0F; border-color: var(--lime); font-weight: 600; }
.scan { border: 1px dashed var(--lime); border-radius: 10px; color: var(--lime); text-align: center; padding: 10px; font-weight: 600; position: relative; overflow: hidden; }
.scan::after { content: ""; position: absolute; top: 0; bottom: 0; width: 34%; left: -34%; background: linear-gradient(90deg, transparent, rgba(200,240,74,.28), transparent); animation: scan 2.8s ease-in-out infinite; }
@keyframes scan { 0% { left: -34%; } 60%, 100% { left: 100%; } }
.spark { width: 100%; height: 56px; display: block; margin-top: 6px; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 5vw, 64px); }
.feat { background: var(--scard); border: 1px solid var(--sline); border-radius: 22px; padding: 24px; grid-column: span 2; display: flex; flex-direction: column; gap: 10px; min-height: 210px; }
.feat.wide { grid-column: span 3; }
.feat h3 { font-size: 22px; line-height: 1.1; }
.feat p { margin: 0; color: var(--smuted); font-size: 15px; }
.feat .big { font-family: var(--font-heading); font-weight: 800; font-stretch: 88%; font-size: clamp(40px, 6vw, 64px); letter-spacing: -.03em; line-height: 1; margin-top: auto; }
.units { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.units span { border: 1px solid var(--sline); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.units span.on { background: var(--sfg); color: var(--sbg); border-color: var(--sfg); }
@media (max-width: 900px) { .feat, .feat.wide { grid-column: span 3; } }
@media (max-width: 600px) { .feat, .feat.wide { grid-column: span 6; } }

/* Coaches */
.coach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 880px) { .coach-grid { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.board { background: #101010; border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.board h4 { margin: 0 0 14px; font-family: var(--font-heading); font-weight: 800; font-stretch: 88%; font-size: 18px; }
.bstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.bstats div { background: #1A1A1A; border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; font-size: 11px; color: #888; }
.bstats b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--lime); }
.client { background: #1A1A1A; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 10px; }
.client .top { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.client .av { width: 30px; height: 30px; border-radius: 50%; background: #2A2A2A; display: grid; place-items: center; font-size: 13px; }
.client .week { display: flex; gap: 5px; margin: 12px 0 8px; }
.client .week i { flex: 1; height: 26px; border-radius: 6px; background: #2A2A2A; }
.client .meta { display: flex; justify-content: space-between; font-size: 12px; color: #888; }
.client .meta em { font-style: normal; color: var(--lime); }

/* Privacy */
.priv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 5vw, 56px); }
@media (max-width: 800px) { .priv { grid-template-columns: 1fr; } }
.priv div { border-top: 2px solid var(--sfg); padding-top: 16px; }
.priv h3 { font-size: 26px; margin-bottom: 8px; }
.priv p { margin: 0; color: var(--smuted); }

/* FAQ */
.faq { max-width: 820px; margin-top: 40px; }
.faq details { border-top: 1px solid var(--sline); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--sline); }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 700; font-stretch: 92%; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--smuted); max-width: 62ch; }

/* Final CTA + footer */
.final { text-align: center; }
.final h2 { font-size: clamp(44px, 9vw, 120px); line-height: .92; }
.final .hero-cta { justify-content: center; }
.foot { background: var(--ink); color: #8a8a8a; padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .ticker-track, .scan::after { animation: none; }
  .phone, .mbar i::after, .chip .badge { transition: none; }
}

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: #0A0A0A; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
