:root {
  --ink: #17181c;
  --muted: #5f6670;
  --faint: #9aa0a8;
  --line: #e6e8ec;
  --bg: #fbfcfe;
  --card: #ffffff;
  --primary: #7b73f9;
  --primary-dark: #5b52de;
  --green: #4f8ef7;
  --purple: #a855f7;
  --lavender: #efeafb;
  --mint: #e8f8f2;
  --peach: #fff1e8;
  --shadow: 0 18px 55px rgba(23, 24, 28, 0.11);
}

@font-face {
  font-family: "MaterialCommunityIcons";
  src: url("assets/fonts/MaterialCommunityIcons.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 254, 0.88);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(230, 232, 236, 0.9);
}
.nav {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 780;
  font-size: 19px;
  letter-spacing: -0.3px;
}
.mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }

.btn {
  border: 0;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 760;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(23, 24, 28, 0.16);
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--purple)); }
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.full { width: 100%; }
.btn[disabled] { opacity: 0.48; cursor: not-allowed; transform: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 760;
  font-size: 13px;
}
.hero {
  padding: 58px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 44px;
}
.hero h1 {
  margin: 18px 0 18px;
  max-width: 10.8ch;
  font-size: clamp(45px, 8vw, 82px);
  line-height: 0.97;
  letter-spacing: -1.6px;
}
.hero-copy {
  max-width: 58ch;
  color: var(--muted);
  font-size: 20px;
  margin: 0 0 28px;
}
.accent {
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.proof-pill {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.phone-stage {
  min-height: 600px;
  position: relative;
  display: grid;
  place-items: center;
}
.phone {
  width: min(330px, 84vw);
  aspect-ratio: 0.49;
  border-radius: 42px;
  border: 10px solid #1f2128;
  background: #f8f7fb;
  box-shadow: var(--shadow);
  padding: 20px 16px;
  overflow: hidden;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 750; }
.phone-card {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
}
.phone-title { margin: 0; font-size: 22px; line-height: 1.05; letter-spacing: -0.5px; }
.mini-chart {
  height: 128px;
  margin-top: 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(123, 115, 249, 0.14), rgba(79, 142, 247, 0.12)),
    repeating-linear-gradient(to right, transparent, transparent 42px, rgba(230, 232, 236, 0.8) 43px);
  position: relative;
}
.mini-chart::after {
  content: "";
  position: absolute;
  inset: 28px 22px 30px;
  border-bottom: 5px solid var(--primary);
  border-left: 5px solid transparent;
  border-radius: 0 0 0 50%;
  transform: skewY(-13deg);
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.stat {
  border-radius: 16px;
  background: var(--lavender);
  padding: 12px;
}
.stat:nth-child(2) { background: var(--mint); }
.stat:nth-child(3) { background: var(--peach); }
.stat:nth-child(4) { background: #eef4ff; }
.stat b { display: block; font-size: 18px; letter-spacing: -0.2px; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 650; }
.floating-card {
  position: absolute;
  width: 210px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(23, 24, 28, 0.1);
  padding: 15px;
}
.floating-card.left { left: 0; top: 90px; }
.floating-card.right { right: 0; bottom: 120px; }
.floating-card b { display: block; margin-bottom: 4px; }
.floating-card span { color: var(--muted); font-size: 13px; }

.section { padding: 56px 0; }
.section-head { max-width: 690px; margin-bottom: 28px; }
.section h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -1px;
}
.section-lead { margin: 0; color: var(--muted); font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 21px;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--lavender);
  color: var(--primary-dark);
  font-weight: 850;
  margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 7px; font-size: 18px; letter-spacing: -0.25px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
.step-num { color: var(--primary-dark); font-weight: 850; margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.4px; }
.step p { margin: 0; color: var(--muted); }

.quiz-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}
.quiz-main {
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 42px 0 68px;
}
.quiz-card {
  width: min(780px, calc(100% - 36px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 26px;
}
.progress {
  height: 8px;
  border-radius: 999px;
  background: #eceef2;
  overflow: hidden;
  margin-bottom: 24px;
}
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(135deg, var(--primary), var(--purple)); }
.quiz-kicker { color: var(--primary-dark); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.quiz-title { margin: 8px 0 8px; font-size: clamp(29px, 5vw, 44px); line-height: 1.05; letter-spacing: -0.8px; }
.quiz-question-title { margin: 18px 0 8px; font-size: 24px; line-height: 1.15; letter-spacing: 0; }
.quiz-subtitle { margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.option-grid { display: grid; gap: 10px; }
.option {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 62px;
  padding: 15px 16px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  text-align: left;
}
.option.selected { border-color: var(--primary); background: #f7f5ff; }
@media (hover: hover) and (pointer: fine) {
  .option:hover { border-color: var(--primary); background: #f7f5ff; }
}
.option-label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.option-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: contain;
}
.option-symbol {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--ink);
  background: #f7f8fa;
}
.option-symbol svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.mdi-symbol {
  font-family: "MaterialCommunityIcons";
  font-size: 18px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.option strong { display: block; font-size: 16px; }
.option small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.check {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.option.selected .check { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 6px #fff; }
.quiz-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--muted); font-size: 13px; font-weight: 750; }
.field input {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
}
.dose-picker {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}
.dose-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.dose-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-weight: 750;
  cursor: pointer;
}
.dose-chip.selected {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: var(--lavender);
}
.dose-range-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 8px;
}
.dose-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: center;
}
.dose-range {
  width: 100%;
  accent-color: var(--primary);
}
.dose-number-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 750;
}
.weight-number-wrap {
  width: min(190px, 100%);
  justify-self: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 750;
}
.dose-number {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-weight: 760;
}
.height-picker {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
}
.weight-picker {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
}
.height-unit-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #f7f8fa;
}
.height-unit-toggle button {
  border: 0;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}
.height-unit-toggle button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(23, 24, 28, 0.08);
}
.height-readout {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 0 4px;
}
.height-readout strong {
  font-size: clamp(40px, 8vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}
.height-readout span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}
.height-range {
  width: 100%;
  accent-color: var(--primary);
}
.height-scale {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 12px;
  font-weight: 750;
  margin-top: -10px;
}
.height-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.height-controls.metric { grid-template-columns: minmax(0, 1fr); }
.height-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.height-controls select {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
}
.insight-page {
  display: grid;
  gap: 12px;
}
.insight-visual {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f8f7ff);
  overflow: hidden;
}
.insight-caption {
  margin: -2px 0 0;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 760;
}
.trend-visual {
  display: grid;
  place-items: center;
  padding: 18px;
}
.trend-visual svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}
.trend-grid {
  fill: none;
  stroke: #e6e8ec;
  stroke-width: 1;
}
.trend-area {
  fill: url(#trendFill);
}
.trend-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6;
  stroke-linecap: round;
}
.trend-visual circle {
  fill: var(--primary);
  stroke: #fff;
  stroke-width: 4;
}
.progress-comparison-card {
  background: #f8f7fb;
  border-radius: 24px;
  padding: 18px 14px 16px;
  box-shadow: 0 12px 30px rgba(23, 24, 28, 0.09);
}
.progress-chart-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  padding: 0 4px;
}
.progress-comparison-card svg {
  display: block;
  width: 100%;
  height: auto;
}
.progress-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}
.progress-reveal-rect {
  animation: chartReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}
.progress-area.tracked {
  fill: url(#trackedTrend);
}
.progress-area.gap {
  fill: url(#gapTrend);
}
.progress-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.progress-line.tracked {
  stroke: var(--primary);
  stroke-width: 3;
}
.progress-line.untracked {
  stroke: #ff7a66;
  stroke-width: 2.5;
}
.progress-axis {
  fill: var(--muted);
  font: 650 11px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.progress-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px;
  margin-top: -4px;
}
.legend-pill {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 760;
}
.legend-pill.tracked {
  background: var(--lavender);
  color: var(--primary-dark);
}
.legend-pill.tracked::before {
  content: "*";
  margin-right: 4px;
}
.legend-pill.untracked {
  background: #fff1f0;
  color: #d34b3d;
}
.progress-caption {
  margin: 12px 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
@keyframes chartReveal {
  from { width: 0; }
  to { width: 284px; }
}
@keyframes weightChartReveal {
  from { width: 0; }
  to { width: 280px; }
}
@keyframes trackFill {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes endPop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
@keyframes fadeLift {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes statLift {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes metricGrow {
  from { width: 0; }
  to { width: var(--target); }
}
.effectiveness-card {
  background: #f8f7fb;
  border-radius: 24px;
  padding: 16px;
  display: grid;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(23, 24, 28, 0.09);
}
.effectiveness-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 2px;
}
.effectiveness-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.effectiveness-legend i.brand {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--primary);
}
.effectiveness-legend i.baseline {
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: #ff7a66;
}
.effectiveness-metric {
  display: grid;
  gap: 6px;
}
.effectiveness-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.effectiveness-header span {
  flex: 1;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 760;
}
.effectiveness-header strong {
  color: var(--primary-dark);
  font-size: 15px;
}
.effectiveness-track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}
.effectiveness-track b {
  display: block;
  width: var(--target);
  height: 12px;
  border-radius: 6px;
  background: var(--primary);
  animation: metricGrow 900ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay) both;
}
.effectiveness-track i {
  position: absolute;
  left: var(--baseline);
  top: -2px;
  width: 2px;
  height: 16px;
  border-radius: 1px;
  background: #ff7a66;
}
.effectiveness-metric small {
  color: var(--muted);
  font-size: 12px;
}
.effectiveness-card p {
  margin: 2px 0 0;
  color: var(--faint);
  text-align: center;
  font-size: 11px;
}
.weight-progress-shell {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: center;
}
.weight-cheer-banner {
  margin-bottom: 14px;
  animation: fadeLift 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.weight-cheer-banner div {
  border-radius: 999px;
  background: var(--lavender);
  padding: 8px 16px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 760;
}
.weight-progress-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  padding: 28px 24px 22px;
  display: grid;
  justify-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(23, 24, 28, 0.08);
}
.weight-progress-card.acknowledge { border-color: var(--lavender); }
.weight-stat-block {
  display: grid;
  justify-items: center;
  animation: statLift 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.weight-stat-block strong {
  color: var(--ink);
  font-size: clamp(42px, 9vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
}
.weight-stat-block.support strong { font-size: clamp(34px, 7vw, 42px); }
.weight-stat-block span {
  margin-top: 4px;
  border-radius: 999px;
  background: var(--lavender);
  padding: 6px 12px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 760;
}
.weight-stat-block.support span {
  background: #f8f7fb;
  color: var(--muted);
}
.weight-mini-chart {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 4px;
  display: grid;
  gap: 6px;
  animation: fadeLift 560ms cubic-bezier(0.22, 1, 0.36, 1) 420ms both;
}
.weight-mini-chart p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 650;
}
.weight-mini-chart svg {
  display: block;
  width: 100%;
  height: auto;
}
.weight-trend-area { fill: url(#weightTrendFill); }
.weight-trend-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.weight-trend-dot { fill: var(--purple); }
.weight-reveal-rect {
  animation: weightChartReveal 780ms cubic-bezier(0.22, 1, 0.36, 1) 520ms both;
}
.weight-progress-track {
  width: 100%;
  margin-top: 10px;
}
.weight-track-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 28px;
  align-items: center;
}
.weight-start-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--faint);
  justify-self: center;
}
.weight-track-line {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--lavender);
  overflow: hidden;
}
.weight-track-line span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: var(--primary);
  animation: trackFill 780ms cubic-bezier(0.22, 1, 0.36, 1) 520ms both;
}
.weight-end-ring {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  justify-self: center;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  animation: endPop 520ms cubic-bezier(0.2, 1.4, 0.35, 1) 760ms both;
}
.weight-end-ring span {
  width: 10px;
  height: 10px;
  border-radius: inherit;
  background: #fff;
}
.weight-track-copy {
  display: flex;
  justify-content: space-between;
  padding: 8px 2px 0;
}
.weight-track-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.weight-track-copy span:last-child { color: var(--primary-dark); }
.pace-panel {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
}
.pace-date-pill {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink);
  background: #fbfcfe;
  font-size: 13px;
  font-weight: 760;
}
.pace-flag .option-symbol {
  width: 18px;
  height: 18px;
  background: transparent;
  border-radius: 0;
}
.pace-flag svg {
  width: 16px;
  height: 16px;
}
.pace-readout {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.pace-readout > span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 820;
}
.pace-readout div {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.pace-readout strong {
  font-size: clamp(52px, 10vw, 66px);
  line-height: 0.95;
  letter-spacing: 0;
}
.pace-readout em {
  padding-bottom: 8px;
  color: var(--ink);
  font-style: normal;
  font-size: 18px;
  font-weight: 650;
}
.pace-readout b {
  color: var(--primary-dark);
  font-size: 15px;
}
.pace-slider-block {
  display: grid;
  gap: 8px;
}
.pace-icons {
  display: flex;
  justify-content: space-between;
}
.pace-icon {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pace-icon .option-symbol {
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: transparent;
  font-size: 30px;
}
.pace-icon.active .option-symbol {
  color: var(--primary);
}
.pace-range {
  width: 100%;
  accent-color: var(--primary);
}
.pace-scale {
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}
.pace-guidance {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}
.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.quiz-actions .btn { min-width: 130px; }

.plan-layout {
  padding: 48px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 16px 45px rgba(23, 24, 28, 0.07);
}
.plan-title { margin: 0 0 12px; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -1.2px; }
.focus-list { display: grid; gap: 12px; margin: 24px 0; }
.focus-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.focus-dot {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--lavender);
  display: grid;
  place-items: center;
  font-weight: 850;
  color: var(--primary-dark);
}
.focus-item h3 { margin: 0 0 3px; font-size: 17px; }
.focus-item p { margin: 0; color: var(--muted); }
.price-card { position: sticky; top: 88px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.price strong { font-size: 42px; letter-spacing: -1px; }
.price span { color: var(--muted); }
.checkout-email {
  margin: 18px 0 12px;
}
.save-layout {
  padding: 48px 0 70px;
  display: grid;
  justify-items: center;
}
.save-panel {
  width: min(620px, 100%);
  display: grid;
  gap: 14px;
}
.save-title {
  margin: 12px 0 10px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.8px;
}
.consent-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--primary);
}
.consent-row a {
  color: var(--ink);
  font-weight: 760;
}
.auth-switch {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 760;
  cursor: pointer;
  min-height: 34px;
}
.account-pill {
  margin: 10px 0 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-align: center;
  overflow-wrap: anywhere;
}
.paywall-card {
  width: min(520px, 100%);
}
.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f0f2f5;
  border-radius: 16px;
  padding: 6px;
  margin: 18px 0;
}
.toggle button {
  border: 0;
  border-radius: 12px;
  min-height: 42px;
  background: transparent;
  cursor: pointer;
  font-weight: 780;
  color: var(--muted);
}
.toggle button.active { background: #fff; color: var(--ink); box-shadow: 0 4px 15px rgba(23, 24, 28, 0.08); }
.legal { color: var(--faint); font-size: 12px; margin: 14px 0 0; }
.error { display: none; color: #b42318; background: #fff1f0; border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-size: 13px; }
.error.show { display: block; }

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 42px;
  color: var(--faint);
  font-size: 14px;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.footer a { color: var(--muted); text-decoration: none; font-weight: 650; }
.disclaimer { max-width: 76ch; margin: 16px 0 0; font-size: 12.5px; color: var(--faint); }

@media (max-width: 900px) {
  .hero, .plan-layout { grid-template-columns: 1fr; }
  .phone-stage { min-height: auto; padding: 14px 0; }
  .floating-card { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .price-card { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-reveal-rect {
    animation: none;
  }
}
@media (max-width: 620px) {
  .wrap, .narrow { width: min(100% - 28px, 1120px); }
  .nav-links { display: none; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: 46px; }
  .hero-copy { font-size: 17px; }
  .grid, .quiz-fields { grid-template-columns: 1fr; }
  .dose-control { grid-template-columns: 1fr; }
  .height-controls { grid-template-columns: 1fr; }
  .quiz-card, .panel { border-radius: 22px; padding: 20px; }
  .quiz-actions { flex-direction: column-reverse; }
  .quiz-actions .btn { width: 100%; }
}

/* Plan build sequence: "Thanks for trusting us" + building-your-plan beats */
.trust-layout,
.build-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  padding: 64px 0 84px;
}
.trust-layout .plan-title,
.build-layout .plan-title { font-size: clamp(30px, 4.4vw, 44px); }
.trust-layout .section-lead,
.build-layout .section-lead { max-width: 420px; }
.trust-layout .btn.full { width: min(420px, 100%); }
.trust-layout .btn.ghost { margin-top: -4px; }

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.pill-check {
  display: inline-grid;
  place-items: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  font-size: 9px;
}

.trust-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px; height: 148px;
  margin-bottom: 4px;
  border-radius: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.trust-ring {
  display: grid;
  place-items: center;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--lavender);
}
.trust-check {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  animation: trustpop 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes trustpop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.build-bar {
  width: min(420px, 100%);
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 4px 0 6px;
}
.build-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  transition: width 480ms cubic-bezier(0.4, 0, 0.2, 1);
}
.build-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}
.build-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--faint);
  opacity: 0.55;
  transition: opacity 280ms ease, color 280ms ease, border-color 280ms ease;
}
.build-step[data-state="active"],
.build-step[data-state="done"] { opacity: 1; color: var(--ink); }
.build-step[data-state="active"] { border-color: var(--primary); }

.build-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  flex: none;
}
.build-spin {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  opacity: 0;
}
.build-tick {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  transform: scale(0.4);
  opacity: 0;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease;
}
.build-step[data-state="active"] .build-spin { opacity: 1; animation: buildspin 720ms linear infinite; }
.build-step[data-state="done"] .build-tick { transform: scale(1); opacity: 1; }
.build-label { font-size: 15px; font-weight: 500; }
@keyframes buildspin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .trust-check { animation: none; }
  .build-step[data-state="active"] .build-spin { animation: none; }
}
