/* ============================================================
   FUNNEL — landing page for VSL → qualifier → book/playbook flow
   Reuses tokens from styles.css and qualifier form from contact.css.
   ============================================================ */

/* --- Stripped nav (focused mode) --- */
.fnl-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.fnl-nav__inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fnl-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.fnl-nav__logo .logo-mark {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fnl-nav__logo .logo-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: var(--logo-blend);
}

.fnl-nav__brand {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.fnl-nav__mode {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.fnl-nav__close {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s, color 0.2s, transform 0.25s;
}

.fnl-nav__close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

/* --- Shared section rhythm --- */
.fnl-hero,
.fnl-stats,
.fnl-testimonials,
.fnl-case,
.fnl-logos,
.fnl-qualifier,
.fnl-faq,
.fnl-final {
  padding: 96px 0;
}

.fnl-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 64px;
}

/* --- Hero --- */
.fnl-hero__head {
  max-width: 980px;
  margin-bottom: 56px;
}

.fnl-hero__title {
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--text);
  max-width: 980px;
}

.fnl-hero__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
}

/* VSL player styles now live in vsl-player.css */

.fnl-hero .vsl { margin-bottom: 40px; }

.fnl-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --- Stats --- */
.fnl-stats {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-dim);
  padding: 64px 0;
}

.fnl-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.fnl-stat__num {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.fnl-stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Testimonial marquee --- */
.fnl-testimonials__head {
  max-width: 820px;
  margin-bottom: 48px;
}

.fnl-testimonials__head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.fnl-marquee {
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent);
}

.fnl-marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: fnl-marquee-scroll 60s linear infinite;
}

.fnl-marquee:hover .fnl-marquee__track,
.fnl-marquee:focus-within .fnl-marquee__track {
  animation-play-state: paused;
}

@keyframes fnl-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.fnl-tmnl {
  flex: 0 0 320px;
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
}

.fnl-tmnl__quote {
  font-family: var(--sans);
  font-size: 48px;
  font-weight: 600;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: -8px;
}

.fnl-tmnl__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.fnl-tmnl__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  border: none;
}

.fnl-tmnl__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: hsl(var(--seed, 0), 22%, 22%);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

[data-theme="light"] .fnl-tmnl__avatar {
  background: hsl(var(--seed, 0), 22%, 84%);
}

.fnl-tmnl__name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.fnl-tmnl__role {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Before / After case study --- */
.fnl-case {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-dim);
}

.fnl-case__head {
  max-width: 820px;
  margin-bottom: 48px;
}

.fnl-case__head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.fnl-case__sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
}

.fnl-ba {
  position: relative;
  width: 100%;
  aspect-ratio: 29 / 6;
  min-height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  user-select: none;
  cursor: ew-resize;
  touch-action: none;
}

.fnl-ba__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.fnl-ba__panel--before {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

[data-theme="light"] .fnl-ba__panel--before {
  background: linear-gradient(135deg, #e8e4dc 0%, #d6d0c3 100%);
}

.fnl-ba__panel--after {
  background: linear-gradient(135deg, rgba(255, 46, 0, 0.18), #0b0b0b 70%);
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}

[data-theme="light"] .fnl-ba__panel--after {
  background: linear-gradient(135deg, rgba(255, 46, 0, 0.22), #f8f6f2 70%);
}

.fnl-ba__label {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}

.fnl-ba__label--after {
  left: auto;
  right: 16px;
  color: var(--accent);
  border-color: var(--accent);
}

.fnl-ba__mock {
  width: min(70%, 560px);
  height: 80%;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.fnl-ba__mock-bar {
  height: 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.fnl-ba__mock-bar--after {
  background: var(--bg-surface);
}

.fnl-ba__mock-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fnl-ba__mock-h {
  height: 14px;
  width: 60%;
  border-radius: 3px;
  background: var(--border);
}

.fnl-ba__mock-h--short {
  width: 35%;
  height: 8px;
}

.fnl-ba__mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.fnl-ba__mock-grid span {
  aspect-ratio: 1;
  background: var(--border-dim);
  border-radius: 3px;
}

.fnl-ba__mock-body--after {
  padding: 0;
  gap: 0;
}

.fnl-ba__mock-hero {
  flex: 1;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(255, 46, 0, 0.3) 100%);
  position: relative;
}

.fnl-ba__mock-hero::after {
  content: "";
  position: absolute;
  inset: auto 20% 20% 8%;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.fnl-ba__mock-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.fnl-ba__mock-row span {
  height: 20px;
  border-radius: 3px;
  background: var(--bg-card);
}

.fnl-ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 4;
}

.fnl-ba__line {
  display: none; /* reserved for future tick marks */
}

.fnl-ba__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.fnl-case__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.fnl-pill {
  display: inline-flex;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

/* --- Logo bar --- */
.fnl-logos {
  padding: 64px 0;
}

.fnl-logos__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.fnl-logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.fnl-logos__row span {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.75;
}

/* --- Qualifier section --- */
.fnl-qualifier {
  scroll-margin-top: calc(var(--nav-h) + 24px);
  background: var(--bg-surface);
  border-block: 1px solid var(--border-dim);
}

.fnl-qualifier__head {
  max-width: 820px;
  margin-bottom: 48px;
}

.fnl-qualifier__head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.fnl-qualifier__form {
  max-width: 760px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.fnl-qualifier__form .form-step__question {
  font-size: 22px;
}

/* --- FAQ --- */
.fnl-faq__head {
  max-width: 820px;
  margin-bottom: 48px;
}

.fnl-faq__head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.fnl-faq__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fnl-faq__card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.fnl-faq__card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--text);
}

.fnl-faq__card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* --- Final CTA --- */
.fnl-final {
  background: var(--bg);
  text-align: left;
}

.fnl-final__title {
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 820px;
}

.fnl-final__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 32px;
}

.fnl-final__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Minimal footer --- */
.fnl-footer {
  padding: 28px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dim);
}

.fnl-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fnl-footer__legal {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.fnl-footer__legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.fnl-footer__legal a:hover { color: var(--accent); }

.fnl-footer__mail {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
}

.fnl-footer__mail:hover { color: var(--accent); }

/* ============================================================
   Thank-you page (funnel-thank-you.html)
   ============================================================ */
.fnl-ty-hero {
  padding-bottom: 48px;
}

.fnl-ty-booking {
  padding: 24px 0 96px;
}

.fnl-ty-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.fnl-ty-cal {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  overflow: hidden;
  min-height: 640px;
}

.fnl-ty-cal iframe {
  display: block;
  width: 100%;
  min-height: 640px;
}

.fnl-ty-next__title {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 28px;
  color: var(--text);
}

.fnl-ty-steps {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fnl-ty-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}

.fnl-ty-step__num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
}

.fnl-ty-step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.fnl-ty-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.fnl-ty-playbook {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.fnl-ty-playbook:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.fnl-ty-playbook__eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.fnl-ty-playbook__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.fnl-ty-playbook__body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.fnl-ty-playbook__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

/* While-you-wait */
.fnl-ty-wait {
  padding: 96px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dim);
}

.fnl-ty-wait__head {
  max-width: 820px;
  margin-bottom: 40px;
}

.fnl-ty-wait__head h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.fnl-ty-wait__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fnl-ty-wait__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 160px;
  transition: border-color 0.2s, transform 0.2s;
}

.fnl-ty-wait__card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.fnl-ty-wait__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.fnl-ty-wait__card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.fnl-ty-wait__meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .fnl-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .fnl-faq__grid {
    grid-template-columns: 1fr;
  }

  .fnl-ty-grid {
    grid-template-columns: 1fr;
  }

  .fnl-ty-wait__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fnl-hero,
  .fnl-stats,
  .fnl-testimonials,
  .fnl-case,
  .fnl-logos,
  .fnl-qualifier,
  .fnl-faq,
  .fnl-final {
    padding: 64px 0;
  }

  .fnl-hero {
    padding-top: calc(var(--nav-h) + 36px);
  }

  .fnl-hero__head,
  .fnl-testimonials__head,
  .fnl-case__head,
  .fnl-qualifier__head,
  .fnl-faq__head {
    margin-bottom: 32px;
  }

  .fnl-hero__ctas .btn,
  .fnl-final__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .fnl-qualifier__form {
    padding: 20px;
  }

  .fnl-ba {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .fnl-logos__row {
    gap: 24px 32px;
  }

  .fnl-nav__mode { display: none; }
}
