/* ========================================================================
   EPTI — Landing page styles
   ======================================================================== */

:root {
  /* Color — light theme (warm paper) */
  --bg: #f6f5f0;
  --bg-1: #efeee8;
  --surface: #ffffff;
  --surface-2: #f3f1ea;
  --surface-3: #e7e4da;
  --line: rgba(14, 16, 22, 0.08);
  --line-strong: rgba(14, 16, 22, 0.18);
  --text: #0e1016;
  --text-2: #565963;
  --text-3: #8a8d96;
  --text-4: #b4b6be;

  /* Accent — brand mint, sampled from the app's active states + wordmark dot */
  --accent: #15c896;
  --accent-strong: #11ad81;
  --accent-ink: #062a20;
  --accent-dim: rgba(21, 200, 150, 0.12);
  --accent-line: rgba(21, 200, 150, 0.38);

  /* Category accents — sampled from the app's color-coded section dashes */
  --cat-activity: #11ad81;   /* mint teal — — ACTIVITY */
  --cat-recovery: #f59e0b;   /* amber  — — RECOVERY */
  --cat-heart:    #ef4f6d;   /* coral red — — HEART */
  --cat-body:     #f59e0b;   /* amber — — BODY */
  --cat-activity-dim: rgba(17, 173, 129, 0.08);
  --cat-recovery-dim: rgba(245, 158, 11, 0.08);
  --cat-heart-dim:    rgba(239, 79, 109, 0.07);
  --cat-body-dim:     rgba(245, 158, 11, 0.06);

  --teal: oklch(0.7 0.12 200);
  --warn: oklch(0.68 0.16 60);
  --danger: oklch(0.62 0.2 25);

  /* Dark phone-mockup palette (apps stay in dark mode) */
  --app-bg: #0a0b0d;
  --app-bg-1: #101216;
  --app-surface: #14161a;
  --app-surface-2: #1b1e24;
  --app-surface-3: #22262e;
  --app-line: rgba(255, 255, 255, 0.07);
  --app-line-strong: rgba(255, 255, 255, 0.14);
  --app-text: #f3f4f6;
  --app-text-2: #a8acb5;
  --app-text-3: #6e727b;

  /* Type */
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 72px 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.accent { color: var(--accent-strong); }
.eyebrow.accent::before { background: var(--accent-strong); opacity: 1; }
.eyebrow.cat-activity { color: var(--cat-activity); }
.eyebrow.cat-activity::before { background: var(--cat-activity); opacity: 1; }
.eyebrow.cat-recovery { color: var(--cat-recovery); }
.eyebrow.cat-recovery::before { background: var(--cat-recovery); opacity: 1; }
.eyebrow.cat-heart    { color: var(--cat-heart); }
.eyebrow.cat-heart::before    { background: var(--cat-heart); opacity: 1; }
.eyebrow.cat-body     { color: var(--cat-body); }
.eyebrow.cat-body::before     { background: var(--cat-body); opacity: 1; }
.hero-tagline { display: flex; width: fit-content; }

/* Hero kicker — editorial statement above the social pill */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  width: fit-content;
  max-width: 100%;
}
.hero-kicker .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--accent-strong);
  font-size: 25px;
}
.kicker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-dim), 0 0 14px var(--accent);
  flex-shrink: 0;
  animation: kicker-pulse 2.4s ease-in-out infinite;
}
@keyframes kicker-pulse {
  0%, 100% { box-shadow: 0 0 0 5px var(--accent-dim), 0 0 14px var(--accent); }
  50% { box-shadow: 0 0 0 10px var(--accent-dim), 0 0 22px var(--accent); }
}

.h-display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}
.h-display .italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

.h-section {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}
.h-section .italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

.lede {
  color: var(--text-2);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 56ch;
}

.text-accent { color: var(--accent-strong); }
.text-mute { color: var(--text-2); }
.text-dim { color: var(--text-3); }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: background 160ms ease, transform 120ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}
.btn.primary:hover { transform: translateY(-1px); background: #2a2d35; }
.btn.ghost { background: transparent; }

/* App store buttons */
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  min-width: 184px;
  color: var(--text);
  transition: background 160ms ease, border-color 160ms ease, transform 120ms ease;
}
.store-btn:hover { background: var(--surface-2); border-color: var(--text-3); transform: translateY(-1px); }
.store-btn .store-mark { width: 24px; height: 28px; flex-shrink: 0; }
.store-btn .store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn .store-text .top { font-size: 10px; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.store-btn .store-text .bottom { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; margin-top: 3px; }
.store-btn.solid {
  background: var(--text);
  border-color: transparent;
  color: var(--bg);
}
.store-btn.solid .store-text .top { color: rgba(255,255,255,0.55); }

/* ---------- Waitlist form ---------- */
.waitlist-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: 100%;
  max-width: 460px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.waitlist-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.waitlist-form input[type="email"] {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
  min-width: 0;
}
.waitlist-form input[type="email"]::placeholder { color: var(--text-3); }
.waitlist-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 160ms ease, transform 120ms ease;
}
.waitlist-form button[type="submit"]:hover { background: #2a2d35; transform: translateY(-1px); }
.waitlist-form button[type="submit"]:active { transform: translateY(0); }

.waitlist-form.success {
  background: var(--accent-dim);
  border-color: var(--accent-line);
  justify-content: center;
  padding: 14px 22px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: -0.01em;
}
.waitlist-form.success::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  margin-right: 10px;
}

/* Platform-pick state — between email submit and final success */
.waitlist-form.picking {
  padding: 6px 6px 6px 18px;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.waitlist-form .pick-label {
  font-size: 14.5px;
  color: var(--text-2);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.waitlist-form .pick-options {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.waitlist-form .pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, transform 120ms ease;
  cursor: pointer;
}
.waitlist-form .pick-btn svg { width: 13px; height: 13px; }
.waitlist-form .pick-btn:hover {
  background: var(--surface-2);
  border-color: var(--line);
}
.waitlist-form .pick-btn.primary {
  background: var(--text);
  color: var(--bg);
}
.waitlist-form .pick-btn.primary:hover {
  background: #2a2d35;
  border-color: transparent;
  transform: translateY(-1px);
}

/* Cross-fade between form states */
.waitlist-form {
  transition: border-color 160ms ease, box-shadow 160ms ease, background 200ms ease, padding 200ms ease;
}
.waitlist-form .wl-state {
  display: contents;
  animation: wl-fade-in 240ms ease;
}
@keyframes wl-fade-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}

/* Narrow pricing cards — let picker wrap to a stacked layout when needed */
.price-card .waitlist-form.picking {
  flex-direction: column;
  align-items: stretch;
  padding: 12px;
  gap: 10px;
}
.price-card .waitlist-form.picking .pick-options { width: 100%; }
.price-card .waitlist-form.picking .pick-btn { flex: 1; justify-content: center; }
.price-card .waitlist-form .pick-label { text-align: center; }

@media (max-width: 520px) {
  .waitlist-form.picking {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }
  .waitlist-form.picking .pick-options { width: 100%; }
  .waitlist-form.picking .pick-btn { flex: 1; justify-content: center; }
  .waitlist-form .pick-label { text-align: center; }
}

/* Coming-soon row that replaces the meta line under hero */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.coming-soon .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-2);
  background: var(--surface);
}
.coming-soon .badge svg { width: 12px; height: 12px; }
.coming-soon .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); opacity: 0.5; }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.pill .pill-avatars {
  display: flex;
  margin-right: 2px;
}
.pill .pill-avatars span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -8px;
  background: linear-gradient(135deg, #2a2e36, #444a55);
}
.pill .pill-avatars span:first-child { margin-left: 0; }
.pill .pill-avatars span:nth-child(2) { background: linear-gradient(135deg, var(--accent), #5b8a18); }
.pill .pill-avatars span:nth-child(3) { background: linear-gradient(135deg, #3c4a5c, #6d8aa6); }
.pill .pill-avatars span:nth-child(4) { background: linear-gradient(135deg, #5e3b6e, #b07acc); }
.pill .star { color: var(--accent-strong); font-size: 14px; }
.pill strong { color: var(--text); font-weight: 500; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.tag.accent { background: var(--accent-dim); color: var(--accent); border-color: var(--accent-line); }
.tag.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(246, 245, 240, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.footer .brand-logo { height: 40px; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.04em;
}
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 100px; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  height: 700px;
  background: radial-gradient(closest-side, var(--accent-dim), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-copy > * { margin: 0; }
.hero h1 .line { display: block; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-3);
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: 320px;
  height: 660px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2d33, #0d0e11);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 0 12px rgba(255,255,255,0.015);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0c0d10;
  position: relative;
  /* Phone interiors stay in app dark-mode regardless of page theme */
  --bg: var(--app-bg);
  --bg-1: var(--app-bg-1);
  --surface: var(--app-surface);
  --surface-2: var(--app-surface-2);
  --surface-3: var(--app-surface-3);
  --line: var(--app-line);
  --line-strong: var(--app-line-strong);
  --text: var(--app-text);
  --text-2: var(--app-text-2);
  --text-3: var(--app-text-3);
  color: var(--app-text);
}
.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 10;
}
.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 8px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  position: relative;
  z-index: 5;
}
.phone-statusbar .icons { display: flex; gap: 5px; align-items: center; color: var(--text); opacity: 0.95;}
.phone-statusbar svg { width: 14px; height: 14px; }
.phone-glow {
  position: absolute;
  inset: -8% -10% auto -10%;
  height: 60%;
  background: radial-gradient(closest-side, var(--accent-dim), transparent 70%);
  pointer-events: none;
}

/* hero phone pose */
.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.hero-phone-wrap .phone {
  transform: rotate(-3deg);
}

/* Side phones (feature deep-dives) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-row .feature-phone { display: flex; justify-content: center; }
/* Subcaps list — usable in any section */
ul.subcaps {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 14px;
}
ul.subcaps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--text);
  letter-spacing: -0.01em;
}
ul.subcaps li:last-child { border-bottom: 1px solid var(--line); }
ul.subcaps .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-strong);
  padding-top: 4px;
  letter-spacing: 0.08em;
}

.feature-copy h2 { margin: 18px 0 22px; }

/* ---------- Testimonial strip ---------- */
.testimonial-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.005), transparent);
}
.testimonial-strip h3 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 36px;
  text-align: center;
  font-weight: 400;
}
.tstrip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.tstrip-quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tstrip-quote .q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
}
.tstrip-quote .who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
}
.tstrip-quote .who .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2e36, #444a55);
  flex-shrink: 0;
}
.tstrip-quote .who strong { color: var(--text); font-weight: 500; }

/* ---------- How it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.how-step {
  position: relative;
  padding: 32px 28px 36px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.how-step .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
}
.how-step h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 56px 0 12px;
  line-height: 1.1;
}
.how-step p { color: var(--text-2); font-size: 15px; line-height: 1.5; margin: 0; }
.how-step .step-visual {
  margin-top: auto;
  padding-top: 24px;
}

/* ---------- Feature grid ---------- */
.fgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.fgrid-cell {
  background: var(--surface);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  transition: background 160ms ease;
}
.fgrid-cell:hover { background: var(--surface-2); }
.fgrid-cell h4 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.fgrid-cell p { color: var(--text-2); font-size: 14.5px; line-height: 1.5; margin: 0; }
.fgrid-cell .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
}

/* ---------- Coach E / AI ---------- */
.coach-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.coach-cards { display: grid; gap: 20px; }
.coach-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.coach-card .q {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.coach-card .q::before {
  content: "Q";
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  flex-shrink: 0;
  margin-top: 3px;
}
.coach-card .a { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.coach-card .a::before {
  content: "E";
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent-strong);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  padding: 1px 5px;
  flex-shrink: 0;
  margin-top: 3px;
}
.coach-card .a .cite {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent-strong);
  background: var(--accent-dim);
  padding: 1px 5px;
  border-radius: 3px;
  margin: 0 2px;
}

/* ---------- Progress section ---------- */
.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.progress-viz {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.price-card.featured {
  background: linear-gradient(180deg, rgba(8, 234, 160, 0.06), transparent 40%), var(--surface);
  border-color: var(--accent-line);
  box-shadow: 0 24px 60px -30px rgba(8, 234, 160, 0.35);
}
.price-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
}
.price-card .plan { font-size: 14px; color: var(--text-2); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.price-card .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-card .price .amt {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-card .price .per { color: var(--text-3); font-size: 16px; }
.price-card .save { color: var(--accent-strong); font-size: 13px; font-family: var(--mono); letter-spacing: 0.04em; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text);
}
.price-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-card ul li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  background-image: radial-gradient(circle at center, var(--accent) 30%, transparent 35%);
  flex-shrink: 0;
}

/* ---------- Big quote cards ---------- */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.social-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.social-card .stars { color: var(--accent-strong); font-size: 14px; letter-spacing: 4px; }
.social-card .q {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
}
.social-card .meta { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.social-card .meta .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2e36, #444a55);
}
.social-card .meta .who { display: flex; flex-direction: column; gap: 2px; }
.social-card .meta strong { font-weight: 500; }
.social-card .meta span { color: var(--text-3); font-size: 13px; }

/* ---------- Reward note (launch-day code messaging under CTAs) ---------- */
.reward-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-2);
  letter-spacing: -0.005em;
  position: relative;
}
.reward-note svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.reward-note strong {
  color: var(--text-1);
  font-weight: 500;
}
.hero-reward {
  align-self: flex-start;
}
.final-cta .reward-note {
  margin: 18px auto 0;
  position: relative;
}
@media (max-width: 560px) {
  .reward-note { font-size: 12.5px; }
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 140px 0;
  position: relative;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 20% 20% auto 20%;
  height: 60%;
  background: radial-gradient(closest-side, var(--accent-dim), transparent 70%);
  pointer-events: none;
}
.final-cta .h-section { max-width: 18ch; margin: 24px auto 22px; position: relative; }
.final-cta .lede { margin: 0 auto 36px; position: relative; }
.final-cta .store-buttons { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 48px;
  color: var(--text-3);
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-top h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 400;
  margin: 0 0 18px;
}
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-top ul a { color: var(--text-2); }
.footer-top ul a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ========================================================================
   PHONE UI — In-app screen styles
   ======================================================================== */
.app { font-size: 13px; color: var(--text); height: 100%; display: flex; flex-direction: column; }
.app .scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 18px 20px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  /* hide scrollbar but keep it scrollable */
  scrollbar-width: none;
}
.app .scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.app .app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 4px;
}
.app .app-header .greeting { font-size: 11px; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.05em; }
.app .app-header .name { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; }
.app .app-header .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b4150, #1f232b);
  border: 1px solid var(--line);
}

.app-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 14px;
}
.app-card + .app-card { margin-top: 10px; }

.app-row { display: flex; align-items: center; justify-content: space-between; }
.app .label-mono {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.app .accent-strip {
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
}

/* Home dashboard */
.home-workout {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.home-workout::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  pointer-events: none;
}
.home-workout .title { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; margin: 10px 0 4px; }
.home-workout .subtitle { font-size: 11.5px; color: var(--text-2); margin-bottom: 14px; }
.home-workout .stats { display: flex; gap: 14px; }
.home-workout .stat .v { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.home-workout .stat .l { font-size: 10px; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

.stack-list { display: grid; gap: 8px; margin-top: 8px; }
.stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stack-row .left { display: flex; align-items: center; gap: 10px; }
.stack-row .dot-v {
  width: 6px; height: 24px; border-radius: 3px; background: var(--accent);
}
.stack-row .dot-v.dim { background: var(--teal); opacity: 0.7; }
.stack-row .dot-v.warn { background: var(--warn); }
.stack-row .name { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.stack-row .meta { font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }
.stack-row .due { font-size: 10px; color: var(--accent); font-family: var(--mono); letter-spacing: 0.06em; }

/* Tab bar */
.tabbar {
  display: flex;
  justify-content: space-around;
  padding: 12px 14px 18px;
  background: rgba(10,11,13,0.8);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-3); font-size: 9.5px; font-family: var(--mono); letter-spacing: 0.05em; }
.tabbar .tab.active { color: var(--accent); }
.tabbar .tab svg { width: 18px; height: 18px; }

/* Workout (feature 1) */
.workout-set-list { display: grid; gap: 8px; }
.set-row {
  display: grid;
  grid-template-columns: 22px 1fr 60px 56px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
}
.set-row.active { background: var(--accent-dim); border-color: var(--accent-line); }
.set-row .num { font-family: var(--mono); color: var(--text-3); font-size: 11px; }
.set-row.active .num { color: var(--accent); }
.set-row .weight { font-weight: 500; }
.set-row .reps { color: var(--text-2); text-align: right; }
.set-row .rpe {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-2);
}
.set-row.active .rpe { background: var(--accent); color: var(--accent-ink); }

.ring-wrap { display: flex; align-items: center; gap: 14px; }
.ring {
  --p: 72;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ring::after {
  content: "";
  width: 44px;
  height: 44px;
  background: var(--surface);
  border-radius: 50%;
  grid-area: 1/1;
}
.ring .val {
  grid-area: 1/1;
  z-index: 1;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--mono);
}

.adaptive-card {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 14px;
  padding: 12px 14px;
}
.adaptive-card .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.adaptive-card .t { font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; margin-top: 4px; }

/* Dose / syringe screen */
.syringe {
  height: 120px;
  position: relative;
  margin: 8px 0 14px;
}
.syringe .barrel {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 60px;
  height: 36px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
}
.syringe .fluid {
  position: absolute;
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: 42%;
  background: linear-gradient(180deg, var(--accent), oklch(0.75 0.2 135));
  border-radius: 2px;
}
.syringe .ticks {
  position: absolute;
  top: -6px;
  left: 20px;
  right: 60px;
  height: 10px;
  display: flex;
  justify-content: space-between;
}
.syringe .ticks span {
  width: 1px;
  height: 8px;
  background: var(--text-3);
}
.syringe .ticks span:nth-child(odd) { height: 12px; }
.syringe .marker {
  position: absolute;
  top: -28px;
  left: calc(20px + 42% - 12px);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.syringe .marker::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.syringe .needle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong), var(--text-3) 70%, var(--text-2));
  border-radius: 0 1px 1px 0;
}
.syringe .plunger {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 50px;
  transform: translateY(-50%);
  background: var(--surface-3);
  border: 1.5px solid var(--line-strong);
  border-radius: 4px 2px 2px 4px;
}

.dose-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.dose-stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
}
.dose-stat .l { font-family: var(--mono); font-size: 9px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; }
.dose-stat .v { font-size: 14px; font-weight: 500; letter-spacing: -0.02em; margin-top: 3px; }

.due-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.due-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-ink);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Bloodwork chart */
.chart-card { padding: 18px; }
.chart {
  height: 130px;
  position: relative;
  margin: 12px 0 10px;
}
.chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% 25%;
  opacity: 0.6;
}
.chart svg { width: 100%; height: 100%; }
.chart .overlay-band {
  position: absolute;
  top: 0;
  bottom: 14px;
  background: var(--accent-dim);
  border-left: 1px dashed var(--accent-line);
  border-right: 1px dashed var(--accent-line);
}
.chart-legend {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend span::before { content: ""; width: 8px; height: 2px; background: var(--accent); }
.chart-legend .b::before { background: var(--teal); }

/* Coach E chat screen */
.chat-msg {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}
.chat-msg.user { justify-content: flex-end; }
.chat-msg .bubble {
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.chat-msg.user .bubble { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chat-msg .bubble .cite {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 5px;
  border-radius: 3px;
  margin: 0 1px;
}

/* Progress visualization (web side, not in phone) */
.viz-chart {
  position: relative;
  height: 240px;
  margin-bottom: 24px;
}
.viz-ring {
  --p: 78;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0);
  display: grid;
  place-items: center;
}
.viz-ring::after {
  content: "";
  width: 96px;
  height: 96px;
  background: var(--surface);
  border-radius: 50%;
  grid-area: 1/1;
}
.viz-ring .val {
  grid-area: 1/1;
  z-index: 1;
  text-align: center;
}
.viz-ring .val .n { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; display: block; }
.viz-ring .val .l { font-family: var(--mono); font-size: 9.5px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; }

.streak-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.streak-card .big {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent-strong);
  font-family: var(--sans);
}
.streak-card .sm { display: flex; flex-direction: column; gap: 4px; }
.streak-card .sm .t { font-size: 13px; font-weight: 500; }
.streak-card .sm .s { font-size: 11px; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Marquee accent line ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
  width: max-content;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 16px; }
.marquee-track span::before { content: "✦"; color: var(--accent-strong); }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-copy { order: 0; }
  .how-grid { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .coach-grid { grid-template-columns: 1fr; gap: 48px; }
  .progress-grid { grid-template-columns: 1fr; gap: 48px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .tstrip-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}


/* ======================================================================
   CONNECTED — the thesis section
   ====================================================================== */
.connected {
  padding: 140px 0 120px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.connected::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 70%;
  background: radial-gradient(closest-side, var(--accent-dim), transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}
.connected .wrap { position: relative; z-index: 1; }
.connected-intro {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
  align-items: center;
}
.connected-intro .h-section { max-width: 22ch; }
.connected-intro .lede { text-align: center; max-width: 70ch; }

/* Signals strip */
.signals-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  margin: 28px 0 0;
  max-width: 920px;
}
.signals-strip .signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.signals-strip .signal .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.signals-strip .arrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  margin: 0 4px;
}
.signals-strip .signal.out {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.signals-strip .signal.out .d { background: var(--accent-ink); box-shadow: none; }

/* Scenarios grid */
.scenarios {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.scenario {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.scenario:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -40px rgba(0,0,0,0.18);
}
.scenario .scn-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-3);
}
.scenario .scn-trigger,
.scenario .scn-response {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scenario .label-when,
.scenario .label-then {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.scenario .label-when { color: var(--warn); }
.scenario .label-when::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--warn) 22%, transparent);
}
.scenario .label-then { color: var(--accent-strong); }
.scenario .label-then::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.scenario .scn-signal {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--text);
}
.scenario .scn-viz {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.scenario .scn-arrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-transform: uppercase;
}
.scenario .scn-arrow::before,
.scenario .scn-arrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.scenario .scn-response h3 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0;
}
.scenario .scn-response h3 .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-strong);
}
.scenario .scn-response p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
.scenario .scn-prompt {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-1);
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}
.scenario .scn-tone {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
}
.scenario .scn-tone .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
}
.scenario .scn-tone.coach .dot { background: var(--accent); }
.scenario .scn-tone.clinical .dot { background: var(--teal); }

/* Mini viz components inside scenario cards */
.viz-bars { display: flex; align-items: flex-end; gap: 5px; height: 32px; }
.viz-bars .bar {
  flex: 1;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.85;
  min-height: 4px;
}
.viz-bars .bar.dim { background: var(--surface-3); opacity: 1; }
.viz-bars .bar.warn { background: var(--warn); }

.viz-timeline {
  display: flex;
  gap: 3px;
  height: 18px;
}
.viz-timeline span {
  flex: 1;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.85;
}
.viz-timeline span.miss { background: transparent; border: 1px dashed var(--warn); opacity: 1; }
.viz-timeline span.future { background: var(--surface-3); opacity: 1; }

.viz-spark { width: 100%; height: 38px; display: block; }

.viz-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.viz-fork .opt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text-2);
  text-transform: uppercase;
  text-align: center;
}
.viz-fork .opt.a { background: var(--accent-dim); color: var(--accent-strong); border-color: var(--accent-line); }
.viz-fork .opt.b { background: var(--surface-2); color: var(--text-2); }

.viz-streak {
  display: flex;
  gap: 3px;
}
.viz-streak span {
  flex: 1;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}
.viz-streak span.miss { background: var(--surface-3); opacity: 1; }
.viz-streak span.now {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.viz-swap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.viz-swap .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
}
.viz-swap .row .from { color: var(--text-3); text-decoration: line-through; }
.viz-swap .row .to { color: var(--accent-strong); font-weight: 600; }
.viz-swap .row .arr { color: var(--text-3); flex-shrink: 0; }

.viz-bilab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.viz-bilab .lab {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.viz-bilab .lab .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--text-3); text-transform: uppercase; }
.viz-bilab .lab .v { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; color: var(--warn); display: flex; align-items: center; gap: 5px; }
.viz-bilab .lab .v::after { content: "↑"; font-size: 12px; }

/* viz-peak — race-week countdown + IGF-1 curve */
.viz-peak {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  align-items: end;
  height: 56px;
}
.viz-peak .peak-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
}
.viz-peak .peak-cell .d {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
  order: 2;
  margin-top: 4px;
}
.viz-peak .peak-cell .b {
  width: 100%;
  background: var(--surface-3);
  border-radius: 3px;
  order: 1;
  min-height: 6px;
}
.viz-peak .peak-cell.shot .b { background: var(--accent); }
.viz-peak .peak-cell.shot .tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  white-space: nowrap;
}
.viz-peak .peak-cell.race .b { background: var(--text); }
.viz-peak .peak-cell.race .d { color: var(--text); font-weight: 600; }
.viz-peak-curve { width: 100%; height: 22px; display: block; margin-top: 4px; opacity: 0.85; }

/* viz-bridge — cycle → bridge → recovery → lab retest */
.viz-bridge {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.3fr 1.1fr 1fr;
  gap: 4px;
}
.viz-bridge .seg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 9px;
  border-radius: 5px;
  background: var(--surface-3);
  min-width: 0;
}
.viz-bridge .seg .lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  line-height: 1.1;
}
.viz-bridge .seg .wk {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.viz-bridge .seg.cycle { background: color-mix(in oklch, var(--warn) 18%, var(--surface-2)); }
.viz-bridge .seg.cycle .lbl { color: var(--warn); }
.viz-bridge .seg.taper { background: color-mix(in oklch, var(--warn) 9%, var(--surface-2)); }
.viz-bridge .seg.bridge { background: var(--accent-dim); }
.viz-bridge .seg.bridge .lbl { color: var(--accent-strong); }
.viz-bridge .seg.recover { background: color-mix(in oklch, var(--accent) 7%, var(--surface-2)); }
.viz-bridge .seg.lab { background: var(--text); }
.viz-bridge .seg.lab .lbl { color: var(--bg); }
.viz-bridge .seg.lab .wk { color: rgba(255,255,255,0.55); }
.viz-bridge-axis {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.viz-bridge-axis span { white-space: nowrap; }

/* viz-doseadj — borrowed protocol re-baselined */
.viz-doseadj {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.viz-doseadj .dose {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}
.viz-doseadj .dose .row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.viz-doseadj .dose .who {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viz-doseadj .dose .amt {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.viz-doseadj .dose .amt em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-left: 2px;
}
.viz-doseadj .dose.orig .amt { color: var(--text-2); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: color-mix(in oklch, var(--text-2) 60%, transparent); }
.viz-doseadj .dose.you { border-color: var(--accent-line); background: color-mix(in oklch, var(--accent) 6%, var(--surface)); }
.viz-doseadj .dose.you .who { color: var(--accent-strong); }
.viz-doseadj .dose.you .amt { color: var(--accent-strong); }
.viz-doseadj .dose .tagx,
.viz-doseadj .dose .ok {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-3);
}
.viz-doseadj .dose .ok { background: var(--accent-dim); color: var(--accent-strong); }
.viz-doseadj .adj-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 2px;
}
.viz-doseadj .adj-mid .arr {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text-3);
  line-height: 1;
}
.viz-doseadj .adj-mid .tx {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.viz-doseadj .adj-mid .ctx {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
}
@media (max-width: 440px) {
  .viz-doseadj { grid-template-columns: 1fr; }
  .viz-doseadj .adj-mid { flex-direction: row; gap: 8px; }
}

/* Closing thesis line */
.connected-thesis {
  margin-top: 72px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
}
.connected-thesis em { color: var(--accent-strong); font-style: italic; }

/* ======================================================================
   NUTRITION FEATURE — phone mock helpers
   ====================================================================== */
.nut-totals {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 16px;
}
.nut-totals .kcal { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.nut-totals .kcal small { color: var(--text-3); font-family: var(--mono); font-size: 11px; font-weight: 400; }
.nut-totals .tag-cut {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  text-transform: uppercase;
}
.nut-input-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.nut-input-row .pill-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-2);
  text-transform: uppercase;
}
.nut-input-row .pill-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.nut-input-row .pill-btn svg { width: 18px; height: 18px; }
.nut-meal {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.nut-meal .thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  background:
    repeating-linear-gradient(45deg, var(--surface-3) 0 5px, var(--surface) 5px 10px);
  border: 1px solid var(--line);
}
.nut-meal .nm-info { flex: 1; min-width: 0; }
.nut-meal .nm-name { font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em; }
.nut-meal .nm-meta { font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-top: 2px; letter-spacing: 0.04em; }
.nut-meal .nm-kcal { font-family: var(--mono); font-size: 11px; color: var(--text); }
.nut-meal .nm-flag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  background: color-mix(in oklch, var(--warn) 16%, transparent);
  color: var(--warn);
  border: 1px solid color-mix(in oklch, var(--warn) 40%, transparent);
  border-radius: 4px;
  padding: 2px 5px;
  text-transform: uppercase;
}

/* ======================================================================
   Responsive overrides for new sections
   ====================================================================== */
@media (max-width: 980px) {
  .scenarios { grid-template-columns: 1fr; }
  .connected { padding: 80px 0; }
  .signals-strip { margin-top: 16px; }
}
@media (min-width: 981px) and (max-width: 1240px) {
  .scenarios { grid-template-columns: repeat(2, 1fr); }
}


/* ======================================================================
   Scenarios — chip nav, arrows, carousel layout
   ====================================================================== */
.scenarios-nav {
  margin-top: 56px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.scn-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.scn-chip {
  appearance: none;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.scn-chip:hover { background: var(--surface-2); color: var(--text); }
.scn-chip.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.scn-arrows {
  display: flex;
  gap: 8px;
}
.scn-arrow-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.scn-arrow-btn svg { width: 14px; height: 14px; }
.scn-arrow-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.scn-arrow-btn:disabled { opacity: 0.28; cursor: not-allowed; }

/* Carousel layout */
.scenarios.is-carousel {
  margin-top: 0;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* allow shadows + hover lift to escape the track */
  padding: 18px 4px 28px;
  margin-left: -4px;
  margin-right: -4px;
  /* fade the edges so cards don't bump the gutter */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.scenarios.is-carousel::-webkit-scrollbar { display: none; }
.scenarios.is-carousel .scenario {
  flex: 0 0 360px;
  min-width: 0;
  scroll-snap-align: center;
  scroll-margin-inline: 24px;
  /* subtle dim on inactive cards so the focused one pops */
  opacity: 0.55;
  transition: opacity 240ms ease, transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.scenarios.is-carousel .scenario.is-current {
  opacity: 1;
  border-color: var(--line-strong);
}
.scenarios.is-carousel .scenario:hover { opacity: 1; }

/* Grid layout (legacy/tweak option) */
.scenarios.is-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 0;
}

@media (max-width: 980px) {
  .scenarios.is-carousel .scenario { flex-basis: 86%; }
  .scenarios.is-grid { grid-template-columns: 1fr; }
  .scenarios-nav { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 981px) and (max-width: 1240px) {
  .scenarios.is-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ======================================================================
   Realistic avatar images (pravatar.cc mock portraits)
   ====================================================================== */
.avatar { overflow: hidden; }
.avatar img,
.pill .pill-avatars span img,
.pill-avatars span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.pill .pill-avatars span,
.pill-avatars span { overflow: hidden; }


/* ======================================================================
   Wordmark — typeset "epti." with mint dot (matches in-app brand)
   ====================================================================== */
.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 0.14em;
}
.wordmark .dot {
  width: 0.3em;
  height: 0.3em;
  border-radius: 50%;
  background: var(--accent);
  align-self: baseline;
  transform: translateY(0.06em);
  box-shadow: 0 0 0 0 var(--accent);
  animation: wordmark-pulse 2.4s ease-out infinite;
}
@keyframes wordmark-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(21, 200, 150, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(21, 200, 150, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 200, 150, 0); }
}
.nav .wordmark { font-size: 38px; }
.footer .wordmark { font-size: 32px; color: var(--text); }

/* ======================================================================
   Real-screen phone frame — wraps an actual app screenshot in a clean
   iOS-style bezel with a Dynamic Island. Used for community + apple
   health screenshots.
   ====================================================================== */
.phone-real {
  position: relative;
  width: 340px;
  aspect-ratio: 1206 / 2620;
  background: #0e1016;
  border-radius: 46px;
  padding: 7px;
  box-shadow:
    0 30px 60px -20px rgba(14, 16, 22, 0.35),
    0 12px 24px -12px rgba(14, 16, 22, 0.25),
    0 0 0 1px rgba(14, 16, 22, 0.08),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone-real .phone-real-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 39px;
  overflow: hidden;
  background: #f1efea;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}

/* Fake iOS status bar inside the screen */
.pr-statusbar {
  position: relative;
  flex: 0 0 7.4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7.5%;
  color: #0e1016;
  font-family: var(--sans);
  z-index: 2;
}
.pr-statusbar .pr-time {
  font-size: 4.2cqw;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.pr-statusbar .pr-island {
  position: absolute;
  left: 50%;
  top: 26%;
  transform: translateX(-50%);
  width: 28%;
  height: 50%;
  background: #0e1016;
  border-radius: 999px;
}
.pr-statusbar .pr-icons {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  color: #0e1016;
}
.pr-statusbar .pr-icons svg {
  display: block;
  fill: currentColor;
  stroke: currentColor;
}
.pr-statusbar .pr-icons .ico-signal  { width: 4.4cqw; height: auto; }
.pr-statusbar .pr-icons .ico-wifi    { width: 4.2cqw; height: auto; }
.pr-statusbar .pr-icons .ico-battery { width: 7.3cqw; height: auto; }

.phone-real .phone-real-screen img {
  display: block;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
}
/* Sizing variants */
.phone-real.lg { width: 380px; }
.phone-real.xl { width: 420px; }

/* Subtle gloss highlight for realism */
.phone-real::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 39px;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0) 22%,
    rgba(255, 255, 255, 0) 78%,
    rgba(255, 255, 255, 0.06) 100%
  );
  mix-blend-mode: overlay;
  z-index: 4;
}

/* ======================================================================
   Community showcase — feed screenshot side-by-side with stacked quotes
   ====================================================================== */
.community-showcase {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}
.community-phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.community-phone-wrap .phone-real {
  transform: rotate(-2.5deg);
}
.community-phone-wrap::before {
  /* soft glow behind phone */
  content: "";
  position: absolute;
  inset: -10% -8% -10% -8%;
  background: radial-gradient(60% 50% at 50% 50%, var(--accent-dim), transparent 70%);
  z-index: 0;
}
.community-phone-wrap .phone-real { position: relative; z-index: 1; }

.community-quotes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.community-quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.community-quote .qhead {
  display: flex;
  align-items: center;
  gap: 12px;
}
.community-quote .qhead .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.community-quote .qhead .who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.community-quote .qhead .who strong { font-weight: 500; font-size: 14.5px; }
.community-quote .qhead .who span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.community-quote .qtext {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.005em;
}
.community-quote .qtag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ======================================================================
   Apple Health showcase — screenshot + biomarker callout pills
   ====================================================================== */
.apple-health-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 32px;
}
.apple-health-phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.apple-health-phone-wrap .phone-real {
  transform: rotate(2.5deg);
}
.apple-health-phone-wrap::before {
  content: "";
  position: absolute;
  inset: -10% -8% -10% -8%;
  background: radial-gradient(55% 50% at 50% 50%, rgba(245, 158, 11, 0.08), transparent 70%);
  z-index: 0;
}
.apple-health-phone-wrap .phone-real { position: relative; z-index: 1; }

.biomarker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
}
.biomarker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.biomarker .bm-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.biomarker .bm-label::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: currentColor;
  opacity: 0.8;
}
.biomarker.cat-activity .bm-label { color: var(--cat-activity); }
.biomarker.cat-recovery .bm-label { color: var(--cat-recovery); }
.biomarker.cat-heart    .bm-label { color: var(--cat-heart); }
.biomarker.cat-body     .bm-label { color: var(--cat-body); }
.biomarker .bm-value {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
.biomarker .bm-value .unit {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 3px;
}
.biomarker .bm-note {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.4;
  margin-top: 2px;
}

@media (max-width: 920px) {
  .community-showcase,
  .apple-health-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .community-phone-wrap .phone-real,
  .apple-health-phone-wrap .phone-real { transform: none; }
}
@media (max-width: 520px) {
  .biomarker-grid { grid-template-columns: 1fr; }
  .phone-real { width: 280px; }
}


/* ======================================================================
   Compound Library showcase — Discover-screen integration
   ====================================================================== */
.library-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 40px;
}
.library-phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.library-phone-wrap .phone-real {
  transform: rotate(-2deg);
}
.library-phone-wrap::before {
  content: "";
  position: absolute;
  inset: -10% -8% -10% -8%;
  background: radial-gradient(60% 50% at 50% 50%,
    rgba(21, 200, 150, 0.10),
    rgba(167, 139, 250, 0.10) 60%,
    transparent 75%);
  z-index: 0;
}
.library-phone-wrap .phone-real { position: relative; z-index: 1; }

/* Trending compound row — mimics the in-app N°01 / N°02 / N°03 cards */
.trending-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 32px;
}
.trending-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.trending-card::before {
  /* Tinted top band like the in-app cards */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 38%;
  background: linear-gradient(180deg, var(--tc, var(--accent-dim)) 0%, transparent 100%);
  opacity: 0.85;
  z-index: -1;
}
.trending-card .tc-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--tc-strong, var(--accent-strong));
}
.trending-card .tc-cat {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tc-strong, var(--accent-strong));
  margin-top: 22px;
}
.trending-card .tc-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.15;
}
.trending-card .tc-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}
.trending-card .tc-users {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}
.trending-card .tc-trend {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tc-strong, var(--accent-strong));
}
.trending-card.weight-loss   { --tc: rgba(21, 200, 150, 0.18);  --tc-strong: var(--cat-activity); }
.trending-card.muscle-growth { --tc: rgba(21, 200, 150, 0.18);  --tc-strong: var(--cat-activity); }
.trending-card.healing       { --tc: rgba(99, 168, 245, 0.18); --tc-strong: #3a82d5; }

/* Editorial guide card — mirrors the in-app gradient hero card.
   Used as a visual punctuation, optional. */
.guide-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 26px 28px 24px;
  color: #fff;
  background:
    radial-gradient(120% 130% at 0% 0%, #14c8b0 0%, #2c84d6 40%, #6b53b0 75%, #2a2240 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  justify-content: flex-end;
}
.guide-card .gc-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
}
.guide-card .gc-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}
.guide-card .gc-sub {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40ch;
}
.guide-card .gc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  margin-top: 6px;
}
.guide-card .gc-cta::after {
  content: "→";
  font-size: 14px;
}

@media (max-width: 920px) {
  .library-showcase { grid-template-columns: 1fr; gap: 40px; }
  .library-phone-wrap .phone-real { transform: none; }
  .trending-row { grid-template-columns: 1fr; }
}
