/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Fixed Background Video ─────────────────────── */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: #0a0a0a;
}

.bg-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.15;
}

/* Content sits above the video */
.testimonials,
.value-props,
.nav,
.hero,
.features,
.how-it-works,
.cta,
.footer,
.legal {
  position: relative;
  z-index: 1;
}

:root {
  /* Surfaces */
  --bg: #0a0a0a;
  --card: #121212;
  --card-elevated: #1c1c1e;
  --card-border: #1e1e1e;
  --border: #2A2A2E;

  /* Text */
  --text: #e4e4e4;
  --text-muted: #999;
  --text-disabled: #666;

  /* Brand */
  --green: #51cf66;
  --green-dark: #3aad4e;
  --purple: #8b5cf6;
  --purple-dark: #6d28d9;
  --blue: #4dabf7;

  /* Semantic */
  --error: #ff6b6b;
  --warning: #ffd43b;

  --max-w: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--purple);
}

img {
  max-width: 100%;
}

/* ── Layout ──────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ──────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* App icon mark in the header, left of the wordmark.
   Transparent PNG, so no border-radius needed — there is no opaque
   square to round off. */
.nav-brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}

/* Wordmark wrapper: keeps "LiftNear" as ONE flex item so its internal
   space survives, and lets align-items:center truly center it on the icon. */
.nav-brand-text {
  display: block;
}

.nav-brand-text > span {
  color: var(--green);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  padding: 96px 24px 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 64px;
}

.hero-content {
  max-width: 480px;
  flex: 0 1 auto;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(81, 207, 102, 0.1);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 500px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--green-dark);
  color: #000;
  transform: translateY(-1px);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* Chat panel wrapper — pills above, floating landscape chat window below
   (round-3: phone frame removed entirely; no notch, no bezel) */
.hero-chat-wrap {
  flex: 1 1 640px;
  max-width: 640px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── Hero chat carousel ──────────────────────────── */
/* The panel IS the chat window now (round-3): wide, short, floating.
   Premium treatment: subtle border, layered shadow + ambient purple/green
   glow matching the site's dark aesthetic, tasteful fade/slide entrance. */
.hero-chat {
  width: 100%;
  height: 420px;
  display: flex;
  flex-direction: column;
  /* background: #121212; /* matches iOS BrandColors.cardSurface (ChatOverlaySheet background) */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(139, 92, 246, 0.10),
    0 0 140px rgba(81, 207, 102, 0.05);
  animation: hero-chat-enter 0.7s cubic-bezier(0.22, 0.9, 0.36, 1) both;
}

@keyframes hero-chat-enter {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* Category pills — above the panel, larger tap targets (round-3) */
.hero-chat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
}

.hero-chat-pill {
  background: var(--card-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 24px;
  min-height: 44px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}

.hero-chat-pill:hover {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.55);
  background: #232327;
  transform: translateY(-1px);
}

.hero-chat-pill:active {
  transform: translateY(0) scale(0.97);
}

.hero-chat-pill.active {
  background: var(--green);
  color: #000;
  border-color: var(--green);
  box-shadow: 0 4px 18px rgba(81, 207, 102, 0.25);
}

.hero-chat-pill.active:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* Chat header */
.hero-chat-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}

.hero-chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--purple));
  color: #000;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-chat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.hero-chat-status {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.hero-chat-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* Messages area */
.hero-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 18px;
  transition: opacity 0.25s ease;
}

.hero-chat-messages::-webkit-scrollbar {
  display: none;
}

.hero-chat-messages.hero-chat-fading {
  opacity: 0;
}

/* Complete-transcript render (manual pill click): no entry animations */
.hero-chat-static .hero-chat-msg,
.hero-chat-static .hero-chat-think,
.hero-chat-static .hero-chat-workout {
  animation: none;
}

/* Message bubbles — mirrored from ChatBubble (ChatOverlaySheet.swift):
   coach = BrandColors.elevatedSurface #1C1C1E, white 90% text;
   user = BrandColors.purple #8B5CF6, white text; uniform cornerRadius 18 (no tails).
   Rows are capped (round-3) so bubbles stay readable in the wide panel. */
.hero-chat-row {
  display: flex;
  flex-direction: column;
  max-width: min(78%, 620px); /* ≈ Spacer(minLength: 40) semantics, capped for width */
}

.hero-chat-row.coach {
  align-self: flex-start;
  align-items: flex-start;
}

.hero-chat-row.user {
  align-self: flex-end;
  align-items: flex-end;
}

.hero-chat-msg {
  max-width: 100%;
  padding: 9px 12px; /* iOS: padding H12 V8 */
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.hero-chat-msg.coach {
  background: var(--card-elevated);
  color: rgba(255, 255, 255, 0.9); /* .silasDark markdown theme */
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: hero-chat-in-left 0.35s cubic-bezier(0.22, 0.9, 0.36, 1) both;
}

.hero-chat-msg.user {
  background: var(--purple);
  color: #fff;
  animation: hero-chat-in-right 0.3s cubic-bezier(0.22, 0.9, 0.36, 1) both;
}

@keyframes hero-chat-in-left {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-chat-in-right {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}

/* Timestamps under bubbles (ChatBubble: caption2 gray, time.shortened) */
.hero-chat-time {
  font-size: 10px;
  color: var(--text-muted);
  padding: 0 4px;
  margin-top: 3px;
}

/* Thinking block — mirrored from ThinkingBlockView/ThinkingHeaderView/
   ThinkingBodyView (ios/SilasFitness/Views/Chat/ThinkingBlock/):
   coachBg #1A1A3E + coachBorder #2D2D5E, radius 12, pulsing purple brain
   while thinking → static gray brain + "Coach reasoned for Xs" when done. */
.hero-chat-think {
  align-self: flex-start;
  width: min(84%, 640px);
  flex-shrink: 0;
  background: #1A1A3E; /* BrandColors.coachBg */
  border: 1px solid #2D2D5E; /* BrandColors.coachBorder */
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  animation: hero-chat-in-left 0.35s cubic-bezier(0.22, 0.9, 0.36, 1) both;
}

.hero-chat-think-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px; /* iOS: padding H14 V10 */
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.hero-chat-think-brain {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  animation: hero-chat-pulse 1.4s ease-in-out infinite; /* PulseModifier */
}

.hero-chat-think.done .hero-chat-think-brain {
  animation: none;
  filter: grayscale(1); /* completed phase: static gray brain */
  opacity: 0.65;
}

@keyframes hero-chat-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.12); }
}

.hero-chat-think-label {
  flex: 1;
  font-size: 11.5px;
  color: #94A3B8; /* ThinkingHeaderView.labelColor */
}

.hero-chat-think-chevron {
  width: 10px;
  height: 10px;
  color: #64748B; /* ThinkingHeaderView.chevronColor */
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.hero-chat-think.expanded .hero-chat-think-chevron {
  transform: rotate(180deg);
}

.hero-chat-think-body {
  display: none;
  padding: 0 14px 12px;
  font-size: 11.5px;
  font-style: italic; /* ThinkingBodyView: italic caption */
  color: #7C8AA0; /* ThinkingBodyView.textColor */
  line-height: 1.55;
}

.hero-chat-think.expanded .hero-chat-think-body {
  display: block;
}

/* Tool-call rows — mirrored from ToolCallView; always visible when present
   (SF-F050 G1: tool list renders regardless of thinking expansion) */
.hero-chat-toolwrap {
  border-top: 1px solid #2D2D5E;
}

.hero-chat-toolrow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  cursor: pointer;
}

.hero-chat-tool-icon {
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.hero-chat-tool-name {
  flex: 1;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--purple);
}

.hero-chat-toolwrap.tool-expanded .hero-chat-toolrow .hero-chat-think-chevron {
  transform: rotate(180deg);
}

.hero-chat-tool-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(139, 92, 246, 0.25);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: hero-chat-spin 0.8s linear infinite;
  flex-shrink: 0;
}

.hero-chat-tool-status {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.hero-chat-tool-status.ok { color: var(--green); } /* checkmark.circle.fill */
.hero-chat-tool-status.err { color: var(--error); } /* xmark.circle.fill */

.hero-chat-tool-details {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0 14px 10px;
}

.hero-chat-toolwrap.tool-expanded .hero-chat-tool-details {
  display: flex;
}

.hero-chat-tool-k {
  font-size: 9.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-chat-tool-v {
  margin-top: 2px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; /* iOS: 11pt monospaced */
  color: #CCCCCC;
  background: #0D0D0D;
  border-radius: 6px;
  padding: 8px;
  overflow-wrap: break-word;
}

@keyframes hero-chat-spin {
  to { transform: rotate(360deg); }
}

/* Embedded workout card */
.hero-chat-workout {
  align-self: flex-start;
  width: min(82%, 620px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: hero-chat-in-left 0.35s cubic-bezier(0.22, 0.9, 0.36, 1) both;
}

.hero-chat-workout-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 2px 2px;
}

.hero-chat-workout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 7px 9px;
  background: var(--card-elevated);
  border-radius: 8px;
}

.hero-chat-workout-name {
  color: var(--text);
}

.hero-chat-workout-sets {
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-chat-workout-start {
  background: var(--green);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 9px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* Decorative input bar — mirrors chatInputBar (ChatOverlaySheet.swift):
   full-width #111111 strip, camera circle on BrandColors.border, rounded field
   on BrandColors.elevatedSurface (radius 20), purple arrow.up.circle.fill send */
.hero-chat-input {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 12px;
  background: #111111; /* safeAreaInset background Color(hex:"111111") */
  border-top: 1px solid var(--border);
}

.hero-chat-cam {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: default;
}

.hero-chat-cam svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted); /* iOS: .foregroundColor(.gray) */
}

.hero-chat-field {
  flex: 1;
  min-height: 34px;
  display: flex;
  align-items: center;
  background: var(--card-elevated);
  border-radius: 18px;
  padding: 8px 12px;
}

.hero-chat-input-placeholder {
  color: var(--text-muted);
  font-size: 12.5px;
}

.hero-chat-send {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.hero-chat-send-bg {
  fill: var(--purple); /* arrow.up.circle.fill, BrandColors.purple */
}

/* Reduced motion: show the conversation without movement */
@media (prefers-reduced-motion: reduce) {
  .hero-chat,
  .hero-chat-msg.coach,
  .hero-chat-msg.user,
  .hero-chat-workout,
  .hero-chat-think {
    animation: none;
  }

  .hero-chat-think-brain {
    animation: none;
  }

  .hero-chat-tool-spinner {
    animation: none;
  }

  .hero-chat-messages,
  .hero-chat-pill {
    transition: none;
  }
}

/* ── Features ────────────────────────────────────── */
.features {
}

.section-label {
  display: inline-block;
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 48px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 0 0 40%;
  min-width: 0;
}

.feature-image-life img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.feature-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.feature-image.placeholder {
  background: var(--card);
  border: 1px dashed #333;
  border-radius: 16px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image.placeholder::after {
  content: "Image coming soon";
  color: #555;
  font-size: 0.9rem;
}

.feature-text {
  flex: 1;
  min-width: 0;
}

.feature-text {
  flex: 1;
  min-width: 0;
}

.feature-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.feature-text p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.75;
}

/* ── How It Works ────────────────────────────────── */
.how-it-works {
  padding: 48px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(81, 207, 102, 0.1);
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Value props ─────────────────────────────────── */
.value-props {
  padding: 96px 24px;
}

.value-props-intro {
  max-width: 720px;
  margin: 0 0 56px;
  text-align: left;
}

.value-props-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.value-prop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Cards are buttons that swap the visual. Deliberately no scale on the active
   card (shred uses scale-105) — scaling a text block softens the glyphs. */
.value-prop {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.value-prop:hover {
  background: rgba(255, 255, 255, 0.03);
}

.value-prop.active {
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.08);
}

.value-prop-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--green);
}

.value-prop-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.value-prop-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.value-prop-desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Phone mockup — portrait frame holding the cross-fading app screenshots,
   with the iOS widget peeking out below. */
.value-props-media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.value-props-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
}

.value-props-phone {
  position: relative;
  width: min(250px, 40vw);
  flex-shrink: 0;
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 1;
}

.value-props-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 22px;
  border-radius: 999px;
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 3;
}

/* Second phone, nutrition-only: the macro dashboard sits BESIDE the label-scan
   phone so both screenshots are fully visible (side by side). */
.value-props-phone-secondary {
  position: relative;
  width: min(250px, 40vw);
  flex-shrink: 0;
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: none;
  z-index: 1;
}

.value-props-phone-secondary.active {
  display: block;
}

.value-props-phone-secondary img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Apple Watch — devices.css apple-watch-s8 (MIT, picturepan2) scaled to fit. */
.value-props-watch {
  position: relative;
  width: 180px;
  height: 190px;
  flex-shrink: 0;
  display: none;
  z-index: 1;
}

.value-props-watch.active {
  display: block;
}

.value-props-watch-scaler {
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(0.5);
  transform-origin: top left;
}

/* Cross-fading screenshots fill the s8 screen area (frame padding 28px 26px) */
.value-props-watch-shot {
  position: absolute;
  top: 28px;
  left: 26px;
  width: 268px;
  height: 324px;
  object-fit: cover;
  object-position: center;
  border-radius: 62px;
  border: 2px solid #121212;
  opacity: 0;
  transition: opacity 0.5s;
}

.value-props-watch-shot.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .value-props-watch {
    width: 130px;
    height: 137px;
  }
  .value-props-watch-scaler {
    transform: scale(0.36);
  }
}

/* Widget peeks out below the phone — nutrition item only. */
.value-props-widget {
  position: absolute;
  left: 50%;
  bottom: -44px;
  transform: translateX(-50%);
  width: 210px;
  aspect-ratio: 2.3 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0d10;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 2;
}

.value-props-widget.active {
  opacity: 1;
}

.value-props-widget img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.value-props-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s, transform 0.5s;
}

.value-props-shot.active {
  opacity: 1;
  transform: none;
}

/* ── Testimonials ────────────────────────────────── */
.testimonials {
  padding: 48px 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.testimonial {
  margin: 0;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.35);
}

.testimonial blockquote {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.testimonial figcaption {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.testimonial figcaption strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

/* ── CTA ─────────────────────────────────────────── */
.cta {
  padding: 48px 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(81, 207, 102, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 64px 32px;
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--card-border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Legal Pages ─────────────────────────────────── */
.legal {
  padding: 96px 0 48px;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal .legal-date {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text);
}

.legal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

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

.legal ul {
  color: var(--text-muted);
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal ul li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal a {
  color: var(--green);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 96px 24px 48px;
    gap: 40px;
  }

  .hero-content {
    max-width: 720px;
  }

  .hero-chat-wrap {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-tagline {
    margin: 0 auto 32px;
  }

  /* Taller, narrower panel on mobile (round-3) */
  .hero-chat {
    height: 480px;
  }

  .hero-chat-msg {
    font-size: 14px;
  }

  .hero-chat-pill {
    font-size: 14px;
    padding: 10px 20px;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 24px;
  }

  .feature-image img {
    height: 240px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .value-props {
    padding: 64px 24px;
  }

  .value-props-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Visual above the cards on mobile so tapping a card visibly changes it */
  .value-props-media {
    order: -1;
  }

  .value-prop {
    padding: 20px;
    gap: 16px;
  }

  .step {
    padding: 24px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .legal {
    padding: 88px 24px 48px;
  }

  .legal h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-chat {
    height: 520px;
    border-radius: 16px;
  }

  .hero-chat-msg {
    font-size: 13.5px;
  }

  .hero-chat-pill {
    font-size: 13px;
    padding: 9px 18px;
    min-height: 40px;
  }

  .hero-chat-pills {
    gap: 8px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .nav-links {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 8px 24px 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    font-size: 1rem;
    display: block;
  }
}

.app-store-badge-link {
  display: inline-block;
  margin-top: 8px;
}

.app-store-badge-link--center {
  margin-left: auto;
  margin-right: auto;
}

.app-store-badge {
  height: 48px;
  width: auto;
  display: block;
}

/* COMPLETE: phase=implementation */
