:root {
  --bg: #0a0f14;
  --bg-2: #101820;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-solid: #131a2170;
  --border: rgba(255, 255, 255, 0.09);
  --text: #c3ccd4;
  --text-h: #ffffff;
  --muted: #87939c;

  /* Ocean palette — matches the app's 2026-07-16 retheme (cyan accent, cleaner) */
  --p1: #22d3ee; /* cyan */
  --p2: #0e7490; /* deep cyan */
  --p3: #67e8f9; /* light cyan */
  --p4: #0891b2; /* cyan-600 */

  --c-cal: #22d3ee;
  --c-pro: #a855f7;
  --c-carb: #34d399;
  --c-fat: #fbbf24;

  --grad: linear-gradient(120deg, var(--p4), var(--p1) 55%, var(--p3));
  --radius: 20px;

  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Safety net: never allow the page to pan sideways on mobile, even if a
     stray element edge overruns. `clip` (not `hidden`) avoids creating a
     scroll container, so the sticky nav and in-table scrolling still work. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.blob-1 {
  width: 480px;
  height: 480px;
  background: var(--p2);
  top: -140px;
  left: -120px;
}
.blob-2 {
  width: 420px;
  height: 420px;
  background: var(--p3);
  top: 380px;
  right: -160px;
}
.blob-3 {
  width: 500px;
  height: 500px;
  background: var(--p4);
  bottom: -220px;
  left: 30%;
  opacity: 0.35;
}

/* Layout */
section,
.nav {
  position: relative;
  z-index: 1;
}
.hero,
.features,
.how,
.pricing,
.cta,
.band,
.showcase,
.personalize,
.compare {
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px 24px;
}
/* Showcase & personalize previously had no side padding, so their headings
   ran flush to the screen edge on mobile and stretched full-width on desktop. */
.showcase {
  padding-top: 40px;
}
.personalize {
  padding-bottom: 20px;
}

h1,
h2,
h3 {
  color: var(--text-h);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.5);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text-h);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}
.btn-lg {
  padding: 16px 34px;
  font-size: 17px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--text-h);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark {
  margin-right: 2px;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--text-h);
}
.nav .btn-primary {
  margin-left: 0;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-h);
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
}
.pill {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-h);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
}
.lede {
  font-size: 19px;
  color: var(--text);
  max-width: 520px;
  margin: 22px 0 30px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 44px;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-size: 30px;
  color: var(--text-h);
  font-weight: 800;
}
.hero-stats span {
  font-size: 13px;
  color: var(--muted);
}

/* Phone mockup */
.hero-mockup {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 300px;
  height: 610px;
  background: linear-gradient(160deg, #14212b, #0b1218);
  border: 1px solid var(--border);
  border-radius: 44px;
  padding: 16px;
  box-shadow: 0 40px 80px rgba(8, 145, 178, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #0b0a12;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  background: #0f0d1a;
  border-radius: 30px;
  padding: 34px 16px 16px;
  overflow: hidden;
}
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.screen-logo {
  font-weight: 800;
  color: #fff;
  font-size: 15px;
}
.screen-day {
  font-size: 12px;
  color: var(--p1);
  background: rgba(34, 211, 238, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
}
.rings {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.ring-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 6px;
  text-align: center;
}
.ring {
  width: 84px;
  height: 84px;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}
.ring-fg {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.65));
}
.ring-pct {
  transform: rotate(90deg);
  transform-origin: 60px 60px;
  fill: #fff;
  font-size: 24px;
  font-weight: 800;
  text-anchor: middle;
}
.ring-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.mock-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--p1);
  background: rgba(34, 211, 238, 0.15);
  padding: 3px 9px;
  border-radius: 999px;
}
.mock-cal {
  font-size: 12px;
  color: var(--muted);
}
.mock-cal strong {
  color: #fff;
  font-size: 17px;
}
.mock-foods {
  margin: 8px 0 10px;
  font-size: 12px;
  color: var(--text);
}
.macro {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.macro span {
  display: block;
  height: 100%;
}
.mock-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  background: rgba(34, 197, 94, 0.13);
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 12px;
  padding: 10px 12px;
}

/* ===== Hero demo: a looping "app in action" movie ===== */
.demo {
  position: relative;
  height: calc(100% - 42px); /* screen minus header */
}
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.scene.on {
  opacity: 1;
}
.scene-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 2px;
}
.demo-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* Elements that fade-up into place at --d seconds after the scene starts. */
.fu {
  opacity: 0;
}
.scene.on .fu {
  animation: demoFadeUp 0.5s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes demoFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Scene 1 — typing search + macro bar filling */
.demo-search {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 13px;
  color: #fff;
}
.scene .type {
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
}
.scene.on .type {
  animation: demoType 1.3s steps(24, end) 0.3s forwards;
}
@keyframes demoType {
  from { max-width: 0; }
  to { max-width: 100%; }
}
.caret {
  width: 2px;
  height: 15px;
  background: var(--p1);
  margin-left: 2px;
  animation: demoCaret 0.8s steps(1) infinite;
}
@keyframes demoCaret {
  50% { opacity: 0; }
}
.demo-suggest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 14px;
  padding: 11px 12px;
}
.demo-suggest strong {
  display: block;
  color: #fff;
  font-size: 13px;
}
.ds-meta {
  font-size: 11px;
  color: var(--muted);
}
.ds-btn {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  padding: 6px 14px;
  border-radius: 999px;
}
.scene.on .ds-btn {
  animation: demoPress 0.35s ease 2.5s;
}
@keyframes demoPress {
  50% { transform: scale(0.88); }
}
.mfill {
  display: block;
  height: 100%;
  width: 0;
}
.scene.on .mfill {
  animation: demoGrow 0.7s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes demoGrow {
  to { width: var(--w); }
}

/* Scene 2 — sets checking off, finish pulse, confetti */
.demo-chk {
  color: transparent;
}
.scene.on .demo-chk {
  animation: demoChk 0.3s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes demoChk {
  from { transform: scale(0.5); }
  to {
    transform: scale(1);
    background: var(--p1);
    border-color: var(--p1);
    color: #fff;
  }
}
.scene.on .demo-finish {
  animation: demoPress 0.4s ease var(--d, 3.8s);
}
.confetti {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: 0;
  height: 0;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  width: 7px;
  height: 10px;
  border-radius: 2px;
  opacity: 0;
}
.scene.on .confetti i {
  animation: demoConf 1s ease-out 4s forwards;
}
@keyframes demoConf {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; }
}

/* Scene 3 — cardio picker, estimate, budget toggle */
.demo-chips {
  display: flex;
  gap: 6px;
}
.dchip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}
.dchip.on {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}
.dchip.ghost {
  border-style: dashed;
}
/* Mirrors the logger's goal-aware "🎯 Target 8–12 reps" line. */
.demo-target {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--p1);
}
.demo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dfield {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dlabel {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dfield strong {
  color: #fff;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.demo-burn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 14px;
  padding: 11px 12px;
  font-size: 13px;
  color: #fff;
}
.demo-burn strong {
  font-variant-numeric: tabular-nums;
}
.demo-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--text);
}
.tgl {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  flex: 0 0 auto;
  transition: background 0.25s ease;
}
.tgl i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}
.scene.on .tgl i {
  animation: demoKnob 0.3s ease 3.5s forwards;
}
.scene.on .tgl {
  animation: demoTglBg 0.3s ease 3.5s forwards;
}
@keyframes demoKnob {
  to { left: 16px; }
}
@keyframes demoTglBg {
  to { background: var(--p1); }
}

/* Scene 4 — rings filling toward the goal */
.ring-anim {
  stroke-dashoffset: 314;
}
.scene.on .ring-anim {
  animation: demoRing 1.5s cubic-bezier(0.22, 0.8, 0.3, 1) 0.4s forwards;
}
@keyframes demoRing {
  to { stroke-dashoffset: var(--off); }
}
.demo-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--p1);
  text-align: center;
}
.demo-streak {
  text-align: center;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}
.demo-streak strong {
  color: #fff;
}

/* Progress dots */
.demo-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.3s ease, transform 0.3s ease;
}
.demo-dot.on {
  background: var(--p1);
  transform: scale(1.25);
}

/* Reduced motion: freeze on the payoff frame. */
@media (prefers-reduced-motion: reduce) {
  .scene,
  .scene.on .fu,
  .scene.on .type,
  .scene.on .mfill,
  .scene.on .demo-chk,
  .scene.on .ring-anim,
  .scene.on .tgl i,
  .scene.on .tgl,
  .scene.on .confetti i {
    animation: none !important;
    transition: none !important;
  }
  .scene.on .fu { opacity: 1; }
  .scene.on .type { max-width: 100%; }
  .scene.on .ring-anim { stroke-dashoffset: var(--off); }
}

/* Mini pill tab bar (mirrors the app nav) */
.mock-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow: hidden;
}
.mtab {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}
.mtab.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}
/* The narrower showcase phones need slightly tighter pills so the third tab
   never clips against the screen edge. */
.phone.small .mock-tabs {
  gap: 4px;
}
.phone.small .mtab {
  font-size: 10px;
  padding: 5px 7px;
}

.ring-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}
.ring-sub {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.mock-legend {
  display: flex;
  gap: 10px;
  margin-top: 7px;
}
.mock-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
}
.mock-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  display: inline-block;
}
.mock-timer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

/* Band */
.band {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  padding: 26px 24px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Section heads */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.eyebrow {
  color: var(--p1);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  margin: 12px 0;
}
.section-head p {
  color: var(--text);
  font-size: 17px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 20px 50px rgba(8, 145, 178, 0.2);
}
/* Visual panel at the top of each card — a purpose-built mini-illustration
   instead of a flat emoji tile. */
.feature-viz {
  height: 132px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}
.feature-viz svg {
  width: 74%;
  max-width: 190px;
  height: auto;
}
.viz-a { background: radial-gradient(120% 110% at 50% 0%, rgba(14, 116, 144, 0.22), transparent 68%); }
.viz-b { background: radial-gradient(120% 110% at 50% 0%, rgba(34, 211, 238, 0.22), transparent 68%); }
.viz-c { background: radial-gradient(120% 110% at 50% 0%, rgba(8, 145, 178, 0.22), transparent 68%); }
.viz-d { background: radial-gradient(120% 110% at 50% 0%, rgba(8, 145, 178, 0.22), transparent 68%); }
.viz-e { background: radial-gradient(120% 110% at 50% 0%, rgba(14, 116, 144, 0.22), transparent 68%); }
.viz-f { background: radial-gradient(120% 110% at 50% 0%, rgba(8, 145, 178, 0.22), transparent 68%); }
.feature-body {
  padding: 20px 24px 26px;
}
.feature h3 {
  font-size: 19px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.feature-tag {
  font-size: 19px;
  line-height: 1;
}
.feature p {
  color: var(--text);
  font-size: 15px;
  margin: 0;
}

/* Showcase */
.phone.small {
  width: 250px;
  height: 510px;
  border-radius: 38px;
  padding: 12px;
}
.phone.small .phone-notch {
  display: none;
}
.phone.small .phone-screen {
  padding: 18px 14px 14px;
}

.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 56px;
}
.show-row:last-child {
  margin-bottom: 0;
}
.show-row .phone {
  justify-self: center;
}
.show-copy h3 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: 14px;
}
.show-copy p {
  color: var(--text);
  font-size: 17px;
  margin: 0;
  max-width: 460px;
}

.mock-ex {
  color: #fff;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}
.mset {
  display: grid;
  grid-template-columns: 20px 1.1fr 0.8fr 0.9fr 18px;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
  padding: 5px 0;
  border-top: 1px solid var(--border);
}
.mset .prev {
  color: var(--muted);
  font-size: 11px;
}
.mset.head {
  color: var(--muted);
  border-top: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mset.done {
  color: #fff;
}
.mset .warm {
  color: #f59e0b;
  font-weight: 700;
}
.chk {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  justify-self: end;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.chk.on {
  background: var(--p1);
  border-color: var(--p1);
  color: #fff;
}
.mock-timer-row {
  justify-content: space-between;
}
.mock-timer-row strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.mock-finish {
  margin-top: 14px;
  text-align: center;
  padding: 11px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(120deg, #16a34a, #22c55e);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.mock-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-stat b {
  color: #fff;
  font-size: 20px;
}
.mock-stat span {
  font-size: 11px;
  color: var(--muted);
}
.mock-spark-label {
  font-size: 11px;
  color: var(--muted);
}
.mock-spark {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 8px;
}

/* How it works */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}
.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
}
.step-num {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.4);
}
.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.step p {
  color: var(--text);
  margin: 0;
}
.step-line {
  flex: 0 0 60px;
  height: 2px;
  margin-top: 28px;
  background: linear-gradient(90deg, var(--p2), transparent);
}

/* Comparison table (FuelLog vs MFP vs Hevy/Strong) */
/* This section carries the positioning — its headline runs larger than the
   other section heads. */
.compare .eyebrow {
  font-size: 16px;
}
.compare .section-head h2 {
  font-size: clamp(38px, 5.8vw, 60px);
}
.compare .section-head p {
  font-size: 18px;
}
.compare-wrap {
  overflow-x: auto; /* the table scrolls inside itself on narrow phones */
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  color: var(--text-h);
  font-size: 15px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  white-space: nowrap;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table td:first-child {
  color: var(--text-h);
  font-weight: 600;
  min-width: 150px;
}
.compare-table .ct-us {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.13), rgba(34, 211, 238, 0.05));
  color: var(--text-h);
  font-weight: 600;
}
.compare-table td:not(.ct-us):not(:first-child) {
  color: var(--muted);
}
.compare-fine {
  margin: 14px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 24px;
  justify-content: center;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.plan-pro {
  border-color: rgba(34, 211, 238, 0.6);
  background: linear-gradient(
    180deg,
    rgba(34, 211, 238, 0.12),
    rgba(255, 255, 255, 0.03)
  );
  box-shadow: 0 20px 60px rgba(8, 145, 178, 0.3);
}
.plan-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  padding: 5px 12px;
  border-radius: 999px;
}
.plan h3 {
  font-size: 22px;
}
.price {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-h);
  margin: 8px 0 20px;
}
.price span {
  font-size: 26px;
  vertical-align: super;
  color: var(--muted);
}
.price {
  margin-bottom: 4px;
}
.price small {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}
.price-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}
.plan-fine {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.5;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--p1);
  font-weight: 800;
}
.plan .btn-ghost {
  width: 100%;
}
.waitlist {
  display: flex;
  gap: 8px;
}
.waitlist input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 14px;
}
.waitlist input::placeholder {
  color: var(--muted);
}
.waitlist-msg {
  margin: 10px 0 0;
  font-size: 13px;
  color: #4ade80;
  min-height: 18px;
}

/* CTA */
.cta {
  text-align: center;
  background: var(--grad);
  border-radius: 32px;
  max-width: 1000px;
  margin: 40px auto 90px;
  padding: 70px 24px;
}
.cta h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  color: #fff;
}
.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin: 14px 0 28px;
}
.cta .btn-primary {
  background: #fff;
  color: #0e7490;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}
.cta .btn-primary:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}
.footer p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    order: 0;
  }
  .hero-mockup {
    order: 1;
  }
  .lede {
    margin-inline: auto;
  }
  .hero-cta,
  .hero-stats {
    justify-content: center;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .show-row,
  .show-row.reverse {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .show-row .show-copy {
    order: 2;
  }
  .show-row .phone {
    order: 1;
  }
  .show-copy p {
    margin-inline: auto;
  }
  .steps {
    flex-direction: column;
    align-items: center;
  }
  .step-line {
    width: 2px;
    height: 40px;
    flex: none;
    margin: 0;
    background: linear-gradient(180deg, var(--p2), transparent);
  }
  .plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-links,
  .nav .btn-primary {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    right: 24px;
    left: 24px;
    flex-direction: column;
    gap: 14px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    z-index: 20;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 22px;
  }
  /* Tighter vertical rhythm on phones. */
  .features,
  .how,
  .pricing,
  .showcase,
  .cta,
  .personalize {
    padding-top: 58px;
    padding-bottom: 58px;
  }
  /* Waitlist input + button can't both fit one row on narrow phones —
     the button won't shrink below its label and forces ~20px of
     horizontal overflow (the whole page pans on swipe). Stack them. */
  .waitlist {
    flex-direction: column;
  }
  .waitlist .btn-primary {
    width: 100%;
  }
  /* On very narrow phones the long CTA label + nowrap can't fit one
     line; let the big button wrap instead of overflowing the page. */
  .cta .btn-lg {
    white-space: normal;
    max-width: 100%;
  }
}

/* ===== Personalized setup section ===== */
.personalize {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 20px;
}
.section-sub {
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 8px;
}
.goal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 940px;
  margin: 0 auto;
}
.goal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.goal-card-emoji {
  font-size: 34px;
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: radial-gradient(circle at 32% 28%, rgba(34, 211, 238, 0.3), rgba(8, 145, 178, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 10px 26px rgba(8, 145, 178, 0.25);
}
.goal-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.goal-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.personalize-cta { text-align: center; margin-top: 32px; }
@media (max-width: 720px) {
  .goal-cards { grid-template-columns: 1fr; max-width: 420px; }
}

/* ===== SEO article pages (long-form prose + FAQ) ===== */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.article h1 {
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 800;
  margin-bottom: 18px;
}
.article .article-lede {
  font-size: 19px;
  color: var(--text);
  margin: 0 0 8px;
}
.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
.prose h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  margin: 44px 0 14px;
}
.prose h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.prose p {
  color: var(--text);
  font-size: 17px;
  margin: 0 0 16px;
}
.prose ul {
  color: var(--text);
  font-size: 17px;
  padding-left: 0;
  list-style: none;
  margin: 0 0 18px;
}
.prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.prose ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--p1);
  font-weight: 800;
}
.prose a {
  color: var(--p1);
  text-decoration: none;
  font-weight: 600;
}
.prose a:hover {
  text-decoration: underline;
}
.prose strong {
  color: var(--text-h);
}
.article-cta {
  margin: 36px 0 8px;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(255, 255, 255, 0.03));
  text-align: center;
}
.article-cta h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}
.article-cta p {
  color: var(--text);
  margin: 0 0 18px;
}

/* FAQ (matches the accordion-free, clean list style) */
.faq-item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-h);
  margin: 0 0 8px;
}
.faq-item p {
  color: var(--text);
  font-size: 16px;
  margin: 0;
}

/* ===== iPhone-style hardware details (Dynamic Island, status bar, home bar) ===== */
.p-island {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.07);
}
.phone.small .p-island {
  top: 20px;
  width: 72px;
  height: 20px;
}
.p-status {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
  pointer-events: none;
}
.p-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  padding-left: 8px;
}
.p-icons {
  height: 11px;
  width: auto;
}
.phone.small .p-status {
  top: 9px;
  left: 10px;
  right: 10px;
  height: 20px;
  font-size: 11px;
}
.phone.small .p-icons {
  height: 9px;
}
/* Screen hosts the status bar + home indicator overlays. */
.phone-screen {
  position: relative;
  padding-top: 48px;
}
.phone.small .phone-screen {
  padding-top: 38px;
}
.phone-screen::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 2;
}
