:root {
  color-scheme: dark;
  /* Perform brand palette — token names kept so survey.js styling holds */
  --bg: #0a1f3c;
  --bg-deep: #07162e;
  --bg-soft: #14315c;
  --page: #0c2750;
  --card: rgba(19, 46, 86, 0.78);
  --card-strong: rgba(22, 52, 96, 0.95);
  --card-hover: rgba(28, 70, 134, 0.9);
  --ink: #f4f7fc;
  --text: #e7eef9;
  --muted: #aab6cb;
  --muted-soft: #7c8ba6;
  --soft: rgba(255, 255, 255, 0.06);
  --gold: #1f7ce8;
  --gold-dark: #1664c8;
  --gold-strong: #1565c6;
  --gold-soft: rgba(31, 124, 232, 0.18);
  --gold-glow: rgba(31, 124, 232, 0.34);
  --crimson: #6e7d96;
  --crimson-dark: #46546b;
  --green: #2fc275;
  --red: #f0594a;
  --dark: #07162e;
  --dark-2: #14315c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(31, 124, 232, 0.4);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(31, 124, 232, 0.14), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(180deg, #0c2750 0%, #07162e 100%);
  font-family: "Plus Jakarta Sans", "Inter", "Arial", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--gold);
  font-weight: 800;
  text-underline-offset: 3px;
}

a:hover {
  color: #5ea3f2;
}

/* ============================================================
   PAGE BLOBS (fixed decoration behind everything)
   ============================================================ */

.page-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-blobs .blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.4;
  will-change: transform, border-radius;
  animation: blobFloat 22s ease-in-out infinite;
}

.page-blobs .blob--gold {
  width: 480px;
  height: 480px;
  top: -180px;
  right: -160px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(31, 124, 232, 0.7),
    rgba(31, 124, 232, 0.15) 60%,
    transparent 75%
  );
}

.page-blobs .blob--crimson {
  width: 380px;
  height: 380px;
  bottom: -140px;
  left: -120px;
  opacity: 0.32;
  background: radial-gradient(
    circle at 70% 60%,
    rgba(110, 125, 150, 0.55),
    rgba(70, 84, 107, 0.18) 60%,
    transparent 75%
  );
  animation-duration: 28s;
  animation-direction: reverse;
}

.page-blobs .blob--cream {
  width: 360px;
  height: 360px;
  top: 45%;
  left: 55%;
  opacity: 0.18;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(238, 244, 252, 0.18),
    rgba(238, 244, 252, 0.05) 55%,
    transparent 75%
  );
  animation-duration: 32s;
}

/* ============================================================
   APP SHELL
   ============================================================ */

.survey-app,
.screen {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.screen {
  background: transparent;
}

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 10px 18px;
  background: rgba(8, 24, 47, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar-center {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.brand-mark {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.topbar-title {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

@media (hover: hover) {
  .icon-button:hover {
    background: rgba(31, 124, 232, 0.1);
    border-color: rgba(31, 124, 232, 0.4);
    transform: translateY(-1px);
  }
}

.icon-button[hidden] {
  display: inline-grid;
  visibility: hidden;
  pointer-events: none;
}

.icon-button:focus-visible,
.choice:focus-visible,
.age-card:focus-visible,
.cta:focus-visible,
.unit-button:focus-visible,
.target-toggle:focus-visible,
.plan-option:focus-within {
  outline: 3px solid var(--gold-glow);
  outline-offset: 3px;
}

.back-icon,
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.back-icon {
  position: relative;
  width: 22px;
  transform: rotate(180deg);
  background: transparent;
}

.back-icon::before,
.back-icon::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transform-origin: right center;
}

.back-icon::before {
  transform: translateY(-50%) rotate(35deg);
}

.back-icon::after {
  transform: translateY(-50%) rotate(-35deg);
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  top: 8px;
}

/* ============================================================
   PROGRESS SEGMENTS
   ============================================================ */

.progress-segments {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  width: min(100%, 230px);
}

.progress-segments span {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.progress-segments span::before {
  content: "";
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-strong));
  box-shadow: 0 0 12px rgba(31, 124, 232, 0.45);
  transition: width 280ms ease;
}

/* ============================================================
   NAV PANEL
   ============================================================ */

.nav-panel {
  position: fixed;
  right: 16px;
  top: 76px;
  z-index: 20;
  display: grid;
  gap: 8px;
  width: min(260px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(11, 30, 56, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fadeUp 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-panel[hidden] {
  display: none;
}

.nav-panel a,
.nav-panel button {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

@media (hover: hover) {
  .nav-panel a:hover,
  .nav-panel button:hover {
    background: rgba(31, 124, 232, 0.12);
    border-color: rgba(31, 124, 232, 0.4);
    color: var(--text);
    transform: translateX(2px);
  }
}

/* ============================================================
   CONTENT
   ============================================================ */

.content {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 42px 40px 130px;
  position: relative;
  z-index: 1;
  animation: fadeUp 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.content.is-narrow {
  width: min(100%, 700px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.32em;
}

.title {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text);
}

.subtitle {
  max-width: 650px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
  text-align: center;
}

/* ============================================================
   GENDER STEP
   ============================================================ */

.gender-step {
  display: grid;
  gap: 28px;
  justify-items: center;
  padding-top: 28px;
}

.gender-toggle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 430px);
  min-height: 68px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 18, 38, 0.72);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.gender-toggle::before {
  content: "";
  position: absolute;
  inset: 6px 6px 6px calc(50% + 0px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
  box-shadow: 0 10px 24px rgba(31, 124, 232, 0.35);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.gender-toggle:has(.gender-option[data-gender="male"].is-selected)::before {
  transform: translateX(calc(-100% + 6px));
}

.gender-option {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 220ms ease, transform 220ms ease;
}

@media (hover: hover) {
  .gender-option:hover {
    color: var(--text);
  }
}

.gender-option:focus-visible {
  outline: 3px solid var(--gold-glow);
  outline-offset: 2px;
}

.gender-option.is-selected {
  color: #ffffff;
  transform: translateY(-1px);
}

/* ============================================================
   AGE INTRO
   ============================================================ */

.age-intro {
  display: grid;
  gap: 16px;
  padding-top: 20px;
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.age-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 40, 74, 0.85), rgba(11, 30, 56, 0.92));
  box-shadow: var(--shadow-card);
  cursor: pointer;
  text-align: left;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 360ms ease,
    box-shadow 360ms ease;
  isolation: isolate;
}

.age-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(31, 124, 232, 0) 0%,
    rgba(31, 124, 232, 0.18) 50%,
    rgba(31, 124, 232, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

@media (hover: hover) {
  .age-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 124, 232, 0.45);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(31, 124, 232, 0.25);
  }

  .age-card:hover::before {
    opacity: 1;
  }
}

.age-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.88;
  object-fit: cover;
  object-position: var(--pos, center);
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .age-card:hover img {
    transform: scale(1.04);
  }
}

.age-label {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  min-height: 66px;
  padding: 15px 18px;
  background: linear-gradient(180deg, rgba(6, 18, 38, 0.96), rgba(6, 18, 38, 1));
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  border-top: 1px solid var(--line);
}

.arrow-disc {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
  box-shadow: 0 6px 16px rgba(31, 124, 232, 0.35);
}

.arrow-disc::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2.5px solid #ffffff;
  border-right: 2.5px solid #ffffff;
  transform: rotate(45deg) translateX(-1px);
}

.age-legal {
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}

/* ============================================================
   QUESTIONS + CHOICES
   ============================================================ */

.question-block {
  display: grid;
  gap: 28px;
}

.choices {
  display: grid;
  gap: 12px;
}

.choice {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (hover: hover) {
  .choice:hover {
    transform: translateY(-2px);
    background: var(--card-hover);
    border-color: rgba(31, 124, 232, 0.4);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  }
}

.choice.is-selected {
  background: linear-gradient(135deg, rgba(31, 124, 232, 0.16), rgba(31, 124, 232, 0.06));
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(31, 124, 232, 0.25), 0 14px 30px rgba(0, 0, 0, 0.35);
}

.choice-text {
  min-width: 0;
  font-size: 1.02rem;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.radio {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 220ms ease, background 220ms ease;
}

@media (hover: hover) {
  .choice:hover .radio {
    border-color: rgba(31, 124, 232, 0.6);
  }
}

.choice.is-selected .radio {
  border-color: var(--gold);
  background: rgba(31, 124, 232, 0.12);
}

.choice.is-selected .radio::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
  box-shadow: 0 0 12px rgba(31, 124, 232, 0.45);
}

.multi .radio {
  border-radius: 8px;
}

.multi .choice.is-selected .radio::after {
  inset: 5px;
  border-radius: 3px;
}

/* ============================================================
   STICKY FOOTER + CTA
   ============================================================ */

.sticky-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: flex;
  justify-content: center;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(8, 24, 47, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cta {
  position: relative;
  width: min(100%, 720px);
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    opacity 220ms ease;
  box-shadow: 0 14px 32px rgba(31, 124, 232, 0.35);
  animation: glow 4s ease-in-out infinite;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

@media (hover: hover) {
  .cta:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 38px rgba(31, 124, 232, 0.45);
  }

  .cta:hover::after {
    transform: translateX(100%);
  }
}

.cta:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  animation: none;
  box-shadow: none;
}

.cta:disabled::after {
  display: none;
}

/* ============================================================
   INFO VISUAL + STATS
   ============================================================ */

.info-visual {
  position: relative;
  overflow: hidden;
  margin: 6px auto 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  box-shadow: var(--shadow-card);
}

.info-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.info-visual img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  opacity: 0.85;
  filter: saturate(0.95) contrast(1.05);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.stat,
.profile-card,
.benefit-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    box-shadow 280ms ease;
}

@media (hover: hover) {
  .stat:hover,
  .profile-card:hover,
  .benefit-card:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 124, 232, 0.35);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  }
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.stat span,
.profile-card span,
.benefit-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================================
   MEASUREMENT INPUT
   ============================================================ */

.input-panel {
  display: grid;
  gap: 34px;
  justify-items: center;
}

.unit-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.unit-button,
.target-toggle {
  min-width: 88px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

@media (hover: hover) {
  .unit-button:hover,
  .target-toggle:hover {
    color: var(--text);
  }
}

.unit-button.is-active,
.target-toggle.is-active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 124, 232, 0.35);
}

.measurement-row {
  width: min(100%, 580px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(31, 124, 232, 0.45);
}

.measurement-row input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.8rem, 11vw, 4.3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
}

.measurement-row input::placeholder {
  color: var(--muted-soft);
}

.measurement-row input:focus {
  outline: 0;
}

.measurement-row.is-disabled {
  opacity: 0.4;
}

.measurement-unit {
  padding-bottom: 5px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.1rem, 8vw, 3.45rem);
  line-height: 1;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.validation {
  min-height: 24px;
  margin: -24px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.validation.is-error {
  color: var(--red);
}

.consent {
  width: min(100%, 580px);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.consent input {
  width: 28px;
  height: 28px;
  margin: 0;
  accent-color: var(--gold);
}

.text-field {
  width: min(100%, 580px);
  display: grid;
  gap: 10px;
}

.text-field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.text-field input {
  width: 100%;
  min-height: 62px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.08rem;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.text-field input::placeholder {
  color: var(--muted-soft);
}

.text-field input:focus {
  outline: 0;
  border-color: var(--gold);
  background: rgba(31, 124, 232, 0.06);
  box-shadow: 0 0 0 4px rgba(31, 124, 232, 0.18);
}

/* ============================================================
   PROFILE + BENEFIT CARDS
   ============================================================ */

.profile-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.profile-card strong,
.benefit-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--text);
}

.profile-card p,
.benefit-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ============================================================
   CHART CARD
   ============================================================ */

.chart-card {
  margin: 28px auto 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.chart {
  display: block;
  width: 100%;
  height: auto;
}

.chart-bg {
  opacity: 0;
  animation: chartBgFade 600ms cubic-bezier(0.22, 1, 0.36, 1) 0ms forwards;
}

.chart-grid {
  opacity: 0;
  transform-origin: 56px center;
  transform-box: fill-box;
  animation: chartGridDraw 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.chart-grid--1 {
  animation-delay: 250ms;
}

.chart-grid--2 {
  animation-delay: 350ms;
}

.chart-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: chartLineDraw 1500ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.chart-line--cream {
  animation-delay: 450ms;
}

.chart-line--gold {
  animation-delay: 650ms;
  animation-duration: 1700ms;
}

.chart-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: chartDotPop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.chart-dot--start {
  animation-delay: 350ms;
}

.chart-dot--end {
  animation-delay: 2050ms;
}

.chart-pulse {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: chartPulseRing 2400ms cubic-bezier(0.22, 1, 0.36, 1) 2400ms infinite;
}

.chart-label {
  opacity: 0;
  animation: chartLabelFade 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.chart-label--1 { animation-delay: 900ms; }
.chart-label--2 { animation-delay: 1100ms; }
.chart-label--3 { animation-delay: 1300ms; }
.chart-label--4 { animation-delay: 1500ms; }

.chart-axis-label {
  opacity: 0;
  animation: chartLabelFade 600ms cubic-bezier(0.22, 1, 0.36, 1) 700ms forwards;
}

@keyframes chartBgFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes chartGridDraw {
  from {
    opacity: 0;
    transform: scaleX(0.2);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes chartLineDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes chartDotPop {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    opacity: 1;
    transform: scale(1.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes chartPulseRing {
  0% {
    opacity: 0.7;
    transform: scale(1);
    stroke-width: 2;
  }
  100% {
    opacity: 0;
    transform: scale(3.2);
    stroke-width: 0.5;
  }
}

@keyframes chartLabelFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: chartLabelFade 600ms cubic-bezier(0.22, 1, 0.36, 1) 1700ms forwards;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chart-legend-swatch {
  display: inline-block;
  width: 26px;
  height: 4px;
  border-radius: 999px;
}

.chart-legend-swatch--without {
  background: linear-gradient(90deg, #5ea3f2, #ffffff);
}

.chart-legend-swatch--with {
  background: linear-gradient(90deg, var(--gold-strong), var(--gold));
  box-shadow: 0 0 10px rgba(31, 124, 232, 0.45);
}

.chart-legend-text {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chart-legend-item:last-child .chart-legend-text {
  color: var(--text);
}

.disclaimer {
  margin: 20px auto 0;
  color: var(--muted-soft);
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

/* ============================================================
   OFFER SCREEN
   ============================================================ */

.offer-screen {
  min-height: 100vh;
  background: transparent;
  position: relative;
  z-index: 1;
}

.offer-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(8, 24, 47, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.offer-bar strong {
  font-weight: 800;
  color: var(--muted);
}

.timer {
  color: var(--gold);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  text-transform: none;
}

.offer-wrap {
  width: min(100%, 800px);
  margin: 0 auto;
  padding: 28px 22px 64px;
  position: relative;
  z-index: 1;
}

.offer-title {
  margin: 20px 0 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.9rem, 4.6vw, 2.85rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text);
}

.body-compare {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.body-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), border-color 380ms ease, box-shadow 380ms ease;
}

@media (hover: hover) {
  .body-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 124, 232, 0.35);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  }
}

.body-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .body-card:hover img {
    transform: scale(1.04);
  }
}

.body-card div {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.body-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.body-card strong {
  display: block;
  margin-top: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
}

.compare-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 24, 47, 0.85);
  border: 1px solid rgba(31, 124, 232, 0.5);
  box-shadow: 0 0 24px rgba(31, 124, 232, 0.18);
}

.compare-arrow::before {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--gold);
  border-top: 2.5px solid var(--gold);
  transform: rotate(45deg) translateX(-2px);
}

.plans {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.plan-option {
  position: relative;
}

.plan-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .plan-card:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 124, 232, 0.35);
  }
}

.plan-dot {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.plan-option input:checked + .plan-card {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(31, 124, 232, 0.16), rgba(31, 124, 232, 0.04));
  box-shadow: 0 0 0 1px rgba(31, 124, 232, 0.3), 0 14px 30px rgba(0, 0, 0, 0.4);
}

.plan-option input:checked + .plan-card .plan-dot {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.5), 0 0 12px rgba(31, 124, 232, 0.45);
}

.plan-title {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
}

.plan-copy {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.plan-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.plan-price {
  text-align: right;
  white-space: nowrap;
  display: grid;
  gap: 2px;
  justify-items: end;
}

.plan-price strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.plan-price > span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plan-price-sub {
  display: block;
  margin-top: 0;
  color: var(--muted-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
}

.plan-badge {
  grid-column: 1 / -1;
  width: fit-content;
  margin-left: 42px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(54, 217, 120, 0.18);
  color: #7fb8f2;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.plan-badge s {
  color: rgba(255, 255, 255, 0.62);
  text-decoration-thickness: 2px;
}

.offer-cta {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(110, 125, 150, 0.4);
  overflow: hidden;
  isolation: isolate;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}

.offer-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .offer-cta:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 36px rgba(110, 125, 150, 0.5);
    color: #fff;
  }

  .offer-cta:hover::after {
    transform: translateX(100%);
  }
}

.fineprint {
  margin: 14px 0 0;
  color: var(--muted-soft);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.offer-section {
  margin-top: 36px;
}

.offer-section h2 {
  margin: 0 0 18px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--text);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.offer-section h2::before,
.offer-section h2::after {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(31, 124, 232, 0.6),
    transparent
  );
}

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

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: border-color 220ms ease, background 220ms ease;
  overflow: hidden;
}

.faq details[open] {
  border-color: rgba(31, 124, 232, 0.4);
  background: var(--card-hover);
}

.faq summary {
  padding: 16px 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 220ms ease;
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes blobFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    border-radius: 58% 42% 63% 37% / 47% 53% 47% 53%;
  }
  25% {
    transform: translate3d(20px, -30px, 0) scale(1.04);
    border-radius: 42% 58% 37% 63% / 53% 47% 53% 47%;
  }
  50% {
    transform: translate3d(-15px, 20px, 0) scale(0.97);
    border-radius: 63% 37% 47% 53% / 42% 63% 37% 58%;
  }
  75% {
    transform: translate3d(15px, 10px, 0) scale(1.02);
    border-radius: 37% 63% 53% 47% / 58% 42% 63% 37%;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 14px 32px rgba(31, 124, 232, 0.35);
  }
  50% {
    box-shadow: 0 16px 44px rgba(31, 124, 232, 0.55);
  }
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 900px) {
  .content {
    padding-top: 28px;
  }

  .question-block {
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
    align-items: start;
    gap: 40px;
  }

  .question-block .title,
  .question-block .subtitle,
  .question-block .eyebrow {
    text-align: left;
  }

  .question-block .subtitle {
    margin-left: 0;
  }
}

/* ============================================================
   COMPACT FIT — every step lives inside the viewport without the
   user having to scroll. PRIMARY content (title, options, CTA)
   stays clearly visible; SECONDARY content (eyebrow, subtitle,
   stat captions, disclaimers, legal text) is shrunk and dimmed.
   ============================================================ */

.topbar {
  min-height: 60px;
  padding: 8px 16px;
}

.brand-mark {
  font-size: 1.55rem;
}

.topbar-title {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
}

.progress-segments span {
  height: 4px;
}

.content {
  padding: 22px 32px 100px;
}

.content.is-narrow {
  width: min(100%, 680px);
}

/* PRIMARY: section title — moderate, not huge. */
.title {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.08;
}

/* SECONDARY: subtitle — smaller, dimmer. */
.subtitle {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  margin-bottom: 8px;
}

  .question-block {
    gap: 14px;
  }

  .gender-step {
    gap: 18px;
    padding-top: 12px;
  }

  .gender-toggle {
    min-height: 58px;
  }

  .gender-option {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  /* ============================================================
   AGE INTRO STEP
   ============================================================ */

.age-intro {
  gap: 8px;
  padding-top: 4px;
}

.age-grid {
  margin-top: 14px;
  gap: 12px;
}

.age-card img {
  aspect-ratio: 1 / 0.7;
}

.age-label {
  min-height: 50px;
  padding: 10px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.arrow-disc {
  width: 28px;
  height: 28px;
}

.arrow-disc::before {
  width: 8px;
  height: 8px;
}

.age-legal {
  margin-top: 14px;
  padding-top: 12px;
  font-size: 0.78rem;
  line-height: 1.45;
}

/* ============================================================
   CHOICES (single + multi)
   ============================================================ */

.choices {
  gap: 8px;
}

.choice {
  min-height: 54px;
  padding: 12px 16px;
  gap: 12px;
}

.choice-text {
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 700;
}

.radio {
  width: 24px;
  height: 24px;
}

.choice.is-selected .radio::after {
  inset: 4px;
}

.multi .choice.is-selected .radio::after {
  inset: 4px;
  border-radius: 2px;
}

/* ============================================================
   INFO STEP (image + stats + subtitle)
   ============================================================ */

.info-visual {
  margin: 0 auto 14px;
  border-radius: 15px;
}

.info-visual img {
  max-height: 220px;
}

/* Natural-aspect variant: container shrinks to fit the image's
   intrinsic ratio, no cropping or letterboxing. Used by the three
   "transition" info steps (training-start-info, capacity-info,
   recovery-info) where the editorial portrait should breathe. */
.info-visual--natural {
  display: block;
  width: max-content;
  max-width: 100%;
  background: transparent;
  box-shadow: none;
}

.info-visual--natural::after {
  display: none;
}

.info-visual--natural img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.stat-row {
  gap: 8px;
  margin-top: 14px;
}

.stat,
.profile-card,
.benefit-card {
  padding: 12px 14px;
  border-radius: 12px;
}

.stat strong {
  font-size: 1.25rem;
}

.stat span,
.profile-card span,
.benefit-card span {
  margin-top: 3px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

/* ============================================================
   MEASUREMENT STEP
   ============================================================ */

.input-panel {
  gap: 18px;
}

.unit-toggle {
  padding: 4px;
}

.unit-button,
.target-toggle {
  min-width: 80px;
  min-height: 38px;
  font-size: 0.78rem;
}

.measurement-row {
  padding-bottom: 10px;
  gap: 14px;
}

.measurement-row input {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
}

.measurement-unit {
  padding-bottom: 4px;
  font-size: clamp(1.8rem, 6vw, 2.7rem);
}

.validation {
  margin-top: -16px;
  min-height: 18px;
  font-size: 0.84rem;
}

.consent {
  font-size: 0.86rem;
  line-height: 1.4;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
}

.consent input {
  width: 24px;
  height: 24px;
}

/* ============================================================
   GATE STEP (email / name)
   ============================================================ */

.text-field {
  gap: 8px;
}

.text-field label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}

.text-field input {
  min-height: 52px;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 11px;
}

/* ============================================================
   PROFILE / PROJECTION / PLAN STEPS
   ============================================================ */

.profile-grid,
.benefit-grid {
  margin-top: 14px;
  gap: 10px;
}

.profile-card strong,
.benefit-card strong {
  margin-top: 4px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.profile-card p,
.benefit-card p {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted-soft);
}

.chart-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
}

.chart-labels {
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.chart-legend {
  margin-top: 10px;
  padding-top: 10px;
  gap: 8px 16px;
}

.chart-legend-swatch {
  width: 22px;
  height: 3px;
}

.chart-legend-text {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.disclaimer {
  margin-top: 12px;
  font-size: 0.76rem;
  line-height: 1.45;
}

/* ============================================================
   REVEAL STEP
   ============================================================ */

.reveal-card {
  margin-top: 18px;
  padding: 20px 22px;
}

.reveal-card strong {
  font-size: 1.05rem;
}

.reveal-code {
  margin-top: 12px;
  padding: 10px 18px;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
}

/* ============================================================
   STICKY FOOTER + CTA
   ============================================================ */

.sticky-footer {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.cta {
  min-height: 50px;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}

/* ============================================================
   DESKTOP (≥ 900) — horizontal expansion: age cards in a single
   row, profile/benefit grids in four columns. Question-block
   keeps its title-left / choices-right split with the tighter
   choice rows above.
   ============================================================ */

@media (min-width: 900px) {
  .topbar {
    min-height: 60px;
  }

  .content {
    padding: 22px 40px 90px;
  }

  /* Give the projection / plan / profile screens enough horizontal
     room that 4-up grids and long value strings don't wrap. */
  .content.is-narrow {
    width: min(100%, 820px);
  }

  /* PRIMARY: age cards lay out in a single row instead of 2×2 so
     the whole "Train Like an Athlete" intro fits with the legal
     copy still visible. */
  .age-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
  }

  /* SECONDARY: profile + benefit cards in 4 columns with the body
     copy clamped to two lines so the row stays short. */
  .profile-grid,
  .benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .profile-card,
  .benefit-card {
    padding: 10px 12px;
  }

  .profile-card strong,
  .benefit-card strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .profile-card p,
  .benefit-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.76rem;
  }

  /* SECONDARY: chart card capped so projection/plan-ready fit. */
  .chart-card {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px;
  }

  .chart-labels {
    margin-top: 6px;
  }

  .chart-legend {
    margin-top: 8px;
    padding-top: 8px;
  }

  .disclaimer {
    margin-top: 8px;
    font-size: 0.72rem;
  }

  /* Stat row keeps 3 columns but tighter. */
  .stat-row {
    gap: 12px;
  }

  /* Sticky footer slimmer on desktop. */
  .sticky-footer {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  .cta {
    min-height: 46px;
  }
}

/* ============================================================
   MOBILE (< 620) — slightly tighter still so 8-option choice
   screens fit in a 375×812 viewport with the topbar + sticky
   footer accounted for.
   ============================================================ */

@media (max-width: 620px) {
  .topbar {
    min-height: 56px;
    padding: 6px 12px;
  }

  .content {
    padding: 14px 16px 86px;
  }

  /* PRIMARY: title — readable but doesn't dominate the small screen. */
  .title {
    font-size: clamp(1.4rem, 5vw, 1.7rem);
  }

  .subtitle {
    font-size: 0.86rem;
  }

  /* AGE STEP — 2 columns, shorter cards. */
  .age-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .age-card img {
    aspect-ratio: 1 / 0.82;
  }

  .age-label {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.74rem;
    grid-template-columns: minmax(0, 1fr) 24px;
  }

  .arrow-disc {
    width: 24px;
    height: 24px;
  }

  .age-legal {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 0.72rem;
    line-height: 1.4;
  }

  /* CHOICE STEPS — tighter rows so 8-9 options + footer fit. */
  .choice {
    min-height: 46px;
    padding: 9px 12px;
    gap: 10px;
  }

  .choice-text {
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .radio {
    width: 22px;
    height: 22px;
  }

  .choices {
    gap: 6px;
  }

  .question-block {
    gap: 10px;
  }

  /* INFO / STAT cards — single column. */
  .stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .stat strong {
    font-size: 1.05rem;
  }

  .info-visual img {
    max-height: 150px;
  }

  .info-visual--natural img {
    max-height: 180px;
  }

  /* PROFILE / BENEFIT — 2 columns with line-clamped copy so 8 cards
     still fit on tall steps. */
  .profile-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .profile-card,
  .benefit-card {
    padding: 8px 10px;
  }

  .profile-card strong,
  .benefit-card strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .profile-card p,
  .benefit-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .profile-card span,
  .benefit-card span,
  .stat span {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }

  /* CHART card — capped so projection + plan-ready fit. */
  .chart-card {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
  }

  .chart-labels {
    margin-top: 4px;
    font-size: 0.66rem;
  }

  .chart-legend {
    margin-top: 6px;
    padding-top: 6px;
    gap: 6px 12px;
  }

  .chart-legend-text {
    font-size: 0.62rem;
  }

  .disclaimer {
    margin-top: 8px;
    font-size: 0.7rem;
  }

  /* MEASUREMENT — smaller numbers fit on narrow phones. */
  .input-panel {
    gap: 14px;
  }

  .measurement-row input {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .measurement-unit {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  /* REVEAL — compact card. */
  .reveal-card {
    margin-top: 12px;
    padding: 16px 18px;
  }

  .reveal-code {
    margin-top: 8px;
    padding: 8px 14px;
    font-size: 1rem;
  }

  .sticky-footer {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .cta {
    min-height: 46px;
    font-size: 0.82rem;
  }
}

/* Legacy mobile dim-the-blobs tweak kept after the new compact rules. */
@media (max-width: 620px) {
  .page-blobs .blob {
    opacity: 0.3;
    filter: blur(60px);
  }

  .topbar {
    padding: 6px 12px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .brand-mark {
    font-size: 1.5rem;
    letter-spacing: 0.14em;
  }

  .topbar-title {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
  }

  .progress-segments {
    gap: 5px;
    width: 184px;
  }
}

@media (max-width: 380px) {
  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .plan-card {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .plan-price {
    grid-column: 2;
    text-align: left;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
