/* Redesign layer — cinematic hero, scene videos, Adaptive Dune */

/* ---- Hero override (splash gate handled in loma-site.css) ---- */
body[data-landing-splash="true"] .hero {
  visibility: visible;
  pointer-events: none;
  overflow: visible;
}
body[data-landing-splash="true"] .hero .hero-video,
body[data-landing-splash="true"] .hero .hero-keyframe {
  opacity: calc(clamp(0, (var(--splash-progress) - 0.22) / 0.55, 0.85));
}
body[data-landing-splash="true"] .hero .hero-vignette {
  opacity: calc(clamp(0, (var(--splash-progress) - 0.22) / 0.55, 1));
}
body[data-landing-splash="true"] .hero .hero-copy,
body[data-landing-splash="true"] .hero .hero-scroll-cue {
  visibility: visible;
  opacity: calc(clamp(0, (var(--splash-progress) - 0.48) / 0.44, 1));
  transform: translateY(calc((1 - clamp(0, (var(--splash-progress) - 0.48) / 0.44, 1)) * 22px));
}
body[data-past-splash="true"] .hero {
  visibility: visible;
  pointer-events: none;
  overflow: visible;
}
body[data-past-splash="true"] .hero .hero-copy,
body[data-past-splash="true"] .hero .hero-h1,
body[data-past-splash="true"] .hero .hero-scroll-cue {
  visibility: visible;
  opacity: 1;
  transform: none;
}
body[data-past-splash="true"] .hero .hero-copy {
  pointer-events: none;
}
body[data-past-splash="true"] .hero .hero-scroll-cue {
  pointer-events: none;
}
.hero {
  position: relative;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  background: var(--graphite-800) !important;
  overflow: visible;
  padding-top: 0 !important;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none !important;
  display: block !important;
  z-index: 1;
  touch-action: pan-y;
  overscroll-behavior: none;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1.4em;
}
.hero-h1-line {
  opacity: 1;
}
.hero-stage {
  position: relative;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  pointer-events: none;
  touch-action: pan-y;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  pointer-events: none;
}
.keyframe-preview {
  display: none;
  pointer-events: none;
}
html[data-video-preview="keyframes"] .hero-video,
html[data-video-preview="keyframes"] .scene-video,
html[data-video-preview="keyframes"] .filmstrip-video {
  display: none !important;
}
html[data-video-preview="keyframes"] .keyframe-preview {
  display: block;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
}
html[data-video-preview="keyframes"] .hero-keyframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  pointer-events: none;
}
html[data-video-preview="keyframes"] .scene-keyframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coach-scenario-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 0s linear 420ms;
  z-index: 0;
}
.coach-scenario-media.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 420ms ease, visibility 0s;
  z-index: 1;
}
video.coach-scenario-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html[data-video-preview="keyframes"] .coach-scenario-media.scene-keyframe:not(.is-on) {
  display: none;
}
html[data-video-preview="keyframes"] .coach-scenario-media.scene-keyframe.is-on {
  display: block;
}
.input-mode-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 0s linear 420ms;
  z-index: 0;
}
.input-mode-media.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease, visibility 0s;
  z-index: 1;
}
video.input-mode-media,
img.input-mode-media.scene-static {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
video.input-mode-media:not(.is-on) {
  visibility: hidden;
}
html[data-video-preview="keyframes"] .input-mode-media.scene-keyframe:not(.is-on) {
  display: none;
}
html[data-video-preview="keyframes"] .input-mode-media.scene-keyframe.is-on {
  display: block;
}
html[data-video-preview="keyframes"] .filmstrip-keyframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--video-pos, 50% 40%);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 0%, var(--graphite-900) 82%),
    linear-gradient(
      180deg,
      var(--graphite-900) 0%,
      rgba(26, 29, 32, 0.92) 8%,
      rgba(26, 29, 32, 0.55) 18%,
      transparent 34%,
      transparent 55%,
      rgba(14, 16, 18, 0.5) 72%,
      rgba(20, 23, 26, 0.82) 86%,
      rgba(20, 23, 26, 0.96) 94%,
      var(--graphite-800) 100%
    );
  pointer-events: none;
}
.hero-handoff {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: clamp(120px, 20vh, 240px);
  background: linear-gradient(
    180deg,
    rgba(14, 16, 18, 0) 0%,
    rgba(14, 16, 18, 0.35) 28%,
    rgba(20, 23, 26, 0.78) 62%,
    var(--graphite-800) 100%
  );
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  pointer-events: none;
  padding:
    calc(96px + env(safe-area-inset-top, 0px) + clamp(52px, 11vh, 112px))
    clamp(24px, 6vw, 72px)
    clamp(48px, 8vh, 88px);
}
.hero-copy a,
.hero-copy button,
.hero-cta-row,
.hero-cta-row * {
  pointer-events: auto;
}
.hero-h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--dune-100);
  margin: 0;
}
.hero-h1-line { display: block; }
.hero-h1-line:last-child { color: var(--dune-200); }
.hero-sub {
  margin-top: 1.2em;
  max-width: 540px;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--dune-300);
}
.hero-cta-row {
  margin-top: 2.2em;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-ghost {
  background: transparent;
  border: 1px solid var(--dune-300);
  color: var(--dune-200);
}
.cta-ghost::before { display: none; }
.cta-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--dune-200);
}
.hero-scroll-cue {
  position: absolute;
  bottom: clamp(24px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dune-300);
}
.hero-scroll-cue .cue-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: cue-drift 2.2s ease-in-out infinite;
}
@keyframes cue-drift {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Pillars — bento constellation ---- */
.pillars {
  position: relative;
  z-index: 2;
  background: var(--graphite-800);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: clamp(48px, 8vh, 88px) 0 clamp(56px, 9vh, 96px);
}
.pillars-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 clamp(12px, 2vh, 18px);
}
.pillars--filmstrip {
  margin-top: 0;
  padding-top: clamp(40px, 6vh, 72px);
  padding-bottom: 0;
  border-top: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: var(--graphite-800);
}
.pillars-intro {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(8px, 1.5vh, 14px);
}
.pillars--filmstrip .filmstrip-pin {
  position: relative;
  z-index: 1;
}
.pillars-lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--dune-300);
  max-width: 52ch;
  margin: 0;
}

/* Comparison panels */
.pillar-panel {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: clamp(40px, 6vh, 64px) 0 clamp(48px, 7vh, 72px);
}
.pillar-panel:nth-child(odd) { background: rgba(255,255,255,0.015); }
.pillar-panel-head { margin-bottom: clamp(24px, 4vh, 36px); }
.pillar-panel-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.pillar-panel-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dune-100);
  margin: 0 0 8px;
}
.pillar-panel-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--dune-300);
  margin: 0;
  max-width: 48ch;
}

/* A — Orbit scroll-pinned */
.orbit-scroll { position: relative; }
.orbit-sticky {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 80px 24px 48px;
}
.orbit-stage {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
}
.orbit-svg { width: 100%; height: 100%; display: block; }
.orbit-arc {
  opacity: 0.65;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.35));
  transition: transform 640ms cubic-bezier(.2,.7,.1,1);
  transform-origin: 200px 200px;
}
.orbit-beam {
  transform-origin: 200px 200px;
  transition: transform 640ms cubic-bezier(.2,.7,.1,1);
}
.orbit-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  display: grid; place-items: center;
}
.orbit-core-curve {
  width: 48px; height: 48px;
  animation: pillar-curve-breathe 4.6s ease-in-out infinite;
}
@keyframes pillar-curve-breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.82; }
  50% { transform: scale(1.04); opacity: 1; }
}
.orbit-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orbit-node {
  --angle: 0deg;
  --radius: clamp(128px, 38vw, 158px);
  position: absolute;
  left: 50%; top: 50%;
  width: 68px; height: 68px;
  margin: -34px 0 0 -34px;
  pointer-events: auto;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(14,16,18,0.8);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--dune-300);
  transition: border-color 420ms ease, background 420ms ease, color 420ms ease, box-shadow 420ms ease, transform 420ms cubic-bezier(.2,.7,.1,1);
  transform: rotate(var(--angle)) translateY(calc(-1 * var(--radius))) rotate(calc(-1 * var(--angle)));
}
.orbit-node.on {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.14);
  color: var(--dune-100);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.2);
  transform: rotate(var(--angle)) translateY(calc(-1 * var(--radius))) rotate(calc(-1 * var(--angle))) scale(1.06);
}
.orbit-detail {
  width: min(100%, 420px);
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}
.orbit-step {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dune-300);
  display: block;
  margin-bottom: 10px;
}
.orbit-detail-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.orbit-detail-title {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--dune-100);
  margin: 0 0 8px;
  line-height: 1.2;
}
.orbit-detail-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--dune-300);
  margin: 0;
}
.orbit-scroll-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dune-300);
  opacity: 0.65;
  animation: cue-drift 2.4s ease-in-out infinite;
}

/* B — Filmstrip */
.filmstrip-pin { overflow: hidden; }
.filmstrip-stage {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0 48px;
  gap: 16px;
}
.filmstrip-path-wrap {
  position: relative;
  height: 48px;
  margin: 0 6vw;
  flex-shrink: 0;
}
.filmstrip-path-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.filmstrip-dot {
  position: absolute;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.55);
  left: 4%;
  top: 50%;
  transition: left 80ms linear, top 80ms linear;
}
.filmstrip-viewport {
  overflow: hidden;
  width: 100%;
}
.filmstrip-track {
  display: flex;
  gap: 20px;
  padding: 0 6vw;
  width: max-content;
  will-change: transform;
}
.filmstrip-slide {
  position: relative;
  flex: 0 0 min(76vw, 440px);
  aspect-ratio: 9 / 16;
  min-height: min(68vh, 520px);
  max-height: min(78vh, 640px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--graphite-900);
  transition: border-color 400ms ease, box-shadow 400ms ease, opacity 400ms ease;
  opacity: 0.55;
}
.filmstrip-slide.on {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
/* Media fills the entire card; copy sits on a bottom scrim */
.filmstrip-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--graphite-900);
}
.filmstrip-slide-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(14, 16, 18, 0.08) 0%,
    rgba(14, 16, 18, 0.02) 38%,
    rgba(14, 16, 18, 0.55) 68%,
    rgba(14, 16, 18, 0.94) 100%
  );
  transition: opacity 400ms ease;
}
.filmstrip-slide:not(.on) .filmstrip-slide-media::before {
  background: linear-gradient(
    180deg,
    rgba(14, 16, 18, 0.35) 0%,
    rgba(14, 16, 18, 0.28) 42%,
    rgba(14, 16, 18, 0.72) 72%,
    rgba(14, 16, 18, 0.96) 100%
  );
}

.filmstrip-slide-media video,
.filmstrip-slide-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--video-pos, 50% 40%);
  display: block;
}
.filmstrip-video,
.filmstrip-static {
  object-position: var(--video-pos, 50% 40%);
}
.filmstrip-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.filmstrip-slide-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 56px 20px 22px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(14, 16, 18, 0.55) 28%,
    rgba(14, 16, 18, 0.92) 100%
  );
}
.filmstrip-no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.filmstrip-slide h3 {
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 700;
  color: var(--dune-100);
  margin: 6px 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.filmstrip-slide[data-feature="connect"] h3 {
  font-size: clamp(15px, 1.85vw, 18px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.filmstrip-slide p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--dune-200);
  margin: 0;
  max-width: 36ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* C — Bento video */
.bento-grid--video .bento-card {
  padding: 0;
  min-height: 148px;
}
.bento-grid--video .bento-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.bento-grid--video .bento-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 480ms ease, transform 6s ease;
}
.bento-grid--video .bento-card.is-spotlight .bento-video-wrap video,
.bento-grid--video .bento-card:hover .bento-video-wrap video {
  opacity: 0.88;
  transform: scale(1.04);
}
.bento-grid--video .bento-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 48px 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(14,16,18,0.75) 38%, rgba(14,16,18,0.95) 100%);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(132px, auto);
  gap: 14px;
}
.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 132px;
  transition: border-color 480ms ease, box-shadow 480ms ease, transform 480ms cubic-bezier(.2,.7,.1,1);
}
.bento-card.is-spotlight {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.12), inset 0 0 0 1px rgba(16, 185, 129, 0.08);
  transform: translateY(-2px);
}
.bento-card:hover {
  border-color: rgba(255,255,255,0.14);
}

.bento-card--coach { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 296px; }
.bento-card--capture { grid-column: 8 / 13; grid-row: 1 / 2; }
.bento-card--balance { grid-column: 8 / 13; grid-row: 2 / 3; }
.bento-card--moment { grid-column: 1 / 5; grid-row: 3 / 4; }
.bento-card--tailored { grid-column: 5 / 9; grid-row: 3 / 4; }
.bento-card--connect { grid-column: 9 / 13; grid-row: 3 / 4; }

.bento-card--coach { background: linear-gradient(145deg, rgba(16,185,129,0.1) 0%, rgba(14,16,18,0.6) 55%); }
.bento-card--capture { background: linear-gradient(160deg, rgba(212,197,185,0.08) 0%, rgba(14,16,18,0.5) 70%); }
.bento-card--balance { background: linear-gradient(180deg, rgba(16,185,129,0.06) 0%, rgba(14,16,18,0.55) 100%); }
.bento-card--moment { background: linear-gradient(135deg, rgba(180,140,90,0.1) 0%, rgba(14,16,18,0.55) 65%); }
.bento-card--tailored { background: linear-gradient(160deg, rgba(16,185,129,0.08) 0%, rgba(20,23,26,0.6) 100%); }
.bento-card--connect { background: linear-gradient(200deg, var(--accent-tint-warm) 0%, rgba(14,16,18,0.55) 70%); }

.bento-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.bento-body {
  position: relative;
  z-index: 1;
}
.bento-no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.bento-title {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dune-100);
  margin: 0 0 6px;
  line-height: 1.2;
}
.bento-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--dune-300);
  margin: 0;
  font-weight: 500;
  max-width: 28ch;
}

/* Coach art */
.bento-art--coach { padding: 22px; display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; }
.bento-coach-sentence {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dune-100);
  line-height: 1.1;
  transition: opacity 360ms ease, transform 360ms ease;
}
.bento-coach-sentence.is-out { opacity: 0; transform: translateY(-8px); }
.bento-coach-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bento-chip {
  font-family: var(--mono);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--dune-300);
  animation: bento-chip-dissolve 4s ease-in-out infinite;
  animation-delay: var(--d, 0ms);
}
@keyframes bento-chip-dissolve {
  0%, 40% { opacity: 0.85; transform: scale(1); }
  55% { opacity: 0.2; transform: scale(0.94); }
  70%, 100% { opacity: 0.85; transform: scale(1); }
}

/* Capture art */
.bento-art--capture { display: grid; place-items: center; }
.bento-plate {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(212,197,185,0.35), rgba(42,37,32,0.5));
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: -12px;
}
.bento-scan {
  position: absolute;
  left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  top: 38%;
  animation: bento-scan-sweep 3.2s ease-in-out infinite;
}
@keyframes bento-scan-sweep {
  0%, 100% { top: 28%; opacity: 0; }
  15%, 85% { opacity: 1; }
  50% { top: 62%; }
}
.bento-wave {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 3px; align-items: flex-end; height: 20px;
}
.bento-wave span {
  width: 3px; background: var(--accent); border-radius: 2px;
  animation: bento-wave-bar 0.9s ease-in-out infinite alternate;
}
.bento-wave span:nth-child(1) { height: 6px; }
.bento-wave span:nth-child(2) { height: 12px; animation-delay: 80ms; }
.bento-wave span:nth-child(3) { height: 18px; animation-delay: 160ms; }
.bento-wave span:nth-child(4) { height: 10px; animation-delay: 240ms; }
.bento-wave span:nth-child(5) { height: 14px; animation-delay: 120ms; }
@keyframes bento-wave-bar {
  from { transform: scaleY(0.55); opacity: 0.5; }
  to { transform: scaleY(1); opacity: 1; }
}

/* Balance art */
.bento-art--balance { display: flex; align-items: center; justify-content: center; padding: 12px; }
.bento-curve { width: 100%; max-width: 200px; opacity: 0.9; }
.bento-curve-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: bento-dot-slide 4.5s ease-in-out infinite;
}
@keyframes bento-dot-slide {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(84px, 0); }
}

/* Moment art */
.bento-art--moment { padding: 20px 18px; }
.bento-menu {
  display: flex; flex-direction: column; gap: 7px;
  margin-top: 8px;
}
.bento-menu span {
  display: block; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.1);
}
.bento-menu span:nth-child(1) { width: 88%; }
.bento-menu span:nth-child(2) { width: 72%; }
.bento-menu span:nth-child(4) { width: 80%; }
.bento-menu span:nth-child(5) { width: 64%; }
.bento-menu-hit {
  width: 92% !important;
  background: rgba(16,185,129,0.25) !important;
  position: relative;
}
.bento-menu-glow {
  position: absolute;
  left: 14%; top: 38%;
  width: 78%; height: 14px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 16px var(--accent-glow);
  animation: bento-glow-pulse 2.8s ease-in-out infinite;
}
@keyframes bento-glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Tailored art */
.bento-art--tailored { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; justify-content: flex-start; }
.bento-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.bento-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--dune-300);
  animation: bento-tag-cycle 6s ease-in-out infinite;
}
.bento-tag:nth-child(2) { animation-delay: 2s; }
.bento-tag:nth-child(3) { animation-delay: 4s; }
@keyframes bento-tag-cycle {
  0%, 28%, 100% { background: transparent; border-color: rgba(255,255,255,0.12); color: var(--dune-300); }
  8%, 20% { background: var(--accent-muted); border-color: var(--accent); color: var(--accent); }
}
.bento-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.bento-pills span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: var(--dune-300);
}

/* Connect art */
.bento-art--connect { display: flex; align-items: center; justify-content: center; }
.bento-sync {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: -20px;
}
.bento-device {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(14,16,18,0.8);
  animation: bento-device-pulse 2.4s ease-in-out infinite;
}
.bento-device--watch { border-radius: 50%; animation-delay: 0s; }
.bento-device--ring { width: 22px; height: 22px; border-radius: 50%; animation-delay: 0.8s; }
.bento-device--phone { width: 24px; height: 36px; border-radius: 6px; animation-delay: 1.6s; }
@keyframes bento-device-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(16,185,129,0); border-color: rgba(255,255,255,0.14); }
  40% { box-shadow: 0 0 14px rgba(16,185,129,0.35); border-color: rgba(16,185,129,0.5); }
}
.bento-sync-lines {
  position: absolute;
  width: 120px; height: 48px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---- Scene sections ---- */
.scene-section { padding: clamp(64px, 10vh, 120px) 0; }
.scene-layout-grid {
  display: grid;
  grid-template-columns: 1fr min(380px, 42vw);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.scene {
  position: relative;
  isolation: isolate;
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 640px);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: var(--graphite-900);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
.scene--action,
.scene--ecosystem {
  max-width: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 520px);
}
.scene-video,
.scene-static {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene-static[hidden] {
  display: none !important;
}
.scene--ecosystem .scene-static {
  filter: brightness(0.72) saturate(0.85);
}
.scene--ecosystem .scene-dim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 14, 0.52) 0%,
    rgba(10, 12, 14, 0.28) 45%,
    rgba(10, 12, 14, 0.55) 100%
  );
}
.scene-screen-overlay {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--screen-radius, 14px);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.06);
}
.scene-screen-overlay[data-screen="action"] { --screen-radius: 12px; }
.scene-screen-overlay[data-screen="input"] { --screen-radius: 14px; }
.scene-screen-overlay[data-screen="coach"] { --screen-radius: 14px; }
.scene-screen-overlay * {
  pointer-events: none;
}
.scene-screen-overlay .action-tag {
  pointer-events: auto;
}
/* Native 390×844 canvas — scaled to fit phone rect in photo/video */
.phone-ui-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  transform-origin: 0 0;
  transform: scale(var(--ui-scale, 1));
  will-change: transform;
}
.phone-ui-canvas .action-overlay,
.phone-ui-canvas .input-overlay,
.phone-ui-canvas .coach-overlay {
  width: 390px;
  height: 844px;
}
/* App UI shell — mirrors Loma iOS surfaces at real scale */
.phone-ui {
  position: relative;
  width: 390px;
  height: 844px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 54px 18px 24px;
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
.phone-ui--light {
  background: #F9F8F6;
  color: #1A1D20;
}
.phone-ui--dark {
  background: #0A0C0E;
  color: #E8DDD0;
}
.phone-ui-status {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}
.phone-ui-status span {
  font-family: var(--mono);
  font-size: 5.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, currentColor 72%, transparent);
}
.phone-ui-status--ios {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
  margin: -38px 0 4px;
  padding: 0 4px;
}
.phone-ui-time {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  justify-self: start;
}
.phone-ui-island {
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: #0A0C0E;
  justify-self: center;
}
.phone-ui-icons {
  width: 58px;
  height: 12px;
  justify-self: end;
  border-radius: 2px;
  background: linear-gradient(90deg, currentColor 0 70%, transparent 70%);
  opacity: 0.45;
}
.action-tag,
.coach-scenario-tab,
.input-mode-tab {
  pointer-events: auto;
}


/* Input — split layout (contrast + modes + phone scene) */
.input-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  grid-template-areas:
    "copy visual"
    "detail visual";
  gap: clamp(20px, 3vw, 28px) clamp(28px, 5vw, 72px);
  align-items: start;
}
.input-layout-copy {
  grid-area: copy;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vh, 24px);
}
.input-layout-detail {
  grid-area: detail;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 20px);
  min-width: 0;
  align-self: center;
}
.input-layout-visual {
  grid-area: visual;
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-self: stretch;
}
.input-contrast {
  padding: clamp(16px, 2.5vw, 20px) clamp(18px, 2.5vw, 22px);
  border-radius: 16px;
  background: rgba(26, 29, 32, 0.03);
  border: 1px solid var(--hairline);
}
.input-contrast-k {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate-dim);
  margin-bottom: 12px;
}
.input-contrast-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.input-contrast-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate);
}
.input-contrast-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(120, 113, 108, 0.85);
}
.input-contrast-alt {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate);
}
.input-contrast-alt strong {
  color: var(--ink);
  font-weight: 700;
}
.input-mode-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.input-mode-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 280ms ease, background 280ms ease, box-shadow 280ms ease, opacity 280ms ease;
}
.input-mode-tab:not(.on) { opacity: 0.78; }
.input-mode-tab:hover {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.28);
  background: var(--dune-50);
}
.input-mode-tab.on {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 12px 36px -24px rgba(16, 185, 129, 0.45);
}
.input-mode-tab-k {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 700;
  letter-spacing: -0.2px;
}
.input-mode-tab-d {
  font-size: 13px;
  line-height: 1.45;
  color: var(--slate);
  font-weight: 500;
}
.input-mode-caption {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
  max-width: 44ch;
}
.input-mode-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 46ch;
}
.input-mode-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate);
}
.input-mode-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.input-layout-visual .scene--input {
  width: 100%;
  max-width: 420px;
  margin: 0;
  max-height: min(78vh, 720px);
  aspect-ratio: 9 / 16;
  box-shadow:
    0 28px 72px rgba(0,0,0,0.14),
    0 0 0 1px rgba(26,29,32,0.06);
}
@media (min-width: 1200px) {
  .input-layout-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 480px);
  }
}

/* Input — on-phone Loma UI overlay */
.input-overlay {
  position: relative;
  width: 100%;
  height: 100%;
}
.input-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}
.input-scene.is-on {
  opacity: 1;
  pointer-events: auto;
}
.input-phone-ui {
  gap: 8px;
}
.input-app-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 8px;
  align-items: start;
}
.input-app-logo {
  grid-column: 1;
  font-size: 17px;
  font-weight: 800;
  color: #10B981;
  letter-spacing: -0.3px;
}
.input-app-sub {
  grid-column: 1;
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 500;
}
.input-app-avatar {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  display: grid;
  place-items: center;
}
.input-day-k {
  font-size: 13px;
  font-weight: 700;
  color: #10B981;
  margin: 0 0 6px;
}
.input-bubble--logged {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.22);
  padding: 8px 12px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(6px);
}
.input-overlay.playing .input-scene--log.is-on .input-bubble--logged {
  animation: input-bubble-logged 3.6s ease-in-out infinite;
}
.input-phone-ui.dictating .input-thread,
.input-phone-ui.dictating .input-voice-hint {
  opacity: 0.35;
  filter: blur(1.5px);
  transition: opacity 280ms ease, filter 280ms ease;
}
.input-dictation {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: rgba(249, 248, 246, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 320ms ease;
}
.input-dictation.on {
  opacity: 1;
}
.input-dict-mic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #34D399, #10B981 68%, #059669);
  box-shadow: 0 4px 12px -4px rgba(16, 185, 129, 0.5);
  position: relative;
}
.input-dict-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #10B981;
  opacity: 0.2;
  animation: input-dict-pulse 1.6s ease-in-out infinite;
}
@keyframes input-dict-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.14; }
  50% { transform: scale(1.1); opacity: 0.28; }
}
.input-dict-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}
.input-dict-wave span {
  width: 3px;
  border-radius: 1px;
  background: #10B981;
  animation: input-dict-wave 1s ease-in-out infinite;
}
.input-dict-wave span:nth-child(1) { height: 30%; animation-delay: 0s; }
.input-dict-wave span:nth-child(2) { height: 55%; animation-delay: 0.1s; }
.input-dict-wave span:nth-child(3) { height: 90%; animation-delay: 0.2s; }
.input-dict-wave span:nth-child(4) { height: 70%; animation-delay: 0.3s; }
.input-dict-wave span:nth-child(5) { height: 100%; animation-delay: 0.4s; }
.input-dict-wave span:nth-child(6) { height: 45%; animation-delay: 0.5s; }
.input-dict-wave span:nth-child(7) { height: 65%; animation-delay: 0.6s; }
.input-dict-wave span:nth-child(8) { height: 35%; animation-delay: 0.7s; }
.input-dict-wave span:nth-child(9) { height: 80%; animation-delay: 0.8s; }
.input-dict-wave span:nth-child(10) { height: 50%; animation-delay: 0.9s; }
.input-dict-wave span:nth-child(11) { height: 75%; animation-delay: 1s; }
.input-dict-wave span:nth-child(12) { height: 40%; animation-delay: 1.1s; }
@keyframes input-dict-wave {
  0%, 100% { opacity: 0.3; transform: scaleY(0.4); }
  50% { opacity: 1; transform: scaleY(1); }
}
.input-dict-transcript {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #1A1D20;
  text-align: center;
  margin: 0;
  min-height: 40px;
  padding: 0 16px;
}
.input-dict-cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: #10B981;
  margin-left: 1px;
  vertical-align: middle;
  animation: input-dict-cursor 1s step-end infinite;
}
@keyframes input-dict-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.input-dict-hint {
  font-size: 13px;
  color: #9CA3AF;
  margin: 0;
  font-weight: 500;
}
.input-overlay-streak {
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.input-scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  top: 38%;
  pointer-events: none;
}
.input-overlay.playing .input-scene--lens.is-on .input-scan-line {
  animation: scan-sweep 1.4s cubic-bezier(.2,.7,.1,1) forwards;
}
.input-lens-viewfinder {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 22%;
  height: 42%;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.12);
}
.input-lens-viewfinder::before,
.input-lens-viewfinder::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.85;
}
.input-lens-viewfinder::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: 6px 0 0 0;
}
.input-lens-viewfinder::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 6px 0;
}
.input-lens-result {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  opacity: 0;
  transform: translateY(6px);
}
.input-lens-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.input-lens-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #1A1D20;
}
.input-lens-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.input-phone-ui--lens .input-lens-eyebrow {
  color: var(--accent);
}
.input-phone-ui--lens .input-lens-result {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.28);
}
.input-overlay.playing .input-scene--lens.is-on .input-lens-result {
  animation: input-lens-result-in 3.6s ease-in-out infinite;
}
@keyframes input-lens-result-in {
  0%, 36% { opacity: 0; transform: translateY(6px); }
  48%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes scan-sweep {
  0% { top: 32%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 62%; opacity: 0; }
}
.input-thread {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-bottom: 2px;
}
.input-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.input-avatar {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.input-bubble {
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 88%;
  margin: 0;
}
.input-bubble--user {
  justify-self: end;
  color: #1A1D20;
  background: #fff;
  border: 1px solid #E6E1D6;
  border-bottom-right-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(4px);
}
.input-overlay.playing .input-scene--log.is-on .input-bubble--user {
  animation: input-bubble-user 3.6s ease-in-out infinite;
}
@keyframes input-bubble-user {
  0%, 22% { opacity: 0; transform: translateY(4px); }
  32%, 100% { opacity: 1; transform: translateY(0); }
}
.input-bubble--loma {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #1A1D20;
  background: #fff;
  border: 1px solid #E6E1D6;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  opacity: 1;
  transform: none;
}
.input-bubble--followup {
  justify-self: start;
  font-size: 6px;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--dune-300);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  opacity: 0;
  transform: translateY(4px);
}
.input-overlay.playing .input-scene--log.is-on .input-bubble--followup {
  animation: input-bubble-followup 3.6s ease-in-out infinite;
}
@keyframes input-bubble-in {
  0%, 8% { opacity: 0; transform: translateY(4px); }
  18%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes input-bubble-logged {
  0%, 32% { opacity: 0; transform: translateY(6px); }
  42%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes input-bubble-followup {
  0%, 52% { opacity: 0; transform: translateY(4px); }
  62%, 100% { opacity: 1; transform: translateY(0); }
}
.input-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.input-voice-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.input-voice-field {
  flex: 1;
  font-size: 14px;
  color: #64748B;
  background: rgba(100, 116, 139, 0.08);
  border: 1px solid #E6E1D6;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 500;
}
.input-voice-mic {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #DE7B51;
  box-shadow: 0 0 0 2px rgba(222, 123, 81, 0.2);
  position: relative;
}
.input-voice-mic::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -35%);
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: #fff;
}

/* Balance — split layout (contrast + phases + equilibrium chart) */
.eq-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.15fr);
  grid-template-areas:
    "copy visual"
    "detail visual";
  gap: clamp(20px, 3vw, 28px) clamp(28px, 5vw, 64px);
  align-items: start;
}
.eq-layout-copy {
  grid-area: copy;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vh, 24px);
}
.eq-layout-detail {
  grid-area: detail;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 20px);
  min-width: 0;
  align-self: center;
}
.eq-layout-visual {
  grid-area: visual;
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: stretch;
  align-self: stretch;
}
.eq-contrast {
  padding: clamp(16px, 2.5vw, 20px) clamp(18px, 2.5vw, 22px);
  border-radius: 16px;
  background: rgba(26, 29, 32, 0.03);
  border: 1px solid var(--hairline);
}
.eq-contrast-k {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate-dim);
  margin-bottom: 12px;
}
.eq-contrast-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eq-contrast-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate);
}
.eq-contrast-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(120, 113, 108, 0.85);
}
.eq-contrast-alt {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate);
}
.eq-contrast-alt strong {
  color: var(--ink);
  font-weight: 700;
}
.eq-phase-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eq-phase-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 280ms ease, background 280ms ease, box-shadow 280ms ease, opacity 280ms ease;
}
.eq-phase-tab:not(.on) { opacity: 0.78; }
.eq-phase-tab:hover {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.28);
  background: var(--dune-50);
}
.eq-phase-tab.on {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 12px 36px -24px rgba(16, 185, 129, 0.45);
}
.eq-phase-tab-k {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 700;
  letter-spacing: -0.2px;
}
.eq-phase-tab-d {
  font-size: 13px;
  line-height: 1.45;
  color: var(--slate);
  font-weight: 500;
}
.eq-phase-caption {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
  max-width: 44ch;
}
.eq-phase-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 46ch;
}
.eq-phase-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate);
}
.eq-phase-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.eq-layout-visual .eq-chart-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(28px, 3.5vw, 40px) clamp(24px, 3vw, 36px);
  box-shadow:
    0 28px 72px rgba(26, 29, 32, 0.12),
    0 0 0 1px rgba(26, 29, 32, 0.04);
}
.eq-readout {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.12);
}
.eq-readout-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.eq-readout-lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-dim);
}
.eq-readout-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}
.eq-readout-track {
  height: 4px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
  margin-bottom: 8px;
}
.eq-readout-track:last-child { margin-bottom: 0; }
.eq-readout-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.eq-readout-fill--fuel { background: var(--accent); }
.eq-readout-fill--activity { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.eq-balance-read {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-dim);
  font-weight: 500;
  width: 100%;
  text-align: center;
  line-height: 1.4;
}
.eq-balance-read strong {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-transform: none;
}
@media (min-width: 1200px) {
  .eq-layout-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(480px, 1.2fr);
  }
}

/* Coach + Guide — goal-forward layout */
.coach-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  grid-template-areas:
    "goals visual"
    "detail visual";
  gap: clamp(20px, 3vw, 28px) clamp(28px, 5vw, 56px);
  align-items: start;
}
.coach-layout-goals {
  grid-area: goals;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 20px);
}
.coach-layout-detail {
  grid-area: detail;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vh, 22px);
  min-width: 0;
  align-self: center;
}
.coach-signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.coach-signal {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.coach-signal-k {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.coach-signal-d {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--dune-300);
  font-weight: 500;
}
.coach-goals-head { min-width: 0; }
.coach-goals-k {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--dune-300);
  margin-bottom: 8px;
}
.coach-goals-lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dune-300);
  max-width: 52ch;
}
.coach-goal-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.coach-goal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  width: 100%;
  padding: clamp(18px, 2.5vw, 22px) clamp(18px, 2.5vw, 24px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--dune-100);
  transition: border-color 280ms ease, background 280ms ease, box-shadow 280ms ease, opacity 280ms ease, transform 280ms ease;
}
.coach-goal-card:not(.on) { opacity: 0.76; }
.coach-goal-card:hover {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}
.coach-goal-card.on {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.48);
  background: rgba(16, 185, 129, 0.09);
  box-shadow: 0 16px 48px -28px rgba(16, 185, 129, 0.55);
}
.coach-goal-card-k {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 800;
  letter-spacing: -0.35px;
  line-height: 1.15;
}
.coach-goal-card-d {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--dune-300);
  font-weight: 500;
  max-width: 46ch;
}
.coach-goal-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.coach-goal-card-tags span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--dune-300);
}
.coach-goal-card.on .coach-goal-card-tags span {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.1);
  color: color-mix(in srgb, var(--accent) 75%, var(--dune-100));
}
.coach-layout-visual {
  grid-area: visual;
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-self: stretch;
}
.coach-layout-visual .scene--coach {
  width: 100%;
  max-width: 420px;
  max-height: min(78vh, 720px);
  aspect-ratio: 9 / 16;
  box-shadow:
    0 28px 72px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.06);
}
@media (min-width: 1200px) {
  .coach-layout-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 480px);
  }
  .coach-layout-visual .scene--coach {
    max-width: 480px;
    max-height: min(82vh, 780px);
  }
}
.coach-scenario-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.coach-scenario-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--dune-100);
  transition: border-color 280ms ease, background 280ms ease, box-shadow 280ms ease, opacity 280ms ease;
}
.coach-scenario-tab:not(.on) { opacity: 0.72; }
.coach-scenario-tab:hover { opacity: 1; border-color: rgba(16,185,129,0.28); }
.coach-scenario-tab.on {
  opacity: 1;
  border-color: rgba(16,185,129,0.42);
  background: rgba(16,185,129,0.08);
  box-shadow: 0 12px 36px -24px rgba(16,185,129,0.55);
}
.coach-scenario-tab-k {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 700;
  letter-spacing: -0.2px;
}
.coach-scenario-tab-d {
  font-size: 13px;
  line-height: 1.45;
  color: var(--dune-300);
  font-weight: 500;
}
.coach-scenario-caption {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--dune-200);
  margin: 0;
  max-width: 42ch;
}
.coach-scenario-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 44ch;
}
.coach-scenario-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dune-300);
}
.coach-scenario-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.coach-overlay {
  position: relative;
  width: 100%;
  height: 100%;
}
.coach-phone-ui { gap: 8px; }
.coach-app-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 8px;
}
.coach-app-logo {
  font-size: 17px;
  font-weight: 800;
  color: #10B981;
}
.coach-app-sub {
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 500;
  line-height: 1.3;
}
.coach-app-avatar {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  display: grid;
  place-items: center;
}
.coach-trend-sub {
  font-size: 12px;
  color: #9CA3AF;
  margin: 0 0 6px;
  font-weight: 500;
}
.coach-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}
.coach-scene.is-on {
  opacity: 1;
  pointer-events: auto;
}
.coach-context-chip {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D97706;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  background: rgba(217, 119, 6, 0.1);
  font-weight: 600;
}
.coach-trend-card {
  background: #fff;
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 14px;
  padding: 12px 14px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.coach-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.coach-trend-eyebrow {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #1A1D20;
}
.coach-trend-chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.coach-rhythm-wave {
  width: 100%;
  height: 48px;
  display: block;
}

.coach-balance {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 24%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.coach-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.coach-balance-lbl {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dune-300);
}
.coach-balance-val {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.coach-balance-val--ok { color: var(--accent); }
.coach-balance-val--low { color: #f0b56a; }
.coach-balance-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-bottom: 4px;
}
.coach-balance-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 0;
}
.coach-balance-fill--fuel { width: 78%; }
.coach-balance-fill--activity { width: 42%; background: #f0b56a; }
.coach-overlay.playing .coach-scene--daily.is-on .coach-balance-fill--fuel {
  animation: coach-balance-fill 720ms cubic-bezier(.2,.7,.1,1) 0.2s both;
}
.coach-overlay.playing .coach-scene--daily.is-on .coach-balance-fill--activity {
  animation: coach-balance-fill 720ms cubic-bezier(.2,.7,.1,1) 0.45s both;
}
.coach-overlay:not(.playing) .coach-balance-fill {
  transform: scaleX(0);
}
@keyframes coach-balance-fill {
  to { transform: scaleX(1); }
}

.coach-plan-dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.coach-plan-dim {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #E6E1D6;
  background: #fff;
  opacity: 0;
  transform: translateY(4px);
}
.coach-plan-dim-k {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 4px;
  font-weight: 600;
}
.coach-plan-dim-v {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: #1A1D20;
  letter-spacing: -0.1px;
}
.coach-overlay.playing .coach-scene--guide.is-on .coach-plan-dim {
  animation: coach-plan-dim-in 400ms cubic-bezier(.2,.7,.1,1) both;
}
.coach-overlay.playing .coach-scene--guide.is-on .coach-plan-dim:nth-child(1) { animation-delay: 0.1s; }
.coach-overlay.playing .coach-scene--guide.is-on .coach-plan-dim:nth-child(2) { animation-delay: 0.18s; }
.coach-overlay.playing .coach-scene--guide.is-on .coach-plan-dim:nth-child(3) { animation-delay: 0.26s; }
.coach-overlay.playing .coach-scene--guide.is-on .coach-plan-dim:nth-child(4) { animation-delay: 0.34s; }
.coach-overlay:not(.playing) .coach-plan-dim {
  opacity: 1;
  transform: none;
}
@keyframes coach-plan-dim-in {
  to { opacity: 1; transform: translateY(0); }
}

.coach-card {
  margin-top: auto;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transform: translateY(110%);
  opacity: 0;
}
.coach-overlay.playing .coach-scene.is-on .coach-card {
  animation: coach-card-up 480ms cubic-bezier(.2,.7,.1,1) 0.72s forwards;
}
@keyframes coach-card-up {
  to { transform: translateY(0); opacity: 1; }
}
.coach-card-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #047857;
  margin-bottom: 6px;
  font-weight: 600;
}
.coach-card-text {
  font-size: 13px;
  line-height: 1.4;
  color: #1A1D20;
  margin: 0;
  font-weight: 500;
}

/* Action overlay — light app surface (matches FUEL / recipe) */
.action-overlay {
  position: relative;
}
.action-phone-ui { gap: 8px; }
.action-app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.action-fuel-k {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #DE7B51;
}
.action-refresh-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #DE7B51;
  opacity: 0.7;
}
.action-headline {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: #1A1D20;
  margin: 0;
}
.action-lede {
  font-size: 13px;
  line-height: 1.4;
  color: #64748B;
  margin: 0;
  font-weight: 500;
}
.action-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.action-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #E6E1D6;
  color: #64748B;
  background: rgba(100, 116, 139, 0.07);
  transition: background 280ms ease, color 280ms ease, border-color 280ms ease;
}
.action-tag.on {
  background: rgba(222, 123, 81, 0.1);
  border-color: rgba(222, 123, 81, 0.35);
  color: #B85F3A;
}
.action-insight-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #F5F0E8;
  border: 1px solid #E6E1D6;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: opacity 280ms ease;
}
.action-insight-card.morphing { opacity: 0; }
.action-insight-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.action-insight-heart {
  font-size: 18px;
  color: #DE7B51;
  line-height: 1;
  flex-shrink: 0;
}
.action-insight-kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B85F3A;
  font-weight: 600;
}
.action-insight-title {
  font-size: 17px;
  font-weight: 800;
  color: #1A1D20;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.action-insight-meta {
  font-size: 13px;
  color: #64748B;
  margin: 0;
  line-height: 1.35;
  font-weight: 500;
}
.action-insight-why {
  font-size: 12px;
  color: #64748B;
  margin: 4px 0 0;
  line-height: 1.4;
  font-weight: 500;
}

.action-stage { margin-bottom: 40px; }
.action-stage .scene--action {
  width: 100%;
}
.action-memory-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--slate);
  text-align: center;
}
.action-memory-note .mk {
  font-weight: 700;
  color: var(--accent);
  margin-right: 8px;
}
.action-cards {
  grid-template-columns: repeat(4, 1fr);
  display: grid;
  gap: 20px;
}

/* Ecosystem → enroll finale (one continuous dark canvas) */
.site-finale {
  position: relative;
  background: var(--graphite);
  overflow: visible;
}
.feature--dark {
  background: var(--graphite-800);
  color: var(--dune-100);
}
.site-finale .ecosystem-section {
  position: relative;
  z-index: 3;
  overflow: visible;
  border-top: none;
  border-bottom: none;
  padding-bottom: clamp(48px, 8vh, 88px);
  background: transparent;
}
.site-finale .ecosystem-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--graphite-800);
  z-index: 0;
  pointer-events: none;
}
.site-finale .ecosystem-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(280px, 42vh, 520px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(20, 23, 26, 0) 0%,
    color-mix(in srgb, var(--graphite-800) 55%, var(--graphite)) 42%,
    color-mix(in srgb, var(--graphite-800) 18%, var(--graphite)) 72%,
    var(--graphite) 100%
  );
}
.ecosystem-section .wrap {
  position: relative;
  z-index: 2;
}
.ecosystem-section .int-grid {
  padding-bottom: clamp(24px, 4vh, 40px);
}
.site-finale .enroll {
  position: relative;
  z-index: 2;
  margin-top: clamp(-220px, -32vh, -400px);
  padding-top: calc(clamp(56px, 10vh, 120px) + clamp(220px, 32vh, 400px));
  background: transparent;
  border-top: none;
}
.site-finale footer {
  position: relative;
  z-index: 2;
  background: transparent;
  border-top: none;
}
.feature--dark .f-head h2 { color: var(--dune-100); }
.feature--dark .f-head .alt { color: var(--dune-300); }
.feature--dark .f-head .lede { color: var(--dune-300); }

/* Capture section on dark canvas */
.feature--dark .input-contrast {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.feature--dark .input-contrast-k {
  color: var(--dune-300);
}
.feature--dark .input-contrast-list li {
  color: var(--dune-300);
}
.feature--dark .input-contrast-list li::before {
  color: rgba(214, 211, 209, 0.55);
}
.feature--dark .input-contrast-alt {
  color: var(--dune-300);
}
.feature--dark .input-contrast-alt strong {
  color: var(--dune-100);
}
.feature--dark .input-mode-tab {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dune-100);
}
.feature--dark .input-mode-tab:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.feature--dark .input-mode-tab.on {
  border-color: rgba(16, 185, 129, 0.48);
  background: rgba(16, 185, 129, 0.09);
  box-shadow: 0 16px 48px -28px rgba(16, 185, 129, 0.55);
}
.feature--dark .input-mode-tab-d {
  color: var(--dune-300);
}
.feature--dark .input-mode-caption {
  color: var(--dune-200);
}
.feature--dark .input-mode-points li {
  color: var(--dune-300);
}
.ecosystem-stage {
  margin-bottom: 32px;
}
.ecosystem-cards-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.ecosystem-pill-groups {
  position: absolute;
  left: clamp(14px, 3vw, 32px);
  right: clamp(14px, 3vw, 32px);
  top: clamp(14px, 3vh, 28px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
}
.eco-pill-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eco-pill-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(249, 248, 246, 0.82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.eco-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.eco-pill {
  background: rgba(249, 248, 246, 0.96);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #1A1D20;
  box-shadow: 0 6px 24px -6px rgba(0, 0, 0, 0.42);
}
.eco-pulse {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  box-shadow: 0 0 12px var(--accent-glow);
  z-index: 1;
}
.eco-pulse--watch { left: 50%; top: 22%; }
.eco-pulse--ring { left: 34%; top: 56%; }
.eco-pulse--garmin { left: 22%; top: 50%; }
.eco-pulse--phone { left: 50%; top: 46%; }
.ecosystem-cards-overlay.playing .eco-pulse--watch { animation: eco-blink 0.5s ease 0.2s forwards; }
.ecosystem-cards-overlay.playing .eco-pulse--ring { animation: eco-blink 0.5s ease 0.7s forwards; }
.ecosystem-cards-overlay.playing .eco-pulse--garmin { animation: eco-blink 0.5s ease 1.0s forwards; }
.ecosystem-cards-overlay.playing .eco-pulse--phone { animation: eco-blink 0.5s ease 1.4s forwards; }
@keyframes eco-blink {
  0% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.7; transform: scale(1); }
}

.ecosystem-math {
  position: relative;
  z-index: 5;
  width: 100%;
  margin-bottom: 48px;
}
.ecosystem-math-toggle {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  color: var(--dune-100);
  transition: border-color 280ms ease, background 280ms ease, box-shadow 280ms ease;
}
.ecosystem-math-toggle:hover {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(255,255,255,0.06);
}
.ecosystem-math-toggle.open {
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow: 0 12px 40px -24px rgba(16, 185, 129, 0.45);
}
.ecosystem-math-toggle-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ecosystem-math-toggle-lbl {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.ecosystem-math-toggle-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--dune-300);
  font-weight: 500;
}
.ecosystem-math-toggle .chev {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  transition: transform 320ms cubic-bezier(.2,.7,.1,1);
}
.ecosystem-math-toggle.open .chev,
.ecosystem-math-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }

.ecosystem-math-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 540ms cubic-bezier(.2,.7,.1,1);
}
.ecosystem-math-panel.open { grid-template-rows: 1fr; }
.ecosystem-math-panel > .ecosystem-math-grid {
  overflow: hidden;
  min-height: 0;
}
.ecosystem-math-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
}
.ecosystem-dim-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.ecosystem-dim-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ecosystem-dim-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent);
}
.ecosystem-dim-copy { min-width: 0; }
.ecosystem-dim-name {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.ecosystem-dim-tag {
  font-size: 13px;
  line-height: 1.5;
  color: var(--dune-300);
  margin: 0;
}
.ecosystem-dim-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ecosystem-metric-row {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ecosystem-dim-metrics .ecosystem-metric-row:first-child {
  padding-top: 0;
  border-top: none;
}
.ecosystem-metric-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.ecosystem-metric-k {
  font-size: 13px;
  font-weight: 700;
  color: var(--dune-100);
  line-height: 1.35;
}
.ecosystem-metric-v {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  flex-shrink: 0;
}
.ecosystem-metric-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dune-300);
  margin: 0 0 6px;
}
.ecosystem-metric-src {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 72%, var(--dune-300));
  font-weight: 600;
}

.ecosystem-section .int-pill {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: var(--dune-200);
}

.privacy-line { opacity: 0.72; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .scene-video { display: none; }
  html[data-video-preview="keyframes"] .keyframe-preview { display: block; }
  .hero-stage,
  .scene { background-size: cover; background-position: center; }
  html:not([data-video-preview="keyframes"]) .hero-stage { background-image: url('/assets/video/hero-poster.jpg'); }
  html:not([data-video-preview="keyframes"]) .scene[data-scene="input"][data-input-media="log"] { background-image: url('/assets/video/input-log-poster.jpg'); }
  html:not([data-video-preview="keyframes"]) .scene[data-scene="input"][data-input-media="lens"] { background-image: url('/assets/video/input-lens-poster.jpg'); }
  html:not([data-video-preview="keyframes"]) .scene[data-scene="coach"] { background-image: url('/assets/video/coach-balance-poster.jpg'); }
  html:not([data-video-preview="keyframes"]) .scene[data-scene="action"] { background-image: url('/assets/video/action-poster.jpg'); }
  html:not([data-video-preview="keyframes"]) .scene[data-scene="ecosystem"] { background-image: url('/assets/video/ecosystem-poster.jpg'); }
  .input-overlay.playing .input-scan-line,
  .coach-goal-card { opacity: 1; transform: none; }
  .coach-overlay.playing .coach-card,
  .coach-overlay .coach-plan-dim,
  .ecosystem-cards-overlay.playing .eco-pulse { animation: none; opacity: 1; transform: none; }
  .input-bubble--user,
  .input-bubble--loma,
  .input-bubble--followup,
  .input-lens-result { opacity: 1; transform: none; animation: none; }
  .coach-card { transform: none; opacity: 1; }
}

@media (max-width: 1024px) {
  .scene-layout-grid { grid-template-columns: 1fr; }
  .scene { max-width: 280px; }
  .scene.scene--coach,
  .scene.scene--input,
  .coach-layout-visual .scene--coach,
  .input-layout-visual .scene--input {
    max-width: none;
    width: 100%;
  }
  .input-layout-grid,
  .eq-layout-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "detail";
    gap: clamp(24px, 4vh, 36px);
  }
  .eq-phase-caption,
  .eq-phase-points { max-width: none; }
  .eq-phase-tab { opacity: 1; }
  .input-mode-caption,
  .input-mode-points { max-width: none; }
  .input-layout-visual .scene--input {
    max-width: min(100%, 400px);
    max-height: min(72vh, 640px);
    margin: 0 auto;
  }
  .coach-layout-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "goals"
      "detail";
    gap: clamp(20px, 3vh, 28px);
  }
  .coach-signals { grid-template-columns: 1fr; }
  .coach-goals-lede { max-width: none; }
  .coach-goal-card-d { max-width: none; }
  .coach-layout-visual .scene--coach {
    max-width: min(100%, 400px);
    max-height: min(72vh, 640px);
    margin: 0 auto;
  }
  .coach-scenario-caption { max-width: none; }
  .coach-scenario-points { max-width: none; }
  .scene.scene--ecosystem {
    max-width: none;
    width: 100%;
  }
  .action-cards { grid-template-columns: repeat(2, 1fr); }
  .ecosystem-math-grid { grid-template-columns: 1fr; }
  .ecosystem-stage .scene--ecosystem {
    aspect-ratio: 9 / 16;
    max-height: min(68vh, 560px);
  }
  .ecosystem-pill-groups {
    grid-template-columns: 1fr;
    top: auto;
    bottom: clamp(10px, 2vh, 18px);
  }
}

@media (max-width: 900px) {
  .orbit-node {
    width: 58px; height: 58px; margin: -29px 0 0 -29px;
    --radius: clamp(108px, 34vw, 128px);
    font-size: 8px;
  }
  .filmstrip-slide {
    flex: 0 0 min(84vw, 400px);
    min-height: min(64vh, 480px);
    max-height: min(74vh, 600px);
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .bento-card--coach,
  .bento-card--capture,
  .bento-card--balance,
  .bento-card--moment,
  .bento-card--tailored,
  .bento-card--connect {
    grid-column: auto;
    grid-row: auto;
    min-height: 160px;
  }
  .bento-card--coach { grid-column: 1 / -1; min-height: 220px; }
  .bento-card--tailored { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .filmstrip-stage { min-height: auto; padding: 16px 0 48px; }
  .filmstrip-path-wrap { display: none; }
  .filmstrip-track {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
    gap: 28px;
    transform: none !important;
  }
  .filmstrip-slide {
    flex: none;
    width: 100%;
    opacity: 1;
    border-radius: 20px;
    aspect-ratio: 9 / 16;
    min-height: min(72vh, 560px);
    max-height: none;
  }
  .filmstrip-slide-copy {
    padding: 52px 20px 22px;
  }
}

@media (max-width: 768px) {
  .coach-scenario-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .coach-scenario-tab {
    padding: 14px 14px;
  }
  .coach-scenario-tab-d {
    font-size: 12px;
    line-height: 1.4;
  }
  .coach-layout-visual .scene--coach {
    max-width: none;
    width: 100%;
    min-height: min(68vh, 520px);
    max-height: min(74vh, 600px);
    border-radius: 20px;
  }
  .input-layout-visual .scene--input {
    max-width: none;
    width: 100%;
    min-height: min(68vh, 520px);
    max-height: min(74vh, 600px);
    border-radius: 20px;
  }
  .input-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .input-mode-tab {
    padding: 14px 14px;
  }
  .input-mode-tab-d {
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; gap: 12px; }
  .bento-card--coach { min-height: 200px; }
  .bento-coach-sentence { font-size: 22px; }
  .hero-copy {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: calc(88px + env(safe-area-inset-top, 0px) + clamp(40px, 9vh, 72px));
  }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
  .action-cards { grid-template-columns: 1fr; }
  .coach-scenario-tabs { grid-template-columns: 1fr; }
  .ecosystem-math-grid { grid-template-columns: 1fr; }
  .ecosystem-math-toggle {
    align-items: flex-start;
    padding: 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-landing-splash="true"] .hero .hero-copy,
  body[data-landing-splash="true"] .hero .hero-scroll-cue {
    transform: none;
  }
  .orbit-core-curve { animation: none; }
  .orbit-arc, .orbit-beam { transition: none; }
  .filmstrip-dot { transition: none; }
  .bento-chip,
  .bento-scan,
  .bento-wave span,
  .bento-curve-dot,
  .bento-menu-glow,
  .bento-tag,
  .bento-device { animation: none; }
  .bento-card.is-spotlight { transform: none; }
}