/* Fuelstate homepage — "App worlds" v2.
   One continuous photographic world sits behind the whole page and
   crossfades as each chapter arrives. Content floats over it in the app's
   liquid-glass tile language. Tokens mirror ColorTokens.swift.
   Brand exceptions to the taste-skill house style (glass, the app's gold
   gradient, the App Store chrome headline gradient, scrims) are marked
   taste-skill-ignore with the reason. */

:root {
  color-scheme: dark;

  --ground: #06090f;
  --ink: #f5f5f3;
  --ink-soft: rgba(245, 245, 243, 0.84);
  --ink-quiet: rgba(245, 245, 243, 0.72);

  --gold: #ddb456;
  --gold-light: #f0d48f;
  --gold-ink: #1a1308;
  --cue-yellow: #ffd768;
  --teal: #4ebfa5;
  --red: #e05555;
  --blue: #3b7dd4;

  --glass-fill: rgba(255, 255, 255, 0.05);
  --glass-fill-deep: rgba(10, 14, 22, 0.46);
  --glass-edge: rgba(255, 255, 255, 0.18);
  --glass-shine: rgba(255, 255, 255, 0.16);
  --glass-blur: blur(22px) saturate(160%);
  --tile-radius: 26px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-poster: clamp(3rem, 9.4vw, 9.5rem);
  --step-display: clamp(2.375rem, 5.6vw, 6rem);
  --step-title: clamp(2.125rem, 4.4vw, 4.5rem);
  --step-quote: clamp(1.5rem, 2.6vw, 2.5rem);
  --step-lead: clamp(1.1875rem, 1.5vw, 1.4375rem);
  --step-body: 1.125rem;
  --step-small: 0.9375rem;

  --margin: clamp(20px, 4vw, 56px);
  --max: clamp(1320px, 76vw, 1640px);
  --chapter-pad: clamp(56px, 8vh, 104px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --t-feedback: 220ms;
}

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

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: transparent; /* the ground lives on html so the fixed photo world shows through */
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

::selection {
  background: var(--gold);
  color: var(--gold-ink);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(100% - 2 * var(--margin), var(--max));
  margin-inline: auto;
}

/* ── The world: one fixed photographic layer for the whole page ─────── */

.worlds {
  position: fixed;
  inset: 0;
  z-index: -1;
  height: 100lvh;
  overflow: hidden;
  background: var(--ground);
}

.worlds__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.worlds__img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease-out), transform 2.4s var(--ease-out);
}

.worlds__img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Without script, the first world simply stays on. */
.no-js .worlds__img[data-world="ridge"] {
  opacity: 1;
  transform: none;
}

.worlds__img[data-world="ridge"] { object-position: 50% 62%; }
.worlds__img[data-world="trails"] { object-position: 50% 70%; }
.worlds__img[data-world="mountain"] { object-position: 50% 12%; }
.worlds__img[data-world="stadium"] { object-position: 50% 42%; }
.worlds__img[data-world="forest"] { object-position: 50% 40%; }
.worlds__img[data-world="fueltiles"] { object-position: 50% 18%; filter: brightness(0.62) saturate(1.1); }
.worlds__img[data-world="aurora"] { object-position: 50% 40%; filter: brightness(1.55) saturate(1.3); }

/* Readability: a neutral scrim and vignette over every world. */
.worlds::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(6, 9, 15, 0) 0%, rgba(6, 9, 15, 0.55) 100%), /* taste-skill-ignore: scrim over photo */
    linear-gradient(180deg, rgba(6, 9, 15, 0.5) 0%, rgba(6, 9, 15, 0.2) 35%, rgba(6, 9, 15, 0.55) 100%); /* taste-skill-ignore: scrim over photo */
}

.worlds__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(6, 9, 15, 0.42);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

body[data-dim="true"] .worlds__dim {
  opacity: 1;
}

/* ── Type ─────────────────────────────────────────────────────────── */

.display,
.title,
.poster {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1;
  text-wrap: balance;
}

.poster { font-size: var(--step-poster); letter-spacing: -0.05em; line-height: 0.92; }
.display { font-size: var(--step-display); }
.title { font-size: var(--step-title); }

/* App Store screenshot title: every line runs white to silver, top to bottom. */
.chrome {
  color: var(--ink);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) { /* taste-skill-ignore: ASC chrome headline */
  .chrome,
  .chrome .line__inner {
    color: transparent;
    background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 38%, #a4a4a8 100%); /* taste-skill-ignore: ASC chrome headline */
    background-size: 100% 1lh;
    -webkit-background-clip: text; /* taste-skill-ignore: ASC chrome headline */
    background-clip: text; /* taste-skill-ignore: ASC chrome headline */
  }

  .chrome.is-split {
    background-image: none;
    color: inherit;
  }

  /* The gradient only paints inside each box, so the box reaches past the
     glyphs (descenders, overshoot) while padding and negative margin cancel
     out and leave the layout untouched. */
  .chrome .line__inner {
    background-size: 100% 100%;
    padding: 0.12em 0.1em 0.24em;
    margin: -0.12em -0.1em -0.24em;
  }

  .chrome:not(.is-split) {
    padding-bottom: 0.24em;
    margin-bottom: -0.24em;
  }
}

.line {
  display: block;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.line__inner {
  display: inline-block;
}

.lead {
  margin: 0;
  font-size: var(--step-lead);
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 36ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.body {
  margin: 0;
  max-width: 50ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 420ms var(--ease-spring), filter var(--t-feedback) ease, background-color var(--t-feedback) ease;
}

.btn:active {
  transform: scale(0.95) !important;
  transition-duration: 120ms;
}

.btn .icon {
  font-size: 1.1em;
}

/* Strategy gold, exactly as the app draws it: DSColor.goldGradient
   (#B9852F, #DDB456, #76531D, top-leading to bottom-trailing), #0B1019
   label in SF Rounded semibold, and GoldCTAButtonStyle's two shadows. */
.btn--gold {
  color: #0b1019;
  font-family: ui-rounded, "SF Pro Rounded", var(--font);
  background: linear-gradient(to bottom right, #b9852f, #ddb456, #76531d); /* taste-skill-ignore: app gold, ColorTokens.goldGradient */
  box-shadow: 0 5px 14px rgba(221, 180, 86, 0.18), 0 4px 8px rgba(0, 0, 0, 0.26); /* taste-skill-ignore: GoldCTAButtonStyle shadows */
}

.btn--gold:hover {
  filter: brightness(1.06);
}

.btn--gold:active {
  opacity: 0.9;
}

/* The paywall CTA: butter, lavender, peach, drifting like light on opal. */
.btn--opal {
  color: #141414;
  font-family: ui-rounded, "SF Pro Rounded", var(--font);
  border-radius: 16px;
  background: #efe2df;
  overflow: hidden;
  isolation: isolate;
}

/* The light drifts on its own GPU layer: a transform, not a repaint every frame. */
.btn--opal::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -1;
  background: linear-gradient(135deg, #f7f7c2 0%, #e6d6f5 50%, #f7c2b3 100%); /* taste-skill-ignore: PaywallCTAOpalFill */
  animation: opal 7s ease-in-out infinite alternate;
}

@keyframes opal {
  0% { transform: translate(-20%, -8%); }
  50% { transform: translate(4%, 12%); }
  100% { transform: translate(20%, -4%); }
}

.btn--glass {
  color: var(--ink);
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur); /* taste-skill-ignore: liquid glass, requested brand look */
  backdrop-filter: var(--glass-blur); /* taste-skill-ignore: liquid glass, requested brand look */
  box-shadow: inset 0 0 0 0.75px var(--glass-edge), inset 0 1px 0 var(--glass-shine); /* taste-skill-ignore: liquid-glass edge */
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Liquid glass ─────────────────────────────────────────────────── */

.glass {
  position: relative;
  border-radius: var(--tile-radius);
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur); /* taste-skill-ignore: liquid glass, requested brand look */
  backdrop-filter: var(--glass-blur); /* taste-skill-ignore: liquid glass, requested brand look */
  box-shadow: inset 0 0 0 0.75px var(--glass-edge), inset 0 1px 0 var(--glass-shine); /* taste-skill-ignore: liquid-glass edge */
}

.glass--deep {
  background: var(--glass-fill-deep);
}

/* Specular highlight that follows the pointer, like iOS liquid glass. */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, 0.13), transparent 60%); /* taste-skill-ignore: liquid-glass specular */
  opacity: 0;
  transition: opacity 400ms ease;
}

.glass:hover::before {
  opacity: 1;
}

/* ── Navigation ───────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 14px var(--margin) auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--max);
  margin-inline: auto;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.34);
  -webkit-backdrop-filter: var(--glass-blur); /* taste-skill-ignore: liquid glass, requested brand look */
  backdrop-filter: var(--glass-blur); /* taste-skill-ignore: liquid glass, requested brand look */
  box-shadow: inset 0 0 0 0.75px var(--glass-edge), inset 0 1px 0 var(--glass-shine); /* taste-skill-ignore: liquid-glass edge */
  overflow: hidden;
  transition: transform 520ms var(--ease-out), background-color 400ms ease;
}

.nav.is-hidden {
  transform: translateY(calc(-100% - 24px));
}

.nav__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  opacity: 0.85;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav__brand img {
  width: 30px;
  height: 30px;
  transition: transform 600ms var(--ease-spring);
}

.nav__brand:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.nav__links {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: var(--step-small);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--t-feedback) ease;
}

.nav__links a:hover {
  background: rgba(255, 255, 255, 0.09);
}

.nav .btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: var(--step-small);
}

/* ── Chapters ─────────────────────────────────────────────────────── */

.chapter {
  position: relative;
  padding: var(--chapter-pad) 0;
}

/* ── 1. Hero ──────────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 128px 0 clamp(48px, 8vh, 104px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
}

.hero__copy {
  display: grid;
  gap: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.note {
  margin: 0;
  color: var(--ink-quiet);
  font-size: var(--step-small);
}

.hero__live {
  display: grid;
  gap: 10px;
  will-change: transform;
}

/* Live Run fuel card */
.cue-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.cue-card__top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
}

/* Room for a two-line fuel name, so one-line names don't make the card shorter. */
.cue-card__top > div:first-child {
  display: grid;
  align-content: center;
  min-height: calc(1.0625rem * 1.5 + 2 * 1.05 * clamp(1.75rem, 2.4vw, 2.25rem));
}

.cue-card__brand {
  display: block;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cue-card__name {
  display: block;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.cue-card__time {
  text-align: center;
}

.cue-card__clock {
  display: block;
  min-width: 4.6ch; /* the column never changes width, so the fuel name never rewraps */
  font-size: clamp(2.75rem, 4.2vw, 3.25rem);
  line-height: 1;
  transition: color 400ms ease;
}

/* Hour-long countdowns (1:30:00) shrink to fit the same column. */
.cue-card__clock.is-long {
  min-width: calc(4.6ch / 0.74);
  font-size: calc(clamp(2.75rem, 4.2vw, 3.25rem) * 0.74);
  line-height: calc(1 / 0.74);
}

@media (max-width: 480px) {
  .cue-card__clock { font-size: 2.375rem; }
  .cue-card__clock.is-long { font-size: calc(2.375rem * 0.74); }
  .cue-card__name { font-size: 1.625rem; }
}

.cue-card__label {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: color 400ms ease;
}

.cue-card[data-state="now"] .cue-card__clock,
.cue-card[data-state="now"] .cue-card__label {
  color: var(--cue-yellow);
}

.cue-card[data-state="now"] {
  box-shadow: inset 0 0 0 1px rgba(255, 215, 104, 0.55), inset 0 1px 0 var(--glass-shine), 0 0 60px -10px rgba(255, 215, 104, 0.35); /* taste-skill-ignore: Live Activity fuel-now state */
}

.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 4;
}

.ring__track { stroke: rgba(255, 255, 255, 0.14); }

.ring__fill {
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-dasharray: 163.4;
  stroke-dashoffset: 130.7;
  transition: stroke-dashoffset 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cue-card__buttons {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.cue-card__buttons span {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cue-skip { background: rgba(255, 255, 255, 0.1); }
.cue-done { background: var(--cue-yellow); color: #17120a; }

.up-next__row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.up-next__row img { width: 30px; height: 30px; }

.up-next__row small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.up-next__row strong {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.up-next__row .num { font-size: 1.5rem; }
.up-next__row .num small { display: inline; font-size: 0.875rem; letter-spacing: 0; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); /* taste-skill-ignore: scroll cue outline */
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink);
  animation: scroll-cue 1.8s var(--ease-out) infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ── 2. Kit ───────────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: center;
}

.stack {
  display: grid;
  gap: 24px;
  align-content: start;
}

.brands {
  margin: 0;
  color: var(--ink-quiet);
  font-size: var(--step-small);
  max-width: 50ch;
}

.fuel-tile {
  display: grid;
  gap: 18px;
  max-width: 580px;
  padding: 22px 22px 18px;
}

.tile-head {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.tile-head .icon { font-size: 1.5rem; }

.tile-head__end {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tile-head__meta {
  font-size: 1rem;
  font-weight: 500;
}

.ok { color: var(--teal); }

.targets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.target__value { font-size: 1.125rem; font-weight: 600; }
.target__value .num { font-size: 1.5rem; }

.target__progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  white-space: nowrap;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: color 300ms ease;
}

.target__progress[data-state="short"] { color: var(--gold); }
.target__progress[data-state="over"] { color: #ff7a7a; }

.kit-rows {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kit-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.kit-row.is-new {
  animation: row-in 520ms var(--ease-spring);
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

.kit-row img { width: 28px; height: 28px; }

.kit-row__name {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.kit-row__macros {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.stepper__count {
  min-width: 1.4ch;
  text-align: right;
  font-size: 1.375rem;
}

.stepper__count.bump {
  animation: bump 380ms var(--ease-spring);
}

@keyframes bump {
  40% { transform: scale(1.35); }
}

.stepper__buttons {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.stepper__buttons button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 1.0625rem;
  transition: background-color var(--t-feedback) ease, transform 300ms var(--ease-spring);
}

.stepper__buttons button:hover { background: rgba(255, 255, 255, 0.12); }
.stepper__buttons button:active { transform: scale(0.84); }

.stepper__buttons button:disabled {
  cursor: default;
  color: rgba(255, 255, 255, 0.38);
  background: transparent;
  transform: none;
}

.stepper__split {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.22);
}

.kit-add {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 1.125rem;
  font-weight: 500;
}

.kit-add .icon {
  width: 28px;
  height: 28px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.add-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #0b1019;
  font-size: 0.9375rem;
  transition: transform 300ms var(--ease-spring), background-color var(--t-feedback) ease;
}

.add-btn:hover { background: #fff; transform: scale(1.08); }
.add-btn:active { transform: scale(0.84); }

/* ── 3. Plan ──────────────────────────────────────────────────────── */

.plan__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: center;
}

.setup {
  display: grid;
  gap: 10px;
  width: min(100%, 520px);
}

.setup__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 6px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.setup-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.setup-row > .icon { font-size: 1.375rem; }

.setup-row__end {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.setup-row__end .num { font-size: 1.25rem; }
.setup-row__end img { width: 18px; height: 18px; }
.setup-row .ok .icon,
.tile-head .ok .icon { font-size: 1.375rem; }

.unit { font-size: 0.6875rem; font-weight: 600; opacity: 0.85; }

.dot-icons {
  display: inline-flex;
  gap: 8px;
  font-size: 1.125rem;
}

.before {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
}

.before ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.before li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 500;
}

.before li img { width: 22px; height: 22px; }
.before li .icon { font-size: 1.375rem; color: var(--gold); }
.before li b { font-weight: 800; }

.start-run {
  margin-top: 6px;
  width: 100%;
  min-height: 60px;
  font-size: 1.1875rem;
}

.schedule {
  position: relative;
  display: grid;
  margin: 8px 0 0;
  padding: 0 0 0 28px;
  list-style: none;
}

/* The run's timeline: a track that fills as you scroll. */
.schedule::before,
.schedule::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.schedule::after {
  background: var(--gold);
  transform-origin: 50% 0;
  transform: scaleY(var(--fill, 1));
}

.schedule li {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--step-quote) * 2.5) auto 1fr; /* sized from the times' own font, so 1h45 never touches its icon */
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.schedule li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--ground);
  box-shadow: inset 0 0 0 2px var(--gold); /* taste-skill-ignore: timeline node */
  z-index: 1;
}

.schedule .num { color: var(--gold-light); font-size: var(--step-quote); }
.schedule img { width: 30px; height: 30px; }
.schedule .finish { color: var(--teal); }
.schedule .finish .num { color: var(--teal); }
.schedule .finish::before { box-shadow: inset 0 0 0 2px var(--teal); } /* taste-skill-ignore: timeline node */
.schedule .finish .icon { font-size: 1.75rem; }

/* ── 4. Hear it: the voice card ───────────────────────────────────── */

.hear {
  min-height: 100svh;
  display: grid;
  align-content: center;
}

.hear__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: center;
}

.hear__points {
  display: grid;
  gap: 20px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.hear__points li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--ink-soft);
}

.hear__points .icon { font-size: 1.5rem; margin-top: 2px; color: var(--ink); }

.hear__points strong {
  display: block;
  color: var(--ink);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.voice {
  display: grid;
  gap: 26px;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: 34px;
}

.voice__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: var(--step-small);
  font-weight: 600;
}

.voice__bar .icon {
  font-size: 1.375rem;
  color: var(--ink);
}

.voice__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.voice__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background-color 300ms ease;
}

.voice[data-playing="true"] .voice__dot {
  background: var(--cue-yellow);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(1.6); opacity: 0.6; }
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.segmented__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 0.75px var(--glass-edge), inset 0 1px 0 var(--glass-shine); /* taste-skill-ignore: liquid-glass edge */
  transition: transform 520ms var(--ease-spring);
}

.segmented[data-value="now"] .segmented__thumb {
  transform: translateX(100%);
}

.segmented button {
  position: relative;
  z-index: 1;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
}

.voice__text {
  margin: 0;
  min-height: 2.4em;
  font-size: clamp(1.75rem, 2.8vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.voice__text .w {
  transition: color 220ms ease, opacity 220ms ease;
}

.voice[data-playing="true"] .voice__text .w { opacity: 0.42; }
.voice[data-playing="true"] .voice__text .w.is-said { opacity: 1; }
.voice[data-playing="true"] .voice__text .w.is-now { opacity: 1; color: var(--cue-yellow); }

.voice__controls {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
}

.play {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  color: #0b1019;
  background: linear-gradient(to bottom right, #b9852f, #ddb456, #76531d); /* taste-skill-ignore: app gold, ColorTokens.goldGradient */
  box-shadow: 0 5px 14px rgba(221, 180, 86, 0.18), 0 4px 8px rgba(0, 0, 0, 0.26); /* taste-skill-ignore: GoldCTAButtonStyle shadows */
  font-size: 1.875rem;
  transition: transform 420ms var(--ease-spring);
}

.play:hover { transform: scale(1.05); }
.play:active { transform: scale(0.92); }

/* Play and pause share one spot and morph: one shrinks and fades as the other grows in. */
.play .i-play,
.play .i-pause {
  grid-area: 1 / 1;
  transition: opacity 260ms ease, transform 420ms var(--ease-spring);
}

.play .i-pause,
.voice[data-playing="true"] .play .i-play { opacity: 0; transform: scale(0.5) rotate(-45deg); }
.voice[data-playing="true"] .play .i-pause { opacity: 1; transform: none; }

/* A triangle's visual centre sits right of its box centre. */
.play .i-play { translate: 6% 0; }

.play__ring {
  position: absolute;
  top: -8px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  overflow: visible;
  transform: rotate(-90deg);
  pointer-events: none;
}

.play__ring circle {
  fill: none;
  stroke-width: 3;
}

.play__ring .track { stroke: rgba(255, 255, 255, 0.14); }

.play__ring .fill {
  stroke: #ddb456;
  stroke-linecap: round;
  stroke-dasharray: 314.2;
  stroke-dashoffset: 314.2;
}

.voice__product {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.voice__product p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--step-small);
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 0.75px var(--glass-edge); /* taste-skill-ignore: liquid-glass edge */
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color var(--t-feedback) ease, transform 300ms var(--ease-spring), box-shadow var(--t-feedback) ease;
}

.chip:hover { background: rgba(255, 255, 255, 0.14); }
.chip:active { transform: scale(0.94); }

.chip[aria-pressed="true"] {
  background: rgba(255, 215, 104, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 104, 0.75); /* taste-skill-ignore: selected chip */
}

.voice__status {
  min-height: 1.4em;
  margin: -10px 0 0;
  color: var(--ink-quiet);
  font-size: var(--step-small);
}

/* ── 5. Learns ────────────────────────────────────────────────────── */

.recent {
  display: grid;
  gap: 18px;
}

.recent__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.recent__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent__days li {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.day {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 12px 0 10px;
  border-radius: 16px;
  font-size: 1.0625rem;
  transition: transform 400ms var(--ease-spring);
}

.day:hover { transform: translateY(-4px); }
.day .icon { font-size: 1.5rem; }
.day--ok .icon { color: var(--teal); }
.day--warn .icon { color: var(--gold); }
.day--bad .icon { color: var(--red); }

.day--warn { box-shadow: inset 0 0 0 0.75px rgba(221, 180, 86, 0.6), inset 0 1px 0 var(--glass-shine); } /* taste-skill-ignore: liquid-glass edge */
.day--bad { box-shadow: inset 0 0 0 0.75px rgba(224, 85, 85, 0.6), inset 0 1px 0 var(--glass-shine); } /* taste-skill-ignore: liquid-glass edge */

.recent__days small {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.heads-up {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.heads-up__row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
}

.heads-up__badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 1rem;
}

.heads-up strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.heads-up span { color: var(--ink-soft); font-size: 1rem; }

.heads-up__action {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 0.75px var(--glass-edge); /* taste-skill-ignore: liquid-glass edge */
  font-size: 1.0625rem;
  font-weight: 600;
}

/* ── 7. Runners (the ASC quotes) ──────────────────────────────────── */

.voices__list {
  display: grid;
  gap: clamp(48px, 9vh, 96px);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.quote {
  display: grid;
  justify-items: center;
  gap: 16px;
  opacity: var(--focus, 1);
  transform: scale(calc(0.94 + var(--focus, 1) * 0.06));
}

.quote p {
  margin: 0;
  max-width: 22ch;
  font-size: var(--step-quote);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

/* Wide screens: the quotes stagger across two columns instead of one narrow stack. */
@media (min-width: 1100px) {
  .voices__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 6vw, 104px);
    row-gap: clamp(56px, 10vh, 112px);
  }

  .quote:nth-child(even) { transform: translateY(clamp(72px, 12vh, 140px)) scale(calc(0.94 + var(--focus, 1) * 0.06)); }
  .voices__list { padding-bottom: clamp(72px, 12vh, 140px); }
}

.stars {
  display: inline-flex;
  gap: 6px;
  color: var(--cue-yellow);
  font-size: 1.5rem;
}

/* ── 8. Price ─────────────────────────────────────────────────────── */

.price {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

.price__card {
  display: grid;
  gap: 22px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 34px;
}

.price__amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price__amount .num {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.price__amount span:last-child {
  color: var(--ink-soft);
  font-size: var(--step-lead);
  font-weight: 600;
}

.price__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.0625rem;
  font-weight: 500;
}

.price__list .icon { color: var(--teal); font-size: 1.375rem; }

.price__card .btn { width: 100%; }

.price__alt {
  margin: -8px 0 0;
  color: var(--ink-quiet);
  font-size: var(--step-small);
  text-align: center;
}

/* ── 9. Questions: glass accordion ────────────────────────────────── */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 20px;
}

.faq__list {
  display: grid;
  gap: 10px;
}

.qa {
  border-radius: 22px;
  overflow: hidden;
}

.qa summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  list-style: none;
  cursor: pointer;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.qa summary::-webkit-details-marker { display: none; }

.qa__toggle {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 520ms var(--ease-spring), background-color var(--t-feedback) ease;
}

.qa__toggle::before,
.qa__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--ink);
}

.qa__toggle::after { transform: rotate(90deg); }

.qa[open] .qa__toggle {
  transform: rotate(45deg);
  background: rgba(255, 215, 104, 0.22);
}

.qa__body {
  overflow: hidden;
}

.qa__body p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ── 10. Close ────────────────────────────────────────────────────── */

.close {
  padding-bottom: 32px;
}

.close__cta {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.close__cta .lead {
  text-align: center;
}

.wordmark {
  margin: clamp(80px, 14vh, 160px) 0 0;
  font-size: clamp(4.5rem, 21.5vw, 22rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: 32px;
  margin-top: clamp(48px, 8vh, 96px);
  padding-top: 32px;
}

.footer h2 {
  margin: 0 0 12px;
  font-size: var(--step-small);
  font-weight: 700;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: var(--ink-soft);
  font-size: var(--step-small);
  text-decoration: none;
  transition: color var(--t-feedback) ease;
}

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

.footer__legal {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--ink-quiet);
  font-size: var(--step-small);
}

.footer__legal p { margin: 0; }
.footer__legal a { color: var(--ink); }

/* ── Page to page: the old page dissolves into the new one; the nav stays put ── */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 340ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.nav { view-transition-name: site-nav; }

/* Arriving from another page, the hero is already in place inside that dissolve
   instead of fading in from empty. Fresh visits keep the entrance below. */
.arrived .hero [data-reveal],
.arrived .hero .chrome .line__inner {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

/* Headlines stay hidden until they are split into lines, so they never show,
   vanish, then fade in. */
.motion .chrome[data-split]:not(.is-split) { opacity: 0; }
.arrived .hero .chrome[data-split]:not(.is-split) { opacity: 1; }

/* ── Entrances (JS adds .motion, then .is-in as each part arrives) ──── */

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Headlines fade in where they sit: each line clears from a soft blur, no movement. */
.motion .chrome.is-split .line__inner {
  opacity: 0;
  filter: blur(12px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 1000ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--l, 0) * 110ms + var(--d, 0ms));
}

.motion .chrome.is-split.is-in .line__inner {
  opacity: 1;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .motion [data-reveal] { opacity: 1; transform: none; }
  .motion .chrome.is-split .line__inner { opacity: 1; filter: none; }
  .worlds__img { transition: opacity 0.6s ease; transform: none !important; }
  .scroll-cue::after,
  .voice[data-playing="true"] .voice__dot { animation: none; }
  .btn, .chip, .play, .play .icon, .day, .qa__toggle, .segmented__thumb { transition: none; }
  .btn--gold::after { display: none; }
  .quote { opacity: 1; transform: none; }
}

/* ── Tablet ───────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .nav__links { display: none; }

  .hero__grid,
  .split,
  .plan__grid,
  .hear__grid,
  .price,
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__live { max-width: 520px; }





  .faq__head { position: static; }

  .plan__grid .setup { order: 2; }

  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Phone ────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  :root {
    --step-body: 1.0625rem;
    --tile-radius: 22px;
    --chapter-pad: 56px;
  }

  .nav { inset: 10px 12px auto; padding: 6px 6px 6px 12px; }
  .nav .btn { min-height: 40px; padding: 0 16px; }

  .hero { padding-top: 104px; }
  .actions .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }

  .cue-card { padding: 18px; }
  .up-next__row:nth-child(3) { display: none; }

  .targets { gap: 10px; }
  .target__value { font-size: 1rem; }
  .target__value .num { font-size: 1.25rem; }
  .target__progress { font-size: 0.9375rem; }

  .fuel-tile { padding: 18px 16px 14px; }
  .kit-row { grid-template-columns: 30px 1fr auto; gap: 10px; }
  .kit-row__name { font-size: 1.0625rem; }
  .stepper__buttons button { width: 40px; }

  .setup-row { min-height: 56px; padding: 0 14px; font-size: 1.0625rem; }
  .setup-row__end { gap: 6px; font-size: 0.875rem; }
  .setup-row__end .num { font-size: 1.0625rem; }
  .setup-row__end .run-type { display: none; }

  .schedule li { gap: 10px; }

  .voice { border-radius: 28px; }
  .play { width: 72px; height: 72px; font-size: 1.5rem; }

  .recent__days { gap: 5px; }
  .day { font-size: 0.9375rem; border-radius: 12px; }
  .recent__days small { font-size: 0.75rem; }

  .qa summary { padding: 18px 18px; font-size: 1.0625rem; }
  .qa__body p { padding: 0 18px 20px; }

  .footer { grid-template-columns: minmax(0, 1fr); }
}


/* ── v3 ───────────────────────────────────────────────────────────── */

/* Headlines size to their own column so they hold to two lines at any width. */
.hero__copy,
.stack,
.close__cta {
  container-type: inline-size;
}

.hero .display {
  font-size: clamp(2rem, 10.4cqi, 6.5rem);
}

.stack > .title {
  font-size: min(var(--step-title), 9.4cqi);
}

.close__cta .display {
  font-size: min(var(--step-display), 7.2cqi);
}

.hero__grid > *,
.hero__live > * {
  min-width: 0;
}

/* Learn and Kit share the split grid. */
.learn__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
}

/* The heading holds its place while the run detail opens beside it. */
.learn__grid > .stack {
  position: sticky;
  top: 120px;
}

/* Kit: the paywall's glass fuel tiles are the world behind it. */
.kit__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
}

/* Copy on the left stays in view while the Fuel tile on the right grows. */
.kit__grid > .stack {
  position: sticky;
  top: 120px;
}

.kit__grid > .fuel-tile {
  justify-self: end;
  width: 100%;
}

/* Schedule rows carry both products. */
.schedule__pair {
  display: inline-flex;
  gap: 2px;
}

.schedule__pair img {
  width: 26px;
  height: 26px;
}

/* ── Voice card waveform: the clip's own shape, filled as it plays ── */

.wave {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  height: 72px;
}

.wave__canvas {
  width: 100%;
  height: 72px;
}

.wave__time {
  min-width: 3.2ch;
  color: var(--ink-soft);
  font-size: var(--step-small);
}

/* ── Recent fueling, interactive ── */

.recent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recent__meta {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 500;
}

.recent__days li {
  display: block;
}

.day {
  cursor: pointer;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

.day small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.day[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 1px 0 var(--glass-shine); /* taste-skill-ignore: selected tile edge */
}

.day[aria-expanded="true"] small {
  color: var(--ink);
  font-weight: 700;
}

.day--mild .icon { color: rgba(255, 255, 255, 0.72); }
.day--severe .icon { color: var(--red); }
.day--rate { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); background: transparent; } /* taste-skill-ignore: unrated run */
.day--rate .icon { color: var(--ink); }

.recent__detail {
  display: grid;
  gap: 18px;
  padding: 20px;
  overflow: hidden;
}

.recent__detail[hidden] {
  display: none;
}

.detail__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 8px;
}

.detail__facts span {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 1.125rem;
  font-weight: 600;
}

.detail__facts .icon {
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.feel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.feel button {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 0 10px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 0.75px var(--glass-edge); /* taste-skill-ignore: liquid-glass edge */
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 300ms var(--ease-spring), background-color var(--t-feedback) ease, box-shadow var(--t-feedback) ease;
}

.feel button:hover { background: rgba(255, 255, 255, 0.13); }
.feel button:active { transform: scale(0.94); }
.feel .icon { font-size: 1.5rem; }
.feel [data-feel="good"] .icon { color: var(--teal); }
.feel [data-feel="mild"] .icon { color: rgba(255, 255, 255, 0.72); }
.feel [data-feel="uneasy"] .icon { color: var(--gold); }
.feel [data-feel="rough"] .icon,
.feel [data-feel="severe"] .icon { color: var(--red); }

.feel button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1.5px var(--feel-ring, rgba(255, 255, 255, 0.7)); /* taste-skill-ignore: selected feel */
}

.feel [data-feel="good"] { --feel-ring: rgba(78, 191, 165, 0.85); }
.feel [data-feel="uneasy"] { --feel-ring: rgba(221, 180, 86, 0.85); }
.feel [data-feel="rough"],
.feel [data-feel="severe"] { --feel-ring: rgba(224, 85, 85, 0.85); }

.detail__note {
  margin: -6px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.detail__fuels {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail__fuels li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
}

.detail__fuels img { width: 24px; height: 24px; }
.detail__fuels small { display: block; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em; }
.detail__fuels strong { font-size: 1.125rem; }
.detail__fuels .taken { text-align: right; font-weight: 600; }
.detail__fuels .taken em { display: block; color: var(--teal); font-style: normal; font-size: 0.9375rem; }
.detail__fuels .is-skipped .taken em { color: var(--ink-soft); }
.detail__fuels .is-skipped strong { color: var(--ink-soft); }
.day .icon, .day .num { transition: color 300ms ease; }
.feel button[disabled] { cursor: default; }
.feel button[disabled]:not([aria-pressed="true"]) { background: rgba(255, 255, 255, 0.05); }

.gut {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.gut__row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
}

.gut__badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #06120f;
  transform: rotate(-90deg);
  transition: background-color 400ms ease, transform 500ms var(--ease-spring);
}

.gut[data-state="ease"] .gut__badge {
  background: var(--gold);
  color: var(--gold-ink);
  transform: rotate(45deg);
}

.gut strong { display: block; font-size: 1.25rem; letter-spacing: -0.01em; }
.gut span { color: var(--ink-soft); font-size: 1rem; }

.gut__bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.gut__bar i {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 500ms ease;
}

.gut__bar i.is-on { background: var(--teal); }

/* ── Pricing: the paywall's plan picker ── */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plan {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 16px 18px;
  border: 0;
  border-radius: 16px;
  background: #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); /* taste-skill-ignore: paywall plan tile */
  text-align: left;
  transition: box-shadow var(--t-feedback) ease, transform 300ms var(--ease-spring);
}

.plan:active { transform: scale(0.97); }

.plan.is-on {
  box-shadow: inset 0 0 0 2px #f2f2f0; /* taste-skill-ignore: paywall selected plan */
}

.plan__name { font-size: 1rem; font-weight: 600; }
.plan__price { font-size: 1.375rem; }

.plan__save {
  position: absolute;
  top: -12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.8125rem;
  font-weight: 700;
}

.btn--opal { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn--opal::before { animation: none; }
}

@media (max-width: 1080px) {
  .kit__grid,
  .learn__grid { grid-template-columns: minmax(0, 1fr); }
  .learn__grid > .stack,
  .kit__grid > .stack { position: static; }
  .kit__grid > .fuel-tile { justify-self: stretch; }
}

/* On wide screens the fuel tiles sit on the right and fade out, as on the paywall. */
@media (min-width: 900px) {
  .worlds__img[data-world="fueltiles"] {
    left: auto;
    right: 0;
    width: min(62vw, 1000px);
    object-position: 50% 10%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to bottom, #000 55%, transparent 100%); /* taste-skill-ignore: paywall-style fade */
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to bottom, #000 55%, transparent 100%); /* taste-skill-ignore: paywall-style fade */
    mask-composite: intersect;
  }
}

/* Landscape screens: the wide fuel-tile art fills the whole world, soft tiles behind the copy, sharp ones on the right. */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .worlds__img[data-world="fueltiles"] {
    left: 0;
    width: 100%;
    object-position: 10% 40%;
    filter: brightness(0.85);
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 640px) {
  .hero .display { font-size: clamp(1.875rem, 11cqi, 3rem); }
  .feel { gap: 5px; }
  .feel button { font-size: 0.8125rem; border-radius: 12px; }
  .detail__facts span { font-size: 1rem; }
}

@media (max-width: 380px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan__save { top: 10px; }
}

@media (max-width: 360px) {
  .cue-card__top { gap: 8px; }
  .cue-card__clock { font-size: 2.375rem; }
  .ring { width: 48px; height: 48px; }
}

/* ── Hero: a working Live Run card ── */

.cue-card__buttons button {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 260ms var(--ease-spring), filter var(--t-feedback) ease;
}

.cue-card__buttons button:hover { filter: brightness(1.08); }
.cue-card__buttons button:active { transform: scale(0.95); }
.cue-skip { color: var(--ink); }

/* The card updates in place: text fades, the ring eases to its new arc. */
[data-cue-body] {
  transition: opacity 170ms ease;
}

[data-cue-body].is-fading {
  opacity: 0;
}

.ring__fill.is-jumping {
  transition: stroke-dashoffset 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.up-next {
  display: grid;
  gap: 8px;
  margin-top: 0;
  align-content: start;
}

.up-next__done {
  padding: 14px 18px;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  [data-cue-body], .ring__fill.is-jumping { transition: none; }
}
