/* Tai Chi quiz funnel — mobile-first.
   Look: white, navy geometric headings, pale-grey answer tiles, royal-blue button (after the Aaptiv onboarding
   reference). Paywall keeps the reference funnel's layout in these colours. */
:root {
  --bg: #ffffff;
  --text: #141b34;
  --muted: #7c8395;
  --label: #5b6275;          /* answer-tile text: a step darker than the reference grey so it stays readable at 60+ */
  --tile: #f3f5f7;
  --tile-press: #e8ebef;
  --line: #e3e7ed;
  --card: var(--tile);
  --card-2: #ffffff;
  --accent: #0a12e0;
  --accent-press: #0810b4;
  --accent-soft: #eef0ff;
  --on-accent: #ffffff;
  --disabled: #8e93a1;
  --disabled-text: #ffffff;
  --sel: #34b356;            /* selected-answer fill; alternates with amber per screen (set inline) */
  --red: #e0424f;
  --red-bg: #fdecee;
  --green: #34b356;
  --green-bg: #e7f7eb;
  --amber: #f0a91e;
  --amber-bg: #fff4d9;
  --radius: 14px;
  --maxw: 480px;
  --display: "Urbanist", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--ui); font-size: 18.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }

#app { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.screen { flex: 1; display: flex; flex-direction: column; padding: 0 20px; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

/* ---------- header: back chevron + progress pill ---------- */
.hdr { padding: 18px 0 6px; }
.hdr-row { display: flex; align-items: center; gap: 14px; min-height: 32px; }
.hdr-back { width: 32px; height: 32px; display: grid; place-items: center; color: var(--text); flex: none; margin-left: -6px; }
.hdr-back svg { width: 22px; height: 22px; }
.hdr.center .hdr-row { justify-content: center; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; }
.logo-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--tile); flex: none; overflow: hidden; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.bar { flex: 1; height: 8px; border-radius: 4px; background: var(--tile); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s ease; }

/* ---------- round photo at the top of a question (stands in for the reference's illustrations) ---------- */
.art { position: relative; width: 124px; height: 124px; margin: 14px auto 0; flex: none; }
.art img { width: 100%; height: 100%; border-radius: 50%; background: var(--tile); object-fit: cover; object-position: center 18%; }
.art.cut img { object-position: top center; padding-top: 8px; }
.art i, .art::before, .art::after { content: ""; position: absolute; border-radius: 50%; }
.art::before { width: 9px; height: 9px; background: var(--red); top: 14px; left: -10px; box-shadow: 138px 6px 0 -1px #3da5f5, 12px 96px 0 -2px #f3bc40; }
.art::after { width: 7px; height: 7px; background: #62d26f; bottom: 12px; right: -12px; box-shadow: -120px -86px 0 0 #f3bc40, -18px -108px 0 -1px var(--accent); }
.art i { width: 6px; height: 6px; background: #3da5f5; top: 58px; left: -16px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); }
h1 { font-size: 31.5px; line-height: 1.2; font-weight: 800; margin: 20px 0 12px; letter-spacing: -.005em; text-align: center; }
h1 em { font-style: normal; color: var(--accent); }
.c { text-align: center; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 18.5px; text-align: center; }
.body { margin: 0 0 14px; }
.body b { font-weight: 700; color: var(--text); }
.screen[data-type="info"] .body { text-align: center; color: var(--muted); font-size: 19px; }
.tiny { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.tiny a { color: var(--text); }
.grow { flex: 1; }

/* ---------- answer tiles ---------- */
.opts { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.opts.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.opt {
  position: relative; width: 100%; background: var(--tile); border-radius: var(--radius); min-height: 78px; padding: 14px 18px;
  display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center;
  font-family: var(--display); font-size: 21.5px; font-weight: 600; color: var(--label); transition: background .12s, color .12s;
}
.opts.grid .opt { min-height: 96px; }
.opt:active { background: var(--tile-press); }
.opt.on { background: var(--sel); color: #fff; font-weight: 800; }
.opt .lbl { flex: 1; }
.opt .ico { position: absolute; right: 16px; font-size: 24px; }
.opts.grid .opt .ico { display: none; }
.opt .tag { position: absolute; top: 0; right: 0; background: var(--accent); color: #fff; font-family: var(--ui); font-size: 12px; letter-spacing: .08em; font-weight: 700; padding: 4px 10px; border-radius: 0 var(--radius) 0 10px; }
/* multi-select keeps a small check so it is obvious more than one can be picked */
.opt .chk { position: absolute; left: 16px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #cfd5de; display: grid; place-items: center; }
.opt.on .chk { border-color: #fff; background: #fff; }
.opt.on .chk::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--sel); border-bottom: 2.5px solid var(--sel); transform: rotate(-45deg) translate(1px, -1px); }
.opt .chk ~ .lbl { padding: 0 34px; }
/* tiles with a picture: label left, picture right */
.opt:has(.pic) { justify-content: flex-start; text-align: left; overflow: hidden; }
.opt:has(.pic) .lbl { padding: 0; }
.opt .pic { position: relative; width: 92px; height: 96px; margin: -14px -8px -14px 0; flex: none; overflow: hidden; align-self: stretch; }
.opt .pic img { position: absolute; left: 50%; top: -34px; height: 205px; width: auto; max-width: none; transform: translateX(-50%); }
.opt.has-photo { padding-right: 0; padding-left: 52px; }
.opt .pic.photo { width: 100px; height: auto; min-height: 92px; margin: -14px 0; }
.opt .pic.photo img { position: static; transform: none; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.arrow { position: absolute; right: 16px; opacity: .7; }

/* first screens */
.gender { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.gcard { background: var(--tile); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gcard img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: center top; }
.gcard span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 12px; font-family: var(--display); font-weight: 700; font-size: 21.5px; color: var(--label); }
.gcard span i { font-style: normal; opacity: .7; }
.gcard.on span { background: var(--sel); color: #fff; }
.age-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; margin-top: 8px; }
.age-photo { min-height: 330px; max-height: 400px; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(closest-side at 50% 58%, var(--tile) 0 96%, transparent 100%); }
.age-photo img { width: 100%; height: 100%; max-height: 400px; object-fit: contain; object-position: bottom center; }
.age-wrap .opts { gap: 12px; justify-content: center; margin-top: 0; }
.age-wrap .opt { min-height: 72px; }

/* target zones */
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zones .fig { display: flex; align-items: flex-end; justify-content: center; max-height: 400px; background: radial-gradient(closest-side at 50% 55%, var(--tile) 0 96%, transparent 100%); }
.zones .fig img { width: 100%; height: 100%; max-height: 400px; object-fit: contain; object-position: bottom center; }
.zones .opts { gap: 10px; margin-top: 0; }
.zones .opt { min-height: 52px; padding: 8px 10px; font-size: 18px; }

/* 1–5 scale */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 8px; }
.scale .opt { min-height: 66px; padding: 0; font-size: 24px; }
.scale-lbl { display: flex; justify-content: space-between; font-size: 15.5px; margin-top: 12px; color: var(--muted); }

/* unit toggle */
.seg { display: inline-flex; background: var(--tile); border-radius: 10px; padding: 3px; margin: 4px auto 14px; }
.seg button { min-width: 78px; padding: 7px 14px; border-radius: 8px; font-size: 17px; font-weight: 600; color: var(--label); }
.seg button.on { background: var(--accent); color: var(--on-accent); }
.seg-wrap { text-align: center; }

/* number entry */
.num { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 12px 0 24px; }
.num input {
  width: 2.2ch; min-width: 62px; background: transparent; border: 0; outline: 0; text-align: center; padding: 0;
  font-family: var(--display); font-size: 65px; font-weight: 800; color: var(--text); caret-color: var(--accent); -moz-appearance: textfield;
}
.num input.w3 { min-width: 128px; }
.num input::placeholder { color: #dfe3e9; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num .u { font-family: var(--display); font-size: 21.5px; font-weight: 700; color: var(--muted); margin-right: 10px; }
.note { background: var(--tile); border-radius: var(--radius); padding: 13px 14px; font-size: 16px; margin-bottom: 14px; display: flex; gap: 10px; text-align: left; }
.note b { display: block; font-size: 16.5px; }
.note.red { background: var(--red-bg); }
.note.green { background: var(--green-bg); }
.note.amber { background: var(--amber-bg); }
.note .n-ico { flex: none; font-size: 17.5px; line-height: 1.35; }
.err { color: var(--red); font-size: 15.5px; text-align: center; margin: -14px 0 14px; min-height: 18px; }

.field { width: 100%; background: var(--tile); border: 2px solid transparent; border-radius: 12px; padding: 16px 16px; font-size: 19.5px; outline: 0; color: var(--text); color-scheme: light; }
.field:focus { border-color: var(--accent); background: #fff; }
.field-lbl { font-size: 15.5px; font-weight: 600; margin: 6px 0 8px; display: block; }
.pill { background: var(--tile); border-radius: 12px; text-align: center; font-weight: 700; font-size: 16px; letter-spacing: .02em; padding: 11px; margin: 22px 0 12px; }
.lockline { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }

/* ---------- button ---------- */
.cta { width: 100%; min-height: 60px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-family: var(--ui); font-weight: 600; font-size: 20px; text-align: center; display: block; }
.cta:active { background: var(--accent-press); }
.cta[disabled] { background: var(--disabled); color: var(--disabled-text); cursor: default; }
.cta.small { min-height: 42px; font-size: 16.5px; padding: 0 18px; width: auto; white-space: nowrap; flex: none; border-radius: 8px; }
.foot { position: sticky; bottom: 0; padding: 14px 0 20px; background: linear-gradient(to top, var(--bg) 80%, rgba(255, 255, 255, 0)); margin-top: 16px; }
.skip { display: block; width: 100%; text-align: center; color: var(--muted); font-weight: 600; font-size: 16.5px; padding: 14px 0 2px; }
.pre-cta { text-align: center; color: var(--muted); font-size: 16.5px; margin-bottom: 10px; }

/* ---------- interstitials ---------- */
.hero-img { border-radius: 18px; overflow: hidden; margin-top: 10px; aspect-ratio: 3 / 2; background: var(--tile); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.big-num { font-family: var(--display); font-size: 49.5px; font-weight: 800; text-align: center; margin: 18px 0 0; color: var(--accent); }
.center-block { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; padding-bottom: 60px; }
.center-block h1 { font-size: 30px !important; }
.chart-card { background: var(--tile); border-radius: 18px; padding: 14px; margin: 6px 0 14px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.badge-card { border-radius: 18px; padding: 30px 16px; text-align: center; margin-top: 10px; background: var(--tile); }
.badge-card .laurel { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--accent); }
.badge-card .laurel svg { width: 54px; height: 86px; }
.badge-card .laurel .mid { font-family: var(--display); font-weight: 800; font-size: 22.5px; line-height: 1.15; max-width: 150px; color: var(--text); }
.badge-card h2 { font-size: 27px; line-height: 1.2; margin: 14px 0 8px; }

/* level card */
.lvl-card { background: var(--tile); border-radius: 18px; padding: 16px; }
.lvl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lvl-score { font-family: var(--display); font-size: 49.5px; font-weight: 800; line-height: 1; }
.lvl-score small { font-family: var(--ui); font-size: 15.5px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.lvl-chip { background: #fff; border-radius: 8px; padding: 8px 12px; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.lvl-card p { font-size: 16px; margin: 10px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--label); }
.meter { margin-top: 12px; }
.meter .m-l { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.meter .m-r { display: flex; align-items: center; gap: 10px; }
.meter .segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; flex: 1; max-width: 72%; }
.meter .segs i { height: 22px; border-radius: 5px; background: #dfe3e9; }
.meter .sc { margin-left: auto; font-size: 14.5px; font-weight: 700; text-align: right; line-height: 1.2; }

/* summary */
.bmi-top { display: flex; justify-content: space-between; font-size: 16px; }
.bmi-top b { font-size: 17px; }
.bmi-track { position: relative; height: 8px; border-radius: 4px; margin: 46px 4px 10px; background: linear-gradient(90deg, #34b356 0%, #f3bc40 50%, #e0424f 100%); }
.bmi-dot { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--text); transform: translate(-50%, -50%); }
.bmi-you { position: absolute; bottom: 18px; transform: translateX(-50%); background: var(--text); color: #fff; font-size: 14.5px; font-weight: 600; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.bmi-scale { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.bmi-scale .on { color: var(--text); }
.sum-risk { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; font-size: 15.5px; display: flex; gap: 10px; color: var(--label); }
.sum-risk b { display: block; font-size: 16px; color: var(--text); }
.sum-grid { display: grid; grid-template-columns: 1fr 132px; gap: 10px; align-items: end; margin-top: 16px; }
.sum-item { margin-bottom: 12px; }
.sum-item small { display: block; font-size: 14.5px; color: var(--muted); }
.sum-item span { font-family: var(--display); font-size: 20.5px; font-weight: 700; }
.sum-fig img { width: 100%; height: auto; }

/* loader */
.ld-top { background: var(--tile); border-radius: var(--radius); padding: 10px 14px; display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 17.5px; font-weight: 600; }
.ring { width: 42px; height: 42px; position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.ld-big { font-family: var(--display); text-align: center; font-size: 43px; font-weight: 800; margin: 30px 0 2px; color: var(--accent); }
.ld-sub { text-align: center; font-size: 19.5px; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.ld-avatar { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin: 0 auto 24px; background: var(--tile); }
.ld-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fact { background: var(--tile); border-radius: 18px; padding: 16px; min-height: 128px; text-align: center; color: var(--label); }
.fact .stars { color: #f3bc40; letter-spacing: 3px; margin-bottom: 6px; }
.fact b { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 20.5px; color: var(--text); }
.fact small { color: var(--muted); display: block; margin-top: 8px; font-weight: 700; font-size: 15.5px; }

/* ---------- offer (reference funnel's layout, these colours) ---------- */
.offer { padding: 0 16px 40px; }
.sticky { position: sticky; top: 0; z-index: 5; background: #fff; margin: 0 -16px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 1px 0 var(--line), 0 6px 16px rgba(20, 27, 52, .06); }
.sticky .t-l { font-size: 14.5px; line-height: 1.2; color: var(--muted); }
.sticky .t-l b { display: block; font-family: var(--display); font-size: 25px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.ng { background: var(--tile); border-radius: 18px; overflow: hidden; margin-top: 16px; }
.ng-head { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-family: var(--display); font-weight: 800; font-size: 18.5px; }
.ng-head div { padding: 12px 0; }
.ng-head div + div { border-left: 2px solid #fff; }
.ng-figs { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: end; padding: 10px 12px 0; background: linear-gradient(180deg, #e9edf2, #f3f5f7); }
.ng-figs img { width: 100%; height: auto; max-height: 300px; object-fit: contain; object-position: bottom center; }
.ng-figs .chev { align-self: center; color: var(--accent); font-size: 36.5px; font-weight: 700; text-align: center; }
.ng-stats { display: grid; grid-template-columns: 1fr 1fr; }
.ng-stats > div { padding: 12px 14px 16px; }
.ng-stats > div + div { border-left: 2px solid #fff; }
.ng-stats b { display: block; font-size: 17px; }
.ng-stats span { font-size: 16px; display: block; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--label); }
.lvbars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.lvbars i { height: 5px; border-radius: 3px; background: #d5dae2; }
.lvbars i.on { background: var(--accent); }
.offer h2 { font-size: 31.5px; font-weight: 800; line-height: 1.2; text-align: center; margin: 34px 0 18px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.kv > div { padding: 0 18px; }
.kv > div + div { border-left: 1px solid var(--line); }
.kv small { display: block; font-size: 14.5px; color: var(--muted); }
.kv b { font-family: var(--display); font-size: 21.5px; }
.ends { background: var(--red); color: #fff; border-radius: 10px; text-align: center; font-weight: 700; padding: 10px; font-size: 17.5px; font-variant-numeric: tabular-nums; }
.ends.off { background: var(--tile); color: var(--muted); }
.plan-cap { font-size: 14.5px; font-weight: 700; margin: 18px 4px 8px; }
.plan { width: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; }
.plan.on { border-color: var(--accent); background: var(--accent-soft); }
.plan-flag { text-align: center; font-size: 13.5px; letter-spacing: .12em; font-weight: 700; padding: 5px; background: var(--disabled); color: #fff; }
.plan.on .plan-flag { background: var(--accent); }
.plan-in { display: flex; align-items: center; gap: 10px; padding: 14px 10px; }
.radio { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #cfd5de; flex: none; display: grid; place-items: center; }
.plan.on .radio { border-color: var(--accent); }
.plan.on .radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.plan-mid { flex: 1; min-width: 0; }
.plan-name { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .01em; white-space: nowrap; }
.plan-off { display: inline-block; font-size: 9.5px; font-weight: 700; white-space: nowrap; background: var(--text); color: #fff; padding: 2px 5px; border-radius: 4px; margin: 4px 0; }
.plan.on .plan-off { background: var(--accent); }
.plan-price { font-size: 14.5px; color: var(--muted); }
.plan-price s { margin-right: 6px; }
.plan-day { display: flex; align-items: center; gap: 6px; flex: none; }
.plan-day s { color: var(--red); font-size: 13px; }
.day-tag { background: var(--tile); color: var(--text); padding: 8px 8px 8px 15px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); display: flex; align-items: flex-start; gap: 1px; border-radius: 0 6px 6px 0; }
.plan.on .day-tag { background: var(--accent); color: #fff; }
.day-tag .cur { font-size: 13px; font-weight: 700; margin-top: 4px; }
.day-tag .int { font-family: var(--display); font-size: 31px; font-weight: 800; line-height: 1; }
.day-tag .dec { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; line-height: 1.05; margin-top: 3px; }
.day-tag .dec small { font-size: 8.5px; font-weight: 500; white-space: nowrap; }
.guar-link { display: block; text-align: center; font-weight: 700; text-decoration: underline; margin: 26px 0 14px; font-size: 18px; }
.legal { font-size: 14.5px; color: var(--muted); text-align: center; margin: 0 4px 16px; line-height: 1.5; }
.legal b, .legal a { color: var(--text); }
.cancel { text-align: center; margin: 12px 0 0; font-size: 17.5px; color: var(--label); }
.wk { background: var(--tile); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; position: relative; overflow: hidden; }
.wk h4 { margin: 0 0 10px; font-size: 14.5px; letter-spacing: .12em; color: var(--muted); }
.wk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wk-d { background: #fff; border-radius: 8px; padding: 6px 2px; text-align: center; font-size: 12.5px; color: var(--muted); min-height: 56px; }
.wk-d b { display: block; color: var(--text); font-family: var(--display); font-size: 16.5px; margin-top: 4px; }
.wk-d.rest b { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.wk.locked .wk-days { filter: blur(4px); opacity: .6; }
.wk .lock { position: absolute; inset: 34px 0 0; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 0 0 8px; }
.checks li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 18.5px; }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; background: var(--green-bg); color: var(--green); border-radius: 50%; display: grid; place-items: center; font-size: 14.5px; font-weight: 700; margin-top: 1px; }
.coach { display: flex; gap: 14px; align-items: center; background: var(--tile); border-radius: 18px; padding: 14px; }
.coach img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.coach b { display: block; font-family: var(--display); font-size: 19.5px; }
.coach span { font-size: 16px; color: var(--label); }
.review { background: var(--tile); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.review .stars { color: #f3bc40; letter-spacing: 3px; }
.review small { color: var(--muted); display: block; margin-top: 8px; }
.mbg { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 18px 18px; margin-top: 34px; }
.mbg-badge { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 6px; }
.mbg p { margin: 0; font-size: 16px; color: var(--label); text-align: center; }
.ftr { text-align: center; font-size: 14.5px; color: var(--muted); margin-top: 26px; }
.ftr a { margin: 0 6px; }

/* checkout sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(20, 27, 52, .55); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; color: var(--text); width: 100%; max-width: var(--maxw); border-radius: 20px 20px 0 0; padding: 14px 18px 26px; max-height: 92vh; overflow: auto; animation: up .25s ease; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .x { font-size: 26px; color: #b9bfca; line-height: 1; width: 44px; height: 36px; text-align: left; }
.sheet h3 { text-align: center; font-size: 28px; font-weight: 800; margin: 0 0 14px; }
.sheet .row { display: flex; justify-content: space-between; color: var(--label); font-size: 17px; margin-bottom: 10px; }
.sheet .row.neg span:last-child { color: var(--red); }
.sheet .row.tot { color: var(--text); font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.sheet .row.tot em { font-style: normal; color: var(--accent); }
.sheet .row.tot small { font-weight: 400; color: var(--label); font-size: 17px; }
.sheet h4 { text-align: center; font-size: 20.5px; margin: 14px 0; }
.sheet .fine { font-size: 14.5px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.45; }
.sheet .safe { text-align: center; font-weight: 700; margin-top: 16px; }
.sheet .safe em { font-style: normal; color: var(--accent); }
.sheet .ok { text-align: center; padding: 10px 0 4px; }
.sheet .ok .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green-bg); color: var(--green); font-size: 34.5px; display: grid; place-items: center; margin: 0 auto 12px; }
.sheet .ok p { color: var(--label); font-size: 17px; }

/* ---------- larger screens (tablet, laptop): the quiz sits in a centred card ---------- */
@media (min-width: 620px) {
  :root { --maxw: 560px; }
  html, body { background: #eef0f3; }
  body { padding: 28px 16px; }
  #app { margin: 0 auto; min-height: 700px; min-height: min(800px, calc(100dvh - 56px)); border-radius: 24px; overflow: clip;
    box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(20, 27, 52, .08); }
  .screen { padding: 0 40px; }
  .hdr { padding-top: 26px; }
  .foot { padding-bottom: 30px; }
  .offer { padding: 0 36px 48px; }
  .sticky { margin: 0 -36px; padding: 10px 36px; }
  .sheet-bg { align-items: center; padding: 24px; }
  .sheet { border-radius: 20px; max-width: 480px; padding: 18px 26px 28px; }
  .age-photo, .zones .fig { max-height: 440px; }
}
/* mouse and keyboard */
@media (hover: hover) {
  .opt:not(.on):hover, .gcard:not(.on):hover, .seg button:not(.on):hover { background: var(--tile-press); }
  .cta:not([disabled]):hover { background: var(--accent-press); }
  .hdr-back:hover { background: var(--tile); border-radius: 50%; }
  .skip:hover, .guar-link:hover { color: var(--accent); }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt:focus-visible, .gcard:focus-visible, .cta:focus-visible { outline-offset: 3px; }
.num input:focus-visible, .field:focus-visible { outline: none; }


/* ===== additions: icons, icon cards, level gauge, summary, loader, result, membership ===== */
.ico-svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ib { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.opt .ib { position: absolute; left: 14px; }
.opt .ib ~ .lbl { padding: 0 46px; }
.opt.on .ib { background: #fff !important; color: var(--sel); }
.opts.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.opts.cards .opt { flex-direction: column; min-height: 132px; padding: 18px 10px 14px; gap: 10px; font-size: 19.5px; line-height: 1.2; }
.opts.cards .opt .ib { position: static; width: 54px; height: 54px; }
.opts.cards .opt .ib .ico-svg { width: 27px; height: 27px; }
.opts.cards .opt .lbl { flex: none; padding: 0; }
.opts.cards .opt .chk { left: 10px; top: 10px; width: 22px; height: 22px; }
.opts.cards .opt:last-child:nth-child(odd) { grid-column: span 2; flex-direction: row; min-height: 92px; gap: 14px; }
.note .n-ico, .sum-risk .n-ico { color: var(--accent); line-height: 0; margin-top: 1px; }
.note.red .n-ico { color: var(--red); } .note.green .n-ico { color: var(--green); } .note.amber .n-ico { color: #c98a0a; }
.pill { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pill .ico-svg { fill: #f3bc40; stroke: #f3bc40; width: 18px; height: 18px; }
.lockline .ico-svg { width: 16px; height: 16px; }
.kv b { display: flex; align-items: center; gap: 7px; }
.kv .ico-svg { width: 20px; height: 20px; color: var(--accent); }
.ends { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ends .ico-svg { width: 18px; height: 18px; }
.ends span { margin: 0 -3px; }
.wk .lock { display: flex; align-items: center; justify-content: center; gap: 8px; }
.wk .lock .ico-svg { width: 18px; height: 18px; }
.age-wrap .opt { min-height: 62px; }

/* level */
.gauge { width: 100%; max-width: 310px; display: block; margin: 6px auto 0; }
.g-num { font-family: var(--display); font-size: 56px; font-weight: 800; fill: var(--text); }
.g-cap { font-size: 15px; fill: var(--muted); }
.g-lbl { font-size: 13.5px; font-weight: 700; fill: #a5abb8; letter-spacing: .03em; }
.g-lbl.on { fill: var(--accent); }
.lv-chip { display: table; margin: 8px auto 0; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 16px; padding: 8px 16px; border-radius: 999px; }
.lv-rows { background: var(--tile); border-radius: 18px; padding: 4px 14px; margin-top: 18px; }
.lv-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.lv-row + .lv-row { border-top: 1px solid var(--line); }
.lv-mid { flex: 1; min-width: 0; }
.lv-l { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.lv-l b { font-family: var(--display); font-size: 20px; }
.lv-l span { font-size: 16px; font-weight: 600; color: var(--label); }
.lv-bar { height: 8px; border-radius: 4px; background: #dfe3e9; overflow: hidden; }
.lv-bar i { display: block; height: 100%; border-radius: 4px; }
.lv-note { text-align: center; color: var(--muted); font-size: 17px; margin: 16px 6px 0; }

/* summary */
.bmi-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bmi-head small { display: block; font-size: 15.5px; color: var(--muted); font-weight: 600; }
.bmi-val { font-family: var(--display); font-size: 45.5px; font-weight: 800; line-height: 1.05; display: block; }
.bmi-chip { font-size: 15.5px; font-weight: 700; padding: 8px 13px; border-radius: 999px; white-space: nowrap; }
.bmi-chip.amber { background: var(--amber-bg); color: #a56f00; }
.bmi-chip.green { background: var(--green-bg); color: #1f8a3e; }
.bmi-track { margin: 20px 6px 12px; }
.sum-risk { font-size: 16px; }
.sum-risk b { font-size: 17px; }
.sum-grid { display: grid; grid-template-columns: 1fr 124px; gap: 12px; margin-top: 14px; align-items: stretch; }
.sum-list { display: flex; flex-direction: column; gap: 10px; }
.sum-item { display: flex; align-items: center; gap: 12px; background: var(--tile); border-radius: 14px; padding: 11px 12px; margin: 0; flex: 1; }
.sum-item small { display: block; font-size: 14.5px; color: var(--muted); }
.sum-item b { display: block; font-family: var(--display); font-size: 20.5px; line-height: 1.15; }
.sum-fig { background: var(--tile); border-radius: 14px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding: 8px 4px 0; }
.sum-fig img { width: 100%; height: auto; }

/* loader */
.ld-ring { position: relative; width: 196px; height: 196px; margin: 40px auto 0; }
.ld-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ld-ring img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); border-radius: 50%; object-fit: cover; }
.ld-pct { font-family: var(--display); font-size: 60.5px; font-weight: 800; text-align: center; margin-top: 14px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.ld-cap { text-align: center; font-family: var(--display); font-size: 24px; font-weight: 700; margin: 8px 0 24px; }
.ld-proof { text-align: center; color: var(--muted); font-size: 17px; margin: 16px 0 0; }
.ld-proof b { color: var(--text); }

/* plan-ready */
.art.big { width: 148px; height: 148px; }
.art.big::before { box-shadow: 164px 6px 0 -1px #3da5f5, 14px 118px 0 -2px #f3bc40; }
.art.big::after { box-shadow: -146px -104px 0 0 #f3bc40, -22px -132px 0 -1px var(--accent); }
.rs-stats { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; margin: 2px 0 14px; }
.rs-stats div { background: var(--tile); border-radius: 14px; padding: 12px 4px; text-align: center; }
.rs-stats small { display: block; font-size: 14.5px; color: var(--muted); }
.rs-stats b { font-family: var(--display); font-size: 19px; white-space: nowrap; }
.nw { white-space: nowrap; }

/* single membership card */
.mcard { border: 2px solid var(--accent); border-radius: 18px; overflow: hidden; background: var(--accent-soft); margin-top: 4px; }
.mcard-flag { background: var(--accent); color: #fff; text-align: center; font-size: 13.5px; letter-spacing: .12em; font-weight: 700; padding: 6px; }
.mcard-in { padding: 16px 14px 4px; }
.mcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.mcard-sub { font-size: 16px; color: var(--label); margin-top: 3px; }
.mcard-price { font-family: var(--display); font-size: 41px; font-weight: 800; line-height: 1; text-align: right; color: var(--accent); }
.mcard-price small { display: block; font-family: var(--ui); font-size: 14.5px; font-weight: 600; color: var(--label); margin-top: 5px; }
.mcard .checks li { font-size: 17.5px; margin-bottom: 12px; }
.mcard .checks li::before { background: #fff; }
.sticky .t-l b small { font-family: var(--ui); font-size: 14.5px; font-weight: 600; color: var(--muted); }
.mcard-top > div:first-child { min-width: 0; }
.mcard .plan-name { white-space: normal; line-height: 1.15; }
.mcard-price { flex: none; font-size: 36.5px; }

.mcard-note { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 14px; padding-top: 12px; border-top: 1px solid rgba(10, 18, 224, .16); font-size: 14.5px; line-height: 1.4; color: var(--label); }
.mcard-note .ico-svg { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--accent); }

/* ---------- very small phones (320–350px wide) ---------- */
@media (max-width: 350px) {
  body { font-size: 17.5px; }
  .screen { padding: 0 16px; }
  h1 { font-size: 28px; }
  .opt { font-size: 20px; padding: 12px 14px; }
  .opts.cards .opt { font-size: 17.5px; padding: 16px 6px 12px; }
  .opts.cards, .opts.grid { gap: 12px; }
  .zones .opt { font-size: 16.5px; }
  .sum-grid { grid-template-columns: 1fr 92px; gap: 8px; }
  .sum-item { padding: 10px 8px; gap: 8px; }
  .sum-item b { font-size: 18px; }
  .sum-item .ib { width: 36px; height: 36px; }
  .mcard-price { font-size: 32px; }
  .wk-d.rest b { font-size: 11px; }
  .rs-stats { gap: 6px; }
  .rs-stats b { font-size: 16.5px; }
  .rs-stats small { font-size: 13.5px; }
}
