/* ============================================================================
   1Fit — персональный разбор
   Design tokens sampled from the live 1fit.app stylesheet:
     #3447F6 primary indigo · #4C27DE violet · #E9D290 sand
     #FCA2FE pink · #44C7FF cyan · #29BB5B green · Inter Display
   Layout/rhythm follows an Airbnb-style system: generous whitespace,
   hairline borders, layered soft shadows, one confident accent.
   ========================================================================= */

/* ─────────────────────────── tokens ─────────────────────────── */
:root {
  /* brand */
  --brand:        #3447F6;
  --brand-hover:  #2537DC;
  --brand-press:  #1E2CBC;
  --violet:       #4C27DE;
  --sand:         #E9D290;
  --sand-soft:    #F7EED3;
  --pink:         #FCA2FE;
  --cyan:         #44C7FF;
  --green:        #29BB5B;
  --green-deep:   #0C6E2E;
  --brand-tint:   #EEF0FF;
  --brand-tint-2: #E0E4FF;

  /* ink */
  --ink:    #0E1021;
  --ink-2:  #545974;
  --ink-3:  #8B90A8;
  --ink-4:  #B4B8CB;

  /* surfaces */
  --canvas:  #FFFFFF;
  --canvas-2:#F6F7FB;
  --surface: #FFFFFF;
  --line:    #E7E8F0;
  --line-2:  #D8DAE6;

  /* radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* elevation */
  --sh-1: 0 1px 2px rgba(14,16,33,.05), 0 1px 3px rgba(14,16,33,.04);
  --sh-2: 0 2px 4px rgba(14,16,33,.04), 0 8px 20px rgba(14,16,33,.07);
  --sh-3: 0 4px 8px rgba(14,16,33,.05), 0 18px 42px rgba(14,16,33,.11);
  --sh-brand: 0 6px 20px rgba(52,71,246,.28);

  /* motion */
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-io: cubic-bezier(.4,0,.2,1);

  --maxw: 640px;
}

/* ─────────────────────────── reset ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
svg { display: block; }
em { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

/* ─────────────────────────── screens ─────────────────────────── */
.screen { display: none; min-height: 100dvh; flex-direction: column; }
.screen--active { display: flex; animation: screenIn .5s var(--ease) both; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ─────────────────────────── topbar ─────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
}
.topbar--plain { background: var(--canvas); }
.topbar--plain .topbar__inner { justify-content: space-between; }

.topbar__note {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  letter-spacing: -.01em;
}

.brand { display: flex; align-items: center; gap: 2px; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; letter-spacing: -.03em;
}
.brand__name {
  font-weight: 800; font-size: 18px; letter-spacing: -.045em;
  margin-left: 3px;
}

.iconbtn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); flex: none;
  transition: background .18s var(--ease-io);
}
.iconbtn:hover { background: var(--canvas-2); }
.iconbtn:active { transform: scale(.94); }
.iconbtn[disabled] { opacity: .3; pointer-events: none; }

/* ─────────────────── deceptive progress bar ─────────────────── */
.progress { flex: 1; min-width: 0; }
.progress__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 7px;
}
.progress__section {
  font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink);
}
.progress__pct {
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.progress__track {
  height: 6px; border-radius: var(--r-pill);
  background: var(--line); overflow: hidden;
}
.progress__fill {
  height: 100%; width: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--violet), var(--brand));
  /* the deceptive easing lives here: long, decelerating fill */
  transition: width .85s var(--ease);
  position: relative;
}
.progress__fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.2s var(--ease-io) infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ─────────────────────────── hero ─────────────────────────── */
.hero {
  flex: 1;
  max-width: 1100px; width: 100%; margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) 20px 60px;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 72px); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 10px; border-radius: var(--r-pill);
  background: var(--brand-tint); color: var(--brand);
  font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.03;
  letter-spacing: -.045em;
  font-weight: 800;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero__title em {
  background: linear-gradient(100deg, var(--brand), var(--violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55; color: var(--ink-2);
  max-width: 46ch; margin-bottom: 34px;
  letter-spacing: -.011em;
}

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 26px;
}
.trust li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  letter-spacing: -.01em;
}
.trust .icon { color: var(--ink-4); }

/* hero visual */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 400px; }
.orb {
  position: absolute; width: 118%; aspect-ratio: 1;
  background:
    radial-gradient(circle at 32% 28%, var(--brand) 0%, transparent 52%),
    radial-gradient(circle at 72% 38%, var(--violet) 0%, transparent 50%),
    radial-gradient(circle at 52% 78%, var(--pink) 0%, transparent 46%),
    radial-gradient(circle at 24% 68%, var(--cyan) 0%, transparent 44%);
  filter: blur(52px); opacity: .30;
  animation: drift 16s var(--ease-io) infinite alternate;
}
@keyframes drift {
  from { transform: translate(-3%, -2%) scale(1); }
  to   { transform: translate(3%, 3%) scale(1.08); }
}

.mock {
  position: relative;
  width: min(360px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  padding: 24px;
  animation: float 7s var(--ease-io) infinite alternate;
}
@keyframes float {
  from { transform: translateY(-7px) rotate(-.5deg); }
  to   { transform: translateY(7px) rotate(.5deg); }
}
.mock__head {
  display: flex; align-items: center; gap: 9px;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.mock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mock__title { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: -.01em; }
.mock__figure { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.mock__num {
  font-size: 46px; font-weight: 800; letter-spacing: -.05em; line-height: 1;
  color: var(--ink);
}
.mock__unit { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.mock__bars { display: grid; gap: 11px; margin-bottom: 20px; }
.mock__bar { position: relative; height: 26px; }
.mock__bar span {
  position: absolute; inset: 0 auto 0 0; height: 100%;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  animation: grow 1.4s var(--ease) both;
}
.mock__bar:nth-child(2) span { background: var(--sand-soft); animation-delay: .1s; }
.mock__bar:nth-child(3) span { background: #E4F7EA; animation-delay: .2s; }
.mock__bar b {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding-left: 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
@keyframes grow { from { transform: scaleX(0); transform-origin: left; } }
.mock__row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; font-size: 14px; font-weight: 500;
  color: var(--ink-2); border-top: 1px solid var(--line);
  letter-spacing: -.01em;
}
.mock__row .icon { color: var(--brand); }

/* ─────────────────────────── buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--r-md);
  font-size: 16px; font-weight: 600; letter-spacing: -.015em;
  transition: transform .14s var(--ease), background .18s var(--ease-io),
              box-shadow .2s var(--ease-io), border-color .18s var(--ease-io);
  white-space: nowrap;
}
.btn:active { transform: scale(.975); }
.btn--lg { padding: 17px 30px; font-size: 17px; border-radius: var(--r-md); }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--brand); color: #fff;
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { background: var(--brand-hover); box-shadow: 0 8px 26px rgba(52,71,246,.36); }
.btn--primary:active { background: var(--brand-press); }
.btn--primary[disabled] {
  background: var(--line-2); color: #fff; box-shadow: none;
  pointer-events: none;
}

.btn--secondary {
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn--secondary:hover { border-color: var(--ink); background: var(--canvas-2); }

.btn--ghost { color: var(--ink-2); padding: 12px 16px; }
.btn--ghost:hover { color: var(--ink); background: var(--canvas-2); }

.btn--apple { background: #000; color: #fff; }
.btn--apple:hover { background: #1a1a1a; }
.btn--apple .icon { width: 22px; height: 22px; margin-top: -2px; }

/* ─────────────────────────── quiz stage ─────────────────────────── */
.stage {
  flex: 1;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 20px 140px;
  /* Centre the question block on tall viewports so short questions don't
     sit marooned at the top of a mostly empty desktop screen, but let long
     ones grow downward normally. */
  display: flex; flex-direction: column; justify-content: center;
}
.question { width: 100%; }

.question { animation: qIn .42s var(--ease) both; }
.question--out { animation: qOut .2s var(--ease-io) both; }
@keyframes qIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes qOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-10px); }
}

.q__kicker {
  font-size: 13px; font-weight: 600; color: var(--brand);
  letter-spacing: -.005em; margin-bottom: 12px;
  display: block;
}
.q__title {
  font-size: clamp(27px, 4.2vw, 34px);
  line-height: 1.16; letter-spacing: -.038em; font-weight: 700;
  margin-bottom: 10px; text-wrap: balance;
}
.q__sub {
  font-size: 16px; color: var(--ink-2); line-height: 1.5;
  letter-spacing: -.011em; margin-bottom: 30px; max-width: 52ch;
}
.q__title + .opts, .q__title + .numwrap { margin-top: 30px; }

/* option cards */
.opts { display: grid; gap: 11px; }
.opts--two { grid-template-columns: 1fr 1fr; }

.opt {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 18px 20px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .16s var(--ease-io), background .16s var(--ease-io),
              box-shadow .2s var(--ease-io), transform .14s var(--ease);
}
.opt:hover { border-color: var(--ink-4); box-shadow: var(--sh-1); }
.opt:active { transform: scale(.99); }

.opt--on {
  border-color: var(--brand); border-width: 1.5px;
  background: var(--brand-tint);
  box-shadow: 0 0 0 1.5px var(--brand);
}
.opt--on .opt__label { color: var(--brand); }

.opt__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.opt__label {
  font-size: 16px; font-weight: 600; letter-spacing: -.018em;
  line-height: 1.3;
}
.opt__hint {
  font-size: 13.5px; color: var(--ink-3); font-weight: 400;
  letter-spacing: -.008em; line-height: 1.35;
}
.opt--on .opt__hint { color: #6B74C9; }

.opt__mark {
  width: 24px; height: 24px; flex: none;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: transparent;
  transition: all .16s var(--ease-io);
}
.opt__mark--box { border-radius: 7px; }
.opt--on .opt__mark {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.opt__mark .icon { width: 15px; height: 15px; }

/* numeric input */
.numwrap { display: grid; gap: 14px; }
.numfield {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  padding: 30px 24px;
  background: var(--canvas-2);
  border: 1.5px solid transparent;
  border-radius: var(--r-lg);
  transition: border-color .18s var(--ease-io), background .18s var(--ease-io);
}
.numfield:focus-within { border-color: var(--brand); background: var(--surface); }
.numfield input {
  width: 4.5ch; border: none; background: none; outline: none;
  font-size: 52px; font-weight: 800; letter-spacing: -.05em;
  text-align: right; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.numfield input::-webkit-outer-spin-button,
.numfield input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.numfield input[type=number] { -moz-appearance: textfield; }
.numfield__unit { font-size: 20px; font-weight: 600; color: var(--ink-3); letter-spacing: -.02em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  letter-spacing: -.012em;
  transition: all .16s var(--ease-io);
}
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip--on { background: var(--ink); border-color: var(--ink); color: #fff; }

.q__hint {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 20px; padding: 13px 15px;
  background: var(--canvas-2); border-radius: var(--r-md);
  font-size: 13.5px; color: var(--ink-2); line-height: 1.45;
  letter-spacing: -.008em;
}
.q__hint .icon { color: var(--ink-3); margin-top: 1px; }

/* sticky action bar */
.actionbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--canvas) 24%);
  padding: 30px 20px calc(20px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.actionbar__inner {
  max-width: var(--maxw); margin: 0 auto; pointer-events: auto;
}

/* ─────────────────────────── centered screens ─────────────────────────── */
.center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
  max-width: 560px; margin: 0 auto; width: 100%;
}
.center--narrow { max-width: 460px; }
.center__title {
  font-size: clamp(27px, 3.6vw, 34px); font-weight: 700;
  letter-spacing: -.038em; line-height: 1.16;
  margin-bottom: 12px; text-wrap: balance;
}
.center__lede {
  font-size: 16.5px; color: var(--ink-2); line-height: 1.55;
  letter-spacing: -.011em; margin-bottom: 34px; max-width: 42ch;
}

/* analyzing ring */
.ring { position: relative; width: 128px; height: 128px; margin-bottom: 34px; }
.ring__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--line); stroke-width: 8; }
.ring__bar {
  fill: none; stroke: var(--brand); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  transition: stroke-dashoffset .5s var(--ease);
}
.ring__num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 26px; font-weight: 800; letter-spacing: -.04em;
}

.steps { display: grid; gap: 3px; width: 100%; max-width: 380px; text-align: left; }
.step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: 14.5px; font-weight: 500; color: var(--ink-4);
  letter-spacing: -.011em;
  opacity: 0; transform: translateY(6px);
  transition: all .4s var(--ease);
}
.step--in { opacity: 1; transform: none; color: var(--ink-2); }
.step--done { color: var(--ink); background: var(--canvas-2); }
.step__mark {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid; place-items: center; color: transparent;
  transition: all .3s var(--ease);
}
.step--done .step__mark { background: var(--green); border-color: var(--green); color: #fff; }
.step__mark .icon { width: 13px; height: 13px; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px 7px 11px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  margin-bottom: 20px;
}
.badge--done { background: #E4F7EA; color: var(--green-deep); }
.badge--brand { background: var(--brand-tint); color: var(--brand); }
.badge--sand { background: var(--sand-soft); color: #7A6222; }

/* ─────────────────────────── forms ─────────────────────────── */
.form { width: 100%; display: grid; gap: 16px; text-align: left; }
.field { display: grid; gap: 8px; }
.field__label {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  letter-spacing: -.01em;
}
.field__box {
  display: flex; align-items: center; gap: 8px;
  padding: 15px 17px;
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  transition: border-color .16s var(--ease-io), box-shadow .18s var(--ease-io);
}
.field__box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(52,71,246,.13);
}
.field__prefix { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.field__input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-size: 17px; font-weight: 500; letter-spacing: -.01em;
}
.field__input::placeholder { color: var(--ink-4); font-weight: 400; }
.field__brand { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.field__error { font-size: 13px; color: #D62F4B; font-weight: 500; }
.field--err .field__box { border-color: #D62F4B; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.fineprint {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: var(--ink-3); line-height: 1.45;
  letter-spacing: -.005em;
}
.fineprint--center { justify-content: center; text-align: center; margin-top: 6px; }
.fineprint .icon { flex: none; margin-top: 1px; }

/* ─────────────────────────── result ─────────────────────────── */
.result {
  flex: 1; width: 100%; max-width: 860px; margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) 20px 80px;
}

.rhead { margin-bottom: 36px; }
.rhead__title {
  font-size: clamp(30px, 4.4vw, 42px); font-weight: 800;
  letter-spacing: -.045em; line-height: 1.1;
  margin-bottom: 12px; text-wrap: balance;
}
.rhead__lede {
  font-size: 17px; color: var(--ink-2); line-height: 1.55;
  letter-spacing: -.011em; max-width: 58ch;
}

.section { margin-bottom: 40px; }
.section__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.section__icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; flex: none;
}
.section__title {
  font-size: 20px; font-weight: 700; letter-spacing: -.028em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card + .card { margin-top: 12px; }

/* ───────────── AI review card (branded 1Fit, not a persona) ───────────── */
.review {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
  padding: clamp(22px, 3vw, 30px);
  margin-bottom: 36px;
  overflow: hidden;
}
.review::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--violet), var(--pink));
}
.review__head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.review__mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 21px; letter-spacing: -.04em;
}
.review__id { display: grid; gap: 1px; }
.review__brand { font-size: 16px; font-weight: 700; letter-spacing: -.03em; }
.review__sub { font-size: 13px; color: var(--ink-3); letter-spacing: -.01em; }
.review__body { display: grid; gap: 14px; }
.review__body p {
  font-size: 16.5px; line-height: 1.6; color: var(--ink);
  letter-spacing: -.012em;
}

/* pending state — skeleton lines, no spinner */
.review--pending .review__body { gap: 11px; }
.rskel {
  height: 13px; border-radius: 7px;
  background: linear-gradient(90deg, var(--canvas-2) 25%, #EDEEF5 37%, var(--canvas-2) 63%);
  background-size: 400% 100%;
  animation: skel 1.4s var(--ease-io) infinite;
}
.rskel:nth-child(3n) { width: 72%; }
.rskel:nth-child(3n+2) { width: 93%; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
.review__note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 13px; color: var(--ink-3);
  letter-spacing: -.005em;
}

/* KPI row */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px;
}
.kpi__label {
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  letter-spacing: -.005em; margin-bottom: 8px; display: block;
}
.kpi__value {
  font-size: 32px; font-weight: 800; letter-spacing: -.045em;
  line-height: 1; display: flex; align-items: baseline; gap: 5px;
}
.kpi__unit { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: -.02em; }
.kpi__note { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; display: block; letter-spacing: -.005em; }
.kpi--hero {
  background: linear-gradient(135deg, var(--brand), var(--violet));
  border-color: transparent; color: #fff;
  box-shadow: var(--sh-brand);
}
.kpi--hero .kpi__label, .kpi--hero .kpi__note { color: rgba(255,255,255,.78); }
.kpi--hero .kpi__unit { color: rgba(255,255,255,.78); }

/* macros */
.macros { display: grid; gap: 16px; }
.macro { display: grid; gap: 7px; }
.macro__top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; letter-spacing: -.012em;
}
.macro__name { font-weight: 600; }
.macro__val { color: var(--ink-2); font-weight: 500; }
.macro__track { height: 8px; border-radius: var(--r-pill); background: var(--canvas-2); overflow: hidden; }
.macro__fill { height: 100%; border-radius: var(--r-pill); transition: width .9s var(--ease); }

/* forecast chart — single series, brand indigo, direct-labelled endpoints */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__area { fill: url(#chartGrad); }
.chart__line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart__dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2.5; }
.chart__lbl { font-size: 11px; font-weight: 600; fill: var(--ink-3); letter-spacing: -.01em; }
.chart__val { font-size: 13px; font-weight: 700; fill: var(--ink); letter-spacing: -.02em; }
.chart__hit { fill: transparent; cursor: pointer; }
.chart__cross { stroke: var(--ink-4); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .12s; }
.chart__tip {
  position: absolute; pointer-events: none; opacity: 0;
  transform: translate(-50%, -130%);
  background: var(--ink); color: #fff;
  padding: 7px 11px; border-radius: 9px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  letter-spacing: -.012em;
  transition: opacity .14s var(--ease-io);
  box-shadow: var(--sh-2);
}

/* weekly split */
.split { display: grid; gap: 9px; }
.splitrow {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.splitrow__day {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center;
  font-size: 13.5px; font-weight: 700; letter-spacing: -.02em;
}
.splitrow__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.splitrow__title { font-size: 15.5px; font-weight: 600; letter-spacing: -.018em; }
.splitrow__meta { font-size: 13px; color: var(--ink-3); letter-spacing: -.008em; }
.splitrow__min {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 5px 11px; border-radius: var(--r-pill); background: var(--canvas-2);
  flex: none;
}

/* insights */
.insights { display: grid; gap: 12px; }
.insight {
  display: flex; gap: 15px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.insight__icon {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  background: var(--canvas-2); color: var(--brand);
  display: grid; place-items: center;
}
.insight__body { display: grid; gap: 5px; }
.insight__title { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.insight__text { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; letter-spacing: -.01em; }

/* cautions */
.caution {
  display: flex; gap: 13px; padding: 17px 19px;
  border-radius: var(--r-md); border: 1px solid;
  font-size: 14.5px; line-height: 1.5; letter-spacing: -.01em;
}
.caution + .caution { margin-top: 10px; }
.caution__b { display: grid; gap: 3px; }
.caution__t { font-weight: 650; }
.caution--info     { background: var(--brand-tint); border-color: var(--brand-tint-2); color: #2A3597; }
.caution--info .icon { color: var(--brand); }
.caution--warn     { background: var(--sand-soft); border-color: #E6D9AE; color: #6E5817; }
.caution--warn .icon { color: #A88322; }
.caution--critical { background: #FDECEF; border-color: #F8D3DA; color: #96182F; }
.caution--critical .icon { color: #D62F4B; }
.caution .icon { flex: none; margin-top: 1px; }

/* nutrition table */
.meals { display: grid; gap: 9px; }
.meal {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.meal__name { font-size: 15px; font-weight: 650; letter-spacing: -.018em; width: 92px; flex: none; }
.meal__sug { flex: 1; font-size: 14px; color: var(--ink-2); letter-spacing: -.01em; line-height: 1.4; }
.meal__kcal {
  font-size: 13px; font-weight: 700; color: var(--brand);
  padding: 5px 11px; border-radius: var(--r-pill); background: var(--brand-tint);
  flex: none;
}

.rules { display: grid; gap: 11px; }
.rule {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.5;
  letter-spacing: -.01em;
}
.rule .icon { color: var(--green); flex: none; margin-top: 2px; }

/* ───────────────── locked / paywall ───────────────── */
.locked { position: relative; margin-top: 8px; margin-bottom: 28px; }
.locked__blur {
  /* Enough clarity to read the shape of the plan, not enough to use it. */
  filter: blur(5px); opacity: .62; user-select: none; pointer-events: none;
  max-height: 330px; overflow: hidden;
}
.locked__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.72) 55%, var(--canvas) 92%);
}

.offer {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  padding: clamp(26px, 4vw, 38px);
  text-align: center;
  overflow: hidden;
}
.offer::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--violet), var(--pink));
}
.offer__title {
  font-size: clamp(23px, 3vw, 29px); font-weight: 800;
  letter-spacing: -.038em; line-height: 1.18; margin-bottom: 11px;
  text-wrap: balance;
}
.offer__lede {
  font-size: 15.5px; color: var(--ink-2); line-height: 1.55;
  letter-spacing: -.011em; margin: 0 auto 26px; max-width: 44ch;
}
.offer__list {
  display: grid; gap: 11px; text-align: left;
  max-width: 380px; margin: 0 auto 28px;
}
.offer__list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 15px; letter-spacing: -.014em; line-height: 1.45;
}
.offer__list .icon { color: var(--green); flex: none; margin-top: 2px; }
.offer__price {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  margin-bottom: 6px;
}
.offer__amount { font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.offer__per { font-size: 15px; color: var(--ink-3); font-weight: 500; }
.offer__note { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; letter-spacing: -.005em; }
.offer__cta { max-width: 380px; margin: 0 auto; }
.offer__fine { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; letter-spacing: -.005em; }

/* ─────────────────────────── checkout ─────────────────────────── */
.checkout {
  flex: 1; width: 100%; max-width: 940px; margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 20px 80px;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 36px;
  align-items: start;
}
.checkout__title {
  font-size: clamp(25px, 3.4vw, 32px); font-weight: 700;
  letter-spacing: -.04em; margin-bottom: 24px;
}

.paytabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 26px;
}
.paytab {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  letter-spacing: -.014em;
  transition: all .16s var(--ease-io);
}
.paytab:hover { border-color: var(--ink-4); }
.paytab--active {
  border-color: var(--brand); color: var(--brand);
  background: var(--brand-tint);
  box-shadow: 0 0 0 1.5px var(--brand);
}

.paypanel { display: none; }
.paypanel--active { display: grid; animation: qIn .32s var(--ease) both; }
.paypanel__lede {
  font-size: 15px; color: var(--ink-2); line-height: 1.55;
  margin-bottom: 20px; letter-spacing: -.011em;
}

.summary {
  background: var(--canvas-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  position: sticky; top: 92px;
}
.summary__label {
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  letter-spacing: -.005em; display: block; margin-bottom: 7px;
}
.summary__title { font-size: 19px; font-weight: 700; letter-spacing: -.028em; margin-bottom: 18px; }
.summary__list { display: grid; gap: 10px; margin-bottom: 22px; }
.summary__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--ink-2); letter-spacing: -.012em; line-height: 1.4;
}
.summary__list .icon { color: var(--green); flex: none; margin-top: 2px; }
.summary__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 18px; border-top: 1px solid var(--line-2);
  font-size: 15px; font-weight: 600;
}
.summary__total b { font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.summary__note { font-size: 12.5px; color: var(--ink-3); margin-top: 9px; letter-spacing: -.005em; }

/* ─────────────────────────── success ─────────────────────────── */
.success__mark {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center; margin-bottom: 26px;
  animation: pop .55s var(--ease) both;
}
.success__mark .icon { width: 38px; height: 38px; }
@keyframes pop {
  0%   { transform: scale(.5); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.success__cards { display: grid; gap: 12px; width: 100%; margin-bottom: 28px; }
.scard {
  display: grid; gap: 7px; justify-items: center;
  padding: 24px 20px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.scard .icon { color: var(--brand); width: 24px; height: 24px; margin-bottom: 4px; }
.scard b { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.scard span { font-size: 14px; color: var(--ink-3); line-height: 1.45; letter-spacing: -.01em; }

/* ─────────────────────────── responsive ─────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero__visual { order: -1; min-height: 300px; }
  .mock { width: min(320px, 100%); transform: scale(.92); }
  .checkout { grid-template-columns: 1fr; gap: 26px; }
  .summary { position: static; }
  .checkout__aside { order: -1; }
}

@media (max-width: 560px) {
  .hero__title { font-size: 36px; }
  .opts--two { grid-template-columns: 1fr; }
  .stage { padding-bottom: 130px; }
  .numfield input { font-size: 44px; }
  .kpi__value { font-size: 27px; }
  .meal { flex-wrap: wrap; gap: 9px 12px; }
  .meal__name { width: auto; }
  .meal__sug { flex-basis: 100%; order: 3; }
  .paytab { font-size: 12px; padding: 13px 6px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .topbar__note { display: none; }
  .topbar--plain .topbar__note { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .progress__fill { transition: width .2s linear; }
}
