/* ═══════════════════════════════════════════════════════════
   MOTION RECORDS — quiet professional
   Modest type, normal case. Space carried by diagrams,
   tables, and structure — not display type.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0B0A09;
  --ink: #EFEAE2;
  --ink-dim: rgba(239, 234, 226, 0.62);
  --ink-faint: rgba(239, 234, 226, 0.4);
  --line: rgba(239, 234, 226, 0.13);
  --panel: rgba(239, 234, 226, 0.025);
  --accent: #FF4B1E;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 44rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 58px;
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.975rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ── Utilities ─────────────────────────────────────────── */
.label {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.label .idx { color: var(--accent); margin-right: 0.5em; }
.copy { color: var(--ink-dim); margin-bottom: 1.3rem; }
.copy:last-child { margin-bottom: 0; }

/* Reveal (JS-gated) */
html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.scrolled {
  background: rgba(11, 10, 9, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-mark { display: flex; align-items: center; flex-shrink: 0; }
.nav-mark img { height: 20px; width: auto; }
.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 1.8rem); }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--ink-faint);
  border-radius: 3px;
  padding: 0.38rem 1rem;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 3px;
  padding: 0.72rem 1.7rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover { background: var(--accent); color: #fff; }

/* ── Page template ─────────────────────────────────────── */
.page {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(2.5rem, 7vh, 4rem)) var(--gutter) clamp(3.5rem, 8vh, 5rem);
}
.page-head {
  padding-bottom: clamp(1.4rem, 3.5vh, 2rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(1.8rem, 4.5vh, 2.6rem);
}
.page-title {
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0.7rem 0 0.8rem;
}
.page-lede {
  font-size: 1rem;
  color: var(--ink-dim);
  max-width: 36rem;
}

/* ── Blocks ────────────────────────────────────────────── */
.block {
  padding: clamp(1.5rem, 4vh, 2.1rem) 0;
  border-bottom: 1px solid var(--line);
}
.block .label { display: block; margin-bottom: 0.45rem; }
.block-title {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.block-copy { color: var(--ink-dim); }

/* Plain list inside blocks */
.block-list { margin-top: 0.9rem; }
.block-list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.3rem;
  color: var(--ink-dim);
}
.block-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.block-list a { color: var(--ink); border-bottom: 1px solid var(--line); }
.block-list a:hover { color: var(--accent); border-color: var(--accent); }
.block-list strong { color: var(--ink); font-weight: 500; }

/* Price line */
.price-line {
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.price-line span {
  font-size: 0.78rem;
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink-faint);
  margin-left: 0.4rem;
}

/* Learn-more link */
.more {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.3s ease;
}
.more:hover { color: var(--accent); }

/* End-of-page CTA */
.cta-end { text-align: center; padding: clamp(1.8rem, 4vh, 2.5rem) 0 0.5rem; }
.cta-end .label { display: block; margin-top: 1rem; }

/* Included cards (icon grid) */
.inc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.inc {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  padding: 0.95rem 1.05rem;
}
.inc svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.inc-t { font-size: 0.9rem; color: var(--ink-dim); line-height: 1.55; }
.inc-t strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 0.1rem; }

/* Comparison table */
.cmp-wrap { margin-top: 1.2rem; overflow-x: auto; }
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 30rem;
}
.cmp th {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.cmp td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  vertical-align: top;
}
.cmp td:first-child {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-faint);
  white-space: nowrap;
  padding-top: 0.85rem;
}
.cmp .cmp-strong { color: var(--ink); font-weight: 500; }
.cmp a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.cmp a:hover { color: var(--accent); }

/* ── Next-page link ────────────────────────────────────── */
.next {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.next a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}
.next a:hover { color: var(--accent); }

/* ── Home ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(86svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem;
  overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }
.hero .label { margin-bottom: 1.4rem; }
.hero-logo {
  width: clamp(210px, 30vw, 360px);
  height: auto;
  margin-bottom: 1.9rem;
  filter: drop-shadow(0 0 46px rgba(255, 75, 30, 0.16));
}
.hero-copy { max-width: 30rem; color: var(--ink-dim); margin-bottom: 1.9rem; }

/* Layered hero background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-echo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  max-width: none;
  transform: translate(-50%, -54%);
  opacity: 0.045;
  filter: blur(1.5px);
  animation: echo-breathe 16s ease-in-out infinite alternate;
}
@keyframes echo-breathe {
  from { opacity: 0.035; transform: translate(-50%, -54%) scale(1); }
  to { opacity: 0.06; transform: translate(-50%, -54%) scale(1.025); }
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 52% 38% at 50% 44%, rgba(255, 75, 30, 0.11), transparent 70%),
    radial-gradient(ellipse 70% 55% at 50% 46%, rgba(239, 234, 226, 0.035), transparent 72%);
}
.hero-streaks {
  position: absolute;
  inset: -6% -12%;
  transform: rotate(-4deg);
}
.hero-streaks i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(239, 234, 226, 0.14) 38%, rgba(239, 234, 226, 0.05) 62%, transparent 96%);
  animation: streak-drift 15s ease-in-out infinite alternate;
}
.hero-streaks i:nth-child(1) { top: 30%; animation-duration: 17s; }
.hero-streaks i:nth-child(2) { top: 39%; width: 82%; left: 12%; animation-duration: 13s; animation-delay: -4s; }
.hero-streaks i:nth-child(3) {
  top: 46%;
  height: 2px;
  background: linear-gradient(90deg, transparent 6%, rgba(255, 75, 30, 0.26) 42%, rgba(255, 75, 30, 0.08) 66%, transparent 94%);
  animation-duration: 19s;
  animation-delay: -8s;
}
.hero-streaks i:nth-child(4) { top: 54%; width: 70%; left: 22%; animation-duration: 12s; animation-delay: -2s; }
.hero-streaks i:nth-child(5) { top: 63%; animation-duration: 16s; animation-delay: -10s; }
.hero-streaks i:nth-child(6) {
  top: 71%;
  width: 60%;
  left: 8%;
  background: linear-gradient(90deg, transparent 5%, rgba(255, 75, 30, 0.12) 45%, transparent 92%);
  animation-duration: 14s;
  animation-delay: -6s;
}
@keyframes streak-drift {
  from { transform: translateX(-4%); }
  to { transform: translateX(4%); }
}

.home-body {
  max-width: calc(60rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3.5rem, 8vh, 5rem);
}
.ask { padding-top: clamp(1rem, 3vh, 2rem); }
.ask-q {
  font-weight: 600;
  font-size: clamp(1.45rem, 2.8vw, 1.8rem);
  letter-spacing: -0.012em;
  text-align: center;
  margin-bottom: 0.7rem;
}
.ask-sub {
  color: var(--ink-dim);
  text-align: center;
  max-width: 34rem;
  margin: 0 auto clamp(1.8rem, 4vh, 2.6rem);
}
.pcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.9rem;
}
.pcard {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 1.35rem 1.35rem 1.2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.pcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.pcard-t {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.pcard-c { color: var(--ink-dim); font-size: 0.9rem; line-height: 1.55; }
.pcard-m {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}
.pcard-go {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}
.ask-alt {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-top: 1.6rem;
}
.ask-alt a { color: var(--ink-dim); }
.ask-alt a:hover { color: var(--ink); }

.cta-band {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(2.2rem, 5vh, 3.2rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  text-align: center;
  padding: clamp(2rem, 5vh, 2.8rem) var(--gutter);
}
.cta-band-t {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.cta-band-c { color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 1.4rem; }

/* ── Funnel (apply) ────────────────────────────────────── */
.apply-gif-sm {
  height: 46px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}
.funnel-fallback { padding-top: 0.5rem; }
.funnel-progress {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.2rem);
}
.funnel-progress .label { white-space: nowrap; }
.fp-bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.fp-bar i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.fstep { display: none; }
.fstep.active { display: block; animation: fstep-in 0.35s ease; }
@keyframes fstep-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.fstep-q {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.fstep-hint { color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 1.4rem; max-width: 32rem; }
.opts { display: grid; gap: 0.6rem; }
.opt {
  text-align: left;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.opt:hover { border-color: var(--accent); background: rgba(255, 75, 30, 0.06); }
.opt .oa { color: var(--accent); opacity: 0; transition: opacity 0.2s ease; }
.opt:hover .oa { opacity: 1; }
.fback {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.1rem;
  transition: color 0.25s ease;
}
.fback:hover { color: var(--ink); }
.field { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.field label {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-dim);
}
.field .opt-tag { color: var(--ink-faint); letter-spacing: 0.04em; }
.field input, .field textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.ferr { display: none; color: var(--accent); font-size: 0.88rem; margin-bottom: 1rem; }
.ferr.show { display: block; }
.fsummary { margin-top: 1.8rem; border-top: 1px solid var(--line); }
.sum-row {
  display: flex;
  gap: 1.1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.sum-k {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--ink-faint);
  min-width: 10rem;
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.sum-v { color: var(--ink-dim); word-break: break-word; }

/* Funnel upgrades */
.fp-segs { flex: 1; display: flex; gap: 6px; }
.fp-segs i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.3s ease;
}
.fp-segs i.on { background: var(--accent); }
.opt { align-items: center; }
.opt .ok {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.opt:hover .ok { border-color: var(--accent); color: var(--accent); }
.opt .ot { flex: 1; }
.opt.selected { border-color: var(--accent); background: rgba(255, 75, 30, 0.12); }
.opt.selected .ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.fkey { margin-top: 0.9rem; font-size: 0.8rem; color: var(--ink-faint); }
.fkey b {
  font-weight: 500;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 0.3rem;
}
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 560px) { .frow { grid-template-columns: 1fr; gap: 0; } }
.hp { position: absolute; left: -5000px; opacity: 0; height: 0; width: 0; }
.done-check {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.btn:disabled { opacity: 0.55; cursor: default; }
.ferr a { color: var(--ink); text-decoration: underline; }
.ferr a:hover { color: var(--accent); }

/* Funnel layout (question-first, centered) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.apply-page {
  min-height: 96svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.funnel-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(1.8rem, 4.5vh, 2.6rem);
}
.funnel-top .apply-gif-sm { margin: 0; height: 42px; }
.funnel-top .funnel-progress {
  width: 100%;
  max-width: 30rem;
  margin-bottom: 0;
  margin-top: 0.4rem;
}
.fstep { text-align: center; }
.fstep-q {
  font-size: clamp(1.3rem, 2.6vw, 1.55rem);
  letter-spacing: -0.012em;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
.fstep-hint { margin-left: auto; margin-right: auto; }
.opts, #funnelForm {
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.fkey { text-align: center; }
.fback { display: block; margin: 0 auto 1.1rem; }
.done-check { margin-left: auto; margin-right: auto; }
.fsummary {
  max-width: 30rem;
  margin: 1.8rem auto 0;
  text-align: left;
}
.btn-wide { width: 100%; text-align: center; }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(1.2rem, 3vh, 1.8rem) var(--gutter);
}
.footer-bar {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo { height: 16px; width: auto; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 680px) {
  .nav { padding: 0 1rem; }
  .nav-mark img { height: 17px; }
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.78rem; }
  .nav-cta { font-size: 0.75rem; padding: 0.32rem 0.75rem; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* Hero background video (sits under the echo/glow/streak layers) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(0.9) brightness(0.7);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ============================================================
   APPLY FUNNEL v2 — full-viewport immersive form.
   Fixed to the screen: steps crossfade in place, the page
   never scrolls or shifts as you answer.
   ============================================================ */
body.apply-body { overflow: hidden; height: 100svh; }
body.apply-body .nav,
body.apply-body .footer,
body.apply-body .funnel-fallback { display: none; }
html.js body.apply-body .funnel-fallback { display: none; }

body.apply-body .funnel {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg, #0b0a09);
}

/* ambient video field */
.funnel-bg { position: absolute; inset: 0; overflow: hidden; }
.funnel-bg video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.3; filter: saturate(0.85) brightness(0.6);
}
.funnel-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 90% at 50% 46%, rgba(11, 10, 9, 0.42), rgba(11, 10, 9, 0.92)),
    linear-gradient(180deg, rgba(11, 10, 9, 0.85), transparent 22%, transparent 72%, rgba(11, 10, 9, 0.9));
}

/* top bar */
body.apply-body .funnel-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  height: 72px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0 clamp(16px, 3vw, 34px);
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(11, 10, 9, 0.4);
  backdrop-filter: blur(10px);
}
.fbrand img { height: 30px; width: auto; display: block; }
.ftag { flex: 1; text-align: center; }
body.apply-body .funnel-top .funnel-progress { display: flex; align-items: center; gap: 0.8rem; margin: 0; }
.fexit {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--ink-dim, #b9b3ac);
  font-size: 0.85rem;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.fexit:hover { color: #fff; border-color: var(--accent, #ff4b1e); transform: rotate(90deg); }

/* steps: stacked in place — crossfade, never reflow */
body.apply-body .fstep {
  display: flex !important;
  position: absolute;
  top: 72px; bottom: 0; left: 0; right: 0;
  z-index: 2;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 1rem clamp(16px, 4vw, 40px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s;
  animation: none;
}
body.apply-body .fstep.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.5s ease 0.12s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, visibility 0s;
}

/* flexible spacers: perfectly centered when content fits,
   top-anchored + scrollable when it doesn't (e.g. the contact form) */
body.apply-body .fstep::before,
body.apply-body .fstep::after {
  content: "";
  flex: 1 1 0;
  min-height: clamp(12px, 3svh, 44px);
}

/* cinematic type */
body.apply-body .fstep-q {
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.08;
  max-width: 21ch;
  margin: 0 auto 0.9rem;
}
body.apply-body .fstep-hint { margin-bottom: 1.8rem; }

/* options: large luminous cards, staggered in */
body.apply-body .opts { width: min(640px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
body.apply-body .opt {
  width: 100%;
  padding: 1.05rem 1.3rem;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(18, 15, 13, 0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
body.apply-body .opt:hover { transform: translateX(6px); border-color: var(--accent, #ff4b1e); background: rgba(255, 75, 30, 0.09); }
body.apply-body .fstep.active .opt { animation: fopt-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
body.apply-body .fstep.active .opt:nth-child(1) { animation-delay: 0.16s; }
body.apply-body .fstep.active .opt:nth-child(2) { animation-delay: 0.24s; }
body.apply-body .fstep.active .opt:nth-child(3) { animation-delay: 0.32s; }
body.apply-body .fstep.active .opt:nth-child(4) { animation-delay: 0.4s; }
@keyframes fopt-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* back button pinned inside the step, not in flow */
body.apply-body .fback {
  position: absolute;
  top: clamp(14px, 3vh, 30px);
  left: clamp(16px, 4vw, 40px);
  z-index: 3;
}

/* contact form: glass panel */
body.apply-body #funnelForm {
  width: min(620px, 100%);
  margin: 0 auto;
  text-align: left;
  background: rgba(15, 13, 11, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: clamp(18px, 2.6vw, 30px);
  backdrop-filter: blur(12px);
}

/* success */
body.apply-body .fsummary { max-height: 34svh; overflow-y: auto; }

/* small screens */
@media (max-width: 640px) {
  body.apply-body .funnel-top { height: 60px; gap: 0.8rem; }
  body.apply-body .fstep { top: 60px; }
  .ftag { display: none; }
  .fbrand img { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .funnel-bg video { display: none; }
  body.apply-body .fstep,
  body.apply-body .fstep.active { transition: none; transform: none; }
  body.apply-body .fstep.active .opt { animation: none; }
}
