/* Funnel pages (content/funnel-pages.mjs): one visitor, one action. Light
   and dark like every other page, phone first, Inter from the site's own font files. Buttons are the
   app's teal; the founder note and guarantees carry the proof. */
@font-face{font-family:Inter;src:url('/assets/fonts/Inter_400Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('/assets/fonts/Inter_600SemiBold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:Inter;src:url('/assets/fonts/Inter_700Bold.woff2') format('woff2');font-weight:700 800;font-display:swap}
body.funnel-page {
  --f-ink: #10203f; --f-muted: #4f5d76; --f-line: #dfe5ee; --f-bg: #ffffff; --f-soft: #f3f6fa;
  --f-teal: #00788f; --f-teal-dark: #006f88; --f-teal-soft: #e3f3f7; --f-navy: #0f1a33; --f-good: #1f8a4c;
  --f-surface: #ffffff; --f-on-teal: #ffffff; --f-good-soft: #e5f4eb;
  margin: 0; color: var(--f-ink); background: var(--f-bg); color-scheme: light;
  font: 400 17px/1.6 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased;
}
body.dark-mode.funnel-page {
  --f-ink: #edf2ff; --f-muted: #b3bfd5; --f-line: #34425c; --f-bg: #0e1728; --f-soft: #17233a;
  --f-teal: #5CC8DF; --f-teal-dark: #8AD9EA; --f-teal-soft: #10343F; --f-navy: #070d1a; --f-good: #9bd5b1;
  --f-surface: #17233a; --f-on-teal: #0b1a24; --f-good-soft: #193326; color-scheme: dark;
}
.funnel-page *, .funnel-page *::before, .funnel-page *::after { box-sizing: border-box; }
:where(.funnel-page) :where(h1, h2, h3) { margin: 0; color: var(--f-ink); text-wrap: balance; }
:where(.funnel-page) p { margin: 0; }
.funnel-page a { color: inherit; }
.funnel-page .skip-link { position: absolute; left: -999px; top: 8px; }
.funnel-page .skip-link:focus { left: 16px; z-index: 50; padding: 8px 12px; background: var(--f-surface); border-radius: 8px; }
.funnel-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.funnel-narrow { max-width: 780px; }

.funnel-top { border-bottom: 1px solid var(--f-line); background: var(--f-surface); }
.funnel-top .funnel-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.funnel-signin { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--f-muted); }
.funnel-signin:hover { color: var(--f-ink); }
.funnel-partner { margin: 0; padding: 10px 18px; text-align: center; color: var(--f-ink); background: var(--f-teal-soft); font-size: 15px; font-weight: 600; }

.funnel-hero { padding-block: 40px 56px; background: linear-gradient(180deg, var(--f-soft), var(--f-bg) 80%); }
.funnel-hero-grid { display: grid; gap: 32px; align-items: center; }
.funnel-kicker { color: var(--f-teal-dark); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.funnel-hero h1 { margin-top: 12px; font-size: clamp(34px, 8.6vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.funnel-lede { margin-top: 18px; max-width: 58ch; color: var(--f-muted); font-size: 18px; line-height: 1.6; }
.funnel-byline { margin-top: 14px; color: var(--f-muted); font-size: 15px; }
.funnel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.funnel-actions span { color: var(--f-muted); font-size: 15px; }
.funnel-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 28px; border-radius: 14px; color: var(--f-on-teal); background: var(--f-teal); font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 14px 28px -16px #00788f; transition: background .15s, transform .15s; }
.funnel-page a.funnel-button { color: var(--f-on-teal); }
.funnel-button:hover { background: var(--f-teal-dark); transform: translateY(-1px); }
.funnel-button:focus-visible, .funnel-copy:focus-visible, .funnel-questions summary:focus-visible { outline: 3px solid #7fc8d8; outline-offset: 3px; }
.funnel-page a.funnel-button-light { color: var(--f-navy); background: #fff; box-shadow: none; }
.funnel-button-light:hover { background: var(--f-teal-soft); }

.funnel-example { margin: 0; padding: 22px; border: 1px solid var(--f-line); border-radius: 20px; background: var(--f-surface); box-shadow: 0 30px 60px -40px #10203f66; }
.funnel-example figcaption { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-bottom: 16px; border-bottom: 1px solid var(--f-line); }
.funnel-example-label { grid-column: 1 / -1; color: var(--f-teal-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.funnel-example strong { font-size: 19px; }
.funnel-example small { grid-column: 1; color: var(--f-muted); font-size: 14px; }
.funnel-example b { grid-column: 2; grid-row: 2 / 4; align-self: center; font-size: 19px; font-variant-numeric: tabular-nums; }
.funnel-example ol { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.funnel-example li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; color: var(--f-muted); font-size: 15px; line-height: 1.4; }
.funnel-example li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--f-good); background: var(--f-good-soft); }
.funnel-example li.is-current { color: var(--f-ink); font-weight: 600; }
.funnel-example li.is-current span { color: var(--f-on-teal); background: var(--f-teal); }
.funnel-example li.is-pending { color: #5f6b80; }

.funnel-band { padding-block: 56px; border-top: 1px solid var(--f-line); }
.funnel-band h2, .funnel-close h2 { font-size: clamp(26px, 5.6vw, 38px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.funnel-flow { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: flow; }
.funnel-flow li { position: relative; padding: 22px 22px 22px 70px; border-radius: 16px; background: var(--f-soft); counter-increment: flow; }
.funnel-flow li::before { content: counter(flow); position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--f-navy); font-weight: 700; font-size: 15px; }
.funnel-flow h3, .funnel-who h3 { font-size: 18px; font-weight: 700; }
.funnel-flow p, .funnel-who p { margin-top: 6px; color: var(--f-muted); font-size: 16px; }
.funnel-who { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.funnel-who li { padding: 20px; border: 1px solid var(--f-line); border-radius: 16px; }

.funnel-promise { background: var(--f-soft); }
.funnel-promise-grid { display: grid; gap: 32px; align-items: center; }
.funnel-ticks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.funnel-ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--f-muted); }
.funnel-ticks svg { margin-top: 4px; color: var(--f-good); }
.funnel-ticks strong { color: var(--f-ink); }
.funnel-small { margin-top: 18px; color: var(--f-muted); font-size: 15px; }
.funnel-small a { font-weight: 600; }
.funnel-founder { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 22px; border-radius: 20px; background: var(--f-surface); border: 1px solid var(--f-line); }
.funnel-founder img { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.funnel-founder p { font-size: 17px; line-height: 1.55; }
.funnel-founder span { display: block; margin-top: 8px; color: var(--f-muted); font-size: 14px; font-weight: 600; }

.funnel-questions { margin-top: 22px; border-top: 1px solid var(--f-line); }
.funnel-questions details { border-bottom: 1px solid var(--f-line); }
.funnel-questions summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.funnel-questions summary::-webkit-details-marker { display: none; }
.funnel-questions summary::after { content: "+"; color: var(--f-teal-dark); font-size: 22px; line-height: 1; }
.funnel-questions details[open] summary::after { content: "\2212"; }
.funnel-questions details p { padding: 0 0 18px; color: var(--f-muted); }

.funnel-close { padding-block: 56px 64px; color: #c9d3e6; background: var(--f-navy); }
.funnel-close h2 { color: #fff; }
.funnel-close p { margin-top: 12px; max-width: 58ch; }
.funnel-close .funnel-actions span { color: #c9d3e6; }

.funnel-stages { display: grid; gap: 40px; padding-block: 8px 56px; }
.funnel-stage header { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.funnel-stage-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--f-navy); font-weight: 800; }
.funnel-stage h2 { font-size: clamp(22px, 4.8vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.funnel-stage header p { margin-top: 6px; color: var(--f-muted); }
.funnel-template-pair { display: grid; gap: 12px; margin-top: 18px; }
.funnel-template { margin: 0; border: 1px solid var(--f-line); border-radius: 16px; overflow: hidden; background: var(--f-surface); min-width: 0; }
.funnel-template figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--f-soft); border-bottom: 1px solid var(--f-line); font-size: 14px; font-weight: 700; }
.funnel-copy { min-height: 36px; padding: 6px 14px; border: 1px solid var(--f-teal); border-radius: 10px; color: var(--f-teal-dark); background: var(--f-surface); font: 600 14px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.funnel-copy:hover { background: var(--f-teal-soft); }
.funnel-template pre { margin: 0; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 15px/1.6 Inter, system-ui, sans-serif; color: var(--f-ink); }

.funnel-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--f-bg) 92%, transparent); border-top: 1px solid var(--f-line); backdrop-filter: blur(8px); transform: translateY(110%); transition: transform .2s; }
.funnel-sticky.is-shown { transform: none; }
.funnel-sticky .funnel-button { width: 100%; min-height: 50px; }

@media (min-width: 760px) {
  .funnel-hero { padding-block: 64px 80px; }
  .funnel-flow { grid-template-columns: repeat(2, 1fr); }
  .funnel-who { grid-template-columns: repeat(2, 1fr); }
  .funnel-template-pair { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .funnel-sticky { display: none; }
  
}
@media (min-width: 1000px) {
  .funnel-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .funnel-flow { grid-template-columns: repeat(4, 1fr); }
  .funnel-flow li { padding: 70px 20px 22px; }
  .funnel-promise-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}
@media (prefers-reduced-motion: reduce) { .funnel-button, .funnel-sticky { transition: none; } }
