: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 {
  /* Tiny subset of MDI (needle/pill/activity/macros) inlined so icons paint with CSS — no 1.3MB font wait. */
  font-family: "MaterialCommunityIcons";
  src: url("data:font/ttf;base64,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") 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; }
.support-heading { font-size: 18px; letter-spacing: -0.2px; margin: 26px 0 6px; }
.support-heading + .section-lead { font-size: 16px; line-height: 1.5; }
[hidden] { display: none !important; }
.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;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}
.quiz-main {
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 42px 0 68px;
}
.success-loading,
.success-ready {
  display: grid;
  justify-items: start;
  gap: 14px;
}
.success-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  animation: buildspin 720ms linear infinite;
}
.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; }
/* The welcome is the one screen with no progress bar, so it reads as a full-bleed
   hero rather than a card: brand wash on the page, no container chrome, and the
   header dissolves into it. */
.quiz-shell:has(.quiz-welcome) {
  background:
    radial-gradient(80% 55% at 50% 4%, rgba(123, 115, 249, 0.15), transparent 62%),
    radial-gradient(65% 45% at 88% 96%, rgba(168, 85, 247, 0.13), transparent 66%),
    var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.quiz-shell:has(.quiz-welcome) .site-header {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.quiz-main:has(.quiz-welcome) { align-items: center; }
.quiz-card.quiz-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  width: min(520px, calc(100% - 36px));
  padding: 8px 4px 28px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.quiz-welcome .pill-tag { align-self: center; margin-bottom: 22px; }
.quiz-welcome .nowrap { white-space: nowrap; }
.quiz-welcome .quiz-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 6.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -1px;
  text-wrap: balance;
}
.quiz-welcome .quiz-subtitle {
  margin: 0 0 28px;
  max-width: 34ch;
  font-size: 16.5px;
  line-height: 1.5;
  text-wrap: pretty;
}
.quiz-welcome .btn.primary { min-height: 54px; }
.welcome-time {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 13.5px;
  font-weight: 600;
}
.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; }
.option-symbol.ion-outline svg { fill: none; }
.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);
}
.password-field {
  position: relative;
  display: grid;
}
.password-field input {
  padding-right: 72px;
}
.password-field button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 850;
  padding: 8px;
  cursor: pointer;
}
.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;
}
.support-insight-card {
  margin-top: 6px;
  border: 1px solid #E8E4F6;
  border-radius: 22px;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(138, 102, 247, 0.1), transparent 55%),
    #FCFBFF;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.support-insight-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}
.support-insight-check {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
}
.support-insight-check svg { width: 12px; height: 12px; display: block; }
.schedule-insight-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid #E8E4F6;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(138, 102, 247, 0.08), rgba(70, 133, 232, 0.05) 44%, rgba(47, 163, 107, 0.05)),
    linear-gradient(180deg, #FFFFFF 0%, #FAFBFF 100%);
  box-shadow: 0 22px 50px rgba(31, 35, 46, 0.1);
  padding: 18px;
}
.schedule-phone-mini {
  position: relative;
  width: min(360px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(226, 224, 239, 0.95);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 36px rgba(28, 29, 38, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 16px;
  backdrop-filter: blur(16px);
  transform: translateY(8px);
  animation: scheduleCardIn 620ms cubic-bezier(.2,.8,.2,1) forwards;
}
.schedule-phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.schedule-phone-brand {
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
  letter-spacing: -0.2px;
}
.schedule-phone-pill {
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #E4DDFB;
  border-radius: 999px;
  background: #F5F1FF;
  color: var(--primary-dark);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 760;
}
.schedule-dose-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(226, 224, 239, 0.92);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(245, 241, 255, 0.95), rgba(255, 255, 255, 0.96));
  padding: 14px;
  box-shadow: 0 10px 22px rgba(138, 102, 247, 0.1);
}
.schedule-dose-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px #E7DFFB;
}
.schedule-dose-icon svg { width: 18px; height: 18px; display: block; }
.schedule-dose-card span,
.schedule-mini-row b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}
.schedule-dose-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.25px;
}
.schedule-timeline {
  position: relative;
  height: 54px;
  margin: 8px 14px 2px;
}
.schedule-timeline::before,
.schedule-timeline span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 27px;
  height: 5px;
  border-radius: 999px;
}
.schedule-timeline::before { background: #EDEFF4; }
.schedule-timeline span {
  right: auto;
  width: 0;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  box-shadow: 0 6px 18px rgba(138, 102, 247, 0.26);
  animation: scheduleRail 1.5s ease-out 240ms forwards;
}
.schedule-timeline i {
  position: absolute;
  top: 20px;
  width: 19px;
  height: 19px;
  border: 4px solid #FFFFFF;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 6px 14px rgba(138, 102, 247, 0.24);
  opacity: 0;
  transform: scale(0.72);
  animation: scheduleDot 360ms ease-out forwards;
}
.schedule-timeline i:nth-of-type(1) { left: 0%; animation-delay: 380ms; }
.schedule-timeline i:nth-of-type(2) { left: 48%; animation-delay: 760ms; }
.schedule-timeline i:nth-of-type(3) { right: 0%; animation-delay: 1120ms; }
.schedule-mini-rows {
  display: grid;
  gap: 8px;
}
.schedule-mini-row {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(232, 228, 246, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 11px;
  opacity: 0;
  transform: translateY(10px);
  animation: scheduleRowIn 460ms cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(620ms + (var(--row) * 150ms));
}
.schedule-mini-row span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--primary), var(--purple));
}
.schedule-mini-row svg { width: 13px; height: 13px; display: block; }
.schedule-mini-row b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}
@keyframes scheduleCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes scheduleRail {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes scheduleDot {
  to { opacity: 1; transform: scale(1); }
}
@keyframes scheduleRowIn {
  to { opacity: 1; transform: translateY(0); }
}
.symptom-insight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #E8E4F6;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(138, 102, 247, 0.08), rgba(232, 247, 241, 0.78)),
    linear-gradient(180deg, #FFFFFF 0%, #FAFBFF 100%);
  box-shadow: 0 22px 50px rgba(31, 35, 46, 0.09);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.symptom-appbar,
.symptom-focus-card,
.symptom-pattern-card,
.symptom-meter {
  border: 1px solid rgba(226, 224, 239, 0.92);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(28, 29, 38, 0.07);
}
.symptom-appbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 18px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(8px);
  animation: symptomIn 480ms cubic-bezier(.2,.8,.2,1) forwards;
}
.symptom-appbar-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  letter-spacing: -0.1px;
}
.symptom-focus-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
  padding: 13px;
  opacity: 0;
  transform: translateY(10px);
  animation: symptomIn 520ms cubic-bezier(.2,.8,.2,1) 120ms forwards;
}
.symptom-focus-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #F7F4FF;
  box-shadow: inset 0 0 0 1px #E4DDFB;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}
.symptom-focus-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.symptom-focus-copy strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -0.25px;
}
.symptom-focus-score {
  min-width: 46px;
  height: 46px;
  border-radius: 17px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 10px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #FFFFFF;
  box-shadow: 0 10px 22px rgba(138, 102, 247, 0.22);
}
.symptom-focus-score b { font-size: 20px; line-height: 1; }
.symptom-focus-score span { font-size: 11px; font-weight: 760; opacity: 0.82; }
.symptom-meter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.symptom-meter {
  border-radius: 18px;
  padding: 13px 12px;
  display: grid;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: symptomIn 520ms cubic-bezier(.2,.8,.2,1) forwards;
}
.symptom-meter:nth-child(1) { animation-delay: 240ms; }
.symptom-meter:nth-child(2) { animation-delay: 340ms; }
.symptom-meter span {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 820;
}
.symptom-meter i {
  height: 7px;
  border-radius: 999px;
  background: #EEF0F4;
  overflow: hidden;
}
.symptom-meter b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7B73F9, #A855F7);
  animation: symptomMeter 900ms ease-out 520ms forwards;
}
.symptom-pattern-card {
  border-radius: 22px;
  padding: 13px;
  display: grid;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: symptomIn 520ms cubic-bezier(.2,.8,.2,1) 430ms forwards;
}
.symptom-pattern-header {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}
.symptom-pattern-header svg { width: 15px; height: 15px; display: block; }
.symptom-pattern-header b { font-size: 13px; }
.symptom-pattern-bars {
  height: 48px;
  display: flex;
  align-items: end;
  gap: 7px;
}
.symptom-pattern-bars i {
  flex: 1;
  height: 0;
  min-height: 12px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(138, 102, 247, 0.95), rgba(138, 102, 247, 0.22));
  animation: symptomBars 720ms ease-out forwards;
}
.symptom-pattern-bars i:nth-child(1) { animation-delay: 620ms; }
.symptom-pattern-bars i:nth-child(2) { animation-delay: 700ms; }
.symptom-pattern-bars i:nth-child(3) { animation-delay: 780ms; }
.symptom-pattern-bars i:nth-child(4) { animation-delay: 860ms; }
.symptom-pattern-bars i:nth-child(5) { animation-delay: 940ms; }
.symptom-pattern-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
}
@keyframes symptomIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes symptomMeter {
  to { width: var(--w); }
}
@keyframes symptomBars {
  to { height: var(--h); }
}
.motivation-insight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #E8E4F6;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(138, 102, 247, 0.09), rgba(255, 255, 255, 0.9) 48%, rgba(70, 133, 232, 0.06)),
    linear-gradient(180deg, #FFFFFF 0%, #FAFBFF 100%);
  box-shadow: 0 22px 50px rgba(31, 35, 46, 0.1);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.motivation-hero-card,
.motivation-context-card {
  border: 1px solid rgba(226, 224, 239, 0.92);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 24px rgba(28, 29, 38, 0.07);
}
.motivation-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 16px;
  min-height: 174px;
  opacity: 0;
  transform: translateY(10px);
  animation: motivationIn 520ms cubic-bezier(.2,.8,.2,1) forwards;
}
.motivation-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -34px auto;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(138, 102, 247, 0.12), transparent 64%);
  pointer-events: none;
}
.motivation-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.motivation-hero-label {
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.motivation-saved-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #E4DDFB;
  border-radius: 999px;
  background: #F7F4FF;
  color: var(--primary-dark);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}
.motivation-saved-pill svg { width: 11px; height: 11px; display: block; }
.motivation-quote {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--ink);
  font-size: clamp(21px, 5.8vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.6px;
  max-width: 96%;
}
.motivation-detail {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
}
.motivation-rail {
  position: relative;
  z-index: 1;
  height: 7px;
  margin-top: 20px;
  border-radius: 999px;
  background: #EEF0F4;
  overflow: hidden;
}
.motivation-rail span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7B73F9, #A855F7);
  animation: motivationRail 900ms ease-out 260ms forwards;
}
.motivation-rail i {
  position: absolute;
  top: 50%;
  left: 72%;
  width: 17px;
  height: 17px;
  border: 4px solid #FFFFFF;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 7px 16px rgba(138, 102, 247, 0.25);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  animation: motivationDot 340ms ease-out 880ms forwards;
}
.motivation-context-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.motivation-context-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 18px;
  padding: 12px;
  opacity: 0;
  transform: translateY(10px);
  animation: motivationIn 460ms cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(360ms + (var(--row) * 150ms));
}
.motivation-context-card > span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(123, 115, 249, 0.95), rgba(168, 85, 247, 0.95));
  color: #FFFFFF;
  box-shadow: 0 8px 16px rgba(138, 102, 247, 0.2);
  font-size: 14px;
  font-weight: 850;
}
.motivation-context-card svg { width: 15px; height: 15px; display: block; }
.motivation-context-card svg path { stroke: currentColor; }
.motivation-context-card b {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.25;
}
.motivation-context-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}
@keyframes motivationIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes motivationRail {
  to { width: 72%; }
}
@keyframes motivationDot {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.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;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.quiz-actions .btn { min-width: 130px; width: 100%; }
.quiz-actions.is-empty { margin-top: 0; }
.quiz-actions.is-empty:not(:has(.error.show)) { display: none; }

/* Step chrome: back is a chevron beside the progress bar, not a full-width button
   competing with Continue for the thumb. */
.quiz-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.quiz-topbar .progress { flex: 1; margin-bottom: 0; }
.quiz-topbar .quiz-kicker { flex: none; font-size: 12px; letter-spacing: 0.06em; }
.quiz-back {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.quiz-back svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) {
  .quiz-back:hover { background: #f2f3f7; color: var(--ink); }
}

.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;
}
.btn.apple {
  background: #000;
  color: #fff;
  gap: 9px;
  min-height: 52px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.btn.apple svg { display: block; margin-top: -2px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-resolving-panel {
  min-height: 300px;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.auth-resolving-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid #ece8ff;
  border-top-color: var(--primary);
  animation: buildspin 0.8s linear infinite;
}
.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;
}
/* The paywall is one decision surface: a quiet brand wash at the top, a tight
   value block, then the priced choice. Nothing between the headline and the
   cards is allowed to compete with them. */
.paywall-card {
  position: relative;
  width: min(520px, 100%);
  display: grid;
  gap: 0;
  padding: 30px 26px 24px;
  border-radius: 28px;
  overflow: hidden;
}
.paywall-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 190px;
  background: linear-gradient(180deg, rgba(123, 115, 249, 0.09), rgba(168, 85, 247, 0.035) 55%, transparent);
  pointer-events: none;
}
.paywall-head {
  position: relative;
  margin: 0 0 20px;
}
.paywall-eyebrow {
  justify-self: start;
  margin: 0 0 14px;
  border-color: transparent;
  background: var(--lavender);
  letter-spacing: 0.01em;
}
.paywall-card .plan-title {
  margin: 0 0 10px;
  font-size: clamp(29px, 6.4vw, 37px);
  line-height: 1.14;
  letter-spacing: -0.9px;
  max-width: 15ch;
}
.paywall-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
  max-width: 38ch;
}
.paywall-features {
  position: relative;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.paywall-features li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.15px;
  line-height: 1.25;
  list-style: none;
}
.paywall-feature-check {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  box-shadow: 0 4px 10px rgba(123, 115, 249, 0.28);
}
.paywall-feature-check svg { display: block; }
.trial-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
  margin: 0 0 22px;
  color: var(--muted);
}
.trial-timeline div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
  background: #fafbfc;
}
.trial-timeline strong,
.trial-timeline span {
  display: block;
}
.trial-timeline strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}
.trial-timeline span {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
}
.trial-timeline i {
  align-self: center;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
}
.paywall-plan-list {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}
.paywall-plan-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: center;
  width: 100%;
  min-height: 88px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 18px 16px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.paywall-plan-option.selected {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(138, 102, 247, 0.14);
}
.paywall-plan-option:first-child {
  padding-top: 56px;
}
.paywall-plan-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  place-items: center;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), #B84DFF);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.paywall-plan-radio {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #DADDE4;
  border-radius: 999px;
  color: #fff;
  background: #fff;
  font-size: 16px;
  font-weight: 900;
}
.paywall-plan-option.selected .paywall-plan-radio {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), #B84DFF);
}
.paywall-plan-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.paywall-plan-option strong,
.paywall-plan-option small {
  display: block;
}
.paywall-plan-option strong {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.paywall-plan-option small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.paywall-plan-option b {
  white-space: nowrap;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.15px;
  line-height: 1.2;
}
.paywall-card .btn.full + .btn.full {
  margin-top: 10px;
}
.paywall-cta {
  position: relative;
  min-height: 56px;
  border-radius: 17px;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.2px;
  box-shadow: 0 14px 32px rgba(123, 115, 249, 0.32);
}
/* The web-to-app handoff is the objection people actually have at this step,
   so it sits directly under the CTA in its own panel instead of the fine print. */
.paywall-reassurance {
  position: relative;
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 16px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8f9fc;
}
.paywall-reassurance li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 620;
  line-height: 1.35;
  list-style: none;
}
.paywall-reassure-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--primary-dark);
}
.paywall-reassure-icon svg { display: block; }
.paywall-reassure-secure .paywall-reassure-icon {
  color: #2f9d6a;
}
.paywall-reassurance li.paywall-reassure-download {
  color: var(--ink);
  font-weight: 750;
}
.paywall-reassure-download .paywall-reassure-icon {
  color: var(--primary);
}
.paywall-card .legal {
  position: relative;
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}
.legal { color: var(--faint); font-size: 12px; margin: 14px 0 0; line-height: 1.45; }
.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); }
.error { display: none; color: #b42318; background: #fff1f0; border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-size: 13px; }
.error.show { display: block; }
.platform-gate-panel {
  display: grid;
  gap: 14px;
}
.platform-gate-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.platform-gate-actions.secondary {
  margin-top: 0;
}
.platform-gate-success {
  border: 1px solid #b7ecd0;
  border-radius: 14px;
  background: #e8f8f2;
  color: #1f7a4c;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 760;
}

.cancel-main {
  min-height: 100vh;
  align-items: center;
  padding-top: 28px;
}
.exit-offer-card {
  position: relative;
  display: grid;
  gap: 20px;
  width: min(520px, calc(100% - 36px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}
.exit-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f4f5f7;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.exit-offer-header {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  padding: 2px 16px 0;
}
.exit-eyebrow {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 760;
}
.exit-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(31px, 7vw, 42px);
  line-height: 1.07;
  letter-spacing: 0;
}
.exit-body {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.exit-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 188px;
}
.exit-discount-card {
  position: relative;
  display: grid;
  place-items: center;
  width: min(340px, 72%);
  height: 126px;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 16px 30px rgba(123, 115, 249, 0.24);
}
.exit-discount-card span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(36px, 8vw, 43px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}
.exit-discount-sheen {
  position: absolute;
  top: -28px;
  left: -34px;
  width: 126px;
  height: 180px;
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(18deg);
}
.exit-sparkle {
  position: absolute;
  color: var(--primary-dark);
  font-weight: 850;
}
.exit-sparkle-a { left: 22px; top: 30px; }
.exit-sparkle-b { left: 42px; top: 102px; color: var(--purple); }
.exit-sparkle-c { right: 32px; top: 44px; color: var(--purple); }
.exit-sparkle-d { right: 24px; bottom: 42px; }
.exit-price-block {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}
.exit-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.exit-anchor-price {
  color: var(--ink);
  font-size: 24px;
  font-weight: 820;
  text-decoration: line-through;
}
.exit-price {
  color: var(--ink);
  font-size: 26px;
  font-weight: 500;
}
.exit-price-block p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.exit-plan-card {
  overflow: hidden;
  border: 2px solid var(--primary);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(23, 24, 28, 0.08);
}
.exit-ribbon {
  display: grid;
  place-items: center;
  min-height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.8px;
}
.exit-plan-row {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
}
.exit-plan-row h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: 0;
}
.exit-plan-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.exit-plan-row strong {
  color: var(--ink);
  font-size: 19px;
}
.exit-guarantee,
.exit-decline {
  text-align: center;
  font-size: 15px;
  font-weight: 760;
}
.exit-guarantee { color: var(--ink); margin-top: -2px; }
.exit-decline {
  color: var(--muted);
  text-decoration: none;
}

.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-card.quiz-welcome { border-radius: 0; padding: 8px 4px 24px; }
  .paywall-card {
    padding: 24px 18px 20px;
    border-radius: 24px;
  }
  .paywall-card .plan-title {
    font-size: 28px;
    line-height: 1.16;
    max-width: none;
    margin-bottom: 8px;
  }
  .paywall-head {
    margin-bottom: 18px;
  }
  .paywall-lead {
    font-size: 15px;
  }
  .paywall-features {
    margin-bottom: 20px;
    gap: 10px;
  }
  .paywall-features li {
    font-size: 15px;
  }
  .paywall-reassurance {
    padding: 14px;
  }
  .trial-timeline {
    margin-bottom: 20px;
  }
  .paywall-plan-option {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
    padding: 16px 14px;
  }
  .paywall-plan-option:first-child {
    padding-top: 52px;
  }
  .paywall-plan-radio {
    margin-top: 2px;
  }
  .paywall-plan-option b {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
    font-size: 15px;
  }
  .paywall-plan-option strong { font-size: 15px; }
  .paywall-plan-option small { font-size: 12.5px; }
}

/* App-shell for quiz steps on phones: the viewport is the screen. Progress pins to
   the top, Continue pins to the thumb zone, and only the question region scrolls —
   so the CTA is never something the user has to go find. Desktop keeps the card in
   normal flow, where there is height to spare. */
@media (max-width: 820px) {
  .quiz-shell:has(.quiz-step-card) {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    /* The hidden header generates no grid box, so the shell's `auto 1fr` would
       drop main into the auto row and collapse it to content height. */
    grid-template-rows: 1fr;
  }
  /* The header is a logo and two links that are already hidden at this width —
     66px of pure cost on a step screen. Privacy/Terms stay on the paywall. */
  .quiz-shell:has(.quiz-step-card) .site-header { display: none; }
  .quiz-main:has(.quiz-step-card) {
    min-height: 0;
    overflow: hidden;
    padding: 0;
    align-items: stretch;
  }
  .quiz-card.quiz-step-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    width: 100%;
    padding: 14px 18px 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .quiz-step-card .quiz-topbar {
    flex: none;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .quiz-step-card .quiz-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    /* Let content pass under the fade rather than ending flush against it. */
    padding-bottom: 12px;
  }
  .quiz-step-card .quiz-actions {
    flex: none;
    margin-top: 0;
    padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
  }
  /* Auto-advance steps have no actions bar, so the list would end flush against
     the screen edge with nothing to signal more below. Give it the same fade and
     keep the last option clear of the home indicator. */
  .quiz-step-card:has(.quiz-actions.is-empty) .quiz-body {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .quiz-step-card:has(.quiz-actions.is-empty)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
  }
  .quiz-card.quiz-step-card { position: relative; }
  /* Soft edge so a scrolled list reads as continuing under the CTA. */
  .quiz-step-card .quiz-actions::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    margin-top: -30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
  }
  .quiz-step-card .quiz-actions { position: relative; }
}

/* 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: 36px 0 40px;
}
.trust-layout {
  gap: 28px;
  min-height: calc(100vh - 160px);
  justify-content: space-between;
}
.trust-layout .plan-title,
.build-layout .plan-title { font-size: clamp(30px, 4.4vw, 38px); line-height: 1.1; letter-spacing: -0.6px; }
.trust-layout .section-lead,
.build-layout .section-lead { max-width: 346px; margin: 0; color: #777B86; font-size: 18px; line-height: 1.35; }
.trust-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: #F7F1FF;
  border: 1px solid #ECE3FA;
  color: #8A66F7;
  font-size: 11px;
  font-weight: 650;
}
.trust-pill svg { width: 11px; height: 11px; display: block; }

.trust-visual {
  position: relative;
  width: min(320px, 100%);
  height: 278px;
  display: grid;
  place-items: center;
  margin: 0 auto;
}
.trust-glow-outer,
.trust-glow-inner {
  position: absolute;
  border-radius: 50%;
}
.trust-glow-outer {
  width: 260px; height: 260px;
  background: #F3EFFF;
}
.trust-glow-inner {
  width: 202px; height: 202px;
  background: #F7F1FF;
}
.trust-orbit {
  position: absolute;
  border-radius: 50%;
}
.trust-orbit-one {
  top: 46px; right: 54px;
  width: 14px; height: 14px;
  background: #8D82FF;
}
.trust-orbit-two {
  left: 48px; bottom: 54px;
  width: 10px; height: 10px;
  background: #C59BFF;
}
.trust-card-back {
  position: absolute;
  width: 154px; height: 172px;
  border-radius: 30px;
  background: #F8F5FF;
  opacity: 0.9;
  transform: rotate(-8deg);
  box-shadow: 0 10px 28px rgba(17, 19, 24, 0.06);
}
.trust-card-front {
  position: relative;
  width: 170px; height: 186px;
  border-radius: 32px;
  background: #FFFDFC;
  border: 1px solid #ECE3FA;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 14px 34px rgba(17, 19, 24, 0.14);
}
.trust-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-mini-mark {
  width: 34px; height: 34px;
  border-radius: 13px;
  background: #8A66F7;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: none;
}
.trust-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trust-line {
  display: block;
  height: 8px;
  border-radius: 4px;
}
.trust-line-strong { width: 86%; background: #DCD7F7; }
.trust-line-soft { width: 62%; background: #F1E7F8; }
.trust-progress {
  height: 12px;
  border-radius: 6px;
  background: #F0ECFA;
  overflow: hidden;
}
.trust-progress span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #6C7BF7, #A855F7);
}
.trust-tiles {
  display: flex;
  gap: 8px;
}
.trust-tile {
  flex: 1;
  height: 42px;
  border-radius: 15px;
  background: #F7F4FF;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #8A66F7;
}
.trust-check-badge {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 56px;
  height: 56px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #6C7BF7, #A855F7);
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(108, 123, 247, 0.28);
  animation: trustpop 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.trust-check-badge svg { display: block; }

.btn.pill {
  min-height: 56px;
  border-radius: 28px;
  font-size: 16.5px;
  font-weight: 650;
  background: linear-gradient(90deg, #6C7BF7, #A855F7);
  box-shadow: 0 12px 30px rgba(108, 123, 247, 0.28);
}
.plan-cta-bar {
  width: min(420px, 100%);
  padding: 8px 0 12px;
  position: relative;
  z-index: 2;
}
.plan-cta-bar.sticky {
  position: sticky;
  bottom: 12px;
  margin-top: 18px;
  padding: 12px 0 8px;
  background: linear-gradient(180deg, rgba(251,252,254,0), #fbfcfe 28%);
}

.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;
}
@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); } }

/* Plan preview (matches mobile PlanSavedScreen) */
.plan-preview {
  position: relative;
  padding: 28px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -12px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti-fall var(--duration, 1500ms) cubic-bezier(0.22, 0.61, 0.36, 1) var(--delay, 0ms) both;
  will-change: transform, opacity;
}
.confetti-piece.circle { border-radius: 50%; }
@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -24px, 0) rotate(0deg) scale(0.2);
  }
  12% {
    opacity: 1;
    transform: translate3d(calc(var(--drift) * 0.15), 24px, 0) rotate(calc(var(--spin) * 0.2)) scale(1);
  }
  72% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 260px, 0) rotate(var(--spin)) scale(0.85);
  }
}
.mdi-glyph {
  font-family: "MaterialCommunityIcons";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  speak: none;
  -webkit-font-smoothing: antialiased;
}
.plan-preview-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 4px 4px 0;
  position: relative;
  z-index: 1;
}
.plan-preview-check {
  width: 54px;
  height: 54px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #6C7BF7, #A855F7);
  margin-bottom: 2px;
}
.plan-preview-title {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.4px;
}
.plan-preview-subtitle {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.4;
  padding: 0 10px;
}
.plan-preview-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.plan-preview-frame {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  margin: 4px auto 0;
  border: 1px solid #E8E4F6;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(138, 102, 247, 0.08), rgba(255, 255, 255, 0.94) 46%, rgba(70, 133, 232, 0.06)),
    #FBFCFE;
  box-shadow: 0 24px 54px rgba(31, 35, 46, 0.11);
  padding: 14px;
}
.plan-preview-frame-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.plan-preview-frame-top span:first-child {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.1px;
}
.plan-preview-frame-top span:last-child {
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--primary-dark);
  background: #F5F1FF;
  border: 1px solid #E4DDFB;
  border-radius: 999px;
  padding: 6px 10px;
}
.plan-preview-frame .plan-preview-cards { gap: 12px; }
.plan-preview-frame .plan-timeline-card,
.plan-preview-frame .plan-nutrition-card {
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(17, 19, 24, 0.06);
}
.plan-preview-frame .plan-metric-medication,
.plan-preview-frame .plan-metric-compact {
  border-radius: 18px;
}
@media (max-width: 720px) {
  .plan-preview-frame {
    border-radius: 26px;
    padding: 12px;
  }
  .plan-preview-frame-top {
    padding-bottom: 12px;
  }
}
.plan-timeline-card,
.plan-nutrition-card {
  border-radius: 28px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 28px rgba(17, 19, 24, 0.07);
}
.plan-timeline-card {
  background: #FCFBFF;
  border: 1px solid #E8E4F6;
}
.plan-nutrition-card {
  position: relative;
  background:
    radial-gradient(90% 70% at 8% -10%, rgba(232, 96, 76, 0.14), transparent 48%),
    radial-gradient(80% 65% at 100% 110%, rgba(47, 163, 107, 0.12), transparent 50%),
    linear-gradient(165deg, #FFFDFB 0%, #FFF6F0 48%, #F8FBF8 100%);
  border: 1px solid #EDE3DE;
  gap: 18px;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(88, 52, 40, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.plan-nutrition-card::before {
  content: "";
  position: absolute;
  top: -48px;
  right: -36px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 68%);
  pointer-events: none;
}
.plan-nutrition-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
  pointer-events: none;
}
.plan-nutrition-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.plan-nutrition-title-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(240, 231, 228, 0.95);
  box-shadow: 0 4px 12px rgba(17, 19, 24, 0.04);
}
.plan-nutrition-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(232, 96, 76, 0.16);
  color: #C24F3E;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.1px;
  box-shadow: 0 4px 12px rgba(232, 96, 76, 0.08);
}
.plan-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.plan-card-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.plan-card-badge {
  background: var(--lavender);
  color: #8A66F7;
  border-radius: 14px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 750;
}
.plan-card-icon-lavender,
.plan-metric-icon-lavender,
.plan-metric-icon-neutral {
  display: grid;
  place-items: center;
  flex: none;
}
.plan-card-icon-lavender {
  width: 34px; height: 34px;
  border-radius: 12px;
  background: var(--lavender);
  color: #8A66F7;
  font-size: 15px;
}
.plan-card-icon-plain { font-size: 17px; display: grid; place-items: center; }
.plan-timeline-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plan-timeline-date {
  min-height: 58px;
  border-radius: 18px;
  background: #F3F1F9;
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.plan-timeline-date-label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}
.plan-timeline-date-value {
  font-size: 15px;
  letter-spacing: -0.1px;
}
.plan-chart {
  border-radius: 20px;
  background: #fff;
  padding: 4px 10px 10px;
}
.plan-chart-svg { width: 100%; height: auto; display: block; }
.plan-chart-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -5px;
  padding: 0 3px;
  font-size: 11.5px;
  font-weight: 650;
}
.plan-chart-current { color: #8A66F7; }
.plan-chart-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
}
.plan-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.plan-chart-legend-actual {
  width: 16px; height: 3px;
  border-radius: 2px;
  background: #8A66F7;
}
.plan-chart-legend-projected {
  width: 16px; height: 0;
  border-top: 2px dashed #8A66F7;
  opacity: 0.7;
}
.plan-nutrition-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.plan-nutrition-calories {
  position: relative;
  width: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 10px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,252,250,0.78));
  border: 1px solid rgba(240, 231, 228, 0.95);
  box-shadow:
    0 12px 28px rgba(17, 19, 24, 0.05),
    0 1px 0 rgba(255,255,255,0.9) inset;
}
.plan-calorie-glow {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 96, 76, 0.16), rgba(168, 85, 247, 0.08) 45%, transparent 70%);
  top: 22px;
  pointer-events: none;
  filter: blur(1px);
}
.plan-calorie-ring {
  position: relative;
  width: 118px;
  height: 118px;
  z-index: 1;
  animation: nutrition-ring-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes nutrition-ring-in {
  0% { transform: scale(0.86); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.plan-calorie-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.plan-calorie-center strong {
  font-size: 24px;
  letter-spacing: -0.5px;
  line-height: 1;
}
.plan-calorie-center span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  margin-top: 1px;
}
.plan-calorie-caption {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.plan-macro-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}
.plan-macro-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.plan-macro-legend i {
  width: 6px; height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.7);
}
.plan-nutrition-macros {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}
.plan-nutrition-macro {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(17, 19, 24, 0.04);
  position: relative;
  overflow: hidden;
}
.plan-nutrition-macro.protein {
  border-color: rgba(232, 96, 76, 0.14);
  background: linear-gradient(90deg, rgba(253, 238, 235, 0.55), rgba(255,255,255,0.95) 34%);
}
.plan-nutrition-macro.fiber {
  border-color: rgba(47, 163, 107, 0.16);
  background: linear-gradient(90deg, rgba(231, 246, 238, 0.6), rgba(255,255,255,0.95) 34%);
}
.plan-nutrition-macro-copy {
  flex: 1;
  min-width: 0;
}
.plan-nutrition-macro strong {
  display: block;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.25px;
}
.plan-nutrition-macro-copy > span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  margin-top: 2px;
}
.plan-nutrition-macro-hint {
  color: #A8AEB7;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.plan-nutrition-macro-icon {
  width: 36px; height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 4px 10px rgba(17, 19, 24, 0.04);
}
.plan-nutrition-macro-icon.protein {
  background: linear-gradient(180deg, #FFF4F1, #FDEEEB);
  color: #E15D6E;
}
.plan-nutrition-macro-icon.fiber {
  background: linear-gradient(180deg, #F1FAF4, #E7F6EE);
  color: #2FA36B;
}
.plan-nutrition-macro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.plan-nutrition-chip {
  min-height: 54px;
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(230, 232, 236, 0.95);
  box-shadow: 0 6px 14px rgba(17, 19, 24, 0.035);
}
.plan-nutrition-chip b {
  font-size: 16px;
  letter-spacing: -0.2px;
  line-height: 1.1;
}
.plan-nutrition-chip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.plan-nutrition-chip.carbs {
  border-color: rgba(232, 145, 45, 0.2);
  background: linear-gradient(180deg, rgba(253, 243, 227, 0.55), rgba(255,255,255,0.92));
}
.plan-nutrition-chip.fat {
  border-color: rgba(74, 144, 217, 0.2);
  background: linear-gradient(180deg, rgba(234, 243, 252, 0.6), rgba(255,255,255,0.92));
}
.plan-metric-medication {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  border-radius: 24px;
  background: #FCFBFF;
  border: 1px solid #ECEAF5;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(17, 19, 24, 0.05);
}
.plan-metric-icon-lavender {
  width: 48px; height: 48px;
  border-radius: 18px;
  background: var(--lavender);
  font-size: 22px;
}
.plan-metric-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.plan-metric-label { font-size: 18px; font-weight: 750; }
.plan-metric-value { font-size: 20px; line-height: 1.25; letter-spacing: -0.2px; }
.plan-metric-sub { color: var(--muted); font-size: 13.5px; }
.plan-metric-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.plan-metric-compact {
  min-height: 166px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 8px 20px rgba(17, 19, 24, 0.04);
}
.plan-metric-icon-neutral {
  width: 42px; height: 42px;
  border-radius: 15px;
  background: #F7F8FA;
  font-size: 18px;
  margin-bottom: 4px;
}
.plan-compact-label { color: var(--muted); font-size: 12px; font-weight: 650; margin-top: 4px; }
.plan-compact-value { font-size: 20px; letter-spacing: -0.25px; line-height: 1.2; }
.plan-compact-unit { color: var(--muted); font-size: 11.5px; }
.plan-mini-bar {
  margin-top: auto;
  height: 8px;
  border-radius: 4px;
  background: #E3EBE7;
  overflow: hidden;
}
.plan-mini-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #2FA36B;
}
.plan-hydration-dots {
  margin-top: auto;
  display: flex;
  gap: 5px;
  height: 8px;
  align-items: center;
}
.plan-hydration-dots i {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #DCE8F3;
}
.plan-hydration-dots i.filled { background: #4685E8; }

@media (max-width: 640px) {
  .plan-nutrition-row { flex-direction: column; align-items: center; }
  .plan-nutrition-macros { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .trust-check-badge { animation: none; }
  .build-step[data-state="active"] .build-spin { animation: none; }
  .confetti-piece { animation: none; opacity: 0; }
  .plan-calorie-ring { animation: none; }
  .schedule-phone-mini,
  .schedule-timeline span,
  .schedule-timeline i,
  .schedule-mini-row {
    animation: none;
  }
  .symptom-appbar,
  .symptom-focus-card,
  .symptom-meter,
  .symptom-meter b,
  .symptom-pattern-card,
  .symptom-pattern-bars i,
  .motivation-hero-card,
  .motivation-rail span,
  .motivation-rail i,
  .motivation-context-card {
    animation: none;
  }
  .schedule-phone-mini,
  .schedule-timeline i,
  .schedule-mini-row,
  .symptom-appbar,
  .symptom-focus-card,
  .symptom-meter,
  .symptom-pattern-card,
  .motivation-hero-card,
  .motivation-rail i,
  .motivation-context-card {
    opacity: 1;
    transform: none;
  }
  .schedule-timeline span { width: 100%; }
  .symptom-meter b { width: var(--w); }
  .symptom-pattern-bars i { height: var(--h); }
  .motivation-rail span { width: 72%; }
}
