/* ═══════════════════════════════════════════════════════════════
   GLENDER · /start — paid-campaign lead funnel
   Mobile-first. Distraction-free. No nav, no footer links.

   SELF-CONTAINED ON PURPOSE. global.css @imports Google Fonts,
   which is a render-blocking CHAINED request — on cold paid traffic
   nothing is cached and every 100ms shows up in cost-per-lead. The
   pages preconnect + <link> the fonts directly instead.

   Token VALUES are copied from assets/css/global.css and must stay
   identical to it. Visual language is lifted from get-started.html
   (shell, tap-cards) and lender-register.html (dark form controls).
   Known trap kept: --blue is MAGENTA #c725eb, while --blue-light is
   an actual blue — so the hover is hardcoded #d54ff0, as the other
   dark pages already do.
═══════════════════════════════════════════════════════════════ */

:root {
  --blue:       #c725eb;
  --blue-hi:    #d54ff0;
  --amber:      #fbbf24;
  --ok:         #10b981;
  --fail:       #f87171;

  --font-d: 'Fraunces', Georgia, serif;
  --font-b: 'Manrope', system-ui, -apple-system, sans-serif;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 22px; --r-pill: 9999px;
  --ease: cubic-bezier(.16,1,.3,1);

  /* Surfaces on the dark ground */
  --s-1: rgba(255,255,255,.035);
  --s-2: rgba(255,255,255,.055);
  --b-1: rgba(255,255,255,.10);
  --b-2: rgba(255,255,255,.16);

  --ink:    #fff;
  --ink-2:  rgba(255,255,255,.70);
  --ink-3:  rgba(255,255,255,.50);
  --ink-4:  rgba(255,255,255,.34);

  --vh: 1vh;
  --bar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Mobile scrolls the DOCUMENT. A locked body keeps the browser
   toolbars pinned open and a 100vh shell then hides its own bottom.
   See reference_mobile_vertical_scroll_lock. */
html, body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: visible; }

body {
  min-height: 100dvh;
  background: linear-gradient(175deg, #030914 0%, #071428 40%, #040B1E 75%, #060D22 100%);
  background-attachment: fixed;
  font-family: var(--font-b);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Fine grid overlay — get-started.html:33 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Ambient glows — get-started.html:46 */
.fn-glow-a, .fn-glow-b { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; }
.fn-glow-a {
  top: -140px; right: -140px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(199,37,235,.14) 0%, transparent 65%);
}
.fn-glow-b {
  bottom: -120px; left: -140px; width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(37,99,235,.11) 0%, transparent 65%);
}

/* ── Header: brand + progress. Nothing clickable that leaves. ── */
.fn-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(3,9,20,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.fn-top__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 5vw, 32px);
  max-width: 760px; margin: 0 auto; width: 100%;
}
.fn-brand { display: flex; align-items: center; gap: 9px; }
.fn-brand__mark {
  width: 30px; height: 30px; background: var(--blue); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #fff;
  box-shadow: 0 4px 18px rgba(199,37,235,.5); flex-shrink: 0;
}
.fn-brand__name { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.fn-brand__name em { font-style: normal; color: var(--blue); }

.fn-secure {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  letter-spacing: .02em; white-space: nowrap;
}
.fn-secure svg { width: 13px; height: 13px; flex: none; }

.fn-progress { height: 3px; background: rgba(255,255,255,.09); position: relative; }
.fn-progress__fill {
  /* a <span> is inline by default, so width/height silently do nothing */
  display: block;
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), #7c3aed);
  transition: width .5s var(--ease);
  box-shadow: 0 0 10px rgba(199,37,235,.6);
}

/* ── Main ── */
.fn-main {
  position: relative; z-index: 2; flex: 1;
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 22px clamp(16px, 5vw, 32px) calc(var(--bar-h) + 28px);
}

.fn-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.fn-stepno {
  font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue);
}
.fn-dots { display: flex; align-items: center; gap: 5px; }
.fn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.16); transition: all .3s var(--ease);
}
.fn-dot.done   { background: var(--ok);   width: 16px; border-radius: 4px; }
.fn-dot.active { background: var(--blue); width: 22px; border-radius: 4px; }

/* ── Steps ── */
.fn-step { display: none; }
.fn-step.active { display: block; animation: fnIn .38s var(--ease) both; }
@keyframes fnIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.fn-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.22);
  border-radius: var(--r-pill); padding: 5px 13px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
.fn-eyebrow__dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--amber);
  animation: fnBlink 2.2s infinite;
}
@keyframes fnBlink { 0%,100%{opacity:1} 50%{opacity:.25} }

.fn-h1 {
  font-family: var(--font-d);
  font-size: clamp(1.6rem, 6.4vw, 2.5rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.028em;
  margin-bottom: 10px;
}
.fn-h1 em { font-style: italic; color: var(--amber); }
.fn-sub {
  font-size: clamp(13.5px, 3.6vw, 15px); color: var(--ink-3);
  line-height: 1.65; margin-bottom: 24px; max-width: 52ch;
}
.fn-q {
  font-family: var(--font-d);
  font-size: clamp(1.3rem, 5.4vw, 1.8rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
  margin-bottom: 6px;
}
.fn-hint { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; line-height: 1.6; }

/* ── Tap cards (get-started.html .gs-card, adapted to select) ── */
/* NOTE: every <span> that needs its own line carries display:block.
   Spans are inline by default, so width/height are ignored and text
   runs together — this bit us on the progress fill, the LTV fill and
   the what-happens-next rows. */
.fn-opts { display: grid; gap: 10px; margin-bottom: 6px; }
.fn-opts--2 { grid-template-columns: repeat(2, 1fr); }

.fn-opt {
  position: relative; display: flex; align-items: center; gap: 13px;
  width: 100%; text-align: left;
  padding: 15px 46px 15px 16px;
  background: var(--s-1);
  border: 1.5px solid var(--b-1);
  border-radius: var(--r-lg);
  color: var(--ink);
  font-family: var(--font-b);
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s, background .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.fn-opt:hover, .fn-opt:focus-visible {
  border-color: rgba(199,37,235,.55); background: var(--s-2);
  box-shadow: 0 12px 34px rgba(0,0,0,.32); outline: none;
}
.fn-opt.selected {
  border-color: var(--blue); background: rgba(199,37,235,.13);
  box-shadow: 0 0 0 4px rgba(199,37,235,.12);
}
.fn-opt__icon {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); color: var(--blue);
  transition: background .18s, transform .18s;
}
.fn-opt.selected .fn-opt__icon { background: rgba(199,37,235,.22); transform: scale(1.05); }
.fn-opt__icon svg { width: 19px; height: 19px; display: block; }
.fn-opt__body { min-width: 0; }
.fn-opt__t { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.fn-opt__d { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 2px; }
.fn-opt__check {
  position: absolute; top: 50%; right: 15px; transform: translateY(-50%);
  width: 21px; height: 21px; border-radius: 50%;
  border: 1.5px solid var(--b-2);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s var(--ease);
}
.fn-opt__check svg { width: 11px; height: 11px; opacity: 0; transition: opacity .16s; }
.fn-opt.selected .fn-opt__check { background: var(--blue); border-color: var(--blue); }
.fn-opt.selected .fn-opt__check svg { opacity: 1; }

/* Compact chip variant — amount bands, timeframes */
.fn-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.fn-chip {
  position: relative;
  padding: 14px 12px; text-align: center;
  background: var(--s-1); border: 1.5px solid var(--b-1);
  border-radius: var(--r-md); color: var(--ink);
  font-family: var(--font-b); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.fn-chip:hover, .fn-chip:focus-visible {
  border-color: rgba(199,37,235,.55); background: var(--s-2); outline: none;
}
.fn-chip.selected {
  border-color: var(--blue); background: rgba(199,37,235,.16);
  box-shadow: 0 0 0 3px rgba(199,37,235,.12);
}
.fn-chip__d { display: block; font-size: 11px; font-weight: 600; color: var(--ink-4); margin-top: 2px; }

/* ── Form controls (lender-register.html .lr-input) ── */
.fn-field { margin-bottom: 15px; }
.fn-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--ink-2); margin-bottom: 7px;
}
.fn-label span { color: var(--amber); margin-left: 2px; }
.fn-input, .fn-select {
  width: 100%; height: 52px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: 0 14px;
  font-family: var(--font-b);
  /* 16px is NOT cosmetic. These standalone pages don't load mobile.css,
     so its input{font-size:16px!important} safety net doesn't apply and
     iOS zooms the whole page on focus. Do not lower this. */
  font-size: 16px;
  color: #fff; outline: none; appearance: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.fn-input::placeholder { color: rgba(255,255,255,.3); }
.fn-input:focus, .fn-select:focus {
  border-color: var(--blue); background: rgba(255,255,255,.07);
  box-shadow: 0 0 0 3px rgba(199,37,235,.16);
}
.fn-input.err, .fn-select.err { border-color: var(--fail); }
.fn-select { cursor: pointer; }
.fn-select option { background: #0b1424; color: #fff; }
.fn-input--money { font-size: 20px; font-weight: 700; letter-spacing: -.01em; height: 60px; }
.fn-err { font-size: 12px; color: var(--fail); margin-top: 6px; display: none; }
.fn-field.invalid .fn-err { display: block; }

/* Honeypot — must never be perceivable, but must stay focusable-free */
.fn-hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

/* ── Live leverage meter ── */
.fn-ltv {
  margin-top: 4px; padding: 14px 16px;
  background: var(--s-1); border: 1px solid var(--b-1); border-radius: var(--r-md);
  display: none;
}
.fn-ltv.show { display: block; animation: fnIn .3s var(--ease) both; }
.fn-ltv__top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.fn-ltv__lab { font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.fn-ltv__val { font-family: var(--font-d); font-size: 22px; font-weight: 700; color: var(--ok); }
.fn-ltv__bar { height: 6px; background: rgba(255,255,255,.09); border-radius: var(--r-pill); overflow: hidden; }
.fn-ltv__fill { display: block; height: 100%; width: 0; background: var(--ok); border-radius: var(--r-pill); transition: width .45s var(--ease), background .3s; }
.fn-ltv__note { font-size: 11.5px; color: var(--ink-4); margin-top: 8px; line-height: 1.5; }
.fn-ltv.warn .fn-ltv__val, .fn-ltv.warn .fn-ltv__fill { color: var(--amber); background-color: var(--amber); }
.fn-ltv.warn .fn-ltv__val { background: none; color: var(--amber); }
.fn-ltv.high .fn-ltv__val { color: var(--fail); }
.fn-ltv.high .fn-ltv__fill { background: var(--fail); }

/* ── Consent / small print ── */
.fn-consent {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 14px; margin-top: 4px;
  background: var(--s-1); border: 1.5px solid var(--b-1); border-radius: var(--r-md);
  cursor: pointer; transition: border-color .18s, background .18s;
  -webkit-tap-highlight-color: transparent;
}
.fn-consent:hover { border-color: rgba(199,37,235,.4); }
.fn-consent.on { border-color: var(--blue); background: rgba(199,37,235,.10); }
.fn-consent__box {
  width: 20px; height: 20px; flex: none; margin-top: 1px;
  border: 1.5px solid var(--b-2); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s var(--ease);
}
.fn-consent__box svg { width: 11px; height: 11px; opacity: 0; transition: opacity .16s; }
.fn-consent.on .fn-consent__box { background: var(--blue); border-color: var(--blue); }
.fn-consent.on .fn-consent__box svg { opacity: 1; }
.fn-consent__t { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }

.fn-fine {
  font-size: 11px; color: var(--ink-4); line-height: 1.6;
  margin-top: 18px; text-align: center;
}
.fn-fine a { color: rgba(233,166,255,.8); text-decoration: underline; }

/* ── Trust strip ── */
.fn-trust {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 22px;
}
.fn-trust__i {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  font-size: 11.5px; font-weight: 600; color: var(--ink-3);
}
.fn-trust__i svg { width: 13px; height: 13px; color: var(--blue); flex: none; }

/* ── Sticky action bar ── */
.fn-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(3,9,20,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px clamp(16px, 5vw, 32px);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.fn-bar__inner {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
}
.fn-back {
  flex: none; width: 48px; height: 50px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s, color .18s;
}
.fn-back:hover { background: rgba(255,255,255,.11); color: #fff; }
.fn-back[hidden] { display: none; }
.fn-next {
  flex: 1; height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-b); font-size: 15px; font-weight: 700; color: #fff;
  background: var(--blue); border: none; border-radius: var(--r-md);
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .2s, opacity .2s;
}
.fn-next:hover:not(:disabled) {
  background: var(--blue-hi); box-shadow: 0 8px 26px rgba(199,37,235,.34); transform: translateY(-1px);
}
.fn-next:disabled { opacity: .4; cursor: not-allowed; }
.fn-next svg { width: 16px; height: 16px; }
.fn-barhint {
  text-align: center; font-size: 11px; color: var(--ink-4);
  margin-top: 8px; max-width: 760px; margin-left: auto; margin-right: auto;
}

/* ── Spinner ── */
.fn-spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: fnSpin .7s linear infinite;
}
@keyframes fnSpin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.fn-toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 16px);
  transform: translateX(-50%) translateY(12px);
  z-index: 60; max-width: calc(100vw - 32px);
  background: rgba(20,8,26,.96); border: 1px solid rgba(199,37,235,.4);
  border-radius: var(--r-md); padding: 11px 16px;
  font-size: 13px; font-weight: 600; color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s var(--ease);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.fn-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.fn-toast--err { border-color: rgba(248,113,113,.5); }

/* ── Consent bar (UK PECR — pixels stay off until this is answered) ── */
.fn-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(4,10,22,.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 13px clamp(16px, 5vw, 32px);
  padding-bottom: calc(13px + env(safe-area-inset-bottom, 0px));
  display: none;
}
.fn-cookie.show { display: block; animation: fnIn .3s var(--ease) both; }
.fn-cookie__inner {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.fn-cookie__t { flex: 1 1 240px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.fn-cookie__t a { color: rgba(233,166,255,.85); text-decoration: underline; }
.fn-cookie__btns { display: flex; gap: 8px; flex: none; }
.fn-cookie__b {
  font-family: var(--font-b); font-size: 12.5px; font-weight: 700;
  border-radius: var(--r-sm); padding: 9px 15px; cursor: pointer; border: 1px solid transparent;
  transition: background .18s, border-color .18s;
}
.fn-cookie__b--no { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--ink-2); }
.fn-cookie__b--no:hover { background: rgba(255,255,255,.12); }
.fn-cookie__b--yes { background: var(--blue); color: #fff; }
.fn-cookie__b--yes:hover { background: var(--blue-hi); }

/* ── Thank-you page ── */
.fn-done { text-align: center; padding: 8px 0 0; }
.fn-done__icon {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  background: rgba(16,185,129,.14);
  display: flex; align-items: center; justify-content: center;
}
.fn-done__icon svg { width: 34px; height: 34px; color: var(--ok); }
.fn-ref {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(199,37,235,.13); border: 1px solid rgba(199,37,235,.32);
  border-radius: var(--r-pill); padding: 7px 16px;
  font-size: 13px; font-weight: 800; letter-spacing: .06em; color: #fff;
  margin-bottom: 20px;
}
.fn-panel {
  background: var(--s-1); border: 1.5px solid var(--b-1);
  border-radius: var(--r-xl); padding: 22px 20px;
  text-align: left; margin-top: 20px;
}
.fn-panel__t {
  font-family: var(--font-d); font-size: 1.15rem; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 5px;
}
.fn-panel__s { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin-bottom: 18px; }
.fn-nextsteps { display: grid; gap: 14px; margin-top: 6px; text-align: left; }
.fn-ns { display: flex; gap: 13px; align-items: flex-start; }
.fn-ns__n {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: rgba(199,37,235,.16); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.fn-ns__t { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.fn-ns__d { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }

.fn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px;
  font-size: 14px; font-weight: 700; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md); cursor: pointer; font-family: var(--font-b);
  transition: background .18s;
}
.fn-ghost:hover { background: rgba(255,255,255,.11); }

/* ── Larger screens: the funnel stays a single centred column ── */
@media (min-width: 640px) {
  :root { --bar-h: 82px; }
  .fn-chips { grid-template-columns: repeat(3, 1fr); }
  .fn-main { padding-top: 32px; }
}
@media (max-width: 380px) {
  .fn-opt { padding: 13px 42px 13px 13px; gap: 11px; }
  .fn-opt__icon { width: 34px; height: 34px; }
  .fn-opt__t { font-size: 13.5px; }
  .fn-chip { font-size: 13px; padding: 12px 8px; }
  .fn-trust__i { font-size: 11px; padding: 6px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
