:root {
  --forest: #015147;
  --forest-mid: #027a68;
  --mint: #a0f2e1;
  --mint-dim: #84d5c5;
  --mint-card: #bbe8e4;
  --mint-wash: #d8f3e4;
  --amber: #ffbf00;
  --amber-deep: #e68a00;
  --amber-soft: #fff0d6;
  --peach: #feebce;
  --canvas: #f7f8f7;
  --white: #ffffff;
  --ink: #1a1c1c;
  --muted: #3e4946;
  --icon-muted: #6e7976;
  --outline: #bec9c5;
  --surface-low: #f1f3f2;
  --surface-high: #e4e7e5;
  --dark: #0f1413;
  --dark-low: #171c1b;
  --dark-text: #e2e3e2;
  --success: #1b7a4e;
  --protein: #015147;
  --carbs: #4a7c78;
  --fat: #c99200;
  --shadow-soft: 0 4px 16px rgba(26, 28, 28, 0.06);
  --shadow-float: 0 8px 24px rgba(26, 28, 28, 0.08);
  --shadow-device: 0 28px 80px rgba(1, 81, 71, 0.18), 0 8px 24px rgba(15, 20, 19, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --body: "Be Vietnam Pro", ui-sans-serif, system-ui, sans-serif;
  --page-x: clamp(20px, 5vw, 72px);
  --max: 1120px;
  --scene-dwell: 120vh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

html,
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: var(--forest);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 14px;
}

.skip:focus {
  left: 12px;
}

/* ——— Wordmark ——— */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.7px;
  line-height: 1;
  color: var(--forest);
}

.wordmark .dot {
  width: 6px;
  height: 6px;
  margin: 0 1px 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc933, var(--amber-deep));
  flex-shrink: 0;
}

.wordmark .fit {
  background: linear-gradient(105deg, #ffc933 10%, var(--amber) 55%, var(--amber-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordmark.on-dark {
  color: var(--dark-text);
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--page-x);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.2px;
  box-shadow: var(--shadow-soft);
}

.nav-cta:hover {
  filter: brightness(1.06);
}

.nav.is-scrolled {
  background: rgba(247, 248, 247, 0.78);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 rgba(190, 201, 197, 0.45);
}

.nav.on-hero {
  color: var(--dark-text);
}

.nav.on-hero .wordmark {
  color: var(--dark-text);
}

.nav.on-hero .nav-links {
  color: rgba(226, 227, 226, 0.72);
}

.nav.on-hero .nav-links a:hover {
  color: var(--white);
}

.nav.on-hero:not(.is-scrolled) {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.nav.on-hero.is-scrolled {
  background: rgba(15, 20, 19, 0.72);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ——— Shared type ——— */
.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 38ch;
}

/* ——— Buttons ——— */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 18px 8px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.store-btn:hover {
  transform: translateY(-1px);
  background: #111;
}

.store-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-btn small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.72;
  line-height: 1.1;
}

.store-btn strong {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.store-btn.light {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.store-btn.light:hover {
  background: var(--canvas);
}

.store-btn.forest {
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.store-btn.ghost {
  background: transparent;
  color: var(--dark-text);
  border: 1px solid rgba(190, 201, 197, 0.28);
  min-height: 52px;
  padding: 0 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
}

.store-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px var(--page-x) 72px;
  display: grid;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  color: var(--white);
  background: #050c0b;
}

.hero-skies,
.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-sky {
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero[data-sky="day"] .sky-day,
.hero[data-sky="dusk"] .sky-dusk,
.hero[data-sky="night"] .sky-night {
  opacity: 1;
}

.sky-day {
  background:
    linear-gradient(90deg, rgba(2, 122, 104, 0.18) 2%, rgba(255, 191, 0, 0.16) 98%),
    radial-gradient(170% 110% at 50% -8%, rgba(38, 120, 110, 0.45) 12%, rgba(255, 255, 255, 0.35) 100%),
    linear-gradient(180deg, #2f8f80 0%, #7ecfc0 48%, #d7efe8 100%);
}

.sky-dusk {
  background:
    linear-gradient(90deg, rgba(1, 81, 71, 0.22) 2%, rgba(230, 138, 0, 0.28) 98%),
    radial-gradient(160% 100% at 50% -10%, rgba(12, 60, 52, 0.35) 8%, transparent 58%),
    linear-gradient(180deg, #0a2c26 0%, #1a5c4e 36%, #c98414 78%, #f3d39a 100%);
}

.sky-night {
  background:
    linear-gradient(90deg, rgba(1, 81, 71, 0.28) 2%, rgba(160, 242, 225, 0.08) 98%),
    radial-gradient(140% 90% at 50% -12%, rgba(2, 80, 70, 0.4) 0%, transparent 55%),
    linear-gradient(180deg, #050c0b 0%, #0c221e 42%, #16332f 78%, #1c3d48 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero .display {
  font-size: clamp(40px, 6.4vw, 72px);
  color: var(--white);
  max-width: none;
  letter-spacing: -0.045em;
}

.hero .lede {
  margin: 18px auto 0;
  max-width: 22em;
  font-size: clamp(15px, 1.45vw, 17px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
}

.hero .store-row {
  margin-top: 32px;
  justify-content: center;
}

.hero-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.hero-more:hover {
  color: var(--white);
}

.hero-stage {
  position: relative;
  height: min(72vh, 640px);
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(160, 242, 225, 0.14);
  pointer-events: none;
}

.orbit-ring.r1 {
  width: 78%;
  aspect-ratio: 1;
  animation: spin 48s linear infinite;
}
.orbit-ring.r2 {
  width: 96%;
  aspect-ratio: 1;
  border-color: rgba(255, 191, 0, 0.1);
  animation: spin 72s linear infinite reverse;
}
.orbit-ring.r3 {
  width: 58%;
  aspect-ratio: 1;
  border-style: dashed;
  animation: spin 36s linear infinite;
}

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

.hero-phone {
  position: relative;
  z-index: 2;
  transform: perspective(1200px) rotateY(-14deg) rotateX(6deg) translateY(12px);
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.45));
}

.device.compact {
  width: min(280px, 64vw);
}

.hero-phone-ui {
  padding: 52px 16px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-phone-q {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0 8px 16px;
}

.hero-phone-live {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
}

.hero-phone-ui .composer {
  margin-top: auto;
  width: 100%;
}

.spark.pulse {
  animation: pulse-glow 2.4s var(--ease) infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 22px rgba(255, 191, 0, 0.28); transform: scale(1); }
  50% { box-shadow: 0 12px 36px rgba(255, 191, 0, 0.45); transform: scale(1.05); }
}

.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 36px;
}

.wave i {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 99px;
  background: var(--forest);
  animation: wave 1.1s ease-in-out infinite;
}

.wave i:nth-child(odd) { background: var(--forest-mid); }
.wave i:nth-child(3n) { background: var(--amber); height: 12px; }
.wave i:nth-child(1) { animation-delay: 0s; }
.wave i:nth-child(2) { animation-delay: 0.08s; }
.wave i:nth-child(3) { animation-delay: 0.16s; }
.wave i:nth-child(4) { animation-delay: 0.04s; }
.wave i:nth-child(5) { animation-delay: 0.22s; }
.wave i:nth-child(6) { animation-delay: 0.1s; }
.wave i:nth-child(7) { animation-delay: 0.18s; }
.wave i:nth-child(8) { animation-delay: 0.06s; }
.wave i:nth-child(9) { animation-delay: 0.2s; }
.wave i:nth-child(10) { animation-delay: 0.12s; }
.wave i:nth-child(11) { animation-delay: 0.02s; }
.wave i:nth-child(12) { animation-delay: 0.14s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.35); opacity: 0.55; }
  50% { transform: scaleY(1.6); opacity: 1; }
}

.wave.tall {
  height: 72px;
  gap: 5px;
}

.wave.tall i {
  width: 4px;
  height: 18px;
  background: var(--mint-dim);
}

.float-ui {
  position: absolute;
  z-index: 3;
  background: rgba(23, 28, 27, 0.78);
  border: 1px solid rgba(160, 242, 225, 0.16);
  backdrop-filter: blur(16px);
  color: var(--dark-text);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  animation: floaty 6s var(--ease) infinite;
}

.float-ui.cal-card {
  top: 12%;
  left: 0;
  min-width: 148px;
}

.float-ui.cal-card strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--white);
  line-height: 1;
  margin: 4px 0 2px;
}

.float-ui.cal-card em {
  font-style: normal;
  font-size: 11px;
  color: var(--outline);
}

.float-ui.cal-card .bar {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.float-ui.chat-card {
  bottom: 14%;
  right: 0;
  max-width: 180px;
  animation-delay: -2s;
}

.float-ui.chat-card span {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.float-ui.chat-card b {
  font-size: 11px;
  color: var(--mint-dim);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-hint {
  position: absolute;
  left: var(--page-x);
  bottom: 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--icon-muted);
}

.scroll-hint span {
  display: inline-block;
  width: 1px;
  height: 28px;
  margin-right: 10px;
  background: var(--outline);
  vertical-align: middle;
  transform-origin: top;
  animation: pulse-line 2.2s var(--ease) infinite;
}

@keyframes pulse-line {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ——— Theater ——— */
.theater {
  position: relative;
  background: var(--canvas);
}

.theater-sticky {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  padding: 88px var(--page-x) 40px;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  isolation: isolate;
}

.theater-copy {
  display: grid;
  align-content: center;
}

.chapter {
  grid-area: 1 / 1;
  max-width: 28rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s 0.45s;
  pointer-events: none;
}

.chapter.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s;
}

.chapter h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 16px;
}

.chapter p {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}

.scene-dots {
  grid-area: 2 / 1;
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.scene-dots button {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--outline);
  padding: 0;
  transition: width 0.35s var(--ease), background 0.35s;
}

.scene-dots button.is-active {
  width: 28px;
  background: var(--forest);
}

.phone-col {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  max-height: 100%;
  overflow: clip;
}

.device-fit {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 390 / 844;
  flex-shrink: 0;
  filter: drop-shadow(var(--shadow-device));
}

.theater-spacer {
  height: calc(5 * var(--scene-dwell));
}

/* ——— Device ——— */
.device {
  position: relative;
  width: min(320px, 78vw);
  height: auto;
  aspect-ratio: 390 / 844;
  flex-shrink: 0;
  filter: drop-shadow(var(--shadow-device));
}

.device-fit .device {
  position: absolute;
  left: 0;
  top: 0;
  width: 320px;
  height: calc(320px * 844 / 390);
  filter: none;
  transform: scale(var(--device-scale, 1));
  transform-origin: top left;
}

.device-shell {
  position: absolute;
  inset: 0;
  border-radius: 48px;
  background: linear-gradient(160deg, #2a3230, #111615 40%, #0b0f0e);
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--canvas);
}

.island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 6;
  width: 92px;
  height: 26px;
  transform: translateX(-50%);
  background: #0b0f0e;
  border-radius: 20px;
}

.status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: 44px;
  padding: 14px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  pointer-events: none;
}

.status .time {
  padding-left: 6px;
}

.status-glyphs {
  display: flex;
  gap: 5px;
  align-items: center;
  padding-right: 4px;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  padding: 44px 0 0;
  background: var(--canvas);
}

.scene.is-active {
  opacity: 1;
  transform: none;
  z-index: 2;
}

.scene-scroll {
  flex: 1;
  overflow: hidden;
  padding: 6px 16px 8px;
  min-height: 0;
}

/* ——— App UI primitives ——— */
.ui-h {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0;
}

.ui-meta {
  font-size: 10px;
  font-weight: 500;
  color: var(--icon-muted);
}

.ui-caption {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.ui-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.ui-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(190, 201, 197, 0.45);
}

.ui-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--surface-low);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.ui-chip.on {
  background: var(--forest);
  color: var(--white);
}

.ui-chip.mint {
  background: rgba(160, 242, 225, 0.55);
  color: var(--forest);
}

.bar {
  height: 5px;
  border-radius: 99px;
  background: var(--surface-high);
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--forest);
  transition: width 1.05s var(--ease);
}

.scene.is-active .bar > i {
  width: var(--w, 50%);
}

.ring {
  transform: rotate(-90deg);
}

.ring .track {
  fill: none;
  stroke: var(--surface-high);
  stroke-width: 5;
}

.ring .fill {
  fill: none;
  stroke: var(--forest);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 1.1s var(--ease);
}

.scene.is-active .ring .fill {
  stroke-dasharray: var(--p, 70) 100;
}

/* Composer + nav chrome */
.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 16px;
  background: var(--canvas);
}

.composer .plus,
.composer .mic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.composer .plus {
  background: var(--surface-low);
  color: var(--muted);
}

.composer .mic {
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  color: var(--white);
}

.composer .field {
  flex: 1;
  height: 36px;
  border-radius: 99px;
  background: var(--white);
  border: 1px solid rgba(190, 201, 197, 0.55);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 11px;
  color: var(--icon-muted);
}

.glass-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 52px;
  padding: 0 6px 8px;
  background: var(--white);
  border-top: 1px solid rgba(190, 201, 197, 0.55);
  box-shadow: 0 -6px 20px rgba(1, 81, 71, 0.06);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 99px;
  color: var(--icon-muted);
}

.nav-item.on {
  background: rgba(160, 242, 225, 0.72);
  color: var(--forest);
}

.nav-item span {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Scene: speak */
.ui-speak {
  text-align: center;
  padding-top: 18px;
}

.spark {
  width: 48px;
  height: 48px;
  margin: 8px auto 14px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffc933, var(--amber-deep));
  display: grid;
  place-items: center;
  color: #3d2e00;
  box-shadow: 0 8px 22px rgba(255, 191, 0, 0.28);
}

.ui-speak h3 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 0 8px;
}

.ui-speak .sub {
  margin: 8px 18px 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.qs-label {
  text-align: left;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: #3b6663;
  margin: 22px 0 8px;
}

.qs-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8f4f1, var(--mint-card));
  text-align: left;
}

.qs-feature .ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  color: var(--forest);
}

.qs-feature b {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.qs-feature span {
  font-size: 10.5px;
  color: var(--muted);
}

.qs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.qs-cell {
  background: var(--white);
  border: 1px solid rgba(190, 201, 197, 0.45);
  border-radius: 14px;
  padding: 10px;
  text-align: left;
}

.qs-cell .ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-low);
  display: grid;
  place-items: center;
  color: var(--muted);
  margin-bottom: 8px;
}

.qs-cell b {
  display: block;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.qs-cell span {
  font-size: 10px;
  color: var(--muted);
}

/* Scene: log */
.msg {
  max-width: 86%;
  margin: 10px 0 0 auto;
  padding: 10px 12px;
  border-radius: 16px 16px 6px 16px;
  border: 1px solid rgba(190, 201, 197, 0.55);
  background: var(--white);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
}

.thought {
  margin-top: 10px;
  font-size: 11px;
  color: var(--icon-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
}

.thought b {
  font-weight: 600;
  color: var(--muted);
}

.log-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--peach);
  opacity: 0;
  transform: translateY(10px);
}

.log-card .ready {
  font-size: 13px;
  font-weight: 700;
  color: #c87431;
  display: flex;
  align-items: center;
  gap: 8px;
}

.macro-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.macro-row div {
  text-align: center;
}

.macro-row strong {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.macro-row span {
  font-size: 9px;
  color: var(--muted);
}

.facts {
  margin-top: 10px;
  padding: 12px;
  opacity: 0;
}

.facts .tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--peach);
  color: #c87431;
  font-size: 10px;
  font-weight: 600;
}

.facts h4 {
  font-size: 13px;
  margin: 8px 0 10px;
}

.facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  font-size: 11px;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-align: right;
}

.scene.is-active .msg,
.scene.is-active .thought,
.scene.is-active .log-card,
.scene.is-active .facts {
  animation: rise 0.7s var(--ease) both;
}

.scene.is-active .thought {
  animation-delay: 0.16s;
}
.scene.is-active .log-card {
  animation-delay: 0.28s;
}
.scene.is-active .facts {
  animation-delay: 0.4s;
}

.scene:not(.is-active) .msg,
.scene:not(.is-active) .thought,
.scene:not(.is-active) .log-card,
.scene:not(.is-active) .facts,
.scene:not(.is-active) .fab-ai {
  animation: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scene: track */
.track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-head h3 {
  font-size: 20px;
}

.week {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 16px;
}

.week span {
  width: 28px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--icon-muted);
  gap: 2px;
}

.week b {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.week .today {
  background: var(--forest);
}

.week .today,
.week .today b {
  color: var(--white);
}

.hero-cal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.hero-cal .num {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1;
}

.hero-cal .unit {
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
}

.ring-wrap {
  width: 56px;
  text-align: center;
}

.ring-wrap small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
}

.macros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 12px;
}

.macros .lab {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.macros .lab em {
  font-style: normal;
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
}

.know-you {
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.know-you .ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--surface-low);
  display: grid;
  place-items: center;
  color: var(--forest);
}

.know-you b {
  font-family: var(--display);
  font-size: 13px;
}

.know-you p {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.35;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.tile {
  padding: 10px 8px;
}

.tile .top {
  display: flex;
  justify-content: space-between;
  color: var(--icon-muted);
  margin-bottom: 8px;
}

.tile b {
  display: block;
  font-family: var(--display);
  font-size: 11px;
}

.tile span {
  font-size: 9.5px;
  color: var(--muted);
}

.fab-ai {
  position: absolute;
  right: 14px;
  bottom: 68px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, #ffc933, var(--amber-deep));
  color: #3d2e00;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(230, 138, 0, 0.22);
  opacity: 0;
  transform: translateY(8px);
}

.scene.is-active .fab-ai {
  animation: rise 0.6s 0.35s var(--ease) forwards;
}

/* Scene: fuel */
.fuel {
  padding-top: 8px;
}

.fuel .greet {
  font-size: 13px;
  font-weight: 600;
}

.fuel h3 {
  font-size: 22px;
  margin: 10px 0 8px;
  letter-spacing: -0.5px;
}

.fuel .kcal {
  font-family: var(--display);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1.8px;
  color: var(--forest);
  line-height: 0.95;
}

.fuel .kcal span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.3px;
  margin-left: 6px;
}

.flow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--icon-muted);
}

.flow b {
  color: var(--forest);
}

.flow .def {
  color: var(--forest-mid);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.fuel-macros {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 16px;
}

.fuel-macros .c {
  color: #b86e00;
}

.how {
  padding: 12px;
}

.how p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.continue {
  margin: 16px 16px 10px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

/* Scene: habits */
.habits-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--forest);
}

.habits-head h3 {
  font-size: 20px;
  margin: 8px 0 4px;
  color: var(--ink);
}

.analyze {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8f4f1, var(--mint-card));
  margin: 12px 0;
}

.analyze b {
  font-family: var(--display);
  font-size: 13px;
}

.analyze span {
  font-size: 10.5px;
  color: var(--muted);
}

.habit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-top: 8px;
}

.habit .ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-low);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.habit b {
  display: block;
  font-family: var(--display);
  font-size: 12.5px;
}

.habit span {
  font-size: 10px;
  color: var(--muted);
}

.days {
  display: flex;
  gap: 4px;
  margin: 10px 0 8px;
}

.days i {
  flex: 1;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-low);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  font-style: normal;
}

.days .on {
  background: var(--forest);
  color: var(--white);
}

/* ——— Voice page ——— */
.voice-page {
  background: var(--dark);
  color: var(--dark-text);
  min-height: 100svh;
  padding: 120px var(--page-x) 80px;
  display: grid;
  align-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.voice-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 58%, rgba(2, 122, 104, 0.28), transparent 55%);
  pointer-events: none;
}

.voice-sticky {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.voice-page .eyebrow {
  color: var(--mint-dim);
}

.voice-page .display {
  color: var(--white);
  font-size: clamp(44px, 7vw, 84px);
}

.voice-page .lede {
  margin-left: auto;
  margin-right: auto;
  color: var(--outline);
}

.voice-stage {
  margin-top: 48px;
}

.mic-orb {
  width: 84px;
  height: 84px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(160deg, var(--forest), var(--forest-mid));
  box-shadow: 0 0 0 18px rgba(2, 122, 104, 0.18), 0 20px 50px rgba(1, 81, 71, 0.4);
  animation: pulse-glow 2.8s var(--ease) infinite;
}

.transcript {
  margin: 22px auto 0;
  max-width: 28ch;
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--white);
  line-height: 1.3;
}

/* ——— Memory ledger ——— */
.memory {
  position: relative;
  background: #08110f;
  color: var(--dark-text);
  overflow: hidden;
}

.memory::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -12%;
  top: 8%;
  background: radial-gradient(circle, rgba(2, 122, 104, 0.28), transparent 68%);
  pointer-events: none;
}

.memory-inner {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + 40px);
  margin: 0 auto;
  padding: 112px var(--page-x) 120px;
}

.memory-intro {
  max-width: 38rem;
  margin: 0 auto 48px;
  text-align: center;
}

.memory .eyebrow {
  color: var(--mint-dim);
}

.memory .display {
  color: var(--white);
  font-size: clamp(36px, 5.4vw, 64px);
  margin-bottom: 16px;
}

.memory .lede {
  margin-left: auto;
  margin-right: auto;
  color: var(--outline);
}

.memory-ledger {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 22px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(23, 36, 33, 0.92), rgba(12, 20, 18, 0.96));
  border: 1px solid rgba(160, 242, 225, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.ledger-meta {
  margin: 0 8px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--mint-dim);
}

.ledger-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(48px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 8px;
  border-bottom: 1px solid rgba(190, 201, 197, 0.1);
}

.ledger-rows .said {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.25;
  color: var(--white);
}

.ledger-trail {
  height: 1px;
  background-image: radial-gradient(circle, rgba(160, 242, 225, 0.45) 1.2px, transparent 1.4px);
  background-size: 10px 1px;
  background-repeat: repeat-x;
  background-position: center;
}

.kept {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(160, 242, 225, 0.08);
  border: 1px solid rgba(160, 242, 225, 0.22);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--mint);
  white-space: nowrap;
}

.kept::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(160, 242, 225, 0.16);
}

.kept.amber {
  color: #ffd56a;
  background: rgba(255, 191, 0, 0.08);
  border-color: rgba(255, 191, 0, 0.28);
}

.kept.amber::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 191, 0, 0.16);
}

.ledger-reply {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 16px 0 0;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(160, 242, 225, 0.12), rgba(247, 248, 247, 0.96));
  color: var(--ink);
}

.ledger-reply p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.ledger-reply .ui-eyebrow {
  margin-bottom: 4px;
  color: var(--forest);
}

/* ——— Split pages ——— */
.page-split {
  max-width: calc(var(--max) + 40px);
  margin: 0 auto;
  padding: 120px var(--page-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.page-split.reverse {
  direction: rtl;
}

.page-split.reverse > * {
  direction: ltr;
}

.page-split .display {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--forest);
}

.insight-page {
  position: relative;
  z-index: 2;
  background: var(--canvas);
}

.verdict-page {
  background:
    radial-gradient(ellipse 55% 45% at 88% 8%, rgba(254, 235, 206, 0.85), transparent 62%),
    radial-gradient(ellipse 40% 35% at 8% 92%, rgba(216, 243, 228, 0.45), transparent 60%),
    var(--canvas);
}

.next-page {
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgba(216, 243, 228, 0.9), transparent 62%),
    radial-gradient(ellipse 40% 35% at 92% 92%, rgba(254, 235, 206, 0.4), transparent 60%),
    var(--canvas);
}

.insight-inner {
  max-width: calc(var(--max) + 40px);
  margin: 0 auto;
  padding: 112px var(--page-x) 108px;
}

.insight-intro {
  max-width: 38rem;
  margin-bottom: 36px;
}

.insight-intro .display {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
}

.insight-feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0 0 28px;
  padding: 28px 28px 28px 24px;
  border-radius: 28px;
  box-shadow: var(--shadow-float);
}

.insight-feature.warm {
  background: linear-gradient(165deg, #fff7ea, var(--white) 55%);
  border: 1px solid rgba(230, 138, 0, 0.16);
}

.insight-feature.mint {
  background: linear-gradient(165deg, #e8f4f1, var(--white) 55%);
  border: 1px solid rgba(2, 122, 104, 0.14);
  flex-direction: column;
  gap: 12px;
}

.insight-feature blockquote {
  margin: 0;
}

.insight-feature .ui-eyebrow {
  margin-bottom: 8px;
}

.insight-feature.warm .ui-eyebrow {
  color: var(--amber-deep);
}

.insight-feature.mint .ui-eyebrow {
  color: var(--forest);
}

.insight-feature blockquote > p:last-child,
.insight-feature h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.22;
  color: var(--ink);
}

.insight-feature.mint h3 {
  margin: 6px 0 8px;
}

.insight-feature.mint p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.insight-evidence {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 22px 28px;
  padding: 18px 22px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid rgba(190, 201, 197, 0.45);
}

.next-page .insight-evidence .macro-row {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}

.verdict-kcal {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin: 0;
  line-height: 1;
}

.verdict-kcal span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.verdict-bars {
  display: grid;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.verdict-bars span {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.verdict-bars b {
  font-family: var(--display);
  color: var(--ink);
}

.insight-page .text-link {
  margin-top: 28px;
}

.spark.small {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffc933, var(--amber-deep));
  display: grid;
  place-items: center;
  color: #3d2e00;
  flex-shrink: 0;
}

/* ——— Circles ——— */
.circles-page {
  background: var(--canvas);
}

.circle-card {
  background: var(--white);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(190, 201, 197, 0.45);
  box-shadow: var(--shadow-float);
}

.circle-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.circle-head b {
  display: block;
  font-family: var(--display);
  font-size: 16px;
}

.circle-head span {
  font-size: 12px;
  color: var(--muted);
}

.avatars {
  display: flex;
}

.avatars span,
.av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--forest);
  border: 2px solid var(--white);
}

.avatars span:nth-child(2) { background: var(--forest-mid); margin-left: -8px; }
.avatars span:nth-child(3) { background: #3b6663; margin-left: -8px; }

.av.you { background: linear-gradient(135deg, #ffc933, var(--amber-deep)); color: #3d2e00; }

.circle-week {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.circle-week i {
  flex: 1;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-low);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  color: var(--muted);
}

.circle-week .on {
  background: var(--forest);
  color: var(--white);
}

.circle-members {
  list-style: none;
  margin: 0;
  padding: 0;
}

.circle-members li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(190, 201, 197, 0.35);
}

.circle-members b {
  display: block;
  font-family: var(--display);
  font-size: 14px;
}

.circle-members em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.chip-good,
.chip-warn {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.chip-good {
  background: var(--mint-wash);
  color: var(--success);
}

.chip-warn {
  background: var(--amber-soft);
  color: #b86e00;
}

.circle-challenge {
  margin-top: 8px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, #e8f4f1, var(--white));
}

.circle-challenge b {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  margin: 4px 0 8px;
}

.circle-challenge em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

/* ——— Download ——— */
.download {
  background: var(--dark);
  color: var(--dark-text);
  padding: 120px var(--page-x) 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(2, 122, 104, 0.35), transparent 68%);
  pointer-events: none;
}

.download-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.download .eyebrow {
  color: var(--mint-dim);
}

.download .display {
  font-size: clamp(44px, 7vw, 80px);
  color: var(--white);
}

.download .lede {
  margin-left: auto;
  margin-right: auto;
  color: var(--outline);
}

.download .store-row {
  justify-content: center;
}

.app-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.app-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Footer ——— */
.footer {
  background: var(--dark);
  color: var(--outline);
  padding: 0 var(--page-x) 40px;
  border-top: 1px solid rgba(190, 201, 197, 0.12);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.legal {
  opacity: 0.75;
  font-size: 12px;
}

/* ——— Mobile dock ——— */
.dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  background: rgba(15, 20, 19, 0.92);
  color: var(--white);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 10px 10px 10px 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-float);
}

.dock span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
}

.dock a {
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
}

/* ——— Responsive ——— */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .theater-sticky,
  .page-split,
  .page-split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .theater-sticky {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    align-items: stretch;
    justify-items: center;
    gap: 36px;
    padding-top: 72px;
    padding-bottom: 20px;
    overflow: clip;
  }

  .theater-copy {
    width: 100%;
    min-height: 0;
  }

  .chapter h2 {
    font-size: clamp(26px, 7.5vw, 36px);
    margin-bottom: 10px;
  }

  .chapter p {
    font-size: 15px;
  }

  .scene-dots {
    margin-top: 14px;
  }

  .phone-col {
    width: 100%;
    min-height: 0;
    max-height: 100%;
    align-self: stretch;
    justify-content: center;
    align-items: flex-start;
    overflow: clip;
  }

  .device-fit {
    width: min(340px, 92vw);
    height: auto;
    max-width: none;
  }

  .dock {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 108px var(--page-x) 108px;
  }

  .hero .display {
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero .lede {
    font-size: 15px;
    margin-top: 16px;
  }

  .hero .store-row {
    margin-top: 28px;
  }

  .memory-inner {
    padding: 88px var(--page-x) 120px;
  }

  .memory-intro {
    margin-bottom: 32px;
    text-align: left;
  }

  .memory .lede {
    margin-left: 0;
  }

  .memory-ledger {
    padding: 16px 14px 12px;
    border-radius: 22px;
  }

  .ledger-rows li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 4px;
  }

  .ledger-trail {
    display: none;
  }

  .kept {
    justify-self: start;
  }

  .ledger-reply {
    padding: 14px 12px;
  }

  .page-split {
    padding: 80px var(--page-x);
  }

  .insight-inner {
    padding: 88px var(--page-x) 88px;
  }

  .insight-feature {
    padding: 20px 18px;
    gap: 12px;
  }

  .insight-feature blockquote > p:last-child,
  .insight-feature h3 {
    font-size: clamp(18px, 5.4vw, 24px);
  }

  .insight-evidence {
    grid-template-columns: auto 1fr;
    gap: 14px 16px;
  }

  .insight-evidence .macro-donut {
    grid-column: 2;
    justify-self: end;
  }

  .verdict-bars {
    grid-column: 1 / -1;
  }

  .next-page .insight-evidence {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) and (max-height: 740px) {
  .theater-sticky {
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 16px;
  }

  .chapter h2 {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 8px;
  }

  .chapter p {
    font-size: 14px;
    line-height: 1.45;
  }

  .scene-dots {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scene,
  .chapter,
  .bar > i,
  .ring .fill,
  .msg,
  .thought,
  .log-card,
  .facts,
  .fab-ai,
  .orbit-ring,
  .wave i,
  .spark.pulse,
  .mic-orb,
  .float-ui {
    transition: none !important;
    animation: none !important;
  }

  .scene.is-active .msg,
  .scene.is-active .thought,
  .scene.is-active .log-card,
  .scene.is-active .facts,
  .scene.is-active .fab-ai {
    opacity: 1;
    transform: none;
  }

  .scroll-hint span {
    animation: none;
  }
}
