/* Funnel pages (/start, /watch, /apply, /book, /confirmed). Uses the tokens in styles.css. */
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }
.f-main { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.f-main .wrap { max-width: 1040px; }
.f-narrow { max-width: 760px; margin-inline: auto; }
.f-main h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -0.04em; line-height: 1.04; }
.f-main .lede { margin-top: 16px; max-width: 34em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* where you are in the funnel */
.f-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 4vw, 40px); counter-reset: fs; }
.center .f-steps, .f-steps.mid { justify-content: center; }
.f-steps li { counter-increment: fs; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 6px; background: var(--card); }
.f-steps li::before { content: counter(fs); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper-2); font-size: 12px; font-weight: 800; color: var(--ink-2); }
.f-steps li[aria-current="step"] { color: var(--on-ink); background: var(--ink); border-color: var(--ink); }
.f-steps li[aria-current="step"]::before { background: var(--mark); color: var(--ink); }
.f-steps li.done::before { content: "\2713"; background: var(--cobalt); color: #fff; }

/* opt-in */
.optin { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.checks { display: grid; gap: 12px; margin-top: 26px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; line-height: 1.45; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; }
.lead-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; }
.lead-card h2 { font-size: 24px; letter-spacing: -0.03em; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field label span { font-weight: 500; color: var(--ink-3); }
.field input { font: inherit; font-size: 17px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); width: 100%; }
.field input:focus { outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); background: #fff; }
.lead-card .btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.form-error { color: #B3261E; font-size: 15px; font-weight: 600; }
.consent { font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }

/* watch: on a phone the headline, video and Step 2 must fit on one screen */
.f-main:has(.watch) { padding-top: clamp(14px, 3vw, 40px); }
.watch h1 { text-align: center; font-size: clamp(21px, 3vw, 32px); letter-spacing: -0.03em; line-height: 1.12; }
.watch h1 span { color: var(--cobalt); }
.vstep { margin-top: clamp(14px, 3vw, 32px); }
.vstep h2 { font-size: clamp(18px, 2.6vw, 28px); margin-bottom: clamp(8px, 1.4vw, 14px); letter-spacing: -0.02em; }
.vstep h2 span { color: var(--cobalt); }
.vstep > p { color: var(--ink-2); }
.vstep .checks { margin-top: 14px; }
.vstep.in-video { margin-top: clamp(28px, 5vw, 48px); }
.watch .video-shell { margin-top: 0; }
/* On short laptop screens, cap the video so Step 2 stays in view under it. */
@media (min-width: 700px) { .watch { max-width: max(480px, min(760px, calc((100vh - 450px) * 16 / 9))); } }
.apply-state { display: grid; gap: 8px; text-align: center; }
.apply-state .btn { width: 100%; font-size: 19px; padding: 18px 24px; border: 0; font-family: inherit; }
.btn-wait, .btn-wait:hover { background: var(--line); color: var(--ink-3); cursor: not-allowed; }
.btn-go { background: var(--cobalt); color: #fff; animation: ready .5s ease-out; }
.btn-go:hover { background: var(--cobalt-d); }
@keyframes ready { from { transform: scale(.97); background: var(--mark); } }
.apply-state p { font-size: 14px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .btn-go { animation: none; } }
.video-shell { margin-top: clamp(20px, 3vw, 32px); background: var(--ink); border-radius: var(--r-lg); overflow: hidden; }
.video-shell > div { min-height: 200px; }
.gate { margin-top: 14px; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: grid; gap: 12px; }
.gate.locked { background: var(--card); border: 1.5px dashed var(--line); color: var(--ink-2); }
.gate.open { background: var(--mark); justify-items: start; }
.gate h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); }
.gate .btn { margin-top: 6px; }
.mini-fw { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: mf; }
.mini-fw li { counter-increment: mf; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.mini-fw li::before { content: "Stage " counter(mf); display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; letter-spacing: 0; }
.mini-fw li:nth-child(2) { background: var(--mark); border-color: var(--mark); }
.mini-fw li:nth-child(4) { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.mini-fw li:nth-child(4)::before { color: rgba(255, 255, 255, .8); }
.f-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* apply */
.apply-card { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 18px; justify-items: start; text-align: left; }
.apply-card .btn { border: 0; cursor: pointer; font-family: inherit; }
.apply-card .btn:disabled { background: var(--line); color: var(--ink-3); cursor: not-allowed; }
.apply-embed { position: fixed; inset: 0; z-index: 100; background: var(--paper); }
.apply-embed iframe { width: 100%; height: 100%; border: 0; }
.apply-embed button { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.review { display: grid; justify-items: center; gap: 18px; padding-block: clamp(40px, 10vw, 120px); text-align: center; }
.spinner { width: 52px; height: 52px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--cobalt); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* book */
.cal { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cal iframe { display: block; width: 100%; height: 980px; border: 0; }
.cal p { padding: 28px; color: var(--ink-2); }

/* confirmed */
.booking { margin: 28px auto 0; max-width: 520px; background: var(--cobalt); color: #fff; border-radius: var(--r-lg); padding: 8px 28px; text-align: left; }
.booking > div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; }
.booking > div + div { border-top: 1px solid rgba(255, 255, 255, .25); }
.booking dt { opacity: .8; }
.booking dd { font-weight: 800; text-align: right; }
.next { margin-top: clamp(36px, 6vw, 64px); }
.next h2, .f-faq h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 20px; }
.next ol { counter-reset: nx; display: grid; gap: 10px; }
.next li { counter-increment: nx; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.next li::before { content: counter(nx); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--mark); font-weight: 800; }
.next h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.25; }
.next p { color: var(--ink-2); margin-top: 4px; font-size: 16px; }
.next a, .f-faq a { color: var(--cobalt); }
.f-faq { margin-top: clamp(36px, 6vw, 64px); }

.f-foot { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 12px; line-height: 1.65; color: var(--ink-3); }
.f-foot p + p { margin-top: 8px; }
.f-foot a { text-underline-offset: 3px; }

@media (max-width: 860px) {
  .optin { grid-template-columns: minmax(0, 1fr); }
  .mini-fw { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .f-steps li { font-size: 13px; padding-right: 11px; }
  .gate .btn, .apply-card .btn { width: 100%; }
  .cal iframe { height: 1100px; }
  .booking > div { flex-direction: column; gap: 2px; }
  .booking dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
