/* Fit Graph — Neon Obsidian marketing site.
   Layout: one dark stage; a sticky phone carries the product story while copy scrolls past it. */
:root {
  --bg: #000000;
  --surface: #0f110c;
  --surface-2: #161912;
  --line: rgba(232, 255, 160, 0.10);
  --line-strong: rgba(232, 255, 160, 0.22);
  --fg: #f6f8f0;
  --dim: #a3a79a;
  --faint: #6c7064;
  --volt: #c4f22e;
  --volt-deep: #a3d61a;
  --on-volt: #0b0f00;
  --danger: #ff6b4a;
  --accent-text: #c4f22e;
  --glow-rgb: 196, 242, 46;
  --haze-rgb: 196, 242, 46;
  --glass: rgba(14, 16, 10, 0.66);
  --scrim: rgba(0, 0, 0, 0.7);
  --thumb: #f6f8f0;
  --store-glow: rgba(246, 248, 240, 0.45);
  --chip-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  --phone-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.9), 0 0 120px -20px rgba(196, 242, 46, 0.25);
  --grain: 0.06;

  --display: "League Spartan", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Questrial", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.8rem, 1.4rem + 1.8vw, 3rem);
  --step-3: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem);
  --step-4: clamp(3.4rem, 1.4rem + 9vw, 10rem);

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 22px;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--volt); color: var(--on-volt); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.92; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
p { margin: 0; }
em.v { font-style: normal; color: var(--accent-text); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 32px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 12px var(--volt); }
.lede { color: var(--dim); font-size: var(--step-1); line-height: 1.4; max-width: 34ch; }
.sec { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); justify-items: start; }
.sec-head h2 { font-size: var(--step-3); line-height: 0.98; padding-bottom: 0.08em; }
.sec-head .lede { margin-top: 6px; }


/* Light: the app's own light palette — warm paper, white cards, ink, olive-green tint, lime haze. */
:root[data-theme="light"] {
  --bg: #f5f0ea;
  --surface: #ffffff;
  --surface-2: #ede6e0;
  --line: rgba(13, 13, 13, 0.08);
  --line-strong: rgba(13, 13, 13, 0.16);
  --fg: #0d0d0d;
  --dim: #52525b;
  --faint: #71717a;
  --volt: #65a30d;
  --volt-deep: #4d7c0f;
  --on-volt: #ffffff;
  --danger: #ef4444;
  --accent-text: #4d7c0f;
  --glow-rgb: 101, 163, 13;
  --haze-rgb: 196, 242, 46;
  --haze-a: 0.38;
  --glass: rgba(255, 255, 255, 0.72);
  --scrim: rgba(40, 34, 28, 0.35);
  --thumb: #ffffff;
  --store-glow: rgba(13, 13, 13, 0.3);
  --chip-shadow: 0 18px 40px -18px rgba(60, 48, 30, 0.28);
  --phone-shadow: 0 50px 90px -30px rgba(60, 48, 30, 0.45), 0 0 0 1px rgba(13, 13, 13, 0.05);
  --grain: 0.035;
  color-scheme: light;
}
:root[data-theme="light"] .marquee { background: var(--fg); color: var(--bg); }
:root[data-theme="light"] .marquee-track span:nth-child(even) { -webkit-text-stroke-color: var(--bg); }
:root[data-theme="light"] .marquee-track span::after { background: #c4f22e; }
:root[data-theme="light"] .plan.pro { background: linear-gradient(160deg, #eef9c8, #ffffff 60%); }
:root[data-theme="light"] .chip-pr { background: linear-gradient(135deg, #d9f56b, #c4f22e); color: #0d0d0d; }
:root[data-theme="light"] .chip-pr i { background: #0d0d0d; color: #c4f22e; }
:root[data-theme="light"] .island { border-color: #000; }
:root[data-theme="light"] .tool-out { background: linear-gradient(170deg, #f4fbdc, #ffffff 55%); }

/* ---------- Grain + ambient glow ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: var(--grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; gap: 18px;
}
.loader-inner { display: grid; gap: 14px; justify-items: center; }
.loader-kg { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 14vw, 9rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.loader-kg small { font-size: 0.3em; color: var(--volt); margin-left: 6px; letter-spacing: 0; }
.loader-bar { width: min(280px, 70vw); height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--volt); box-shadow: 0 0 16px var(--volt); }
.loader-cap { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase; }
.no-js .loader { display: none; }

/* ---------- Cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 95; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor { width: 8px; height: 8px; background: var(--volt); }
.cursor-ring {
  width: 40px; height: 40px; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--on-volt);
  transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), background .25s, border-color .25s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--volt); }
.cursor-ring.is-label { width: 86px; height: 86px; background: var(--volt); border-color: var(--volt); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }
@media (hover: hover) and (pointer: fine) { .has-cursor, .has-cursor a, .has-cursor button, .has-cursor input { cursor: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  padding-top: 14px;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.nav.is-hidden { transform: translateY(-120%); }
.nav-in {
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--dim); font-size: 1.04rem; padding: 10px 16px; position: relative; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }
.nav-links a.is-active { color: var(--fg); background: var(--surface-2); }
.nav-links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--volt); transform: translateX(-50%); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 14px 22px; text-decoration: none; font-weight: 600; white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .2s;
}
.btn-volt { background: var(--volt); color: var(--on-volt); box-shadow: 0 0 0 0 rgba(var(--glow-rgb), 0); }
.btn-volt:hover { box-shadow: 0 10px 40px -6px rgba(var(--glow-rgb), 0.55); }
.btn-sm { padding: 12px 20px; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }

.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--fg); color: var(--bg); border-radius: 16px; padding: 11px 22px 11px 18px;
  transform: translate(var(--bx, 0), var(--by, 0));
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.store:hover { box-shadow: 0 14px 44px -10px var(--store-glow); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.05; }
.store small { font-size: 0.7rem; letter-spacing: 0.02em; }
.store b { font-family: -apple-system, "SF Pro Display", var(--body); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.02em; }

.qr-card { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.qr { width: 72px; height: 72px; padding: 6px; border-radius: 10px; background: #fff; flex: none; }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }
.qr-card p { font-size: 0.85rem; color: var(--dim); line-height: 1.3; }
.qr-card strong { color: var(--fg); display: block; font-weight: 600; }
@media (max-width: 860px), (pointer: coarse) { .qr-card { display: none; } }

/* ---------- Phone ---------- */
.phone {
  --w: 300px;
  width: var(--w); max-width: 100%;
  aspect-ratio: 1320 / 2868;
  border-radius: calc(var(--w) * 0.16);
  padding: calc(var(--w) * 0.032);
  background: linear-gradient(145deg, #3a3d36, #111 30%, #0a0a0a 70%, #2b2e27);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    var(--phone-shadow);
  position: relative;
  transform-style: preserve-3d;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * 0.13); overflow: hidden; background: #000; }
.phone-screen > img, .phone-screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-island { position: absolute; top: calc(var(--w) * 0.055); left: 50%; transform: translateX(-50%); width: 31%; height: calc(var(--w) * 0.085); border-radius: 999px; background: #000; z-index: 3; }
.phone-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4; background: linear-gradient(115deg, rgba(255,255,255,0.12) 0%, transparent 32%, transparent 70%, rgba(255,255,255,0.04)); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(120px + env(safe-area-inset-top, 0px)); padding-bottom: 60px; position: relative; overflow: hidden; }
.hero-glow { position: absolute; width: 900px; height: 900px; left: 50%; top: 10%; transform: translateX(-10%); border-radius: 50%; background: radial-gradient(circle, rgba(var(--haze-rgb), var(--haze-a, 0.18)), transparent 62%); pointer-events: none; filter: blur(10px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 28px; min-width: 0; position: relative; z-index: 2; }
.hero h1 { font-size: var(--step-4); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--dim); font-size: 0.9rem; list-style: none; padding: 0; margin: 0; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4L19 7' fill='none' stroke='%230b0f00' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }

.hero-stage { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 620px; }
.hero-stage .phone {
  --w: min(310px, 72vw);
  --iy: 0px; --ty: 0px; --sc: 1; --ix: 0deg; --sx: 0deg; --rx: 0deg; --ry: 0deg;
  transform: translateY(calc(var(--iy, 0px) + var(--ty, 0px))) scale(var(--sc, 1))
    rotateX(calc(var(--ix, 0deg) + var(--sx, 0deg) + var(--rx, 0deg))) rotateY(var(--ry, 0deg));
}
.chip {
  position: absolute; z-index: 5;
  display: grid; gap: 2px; padding: 12px 16px; border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--chip-shadow);
  font-size: 0.78rem; color: var(--dim); white-space: nowrap;
}
.chip b { font-family: var(--display); font-size: 1.6rem; color: var(--fg); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.chip .up { color: var(--accent-text); font-family: var(--mono); font-size: 0.72rem; }
.chip-a { top: 12%; left: -4%; }
.chip-b { top: 46%; right: -6%; }
.chip-c { bottom: 8%; left: 2%; }
.chip-pr { display: flex; align-items: center; gap: 10px; background: var(--volt); color: var(--on-volt); border-color: transparent; font-weight: 600; font-size: 0.85rem; }
.chip-pr i { width: 26px; height: 26px; border-radius: 50%; background: var(--on-volt); color: var(--volt); display: grid; place-items: center; font-style: normal; font-size: 0.8rem; }
.ring { width: 44px; height: 44px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 560px; }
  .chip-a { left: 0; } .chip-b { right: 0; } .chip-c { left: 4%; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 22px; background: var(--surface); }
.marquee-track { display: flex; width: max-content; gap: 40px; will-change: transform; }
.marquee-track span { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.03em; line-height: 1; display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--fg); }
.marquee-track span::after { content: ""; width: 0.42em; height: 0.42em; background: var(--volt); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }

/* ---------- Story (sticky phone) ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.story-phone { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12vh); height: 76vh; display: grid; place-items: center; }
.story-phone .phone { --w: min(320px, 34vh); }
.story-phone .phone-screen > * { opacity: 0; transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1); transform: scale(1.04); }
.story-phone .phone-screen > .is-on { opacity: 1; transform: scale(1); }
.story-steps { display: grid; gap: 0; }
.step { min-height: 78vh; display: grid; align-content: center; gap: 20px; padding-block: 40px; opacity: 0.28; transition: opacity .5s; }
.step.is-active { opacity: 1; }
.step h3 { font-size: var(--step-2); }
.step p { color: var(--dim); max-width: 40ch; }
.step-tag { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.story-progress { position: absolute; left: -28px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.story-progress i { display: block; width: 100%; height: 0; background: var(--volt); box-shadow: 0 0 10px var(--volt); }
.story-steps-wrap { position: relative; }
.step-media { display: none; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-phone, .story-progress { display: none; }
  .step { min-height: 0; opacity: 1; padding-block: 36px; border-top: 1px solid var(--line); }
  .step-media { display: block; margin-top: 8px; justify-self: center; }
  .step-media .phone { --w: min(260px, 70vw); }
}

/* ---------- 1RM calculator ---------- */
.tool {
  border: 1px solid var(--line); border-radius: 32px; background: var(--surface);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.tool-in, .tool-out { padding: clamp(24px, 4vw, 52px); display: grid; gap: 28px; align-content: start; min-width: 0; }
.tool-out { background: var(--surface-2); border-left: 1px solid var(--line); }
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } .tool-out { border-left: 0; border-top: 1px solid var(--line); } }
.field { display: grid; gap: 12px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.field output { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.field output small { font-size: 0.5em; color: var(--dim); margin-left: 4px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; color: var(--dim); font-size: 0.85rem; }
.seg button[aria-pressed="true"] { background: var(--volt); color: var(--on-volt); }
.lift-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lift-pills button { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 8px 14px; font-size: 0.88rem; color: var(--dim); transition: all .2s; }
.lift-pills button[aria-pressed="true"] { color: var(--fg); border-color: var(--volt); background: rgba(var(--glow-rgb),0.08); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--volt) var(--p), var(--line-strong) var(--p)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--volt) var(--p), var(--line-strong) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--thumb); border: 6px solid var(--volt); box-shadow: 0 0 0 6px rgba(var(--glow-rgb),0.15); transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--thumb); border: 6px solid var(--volt); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.big-num { font-family: var(--display); font-weight: 800; font-size: clamp(4.4rem, 11vw, 8.5rem); line-height: 0.85; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.big-num small { font-size: 0.3em; color: var(--fg); letter-spacing: -0.01em; margin-left: 8px; }
.out-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.rm-table { display: grid; gap: 8px; }
.rm-row { display: grid; grid-template-columns: 44px 1fr 72px; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.rm-row span:first-child { color: var(--dim); font-family: var(--mono); font-size: 0.78rem; }
.rm-row span:last-child { text-align: right; }
.rm-bar { height: 10px; border-radius: 10px; background: rgba(var(--glow-rgb),0.08); overflow: hidden; }
.rm-bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--volt-deep), var(--volt)); transform-origin: left; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.rm-row.is-you span { color: var(--accent-text); }
.tool-note { font-size: 0.85rem; color: var(--faint); }
.tool-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.tool-cta p { color: var(--dim); font-size: 0.92rem; flex: 1 1 220px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; min-width: 0;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  padding: 28px; display: grid; gap: 12px; align-content: start;
  transition: border-color .3s, transform .5s cubic-bezier(.2,.8,.2,1);
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--glow-rgb),0.13), transparent 45%);
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: var(--step-1); letter-spacing: -0.02em; line-height: 1.05; }
.card p { color: var(--dim); font-size: 0.95rem; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--glow-rgb),0.1); color: var(--volt); }
.card .ic svg { width: 22px; height: 22px; }
.c-wide { grid-column: span 4; }
.c-mid { grid-column: span 3; }
.c-sm { grid-column: span 2; }
.c-tall { grid-row: span 2; }
.sync-demo { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--dim); font-family: var(--mono); font-size: 0.75rem; }
.sync-demo .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--volt); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--glow-rgb),0.6); } 100% { box-shadow: 0 0 0 14px rgba(var(--glow-rgb),0); } }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c-wide, .c-mid { grid-column: span 2; }
  .c-sm { grid-column: span 1; }
  .c-tall { grid-row: auto; }
}
@media (max-width: 560px) { .c-sm { grid-column: span 2; } }

/* ---------- Bento mockups (rebuilt from the app's own screens) ---------- */
.card .try { font-size: 0.85rem; color: var(--faint); }
.card .try b { color: var(--accent-text); font-weight: 600; }
.card-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.card-copy { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (max-width: 960px) { .card-split { grid-template-columns: 1fr; } }

.mock {
  --ink: #0d0d0d; --ink-2: #52525b; --ink-3: #8a8a93; --tile: #ffffff; --paper: #f5f0ea; --tint: #65a30d; --lime: #c4f22e;
  margin-top: 6px; border-radius: 22px; background: var(--paper); padding: 14px; display: grid; gap: 8px;
  color: var(--ink); font-family: -apple-system, "SF Pro Text", var(--body); font-size: 0.82rem; line-height: 1.25;
  box-shadow: inset 0 0 0 1px rgba(13,13,13,0.05);
  position: relative; z-index: 1; min-width: 0;
}
.mock b { font-weight: 600; }
.mock small { color: var(--ink-3); font-size: 0.74rem; display: block; }

/* Schedule */
.sched-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 4px; }
.sched-head b { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.sched-head span { color: var(--ink-3); font-size: 0.74rem; }
.srow { display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: stretch; }
.sday { background: var(--tile); border-radius: 12px; display: grid; place-content: center; text-align: center; font-weight: 700; font-size: 1.15rem; line-height: 1; padding: 7px 0; }
.sday small { font-size: 0.62rem; letter-spacing: 0.04em; margin-bottom: 3px; font-weight: 600; }
.sday.is-today { background: var(--lime); }
.sday.is-today small { color: var(--ink); }
.swo { --mc: var(--tint); background: var(--tile); border-radius: 12px; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; position: relative; min-width: 0; }
.swo::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--mc); }
.swo > div { flex: 1; min-width: 0; }
.swo b { display: block; text-wrap: balance; }
.swo.is-today { box-shadow: 0 0 0 1.5px var(--tint); }
.sic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: var(--mc); background: color-mix(in srgb, var(--mc) 14%, white); font-style: normal; }
.sic svg { width: 16px; height: 16px; }
.sdone { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; flex: none; }
.schev { color: var(--ink-3); font-size: 1.2rem; flex: none; }
.sstart { flex: none; background: var(--tint); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.74rem; border-radius: 999px; padding: 6px 11px; }
.srest { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 0 10px; color: var(--ink-3); min-height: 46px; }
.sadd { border: 1.5px dashed rgba(101,163,13,0.55); color: var(--tint); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 0.76rem; font-weight: 600; transition: background .2s, transform .2s; }
.sadd:hover { background: rgba(101,163,13,0.08); transform: scale(1.04); }
.srow.is-new .swo { animation: drop .6s cubic-bezier(.2,1.3,.4,1); }
@keyframes drop { from { transform: translateY(-10px) scale(.96); opacity: 0; } }

/* Dynamic Island */
.island-demo { margin-top: 10px; display: grid; place-items: center; min-height: 104px; }
.island {
  width: 132px; height: 38px; border-radius: 999px; background: #000; color: #fff;
  display: flex; align-items: center; gap: 10px; padding: 0 14px; overflow: hidden; white-space: nowrap;
  transition: width .7s cubic-bezier(.2,1.2,.3,1), height .7s cubic-bezier(.2,1.2,.3,1), border-radius .7s;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,0.5);
}
.island .dot { width: 9px; height: 9px; border-radius: 50%; background: #c4f22e; box-shadow: 0 0 10px #c4f22e; flex: none; }
.island-txt { display: grid; min-width: 0; opacity: 0; transition: opacity .3s; line-height: 1.2; }
.island-txt b { font-size: 0.85rem; font-weight: 600; color: #fff; }
.island-txt small { font-size: 0.7rem; color: #a1a1aa; }
.island .t { font-family: var(--mono); color: #c4f22e; margin-left: auto; font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.card:hover .island, .island.is-open { width: min(100%, 268px); height: 64px; border-radius: 26px; }
.card:hover .island-txt, .island.is-open .island-txt { opacity: 1; transition-delay: .2s; }

/* Health */
.health { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.rings { width: 76px; height: 76px; flex: none; transform: rotate(-90deg); }
.rings circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.rings .rg { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); }
.health.is-in .rg { stroke-dashoffset: calc(var(--len) * (1 - var(--to))); }
.health-row { display: grid; gap: 2px; font-size: 0.85rem; min-width: 0; }
.health-row small { color: var(--dim); font-size: 0.78rem; }
.health-tag { justify-self: start; margin-top: 4px; font-size: 0.7rem; font-weight: 600; color: #e0124a; background: rgba(250,17,79,0.09); border-radius: 999px; padding: 3px 9px; }

/* Sync */
.sync { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.dev { font-size: 0.78rem; font-weight: 600; background: var(--surface-2); border-radius: 999px; padding: 6px 12px; }
.wire { flex: 1; height: 2px; background: var(--line-strong); position: relative; overflow: hidden; border-radius: 2px; }
.wire i { position: absolute; top: 0; bottom: 0; width: 30%; background: var(--volt); border-radius: 2px; animation: wire 1.8s ease-in-out infinite; }
@keyframes wire { from { left: -30%; } to { left: 100%; } }

/* Offline */
.offline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.nosvc { font-size: 0.75rem; font-weight: 600; color: var(--dim); background: var(--surface-2); border-radius: 999px; padding: 6px 12px; text-decoration: line-through; text-decoration-color: var(--danger); }
.saved-pill { font-size: 0.75rem; font-weight: 600; color: var(--accent-text); background: rgba(101,163,13,0.12); border-radius: 999px; padding: 6px 12px; }

/* Templates */
.tpl-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tpl-tabs button { border: 0; background: transparent; border-radius: 999px; padding: 7px 12px; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tpl-tabs button span { color: var(--ink-3); font-weight: 500; margin-left: 3px; }
.tpl-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tpl-tabs button[aria-selected="true"] span { color: #a1a1aa; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tcard { background: var(--tile); border-radius: 16px; padding: 12px; display: grid; gap: 8px; min-width: 0; animation: drop .5s cubic-bezier(.2,1.2,.4,1) both; }
.tcard:nth-child(2) { animation-delay: .05s; } .tcard:nth-child(3) { animation-delay: .1s; } .tcard:nth-child(4) { animation-delay: .15s; }
.tcard b { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .sic { width: 30px; height: 30px; }
.tbar { display: flex; gap: 3px; height: 4px; }
.tbar i { flex: 1; border-radius: 4px; }
.tfoot { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: 0.74rem; }
.tplay { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; border: 0; text-decoration: none; color: var(--ink); font-size: 0.6rem; transition: transform .2s; }
.tplay:hover { transform: scale(1.12); }
.tcard.is-new { border: 1.5px dashed rgba(13,13,13,0.15); background: transparent; place-content: center; text-align: center; color: var(--ink-3); font-weight: 600; }

/* Profile */
.prof { background: linear-gradient(150deg, #f3fbd8 0%, #dcf38f 55%, #c4f22e 100%); padding: 18px; gap: 6px; }
.prof-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.prof-top small { color: #5c6b2e; }
.prof-av { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--tint); }
.prof-av svg { width: 20px; height: 20px; }
.prof-lbl { font-size: 0.68rem; letter-spacing: 0.12em; font-weight: 600; color: #4a5a1c; }
.prof-vol { font-family: -apple-system, "SF Pro Display", var(--display); font-weight: 800; font-size: 3.2rem; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.prof-vol small { display: inline; font-size: 1.1rem; color: #4a5a1c; margin-left: 2px; }
.prof-whale { color: #3d4a17; font-weight: 600; }
.prof-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,0.6); border-radius: 14px; margin-top: 8px; padding: 10px 4px; text-align: center; }
.prof-stats > div + div { border-left: 1px solid rgba(13,13,13,0.08); }
.prof-stats b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.prof-stats small { color: #5c6b2e; }
.prof-meas { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; margin-top: 4px; }
.prof-meas > div { display: grid; gap: 1px; }
.prof-meas b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.prof-delta { font-size: 0.72rem; font-weight: 600; color: #4d7c0f; }
.prof-meas svg { width: 120px; height: 40px; flex: none; }
.prof-meas .spark { fill: none; stroke: #65a30d; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.prof-meas .spark-a { fill: rgba(101,163,13,0.12); }
.prof-meas circle { fill: #65a30d; stroke: #fff; stroke-width: 2; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 16px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--surface); display: grid; gap: 18px; align-content: start; min-width: 0; }
.plan.pro { border-color: var(--volt); background: linear-gradient(180deg, rgba(var(--glow-rgb),0.08), var(--surface) 55%); position: relative; }
.plan-badge { position: absolute; top: -12px; right: 24px; background: var(--volt); color: var(--on-volt); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; padding: 5px 10px; border-radius: 999px; }
.plan h3 { font-size: var(--step-1); }
.plan-price { font-family: var(--display); font-weight: 800; font-size: 3.4rem; letter-spacing: -0.04em; line-height: 1; }
.plan-price small { font-family: var(--body); font-weight: 400; font-size: 0.9rem; color: var(--dim); letter-spacing: 0; margin-left: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--dim); font-size: 0.95rem; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: "+"; color: var(--volt); font-family: var(--mono); }
.versus { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 32px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.versus-bars { display: grid; gap: 14px; }
.vbar { display: grid; gap: 6px; font-size: 0.88rem; }
.vbar-top { display: flex; justify-content: space-between; gap: 10px; color: var(--dim); }
.vbar-top b { color: var(--fg); font-variant-numeric: tabular-nums; }
.vbar-track { height: 14px; border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.vbar-track i { display: block; height: 100%; border-radius: 14px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.vbar.sub i { background: var(--danger); }
.vbar.one i { background: var(--volt); }
.saved { font-family: var(--display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1; }
.saved em { font-style: normal; color: var(--accent-text); }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
.faq-list { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--display); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.02em; line-height: 1.1; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform .4s, background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--fg); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--volt); border-color: var(--volt); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--on-volt); }
.faq .ans { padding-bottom: 24px; color: var(--dim); max-width: 60ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Final CTA ---------- */
.final { padding-block: clamp(100px, 14vw, 200px) clamp(60px, 8vw, 100px); text-align: center; overflow: hidden; position: relative; }
.final-word { font-family: var(--display); font-size: clamp(3.4rem, 15vw, 15rem); line-height: 0.82; letter-spacing: -0.05em; display: flex; justify-content: center; flex-wrap: wrap; user-select: none; }
.final-word span { display: inline-block; font-weight: 300; font-variation-settings: "wght" 300; transition: color .3s; will-change: font-variation-settings; }
.final-word .row { display: flex; width: 100%; justify-content: center; }
.final-sub { color: var(--dim); font-size: var(--step-1); margin: 32px auto 36px; max-width: 30ch; }
.final-cta { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.final-glow { position: absolute; left: 50%; bottom: -40%; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(var(--haze-rgb), var(--haze-a, 0.2)), transparent 65%); pointer-events: none; }

footer { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--faint); font-size: 0.85rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ---------- Mobile sticky CTA ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: linear-gradient(180deg, transparent, var(--bg) 40%);
  transform: translateY(110%); transition: transform .5s cubic-bezier(.2,.8,.2,1);
  display: none;
}
.dock.is-on { transform: none; }
.dock-in { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 20px; padding: 10px 10px 10px 12px; }
.dock-in img { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.dock-in div { flex: 1; min-width: 0; line-height: 1.2; }
.dock-in b { display: block; font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.01em; }
.dock-in small { color: var(--dim); font-size: 0.78rem; }
@media (max-width: 860px) { .dock { display: block; } }

/* ---------- Exit modal ---------- */
.modal { position: fixed; inset: 0; z-index: 97; display: grid; place-items: center; padding: 20px var(--gutter-r) 20px var(--gutter-l); background: var(--scrim); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-card { position: relative; width: min(520px, 100%); border-radius: 28px; border: 1px solid var(--line-strong); background: var(--surface); padding: 36px; display: grid; gap: 18px; text-align: center; justify-items: center; }
.modal-card h3 { font-size: var(--step-2); }
.modal-card p { color: var(--dim); }
.modal-card .qr { width: 160px; height: 160px; padding: 10px; border-radius: 18px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; }

/* ---------- Reveal ---------- */
.js .rv { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .loader { display: none; }
}
.ring { color: var(--volt); }

@media (max-width: 560px) {
  .mock { padding: 10px; }
  .srow { grid-template-columns: 42px 1fr; gap: 6px; }
  .swo { gap: 8px; padding: 8px 8px 8px 10px; }
  .sic { width: 26px; height: 26px; }
  .sstart { width: 30px; height: 30px; padding: 0 0 0 2px; display: grid; place-items: center; border-radius: 50%; font-size: 0.95rem; }
  .sstart span { display: none; }
  .prof-meas svg { width: 84px; }
}
