/* ===========================================================================
   Carbly — v7 Clinic design system
   carbly.pro landing redesign — Remotion hero film
   =========================================================================== */

/* ---------- Tokens (light) ---------- */
:root {
  --ink: #0F1112;
  --ink-elevated: #1A1D20;
  --accent: #1F6FEB;
  --bone: #F4F3F0;
  --bone-2: #EFEEEA;
  --surface: #FFFFFF;
  --surface-raised: #FAFAF7;
  --line: #E2E1DD;
  --line-2: #EFEEEA;
  --text-primary: #0F1112;
  --text-secondary: #3A3D40;
  --text-tertiary: #6B6E70;

  /* Macro identity */
  --macro-carb: #1F6FEB;
  --macro-carb-tint: #E6EFFD;
  --macro-fat: #C8932B;
  --macro-fat-tint: #F6ECD4;
  --macro-protein: #A8347A;
  --macro-protein-tint: #F4DAEA;
  --electrolyte-na: #4A7BA8;
  --electrolyte-k: #2F8C7A;
  --electrolyte-mg: #8B5CB6;
  --status-ok: #1B7F4E;

  /* Brand greens (from app scan-result gradient — observed) */
  --carbly-green: #4F7A2B;
  --carbly-green-deep: #2E4E1B;

  --header-backdrop: rgba(244, 243, 240, 0.82);

  /* Spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-28: 112px;

  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-card: 14px; --r-lg: 18px; --r-xl: 24px;
  --r-button: 10px; --r-pill: 999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Inter", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EDEAE3;
    --ink-elevated: #F4F3F0;
    --accent: #5A9CFF;
    --bone: #0F1112;
    --bone-2: #15171A;
    --surface: #15171A;
    --surface-raised: #1B1E22;
    --line: #2A2D31;
    --line-2: #1F2226;
    --text-primary: #EDEAE3;
    --text-secondary: #A6ADB3;
    --text-tertiary: #7A8086;
    --macro-carb-tint: #1A2540;
    --macro-fat-tint: #2E2616;
    --macro-protein-tint: #2E1224;
    --header-backdrop: rgba(15, 17, 18, 0.78);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
/* Safety net against accidental horizontal scroll on phones. `clip` (not `hidden`)
   keeps the sticky header working because it does not establish a scroll container. */
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.018em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  padding: 12px 16px; background: var(--ink); color: var(--bone);
  border-radius: var(--r-button); font-weight: 500;
}
.skip-link:focus { left: 16px; top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Atoms ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--ink { color: var(--text-primary); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide { max-width: 1320px; }

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
  margin: 0;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: var(--r-button);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--ink-elevated); }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #0F1112; }
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface-raised); border-color: var(--text-tertiary); }
.btn-link {
  background: transparent;
  color: var(--text-primary);
  padding: 0;
  height: auto;
}
.btn-link::after { content: " →"; }
.btn-link:hover { text-decoration: underline; }

/* App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px 0 18px;
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--r-button);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1px;
  transition: background-color .15s ease;
}
@media (prefers-color-scheme: dark) {
  .appstore-badge { color: #0F1112; }
}
.appstore-badge:hover { background: var(--ink-elevated); text-decoration: none; }
.appstore-badge__icon { width: 22px; height: 22px; flex-shrink: 0; }
.appstore-badge__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 3px;
}
.appstore-badge__small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.7;
}
.appstore-badge__big { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* ===========================================================================
   Header
   =========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: var(--header-backdrop);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1320px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.site-header__brand:hover { text-decoration: none; }
.site-header__icon { width: 28px; height: 28px; border-radius: 7px; }
.site-header__nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header__nav a {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.site-header__nav a:hover { color: var(--text-primary); text-decoration: none; }
.site-header__cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--r-button);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
}
@media (prefers-color-scheme: dark) {
  .site-header__cta { color: #0F1112; }
}
.site-header__cta:hover { background: var(--ink-elevated); text-decoration: none; }

@media (max-width: 720px) {
  .site-header__nav { display: none; }
}

/* ===========================================================================
   HERO — copy + Remotion film
   =========================================================================== */
.hero {
  padding: 80px 0 32px;
  position: relative;
}
.hero__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero__copy {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
.hero__lead { display: flex; flex-direction: column; gap: 22px; }
.hero__lead-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ship-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-primary);
}
.ship-pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--status-ok);
  box-shadow: 0 0 0 4px rgba(27, 127, 78, 0.16);
  animation: pulse-ok 2.4s ease-in-out infinite;
}
@keyframes pulse-ok {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27,127,78,0.18); }
  50% { box-shadow: 0 0 0 6px rgba(27,127,78,0); }
}
.hero__version {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0;
}
.hero__h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__h1-period { color: var(--accent); }
.hero__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 8px;
}
.hero__subhead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 44ch;
}
.hero__meta-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__meta-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.hero__meta-val .mono { font-family: var(--font-mono); font-weight: 500; font-size: 18px; }

@media (max-width: 880px) {
  .hero { padding: 56px 0 24px; }
  .hero__copy { grid-template-columns: 1fr; gap: 32px; align-items: start; margin-bottom: 32px; }
  .hero__h1 { font-size: clamp(52px, 14vw, 96px); }
}

/* ---------- The Film (hero video) ---------- */
.film {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #0B0D0F;
  border: 1px solid var(--line);
}
.film__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(110% 60% at 50% -10%, #1A1F25 0%, #0B0D0F 60%, #060708 100%);
  overflow: hidden;
  isolation: isolate;
}
.film__stage::before {
  /* subtle film grain via repeating noise */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.04) 50%, transparent 51%),
    radial-gradient(1px 1px at 67% 73%, rgba(255,255,255,0.03) 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 88%, rgba(255,255,255,0.03) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 22%, rgba(255,255,255,0.04) 50%, transparent 51%);
  background-size: 220px 220px;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}
.film__stage::after {
  /* vignette */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  z-index: 4;
}

.film__chrome {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  color: rgba(237, 234, 227, 0.7);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.film__chrome-left, .film__chrome-right { display: inline-flex; align-items: center; gap: 10px; }
.film__rec {
  width: 8px; height: 8px; border-radius: 50%;
  background: #E27062;
  box-shadow: 0 0 0 0 rgba(226, 112, 98, 0.45);
  animation: rec-pulse 1.4s ease-in-out infinite;
}
@keyframes rec-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,112,98,0.45); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(226,112,98,0); opacity: 0.7; }
}

.film__caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(11, 13, 15, 0.7);
  border: 1px solid rgba(237, 234, 227, 0.12);
  border-radius: var(--r-pill);
  color: rgba(237, 234, 227, 0.92);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.film__caption.is-visible { opacity: 1; }
.film__caption-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* Phone in stage */
.film__phone {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 24vw, 320px);
  aspect-ratio: 1320 / 2868;
  border-radius: 42px;
  background: #1a1d20;
  padding: 8px;
  z-index: 2;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(237,234,227,0.08);
}
.film__phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--surface);
}
.film__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 22px;
  background: #0a0c0d;
  border-radius: 16px;
  z-index: 30;
}

/* Scenes inside phone */
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}
.scene.is-active { opacity: 1; visibility: visible; }

/* ---- Scene: viewfinder ---- */
.scene-cam {
  background:
    radial-gradient(120% 80% at 50% 40%, #1c1f22 0%, #0c0e10 70%, #050607 100%);
  color: #EDEAE3;
  overflow: hidden;
}
.scene-cam__top {
  position: absolute;
  top: 34px; left: 14px; right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(237,234,227,0.6);
  z-index: 4;
}
.scene-cam__chip {
  padding: 4px 8px;
  border: 1px solid rgba(237,234,227,0.16);
  border-radius: 999px;
  background: rgba(15, 17, 18, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.scene-cam__modes {
  position: absolute;
  top: 64px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(237,234,227,0.32);
  z-index: 4;
}
.scene-cam__modes .is-current { color: #F5C84A; }

/* The plate slot — meal photo positioned in viewfinder */
.scene-cam__meal {
  position: absolute;
  top: 50%; left: 50%;
  width: 70%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-3deg);
  z-index: 2;
  border-radius: 14px;
  overflow: hidden;
  background-color: #1a1815;
  background-image:
    var(--meal-photo, repeating-linear-gradient(45deg, #2a2622 0 10px, #1f1d1a 10px 20px));
  background-size: cover;
  background-position: center;
  box-shadow:
    0 22px 30px rgba(0,0,0,0.55),
    0 6px 14px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(245, 200, 74, 0.1);
}
/* Hidden image-slot — drop target for users; positioned over the meal */
.scene-cam__droptarget {
  position: absolute;
  top: 50%; left: 50%;
  width: 70%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-3deg);
  z-index: 6;
  pointer-events: none;
  opacity: 0;
}
.scene-cam__droptarget image-slot {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* Detection bounding box */
.scene-cam__bbox {
  position: absolute;
  top: 50%; left: 50%;
  width: 70%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1.5px solid #F5C84A;
  border-radius: 6px;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(245, 200, 74, 0.18), 0 0 18px rgba(245, 200, 74, 0.25);
  opacity: 0;
}
.scene-cam__bbox::before, .scene-cam__bbox::after {
  /* Corners accent */
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 2px solid #F5C84A;
}
.scene-cam__bbox::before {
  top: -2px; left: -2px;
  border-right: 0; border-bottom: 0;
}
.scene-cam__bbox::after {
  bottom: -2px; right: -2px;
  border-left: 0; border-top: 0;
}
.scene-cam__bbox-label {
  position: absolute;
  top: -22px; left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  background: #F5C84A;
  color: #0F1112;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 3px;
  white-space: nowrap;
}
.scene-cam__bbox-label::before {
  content: "";
  width: 5px; height: 5px;
  background: #0F1112;
  border-radius: 50%;
}

.scene-cam__reticle {
  position: absolute;
  top: 50%; left: 50%;
  width: 76%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}
.scene-cam__reticle svg {
  width: 100%; height: 100%; overflow: visible;
}
.scene-cam__reticle .corner {
  fill: none;
  stroke: rgba(237, 234, 227, 0.7);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.scene-cam__bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  z-index: 4;
}
.scene-cam__thumb {
  width: 30px; height: 30px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, #6b9a3c 0%, #4f7a2b 60%, #2e4e1b 100%);
  border: 1px solid rgba(237,234,227,0.25);
}
.scene-cam__shutter {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: transparent;
  border: 2.5px solid rgba(237,234,227,0.9);
  display: flex; align-items: center; justify-content: center;
}
.scene-cam__shutter::after {
  content: "";
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #EDEAE3;
  transition: transform .15s ease;
}
.scene-cam__shutter.is-press::after { transform: scale(0.82); background: #F5C84A; }
.scene-cam__switch {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(237,234,227,0.16);
  position: relative;
}
.scene-cam__switch::before {
  content: "↻";
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(237,234,227,0.85);
  font-size: 14px;
}

.flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}

/* ---- Scene: voice / talk-to-food ---- */
.scene-voice {
  background: var(--bone);
  color: var(--text-primary);
  padding-top: 36px;
  display: flex;
  flex-direction: column;
}
.scene-voice__top {
  position: absolute;
  top: 36px; left: 14px; right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}
.scene-voice__top .back { color: var(--accent); }
.scene-voice__photo {
  margin: 64px 18px 0;
  height: 100px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: #efeae0;
  border: 1px solid var(--line);
}
.scene-voice__photo-inner {
  position: absolute;
  inset: 0;
  background-color: #efeae0;
  background-image:
    var(--meal-photo, repeating-linear-gradient(45deg, #ece6d8 0 8px, #e3dccb 8px 16px));
  background-size: cover;
  background-position: center;
}
.scene-voice__photo-tag {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  background: rgba(15, 17, 18, 0.78);
  color: rgba(237,234,227,0.9);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.scene-voice__photo-tag::before {
  content: "";
  width: 5px; height: 5px;
  background: #F5C84A;
  border-radius: 50%;
}

.scene-voice__prompt {
  margin: 18px 18px 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.25;
}
.scene-voice__prompt-sub {
  margin: 4px 18px 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}

.scene-voice__wave {
  margin: 16px 18px 0;
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.scene-voice__wave .bar {
  width: 2.5px;
  background: var(--accent);
  border-radius: 999px;
  flex-shrink: 0;
  transform-origin: center;
  transition: height 0.08s linear;
}

.scene-voice__transcript {
  margin: 14px 18px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-primary);
  min-height: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: flex-start;
}
.scene-voice__transcript .word {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  font-weight: 500;
}
.scene-voice__transcript .word.is-shown {
  opacity: 1;
  transform: translateY(0);
}
.scene-voice__transcript .word .sep { color: var(--text-tertiary); margin-right: 4px; }

.scene-voice__mic {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(31, 111, 235, 0.4);
  animation: mic-pulse 1.4s ease-in-out infinite;
}
.scene-voice__mic svg { width: 20px; height: 20px; display: block; }
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 111, 235, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(31, 111, 235, 0); }
}

.flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}

/* ---- Scene: processing ---- */
.scene-proc {
  background: var(--bone);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 18px 24px;
}
.scene-proc__top {
  position: absolute;
  top: 34px; left: 14px; right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.scene-proc__card {
  position: relative;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background-color: #e8e3d6;
  background-image:
    var(--meal-photo, repeating-linear-gradient(45deg, #ece6d8 0 8px, #e3dccb 8px 16px));
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 36px -12px rgba(0,0,0,0.18), inset 0 -4px 16px rgba(0,0,0,0.04);
}
.scene-proc__beam {
  position: absolute;
  left: 0; right: 0;
  height: 28%;
  top: 0%;
  background: linear-gradient(180deg,
    rgba(31, 111, 235, 0.0) 0%,
    rgba(31, 111, 235, 0.45) 50%,
    rgba(31, 111, 235, 0.0) 100%);
  pointer-events: none;
  box-shadow: 0 0 24px rgba(31,111,235,0.4);
}
.scene-proc__beam-line {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1.5px;
  background: rgba(31,111,235,0.95);
  box-shadow: 0 0 14px rgba(31,111,235,0.95);
}
.scene-proc__status {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.scene-proc__dots {
  display: inline-flex;
  gap: 4px;
}
.scene-proc__dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: dot-bounce 0.9s ease-in-out infinite;
}
.scene-proc__dots span:nth-child(2) { animation-delay: 0.15s; }
.scene-proc__dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.scene-proc__sub {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.4;
  text-align: center;
  max-width: 80%;
}
.scene-proc__sub strong { color: var(--text-secondary); font-weight: 600; }

/* ---- Scene: result (the scan-result screen, in DOM) ---- */
.scene-result {
  background: var(--bone);
  overflow: hidden;
}
.scene-result__inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.scene-result__scroll {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform .8s cubic-bezier(0.5, 0, 0.2, 1);
}

/* Header — fixed height block, meal photo as background */
.scene-result__header {
  position: relative;
  height: 110px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #4f7a2b;
  background-image:
    linear-gradient(180deg, rgba(15,17,18,0.15) 0%, rgba(15,17,18,0.0) 30%, rgba(15,17,18,0.35) 100%),
    var(--meal-photo, radial-gradient(120% 80% at 50% -10%, #3a5a1c 0%, #4f7a2b 45%, #6b9a3c 80%, #7caa46 100%));
  background-size: cover, cover;
  background-position: center, center;
}
.scene-result__back {
  position: absolute;
  top: 30px;
  left: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 17, 18, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(237,234,227,0.95);
  font-size: 13px;
  z-index: 3;
}
.scene-result__share {
  position: absolute;
  top: 30px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 17, 18, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 3;
}

/* Plate — small circular thumb anchored bottom-right of header */
.scene-result__plate {
  display: none; /* hidden — photo is now the header */
}

/* Pill sits just under the photo header */
.scene-result__pill-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.scene-result__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #0F1112;
  color: #EDEAE3;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  transform: translateY(0);
}
.scene-result__pill-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #E27062;
}

/* Body content — proper flex flow with consistent gaps */
.scene-result__body {
  flex-shrink: 0;
  padding: 12px 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scene-result__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.15;
  max-width: 90%;
  margin: 0;
}
.scene-result__confidence {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}
.scene-result__confidence .dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary);
}
.scene-result__carbs-eyebrow {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 600;
}
.scene-result__carbs-dot {
  width: 6px; height: 6px;
  background: var(--macro-carb);
  border-radius: 2px;
}
.scene-result__carbs {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--macro-carb);
  line-height: 1;
  margin: 0;
}

.scene-result__health {
  flex-shrink: 0;
  margin: 14px 14px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scene-result__health-ring {
  position: relative;
  width: 38px; height: 38px;
  flex-shrink: 0;
}
.scene-result__health-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.scene-result__health-ring-track { fill: none; stroke: var(--bone-2); stroke-width: 4.5; }
.scene-result__health-ring-bar {
  fill: none; stroke: var(--status-ok); stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 145;
  stroke-dashoffset: 80;
}
.scene-result__health-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  color: var(--status-ok);
}
.scene-result__health-text {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
  flex: 1;
}
.scene-result__health-eyebrow {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}
.scene-result__health-body {
  font-size: 9.5px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.scene-result__macros {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 10px 14px 0;
}
.macro-chip {
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  padding: 7px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.macro-chip.fat { background: var(--macro-fat-tint); border-color: rgba(200, 147, 43, 0.3); }
.macro-chip.protein { background: var(--macro-protein-tint); border-color: rgba(168, 52, 122, 0.25); }
.macro-chip__label {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-tertiary);
}
.macro-chip.fat .macro-chip__label { color: var(--macro-fat); }
.macro-chip.protein .macro-chip__label { color: var(--macro-protein); }
.macro-chip__value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.scene-result__electro {
  flex-shrink: 0;
  margin: 10px 14px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.scene-result__electro-eyebrow {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}
.scene-result__electro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.electro-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5px 7px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--surface-raised);
  gap: 3px;
}
.electro-cell__top {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}
.electro-cell__dot {
  width: 5px; height: 5px; border-radius: 2px;
}
.electro-cell.na .electro-cell__dot { background: var(--electrolyte-na); }
.electro-cell.k .electro-cell__dot { background: var(--electrolyte-k); }
.electro-cell.mg .electro-cell__dot { background: var(--electrolyte-mg); }
.electro-cell__val {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.scene-result__note {
  flex-shrink: 0;
  margin: 10px 14px 14px;
  background: var(--macro-carb-tint);
  border-radius: var(--r-md);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.scene-result__note-eyebrow {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.scene-result__note-body {
  font-size: 9.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===========================================================================
   Transport (Remotion-style timeline)
   =========================================================================== */
.transport {
  background: #0B0D0F;
  color: rgba(237, 234, 227, 0.9);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border-top: 1px solid rgba(237,234,227,0.06);
}
.transport__playbtn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--ink);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color .15s ease;
}
.transport__playbtn:hover { background: #fff; }
.transport__playbtn svg { width: 14px; height: 14px; }
.transport__center {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.transport__track {
  position: relative;
  height: 22px;
  cursor: pointer;
}
.transport__track-rail {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(237,234,227,0.1);
  border-radius: 999px;
  overflow: hidden;
}
.transport__track-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
}
.transport__head {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bone);
  box-shadow: 0 0 0 2px var(--accent);
  pointer-events: none;
  left: 0;
}
.transport__markers {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.transport__marker {
  position: absolute;
  top: -6px;
  width: 1px;
  height: 16px;
  background: rgba(237,234,227,0.2);
}
.transport__chapters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(237,234,227,0.45);
}
.transport__chapter {
  text-align: left;
  padding: 0 4px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color .25s ease;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 9.5px;
}
.transport__chapter:hover { color: rgba(237,234,227,0.8); }
.transport__chapter.is-active { color: var(--accent); }
.transport__chapter span {
  display: block;
  font-size: 8.5px;
  color: rgba(237,234,227,0.35);
  margin-top: 2px;
  letter-spacing: 1.2px;
}
.transport__chapter.is-active span { color: rgba(237,234,227,0.7); }
.transport__time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: rgba(237,234,227,0.7);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.transport__time-current { color: var(--bone); }

/* ---------- Stats strip under film ---------- */
.film-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
}
.film-strip__cell {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.film-strip__cell + .film-strip__cell { border-left: 1px solid var(--line); }
.film-strip__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.film-strip__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.film-strip__sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

@media (max-width: 760px) {
  .film-strip { grid-template-columns: repeat(2, 1fr); }
  .film-strip__cell + .film-strip__cell { border-left: 0; }
  .film-strip__cell:nth-child(n+2) { border-top: 1px solid var(--line); }
  .film-strip__cell:nth-child(odd):not(:first-child) { border-left: 0; }
  .film-strip__cell:nth-child(2) { border-left: 1px solid var(--line); border-top: 0; }
  .film-strip__cell:nth-child(4) { border-left: 1px solid var(--line); }
}

/* Hero film on phones: the 16:9 stage is far too short for the (min) 220px
   phone mockup, clipping it ~143px top and bottom to a cramped sliver. Swap to
   a fixed portrait height so the whole phone sits inside it. Fixed height (not
   a portrait aspect-ratio) keeps the stage sane — an aspect-ratio would scale
   with width and balloon on larger screens. The 5 transport chapter labels
   ("AIM/SNAP/TALK/ANALYZE/LOG" + times) collide at this width, so hide them;
   the scrubber and in-stage scene caption still convey progress.
   (Placed after the .film__stage / .transport__chapters base rules so these
   overrides win on source order.) */
@media (max-width: 600px) {
  .film__stage { aspect-ratio: auto; height: 540px; }
  .transport__chapters { display: none; }
}

/* ===========================================================================
   Talk-to-your-food highlight
   =========================================================================== */
.talk {
  padding: 80px 0 24px;
  position: relative;
}
.talk__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.talk__copy { display: flex; flex-direction: column; gap: 18px; }
.talk__eye {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
}
.talk__eye::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-accent 2.2s ease-in-out infinite;
}
@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,111,235,0.45); }
  50% { box-shadow: 0 0 0 6px rgba(31,111,235,0); }
}
.talk__h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--text-primary);
  margin: 0;
}
.talk__h2 em {
  font-style: normal;
  color: var(--accent);
}
.talk__body {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 50ch;
}
.talk__quotes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.talk__quote {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-primary);
  width: max-content;
  max-width: 100%;
  letter-spacing: 0;
  text-transform: none;
}
.talk__quote::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
  background-image:
    radial-gradient(circle at 50% 35%, #fff 0 18%, transparent 19%);
}
.talk__quote::after {
  content: "→";
  margin-left: auto;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
}
.talk__quote .num {
  color: var(--accent);
  font-weight: 600;
  margin-left: 6px;
}
.talk__quote .label {
  color: var(--text-tertiary);
  margin-left: 6px;
  font-size: 10.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.talk__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.talk__caption::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--text-tertiary);
}

/* The waveform card on the right */
.talk__viz {
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--r-xl);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.talk__viz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(237,234,227,0.55);
  font-weight: 600;
}
.talk__viz-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(237,234,227,0.85);
}
.talk__viz-rec::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #F5C84A;
  box-shadow: 0 0 0 0 rgba(245, 200, 74, 0.45);
  animation: rec-pulse 1.4s ease-in-out infinite;
}
.talk__viz-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 84px;
}
.talk__viz-wave .bar {
  width: 3.5px;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: center;
  flex-shrink: 0;
}
.talk__viz-transcript {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.35;
  color: var(--bone);
  min-height: 70px;
}
.talk__viz-transcript .word {
  opacity: 0;
  transform: translateY(6px);
  display: inline-block;
  transition: opacity .25s ease, transform .25s ease;
}
.talk__viz-transcript .word.is-shown {
  opacity: 1;
  transform: translateY(0);
}
.talk__viz-transcript .sep {
  color: var(--accent);
  margin: 0 4px;
}
.talk__viz-impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(237,234,227,0.1);
  padding-top: 16px;
  margin-top: 4px;
}
.talk__viz-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.talk__viz-cell + .talk__viz-cell {
  padding-left: 14px;
  border-left: 1px solid rgba(237,234,227,0.1);
}
.talk__viz-cell-eye {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(237,234,227,0.5);
  font-weight: 600;
}
.talk__viz-cell-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.talk__viz-cell-val.is-up { color: var(--accent); }
.talk__viz-cell-val.is-up::before { content: "↑ "; }
.talk__viz-cell-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(237,234,227,0.45);
}

@media (max-width: 880px) {
  .talk__inner { grid-template-columns: 1fr; gap: 32px; }
  .talk__h2 { font-size: clamp(44px, 12vw, 76px); }
  /* Single-column grid items default to min-width:auto, which lets wide
     children (the max-content quote pills) blow the column past the viewport
     and force a horizontal scroll. Let the tracks shrink to the column. */
  .talk__copy, .talk__viz { min-width: 0; }
  .talk__quote { width: 100%; max-width: 100%; flex-wrap: wrap; row-gap: 4px; }
  .talk__viz-cell { min-width: 0; }
}

/* ===========================================================================
   Section heads
   =========================================================================== */
.section {
  padding: 96px 0;
  position: relative;
}
.section--alt { background: var(--bone-2); }
.section__head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-top: 16px;
}
.section__head p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 48ch;
}
@media (max-width: 840px) {
  .section { padding: 72px 0; }
  .section__head { grid-template-columns: 1fr; gap: 16px; align-items: start; margin-bottom: 40px; }
}

/* ===========================================================================
   Features — bento + screenshots
   =========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 18px;
}
.bento__cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.bento__cell--scan { grid-column: span 3; grid-row: span 2; min-height: 420px; padding: 0; }
.bento__cell--score { grid-column: span 3; min-height: 220px; background: var(--ink); color: var(--bone); }
.bento__cell--fast { grid-column: span 3; min-height: 220px; }
.bento__cell--track { grid-column: span 2; }
.bento__cell--electro { grid-column: span 2; }
.bento__cell--ai { grid-column: span 2; }

.bento__eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.bento__cell--score .bento__eyebrow { color: rgba(237, 234, 227, 0.55); }
.bento__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: inherit;
}
.bento__cell--scan .bento__title { font-size: 28px; }
.bento__body {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.bento__cell--score .bento__body { color: rgba(237,234,227,0.7); }

.bento__scan-frame {
  position: absolute;
  inset: auto 24px 0 auto;
  display: flex;
  justify-content: flex-end;
  padding-bottom: 0;
}
.bento__scan-frame picture, .bento__scan-frame img {
  width: 280px;
  max-width: 100%;
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: 0 -8px 32px -8px rgba(0,0,0,0.12);
}
.bento__scan-text {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 50%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.bento__score-num {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 8px;
}
.bento__score-bar {
  height: 4px;
  width: 60%;
  background: rgba(237,234,227,0.16);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
}
.bento__score-bar-fill {
  height: 100%;
  width: 78%;
  background: var(--accent);
  border-radius: inherit;
}
.bento__score-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(237,234,227,0.5);
  margin-top: 10px;
}

.bento__fast-zones {
  display: flex;
  gap: 4px;
  margin-top: auto;
}
.bento__fast-zone {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
}
.bento__fast-zone.is-current { background: var(--status-ok); }
.bento__fast-zone.is-past { background: var(--ink); }
.bento__fast-time {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.bento__fast-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.bento__fast-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 1.2px;
}

.bento__electro-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.bento__electro-line {
  display: grid;
  grid-template-columns: 12px 120px 1fr 52px;
  align-items: center;
  gap: 8px;
}
.bento__electro-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bento__electro-bar {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bento__electro-bar-fill {
  height: 100%;
  border-radius: inherit;
}
.bento__electro-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text-primary);
}
.bento__electro-dot {
  width: 10px; height: 10px; border-radius: 3px;
}

.bento__ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
  width: max-content;
  font-weight: 600;
}
.bento__ai-pill::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento__cell--scan { grid-column: span 4; grid-row: auto; min-height: 380px; }
  .bento__cell--score, .bento__cell--fast { grid-column: span 4; }
  .bento__cell--track, .bento__cell--electro, .bento__cell--ai { grid-column: span 4; min-height: 220px; }
  .bento__scan-text { right: 24px; }
  .bento__scan-frame { inset: auto 0 0 0; justify-content: center; }
  .bento__scan-frame img, .bento__scan-frame picture { width: 280px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell { grid-column: 1 !important; }

  /* Scan cell uses absolute positioning for the desktop 2-row hero layout,
     which collapses to an empty card with a clipped screenshot on phones.
     Re-flow it as a normal column: copy on top, screenshot rising in below. */
  .bento__cell--scan {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 24px 24px 0;
    gap: 18px;
  }
  .bento__scan-text { position: static; inset: auto; }
  .bento__scan-frame {
    position: static;
    inset: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 300px;
    margin: 0 -24px 0;
    padding: 0;
    overflow: hidden;
  }
  .bento__scan-frame img,
  .bento__scan-frame picture {
    width: 248px;
    height: auto;
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.16);
  }
}

/* ===========================================================================
   How it works
   =========================================================================== */
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
}
.how__step {
  padding: 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.how__step + .how__step { border-left: 1px solid var(--line); }
.how__num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 500;
  color: var(--text-tertiary);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.how__verb {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.how__body {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.how__tag {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  border-top: 1px solid var(--line-2);
}

@media (max-width: 760px) {
  .how { grid-template-columns: 1fr; }
  .how__step + .how__step { border-left: 0; border-top: 1px solid var(--line); }
}

/* "How it works" privacy footnote */
.how__foot {
  margin-top: 18px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-card);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.how__foot-eye {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 640px) {
  .how__foot { grid-template-columns: 1fr; gap: 6px; }
}

/* ===========================================================================
   Pricing — receipt
   =========================================================================== */
.pricing {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 36px 36px 28px;
}
.pricing__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 18px;
  margin-bottom: 22px;
}
.pricing__head-left { display: flex; flex-direction: column; gap: 6px; }
.pricing__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pricing__order {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-tertiary);
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.pricing__rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pricing__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.pricing__row:last-child { border-bottom: 0; }
.pricing__row-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pricing__row-name small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.pricing__row.is-best .pricing__row-name small { color: var(--accent); }
.pricing__row-cadence {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.pricing__row-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.pricing__includes {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.pricing__includes-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.pricing__bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.pricing__bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.45;
}
.pricing__bullet::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
}
.pricing__bullet strong { font-weight: 600; }
.pricing__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

@media (max-width: 560px) {
  .pricing { padding: 24px 20px; }
  .pricing__bullets { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Privacy band
   =========================================================================== */
.privacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.privacy__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 14px 0 18px;
}
.privacy__copy p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 48ch;
}
.privacy__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 24px;
}
.privacy__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.privacy__chip::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--status-ok);
}
.privacy__diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.privacy__diagram-row {
  display: grid;
  grid-template-columns: 110px 1fr 80px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-raised);
}
.privacy__diagram-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-tertiary);
}
.privacy__diagram-arrow {
  position: relative;
  height: 1px;
  background: var(--line);
}
.privacy__diagram-arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 6px solid var(--text-tertiary);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.privacy__diagram-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-tertiary);
  text-align: right;
}
.privacy__diagram-status.is-ok { color: var(--status-ok); }
.privacy__diagram-status.is-del { color: var(--text-tertiary); text-decoration: line-through; }
.privacy__diagram-foot {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 4px;
}

@media (max-width: 880px) {
  .privacy { grid-template-columns: 1fr; gap: 32px; }
}

/* ===========================================================================
   FAQ
   =========================================================================== */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__plus {
  width: 16px; height: 16px;
  flex-shrink: 0;
  position: relative;
}
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute;
  background: var(--text-tertiary);
}
.faq__plus::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq__plus::after { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); transition: transform .2s ease; }
.faq__item[open] .faq__plus::after { transform: translateX(-50%) rotate(90deg); }
.faq__body {
  padding: 0 26px 22px;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 70ch;
}

/* ===========================================================================
   Footer CTA + footer
   =========================================================================== */
.endcap {
  padding: 96px 0 80px;
}
.endcap__inner {
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--r-xl);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.endcap__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--bone);
}
.endcap__sub {
  margin-top: 18px;
  font-size: 18px;
  color: rgba(237,234,227,0.7);
  max-width: 40ch;
  line-height: 1.5;
}
.endcap__ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.endcap .appstore-badge {
  background: var(--bone);
  color: var(--ink);
}
.endcap .appstore-badge:hover { background: #fff; }
.endcap__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(237,234,227,0.55);
}

@media (max-width: 760px) {
  .endcap__inner { padding: 40px 28px; grid-template-columns: 1fr; gap: 28px; }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bone);
}
.site-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.site-footer__brand:hover { text-decoration: none; }
.site-footer__mark { width: 24px; height: 24px; border-radius: 6px; }
.site-footer__disclaimer {
  font-size: 12.5px;
  color: var(--text-tertiary);
  max-width: 70ch;
  line-height: 1.55;
}
.site-footer__copyright {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}
.site-footer__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.site-footer__links a:hover { color: var(--text-primary); text-decoration: none; }

@media (max-width: 600px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__links { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 16px; }
}

/* ---------- Prose (legal pages back-compat) ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
  line-height: 1.65;
  color: var(--text-primary);
}
.prose h1 { font-size: 36px; font-weight: 600; margin-bottom: 24px; }
.prose h2 { font-size: 24px; font-weight: 600; margin-top: 32px; margin-bottom: 16px; }
.prose h3 { font-size: 18px; font-weight: 600; margin-top: 24px; margin-bottom: 8px; }
.prose p { margin-bottom: 16px; font-size: 17px; }
.prose ul, .prose ol { margin-bottom: 16px; padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--accent); text-decoration: underline; }

/* ===========================================================================
   Mobile QA polish — fixes from the phone-width QA pass.
   Appended at end of file so these overrides win on source order.
   =========================================================================== */
@media (max-width: 600px) {
  /* Tap targets: lift sub-44px controls toward a comfortable hit area. */
  .site-header__cta { height: 44px; }
  .btn-link { padding: 8px 0; }
  .site-footer__links { gap: 20px; }
  .site-footer__links a { padding: 8px 4px; }

  /* Pricing receipt never had a mobile pass: stack the header so the title
     gets full width, and stop the order id + per-week sublabel from breaking
     mid-token ("#CLY-001", "$1.15 / wk"). */
  .pricing__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pricing__order { white-space: nowrap; }
  .pricing__row-name small { white-space: nowrap; }
}

@media (max-width: 480px) {
  /* Hero stat row: 3 even columns instead of a 2 + 1 orphan ("Photos stored"). */
  .hero__meta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; }
}

@media (prefers-color-scheme: dark) {
  /* "Always-dark" cards (voice card, Carbly Score, endcap CTA) were built on the
     --ink / --bone token pair, which SWAPS in dark mode — flipping them to light
     and hiding their near-white interior text (the endcap lost its whole pitch
     paragraph). Re-pin the tokens locally so each card and every
     var(--ink)/var(--bone) descendant — including the inline-styled score title —
     renders dark-surface / light-text in dark mode too. */
  .talk__viz,
  .bento__cell--score,
  .endcap__inner {
    --ink: #1B1E22;
    --bone: #EDEAE3;
  }
  /* Voice quote pills were near-invisible (surface ≈ page bg); lift them. */
  .talk__quote { background: var(--surface-raised); }
}
