/* =============================================================
   Vitarix Landing — components.css
   Buttons, cards, badges, phone mockup, FAQ, social icons.
   Filled out in later phases; skeleton for now.
   ============================================================= */

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: var(--fs-label-md);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform var(--dur-base) var(--ease-out-expo),
    background-color var(--dur-base) var(--ease-out-expo),
    color var(--dur-base) var(--ease-out-expo),
    box-shadow var(--dur-base) var(--ease-out-expo);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--neon-lime);
  color: var(--surface);
}
.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 25px rgba(215, 255, 63, 0.4);
}
.btn-secondary {
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
  border-color: var(--surface-container-high);
}
.btn-secondary:hover {
  background: var(--surface-container-highest);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--neon-lime);
  border-color: rgba(215, 255, 63, 0.30);
}
.btn-ghost:hover {
  background: rgba(215, 255, 63, 0.10);
}

/* ─── Eyebrow / pill badge ─────────────────────────────────── */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--surface-container-low);
  color: var(--neon-lime);
  border: 1px solid var(--surface-container-high);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
.eyebrow-pill.is-purple {
  background: rgba(164, 130, 255, 0.08);
  border-color: rgba(164, 130, 255, 0.20);
  color: var(--purple);
}
.eyebrow-pill.is-lime {
  background: rgba(215, 255, 63, 0.08);
  border-color: rgba(215, 255, 63, 0.20);
  color: var(--neon-lime);
}

/* ─── Generic card ─────────────────────────────────────────── */
.card {
  background: var(--surface-container-low);
  border: 1px solid var(--surface-container-high);
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
  transition:
    transform var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-base) var(--ease-out-expo),
    box-shadow var(--dur-base) var(--ease-out-expo);
}
.card-lg { padding: 2rem; }

/* ─── Phone mockup shell ───────────────────────────────────── */
.phone-shell {
  width: 320px;
  height: 640px;
  background: var(--surface-container-low);
  border-radius: var(--radius-4xl);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.phone-shell::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 1.5rem;
  background: var(--bg);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  z-index: 10;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  position: relative;
}

/* ─── FAQ accordion ────────────────────────────────────────── */
.faq-item {
  background: var(--surface-container-low);
  border: 1px solid var(--surface-container-high);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  text-align: start;
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease-out;
  padding-inline: 1.25rem;
}
.faq-answer.open {
  max-height: 300px;
  padding-bottom: 1.25rem;
}
.faq-icon {
  transition: transform 0.3s var(--ease-out-expo);
  color: var(--on-surface-variant);
}
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  background: rgba(16, 20, 25, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background-color var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-base) var(--ease-out-expo);
}

/* ─── Container inline padding token (legacy compat) ──────── */
.px-container-padding { padding-inline: var(--space-container); }
.py-vertical-sm      { padding-block: var(--space-vertical-sm); }
.py-vertical-md      { padding-block: var(--space-vertical-md); }
.py-editorial-gap    { padding-block: var(--space-editorial); }

/* =============================================================
   PHASE 4 — INTERACTIVE PHONE DEMO
   Premium 3D-tilted phone with 4 cycling app screens, status
   bar, holographic shimmer, side buttons, halo, orbit pills,
   tab bar, screen indicator dots, and toast layer.
   ============================================================= */

/* ─── Outer wrapper ─────────────────────────────────────── */
.phone {
  --phone-radius: 44px;
  --phone-bezel: 12px;

  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: var(--phone-radius);
  background: linear-gradient(160deg, #1a1f26 0%, #0d1117 100%);
  padding: var(--phone-bezel);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 30px 60px -20px rgba(0,0,0,0.7),
    0 0 80px -10px rgba(196,255,0,0.10);
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(0) rotateY(0) translateZ(0);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
  will-change: transform;
  animation: floatPhone 4s var(--ease-in-out-quart) infinite;
  z-index: 1;
  /* Prevent overflow on small screens */
  max-width: calc(100vw - var(--space-container) * 2);
}
.phone:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10),
    0 40px 80px -20px rgba(0,0,0,0.8),
    0 0 120px -10px rgba(196,255,0,0.20);
}

/* Phase 4: .phone__shimmer (rotating conic gradient) removed — read as cheap
   and competed with the phone 3D-tilt for attention. The .phone__shimmer
   class is no longer in the HTML. */

/* Side hardware buttons */
.phone__btn {
  position: absolute;
  background: linear-gradient(90deg, #0a0d12 0%, #1a1f26 100%);
  border-radius: 2px;
  z-index: 0;
}
.phone__btn--silent   { left: -3px;  top: 110px; width: 3px; height: 28px; border-radius: 2px 0 0 2px; }
.phone__btn--vol-up   { left: -3px;  top: 160px; width: 3px; height: 46px; border-radius: 2px 0 0 2px; }
.phone__btn--vol-down { left: -3px;  top: 215px; width: 3px; height: 46px; border-radius: 2px 0 0 2px; }
.phone__btn--power    { right: -3px; top: 175px; width: 3px; height: 70px; border-radius: 0 2px 2px 0; }

/* ─── Screen frame ──────────────────────────────────────── */
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: calc(var(--phone-radius) - var(--phone-bezel));
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* ─── Phase 5: real screenshot carousel ─────────────────── */
/* Replaces the 4 fake CSS screens with 3 real app screenshots.
   The .hero-shots container fills the screen; only one .hero-shot
   is visible at a time. JS in phone-demo.js cycles them every 3.5s
   with a crossfade. */
.hero-shots {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.7s var(--ease-out-quart),
    transform 0.9s var(--ease-out-quart);
  will-change: opacity, transform;
}
.hero-shot.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Status bar overlay sits on top of the screenshot.
   The screenshots already include their own status bars, but we
   overlay our own so the clock + battery level can animate live. */
.status-bar--overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 100%);
}

/* ─── Status bar (original, kept for backward compat) ─── */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
  position: relative;
  z-index: 5;
}
.status-bar__time { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.status-bar__notch {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: -1;
}
.status-bar__notch-dot {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1a1f26;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.status-bar__icons {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px;
}
.status-bar__icons .material-symbols-outlined { font-size: 14px; }
.status-bar__battery {
  position: relative;
  display: inline-block;
  width: 22px; height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  margin-left: 2px;
}
.status-bar__battery::after {
  content: "";
  position: absolute;
  right: -3px; top: 3px;
  width: 2px; height: 5px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}
.status-bar__battery-level {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0.78);
  transform-origin: left center;
  background: var(--neon-lime);
  border-radius: 1px;
  transition: transform 0.4s var(--ease-out-expo);
}

/* ─── Screens stack ─────────────────────────────────────── */
.screens {
  position: relative;
  flex: 1;
  overflow: hidden;
  z-index: 3;
}
.screen {
  position: absolute;
  inset: 0;
  padding: 8px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateX(40px) scale(0.96);
  transition: opacity 0.55s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, #0d1117 100%);
  will-change: transform, opacity;
}
.screen.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}
.screen.is-leaving {
  opacity: 0;
  transform: translateX(-40px) scale(0.96);
  z-index: 1;
}

/* Screen heads (greeting row) */
.screen__head, .screen__greet {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.screen__hello {
  font-size: 11px;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.screen__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
  margin-top: 2px;
}
.screen__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-lime), var(--purple));
  color: #0d1117;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.05);
}
.screen__chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700;
  padding: 4px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.screen__chip--ai   { background: rgba(255,122,0,0.15); color: var(--purple); }
.screen__chip--rec  { background: rgba(255,80,80,0.15);   color: #ff5a5a; }
.screen__chip--blue { background: rgba(80,160,255,0.15);  color: #60a5fa; }
.rec-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff5a5a;
  animation: recBlink 1.2s ease-in-out infinite;
}

/* ─── Home: Ring + trackers ─────────────────────────────── */
.ring-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 6px auto 0;
}
.ring-svg { width: 100%; height: 100%; }
.ring-bg { stroke-dasharray: none; }
.ring-fg {
  transition: stroke-dashoffset 1.6s var(--ease-out-expo);
  filter: drop-shadow(0 0 6px rgba(196,255,0,0.4));
}
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-pct {
  font-size: 38px; font-weight: 800; line-height: 1;
  color: var(--neon-lime);
  font-variant-numeric: tabular-nums;
}
.ring-label {
  font-size: 9px; font-weight: 700;
  color: var(--on-surface-variant);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-top: 4px;
}

.tracker-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.tracker {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: background 0.3s var(--ease-out-expo);
}
.tracker:hover { background: rgba(255,255,255,0.07); }
.tracker__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tracker__icon--lime   { background: rgba(196,255,0,0.12);  color: var(--neon-lime); }
.tracker__icon--purple { background: rgba(255,122,0,0.12); color: var(--purple); }
.tracker__icon--blue   { background: rgba(80,160,255,0.12);  color: #60a5fa; }
.tracker__icon .material-symbols-outlined { font-size: 16px; }
.tracker__body { flex: 1; min-width: 0; }
.tracker__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.tracker__name { font-size: 10px; font-weight: 700; color: var(--on-surface); }
.tracker__val  { font-size: 10px; font-weight: 700; }
.tracker__val--lime   { color: var(--neon-lime); }
.tracker__val--purple { color: var(--purple); }
.tracker__val--blue   { color: #60a5fa; }
.tracker__val small   { font-size: 9px; opacity: 0.7; }
.tracker__bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.tracker__fill {
  height: 100%;
  border-radius: 999px;
  animation: barFill 1.4s var(--ease-out-expo) 0.3s both;
  transform-origin: left;
}
.tracker__fill--lime   { background: var(--neon-lime); box-shadow: 0 0 8px rgba(196,255,0,0.4); }
.tracker__fill--purple { background: var(--purple);    box-shadow: 0 0 8px rgba(255,122,0,0.4); }
.tracker__fill--blue   { background: #60a5fa;           box-shadow: 0 0 8px rgba(80,160,255,0.4); }

/* ─── Meals: AI scan viewfinder ─────────────────────────── */
.scan-window {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(255,122,0,0.10) 0%, transparent 70%),
    #0a0d12;
  border: 1px solid rgba(255,255,255,0.08);
}
.scan-window__bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 50%, rgba(255,122,0,0.18) 0%, transparent 60%);
}
.scan-window__corners { position: absolute; inset: 12px; pointer-events: none; }
.scan-corner {
  position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--neon-lime);
  filter: drop-shadow(0 0 4px var(--neon-lime));
}
.scan-corner--tl { top: 0;    left: 0;    border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.scan-corner--tr { top: 0;    right: 0;   border-left: 0;  border-bottom: 0; border-top-right-radius: 4px; }
.scan-corner--bl { bottom: 0; left: 0;    border-right: 0; border-top: 0;    border-bottom-left-radius: 4px; }
.scan-corner--br { bottom: 0; right: 0;   border-left: 0;  border-top: 0;    border-bottom-right-radius: 4px; }
.scan-window__line {
  position: absolute; left: 12px; right: 12px; top: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-lime), transparent);
  box-shadow: 0 0 12px var(--neon-lime);
  animation: scanLine 2.2s var(--ease-in-out-quart) infinite;
}
.scan-window__food {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}
.scan-bbox {
  position: absolute;
  border: 1.5px solid rgba(196,255,0,0.7);
  border-radius: 4px;
  animation: bboxPulse 1.8s ease-in-out infinite;
}
.scan-bbox--a { top: 22%;  left: 28%; width: 22%; height: 26%; }
.scan-bbox--b { top: 50%;  left: 50%; width: 26%; height: 22%; animation-delay: 0.4s; border-color: rgba(255,122,0,0.7); }
.scan-bbox--c { top: 38%;  left: 38%; width: 18%; height: 18%; animation-delay: 0.8s; border-color: rgba(80,160,255,0.7); }

.scan-result {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.scan-result__row {
  display: flex; align-items: center; justify-content: space-between;
}
.scan-result__name { font-size: 16px; font-weight: 700; color: var(--on-surface); }
.scan-result__conf { font-size: 10px; color: var(--neon-lime); margin-top: 2px; font-weight: 600; }
.scan-result__kcal {
  font-size: 18px; font-weight: 800;
  color: var(--neon-lime);
  font-variant-numeric: tabular-nums;
}
.scan-result__kcal small { font-size: 10px; opacity: 0.7; font-weight: 600; }
.scan-macros {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.scan-macros > div {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface);
  font-variant-numeric: tabular-nums;
}
.scan-macros small {
  display: block;
  font-size: 9px;
  color: var(--on-surface-variant);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.scan-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-lime) 0%, #b6e02e 100%);
  color: #0d1117;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s var(--ease-out-expo);
  box-shadow: 0 4px 16px -4px rgba(196,255,0,0.5);
}
.scan-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px -4px rgba(196,255,0,0.7); }
.scan-btn:active { transform: translateY(0); }
.scan-btn .material-symbols-outlined { font-size: 16px; }

/* ─── Workout: HR card + exercise list ──────────────────── */
.hr-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,80,80,0.10) 0%, rgba(255,80,80,0.02) 100%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,80,80,0.18);
  border-radius: 14px;
  padding: 12px;
  display: flex; align-items: center; gap: 12px;
  overflow: hidden;
}
.hr-card__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,80,80,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #ff5a5a;
  flex-shrink: 0;
  animation: hrBeat 1.0s ease-in-out infinite;
}
.hr-heart { width: 22px; height: 22px; }
.hr-card__body { flex: 1; min-width: 0; }
.hr-card__label { font-size: 9px; color: var(--on-surface-variant); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.hr-card__value { font-size: 22px; font-weight: 800; color: #ff5a5a; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hr-card__value small { font-size: 11px; font-weight: 600; color: var(--on-surface-variant); margin-left: 4px; }
.hr-ecg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 32px;
  opacity: 0.6;
}
.hr-ecg__line {
  fill: none;
  stroke: #ff5a5a;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255,90,90,0.6));
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: ecgDraw 2s linear infinite;
}

.ex-list {
  display: flex; flex-direction: column; gap: 6px;
}
.ex {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  transition: background 0.3s var(--ease-out-expo);
}
.ex--active {
  background: rgba(196,255,0,0.06);
  border-color: rgba(196,255,0,0.25);
  box-shadow: 0 0 0 1px rgba(196,255,0,0.10), 0 4px 12px -4px rgba(196,255,0,0.3);
}
.ex__check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.20);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: transparent;
}
.ex__check--on {
  background: var(--neon-lime);
  border-color: var(--neon-lime);
  color: #0d1117;
}
.ex__check--on .material-symbols-outlined { font-size: 13px; font-weight: 700; }
.ex__check--active {
  background: rgba(196,255,0,0.15);
  border-color: var(--neon-lime);
}
.ex__check-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-lime);
  animation: pulseDot 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--neon-lime);
}
.ex__body { flex: 1; min-width: 0; }
.ex__name { font-size: 12px; font-weight: 600; color: var(--on-surface); }
.ex__meta { font-size: 10px; color: var(--on-surface-variant); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ─── Hydration: bottle with wave ───────────────────────── */
.bottle {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 200px;
}
.bottle__svg { width: 130px; height: 180px; }
.bottle__readout {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.bottle__big {
  font-size: 32px; font-weight: 800;
  color: var(--on-surface);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.bottle__big small { font-size: 18px; color: var(--on-surface-variant); }
.bottle__sub { font-size: 9px; color: var(--on-surface); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; margin-top: 2px; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }

.quick-add {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.quick-add__btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px;
  background: rgba(80,160,255,0.08);
  border: 1px solid rgba(80,160,255,0.20);
  border-radius: 10px;
  color: #60a5fa;
  font-size: 10px; font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}
.quick-add__btn:hover {
  background: rgba(80,160,255,0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(80,160,255,0.4);
}
.quick-add__btn .material-symbols-outlined { font-size: 18px; }

/* ─── Tab bar ───────────────────────────────────────────── */
.tabbar {
  display: flex; align-items: center; justify-content: space-around;
  height: 56px;
  padding: 0 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  z-index: 5;
  position: relative;
}
.tab {
  background: none; border: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: color 0.25s var(--ease-out-expo), background 0.25s var(--ease-out-expo);
  position: relative;
}
.tab .material-symbols-outlined { font-size: 22px; }
.tab:hover { color: rgba(255,255,255,0.7); }
.tab.is-active {
  color: var(--neon-lime);
  background: rgba(196,255,0,0.10);
}
.tab.is-active::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--neon-lime);
  box-shadow: 0 0 8px var(--neon-lime);
}

/* ─── Home indicator (iOS-style bar) ────────────────────── */
.home-indicator {
  position: absolute;
  left: 50%; bottom: 6px;
  transform: translateX(-50%);
  width: 100px; height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  z-index: 6;
}

/* ─── Halo behind phone ─────────────────────────────────── */
.phone-halo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 130%);
  height: min(480px, 130%);
  background: radial-gradient(circle, rgba(196,255,0,0.18) 0%, rgba(255,122,0,0.10) 40%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: haloPulse 6s ease-in-out infinite;
}

/* ─── Orbiting pills ────────────────────────────────────── */
.phone-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.phone-pill {
  position: absolute;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px;
  font-size: 11px; font-weight: 700;
  border-radius: 999px;
  background: rgba(20,25,32,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  white-space: nowrap;
  /* Phase 4: 6s -> 9s, ease-in-out -> ease-in-out-quart (smoother), 10px drift -> 6px (calmer) */
  animation: pillFloat 9s var(--ease-in-out-quart) infinite;
  font-variant-numeric: tabular-nums;
}
.phone-pill .material-symbols-outlined { font-size: 14px; }
/* Phase 5: pill colors matched to app palette (lime / ember / olive / gold).
   Old names (--purple/--blue/--warm) kept as aliases for backward compat. */
.phone-pill--lime   { color: var(--neon-lime); border-color: rgba(196,255,0,0.30); }
.phone-pill--ember,
.phone-pill--purple { color: var(--ember);     border-color: rgba(255,122,0,0.30); animation-delay: 2s; }
.phone-pill--olive,
.phone-pill--blue   { color: var(--olive);     border-color: rgba(139,154,47,0.40); animation-delay: 4s; }
.phone-pill--gold,
.phone-pill--warm   { color: var(--gold);      border-color: rgba(255,215,0,0.30);  animation-delay: 6s; }
.phone-pill:nth-child(1) { top: 5%;  left: -8%; }
.phone-pill:nth-child(2) { top: 15%; right: -12%; }
.phone-pill:nth-child(3) { bottom: 18%; left: -10%; }
.phone-pill:nth-child(4) { bottom: 5%; right: -8%; }

/* Hide orbit pills on small screens to prevent overflow glitches */
@media (max-width: 640px) {
  .phone-orbit { display: none; }
  .phone-halo { filter: blur(24px); width: min(360px, 120%); height: min(360px, 120%); }
}

/* ─── Screen indicator dots (under phone) ───────────────── */
.phone-dots {
  position: absolute;
  bottom: -42px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 2;
}
.phone-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.20);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}
.phone-dot:hover { background: rgba(255,255,255,0.45); transform: scale(1.2); }
.phone-dot.is-active {
  background: var(--neon-lime);
  width: 24px;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(196,255,0,0.6);
}

/* ─── Toast notifications ──────────────────────────────── */
.toast-layer {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; flex-direction: column; gap: 6px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 8px 14px;
  background: rgba(20,25,32,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(196,255,0,0.30);
  border-radius: 999px;
  color: var(--on-surface);
  font-size: 11px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 16px rgba(196,255,0,0.2);
  display: flex; align-items: center; gap: 6px;
  animation: toastIn 0.4s var(--ease-out-expo) both;
  white-space: nowrap;
  pointer-events: auto;
}
.toast.is-leaving { animation: toastOut 0.3s var(--ease-in-out-quart) both; }
.toast .material-symbols-outlined { font-size: 14px; color: var(--neon-lime); }

/* ─── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .phone,
  .phone-halo,
  .phone-pill,
  .tracker__fill,
  .hr-card__icon,
  .hr-ecg__line,
  .scan-window__line,
  .scan-bbox,
  .rec-dot,
  .ex__check-pulse {
    animation: none !important;
  }
  .screen { transition: opacity 0.2s linear; }
}

/* =============================================================
   PHASE 5 — HERO TEXT EFFECTS
   Split-words reveal, scramble target, magnetic CTAs,
   headline scroll parallax. All GPU-accelerated.
   ============================================================= */

/* ─── Headline + split words ──────────────────────────── */
.hero-headline {
  display: block;
  /* Promote to its own layer for parallax */
  will-change: transform;
}
.hero-headline__line { display: block; }
.hero-headline__line[dir="rtl"] { text-align: right; }

.hero-word {
  display: inline-block;
  /* Pre-reveal: invisible and lifted; revealed state is set
     by hero-effects.js adding .is-revealed to the parent. */
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(10px);
  will-change: transform, opacity, filter;
  margin-inline-end: 0.28em;
}
.hero-headline__line.is-revealed .hero-word {
  animation: heroWordIn 0.85s var(--ease-out-expo) both;
  animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}
/* Emphasis via solid brand color (was a clipped text gradient).
   Impeccable bans clipped-text gradients on text. */
.hero-word--gradient {
  color: var(--neon-lime);
  animation: heroWordIn 0.85s var(--ease-out-expo) both;
  animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}
@keyframes gradientShift {
  0%   { background-position:   0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ─── Scramble target ─────────────────────────────────── */
[data-scramble] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
.scramble-char {
  display: inline-block;
  will-change: transform, opacity;
  animation: scrambleBlink 0.18s steps(2, end) infinite;
}
.scramble-char.is-settled {
  animation: none;
  opacity: 1;
}

/* ─── Magnetic CTA ────────────────────────────────────── */
.magnetic {
  position: relative;
  /* No transition on transform — JS handles smoothing */
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  will-change: transform;
}
.magnetic__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  transition: transform 0.25s var(--ease-out-expo);
  will-change: transform;
}
.magnetic:hover .magnetic__inner {
  /* Tiny scale on hover; main movement is the cursor-tracking translate */
  transform: scale(1.025);
}
/* Optional expanding ring on first hover (one-shot) */
.magnetic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid var(--neon-lime);
  opacity: 0;
  pointer-events: none;
}
.magnetic.is-magnet-active::after {
  animation: magneticRing 0.6s var(--ease-out-expo) 1;
}

/* ─── Hero parallax wrapper (the whole text column) ──── */
.hero-text-col {
  /* Reserved for future rAF scroll transform; harmless without JS */
  will-change: transform;
}

/* ─── Reduced motion overrides for Phase 5 ────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-word,
  .hero-word--gradient {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .magnetic { transform: none !important; }
  .magnetic::after { display: none; }
  [data-scramble] .scramble-char { animation: none !important; }
}

/* =============================================================
   PHASE 6 — STATS / FEATURES / HOW-IT-WORKS
   ============================================================= */

/* ─── Stat cards ───────────────────────────────────────── */
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 18px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo);
  will-change: transform;
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out-expo);
  pointer-events: none;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card:hover::before { opacity: 1; }
.stat-card[data-stat-color="lime"]:hover {
  border-color: rgba(196,255,0,0.30);
  box-shadow: 0 12px 30px -10px rgba(196,255,0,0.25);
}
.stat-card[data-stat-color="purple"]:hover {
  border-color: rgba(255,122,0,0.30);
  box-shadow: 0 12px 30px -10px rgba(255,122,0,0.25);
}
.stat-card__icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
}
.stat-card[data-stat-color="lime"]   .stat-card__icon { background: rgba(196,255,0,0.10);  color: var(--neon-lime); }
.stat-card[data-stat-color="purple"] .stat-card__icon { background: rgba(255,122,0,0.10); color: var(--purple); }
.stat-card__value {
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.stat-card[data-stat-color="lime"]   .stat-card__value { color: var(--neon-lime); }
.stat-card[data-stat-color="purple"] .stat-card__value { color: var(--purple);    text-shadow: 0 0 16px rgba(255,122,0,0.25); }
.stat-card[data-stat-color="lime"]   .stat-card__value { text-shadow: 0 0 16px rgba(196,255,0,0.20); }
.stat-card__value-suffix {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--on-surface-variant);
  margin-left: 1px;
}
.stat-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-card__bar {
  position: absolute;
  left: 18px; right: 18px; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px 2px 0 0;
  overflow: hidden;
}
.stat-card__bar > span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0s;
}
.stat-card.is-celebrating { animation: statCelebrate 0.6s var(--ease-out-expo) both; }
.stat-card.is-celebrating .stat-card__bar > span {
  transform: scaleX(1);
  transition: transform 1.4s var(--ease-out-expo);
}
.stat-card[data-stat-color="lime"]   .stat-card__bar > span { background: linear-gradient(90deg, var(--neon-lime), #b6e02e); }
.stat-card[data-stat-color="purple"] .stat-card__bar > span { background: linear-gradient(90deg, var(--purple), #c4b3ff); }

/* ─── Feature cards (3D tilt + cursor spark) ───────────── */
.feature-card {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  overflow: hidden;
  /* Set by JS for 3D tilt */
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0) rotateY(0) translateZ(0);
  transition:
    transform 0.45s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-expo),
    box-shadow 0.3s var(--ease-out-expo);
  will-change: transform;
  cursor: default;
}

/* Phase 5: screenshot peek inside feature cards that have a matching
   real app screen. The screenshot fills the top of the card with a
   subtle gradient mask fading into the card body. */
.feature-shot {
  position: relative;
  margin: -24px -24px 16px;  /* bleed to card edges */
  height: 200px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  transform: translateZ(8px);  /* slight depth on tilt */
}
.feature-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease-out-expo);
}
.feature-card:hover .feature-shot img {
  transform: scale(1.04);
}
/* Fade the bottom of the screenshot into the card body */
.feature-shot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent 0%, var(--surface-container-low, #16191E) 100%);
  pointer-events: none;
}
/* Small floating icon badge that overlaps the screenshot bottom-left */
.feature-shot__badge {
  position: absolute;
  left: 16px;
  bottom: -16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container-high, #252830);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 2;
}
.feature-shot__badge .material-symbols-outlined { font-size: 22px; }
/* Spark layer (radial gradient following cursor) */
.feature-card[data-spark]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--sx, 50%) var(--sy, 50%),
    var(--spark-color, rgba(196,255,0,0.12)) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
  pointer-events: none;
  z-index: 0;
}
.feature-card[data-spark]:hover::after { opacity: 1; }
.feature-card[data-spark-color="lime"]   { --spark-color: rgba(196,255,0,0.16); }
.feature-card[data-spark-color="purple"] { --spark-color: rgba(255,122,0,0.16); }

.feature-card > * { position: relative; z-index: 1; }
.feature-card:hover {
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    0 18px 40px -16px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}
.feature-card__num {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--on-surface-variant);
  opacity: 0.4;
  font-variant-numeric: tabular-nums;
  z-index: 1;
}
/* Lift the icon so the tilt is visible */
.feature-card .feature-icon {
  transition: transform 0.4s var(--ease-out-expo);
  transform: translateZ(20px);
}
.feature-card:hover .feature-icon { animation: iconPop 0.5s var(--ease-out-expo) 1; }
/* Lift the title slightly more for depth */
.feature-card h3 { transition: transform 0.4s var(--ease-out-expo); transform: translateZ(10px); }

/* ─── Steps grid mobile fix ────────────────────────────────── */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .steps__line { display: none; }
}
.steps__line {
  position: absolute;
  top: 36px;             /* aligns with step node center */
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 0;
  overflow: hidden;
  border-radius: 999px;
}
.steps__line-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-lime) 0%, var(--purple) 100%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out-expo);
  box-shadow: 0 0 10px rgba(196,255,0,0.5);
  border-radius: 999px;
}
.steps__line-fill.is-done { transform: scaleX(1); }

.step {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.step__node {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 20, 25, 0.9);
  border: 2px solid rgba(196,255,0,0.40);
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo);
}
.step.is-active .step__node {
  border-color: var(--neon-lime);
  box-shadow: 0 0 0 6px rgba(196,255,0,0.10), 0 0 24px rgba(196,255,0,0.25);
}
.step.is-done .step__node {
  border-color: var(--neon-lime);
  background: var(--neon-lime);
}
.step.is-done .step__num { color: #0d1117; }
.step__num {
  font-size: 26px;
  font-weight: 900;
  color: var(--neon-lime);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--neon-lime);
  opacity: 0;
  pointer-events: none;
}
.step.is-revealed .step__ring {
  animation: stepRingOut 1.2s var(--ease-out-expo) 1;
}

.step__body {
  max-width: 280px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo);
}
.step.is-revealed .step__body {
  opacity: 1;
  transform: translateY(0);
}
.step:nth-child(1).is-revealed .step__body { transition-delay: 0.2s; }
.step:nth-child(2).is-revealed .step__body { transition-delay: 0.5s; }
.step:nth-child(3).is-revealed .step__body { transition-delay: 0.8s; }

/* ─── Responsive: collapse steps to a column on mobile ─ */
@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .steps__line {
    top: 36px; bottom: 36px;
    left: 50%;
    right: auto;
    width: 2px; height: auto;
    transform: translateX(-50%);
  }
  .steps__line-fill {
    width: 100%; height: 100%;
    transform: scaleY(0);
    transform-origin: top;
  }
  .steps__line-fill.is-done { transform: scaleY(1); }
  .step { flex-direction: row; gap: 16px; text-align: left; }
  .step__node { flex-shrink: 0; margin-bottom: 0; }
  .step__body { max-width: none; }
}

/* ─── Reduced motion overrides for Phase 6 ────────────── */
@media (prefers-reduced-motion: reduce) {
  .stat-card { animation: none !important; transform: none !important; }
  .stat-card__bar > span { transform: scaleX(1) !important; }
  .feature-card { transform: none !important; }
  .feature-card::after { display: none; }
  .feature-card:hover .feature-icon { animation: none !important; }
  .step__ring { display: none; }
  .step__body { opacity: 1; transform: none; }
  .steps__line-fill { transform: scaleX(1) !important; }
}

/* =============================================================
   PHASE 7 — TESTIMONIALS MARQUEE
   Two rows of cards scrolling in opposite directions with a
   gradient edge-fade mask. JS sets --marquee-duration per row.
   ============================================================= */

.marquee-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* Edge fade so cards entering/leaving don't snap */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
          mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  overflow: hidden;
}
.marquee {
  position: relative;
  width: 100%;
  /* `overflow:hidden` is on the wrap so each row can be wider than the viewport */
}
.marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;          /* grow with the duplicated children */
  will-change: transform;
}
.marquee[data-marquee-dir="left"]  .marquee__track {
  animation: marqueeScroll       var(--marquee-duration, 40s) linear infinite;
}
.marquee[data-marquee-dir="right"] .marquee__track {
  animation: marqueeScrollReverse var(--marquee-duration, 40s) linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* ─── Testimonial card ────────────────────────────────── */
.testimonial-card {
  position: relative;
  flex: 0 0 auto;
  width: 360px;
  padding: 26px 24px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
  will-change: transform;
}
.testimonial-card:hover {
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.5);
}
.testimonial-card[data-color="lime"]::before,
.testimonial-card[data-color="purple"]::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 60%, var(--ring-color, rgba(196,255,0,0.45)) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}
.testimonial-card[data-color="lime"]   { --ring-color: rgba(196,255,0,0.40);  }
.testimonial-card[data-color="purple"] { --ring-color: rgba(255,122,0,0.40); }

.testimonial-card__quote {
  position: absolute;
  top: 14px; right: 18px;
  width: 36px; height: 36px;
  color: var(--quote-color, var(--neon-lime));
  opacity: 0.25;
  pointer-events: none;
  transform-origin: top right;
}
.testimonial-card[data-color="lime"]   .testimonial-card__quote { color: var(--neon-lime);  }
.testimonial-card[data-color="purple"] .testimonial-card__quote { color: var(--purple);     }
.testimonial-card.is-revealed .testimonial-card__quote {
  animation: quoteDraw 0.7s var(--ease-out-expo) 0.1s both;
}

.testimonial-card__stars {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 14px;
  color: var(--neon-lime);
  font-size: 16px;
}
.testimonial-card__stars .material-symbols-outlined {
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(196,255,0,0.4));
  opacity: 0;
  transform: scale(0) rotate(-45deg);
}
.testimonial-card.is-revealed .testimonial-card__stars .material-symbols-outlined {
  animation: starPop 0.45s var(--ease-out-expo) both;
  animation-delay: calc(var(--star-i, 0) * 80ms + 200ms);
}
.testimonial-card__stars .material-symbols-outlined:nth-child(1) { --star-i: 0; }
.testimonial-card__stars .material-symbols-outlined:nth-child(2) { --star-i: 1; }
.testimonial-card__stars .material-symbols-outlined:nth-child(3) { --star-i: 2; }
.testimonial-card__stars .material-symbols-outlined:nth-child(4) { --star-i: 3; }
.testimonial-card__stars .material-symbols-outlined:nth-child(5) { --star-i: 4; }

.testimonial-card__quote-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-surface);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-card__person {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.testimonial-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #0d1117;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.05);
  opacity: 0;
  transform: scale(0.4) rotate(-20deg);
}
.testimonial-card__avatar--lime {
  background: linear-gradient(135deg, var(--neon-lime) 0%, #b6e02e 100%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.05), 0 0 18px rgba(196,255,0,0.30);
}
.testimonial-card__avatar--purple {
  background: linear-gradient(135deg, var(--purple) 0%, #c4b3ff 100%);
  color: #0d1117;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.05), 0 0 18px rgba(255,122,0,0.30);
}
.testimonial-card.is-revealed .testimonial-card__avatar {
  animation: avatarPop 0.7s var(--ease-out-expo) 0.05s both;
}
.testimonial-card__meta { min-width: 0; }
.testimonial-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.2;
}
.testimonial-card__city {
  font-size: 11px;
  color: var(--on-surface-variant);
  margin-top: 2px;
}

/* ─── Mobile: smaller cards, slower scroll ─────────────── */
@media (max-width: 480px) {
  .testimonial-card { width: 300px; padding: 22px 18px 18px; }
  .testimonial-card__quote-text { font-size: 13px; }
}

/* ─── Reduced motion overrides for Phase 7 ────────────── */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; transform: none !important; }
  .testimonial-card { transform: none !important; }
  .testimonial-card__quote,
  .testimonial-card__avatar,
  .testimonial-card__stars .material-symbols-outlined {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =============================================================
   PHASE 8 — APP DEMO PRODUCT TOUR
   Section, phone, 4 step screens, callouts, tabs.
   ============================================================= */

/* Tour callouts (left + right columns) */
.tour-callout {
  position: relative;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: blur(6px);
  transition: border-color 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo);
}
[data-tour-callouts="right"] .tour-callout { transform: translate3d(0, 18px, 0); }
[data-tour-callouts="left"]  .tour-callout { transform: translate3d(0, 18px, 0); }

.tour-callout.is-active {
  border-color: rgba(215, 255, 63, 0.35);
  background: linear-gradient(160deg, rgba(215, 255, 63, 0.06) 0%, rgba(164, 130, 255, 0.04) 100%);
  box-shadow: 0 0 32px rgba(215, 255, 63, 0.12);
}

#app-demo.is-revealed .tour-callout {
  animation: tourCalloutIn 0.7s var(--ease-out-expo) both;
}
#app-demo.is-revealed .tour-callout[data-step-callout="1"] { animation-delay: 100ms; }
#app-demo.is-revealed .tour-callout[data-step-callout="2"] { animation-delay: 200ms; }
#app-demo.is-revealed .tour-callout[data-step-callout="3"] { animation-delay: 300ms; }
#app-demo.is-revealed .tour-callout[data-step-callout="4"] { animation-delay: 400ms; }

.tour-callout__num {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--neon-lime);
  margin-bottom: 8px;
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid rgba(215, 255, 63, 0.3);
  border-radius: 999px;
  background: rgba(215, 255, 63, 0.06);
}
.tour-callout.is-active .tour-callout__num {
  background: var(--neon-lime);
  color: #0d1117;
}

/* Tour phone (center) */
.tour-phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19;
  border-radius: 38px;
  background: linear-gradient(160deg, #1a1f2a 0%, #0d1117 100%);
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 60px -20px rgba(215, 255, 63, 0.15);
  isolation: isolate;
}
.tour-phone::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 40px;
  background: conic-gradient(
    from 0deg,
    rgba(215, 255, 63, 0.0) 0deg,
    rgba(215, 255, 63, 0.4) 90deg,
    rgba(164, 130, 255, 0.4) 180deg,
    rgba(215, 255, 63, 0.4) 270deg,
    rgba(215, 255, 63, 0.0) 360deg
  );
  z-index: -1;
  animation: phoneHoloShift 8s linear infinite;
}
.tour-phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
}
.tour-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  overflow: hidden;
}

/* Tour screen states (only one .is-active) */
.tour-screen {
  position: absolute;
  inset: 0;
  padding: 38px 18px 18px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}
.tour-screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  animation: tourScreenIn 0.5s var(--ease-out-expo) both;
}
.tour-screen__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface);
  padding: 0 6px;
  margin-bottom: 14px;
}
.tour-live {
  color: #ff5b5b;
  font-size: 9px;
  letter-spacing: 0.1em;
  animation: tourLiveDot 1.4s var(--ease-in-out-quart) infinite;
}
.tour-screen__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100% - 30px);
}
.tour-screen__body--center { justify-content: center; align-items: center; text-align: center; }
.tour-screen__body--scan   { padding: 8px 0; }
.tour-screen__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-lime) 0%, var(--purple) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 0 32px rgba(215, 255, 63, 0.3);
}
.tour-screen__avatar .material-symbols-outlined {
  font-size: 32px;
  color: #0d1117;
  font-variation-settings: 'FILL' 1, 'wght' 700;
}
.tour-screen__h {
  font-size: 18px;
  font-weight: 800;
  color: var(--on-surface);
  font-family: var(--font-headline);
}
.tour-screen__sub {
  font-size: 12px;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
}
.tour-goal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-bottom: 10px;
}
.tour-goal__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface);
  text-align: left;
}
.tour-goal__chip .material-symbols-outlined {
  font-size: 16px;
  color: var(--on-surface-variant);
}
.tour-goal__chip.is-active {
  background: rgba(215, 255, 63, 0.10);
  border-color: var(--neon-lime);
  color: var(--neon-lime);
  box-shadow: 0 0 0 1px var(--neon-lime), 0 0 18px rgba(215, 255, 63, 0.2);
}
.tour-goal__chip.is-active .material-symbols-outlined { color: var(--neon-lime); }

.tour-screen__progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin: 4px 0 8px;
}
.tour-screen__bar {
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--neon-lime) 0%, var(--purple) 100%);
  border-radius: 2px;
  transform-origin: left center;
  animation: tourBarFill 1.4s var(--ease-out-expo) 0.4s both;
}
.tour-screen__btn {
  width: 100%;
  padding: 10px 14px;
  background: var(--on-surface);
  color: #0d1117;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-headline);
}
.tour-screen__btn--lime {
  background: var(--neon-lime);
  color: #0d1117;
  box-shadow: 0 0 24px rgba(215, 255, 63, 0.4);
}

/* Step 2: Viewfinder — full mode-aware version (see Phase 8.5 below for duplicated legacy block removed) */
.tour-result {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(215, 255, 63, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}
.tour-result__name {
  font-size: 14px;
  font-weight: 800;
  color: var(--neon-lime);
  font-family: var(--font-headline);
}
.tour-result__conf {
  font-size: 10px;
  color: var(--on-surface-variant);
  margin: 2px 0 6px;
}
.tour-result__macros {
  display: flex;
  justify-content: space-around;
  font-size: 9px;
  color: var(--on-surface-variant);
}
.tour-result__macros b {
  color: var(--on-surface);
  font-weight: 700;
  margin-right: 2px;
}

/* Step 3: Workout */
.tour-hr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255, 91, 91, 0.08) 0%, rgba(255, 91, 91, 0.02) 100%);
  border: 1px solid rgba(255, 91, 91, 0.2);
  border-radius: 12px;
}
.tour-hr__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 91, 91, 0.15);
  display: flex; align-items: center; justify-content: center;
  animation: tourHeartBeat 1.2s var(--ease-in-out-quart) infinite;
}
.tour-hr__icon .material-symbols-outlined {
  color: #ff5b5b;
  font-size: 18px;
  font-variation-settings: 'FILL' 1;
}
.tour-hr__value {
  font-size: 24px;
  font-weight: 800;
  color: var(--on-surface);
  font-family: var(--font-headline);
  line-height: 1;
}
.tour-hr__unit {
  font-size: 9px;
  color: var(--on-surface-variant);
  letter-spacing: 0.1em;
}
.tour-hr__ecg {
  flex: 1;
  height: 28px;
  margin-left: 8px;
}
.tour-hr__line {
  fill: none;
  stroke: #ff5b5b;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  filter: drop-shadow(0 0 4px rgba(255, 91, 91, 0.6));
  animation: tourEcgDraw 1.6s var(--ease-in-out-quart) infinite;
}

.tour-workout {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tour-workout__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  font-size: 11px;
  color: var(--on-surface);
  border-left: 2px solid transparent;
}
.tour-workout__row.is-done {
  background: rgba(215, 255, 63, 0.04);
  color: var(--on-surface-variant);
  border-left-color: var(--neon-lime);
}
.tour-workout__row.is-done .tour-workout__check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--neon-lime);
  color: #0d1117;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.tour-workout__row.is-active {
  background: rgba(215, 255, 63, 0.08);
  border-left-color: var(--neon-lime);
  box-shadow: 0 0 16px rgba(215, 255, 63, 0.1);
}
.tour-workout__row.is-active .tour-workout__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--neon-lime);
  flex-shrink: 0;
  position: relative;
}
.tour-workout__row.is-active .tour-workout__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--neon-lime);
  opacity: 0.4;
  animation: tourLiveDot 1.4s var(--ease-in-out-quart) infinite;
}
.tour-workout__row:not(.is-done):not(.is-active) .tour-workout__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.tour-workout__row > span:nth-child(2) { flex: 1; font-weight: 600; }
.tour-workout__t { font-size: 9px; color: var(--on-surface-variant); }

/* Step 4: Progress */
.tour-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.tour-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}
.tour-stat__v {
  font-size: 12px;
  font-weight: 800;
  color: var(--on-surface);
  font-family: var(--font-headline);
  min-width: 60px;
}
.tour-stat__l {
  font-size: 9px;
  color: var(--on-surface-variant);
  flex: 1;
}
.tour-stat__bar {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.tour-stat__fill {
  position: absolute;
  inset: 0;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--neon-lime) 0%, var(--purple) 100%);
  transform-origin: left center;
  animation: tourBarFill 1.4s var(--ease-out-expo) 0.4s both;
}
.tour-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 8px auto 0;
}
.tour-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tour-ring__bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 6;
}
.tour-ring__fg {
  fill: none;
  stroke: var(--neon-lime);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
  filter: drop-shadow(0 0 6px rgba(215, 255, 63, 0.6));
  animation: tourRingFill 1.6s var(--ease-out-expo) 0.3s both;
}
.tour-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tour-ring__pct {
  font-size: 22px;
  font-weight: 800;
  color: var(--neon-lime);
  font-family: var(--font-headline);
  line-height: 1;
}
.tour-ring__l {
  font-size: 8px;
  color: var(--on-surface-variant);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Tour tabs */
.tour-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.tour-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  color: var(--on-surface-variant);
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}
.tour-tab__num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.6;
}
.tour-tab:hover { color: var(--on-surface); border-color: rgba(255,255,255,0.2); }
.tour-tab.is-active {
  background: rgba(215, 255, 63, 0.10);
  border-color: var(--neon-lime);
  color: var(--neon-lime);
  box-shadow: 0 0 18px rgba(215, 255, 63, 0.15);
}
.tour-tab.is-active .tour-tab__num { opacity: 1; }

/* Mobile: stack callouts above phone, hide on small screens */
@media (max-width: 1023px) {
  [data-tour-callouts] { display: none !important; }
  .tour-phone { max-width: 280px; }
}

/* =============================================================
   PHASE 8 — ARABIC FOOD MARQUEE
   Edge-faded infinite-scroll pill rail of MENA dishes.
   ============================================================= */

.food-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  padding: 24px 0;
  overflow: hidden;
}
.food-marquee {
  overflow: hidden;
  width: 100%;
}
.food-marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}
.food-marquee:hover .food-marquee__track {
  animation-play-state: paused;
}
.food-marquee__track[dir-anim="left"]  { animation: foodMarqueeScroll         var(--food-marquee-duration, 40s) linear infinite; }
.food-marquee__track[dir-anim="right"] { animation: foodMarqueeScrollReverse  var(--food-marquee-duration, 40s) linear infinite; }

.food-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 280px;
  flex-shrink: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.food-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), var(--card-glow, rgba(196,255,0,0.18)), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
  pointer-events: none;
}
.food-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--card-glow-border, rgba(215, 255, 63, 0.4));
  z-index: 2;
}
.food-card:hover::after { opacity: 1; }
.food-card[data-color="lime"] {
  --card-glow: rgba(215, 255, 63, 0.18);
  --card-glow-border: rgba(215, 255, 63, 0.4);
}
.food-card[data-color="purple"] {
  --card-glow: rgba(164, 130, 255, 0.20);
  --card-glow-border: rgba(164, 130, 255, 0.4);
}
.food-card__emoji {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  transition: transform 0.4s var(--ease-out-expo);
}
.food-card:hover .food-card__emoji {
  transform: scale(1.18) rotate(-6deg);
}

/* Phase 5: real food photography replaces emoji where a photo exists */
.food-card__photo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}
.food-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}
.food-card:hover .food-card__photo img {
  transform: scale(1.1);
}
.food-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.food-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.1;
}
.food-card__ar {
  font-size: 11px;
  color: var(--on-surface-variant);
  font-weight: 500;
  font-family: var(--font-body);
}
.food-card__kcal {
  font-size: 12px;
  font-weight: 800;
  color: var(--neon-lime);
  font-family: var(--font-headline);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.food-card[data-color="purple"] .food-card__kcal { color: var(--purple); }
.food-card__kcal span {
  font-size: 9px;
  font-weight: 600;
  color: var(--on-surface-variant);
  letter-spacing: 0.1em;
}
.food-card__macros {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--on-surface-variant);
  margin-top: 2px;
  flex-wrap: wrap;
}
.food-card__macros b {
  color: var(--on-surface);
  font-weight: 700;
  margin-left: 1px;
}
.food-card__p, .food-card__c, .food-card__f {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.food-card__p::after, .food-card__c::after, .food-card__f::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--p, 0%);
  background: currentColor;
}
.food-card__p { color: var(--neon-lime); }
.food-card__c { color: var(--purple); }
.food-card__f { color: #FFB347; }

@media (max-width: 480px) {
  .food-card { width: 240px; padding: 12px 14px; }
  .food-card__emoji { font-size: 28px; }
}

/* =============================================================
   PHASE 8 — RAMADAN MODE INTERACTIVE
   Toggle, 24h clock with arcs, stat rows, bottom CTA.
   ============================================================= */

.ramadan-card {
  position: relative;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
  overflow: hidden;
}
.ramadan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at 50% 0%, rgba(215, 255, 63, 0.06) 0%, transparent 60%);
  pointer-events: none;
  transition: background 0.6s var(--ease-out-expo);
}
.ramadan-card[data-mode="ramadan"]::before {
  background: radial-gradient(800px circle at 50% 0%, rgba(164, 130, 255, 0.10) 0%, rgba(215, 255, 63, 0.04) 50%, transparent 70%);
}
.ramadan-card[data-mode="ramadan"] {
  border-color: rgba(164, 130, 255, 0.2);
}

/* Toggle */
.ramadan-toggle {
  position: relative;
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 32px;
  display: flex;
  width: fit-content;
  left: 50%;
  transform: translateX(-50%);
}
.ramadan-toggle__opt {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--on-surface-variant);
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s var(--ease-out-expo);
  white-space: nowrap;
}
.ramadan-toggle__opt .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'FILL' 1;
}
.ramadan-toggle__ar {
  font-size: 11px;
  font-weight: 500;
  color: var(--on-surface-variant);
  font-family: var(--font-body);
  margin-inline-start: 4px;
}
.ramadan-toggle__opt.is-active {
  color: #0d1117;
}
.ramadan-toggle__opt.is-active .ramadan-toggle__ar { color: rgba(13, 17, 23, 0.6); }
.ramadan-toggle__pill {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--neon-lime);
  border-radius: 999px;
  transition: transform 0.5s var(--ease-out-expo), background 0.5s var(--ease-out-expo);
  box-shadow: 0 4px 18px rgba(215, 255, 63, 0.4);
}
.ramadan-card[data-mode="ramadan"] .ramadan-toggle__pill {
  transform: translateX(100%);
  background: var(--purple);
  box-shadow: 0 4px 18px rgba(164, 130, 255, 0.4);
}

/* Grid: clock on left, stats on right */
.ramadan-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .ramadan-grid { grid-template-columns: 1fr; }
  .ramadan-card { padding: 24px 18px; }
}

/* 24h clock */
.ramadan-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ramadan-clock__face {
  position: relative;
  width: 240px;
  height: 240px;
  opacity: 0;
  transform: scale(0.85) rotate(-30deg);
}
#ramadan.is-revealed .ramadan-clock__face {
  animation: ramadanClockIn 0.9s var(--ease-out-expo) 0.2s both;
}
.ramadan-clock__face svg { width: 100%; height: 100%; }
.ramadan-clock__ring {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 24;
}
.ramadan-arc {
  fill: none;
  stroke-width: 24;
  stroke-linecap: butt;
  stroke-dasharray: 200;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s var(--ease-out-expo);
}
.ramadan-arc--workout   { stroke: var(--neon-lime); }
.ramadan-arc--meals     { stroke: var(--purple); }
.ramadan-arc--hydration { stroke: #5FC9FF; }
.ramadan-arc--sleep     { stroke: #6E7681; }
[data-ramadan-card][data-mode="ramadan"] .ramadan-arc--workout   { stroke: var(--purple); }
[data-ramadan-card][data-mode="ramadan"] .ramadan-arc--meals     { stroke: var(--neon-lime); }

.ramadan-clock__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ramadan-clock__crescent {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.ramadan-clock__crescent svg { width: 100%; height: 100%; }
.ramadan-clock__crescent svg path { fill: var(--neon-lime); }
.ramadan-card[data-mode="ramadan"] .ramadan-clock__crescent {
  opacity: 1;
  transform: rotate(0) scale(1);
  animation: ramadanCrescentGlow 2.4s var(--ease-in-out-quart) infinite;
}
.ramadan-clock__time {
  font-size: 28px;
  font-weight: 800;
  color: var(--on-surface);
  font-family: var(--font-headline);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ramadan-clock__label {
  font-size: 10px;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 4px;
}
.ramadan-clock__mark {
  position: absolute;
  font-size: 9px;
  font-weight: 800;
  color: var(--on-surface-variant);
  font-family: var(--font-headline);
  letter-spacing: 0.1em;
  opacity: 0.5;
}
.ramadan-clock__mark--12 { top: 6px;     left: 50%; transform: translateX(-50%); }
.ramadan-clock__mark--3  { right: 8px;    top: 50%;  transform: translateY(-50%); }
.ramadan-clock__mark--6  { bottom: 6px;   left: 50%; transform: translateX(-50%); }
.ramadan-clock__mark--9  { left: 8px;     top: 50%;  transform: translateY(-50%); }

.ramadan-clock__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 10px;
  color: var(--on-surface-variant);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ramadan-legend__item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ramadan-legend__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c, var(--neon-lime));
  box-shadow: 0 0 8px var(--c, var(--neon-lime));
}

/* Stat rows */
.ramadan-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ramadan-stat {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.4s var(--ease-out-expo);
}
.ramadan-stat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ramadan-stat__head .material-symbols-outlined {
  font-size: 20px;
  color: var(--neon-lime);
  font-variation-settings: 'FILL' 1;
}
.ramadan-stat[data-ramadan-stat="intensity"] .ramadan-stat__head .material-symbols-outlined { color: var(--purple); }
.ramadan-stat[data-ramadan-stat="calories"]  .ramadan-stat__head .material-symbols-outlined { color: #FFB347; }
.ramadan-stat__l {
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
  font-family: var(--font-headline);
  line-height: 1.1;
}
.ramadan-stat__l-ar {
  font-size: 10px;
  color: var(--on-surface-variant);
  margin-top: 2px;
  font-family: var(--font-body);
}
.ramadan-stat__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.ramadan-stat__side {
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  text-align: center;
}
.ramadan-stat__side:last-child {
  border-color: rgba(215, 255, 63, 0.2);
  background: rgba(215, 255, 63, 0.05);
}
.ramadan-card[data-mode="ramadan"] .ramadan-stat__side:last-child {
  border-color: rgba(164, 130, 255, 0.3);
  background: rgba(164, 130, 255, 0.06);
}
.ramadan-stat__k {
  font-size: 9px;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 4px;
}
.ramadan-stat__k--ram {
  color: var(--neon-lime);
}
.ramadan-card[data-mode="ramadan"] .ramadan-stat__k--ram {
  color: var(--purple);
}
.ramadan-stat__v {
  font-size: 16px;
  font-weight: 800;
  color: var(--on-surface);
  font-family: var(--font-headline);
  line-height: 1.1;
}
.ramadan-stat__v--ram {
  color: var(--neon-lime);
}
.ramadan-card[data-mode="ramadan"] .ramadan-stat__v--ram {
  color: var(--purple);
}
.ramadan-stat__arrow {
  font-size: 18px;
  color: var(--on-surface-variant);
  opacity: 0.4;
  font-weight: 800;
}

/* Bottom CTA */
.ramadan-cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.ramadan-cta__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
  font-family: var(--font-headline);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.ramadan-cta__star {
  color: var(--neon-lime);
  font-size: 16px;
  display: inline-block;
  animation: ramadanStarTwinkle 2.4s var(--ease-in-out-quart) infinite;
}
.ramadan-cta__ar {
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 500;
  font-family: var(--font-body);
  margin-inline-start: 4px;
}
.ramadan-cta__cities {
  font-size: 11px;
  color: var(--on-surface-variant);
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 500;
}
.ramadan-cta__cities span:nth-child(odd) { color: var(--on-surface); }

/* Step 2: Viewfinder */
.tour-viewfinder {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a2030 0%, #0d1117 100%);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}
.tour-viewfinder__corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--neon-lime);
  transition: border-color 0.4s var(--ease-out-expo);
  z-index: 3;
}
.tour-viewfinder__corner--tl { top: 10px; left: 10px;  border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.tour-viewfinder__corner--tr { top: 10px; right: 10px; border-left: 0;  border-bottom: 0; border-top-right-radius: 4px; }
.tour-viewfinder__corner--bl { bottom: 10px; left: 10px;  border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.tour-viewfinder__corner--br { bottom: 10px; right: 10px; border-left: 0;  border-top: 0; border-bottom-right-radius: 4px; }
.tour-viewfinder__line {
  position: absolute;
  left: 10px; right: 10px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--neon-lime) 50%, transparent 100%);
  box-shadow: 0 0 12px var(--neon-lime);
  animation: tourScanLine 2.4s var(--ease-in-out-quart) infinite;
  z-index: 2;
  transition: background 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.tour-viewfinder[data-mode="label"] .tour-viewfinder__line {
  background: linear-gradient(90deg, transparent 0%, #5FC9FF 50%, transparent 100%);
  box-shadow: 0 0 12px #5FC9FF;
  animation-duration: 1.8s;
}
.tour-viewfinder[data-mode="barcode"] .tour-viewfinder__line,
.tour-viewfinder[data-mode="barcode"] .tour-barcode__laser {
  background: linear-gradient(180deg, transparent 0%, #FF5B5B 50%, transparent 100%);
  box-shadow: 0 0 14px #FF5B5B;
  animation-duration: 1.4s;
}
.tour-viewfinder[data-mode="barcode"] .tour-viewfinder__corner { border-color: #FF5B5B; }
.tour-viewfinder[data-mode="label"]   .tour-viewfinder__corner { border-color: #5FC9FF; }

.tour-viewfinder__food {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.2));
}

/* Viewfinder panes: only one .is-active at a time */
.tour-vf-pane {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}
.tour-vf-pane.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* ─── Mode tabs (inside the scan screen) ─────────────── */
.tour-modes {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  margin-bottom: 10px;
  width: 100%;
}
.tour-mode {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--on-surface-variant);
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}
.tour-mode .material-symbols-outlined {
  font-size: 13px;
  font-variation-settings: 'FILL' 1;
}
.tour-mode:hover { color: var(--on-surface); }
.tour-mode.is-active {
  background: var(--neon-lime);
  color: #0d1117;
  box-shadow: 0 0 12px rgba(215, 255, 63, 0.4);
}
.tour-mode[data-tour-mode="label"].is-active {
  background: #5FC9FF;
  color: #0d1117;
  box-shadow: 0 0 12px rgba(95, 201, 255, 0.4);
}
.tour-mode[data-tour-mode="barcode"].is-active {
  background: #FF5B5B;
  color: #0d1117;
  box-shadow: 0 0 12px rgba(255, 91, 91, 0.4);
}

/* ─── Label (nutrition facts) inside viewfinder ─────── */
.tour-label {
  width: 76%;
  background: #f5f0e1;
  color: #1a1a1a;
  padding: 6px 7px;
  border-radius: 3px;
  font-family: var(--font-sans);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  animation: labelIn 0.5s var(--ease-out-expo) both;
}
.tour-label__title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.tour-label__rule {
  height: 1px;
  background: #1a1a1a;
  margin: 2px 0;
}
.tour-label__rule:not(:first-of-type) { opacity: 0.7; }
.tour-label__row {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  line-height: 1.4;
}
.tour-label__row b { font-weight: 800; }
.tour-label__row--big {
  font-size: 11px;
  font-weight: 800;
  margin: 1px 0;
}
.tour-label__row--big b { font-size: 14px; }
.tour-label__row--small { font-size: 7px; opacity: 0.7; }

/* ─── Barcode inside viewfinder ─────────────────────── */
.tour-barcode {
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.tour-barcode svg {
  width: 100%;
  height: 56px;
  background: #fff;
  border-radius: 2px;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.tour-barcode__bars rect {
  fill: #0d1117;
}
.tour-barcode__laser {
  stroke: #FF5B5B;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px #FF5B5B);
  animation: barcodeLaser 1.4s var(--ease-in-out-quart) infinite;
}
.tour-barcode__num {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--neon-lime);
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 6px rgba(215, 255, 63, 0.4);
}
@media (prefers-reduced-motion: reduce) {
  .tour-phone::before,
  .tour-tab,
  .tour-screen,
  .tour-callout,
  .tour-screen__bar,
  .tour-stat__fill,
  .tour-ring__fg,
  .tour-hr__icon,
  .tour-hr__line,
  .tour-live,
  .tour-viewfinder__line,
  .ramadan-clock__face,
  .ramadan-clock__crescent,
  .ramadan-toggle__pill,
  .ramadan-cta__star,
  .food-marquee__track {
    animation: none !important;
    transform: none !important;
  }
  .tour-screen, .tour-callout, .ramadan-clock__crescent {
    opacity: 1 !important;
  }
  .tour-screen:not(.is-active) { opacity: 0 !important; pointer-events: none; }
}
