/* ========================================
   LANDING SCREEN — launch card layout
   Rewrite: 2026-02-24
   ======================================== */

/* =============================
   ROOT LAYOUT (viewport-locked)
   ============================= */

#landing {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding:
    max(12px, var(--safe-top))
    max(12px, var(--safe-right))
    max(12px, var(--safe-bot))
    max(12px, var(--safe-left));
  box-sizing: border-box;
}

#landing, #landing * { box-sizing: border-box; }
#landing > * { min-width: 0; min-height: 0; max-width: 100%; }

/* =============================
   MAIN — flex column, no scroll
   ============================= */

.landing-main {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  position: relative;  /* anchor for voice preload toast */
  gap: 8px;
}

/* =============================
   HEADER
   ============================= */

.landing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4px 4px 0;
  gap: 12px;
  flex-shrink: 0;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.landing-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--stroke-1);
}

.landing-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}

.landing-tagline {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.landing-tagline span {
  display: block;
  opacity: 0;
  transform: translateX(-20px) scale(0.92);
  animation: taglineZoomIn .5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.landing-tagline span:nth-child(1) { animation-delay: .1s; }
.landing-tagline span:nth-child(2) { animation-delay: .4s; }
.landing-tagline span:nth-child(3) { animation-delay: .7s; }

@keyframes taglineZoomIn {
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* =============================
   HEADER ACTIONS (streak + help)
   ============================= */

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-streak-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 44px;
  min-width: 96px;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    inset 0 0 0 1px rgba(254,232,21,.28),
    0 8px 20px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.streak-flame {
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.30));
}

.streak-count {
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: rgba(254,232,21,.95);
  text-shadow: 0 2px 10px rgba(254,232,21,.22);
}

.streak-label {
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(254,232,21,.80);
}

@media (max-width: 380px) {
  .header-streak-badge { padding: 8px 12px; gap: 6px; min-width: 88px; }
  .streak-label { font-size: 9px; }
}

.header-btn-wrap { position: relative; }

.header-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  overflow: visible;
}

.header-btn svg {
  width: 22px;
  height: 22px;
  fill: rgba(246,251,252,.72);
}

/* =============================
   FIRST-VISIT TOOLTIP
   ============================= */

.first-visit-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--p-cloud-dancer);
  color: var(--p-stretch-limo);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  animation: tooltipBounce 2s ease-in-out infinite, tooltipFadeIn .3s ease-out;
  z-index: 100;
}

.first-visit-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 14px;
  border: 6px solid transparent;
  border-bottom-color: var(--p-cloud-dancer);
}
.first-visit-tooltip.hidden { display: none; }

@keyframes tooltipBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}
@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =============================================================
   LAUNCH CARD — the unified decision funnel
   ============================================================= */

.launch-card {
  /* Fill the available space between header and stats/nav */
  margin: 12px 0 10px;

  flex: 1 1 auto;          /* <-- THIS is the magic */
  display: flex;
  flex-direction: column;
  justify-content: center; /* <-- keeps START living mid-card */
  align-items: center;

  gap: 0;
  padding: 0;

  background: rgba(15, 42, 47, .45);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;

  box-shadow:
    0 16px 48px rgba(0,0,0,.30),
    0 0 0 1px rgba(255,255,255,.03) inset;

  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);

  overflow: hidden;
  min-height: 0;
}


/* ── 1. Workout identity ── */

.launch-card__workout {
  width: 100%;
  padding: 16px 20px 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  transition: background .2s ease;
}

.launch-card__workout:hover {
  background: rgba(255,255,255,.03);
}
.launch-card__workout:active {
  transform: scale(.99);
}
.launch-card__workout:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--p-blazing-yellow) 45%, transparent);
  outline-offset: -3px;
  border-radius: 20px;
}

.launch-card__category {
  margin: 0;
  font-size: clamp(12px, 2.5vw, 14px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--p-capri);
  text-shadow: 0 2px 8px rgba(0,0,0,.30);
}

.launch-card__name {
  margin: 0;
  font-family: "Vend Sans", "Momo Trust Sans", system-ui, sans-serif;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--text);
  text-wrap: balance;
  text-shadow:
    0 2px 0 var(--p-scarlet-smile),
    0 4px 12px rgba(0,0,0,.30);
}

.launch-card__peek {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(246,251,252,.45);
  transition: color .2s ease;
}

.launch-card__workout:hover .launch-card__peek {
  color: rgba(246,251,252,.70);
}

.launch-card__peek .preview-arrow {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform .2s ease;
}

.launch-card__workout:hover .preview-arrow {
  transform: translateX(2px);
}


/* ── 2. Duration selector (inside card) ── */

.launch-card .duration-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 16px 4px;
  flex-shrink: 0;
  width: 100%;

  --ba-border-ink: var(--p-blazing-yellow);
  --ba-border: rgba(255,255,255,.10);
  --ba-border-strong: rgba(255,255,255,.16);
  --ba-shadow: rgba(0,0,0,.30);
  --ba-wash: color-mix(in srgb, var(--ba-border-ink) 10%, transparent);
  --ba-ring: color-mix(in srgb, var(--ba-border-ink) 18%, transparent);
  --ba-glow: color-mix(in srgb, var(--ba-border-ink) 12%, transparent);
}

.duration-seg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.duration-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.duration-seg .duration-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 14px;
  min-width: 72px;
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(246,251,252,.08), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.18));
  border: 2px solid color-mix(in srgb, var(--ba-border-ink) 40%, var(--ba-border));
  box-shadow: 0 8px 18px var(--ba-shadow), 0 1px 0 rgba(255,255,255,.05) inset;
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  cursor: pointer;
  user-select: none;
  transition: box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

/* Sheen sweep */
.duration-seg .duration-pill::before {
  content: "";
  position: absolute;
  inset: -35% -55%;
  background: linear-gradient(115deg, transparent 40%, rgba(246,251,252,.10) 48%, rgba(246,251,252,.02) 56%, transparent 64%);
  transform: translateX(-18%) rotate(8deg);
  opacity: .35;
  transition: transform .35s ease, opacity .25s ease;
  pointer-events: none;
}

/* Spark */
.duration-seg .duration-pill::after {
  content: "✦";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 10px;
  line-height: 1;
  color: color-mix(in srgb, var(--ba-border-ink) 70%, rgba(246,251,252,.9));
  text-shadow: 0 0 10px var(--ba-glow);
  opacity: 0;
  transform: scale(.85) rotate(8deg);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.duration-pill-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(246,251,252,.55);
  line-height: 1;
}

.duration-pill-time {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(246,251,252,.42);
  line-height: 1;
}

/* Hover */
.duration-seg .duration-pill:hover {
  border-color: color-mix(in srgb, var(--ba-border-ink) 62%, var(--ba-border-strong));
  box-shadow: 0 12px 24px rgba(0,0,0,.32), 0 1px 0 rgba(255,255,255,.06) inset;
}
.duration-seg .duration-pill:hover::before {
  transform: translateX(10%) rotate(8deg);
  opacity: .55;
}

/* Selected — glow border, no scale-up */
.duration-seg input:checked + .duration-pill {
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(246,251,252,.12), transparent 55%),
    linear-gradient(180deg, var(--ba-wash), rgba(0,0,0,.18));
  border-width: 3px;
  border-color: var(--ba-border-ink);
  box-shadow:
    0 0 0 2px var(--ba-ring),
    0 0 18px var(--ba-glow),
    0 10px 24px rgba(0,0,0,.32),
    0 1px 0 rgba(255,255,255,.06) inset;
}
.duration-seg input:checked + .duration-pill .duration-pill-label { color: rgba(246,251,252,.92); }
.duration-seg input:checked + .duration-pill .duration-pill-time { color: rgba(246,251,252,.66); }

.duration-seg input:checked + .duration-pill::after {
  opacity: .85;
  transform: scale(1) rotate(8deg);
  animation: baSparkBlink 1.9s ease-in-out infinite;
}

.duration-seg input:focus-visible + .duration-pill {
  outline: 3px solid color-mix(in srgb, var(--p-blazing-yellow) 50%, transparent);
  outline-offset: 3px;
}

@keyframes baSparkBlink {
  0%, 100% { opacity: .70; transform: scale(1) rotate(8deg); }
  50%      { opacity: .95; transform: scale(1.08) rotate(8deg); }
}

/* Snark */
.duration-snark {
  font-size: 11px;
  font-weight: 650;
  font-style: italic;
  color: rgba(246,251,252,.45);
  line-height: 1.3;
  text-align: center;
  max-width: 32ch;
}


/* ── 3. START button (inside card) ── */

.launch-card .start-cta {
  width: min(520px, calc(100% - 44px));
  margin: 6px 22px 0;
  max-width: 560px;
  border: 0;
  border-radius: 20px;
  padding: 16px 16px 18px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(190,44,64,.95), rgba(140,18,38,.92));
  box-shadow:
    0 14px 38px rgba(0,0,0,.40),
    0 0 0 1px rgba(255,255,255,.10) inset;
  color: rgba(246,251,252,.92);
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex-shrink: 0;
}

/* Casino shimmer */
.start-cta::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.10) 46%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.10) 54%, transparent 62%);
  transform: translateX(-60%) rotate(8deg);
  mix-blend-mode: screen;
  opacity: .9;
  animation: casinoSweep 2.8s ease-in-out infinite;
}

/* Glitter */
.start-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 28%, rgba(255,255,255,.22) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 34%, rgba(255,255,255,.18) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 72%, rgba(255,255,255,.16) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 78%, rgba(255,255,255,.20) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 18%, rgba(255,255,255,.14) 0 1px, transparent 2px);
  background-size: 180px 140px;
  opacity: .55;
  mix-blend-mode: screen;
  filter: blur(.2px);
  animation: glitterDrift 3.6s linear infinite, glitterFlicker 1.4s ease-in-out infinite;
}

.start-cta > * { position: relative; z-index: 1; }

@keyframes casinoSweep {
  0%   { transform: translateX(-75%) rotate(8deg); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: translateX(10%) rotate(8deg); opacity: .75; }
  70%  { opacity: 0; }
  100% { transform: translateX(85%) rotate(8deg); opacity: 0; }
}
@keyframes glitterDrift { to { background-position: 160px -120px; } }
@keyframes glitterFlicker { 0%, 100% { opacity: .35; } 50% { opacity: .70; } }

.start-cta:hover { filter: brightness(1.08) saturate(1.14); }
.start-cta:hover::after { opacity: .75; }
.start-cta:active { transform: translateY(1px); filter: brightness(.98) saturate(1.02); }
.start-cta:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--p-blazing-yellow) 60%, transparent);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .start-cta::before, .start-cta::after { animation: none !important; }
}

.start-cta__sub {
  grid-row: 1;
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 8px;
  color: rgba(15,42,47,.92);
  background: color-mix(in srgb, var(--p-cloud-dancer) 86%, var(--p-blazing-yellow) 14%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 14px rgba(0,0,0,.20);
  transform: rotate(-2deg);
  max-width: 100%;
}

.start-cta__sub--simple {
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: rgba(246,251,252,74);
  opacity: .88;
  text-shadow: 0 1px 10px rgba(0,0,0,18);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  transform: rotate(0deg);
  opacity: .75;
}

.start-cta__main {
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(24px, 10vw, 48px);
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.start-cta__word {
  display: inline-block;
  text-shadow: 0 2px 0 rgba(0,0,0,.25), 0 10px 24px rgba(0,0,0,.25);
}

.start-cta__tail { opacity: .92; }

.start-cta__spark {
  width: 36px;
  height: 36px;
  display: inline-block;
  flex: 0 0 auto;
  background: conic-gradient(from 0deg, var(--p-blazing-yellow), var(--p-rinsing-rivulet), var(--p-cloud-dancer), var(--p-blazing-yellow));
  clip-path: polygon(50% 0%, 62% 26%, 98% 35%, 72% 56%, 80% 92%, 50% 72%, 20% 92%, 28% 56%, 2% 35%, 38% 26%);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--p-blazing-yellow) 45%, transparent));
  animation: startSparkSpin 2.4s linear infinite, startSparkPulse 1.25s ease-in-out infinite;
  opacity: .95;
}

.start-cta__spark--post {
  transform: rotate(14deg);
  animation-duration: 2.8s, 1.4s;
}

@keyframes startSparkSpin { to { transform: rotate(360deg); } }
@keyframes startSparkPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.78); } }


/* ── 4. FLS escape hatch — LOW BATTERY (actually reads like a battery) ── */

.launch-card .fls-escape {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  align-self: center;
  margin: 10px 0 14px;
  padding: 10px 56px 10px 22px; /* room for battery icon */

  border: 1.5px dashed color-mix(in srgb, var(--p-golden-mist) 32%, var(--stroke-2));
  border-radius: 999px;

  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--p-tea) 16%, var(--glass-1)),
    color-mix(in srgb, var(--p-golden-mist) 10%, var(--glass-2))
  );

  box-shadow: var(--shadow-md), 0 0 0 1px var(--stroke-3) inset;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  flex-shrink: 0;

  transition: transform .18s ease, filter .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;

  opacity: 0;
  animation: flsFadeIn 0.6s ease 1.0s forwards;
}

/* faint “empty track” behind text, so it feels like “mode” */
.launch-card .fls-escape::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 52px; /* stop before battery */
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 999px;

  background: color-mix(in srgb, var(--p-cloud-dancer) 6%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--p-cloud-dancer) 9%, transparent) inset;
  opacity: .55;
  pointer-events: none;
}

/* battery — arrow span becomes the icon container */
.launch-card .fls-escape .fls-escape__arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 14px;
  font-size: 0;        /* hide the → text */
  color: transparent;
  pointer-events: none;
  transition: transform .2s ease;

  /* battery body outline */
  border: 1.5px solid color-mix(in srgb, var(--p-golden-mist) 36%, var(--stroke-2));
  border-radius: 4px;
  background: color-mix(in srgb, var(--p-cloud-dancer) 4%, transparent);
  box-shadow: 0 0 0 1px var(--stroke-3) inset;
}

/* battery cap (positive terminal) */
.launch-card .fls-escape .fls-escape__arrow::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 4px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 0 2px 2px 0;

  background: color-mix(in srgb, var(--p-golden-mist) 34%, var(--stroke-2));
  opacity: .9;
}

/* LOW fill bar inside the battery */
.launch-card .fls-escape .fls-escape__arrow::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 6px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 1.5px;

  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--p-pink-lemonade) 70%, transparent),
    color-mix(in srgb, var(--p-coral-haze) 55%, transparent)
  );
  box-shadow: 0 0 10px color-mix(in srgb, var(--p-pink-lemonade) 22%, transparent);
}

/* text */
.fls-escape__text {
  position: relative;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--p-cloud-dancer) 88%, var(--p-golden-mist));
  text-shadow: 0 1px 10px rgba(0,0,0,.18);
  transition: color .2s ease;
}

.launch-card .fls-escape:hover,
.launch-card .fls-escape:focus-visible {
  border-color: color-mix(in srgb, var(--p-sunny-lime) 28%, var(--stroke-2));
  filter: brightness(1.03);
  box-shadow:
    var(--shadow-md),
    0 0 16px color-mix(in srgb, var(--p-sunny-lime) 10%, transparent),
    0 0 0 1px var(--stroke-3) inset;
}

.launch-card .fls-escape:hover .fls-escape__text {
  color: color-mix(in srgb, var(--p-cloud-dancer) 94%, var(--p-sunny-lime));
}

.launch-card .fls-escape:hover .fls-escape__arrow {
  border-color: color-mix(in srgb, var(--p-sunny-lime) 28%, var(--stroke-2));
}

.launch-card .fls-escape:active {
  transform: scale(.98);
  filter: brightness(.98);
}

.launch-card .fls-escape:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--p-sunny-lime) 18%, transparent);
  outline-offset: 3px;
}

@keyframes flsFadeIn { to { opacity: 1; } }

/* =============================================================
   STATS STRIP — ambient motivation, not a dashboard
   ============================================================= */

.stats-strip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;

  margin: 0 8px;
  padding: 10px 6px;

  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.10) 100%);
  border: 1px solid rgba(255,255,255,.06);
}

.stats-strip__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 8px;
  position: relative;
}

/* Colored left-border accent per stat */
.stats-strip__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  border-radius: 2px;
  opacity: 0;
}

/* Divider between stats */
.stats-strip__divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}

.stats-strip__value {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: rgba(246, 251, 252, .88);
}

.stats-strip__label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(246, 251, 252, .38);
}

/* Per-stat color accents — streak is fire, best is gold, total is ice */
.stats-strip__item:nth-child(1) .stats-strip__value {
  color: rgba(251, 146, 60, .90);
  text-shadow: 0 0 16px rgba(251, 146, 60, .18);
}
.stats-strip__item:nth-child(1) .stats-strip__label {
  color: rgba(251, 146, 60, .50);
}

.stats-strip__item:nth-child(3) .stats-strip__value {
  color: rgba(254, 232, 21, .85);
  text-shadow: 0 0 16px rgba(254, 232, 21, .14);
}
.stats-strip__item:nth-child(3) .stats-strip__label {
  color: rgba(254, 232, 21, .45);
}

.stats-strip__item:nth-child(5) .stats-strip__value {
  color: rgba(130, 220, 255, .85);
  text-shadow: 0 0 16px rgba(130, 220, 255, .14);
}
.stats-strip__item:nth-child(5) .stats-strip__label {
  color: rgba(130, 220, 255, .45);
}


/* =============================================================
   BOTTOM MENU BAR
   ============================================================= */

.landing-bottom-menu {
  flex-shrink: 0;
  margin-top: 8px;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(15,42,47,.92);
  border: 1px solid var(--stroke-2);
  box-shadow: 0 -4px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  animation: bottomMenuSlideUp .4s ease-out both;
}

@keyframes bottomMenuSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bottom-menu-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px 8px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.bottom-menu-btn:hover { background: var(--glass-1); border-color: var(--stroke-1); }
.bottom-menu-btn:active { transform: scale(0.95); }

.bottom-menu-btn svg {
  width: 24px;
  height: 24px;
  fill: rgba(246,251,252,.65);
  transition: fill .15s ease;
}
.bottom-menu-btn:hover svg { fill: rgba(246,251,252,.9); }

.bottom-menu-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(246,251,252,.5);
  transition: color .15s ease;
}
.bottom-menu-btn:hover .bottom-menu-label { color: rgba(246,251,252,.85); }

.bottom-menu-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--p-capri) 55%, transparent);
  outline-offset: 2px;
}

/* ── More menu popover ── */

.bottom-menu-more-wrap {
  position: relative;
  flex: 1;
  display: flex;
}
.bottom-menu-more-wrap .bottom-menu-btn { flex: 1; }

.more-menu-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(15,42,47,.95);
  border: 1px solid var(--stroke-2);
  box-shadow: 0 -8px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.05) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 150;
}

.more-menu-popover.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.more-menu-popover[hidden] { display: none; }

.more-menu-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 24px;
  border: 8px solid transparent;
  border-top-color: rgba(15,42,47,.95);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.2));
}

.more-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}

.more-menu-item:hover { background: var(--glass-1); border-color: var(--stroke-1); }
.more-menu-item:active { background: var(--glass-2); }

.more-menu-item svg {
  width: 20px;
  height: 20px;
  fill: rgba(246,251,252,.6);
  flex-shrink: 0;
}
.more-menu-item:hover svg { fill: rgba(246,251,252,.85); }
.more-menu-item span { flex: 1; }


/* =============================================================
   VOICE PRELOAD — floating toast, no layout shift
   ============================================================= */

#landing .voice-preload {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(15, 42, 47, .85);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  pointer-events: none;
}

#landing .voice-preload .voice-preload__text {
  margin: 0 0 4px;
  font-size: 10px;
}

#landing .voice-preload .voice-preload__track {
  width: 100px;
  height: 2px;
  margin: 0 auto;
}


/* =============================================================
   COMPAT PATCHES
   ============================================================= */

#todayCard { overflow: visible; }
.hero-panel { overflow: visible !important; }
#heroPanel { height: auto !important; }
#routineName { display: block !important; opacity: 1 !important; visibility: visible !important; }
.today-card--hero #routineList { display: none !important; }
.today-card--hero > summary { cursor: pointer; }


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 420px) {
  .duration-seg { gap: 6px; }
  .duration-seg .duration-pill { padding: 8px 10px; min-width: 62px; }
  .duration-pill-label { font-size: 10px; }
  .duration-pill-time { font-size: 9px; }
  .launch-card__name { font-size: clamp(18px, 4.5vw, 24px); }
}

@media (max-width: 360px) {
  .landing-header { gap: 8px; }
  .landing-brand-text { gap: 1px; }
  .landing-title { font-size: 16px; }
  .landing-tagline { font-size: 10px; }
}

/* Short phones — compress */
@media (max-height: 680px) {
  .launch-card__workout { padding: 10px 16px 6px; gap: 2px; }
  .launch-card .duration-selector { padding: 4px 12px 2px; gap: 3px; }
  .launch-card .start-cta { padding: 10px 12px 12px; gap: 6px; margin: 4px 10px 0; }
  .launch-card .fls-escape { padding: 8px 50px 8px 18px; margin: 6px 0 10px; }
  .stats-strip { padding: 6px 4px; margin: 0 6px; }
  .stats-strip__value { font-size: 18px; }
  .landing-bottom-menu { padding: 6px 12px; margin-top: 6px; }
  .bottom-menu-btn { padding: 6px 8px 4px; }
}

/* Tall phones — breathe */
@media (min-height: 800px) {
  .launch-card__workout { padding: 20px 20px 12px; gap: 6px; }
  .launch-card .duration-selector { padding: 10px 16px 6px; }
  .launch-card .start-cta { padding: 18px 16px 20px; margin: 10px 12px 0; }
  .launch-card .fls-escape { padding: 12px 56px 12px 28px; margin: 12px 0 18px; }
  .stats-strip { padding: 14px 8px; margin: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .duration-seg .duration-pill,
  .duration-seg .duration-pill::before,
  .duration-seg .duration-pill::after {
    transition: none !important;
    animation: none !important;
  }
}