/* ─────────────────────────────────────────────────
   Optimize — Marketing Site
   Pulse-teal default. Iron + Bloom via [data-theme]
   ───────────────────────────────────────────────── */

:root {
  /* Pulse light — default */
  --bg: #F2F4F5;
  --surface: #FFFFFF;
  --surface-alt: #F8F9FA;
  --ink: #15191B;
  --ink-strong: #050708;
  --ink-dim: rgba(21, 25, 27, 0.62);
  --ink-faint: rgba(21, 25, 27, 0.40);
  --hairline: rgba(21, 25, 27, 0.08);
  --hairline-strong: rgba(21, 25, 27, 0.14);
  --chip: rgba(21, 25, 27, 0.05);
  --track: rgba(21, 25, 27, 0.07);

  --accent: oklch(0.66 0.13 200);
  --accent-soft: oklch(0.66 0.13 200 / 0.13);
  --accent-deep: oklch(0.30 0.06 200);
  --accent-fg: #FFFFFF;

  --protein: oklch(0.66 0.16 25);
  --carbs:   oklch(0.78 0.14 80);
  --fat:     oklch(0.74 0.13 145);

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --serif: 'Instrument Serif', "Times New Roman", Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
  --shadow:    0 2px 8px rgba(0,0,0,.04), 0 12px 30px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 30px 80px rgba(0,0,0,.10);
}

/* Iron palette */
[data-theme="iron"] {
  --accent: oklch(0.74 0.17 60);
  --accent-soft: oklch(0.74 0.17 60 / 0.14);
  --accent-deep: oklch(0.30 0.08 60);
}
[data-theme="iron"][data-mode="light"] {
  --bg: #F4F2EE; --surface: #FFFFFF; --surface-alt: #FAF8F4;
  --ink: #1A1714; --ink-strong: #0A0807;
  --ink-dim: rgba(26,23,20,0.62); --ink-faint: rgba(26,23,20,0.40);
  --hairline: rgba(26,23,20,0.08); --hairline-strong: rgba(26,23,20,0.14);
  --chip: rgba(26,23,20,0.05); --track: rgba(26,23,20,0.07);
}

/* Bloom palette */
[data-theme="bloom"] {
  --accent: oklch(0.68 0.15 12);
  --accent-soft: oklch(0.68 0.15 12 / 0.13);
  --accent-deep: oklch(0.32 0.08 12);
}
[data-theme="bloom"][data-mode="light"] {
  --bg: #FBF6F2; --surface: #FFFFFF; --surface-alt: #FCF8F5;
  --ink: #231819; --ink-strong: #100809;
  --ink-dim: rgba(35,24,25,0.62); --ink-faint: rgba(35,24,25,0.40);
  --hairline: rgba(35,24,25,0.08); --hairline-strong: rgba(35,24,25,0.14);
  --chip: rgba(35,24,25,0.05); --track: rgba(35,24,25,0.07);
}

/* Forest palette */
[data-theme="forest"] {
  --accent: oklch(0.62 0.15 145);
  --accent-soft: oklch(0.62 0.15 145 / 0.14);
  --accent-deep: oklch(0.32 0.08 145);
}
[data-theme="forest"][data-mode="light"] {
  --bg: #F1F5F0; --surface: #FFFFFF; --surface-alt: #F6F9F5;
  --ink: #131915; --ink-strong: #060A07;
  --ink-dim: rgba(19,25,21,0.62); --ink-faint: rgba(19,25,21,0.40);
  --hairline: rgba(19,25,21,0.08); --hairline-strong: rgba(19,25,21,0.14);
  --chip: rgba(19,25,21,0.05); --track: rgba(19,25,21,0.07);
}

/* Cobalt palette */
[data-theme="cobalt"] {
  --accent: oklch(0.60 0.18 265);
  --accent-soft: oklch(0.60 0.18 265 / 0.14);
  --accent-deep: oklch(0.32 0.10 265);
}
[data-theme="cobalt"][data-mode="light"] {
  --bg: #F2F3F8; --surface: #FFFFFF; --surface-alt: #F7F8FB;
  --ink: #14171F; --ink-strong: #06080D;
  --ink-dim: rgba(20,23,31,0.62); --ink-faint: rgba(20,23,31,0.40);
  --hairline: rgba(20,23,31,0.08); --hairline-strong: rgba(20,23,31,0.14);
  --chip: rgba(20,23,31,0.05); --track: rgba(20,23,31,0.07);
}

/* Dark mode — all themes */
[data-mode="dark"] {
  --bg: #050608; --surface: #20262B; --surface-alt: #2A3137;
  --ink: #F2F4F5; --ink-strong: #FFFFFF;
  --ink-dim: rgba(242,244,245,0.66); --ink-faint: rgba(242,244,245,0.42);
  --hairline: rgba(242,244,245,0.16); --hairline-strong: rgba(242,244,245,0.26);
  --chip: rgba(242,244,245,0.08); --track: rgba(242,244,245,0.10);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.55);
  --shadow:    0 4px 12px rgba(0,0,0,.55), 0 16px 40px rgba(0,0,0,.6);
  --shadow-lg: 0 16px 50px rgba(0,0,0,.65), 0 40px 90px rgba(0,0,0,.7);
  --accent-fg: #050608;
}
[data-theme="iron"][data-mode="dark"]  { --bg: #070604; --surface: #26221C; --surface-alt: #2F2A23; --ink: #F4F2EE; --ink-strong: #FFFFFF;
  --ink-dim: rgba(244,242,238,0.66); --ink-faint: rgba(244,242,238,0.42); --hairline: rgba(244,242,238,0.16); --hairline-strong: rgba(244,242,238,0.26); --chip: rgba(244,242,238,0.08); --track: rgba(244,242,238,0.10); }
[data-theme="bloom"][data-mode="dark"] { --bg: #0C0706; --surface: #2A2120; --surface-alt: #322827; --ink: #FBF6F2; --ink-strong: #FFFFFF;
  --ink-dim: rgba(251,246,242,0.66); --ink-faint: rgba(251,246,242,0.42); --hairline: rgba(251,246,242,0.16); --hairline-strong: rgba(251,246,242,0.26); --chip: rgba(251,246,242,0.08); --track: rgba(251,246,242,0.10); }
[data-theme="forest"][data-mode="dark"] { --bg: #050805; --surface: #293229; --surface-alt: #344038; --ink: #F1F5F0; --ink-strong: #FFFFFF;
  --ink-dim: rgba(241,245,240,0.66); --ink-faint: rgba(241,245,240,0.42); --hairline: rgba(241,245,240,0.16); --hairline-strong: rgba(241,245,240,0.26); --chip: rgba(241,245,240,0.08); --track: rgba(241,245,240,0.10); }
[data-theme="cobalt"][data-mode="dark"] { --bg: #04050A; --surface: #292D36; --surface-alt: #313643; --ink: #F2F3F8; --ink-strong: #FFFFFF;
  --ink-dim: rgba(242,243,248,0.66); --ink-faint: rgba(242,243,248,0.42); --hairline: rgba(242,243,248,0.16); --hairline-strong: rgba(242,243,248,0.26); --chip: rgba(242,243,248,0.08); --track: rgba(242,243,248,0.10); }

/* ─────────────────────────────────────────────────
   Base
   ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono { font-family: var(--mono); font-feature-settings: "ss01"; letter-spacing: 0.02em; }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.ink-strong { color: var(--ink-strong); font-weight: 500; }
.accent-text { color: var(--accent); }
.caption { font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }

/* ─────────────────────────────────────────────────
   Typography scale
   ───────────────────────────────────────────────── */

.display {
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
  color: var(--ink-strong);
  text-wrap: balance;
}
.display .serif { font-weight: 400; letter-spacing: -0.015em; }
.display.sm { font-size: clamp(32px, 5vw, 64px); line-height: 1; }

h2, h3, h4, h5 { margin: 0; color: var(--ink-strong); }
h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
h4 { font-size: 17px; line-height: 1.3; letter-spacing: -0.005em; font-weight: 600; }
h5 { font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); font-weight: 500; }

p { margin: 0; color: var(--ink-dim); }

.lede {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 36ch;
  text-wrap: pretty;
}
.section-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 56ch;
  text-wrap: pretty;
  margin-top: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  padding: 6px 12px;
  background: var(--chip);
  border-radius: 999px;
  margin-bottom: 24px;
  font-weight: 500;
}
.eyebrow.center { margin-inline: auto; }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

/* ─────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────── */

.primary-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.primary-btn {
  background: var(--ink-strong);
  color: var(--bg);
}
.primary-btn:hover { transform: translateY(-1px); }

.ghost-btn {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.ghost-btn:hover { background: var(--chip); }

.lg {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 999px;
}

/* ─────────────────────────────────────────────────
   Header
   ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: var(--ink-strong);
}
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-word { font-family: var(--sans); }

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-dim);
}
.site-nav a { transition: color 0.15s; }
.site-nav a:hover { color: var(--ink-strong); }

.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions .ghost-btn { display: none; }
@media (min-width: 760px) { .header-actions .ghost-btn { display: inline-flex; } }

.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: 8px;
  flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform .2s, opacity .2s; }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--hairline);
  background: var(--bg);
}
.mobile-nav a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 16px;
}
.mobile-nav .primary-btn { align-self: flex-start; margin-top: 12px; border-bottom: 0; }

@media (max-width: 880px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .primary-btn { display: none; }
  .mobile-nav[data-open] { display: flex; }
}

/* ─────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 5vw, 80px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-copy { position: relative; z-index: 2; }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-meta {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  max-width: 540px;
}
.hero-meta li {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px;
  color: var(--ink-dim);
}
.hero-meta .mono {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Hero visual: phone + bg ── */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 600px;
}
.phone-grid-bg {
  position: absolute;
  inset: -10% -5% -10% -5%;
  background-image:
    radial-gradient(circle at 70% 30%, var(--accent-soft) 0%, transparent 55%),
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.85;
}
.phone-shadow {
  position: absolute;
  width: 280px; height: 60px;
  bottom: 30px;
  left: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0,0,0,0.18) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

/* ── PHONE ── */
.phone {
  position: relative;
  width: 340px;
  height: 700px;
  border-radius: 44px;
  background: #0a0a0a;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(0,0,0,0.6);
  z-index: 1;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.phone:hover { transform: rotate(0deg) translateY(-4px); }
.phone-island {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px;
  border-radius: 20px;
  background: #000;
  z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

@media (max-width: 920px) {
  .phone { transform: rotate(0deg); }
  .hero-visual { min-height: 700px; }
}
@media (max-width: 500px) {
  .phone { width: 300px; height: 620px; }
}

.pulse-screen {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  display: flex; flex-direction: column;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.sb-right { font-size: 10px; letter-spacing: 1px; }

.phone-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px 12px;
  display: flex; flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
}
.phone-content::-webkit-scrollbar { display: none; }

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 12px;
}
.screen-eyebrow {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-faint);
}
.screen-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-strong); margin-top: 2px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
}
[data-mode="dark"] .avatar { color: var(--accent); }

.energy-card, .macro-card, .coach-card, .pair-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--hairline);
}

.big-num { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-strong); }
.big-num .caption { font-size: 10px; }
.energy-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.energy-stat { text-align: center; min-width: 0; }
.energy-stat__label { font-size: 9px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.energy-stat__value { font-size: 16px; font-weight: 600; color: var(--ink-strong); letter-spacing: -0.02em; margin-top: 2px; line-height: 1; white-space: nowrap; }
.energy-stat__unit { font-size: 9px; color: var(--ink-dim); margin-top: 2px; }
.energy-stat--net .energy-stat__value { color: var(--accent); }

.macro-card { display: flex; gap: 14px; align-items: center; }
.ring-wrap { position: relative; width: 110px; height: 110px; flex-shrink: 0; }
.multi-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring, .ring-track {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}
.ring-track { stroke: var(--track); }
.ring.r-protein { stroke: var(--protein); }
.ring.r-carbs   { stroke: var(--carbs); }
.ring.r-fat     { stroke: var(--fat); }
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
}
.macro-rows { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.macro-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.mlabel { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-dim); }
.mlabel i.dot { width: 7px; height: 7px; border-radius: 50%; }
.mlabel i.dot.protein { background: var(--protein); }
.mlabel i.dot.carbs   { background: var(--carbs); }
.mlabel i.dot.fat     { background: var(--fat); }
.mval { font-family: var(--mono); font-size: 12px; color: var(--ink-strong); font-weight: 500; }
.mval small { color: var(--ink-faint); font-weight: 400; }

.coach-card {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--accent-soft);
  border-color: transparent;
}
.coach-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.coach-title { font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-deep); margin-bottom: 2px; font-weight: 500; }
[data-mode="dark"] .coach-title { color: var(--accent); }
.coach-msg { font-size: 13px; line-height: 1.4; color: var(--ink); }

.day-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair-card { display: flex; gap: 10px; align-items: center; padding: 12px; }
.pair-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--chip); color: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pair-val { font-size: 13px; font-weight: 500; color: var(--ink-strong); margin-top: 1px; }

.tab-bar {
  display: flex; justify-content: space-around;
  padding: 10px 14px 18px;
  border-top: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  backdrop-filter: blur(10px);
}
.tab-bar .tab {
  font-size: 10px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.tab-bar .tab {
  position: relative;
  transition: color 0.3s ease;
  cursor: default;
}
.tab-bar .tab.on { color: var(--accent); }
.tab-bar .tab.tapping { animation: tab-tap 0.45s ease; }
@keyframes tab-tap {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.84); }
  100% { transform: scale(1); }
}

/* ── Cycling app screens inside the phone ── */
.screen-stack { position: relative; flex: 1; overflow: hidden; }
.app-screen {
  position: absolute; inset: 0;
  overflow-y: auto;
  padding: 8px 18px 14px;
  display: flex; flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.app-screen::-webkit-scrollbar { display: none; }
.app-screen.is-active { opacity: 1; transform: none; pointer-events: auto; }
.app-screen.is-leaving { transform: translateX(-12px); }

.section-label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-faint);
  margin: 2px 2px -4px;
}
.app-screen .chip { font-size: 10px; padding: 3px 8px; }
.row-title { font-size: 13px; font-weight: 600; color: var(--ink-strong); letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; }
.row-meta { font-size: 11px; color: var(--ink-dim); margin-top: 2px; }
.row-time { font-size: 10px; color: var(--ink-faint); white-space: nowrap; }

/* Food */
.food-summary {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 14px;
}
.food-summary__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.food-summary__head .big-num small { font-size: 12px; color: var(--ink-faint); font-weight: 400; }
.fbars { display: flex; flex-direction: column; gap: 9px; }
.fbar-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px; }
.fbar-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-dim); }
.fbar-label i.dot { width: 7px; height: 7px; border-radius: 50%; }
.fbar-label i.dot.protein { background: var(--protein); }
.fbar-label i.dot.carbs   { background: var(--carbs); }
.fbar-label i.dot.fat     { background: var(--fat); }
.fbar-track { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.fbar-fill { display: block; height: 100%; border-radius: 999px; }
.fbar-fill.protein { background: var(--protein); }
.fbar-fill.carbs   { background: var(--carbs); }
.fbar-fill.fat     { background: var(--fat); }
.fbar-val { font-size: 11px; color: var(--ink-strong); font-weight: 500; }
.fbar-val small { color: var(--ink-faint); font-weight: 400; }

.combo-row, .meal-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: 11px 12px;
}
.combo-body, .meal-body { flex: 1; min-width: 0; }
.mini-ring { width: 36px; height: 36px; flex-shrink: 0; transform: rotate(-90deg); }
.mini-ring .ring, .mini-ring .ring-track { stroke-width: 4; }
.add-btn {
  width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; font-weight: 500;
}
[data-mode="dark"] .add-btn { color: var(--accent); }

/* Body */
.weight-hero {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.weight-big { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink-strong); line-height: 1; }
.weight-big small { font-size: 14px; color: var(--ink-faint); font-weight: 400; }
.weight-delta { font-size: 11px; margin-top: 6px; font-weight: 500; }
.weight-delta span { color: var(--ink-faint); font-weight: 400; }
.weight-delta.down { color: var(--fat); }
.weight-delta.up { color: var(--protein); }
.spark { width: 96px; height: 40px; flex-shrink: 0; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-tile {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: 11px 12px;
}
.stat-val { font-size: 17px; font-weight: 600; color: var(--ink-strong); letter-spacing: -0.02em; margin-top: 3px; display: flex; align-items: baseline; gap: 6px; }
.stat-val small { font-size: 11px; color: var(--ink-faint); font-weight: 400; }

/* Meds */
.cmpd-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 13px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.cmpd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cmpd-count { text-align: right; line-height: 1.1; }
.cmpd-count-n { display: block; font-size: 18px; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.cmpd-count .caption { font-size: 9px; }
.stock-bar { height: 7px; border-radius: 999px; background: var(--track); overflow: hidden; }
.stock-bar.sm { height: 5px; margin-top: 6px; }
.stock-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.cmpd-foot { display: flex; gap: 6px; flex-wrap: wrap; }
.site-rotation { display: flex; gap: 6px; flex-wrap: wrap; }
.site-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-dim); background: var(--chip); border-radius: 999px; padding: 5px 10px; }
.site-dot { width: 7px; height: 7px; border-radius: 50%; }
.site-dot.fresh  { background: var(--fat); }
.site-dot.rested { background: var(--carbs); }
.site-dot.used   { background: var(--protein); }

/* Train */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi-tile {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: 11px 12px;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-ico { font-size: 13px; }
.kpi-up { font-size: 10px; color: var(--fat); }
.kpi-val { font-size: 18px; font-weight: 600; color: var(--ink-strong); letter-spacing: -0.02em; margin-top: 3px; }
.kpi-val small { font-size: 11px; color: var(--ink-faint); font-weight: 400; }

.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; align-items: end; padding: 4px 2px; }
.wday { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 78px; justify-content: flex-end; }
.wbar { width: 100%; max-width: 22px; border-radius: 6px; background: var(--accent); min-height: 6px; }
.wbar.empty { background: var(--track); height: 8px; }
.wd-k { font-size: 9px; color: var(--ink-faint); }
.wd-d { font-size: 10px; color: var(--ink-dim); font-weight: 500; }
.wday.is-today .wbar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.wday.is-today .wd-d { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .app-screen { transition: none; }
  .tab-bar .tab.tapping { animation: none; }
}

/* ─────────────────────────────────────────────────
   Marquee
   ───────────────────────────────────────────────── */

.marquee {
  margin-top: clamp(48px, 6vw, 80px);
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}
.marquee-track span.serif { font-weight: 400; color: var(--accent); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────────
   Pillars
   ───────────────────────────────────────────────── */

.pillars {
  padding: clamp(60px, 8vw, 120px) 0;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
@media (max-width: 900px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface);
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
}
.pillar-n { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.1em; }
.pillar h3 { font-size: 19px; }
.pillar p { font-size: 14px; line-height: 1.5; }

/* ─────────────────────────────────────────────────
   Section heads
   ───────────────────────────────────────────────── */

.section-head { max-width: 760px; margin-bottom: clamp(40px, 4vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-lede { margin-inline: auto; }

/* ─────────────────────────────────────────────────
   AI Section
   ───────────────────────────────────────────────── */

.ai-section {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.ai-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: minmax(360px, auto);
  gap: 20px;
}
@media (max-width: 1000px) { .ai-grid { grid-template-columns: 1fr 1fr; } .ai-card.lg { grid-column: span 2; } }
@media (max-width: 640px)  { .ai-grid { grid-template-columns: 1fr; } .ai-card.lg { grid-column: span 1; } }

.ai-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.ai-tag {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ai-card h3 { font-size: 26px; letter-spacing: -0.02em; font-weight: 600; }
.ai-card p { font-size: 14px; line-height: 1.5; max-width: 38ch; }
.ai-card.lg { padding: 32px; }
.ai-card.lg h3 { font-size: 32px; }

/* Chat mock */
.chat-mock {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--hairline);
}
.chat-msg { display: flex; gap: 8px; align-items: flex-start; }
.chat-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-bubble {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 90%;
}

/* Describe mock */
.describe-mock {
  margin-top: auto;
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  gap: 12px;
}
.describe-input {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.5;
}
.describe-input .caret { color: var(--accent); font-family: var(--mono); font-weight: 600; }
.describe-input .typed { color: var(--ink); }
.describe-input .cursor { display: inline-block; width: 1.5px; height: 14px; background: var(--accent); margin-left: 2px; animation: blink 1.1s steps(2) infinite; vertical-align: -2px; }
@keyframes blink { 50% { opacity: 0; } }

.describe-output { display: flex; flex-direction: column; gap: 0; }
.describe-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 11px;
}
.describe-row span:first-child { color: var(--ink-dim); }
.describe-row .mono { font-size: 10px; color: var(--ink); }
.describe-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0 0;
  font-size: 12px;
  color: var(--ink-strong);
  font-weight: 500;
}
.describe-total .mono { font-size: 11px; color: var(--accent); font-weight: 500; }

/* UPC scan mock */
.scan-mock { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.viewfinder {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0a0a;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.vf-corner { position: absolute; width: 24px; height: 24px; border: 2px solid var(--accent); }
.vf-corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.vf-corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.vf-corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.vf-corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
.vf-laser {
  position: absolute;
  left: 16px; right: 16px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent);
  animation: laser 2.4s ease-in-out infinite;
}
@keyframes laser {
  0%, 100% { top: 30%; opacity: 0.7; }
  50%      { top: 65%; opacity: 1; }
}
.barcode { display: flex; align-items: center; gap: 2px; padding: 12px 16px; background: #fff; border-radius: 4px; }
.barcode div {
  width: 2px;
  height: 40px;
  background: #000;
}
.barcode div:nth-child(2n)  { width: 1px; height: 36px; }
.barcode div:nth-child(3n)  { width: 4px; }
.barcode div:nth-child(5n)  { width: 1px; }
.barcode div:nth-child(7n)  { width: 3px; height: 38px; }

.scan-result {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-radius: 14px;
  border: 1px solid var(--hairline);
}
.scan-name { font-size: 13px; font-weight: 500; color: var(--ink-strong); margin-bottom: 3px; }
.scan-macros { font-size: 11px; color: var(--ink-dim); }
.scan-check {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
}

/* ─────────────────────────────────────────────────
   Peptides section
   ───────────────────────────────────────────────── */

.peptides-section { padding: clamp(80px, 10vw, 140px) 0; }
.peptides-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 960px) { .peptides-grid { grid-template-columns: 1fr; } }

.feature-list { display: flex; flex-direction: column; gap: 20px; margin: 28px 0 32px; }
.feat { display: flex; gap: 18px; align-items: flex-start; }
.feat-num {
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}
.feat h4 { margin-bottom: 4px; }
.feat p { font-size: 14px; line-height: 1.5; max-width: 52ch; }

/* Calc card */
.peptides-visual {
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.calc-card, .meds-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}
.calc-card { transform: rotate(-1deg); }
.meds-card { transform: rotate(1deg); }

.calc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.calc-pill {
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.1em;
}
[data-mode="dark"] .calc-pill { color: var(--accent); }
.calc-rows { display: flex; flex-direction: column; gap: 10px; }
.calc-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
  color: var(--ink-dim);
}
.calc-row .mono { color: var(--ink-strong); font-weight: 500; }
.calc-row.big { font-size: 17px; align-items: baseline; }
.calc-row.big .mono { font-size: 22px; font-weight: 600; }
.calc-divider { height: 1px; background: var(--hairline); margin: 4px 0; }

.syringe {
  margin-top: 16px;
  display: flex; align-items: center;
  position: relative; height: 30px;
}
.syringe-barrel {
  flex: 1;
  height: 16px;
  background: var(--surface-alt);
  border: 1.5px solid var(--ink);
  border-radius: 2px 0 0 2px;
  position: relative; overflow: visible;
}
.syringe-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 1px 0 0 1px;
  transition: width 0.5s;
}
.syringe-ticks {
  position: absolute; inset: 0;
  display: flex; justify-content: space-between; pointer-events: none;
}
.syringe-ticks span {
  width: 1px; height: 5px;
  background: var(--ink);
  margin-top: 0;
}
.syringe-plunger {
  width: 14px; height: 26px;
  background: var(--ink);
  border-radius: 0 4px 4px 0;
}
.syringe-needle {
  width: 60px; height: 2px;
  background: var(--ink);
  margin-left: -1px;
  border-radius: 0 1px 1px 0;
  position: relative;
}
.syringe-needle::after {
  content: ''; position: absolute;
  right: -4px; top: -2px;
  border: 3px solid transparent;
  border-left-color: var(--ink);
}

/* Meds compound card */
.meds-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.meds-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; color: var(--ink-strong); }
.meds-pct { font-size: 20px; color: var(--accent); font-weight: 500; }

.vial-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.vial {
  width: 28px; height: 60px;
  border: 1.5px solid var(--ink);
  border-radius: 4px 4px 8px 8px;
  position: relative; overflow: hidden;
  background: var(--surface-alt);
}
.vial::before {
  content: ''; position: absolute;
  top: -4px; left: 4px; right: 4px;
  height: 6px;
  background: var(--ink);
  border-radius: 2px;
}
.vial-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--accent);
  opacity: 0.85;
  transition: height 0.4s;
}
.vial-meta { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 3px; }
.vial-meta .mono { font-size: 12px; color: var(--ink-strong); }

.meds-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px;
  padding: 5px 10px;
  background: var(--chip);
  border-radius: 999px;
  color: var(--ink-dim);
}

/* ─────────────────────────────────────────────────
   Plan section
   ───────────────────────────────────────────────── */

.plan-section {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.plan-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 960px) { .plan-grid { grid-template-columns: 1fr; } .plan-grid .plan-visual { order: -1; } }

.plan-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  gap: 18px;
}
.plan-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-fg);
  padding: 22px;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
}
[data-mode="dark"] .plan-hero { color: var(--ink-strong); }
.plan-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,0.2), transparent 50%);
}
.plan-hero-eyebrow {
  font-size: 10px; font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.1em; opacity: 0.85; position: relative;
}
.plan-hero-week {
  font-size: 32px; font-weight: 500; letter-spacing: -0.02em;
  margin-top: 4px; position: relative;
}
.big-week { font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-family: var(--serif); font-style: italic; vertical-align: -4px; }
.plan-hero-week .of { font-size: 24px; opacity: 0.7; }
.plan-hero-bar {
  margin-top: 14px;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px; overflow: hidden;
  position: relative;
}
.plan-hero-bar div {
  height: 100%; background: rgba(255,255,255,0.95);
  border-radius: 999px;
}

.phase-row { display: grid; grid-template-columns: 1fr 4fr 1fr; gap: 4px; }
.phase { display: flex; flex-direction: column; gap: 6px; }
.phase-bar { height: 6px; background: var(--track); border-radius: 3px; }
.phase.done .phase-bar { background: var(--ink-dim); }
.phase.active .phase-bar { background: var(--accent); }
.phase-label { font-size: 9px; color: var(--ink-faint); letter-spacing: 0.08em; }
.phase.active .phase-label { color: var(--accent); }

.gantt {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}
.gantt-track {
  display: flex; align-items: center; gap: 10px;
  height: 22px;
}
.gantt-label {
  font-family: var(--mono); font-size: 10px; color: var(--ink-dim);
  width: 56px; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.gantt-bar-area {
  position: relative;
  flex: 1;
  height: 12px;
  background: var(--track);
  border-radius: 4px;
}
.gantt-bar {
  position: absolute;
  top: 0;
  height: 12px;
  border-radius: 4px;
  min-width: 6px;
}

.adherence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adh-tile {
  padding: 14px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}
.adh-pct { font-size: 20px; color: var(--ink-strong); margin: 6px 0 8px; font-weight: 500; }
.adh-bar { height: 4px; background: var(--track); border-radius: 999px; overflow: hidden; }
.adh-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.check-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--ink);
}
.check-list li::before {
  content: ''; position: absolute;
  left: 4px; top: 9px;
  width: 12px; height: 6px;
  border: 1.5px solid var(--accent);
  border-top: 0; border-right: 0;
  transform: rotate(-45deg);
}

/* ─────────────────────────────────────────────────
   Feature grid (12 cards)
   ───────────────────────────────────────────────── */

.features-section { padding: clamp(80px, 10vw, 140px) 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .feature-grid { grid-template-columns: 1fr; } }

.fcard {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.fcard:hover { transform: translateY(-3px); border-color: var(--hairline-strong); box-shadow: var(--shadow-sm); }
.fcard-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
[data-mode="dark"] .fcard-icon { color: var(--accent); }
.fcard h4 { margin-bottom: 6px; font-size: 16px; }
.fcard p { font-size: 13px; line-height: 1.5; }

/* ─────────────────────────────────────────────────
   Roadmap / Coming soon
   ───────────────────────────────────────────────── */

.roadmap-section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.roadmap-section::before {
  content: ''; position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, var(--accent-soft), transparent 70%),
    repeating-linear-gradient(135deg, transparent 0 18px, var(--hairline) 18px 19px);
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 60%);
}
.roadmap-section > .wrap { position: relative; }

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .roadmap-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .roadmap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .roadmap-grid { grid-template-columns: 1fr; } }

.roadmap-card {
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.roadmap-card:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-sm);
}

.rc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.rc-tag {
  font-size: 9px;
  letter-spacing: 0.16em;
  padding: 3px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}
.rc-eta {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.roadmap-card h4 {
  font-size: 17px;
  letter-spacing: -0.005em;
}
.roadmap-card p {
  font-size: 13px;
  line-height: 1.5;
}

.roadmap-foot {
  margin-top: 36px;
  text-align: center;
}
.roadmap-foot p {
  font-size: 14px;
  color: var(--ink-dim);
}
.roadmap-foot a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.roadmap-foot a:hover {
  text-decoration-color: var(--accent);
}

/* ─────────────────────────────────────────────────
   Install section
   ───────────────────────────────────────────────── */

.install-section {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline);
}
.install-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1080px) { .install-steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.step { min-width: 0; }

.step {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.step-n { font-size: 11px; color: var(--accent); letter-spacing: 0.14em; }
.step-shot {
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.browser-lock { color: var(--ink-faint); display: inline-flex; }
.browser-url {
  font-size: 11px;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.browser-bar { min-width: 0; }

.step-illus {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 16px;
}

.phone-mini {
  width: 130px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--hairline);
  padding: 12px 10px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.pm-url {
  font-size: 8px;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: 10px;
  padding: 4px 6px;
  background: var(--chip);
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-body { display: flex; flex-direction: column; gap: 5px; padding: 4px; }
.pm-line { height: 6px; background: var(--track); border-radius: 3px; }
.pm-line.w70 { width: 70%; }
.pm-line.w50 { width: 50%; }
.pm-line.w60 { width: 60%; }
.pm-share {
  position: absolute;
  right: -56px;
  top: 28px;
  display: flex; flex-direction: column; align-items: center;
  color: var(--accent);
}
.pm-share-hint {
  font-size: 10px;
  margin-top: 4px;
  font-family: var(--mono);
  color: var(--ink-dim);
}

.sheet-mini {
  width: 180px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex; flex-direction: column;
  gap: 4px;
}
.sheet-grab { width: 28px; height: 3px; background: var(--track); border-radius: 2px; align-self: center; margin: -4px 0 8px; }
.sheet-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px;
  font-size: 12px;
  color: var(--ink);
  border-radius: 6px;
}
.sheet-row .sheet-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sheet-row.muted { color: var(--ink-faint); }
.sheet-row.muted .sheet-icon { background: var(--chip); color: var(--ink-faint); }
.sheet-arrow { margin-left: auto; color: var(--ink-faint); }

.home-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  padding: 0 16px;
}
.home-icon {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  position: relative;
  color: var(--accent);
  overflow: hidden;
}
.home-icon.installed {
  background: transparent;
  border: 0;
  box-shadow: 0 6px 14px rgba(26, 143, 163, 0.25);
  padding: 0;
}
.home-icon.installed svg { display: block; border-radius: 14px; width: 100%; height: 100%; }
.home-icon.empty {
  background: transparent;
  border: 1px dashed var(--hairline-strong);
}
.home-mark { display: inline-flex; }
.home-label {
  position: absolute;
  bottom: -18px;
  font-size: 9px;
  color: var(--ink-dim);
  white-space: nowrap;
}

.step h4 { font-size: 18px; }
.step p { font-size: 14px; line-height: 1.5; }
.step em { font-style: italic; color: var(--ink); font-weight: 500; }

.android-note {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  display: flex; gap: 20px; align-items: flex-start;
}
.android-tag {
  font-size: 10px;
  padding: 4px 10px;
  background: var(--chip);
  border-radius: 999px;
  color: var(--ink-dim);
  letter-spacing: 0.14em;
  flex-shrink: 0;
}
.android-note h4 { margin-bottom: 4px; }
.android-note p { font-size: 14px; }

/* ─────────────────────────────────────────────────
   Free section
   ───────────────────────────────────────────────── */

.free-section { padding: clamp(80px, 10vw, 140px) 0; }
.free-card {
  max-width: 920px; margin: 0 auto;
  background: var(--ink-strong);
  color: var(--bg);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.free-card::before {
  content: ''; position: absolute;
  inset: -50% -50% auto auto;
  width: 80%; height: 80%;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  opacity: 0.5;
}
.free-eyebrow {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}
.free-card h2 { color: var(--bg); margin-bottom: 24px; position: relative; }
.free-body { display: flex; flex-direction: column; gap: 14px; position: relative; max-width: 60ch; }
.free-body p { color: color-mix(in oklab, var(--bg) 70%, transparent); font-size: 16px; line-height: 1.5; }
.free-body .ink-strong { color: var(--bg); font-weight: 500; }
.free-body .mono { color: var(--accent); }

.free-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; position: relative; }
.free-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 13px;
  color: var(--bg);
}
.free-pill .mono { color: var(--accent); font-size: 11px; }

/* ─────────────────────────────────────────────────
   CTA strip
   ───────────────────────────────────────────────── */

.cta-strip {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--hairline);
}
.cta-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
@media (max-width: 700px) {
  .cta-wrap { grid-template-columns: 1fr; }
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
  background: var(--surface-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { max-width: 320px; }
.footer-tag {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 12px;
  color: var(--ink-dim);
}
.footer-tag a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; }

.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h5 { margin-bottom: 6px; }
.footer-col a { font-size: 14px; color: var(--ink-dim); transition: color 0.15s; }
.footer-col a:hover { color: var(--ink-strong); }

.footer-rule {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap; gap: 16px;
}
.copyright { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.14em; }
.theme-toggle-mini {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.theme-toggle-mini button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
  font-size: 11px;
  padding: 0;
  transition: background 0.15s;
}
.theme-toggle-mini button span {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: block;
}
.theme-toggle-mini button:hover { background: var(--chip); }
.theme-toggle-mini button.on { background: var(--chip); color: var(--ink); }
.theme-toggle-mini button.on span { box-shadow: 0 0 0 2px var(--ink-strong); }
.tt-sep { width: 1px; height: 20px; background: var(--hairline); }

/* ─────────────────────────────────────────────────
   Help page
   ───────────────────────────────────────────────── */

.help-hero {
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--hairline);
}
.help-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.02em; line-height: 1.05; font-weight: 600; color: var(--ink-strong); margin-bottom: 16px; }
.help-hero .lede { max-width: 60ch; }

.help-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(40px, 6vw, 80px) 0;
}
@media (max-width: 820px) { .help-layout { grid-template-columns: 1fr; } .help-toc { position: static; } }

.help-toc {
  position: sticky;
  top: 88px;
  align-self: start;
  font-size: 14px;
  display: flex; flex-direction: column;
  gap: 6px;
  border-left: 1px solid var(--hairline);
  padding-left: 16px;
}
.help-toc strong {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
  font-weight: 500;
}
.help-toc a {
  color: var(--ink-dim);
  padding: 6px 0;
  transition: color 0.15s;
}
.help-toc a:hover, .help-toc a.active { color: var(--ink-strong); }

.help-content { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.help-block { display: flex; flex-direction: column; gap: 16px; }
.help-block-head { display: flex; gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.help-block-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
[data-mode="dark"] .help-block-icon { color: var(--accent); }
.help-block-head h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.015em; font-weight: 600; }
.help-block-head .caption { display: block; margin-bottom: 4px; }

.help-block > p { font-size: 16px; line-height: 1.6; max-width: 64ch; }

.help-examples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .help-examples { grid-template-columns: 1fr; } }

.example {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.example .caption { color: var(--accent); }
.example h4 { font-size: 16px; }
.example p { font-size: 14px; line-height: 1.5; }

.help-callout {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent);
}
.help-callout-mark {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: var(--mono); font-size: 13px; font-weight: 600;
}
.help-callout h4 { font-size: 14px; margin-bottom: 4px; color: var(--accent-deep); }
[data-mode="dark"] .help-callout h4 { color: var(--accent); }
.help-callout p { font-size: 14px; color: var(--ink); }

.kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  background: var(--chip);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--ink);
}

.steps-list {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column;
  counter-reset: step;
}
.steps-list li {
  padding: 14px 0 14px 44px;
  position: relative;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  counter-increment: step;
}
.steps-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.steps-list li:last-child { border-bottom: 0; }
.steps-list li strong { color: var(--ink-strong); font-weight: 500; }

/* ─────────────────────────────────────────────────
   Coming soon + Data ownership sections
   ───────────────────────────────────────────────── */

.coming-soon-section { background: var(--bg); }
.rc-tag--soon {
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
}

/* ─────────────────────────────────────────────────
   Integrations · Withings
   ───────────────────────────────────────────────── */

.integration-section {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.integration-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .integration-grid { grid-template-columns: 1fr; } }

.integration-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
  color: var(--ink-strong);
}
.integration-brand-pre {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.withings-logo {
  height: 26px;
  width: auto;
  display: block;
}

.integration-visual { position: relative; }
.device-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 24px;
  box-shadow: var(--shadow);
}
.device-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.device-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.device-sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.device-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
}
.device-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink-dim);
}
.device-row:last-child { border-bottom: none; }
.device-row .mono {
  font-size: 13px;
  color: var(--ink-strong);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.device-foot {
  margin-top: 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.data-section {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.data-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .data-grid { grid-template-columns: 1fr; } }

.data-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 24px;
  box-shadow: var(--shadow);
}
.data-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.data-pill {
  font-size: 9px;
  padding: 3px 8px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
  border-radius: 999px;
  letter-spacing: 0.14em;
}
.data-rows { display: flex; flex-direction: column; }
.data-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--hairline);
}
.data-row:last-child { border-bottom: 0; }
.data-row span:first-child { color: var(--ink-dim); }
.data-row .mono { color: var(--ink-strong); font-weight: 500; }
.data-btn {
  margin-top: 16px;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px;
  background: var(--ink-strong);
  color: var(--bg);
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
}
.data-btn:hover { opacity: 0.92; }

/* ─────────────────────────────────────────────────
   Legal pages (terms.html, privacy.html)
   ───────────────────────────────────────────────── */

.legal-page {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 120px);
  background: var(--bg);
}

.legal-wrap {
  max-width: 760px;
  color: var(--ink-dim);
  line-height: 1.65;
}

.legal-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  line-height: 1.05;
  margin: 0 0 8px;
}

.legal-effective {
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.legal-wrap h2 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  margin: 40px 0 12px;
}

.legal-wrap p,
.legal-wrap ul {
  font-size: 16px;
  margin: 0 0 16px;
}

.legal-wrap ul {
  padding-left: 22px;
}

.legal-wrap li {
  margin-bottom: 8px;
}

.legal-wrap a {
  color: var(--accent-deep, var(--accent));
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-mode="dark"] .legal-wrap a {
  color: var(--accent);
}

.legal-wrap strong {
  color: var(--ink-strong);
  font-weight: 600;
}
