/* Nash D Fitness | Build Your Training Plan */
body.builder { background: var(--black); }
.builder .site-header { background: rgba(10,10,10,0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }

.cfg { display: grid; grid-template-columns: minmax(0, 1fr) 480px; min-height: 100svh; padding-top: 72px; }

/* Visual (left / top) */
.cfg-visual { position: sticky; top: 72px; height: calc(100svh - 72px); overflow: hidden; background: #000; }
.cfg-visual .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.cfg-visual .slide.on { opacity: 1; }
.cfg-visual .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.cfg-visual .slide.on img { transform: scale(1); }
.cfg-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.78) 100%); pointer-events: none; }
.cfg-hud { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 48px 56px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cfg-hud .label { margin-bottom: 12px; color: rgba(255,255,255,0.7); }
.cfg-hud h2 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.03em; transition: opacity .3s; }
.cfg-hud .specs { display: flex; gap: 36px; }
.cfg-hud .spec strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.cfg-hud .spec span { font-size: 12px; color: rgba(255,255,255,0.7); letter-spacing: 0.06em; }

/* Panel (right / bottom) */
.cfg-panel { min-width: 0; position: relative; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--black); min-height: calc(100svh - 72px); }
.cfg-progress { position: sticky; top: 72px; z-index: 5; height: 2px; background: var(--line); }
.cfg-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.cfg-steps { flex: 1; padding: 44px 40px 40px; }
.offer-banner { margin: 0 0 28px; padding: 16px 18px; border: 1px solid rgba(30,113,255,0.5); background: var(--accent-soft); border-radius: 12px; font-size: 14px; color: var(--grey-1); }
.offer-banner strong { color: #fff; display: block; font-size: 15px; margin-bottom: 2px; }

.step { display: none; animation: stepIn .55s var(--ease); }
.step.on { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step-count { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey-2); margin-bottom: 14px; }
.step h1, .step h2.q { font-size: clamp(30px, 3vw, 38px); letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 10px; }
.step .sub { color: var(--grey-2); font-size: 15px; margin-bottom: 30px; }
.group-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-2); margin: 34px 0 14px; }

/* Option cards */
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt {
  position: relative; width: 100%; text-align: left; font: inherit; color: #fff; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 18px 20px; min-height: 64px; display: flex; align-items: center; gap: 16px;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease);
}
.opt:hover { border-color: rgba(255,255,255,0.4); }
.opt:active { transform: scale(0.99); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--accent); background: rgba(30,113,255,0.08); box-shadow: 0 0 0 1px var(--accent), 0 10px 40px -12px rgba(30,113,255,0.55); }
.opt .o-main { flex: 1; min-width: 0; }
.opt .o-title { display: block; font-size: 16px; font-weight: 500; }
.opt .o-desc { display: block; font-size: 14px; color: var(--grey-2); margin-top: 3px; line-height: 1.45; }
.opt .o-side { text-align: right; flex: none; }
.opt .o-price { display: block; font-size: 16px; font-weight: 500; }
.opt .o-per { display: block; font-size: 12px; color: var(--grey-2); }
.opt .badge {
  display: inline-block; margin-left: 8px; vertical-align: 2px; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff;
}
.opt .badge.ghost { background: transparent; border: 1px solid rgba(111,163,255,0.7); color: #9ec0ff; }
.opt.big { padding: 22px 22px; min-height: 92px; }
.opt .check {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.opt[aria-pressed="true"] .check, .opt[aria-checked="true"] .check { background: var(--accent); border-color: var(--accent); }
.opt .check svg { width: 12px; height: 12px; opacity: 0; color: #fff; }
.opt[aria-pressed="true"] .check svg, .opt[aria-checked="true"] .check svg { opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 15px; color: #fff; cursor: pointer; min-height: 46px; padding: 0 18px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-2); transition: all .2s var(--ease);
}
.chip:hover { border-color: rgba(255,255,255,0.45); }
.chip[aria-pressed="true"] { background: #fff; color: var(--black); border-color: #fff; }
.chip small { display: block; font-size: 11px; opacity: 0.7; margin-top: -2px; }
.chip.tall { padding: 8px 18px; text-align: left; }

/* Segmented control */
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); position: relative; }
.seg button { position: relative; z-index: 1; font: inherit; font-size: 14px; font-weight: 500; color: var(--grey-1); background: none; border: 0; min-height: 44px; border-radius: 999px; cursor: pointer; transition: color .25s; }
.seg button[aria-checked="true"] { color: var(--black); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; transition: transform .35s var(--ease); }
.seg.right .thumb { transform: translateX(100%); }
.seg-note { font-size: 13px; color: var(--grey-2); margin-top: 10px; }

.disclose { margin-top: 18px; background: none; border: 0; color: #9ec0ff; font: inherit; font-size: 15px; cursor: pointer; padding: 10px 0; display: inline-flex; align-items: center; gap: 8px; }
.disclose svg { width: 14px; height: 14px; transition: transform .3s; }
.disclose[aria-expanded="true"] svg { transform: rotate(180deg); }

.note { font-size: 14px; color: var(--grey-2); border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; margin: 22px 0 0; }
.incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.incl li { display: flex; gap: 12px; font-size: 15px; color: var(--grey-1); }
.incl svg { width: 18px; height: 18px; flex: none; color: #6FA3FF; margin-top: 3px; }

.fields { display: grid; gap: 16px; }
.consent { font-size: 13px; color: var(--grey-3); margin-top: 18px; }
.form-error { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255,107,107,0.5); background: rgba(255,107,107,0.08); font-size: 14px; color: #ffc4c4; }
.form-error.on { display: block; }
.form-error a { color: #fff; }

/* Summary card */
.plan-card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 28px 26px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(30,113,255,0.35) 0%, rgba(30,113,255,0) 55%), linear-gradient(160deg, #1b1b1b, #0c0c0c);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 80px -30px rgba(30,113,255,0.45);
}
.plan-card .pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.plan-card .pc-top img { height: 34px; width: auto; }
.plan-card .pc-top span { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey-2); }
.plan-card .pc-name { font-size: 13px; color: var(--grey-2); margin-bottom: 6px; }
.plan-card h3 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 4px; }
.plan-card .pc-meta { color: var(--grey-1); font-size: 14px; }
.plan-card dl { margin: 26px 0 0; display: grid; gap: 10px; font-size: 14px; }
.plan-card dl div { display: flex; justify-content: space-between; gap: 16px; }
.plan-card dt { color: var(--grey-2); }
.plan-card dd { margin: 0; text-align: right; }
.plan-card .pc-total { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 14px; margin-top: 6px; font-size: 18px; font-weight: 500; }

.consult-type { margin-top: 30px; }
.calendly-box { margin-top: 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #111; height: 720px; position: relative; }
.calendly-box iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }
.calendly-box .cal-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--grey-2); font-size: 14px; }
.cal-direct { display: block; margin-top: 12px; font-size: 14px; color: var(--grey-2); }
.cal-direct a { color: #9ec0ff; }
@media (max-width: 760px) { .calendly-box { height: 900px; } }
.calendly-box:has(.cal-fallback) { height: auto; }
.cal-fallback { padding: 28px; font-size: 15px; color: var(--grey-1); }
.booked { text-align: left; }
.booked .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; box-shadow: 0 0 0 10px rgba(30,113,255,0.15); }
.booked .tick svg { width: 30px; height: 30px; color: #fff; }

/* Sticky summary bar */
.cfg-bar {
  position: sticky; bottom: 0; z-index: 10; background: rgba(10,10,10,0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); padding: 14px 40px calc(14px + env(safe-area-inset-bottom));
}
.bar-row { display: flex; align-items: center; gap: 14px; }
.bar-back { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bar-back svg { width: 18px; height: 18px; }
.bar-back[hidden] { display: none; }
.bar-price { flex: 1; min-width: 0; background: none; border: 0; color: #fff; text-align: left; font: inherit; cursor: pointer; padding: 4px 0; }
.bar-price .bp-main { display: block; font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-price .bp-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--grey-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-price .bp-sub svg { width: 12px; height: 12px; transition: transform .3s; flex: none; }
.bar-price[aria-expanded="true"] .bp-sub svg { transform: rotate(180deg); }
.bar-next { flex: none; min-width: 150px; }
.bar-next[disabled] { opacity: 0.35; cursor: not-allowed; }
.bar-details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.bar-details.open { grid-template-rows: 1fr; }
.bar-details > div { overflow: hidden; }
.bar-details dl { margin: 0; padding: 6px 0 16px; display: grid; gap: 8px; font-size: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.bar-details dl div { display: flex; justify-content: space-between; gap: 16px; }
.bar-details dt { color: var(--grey-2); }
.bar-details dd { margin: 0; text-align: right; }
.bar-details .tot { font-weight: 600; color: #fff; }

/* Mobile */
@media (max-width: 999px) {
  .cfg { grid-template-columns: minmax(0, 1fr); padding-top: 64px; }
  .builder .nav { height: 64px; }
  .builder .nav-links { inset: 64px 0 0 0; }
  .cfg-visual { position: relative; top: 0; height: 34svh; min-height: 230px; }
  .cfg-hud { padding: 22px 22px; }
  .cfg-hud h2 { font-size: 30px; }
  .cfg-hud .specs { display: none; }
  .cfg-panel { border-left: 0; min-height: auto; }
  .cfg-progress { top: 64px; }
  .cfg-steps { padding: 32px 22px 28px; }
  .cfg-bar { position: fixed; left: 0; right: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  body.builder { padding-bottom: 96px; }
  .bar-next { min-width: 0; padding: 0 20px; }
  .bar-back { width: 48px; height: 48px; }
  .bar-price .bp-main { font-size: 18px; }
  .opts.two { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .bar-next { padding: 0 16px; font-size: 14px; } }

/* Promo code */
.promo { margin-top: 26px; }
.promo-form { display: flex; gap: 8px; margin-top: 6px; }
.promo-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 20px; min-height: 48px; color: #fff; }
.promo-form input:focus { outline: none; border-color: var(--accent); }
.promo-form .btn { min-height: 48px; padding: 0 22px; }
.promo-msg { font-size: 13px; margin: 10px 0 0; }
.promo-msg.ok { color: #9ec0ff; }
.promo-msg.bad { color: #ff9a9a; }

/* Review on pricing step */
.plan-review { margin: 30px 0 0; padding: 22px 22px 20px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.plan-review .stars { color: #f5b301; letter-spacing: 3px; font-size: 14px; margin-bottom: 10px; }
.plan-review p { font-size: 15px; line-height: 1.55; color: var(--grey-1); margin: 0 0 12px; }
.plan-review .pr-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--grey-2); }
.plan-review a { color: #9ec0ff; text-decoration: none; }
.plan-review a:hover { text-decoration: underline; }

/* ---------- Left stage: step-by-step visual ---------- */
.cfg-visual .slide video { width: 100%; height: 100%; object-fit: cover; }
.cfg-visual .slide video, .cfg-visual .slide img { filter: saturate(0.9) brightness(0.78); }
.stage { position: absolute; z-index: 3; top: 48px; left: 56px; right: 56px; pointer-events: none; }
.stage-card {
  position: absolute; top: 0; left: 0; width: min(520px, 100%);
  padding: 24px 26px; border-radius: 18px;
  background: rgba(12,12,12,0.62); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
  opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.stage-card.on { opacity: 1; transform: none; }
.sc-label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin: 0 0 16px; }
.sc-foot { font-size: 13px; color: rgba(255,255,255,0.7); margin: 16px 0 0; }
.sc-stars { color: #f5b301; letter-spacing: 2px; font-size: 13px; margin-bottom: 8px; }

.proof { display: flex; gap: 18px; align-items: flex-start; }
.proof img { width: 132px; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; flex: none; }
.proof img.hidden { display: none; }
.proof-quote { font-family: var(--display); font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 10px; }
.proof-name { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }

.inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inc-item { padding: 14px 14px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); opacity: 0; transform: translateY(8px); animation: incIn .5s var(--ease) forwards; }
.inc-item svg { width: 22px; height: 22px; color: #6FA3FF; margin-bottom: 10px; display: block; }
.inc-item strong { display: block; font-size: 14px; font-weight: 500; }
.inc-item span { display: block; font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.4; margin-top: 2px; }
@keyframes incIn { to { opacity: 1; transform: none; } }

/* session grid */
.sgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.sgrid .wk { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.sgrid .wk-n { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 4px; letter-spacing: 0.04em; }
.sgrid .dot { width: 100%; max-width: 26px; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.16); transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); transform: scale(0.85); }
.sgrid .dot.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(30,113,255,0.55); transform: scale(1); }
.sgrid.days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sgrid.days .dot { max-width: 34px; }

/* week calendar */
.wcal { display: grid; grid-template-columns: 82px repeat(7, minmax(0, 1fr)); gap: 5px; align-items: center; }
.wcal .h { font-size: 11px; text-align: center; color: rgba(255,255,255,0.5); padding-bottom: 4px; transition: color .3s; }
.wcal .h.on { color: #fff; font-weight: 600; }
.wcal .t { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.2; transition: color .3s; }
.wcal .t.on { color: #fff; }
.wcal .c { height: 30px; border-radius: 7px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06); transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.wcal .c.half { background: rgba(30,113,255,0.12); }
.wcal .c.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(30,113,255,0.45); }

/* coach */
.stage-card.coach { display: flex; gap: 20px; align-items: flex-start; }
.stage-card.coach > img { width: 120px; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; flex: none; }
.stage-card.coach h3 { font-size: 30px; margin-bottom: 8px; }
.coach-txt { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.55; margin: 0 0 6px; }

.mgrid-wrap { display: none; }
@media (max-width: 999px) {
  .stage { display: none; }
  .mgrid-wrap { display: block; }
  .mgrid-wrap .sgrid { gap: 4px; }
  .mgrid-wrap .sgrid .wk { gap: 4px; }
  .mgrid-wrap .sgrid .dot { border-width: 1px; }
}
@media (max-height: 760px) and (min-width: 1000px) { .stage { top: 28px; } .stage-card { padding: 18px 20px; } }
@media (prefers-reduced-motion: reduce) { .stage-card, .inc-item, .sgrid .dot, .wcal .c { transition: none; animation: none; opacity: 1; transform: none; } }

/* No payment reassurance */
.nopay { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 26px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(30,113,255,0.45); background: rgba(30,113,255,0.09); }
.nopay svg { width: 22px; height: 22px; color: #6FA3FF; flex: none; margin-top: 1px; }
.nopay p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--grey-1); }
.nopay strong { color: #fff; font-weight: 600; }
.nopay.compact { padding: 12px 16px; align-items: center; }
#book-main .nopay { margin: 26px 0 0; }
.bar-details .due { color: #9ec0ff; }

/* Optional email opt-in */
.optin { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; cursor: pointer; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); transition: border-color .2s, background .2s; }
.optin:hover { border-color: rgba(255,255,255,0.4); }
.optin input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.optin-box { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1.5px solid rgba(255,255,255,0.45); display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; margin-top: 1px; }
.optin-box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity .2s; }
.optin input:checked + .optin-box { background: var(--accent); border-color: var(--accent); }
.optin input:checked + .optin-box svg { opacity: 1; }
.optin input:focus-visible + .optin-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.optin:has(input:checked) { border-color: rgba(30,113,255,0.6); background: rgba(30,113,255,0.07); }
.optin-text { font-size: 14px; line-height: 1.5; color: var(--grey-1); }

/* "I'll wait" option */
.wait-btn { margin: 4px 0 28px; min-height: 46px; padding: 0 22px; font-size: 14px; }
.wait-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); }
.wait-row span { font-size: 14px; color: var(--grey-2); }
.wait-row .wait-btn { margin: 0; }
@media (max-width: 760px) {
  .offer-banner { padding: 12px 14px; margin-bottom: 22px; }
  .offer-banner #offer-desc { display: none; }
  .offer-banner strong { margin: 0; font-size: 14px; }
}
.offer-banner .ob-logo { display: block; width: 190px; height: auto; margin-bottom: 10px; }
@media (max-width: 760px) { .offer-banner .ob-logo { width: 150px; margin-bottom: 6px; } }
