/* ============================================================
   EBF Academy · Applied Human Mechanics
   Mobile-first. Brand: royal blue #003B94, dark navy, white. No other hues.
   Type: Changa (Arabic display) · Almarai (Arabic body) · Archivo (Latin + numerals)
   ============================================================ */

:root {
  --bg: #060B18;
  --bg-2: #0C1529;
  --bg-3: #131E38;
  --line: rgba(191, 214, 255, .14);
  --line-strong: rgba(191, 214, 255, .3);
  --text: #EEF2FA;
  --muted: #A9B4CD;
  --faint: #7D8AA6;

  --blue: #003B94;
  --blue-deep: #002A6B;
  --blue-bright: #3B82F6;
  --blue-tint: #BFD6FF;
  --blue-soft: rgba(59, 130, 246, .14);
  --on-blue-muted: #DCE7FF;

  --white: #FFFFFF;
  --white-hover: #E6EEFF;
  --focus: #9CC2FF;

  --error: #FF8A8C;

  --font-body: "Almarai", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: "Changa", "Almarai", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-latin: "Archivo", "Segoe UI", system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --gutter: 20px;
  --wrap: 1100px;
  --dock-h: 78px;

  --z-bar: 20;
  --z-dock: 30;

  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.8 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
img { display: block; max-width: 100%; }
strong { font-weight: 700; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

.num {
  font-family: var(--font-latin);
  font-weight: 800;
  font-stretch: 110%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-md);
  font: 700 1.0625rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .7; cursor: progress; }

.btn-primary { background: var(--white); color: var(--blue-deep); }
.btn-primary:hover { background: var(--white-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }

.btn-sm { min-height: 40px; padding: 0 14px; font-size: .9rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { position: relative; z-index: var(--z-bar); background: #04081A; }
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
/* White reversed EBF logo: blue shows through the letters, so it works on the blue and the dark */
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { display: block; width: auto; height: 32px; }
.topbar .btn-ghost { color: #FFFFFF; border-color: rgba(255, 255, 255, .38); }
.topbar .btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Hero: dark x-ray stage, a 3D figure squats inside a measuring frame ---------- */
.hero {
  position: relative;
  padding: 16px 0 32px;
  background: radial-gradient(90% 55% at 50% 58%, #0B2D6E 0%, #071636 42%, #04081A 78%);
  color: #FFFFFF;
  overflow: clip;
}
.hero-grid { display: grid; grid-template-areas: "copy" "stage" "cta"; gap: 14px; }

.hero-copy { grid-area: copy; container-type: inline-size; }

.hero-from {
  color: var(--blue-tint);
  font: 600 1.0625rem/1.5 var(--font-display);
}
.hero-from .brand-name {
  color: #FFFFFF;
  font: 800 1em/1 var(--font-latin);
  font-stretch: 118%;
}

.hero-title {
  margin-top: 6px;
  font-family: var(--font-latin);
  font-weight: 900;
  font-stretch: 112%;
  line-height: .92;
  letter-spacing: -.01em;
  text-align: right;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-title span:first-child { color: var(--blue-tint); font-size: clamp(1.3rem, 7cqi, 2.4rem); }
.hero-title span:last-child { color: #FFFFFF; font-size: clamp(2.4rem, 13cqi, 4.6rem); }

.hero-lead {
  max-width: 34em;
  margin-top: 10px;
  color: var(--on-blue-muted);
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}

/* The stage has a fixed height so the hero stays compact; the 3D canvas only covers this box. */
.xr-stage {
  grid-area: stage;
  position: relative;
  height: clamp(270px, 40svh, 360px);
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  touch-action: pan-y;
}
.xr-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(191, 214, 255, .35);
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) top left / 22px 22px no-repeat, linear-gradient(#000 0 0) top right / 22px 22px no-repeat,
                linear-gradient(#000 0 0) bottom left / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom right / 22px 22px no-repeat;
          mask: linear-gradient(#000 0 0) top left / 22px 22px no-repeat, linear-gradient(#000 0 0) top right / 22px 22px no-repeat,
                linear-gradient(#000 0 0) bottom left / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom right / 22px 22px no-repeat;
}
.xr-poster, .xr-gl, .xr-ov, .xr-video, .xr-tint { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.xr-poster { object-fit: contain; transition: opacity .6s ease; }
.xr-gl { opacity: 0; cursor: grab; transition: opacity .6s ease; }
.xr-gl:active { cursor: grabbing; }
.xr-stage.is-live .xr-gl { opacity: 1; }
.xr-stage.is-live .xr-poster { opacity: 0; }
.xr-ov { z-index: 2; pointer-events: none; }
.xr-video { object-fit: cover; transform: scaleX(-1); filter: grayscale(1) contrast(1.15) brightness(.8); }
.xr-tint { background: var(--blue); mix-blend-mode: color; pointer-events: none; }
.xr-video, .xr-tint { display: none; }
.xr-stage.is-cam .xr-video, .xr-stage.is-cam .xr-tint { display: block; }
.xr-stage.is-cam .xr-gl, .xr-stage.is-cam .xr-poster { visibility: hidden; }

.xr-hud { position: absolute; z-index: 2; top: 10px; margin: 0; pointer-events: none; }
.xr-hud-a { inset-inline-start: 12px; }
.xr-hud-b { inset-inline-end: 12px; text-align: left; }
.xr-hud dt { color: var(--blue-tint); font: 600 .78rem/1.4 var(--font-display); }
.xr-hud dd { margin: 0; font: 800 1.7rem/1 var(--font-latin); font-stretch: 105%; font-variant-numeric: tabular-nums; }
.xr-hud dd small { color: var(--blue-tint); font-size: .55em; font-weight: 600; }
.xr-hud dd.is-empty small { visibility: hidden; }

.xr-trace {
  position: absolute;
  z-index: 2;
  inset: auto 12px 8px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.xr-stage.is-live .xr-trace, .xr-stage.is-cam .xr-trace { opacity: 1; }
.xr-trace canvas { flex: 1; min-width: 0; height: 34px; }
.xr-trace p { color: var(--blue-tint); font: 600 .75rem/1.3 var(--font-display); text-align: center; }
.xr-trace b { display: block; color: #FFFFFF; font: 800 1.3rem/1 var(--font-latin); font-variant-numeric: tabular-nums; }

.xr-status {
  position: absolute;
  z-index: 4;
  inset: auto 12px 52px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(4, 8, 26, .8);
  color: var(--on-blue-muted);
  font-size: .88rem;
  line-height: 1.6;
  text-align: center;
}

.hero-cta { grid-area: cta; display: grid; gap: 8px; }
.hero-cta .btn { min-height: 54px; }
.hero-cta .xr-cam { min-height: 46px; color: #FFFFFF; font-size: .95rem; }
.hero-meta { margin-top: 2px; color: var(--on-blue-muted); font-size: .9rem; text-align: center; }
.hero-meta .num { color: #FFFFFF; font-size: 1.1rem; }
.xr-privacy { color: var(--muted); font-size: .8rem; text-align: center; }

/* Page-load choreography: copy first, then the stage and the booking buttons. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero-copy, .xr-stage, .hero-cta { animation: rise .7s var(--ease-out) both; }
.xr-stage { animation-delay: .1s; }
.hero-cta { animation-delay: .2s; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 11vw, 104px); }
.h2 {
  font: 800 clamp(1.75rem, 6.4vw, 2.5rem)/1.25 var(--font-display);
  text-wrap: balance;
}
.lead { max-width: 36em; margin-top: 8px; color: var(--muted); font-size: 1.0625rem; text-wrap: pretty; }

/* ---------- Details: a spec sheet, not cards ---------- */
.spec { margin-top: 26px; border-top: 1px solid var(--line); }
.spec-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { color: var(--blue-tint); font: 700 1rem/1.7 var(--font-display); }
.spec dd { line-height: 1.75; text-wrap: pretty; }
.spec dd.has-hours { display: flex; align-items: flex-start; gap: 14px; }

.tag {
  display: inline-block;
  margin-inline-end: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: var(--blue-tint);
  font-size: .78rem;
  font-weight: 700;
  vertical-align: middle;
}

/* 16 hours = 4 days × 4 hours, drawn as what it is. */
.hours {
  display: grid;
  flex: none;
  grid-template-columns: repeat(4, 10px);
  gap: 3px;
  margin-top: 6px;
}
.hours i { display: block; width: 10px; height: 10px; border-radius: 2px; background: var(--blue-bright); }

.price {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--blue);
  color: #FFFFFF;
}
.price-eyebrow { color: var(--blue-tint); font: 700 1rem/1.4 var(--font-display); }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; line-height: 1; }
.price-amount .num { font-size: 4.25rem; font-weight: 900; }
.price-amount .cur { font: 700 1.25rem/1 var(--font-display); }
.price-or { margin-top: 20px; font-weight: 700; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-md);
  overflow: hidden;
}
.split li { padding: 12px 14px; }
.split li + li { border-inline-start: 1px solid rgba(255, 255, 255, .3); }
.split .num { display: block; font-size: 1.5rem; line-height: 1.2; }
.split small { color: var(--blue-tint); font-size: .85rem; }
.price-pay { margin-top: 16px; color: var(--blue-tint); font-size: .95rem; }
.price .btn { margin-top: 18px; }

/* ---------- Coaches ---------- */
.coaches { background: var(--bg-2); }
.coach-list { display: grid; gap: 16px; margin-top: 26px; }
.coach {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.coach-head { display: flex; align-items: center; gap: 16px; }
.portrait {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #0A4FBF, var(--blue) 55%, var(--blue-deep));
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-strong);
  overflow: hidden;
}
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.coach-name { font: 800 1.375rem/1.3 var(--font-display); }
.coach-name small { display: block; color: var(--muted); font: 400 .85rem/1.6 var(--font-body); }
.coach-field {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-tint);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.5;
}

.coach-facts { display: grid; gap: 10px; margin: 18px 0 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.coach-facts li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .95rem; line-height: 1.65; }
.coach-facts .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--blue-bright); stroke-width: 2.4; }
.coach-facts bdi { font-family: var(--font-latin); font-size: .9em; }

/* 8 of the 16 workshop hours */
.coach-hours {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  color: var(--muted);
  font-size: .9rem;
  white-space: nowrap;
}
.coach-hours .num { color: var(--text); font-size: 1.05rem; }
.hours-bar { display: grid; flex: 1; grid-template-columns: repeat(16, 1fr); gap: 3px; max-width: 220px; }
.hours-bar i { height: 10px; border-radius: 2px; background: var(--line-strong); }
.hours-bar i.on { background: var(--blue-bright); }

/* ---------- Perks: a ledger plus the certificate itself ---------- */
.perk-list { margin-top: 22px; border-top: 1px solid var(--line); }
.perk-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 2px 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.perk-list .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--blue-bright); stroke-width: 2.4; }
.perk-list strong { font: 700 1.0625rem/1.5 var(--font-display); }
.perk-list span { grid-column: 2; color: var(--muted); font-size: .95rem; }

.cert { margin: 34px 0 0; }
.cert-img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-inline: auto;
  border-radius: 8px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .75);
  transform: rotate(-1.5deg);
}
.cert-caption { margin-top: 18px; color: var(--muted); font-size: .9rem; text-align: center; }

/* ---------- Register (back on the blue) ---------- */
.register { background: var(--blue); color: #FFFFFF; }
.register .lead { color: var(--on-blue-muted); }
.form-card {
  margin-top: 24px;
  padding: 22px 18px;
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--text);
}

.field { margin-bottom: 20px; }
.label { display: block; margin-bottom: 8px; font: 700 1rem/1.5 var(--font-body); }
.optional { color: var(--faint); font-size: .875rem; font-weight: 400; }
.hint { margin-top: 6px; color: var(--faint); font-size: .8125rem; line-height: 1.5; }
.error-msg { margin-top: 6px; color: var(--error); font-size: .875rem; font-weight: 700; line-height: 1.5; }

/* :where() keeps this low-specificity so focus/error states below win. */
.field :where(input:not([type="radio"]), textarea) {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg-3);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming on focus */
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.7; }
.field input[dir="ltr"] { text-align: right; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(255, 138, 140, .18); }

/* Stacked on narrow phones so neither answer wraps; side by side from 480px. */
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: flex; cursor: pointer; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice-box {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg-3);
  font-weight: 700;
  line-height: 1.4;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice-box::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.choice input:checked + .choice-box { border-color: var(--blue-bright); background: var(--blue-soft); }
.choice input:checked + .choice-box::before {
  border-color: var(--blue-bright);
  background: var(--blue-bright);
  box-shadow: inset 0 0 0 4px var(--bg-3);
}
.choice input:focus-visible + .choice-box { outline: 2px solid var(--focus); outline-offset: 2px; }
.field.has-error .choice-box { border-color: var(--error); }

/* Follow-up question slides open once a level is picked. */
.reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.reveal > div { min-height: 0; margin: 0 -6px -6px; padding: 0 6px 6px; overflow: hidden; }
.reveal.is-open { grid-template-rows: 1fr; }
.reveal .field { margin-bottom: 14px; }

.form-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 138, 140, .4);
  border-radius: var(--r-md);
  background: rgba(255, 138, 140, .1);
  color: #FFC1C2;
  font-weight: 700;
}
.form-foot { margin-top: 12px; color: var(--faint); font-size: .8125rem; text-align: center; }

/* Honeypot: no offscreen offset (a negative left adds horizontal scroll in RTL). */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-success { outline: none; }
.ticket { padding: 10px 4px 0; text-align: center; }
.ticket-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-deep);
}
.ticket-check .icon { width: 30px; height: 30px; stroke-width: 2.8; }
.ticket h3 { font: 800 1.5rem/1.3 var(--font-display); }
.ticket p { margin-top: 8px; color: var(--muted); text-wrap: pretty; }
.ticket .demo-note {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  color: var(--blue-tint);
  font-size: .8125rem;
}
.ticket-stub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: .9rem;
}
.ticket-stub [dir="ltr"] {
  color: var(--text);
  font: 800 .95rem/1.5 var(--font-latin);
  font-stretch: 112%;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 44px calc(24px + var(--dock-h) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: .925rem;
}
.footer-top { display: grid; gap: 26px; }
.footer-brand img { display: block; width: auto; height: 34px; }
.footer-brand p { max-width: 30em; margin-top: 14px; line-height: 1.8; }
.footer-info { display: grid; gap: 12px; }
.footer-info li { display: flex; align-items: center; gap: 10px; color: var(--text); }
.footer-info .icon { width: 18px; height: 18px; color: var(--blue-bright); }
.footer-info a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.footer-info a:hover { text-decoration-color: currentColor; }
.footer-cta { justify-self: start; min-width: 180px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: .85rem;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Map (details: المكان) ---------- */
.place-name { display: block; font: 800 1.15rem/1.4 var(--font-latin); color: var(--text); }
.place-addr { display: block; color: var(--muted); }
.map { grid-column: 1 / -1; margin-top: 2px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg-3); }
.map iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; filter: grayscale(.25) contrast(1.05); }
.map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.map-link:hover { background: rgba(255, 255, 255, .05); }
.map-link .icon { width: 18px; height: 18px; color: var(--blue-bright); }
.map-link .icon-sm { width: 14px; height: 14px; color: var(--muted); }

/* ---------- Sticky booking dock (mobile) ---------- */
.dock {
  position: fixed;
  inset: auto 0 0;
  z-index: var(--z-dock);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(6, 11, 24, .88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transform: translateY(110%);
  transition: transform .35s var(--ease-out);
}
.dock.is-visible { transform: none; }
.dock .btn { min-height: 52px; padding: 0 26px; }
.dock-price { display: flex; flex-direction: column; line-height: 1.3; }
.dock-amount { font-weight: 700; }
.dock-amount .num { font-size: 1.35rem; }
.dock-split { color: var(--muted); font-size: .8125rem; }

/* ---------- Larger screens ---------- */
@media (min-width: 480px) {
  .choices { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .xr-stage, .hero-cta { width: 100%; max-width: 520px; justify-self: center; }
}

@media (min-width: 720px) {
  .coach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach { padding: 24px; }
}

@media (min-width: 900px) {
  .topbar {
    position: sticky;
    top: 0;
    background: rgba(4, 8, 26, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .topbar-in { min-height: 68px; }

  .hero { padding: 48px 0 64px; }
  .hero-grid {
    grid-template-columns: 1fr minmax(0, 440px);
    grid-template-areas: "copy stage" "cta stage";
    column-gap: 64px;
    row-gap: 24px;
    align-items: center;
  }
  .hero-copy { align-self: end; }
  .hero-from { font-size: 1.2rem; }
  .hero-lead { font-size: 1.0625rem; }
  .xr-stage { max-width: none; height: 480px; }
  .hero-cta { align-self: start; max-width: none; grid-template-columns: auto auto; justify-content: start; column-gap: 10px; }
  .hero-cta .btn { width: auto; padding: 0 30px; }
  .hero-cta .xr-cam { min-height: 54px; }
  .hero-meta, .xr-privacy { grid-column: 1 / -1; text-align: start; }

  .details-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
  .spec-row { grid-template-columns: 140px 1fr; padding: 18px 0; }
  .price { position: sticky; top: 92px; margin-top: 0; padding: 32px; }

  .perks-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
  .cert { margin-top: 0; }
  .cert-img { transform: rotate(-2.5deg); }

  .register-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
  .register { scroll-margin-top: 68px; } /* sticky top bar height */
  .register-copy { position: sticky; top: 100px; }
  .form-card { margin-top: 0; padding: 32px; }

  .footer { padding-bottom: 28px; }
  .footer-top { grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 40px; }
  .dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
