/* GYM XYZ GLP-1 intake + checkout — powered by Apex MD. DEMO. */
:root {
  --ink: #0D0D0F;
  --iron: #17181B;
  --steel: #2A2C31;
  --ash: #8B8F98;
  --chalk: #F4F2EE;
  --ember: #FF5A1F;
  --ember-dk: #D9420C;
  --volt: #C8F94A;
  --danger: #FF4D4D;

  --iron-2: #1E1F23;
  --steel-2: #3A3D44;
  --chalk-dim: #C9C6C0;
  --amber: #F5B83D;

  --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --r-sm: 4px;
  --r-md: 8px;
  --top-h: 60px;
  --rail-w: 400px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--ember); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-weight: 500; font-feature-settings: "tnum"; }
.muted { color: var(--ash); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--chalk); color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); z-index: 200; font-weight: 600; }
.skip:focus { top: 10px; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; line-height: 1.06; margin: 0; }
p { margin: 0 0 .8em; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(13,13,15,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--steel); }
.top-in { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; }
.logo svg.mark { width: 32px; height: 32px; flex: none; }
.logo .word { font-family: var(--f-head); font-weight: 700; font-size: 23px; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.logo .word b { color: var(--ember); font-weight: 700; }
.top-meta { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.step-count { color: var(--ash); white-space: nowrap; }
.step-count strong { color: var(--chalk); font-weight: 600; }
.exit { color: var(--chalk-dim); text-decoration: none; padding: 8px 2px; }
.exit:hover { color: var(--chalk); text-decoration: underline; }
.progress { height: 3px; background: var(--steel); }
.progress span { display: block; height: 100%; width: 0; background: var(--volt); transition: width .45s var(--ease); }

.demo-bar { background: var(--iron); border-bottom: 1px solid var(--steel); color: var(--ash); font-size: 13px; padding: 8px 24px; text-align: center; }
.cat-note { background: rgba(245,184,61,.08); border-bottom: 1px solid rgba(245,184,61,.3); color: var(--chalk); font-size: 14px; padding: 10px 24px; text-align: center; }

/* ---------- layout ---------- */
.layout { flex: 1; overflow-x: clip; display: grid; grid-template-columns: minmax(0, 1fr) var(--rail-w); align-items: start; width: 100%; }
.layout.no-rail { grid-template-columns: minmax(0, 1fr); }
.layout.no-rail .rail { display: none; }
.stage { padding: 48px 56px 72px; min-width: 0; outline: none; }
.screen { max-width: 600px; margin: 0 auto; }
.screen.wide { max-width: 760px; }

/* step transitions */
.screen.enter-fwd { animation: inFwd .34s var(--ease); }
.screen.enter-back { animation: inBack .34s var(--ease); }
@keyframes inFwd { from { opacity: 0; transform: translateX(26px); } }
@keyframes inBack { from { opacity: 0; transform: translateX(-26px); } }

/* ---------- question chrome ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--ash); padding: 8px 10px 8px 0; margin: -8px 0 18px; cursor: pointer; font-size: 15px; min-height: 44px; }
.back:hover { color: var(--chalk); }
.back svg { width: 18px; height: 18px; }
.section-name { color: var(--ember); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.q-title { font-size: clamp(28px, 4.2vw, 38px); margin-bottom: 12px; outline: none; }
.q-help { color: var(--chalk-dim); font-size: 16px; margin-bottom: 28px; max-width: 54ch; }
.q-help:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field-label .opt { color: var(--ash); font-weight: 400; }
.group { margin-bottom: 26px; }
.group-title { font-weight: 600; font-size: 15px; margin-bottom: 10px; }

/* option tiles (radio + checkbox) */
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt-tile { position: relative; display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 14px 18px; background: var(--iron); border: 1px solid var(--steel); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s, background-color .15s; font-size: 17px; font-weight: 500; }
.opt-tile:hover { border-color: var(--steel-2); background: var(--iron-2); }
.opt-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-tile .dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--steel-2); display: grid; place-items: center; transition: border-color .15s; }
.opt-tile .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); transform: scale(0); transition: transform .15s var(--ease); }
.opt-tile.check .dot { border-radius: 5px; }
.opt-tile.check .dot::after { width: 12px; height: 12px; border-radius: 2px; }
.opt-tile .txt { flex: 1; min-width: 0; }
.opt-tile .sub { display: block; color: var(--ash); font-size: 14px; font-weight: 400; margin-top: 2px; }
.opt-tile:has(input:checked) { border-color: var(--ember); background: rgba(255,90,31,.07); box-shadow: inset 0 0 0 1px var(--ember); }
.opt-tile:has(input:checked) .dot { border-color: var(--ember); }
.opt-tile:has(input:checked) .dot::after { transform: scale(1); }
.opt-tile:has(input:focus-visible) { outline: 2px solid var(--volt); outline-offset: 2px; }
.opt-tile.is-checked { border-color: var(--ember); background: rgba(255,90,31,.07); box-shadow: inset 0 0 0 1px var(--ember); }
.opt-tile.is-checked .dot { border-color: var(--ember); }
.opt-tile.is-checked .dot::after { transform: scale(1); }

/* inputs */
.input, .select, .textarea { width: 100%; min-height: 56px; background: var(--iron); border: 1px solid var(--steel-2); border-radius: var(--r-md); padding: 14px 16px; font-size: 17px; color: var(--chalk); transition: border-color .15s; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B8F98' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.input::placeholder, .textarea::placeholder { color: #61656D; }
.input:hover, .select:hover, .textarea:hover { border-color: #4A4E56; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--volt); outline: none; box-shadow: 0 0 0 1px var(--volt); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 14px; margin-top: 6px; min-height: 0; }
.err:empty { display: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.unit-wrap { position: relative; }
.unit-wrap .input { padding-right: 52px; }
.unit-wrap .unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ash); pointer-events: none; font-size: 15px; }
.field { margin-bottom: 18px; }
.hint { color: var(--ash); font-size: 14px; margin-top: 6px; }

/* buttons */
.actions { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: var(--r-md); border: 1px solid transparent; font-family: var(--f-head); font-weight: 600; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ember); color: var(--ink); }
.btn-primary:hover { background: var(--ember-dk); color: var(--chalk); }
.btn-primary[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--chalk); border-color: var(--steel-2); }
.btn-ghost:hover { border-color: var(--chalk-dim); }
.btn svg { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; color: var(--ember); cursor: pointer; padding: 6px 0; text-decoration: underline; font-size: 15px; }

/* callouts */
.note { border-left: 3px solid var(--steel-2); background: var(--iron); padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15px; color: var(--chalk-dim); margin: 18px 0 0; }
.note strong { color: var(--chalk); }
.note.ember { border-left-color: var(--ember); background: rgba(255,90,31,.06); }
.note.volt { border-left-color: var(--volt); background: rgba(200,249,74,.05); }
.note.amber { border-left-color: var(--amber); background: rgba(245,184,61,.06); }
.note.danger { border-left-color: var(--danger); background: rgba(255,77,77,.06); }
.fine { color: var(--ash); font-size: 13px; line-height: 1.55; margin-top: 18px; }

/* ---------- welcome ---------- */
.offer { display: flex; gap: 16px; align-items: center; background: var(--ember); color: var(--ink); border-radius: var(--r-md); padding: 16px 18px; margin: 26px 0; }
.offer .amt { font-family: var(--f-head); font-weight: 700; font-size: 40px; line-height: .9; flex: none; }
.offer .amt small { display: block; font-size: 13px; letter-spacing: .06em; }
.offer p { margin: 0; font-size: 15px; font-weight: 500; }
.offer code { font-family: var(--f-mono); font-weight: 500; background: var(--ink); color: var(--chalk); padding: 2px 7px; border-radius: 3px; font-size: 14px; }
.welcome-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--steel); }
.welcome-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--steel); }
.welcome-steps .n { font-family: var(--f-mono); color: var(--ember); font-size: 15px; padding-top: 1px; }
.welcome-steps strong { display: block; font-weight: 600; }
.welcome-steps span { color: var(--ash); font-size: 15px; }
.time-est { display: inline-flex; align-items: center; gap: 8px; color: var(--chalk-dim); font-size: 15px; }
.time-est svg { width: 18px; height: 18px; color: var(--volt); }
.hero-title { font-size: clamp(38px, 6vw, 58px); line-height: .98; margin-bottom: 16px; }

/* ---------- BMI ---------- */
.bmi { margin-top: 26px; background: var(--iron); border: 1px solid var(--steel); border-radius: var(--r-md); padding: 18px 18px 16px; }
.bmi-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.bmi-val { font-family: var(--f-mono); font-size: 34px; font-weight: 500; line-height: 1; }
.bmi-label { font-size: 14px; color: var(--ash); }
.bmi-bar { position: relative; height: 12px; border-radius: 6px; display: flex; overflow: hidden; }
.bmi-bar i { display: block; height: 100%; }
.bmi-marker { position: absolute; top: -6px; width: 4px; height: 24px; background: var(--chalk); border-radius: 2px; transform: translateX(-2px); transition: left .3s var(--ease); box-shadow: 0 0 0 3px var(--ink); }
.bmi-track { position: relative; margin-top: 4px; }
.bmi-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--ash); margin-top: 10px; }
.bmi-msg { margin-top: 14px; font-size: 15px; }

/* ---------- safety rows ---------- */
.yn-list { display: grid; gap: 10px; }
.yn { background: var(--iron); border: 1px solid var(--steel); border-radius: var(--r-md); padding: 16px 18px; }
.yn.yes-hard { border-color: rgba(255,77,77,.6); }
.yn.yes-soft { border-color: rgba(245,184,61,.55); }
.yn legend { font-size: 16px; font-weight: 500; margin-bottom: 12px; line-height: 1.45; float: left; width: 100%; }
.yn .seg { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-opt span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--steel-2); border-radius: var(--r-sm); font-weight: 600; font-size: 16px; transition: all .15s; }
.seg-opt input:checked + span { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--volt); outline-offset: 2px; }
.seg-opt:hover span { border-color: var(--chalk-dim); }
.yn .flag { font-size: 14px; color: var(--amber); margin: 10px 0 0; }

/* ---------- plan ---------- */
.med-cards { display: grid; gap: 12px; }
.med-card { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; padding: 18px; background: var(--iron); border: 1px solid var(--steel); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s; }
.med-card:hover { border-color: var(--steel-2); }
.med-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.med-card .dot { margin-top: 3px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--steel-2); display: grid; place-items: center; }
.med-card .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); transform: scale(0); transition: transform .15s; }
.med-card:has(input:checked) { border-color: var(--ember); box-shadow: inset 0 0 0 1px var(--ember); background: rgba(255,90,31,.06); }
.med-card:has(input:checked) .dot { border-color: var(--ember); }
.med-card:has(input:checked) .dot::after { transform: scale(1); }
.med-card:has(input:focus-visible) { outline: 2px solid var(--volt); outline-offset: 2px; }
.med-card h3 { font-size: 21px; margin-bottom: 6px; }
.med-card p { color: var(--chalk-dim); font-size: 15px; margin: 0; }
.med-card .price { text-align: right; white-space: nowrap; }
.med-card .price .from { color: var(--ash); font-size: 13px; display: block; }
.med-card .price .amt { font-family: var(--f-mono); font-size: 24px; font-weight: 500; }
.med-card .price .per { color: var(--ash); font-size: 14px; }
.med-card .tagline { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--volt); }
.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--iron); border: 1px solid var(--steel-2); border-radius: var(--r-md); padding: 4px; }
.toggle label { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; border-radius: 5px; font-weight: 600; text-align: center; padding: 6px 8px; transition: background-color .15s; }
.toggle span small { font-weight: 500; font-size: 13px; color: var(--ash); }
.toggle input:checked + span { background: var(--chalk); color: var(--ink); }
.toggle input:checked + span small { color: #4E5158; }
.toggle input:focus-visible + span { outline: 2px solid var(--volt); outline-offset: 2px; }
.included { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.included li { display: flex; gap: 10px; font-size: 15px; color: var(--chalk-dim); align-items: flex-start; }
.included svg { width: 18px; height: 18px; flex: none; color: var(--volt); margin-top: 2px; }
.plan-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 0; margin-top: 18px; border-top: 1px solid var(--steel); font-size: 15px; }
.plan-total .mono { font-size: 20px; }

/* add-ons */
.addon { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; }
.addon .price { font-family: var(--f-mono); white-space: nowrap; text-align: right; }
.addon .price s { color: var(--ash); font-size: 13px; display: block; }
.addon .price .save { color: var(--volt); font-family: var(--f-body); font-size: 12px; display: block; }

/* ---------- checkout ---------- */
.summary { background: var(--iron); border: 1px solid var(--steel); border-radius: var(--r-md); padding: 6px 18px; margin-bottom: 26px; }
.sum-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--steel); font-size: 15px; }
.sum-line:last-child { border-bottom: 0; }
.sum-line .l small { display: block; color: var(--ash); font-size: 13px; }
.sum-line .r { font-family: var(--f-mono); white-space: nowrap; }
.sum-line.disc .r { color: var(--volt); }
.sum-line.total { font-weight: 600; font-size: 17px; }
.sum-line.total .r { font-size: 22px; }
.sum-line.later { color: var(--ash); font-size: 14px; }
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.promo-row .btn { min-height: 56px; font-size: 16px; padding: 0 20px; }
.promo-ok { color: var(--volt); font-size: 14px; margin-top: 6px; display: flex; gap: 10px; align-items: center; }
.card-box { background: var(--iron); border: 1px solid var(--steel); border-radius: var(--r-md); padding: 18px; }
.card-box .input { background: var(--ink); }
.demo-pay { display: flex; gap: 10px; align-items: flex-start; background: rgba(200,249,74,.07); border: 1px dashed rgba(200,249,74,.5); color: var(--chalk); border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.demo-pay svg { width: 18px; height: 18px; flex: none; color: var(--volt); margin-top: 2px; }
.consents { display: grid; gap: 12px; margin-top: 22px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 14px; color: var(--chalk-dim); cursor: pointer; line-height: 1.5; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--ember); cursor: pointer; }
.consent a { color: var(--chalk); }
.h2-sub { font-size: 20px; margin: 30px 0 14px; }

/* processing overlay */
.processing { position: fixed; inset: 0; z-index: 150; background: rgba(13,13,15,.92); display: grid; place-items: center; padding: 24px; }
.proc-box { text-align: center; max-width: 360px; }
.proc-ring { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; border: 3px solid var(--steel); border-top-color: var(--ember); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.proc-box h2 { font-size: 26px; margin-bottom: 8px; }
.proc-steps { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; display: grid; gap: 8px; font-size: 15px; color: var(--ash); }
.proc-steps li { display: flex; gap: 10px; align-items: center; }
.proc-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--steel-2); flex: none; }
.proc-steps li.on { color: var(--chalk); }
.proc-steps li.on::before { background: var(--volt); border-color: var(--volt); }

/* ---------- exits ---------- */
.exit-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px; background: var(--iron); border: 1px solid var(--steel-2); }
.exit-icon svg { width: 26px; height: 26px; }
.contact-list { display: grid; gap: 0; margin: 22px 0 0; border-top: 1px solid var(--steel); }
.contact-list a, .contact-list div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--steel); color: var(--chalk); text-decoration: none; font-size: 15px; }
.contact-list a span:last-child { font-family: var(--f-mono); color: var(--ember); }
.alt-programs { display: grid; gap: 10px; margin-top: 22px; }
.alt-prog { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; background: var(--iron); border: 1px solid var(--steel); border-radius: var(--r-md); }
.alt-prog strong { display: block; font-size: 16px; }
.alt-prog span { color: var(--ash); font-size: 14px; }
.alt-prog .mono { color: var(--chalk); font-size: 15px; white-space: nowrap; text-align: right; }
.alt-prog .mono s { color: var(--ash); display: block; font-size: 12px; }

/* ---------- confirmation ---------- */
.done-title { font-size: clamp(40px, 6.5vw, 64px); line-height: .96; margin-bottom: 14px; }
.order-no { font-family: var(--f-mono); color: var(--ash); font-size: 14px; }
.timeline { list-style: none; padding: 0; margin: 26px 0 0; position: relative; }
.timeline li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-bottom: 20px; }
.timeline li::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--steel); }
.timeline li:last-child::before { display: none; }
.timeline .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--iron); border: 1px solid var(--steel-2); font-family: var(--f-mono); font-size: 14px; color: var(--chalk); }
.timeline li:first-child .n { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.timeline strong { display: block; font-size: 16px; padding-top: 5px; }
.timeline span { color: var(--ash); font-size: 14px; }
.done-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.done-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- images + placeholders ---------- */
.ph-wrap { position: relative; overflow: hidden; background: var(--iron-2); border-radius: var(--r-md); margin: 0; }
.ph-wrap.r34 { aspect-ratio: 3 / 4; }
.ph-wrap.r43 { aspect-ratio: 4 / 3; }
.ph-wrap.r11 { aspect-ratio: 1 / 1; }
.ph-wrap > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph-wrap.failed > img { display: none; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center; padding: 16px;
  background-color: var(--iron-2);
  background-image: repeating-linear-gradient(135deg, rgba(244,242,238,.035) 0 2px, transparent 2px 14px);
  color: var(--ash); }
.ph .ph-mark { width: 44px; height: 44px; opacity: .5; }
.ph .ph-big { font-family: var(--f-head); font-weight: 700; font-size: 44px; line-height: 1; color: var(--steel-2); text-transform: uppercase; }
.ph .ph-big.ember { color: rgba(255,90,31,.55); }
.ph .ph-small { font-size: 12px; color: var(--ash); max-width: 22ch; }
.persona-tag { position: absolute; left: 8px; bottom: 8px; right: 8px; z-index: 3; font-size: 11px; line-height: 1.3; color: var(--chalk); background: rgba(13,13,15,.78); border-radius: 3px; padding: 4px 7px; width: fit-content; max-width: calc(100% - 16px); }
.wk-chip { position: absolute; top: 8px; left: 8px; z-index: 3; font-family: var(--f-head); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; background: var(--ink); color: var(--chalk); }
.wk-chip.ember { background: var(--ember); color: var(--ink); }

/* compare slider */
.compare { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; background: var(--iron-2); touch-action: pan-y; }
.compare .layer { position: absolute; inset: 0; z-index: 1; }
.compare .layer.after { z-index: 2; } /* own stacking layers: the clipped week-12 layer must sit above week 0 */
.compare .layer .ph-wrap { position: absolute; inset: 0; border-radius: 0; }
.compare .layer.after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--chalk); z-index: 4; pointer-events: none; }
.compare .knob { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--chalk); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.compare .knob svg { width: 22px; height: 22px; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 5; }
.compare:has(input:focus-visible) .knob { outline: 2px solid var(--volt); outline-offset: 3px; }
.compare .wk-chip.right { left: auto; right: 8px; }
.compare .persona-tag { z-index: 6; pointer-events: none; }

/* ---------- story rail ---------- */
.rail { position: sticky; top: calc(var(--top-h) + 3px); max-height: calc(100vh - var(--top-h) - 3px); overflow-y: auto; background: var(--iron); border-left: 1px solid var(--steel); padding: 28px 28px 32px; align-self: stretch; min-height: calc(100vh - var(--top-h) - 3px); scrollbar-width: thin; }
.rail-toggle { display: none; }
.rail-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.rail-title h2 { font-size: 20px; letter-spacing: .02em; }
.rail-title span { font-size: 13px; color: var(--ash); }
.wk-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 18px; }
.wk-track li { list-style: none; }
.wk-track { padding: 0; }
.wk-track .bar { display: block; height: 4px; border-radius: 2px; background: var(--steel); transition: background-color .3s; }
.wk-track .lbl { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--ash); margin-top: 6px; }
.wk-track .done .bar { background: var(--chalk-dim); }
.wk-track .cur .bar { background: var(--ember); }
.wk-track .cur .lbl { color: var(--chalk); }
.rail-body.swap { animation: railSwap .5s var(--ease); }
@keyframes railSwap { from { opacity: 0; } }
.rail .story-head { font-size: 28px; margin: 18px 0 8px; }
.rail blockquote { margin: 0 0 12px; font-size: 17px; line-height: 1.45; color: var(--chalk); padding-left: 14px; border-left: 3px solid var(--ember); }
.rail .story-body { color: var(--chalk-dim); font-size: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--steel); margin-top: 14px; }
.stat { padding: 10px 0; border-bottom: 1px solid var(--steel); }
.stat:nth-child(odd) { padding-right: 10px; }
.stat:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--steel); }
.stat .k { font-size: 12px; color: var(--ash); display: block; }
.stat .v { font-family: var(--f-mono); font-size: 15px; display: block; }
.stat .d { font-family: var(--f-mono); font-size: 13px; color: var(--volt); display: block; }
.stats.big .v { font-size: 14px; }
.compliance { font-size: 12px; color: var(--ash); line-height: 1.5; margin-top: 14px; }

/* ---------- story interstitial ---------- */
.story-screen { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; }
.story-week { font-family: var(--f-head); font-weight: 700; font-size: clamp(76px, 12vw, 132px); line-height: .85; color: var(--ember); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 14px; }
.story-week span { color: var(--chalk); display: block; font-size: .36em; letter-spacing: .04em; margin-bottom: 6px; }
.story-screen h1 { font-size: clamp(30px, 4.4vw, 42px); margin-bottom: 14px; }
.story-screen blockquote { margin: 0 0 16px; font-size: 20px; line-height: 1.4; padding-left: 16px; border-left: 3px solid var(--ember); }
.story-screen .story-body { color: var(--chalk-dim); }
.story-kicker { color: var(--ash); font-size: 14px; margin-bottom: 6px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--steel); padding: 26px 24px 32px; color: var(--ash); font-size: 12px; line-height: 1.6; background: var(--ink); }
.foot-in { max-width: 1100px; margin: 0 auto; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.foot p { max-width: 110ch; margin: 0 0 8px; }
.foot a { color: var(--chalk-dim); }
.powered { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ash); letter-spacing: .06em; text-transform: uppercase; }
.powered-lbl { white-space: nowrap; }
.apex-logo { display: block; height: 32px; width: auto; flex: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --rail-w: 340px; }
  .stage { padding: 40px 36px 64px; }
  .story-screen { grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; }
  .done-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { order: -1; position: static; max-height: none; min-height: 0; overflow: visible; border-left: 0; border-bottom: 1px solid var(--steel); padding: 0; background: var(--iron); }
  .rail-toggle { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; width: 100%; background: none; border: 0; padding: 10px 16px; text-align: left; cursor: pointer; min-height: 64px; }
  .rail-toggle .thumb { width: 44px; height: 44px; border-radius: var(--r-sm); overflow: hidden; position: relative; background: var(--iron-2); }
  .rail-toggle .thumb .ph-wrap { position: absolute; inset: 0; border-radius: 0; }
  .rail-toggle .thumb .ph-big { font-size: 15px; }
  .rail-toggle .thumb .ph-small, .rail-toggle .thumb .ph-mark { display: none; }
  .rail-toggle .t1 { display: block; font-weight: 600; font-size: 15px; }
  .rail-toggle .t2 { display: block; color: var(--ash); font-size: 13px; }
  .rail-toggle .t2 b { color: var(--volt); font-weight: 500; font-family: var(--f-mono); }
  .rail-toggle .chev { width: 22px; height: 22px; color: var(--ash); transition: transform .2s; }
  .rail-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .rail-panel { padding: 4px 16px 20px; }
  .rail-panel .rail-title { display: none; }
  .rail-panel .rail-media { max-width: 320px; }
  .stage { padding: 28px 16px 56px; }
  .story-screen { grid-template-columns: 1fr; gap: 22px; }
  .story-screen .story-media { order: -1; max-width: 220px; }
  .done-grid { grid-template-columns: 1fr; }
  .done-grid .done-media { max-width: 300px; }
}

@media (max-width: 560px) {
  .top-in { padding: 0 16px; gap: 10px; }
  .logo .word { font-size: 20px; }
  .logo svg.mark { width: 28px; height: 28px; }
  .top-meta { gap: 12px; }
  .step-count .sec { display: none; }
  .demo-bar, .cat-note { padding: 8px 16px; text-align: left; }
  .opts.two { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .grid2.keep { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid3 > :first-child { grid-column: 1 / -1; }
  .included { grid-template-columns: 1fr; }
  .med-card { grid-template-columns: 22px 1fr; }
  .med-card .price { grid-column: 2; text-align: left; }
  .offer .amt { font-size: 34px; }
  .foot { padding: 22px 16px 28px; }
  .alt-prog { grid-template-columns: 1fr; }
  .alt-prog .mono { text-align: left; }
}

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

/* doc dialog */
.doc-dlg { background: var(--iron); color: var(--chalk); border: 1px solid var(--steel-2); border-radius: var(--r-md); padding: 24px; max-width: min(480px, calc(100vw - 32px)); }
.doc-dlg::backdrop { background: rgba(0,0,0,.7); }

/* add-on product thumbnails: own grid column (dot | photo | text | price) */
.addon.has-img { grid-template-columns: 22px 64px minmax(0, 1fr) auto; align-items: center; }
.opt-tile.addon .addon-img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #f2f1ee; padding: 4px; box-sizing: border-box; }
@media (max-width: 480px) {
  .addon.has-img { grid-template-columns: 22px 52px minmax(0, 1fr); }
  .opt-tile.addon .addon-img { width: 52px; height: 52px; }
  .addon.has-img .price { grid-column: 3; text-align: left; }
}

/* header: "Powered by Apex MD" stacked under the GYM XYZ logo */
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.powered-top { display: inline-flex; align-items: center; gap: 6px; padding-left: 42px; font-family: var(--f-body); font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); white-space: nowrap; line-height: 1; }
.powered-top img { height: 15px; width: auto; display: block; }
@media (max-width: 560px) { .powered-top { padding-left: 38px; font-size: 8.5px; gap: 5px; } .powered-top img { height: 14px; } }

/* ---------- 12-Week Transformation: add-ons card + package page ---------- */
.tf-card { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; margin: 6px 0 4px; background: linear-gradient(135deg, rgba(255,90,31,.12), transparent 55%), var(--iron); border: 1px solid var(--ember); border-radius: var(--r-md); }
.tf-card.on { border-color: var(--volt); background: linear-gradient(135deg, rgba(200,249,74,.08), transparent 55%), var(--iron); }
.tf-card-media .ph-wrap { border-radius: var(--r-sm); }
.tf-eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-family: var(--f-head); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ember); }
.tf-card.on .tf-eyebrow { color: var(--volt); }
.tf-eyebrow svg { width: 16px; height: 16px; }
.tf-card-title { font-size: 26px; line-height: 1.05; margin: 0; }
.tf-card-sub { color: var(--chalk-dim); font-size: 15px; margin: 8px 0 0; }
.tf-card-price { margin: 10px 0 0; font-size: 15px; }
.tf-card-price .mono, .tf-from .mono { font-size: 24px; color: var(--chalk); }
.tf-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.tf-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tf-hero-media { max-width: 400px; width: 100%; justify-self: end; }
.tf-from { margin: 4px 0 0; font-size: 15px; }
.tf-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 22px 0 0; border: 1px solid var(--steel); border-radius: var(--r-md); overflow: hidden; }
.tf-results div { padding: 12px 12px 14px; background: var(--iron); }
.tf-results div:nth-child(even) { border-left: 1px solid var(--steel); }
.tf-results dt { font-size: 12px; color: var(--ash); text-transform: uppercase; letter-spacing: .06em; }
.tf-results dd { margin: 4px 0 0; font-size: 18px; color: var(--volt); white-space: nowrap; }
.tf-results div:nth-child(n+3) { border-top: 1px solid var(--steel); }
.tf-weeks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tf-weeks strong { display: block; margin-top: 10px; font-family: var(--f-head); text-transform: uppercase; font-size: 18px; }
.tf-weeks span { display: block; color: var(--chalk-dim); font-size: 14px; margin-top: 4px; }
.tf-cta { flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .tf-hero { grid-template-columns: 1fr; }
  .tf-hero-media { justify-self: stretch; max-width: none; }
  .tf-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tf-card { grid-template-columns: 1fr; }
  .tf-card-media { max-width: 180px; }
  .tf-cta .btn { width: 100%; }
}
