:root {
  --navy: #0d1b2a;
  --navy-2: #1b2b41;
  --red: #d62828;
  --red-dark: #a61e1e;
  --gold: #f4b400;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --line: #dde3ea;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(13, 27, 42, 0.08);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
/* Anything marked hidden stays hidden, even if a class sets display. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--red); }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* Checkered accent strip */
.checker {
  height: 8px;
  background:
    repeating-conic-gradient(var(--navy) 0 25%, var(--white) 0 50%) 0 0 / 16px 16px;
}

/* Header */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 800; letter-spacing: .5px; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; background: var(--red); display: grid; place-items: center; font-size: 15px; }
.brand small { display: block; font-weight: 500; font-size: 11px; opacity: .75; letter-spacing: 1.5px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: #cfd8e3; text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid #44566c; color: var(--white); border-radius: 6px; padding: 6px 10px; font-size: 18px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; font-size: 15px; transition: .15s;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy); }
.nav .btn { padding: 9px 16px; color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(120deg, rgba(13,27,42,.96), rgba(27,43,65,.88)),
    radial-gradient(circle at 80% 20%, #2c4566, transparent 60%);
  color: var(--white); padding: 90px 0 80px;
}
.hero .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--gold); font-weight: 700; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 12px 0 18px; }
.hero p { font-size: 18px; color: #cfd8e3; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 20px; }
.stat strong { display: block; font-size: 28px; color: var(--white); }
.stat span { font-size: 14px; color: #aab7c6; }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 38px); margin: 8px 0 12px; color: var(--navy); }
.section-head p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-3.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 6px 0 8px; color: var(--navy); }
.card p { color: var(--muted); margin: 0 0 12px; }
.card ul { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14px; }
.card .icon { font-size: 28px; }
.card a.more { font-weight: 700; text-decoration: none; }

.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-weight: 800; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.calc-result { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px; }
.calc-result .big { font-size: 40px; font-weight: 800; color: var(--gold); }
.calc-result dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 18px 0 0; }
.calc-result dt { color: #aab7c6; }
.calc-result dd { margin: 0; font-weight: 700; text-align: right; }
.fineprint { font-size: 12px; color: var(--muted); }
.calc-result .fineprint { color: #8b9bb0; margin-top: 16px; }

/* Forms */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-row.three { grid-template-columns: 2fr 1fr 1fr; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(214,40,40,.25); border-color: var(--red); }
input:user-invalid, select:user-invalid { border-color: var(--red); }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--ink); }
.check input { width: auto; margin-top: 4px; }

/* CTA band */
.cta-band { background: var(--red); color: var(--white); padding: 56px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 28px; justify-content: center; }
.partner { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.partner-logo { display: flex; align-items: center; justify-content: center; height: 140px; margin-bottom: 14px; }
.partner-logo img { max-height: 140px; max-width: 100%; object-fit: contain; }
.partner-logo { text-decoration: none; }
.mayele-lockup { display: inline-flex; align-items: center; gap: 14px; }
.mayele-lockup svg { width: 64px; height: 64px; flex: none; }
.mayele-lockup span { font-size: 30px; font-weight: 800; color: #16324F; letter-spacing: -0.3px; }
.partner h3 { margin: 0 0 6px; color: var(--navy); }
.partner p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.partner-link { font-weight: 700; text-decoration: none; }
.memberships { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.memberships-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.memberships img { display: block; width: 200px; height: auto; }

/* Forms & guidelines */
.doc-group { color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 14px; }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 36px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.doc:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-1px); }
.doc-type { flex: none; width: 46px; height: 54px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--white); position: relative; }
.doc-type::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 12px 12px 0; border-color: transparent var(--bg) rgba(0,0,0,.18) transparent; border-radius: 0 6px 0 0; }
.doc-type.pdf { background: #c62828; }
.doc-type.xlsx { background: #1e7a46; }
.doc-body { flex: 1; min-width: 0; }
.doc-body strong { display: block; color: var(--navy); font-size: 15px; line-height: 1.3; }
.doc-body small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.doc-dl { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--navy); transition: background .15s, color .15s; }
.doc:hover .doc-dl { background: var(--red); color: var(--white); }

/* Placeholder highlight: anything in [brackets] still needs real info */
.ph { background: #fff3bf; color: #7a5b00; border: 1px dashed #e0b400; border-radius: 4px; padding: 0 4px; font-weight: inherit; }
.stats-band .ph { background: rgba(244,180,0,.18); color: var(--gold); border-color: var(--gold); }

/* Track record band */
.stats-band { background: var(--navy-2); color: var(--white); padding: 28px 0; border-bottom: 1px solid #263a54; }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.band-stat strong { display: block; font-size: 28px; font-weight: 800; }
.band-stat > span { font-size: 13px; color: #aab7c6; text-transform: uppercase; letter-spacing: 1px; }

/* Pricing line */
.pricing-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.pricing-line > span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink); }

/* Funded deals */
.deal { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.deal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.deal-tag { background: var(--navy); color: var(--white); border-radius: 4px; padding: 3px 8px; font-weight: 700; }
.deal-loc { color: var(--muted); }
.deal-amt { font-size: 30px; font-weight: 800; color: var(--navy); margin: 14px 0 10px; }
.deal-meta { list-style: none; padding: 0; margin: 0; }
.deal-meta li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
.deal-meta span { color: var(--muted); }

/* Testimonials */
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.quote blockquote { margin: 12px 0 18px; font-size: 16px; line-height: 1.6; flex: 1; }
.quote figcaption strong { display: block; color: var(--navy); }
.quote figcaption span { font-size: 13px; color: var(--muted); }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-a { padding: 0 20px 18px; color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 14px; }

/* Footer */
.site-footer { background: var(--navy); color: #aab7c6; padding: 48px 0 24px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); margin-top: 0; }
.site-footer a { color: #cfd8e3; text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid #263a54; margin-top: 32px; padding-top: 18px; font-size: 12px; }

/* Application wizard */
.apply-wrap { background: var(--bg); padding: 48px 0 80px; min-height: 80vh; }
.apply-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; overflow: hidden; }
.apply-head { padding: 28px 32px 0; }
.apply-head h1 { margin: 0 0 4px; color: var(--navy); font-size: 28px; }
.progress { display: flex; gap: 6px; margin: 22px 0 0; }
.progress span { flex: 1; height: 6px; border-radius: 4px; background: var(--line); }
.progress span.done { background: var(--red); }
/* One label per bar: same equal columns and gap as .progress, each label centered under its bar */
.step-labels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 6px; text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.step-labels span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-labels .active { color: var(--red); font-weight: 700; }
.apply-body { padding: 28px 32px; }
.step { display: none; }
.step.active { display: block; }
.step h2 { margin-top: 0; color: var(--navy); font-size: 21px; }
.apply-foot { display: flex; justify-content: space-between; padding: 20px 32px; border-top: 1px solid var(--line); background: #fbfcfd; }
.review { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 18px; }
.review h3 { margin: 0; padding: 10px 14px; background: var(--bg); font-size: 15px; color: var(--navy); display: flex; justify-content: space-between; }
.review h3 button { background: none; border: none; color: var(--red); cursor: pointer; font-weight: 700; }
.review dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 10px 14px; gap: 6px 16px; font-size: 14px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 600; }
.notice { background: #fff8e1; border: 1px solid #f4dc8a; border-radius: 8px; padding: 12px 14px; font-size: 13px; margin-bottom: 18px; }
.success { text-align: center; padding: 20px 0; }
.success .icon { font-size: 54px; }
.export-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.draft-saved { font-size: 12px; color: var(--muted); align-self: center; }

/* ===================== Polish & interactivity ===================== */
.ico { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header { transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(13,27,42,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.nav a:not(.btn) { position: relative; padding: 4px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--white); }
.nav-toggle { width: 42px; height: 38px; padding: 0; display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.brand-mark { background: linear-gradient(135deg, var(--red), #ef4444); box-shadow: 0 4px 14px rgba(214,40,40,.45); }

/* Buttons */
.btn-primary { box-shadow: 0 6px 18px rgba(214,40,40,.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(214,40,40,.35); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 22px; }
.btn:focus-visible, .seg button:focus-visible, .mtile:focus-visible { outline: 3px solid rgba(244,180,0,.7); outline-offset: 2px; }

/* Ticker */
.ticker { display: flex; align-items: stretch; background: #08131f; color: #cfd8e3; font-size: 13px; border-bottom: 1px solid #1d2f45; }
.ticker[hidden] { display: none; }
.ticker-badge { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #0f2236; color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; font-size: 11px; position: relative; z-index: 1; box-shadow: 8px 0 12px #08131f; }
.ticker-viewport { overflow: hidden; flex: 1; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-viewport.dragging { cursor: grabbing; }
.ticker-viewport.dragging .tick { pointer-events: none; }
.ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker-run { display: flex; }
.tick { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 22px; color: inherit; text-decoration: none; border-right: 1px solid #1d2f45; white-space: nowrap; }
.tick:hover { background: #0f2236; }
.tick-label { color: #8b9bb0; }
.tick strong { color: var(--white); font-variant-numeric: tabular-nums; }
.tick-delta { font-size: 12px; color: #aab7c6; font-variant-numeric: tabular-nums; }
.tick-delta.up { color: #7dd3a8; }
.tick-delta.down { color: #fca5a5; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #0a1622 0%, #13263c 55%, #1b2f4a 100%); padding: 100px 0 90px; }
.hero > .container { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(214,40,40,.55), transparent 65%); top: -180px; right: -120px; animation: drift 18s ease-in-out infinite alternate; }
.orb-2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(37,99,235,.45), transparent 65%); bottom: -220px; left: -120px; animation: drift 22s ease-in-out infinite alternate-reverse; }
/* Race City hero: banked track, checkered flag, speed streaks */
.hero-track { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-track .asphalt { fill: rgba(255,255,255,.035); }
.hero-track .rumble-w { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 9; }
.hero-track .rumble-r { fill: none; stroke: var(--red); stroke-width: 9; stroke-dasharray: 26 26; }
.hero-track .lane { fill: none; stroke: rgba(244,180,0,.5); stroke-width: 3; stroke-dasharray: 34 26; animation: laneRun 2.2s linear infinite; }
@keyframes laneRun { to { stroke-dashoffset: -60; } }
.hero-flag { position: absolute; top: 28px; right: -40px; width: 480px; height: 300px; opacity: .16;
  background: repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 44px 44px;
  transform: perspective(900px) rotateY(-30deg) rotate(-8deg); transform-origin: right center;
  -webkit-mask-image: radial-gradient(ellipse at 75% 50%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse at 75% 50%, #000 25%, transparent 72%);
  animation: flagWave 5s ease-in-out infinite alternate; }
@keyframes flagWave { from { transform: perspective(900px) rotateY(-30deg) rotate(-8deg) skewY(0deg); } to { transform: perspective(900px) rotateY(-24deg) rotate(-6deg) skewY(-3deg); } }
.streaks { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 35%, #000 70%); mask-image: linear-gradient(90deg, transparent 0, transparent 35%, #000 70%); }
.streaks i { position: absolute; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55)); animation: streak 3.2s linear infinite; }
.streaks i:nth-child(1) { top: 18%; left: 55%; width: 220px; animation-duration: 3.2s; }
.streaks i:nth-child(2) { top: 30%; left: 72%; width: 140px; animation-duration: 4.1s; animation-delay: -1.2s; background: linear-gradient(90deg, transparent, rgba(214,40,40,.8)); }
.streaks i:nth-child(3) { top: 44%; left: 62%; width: 260px; animation-duration: 2.8s; animation-delay: -.6s; }
.streaks i:nth-child(4) { top: 57%; left: 82%; width: 180px; animation-duration: 3.6s; animation-delay: -2s; background: linear-gradient(90deg, transparent, rgba(244,180,0,.75)); }
.streaks i:nth-child(5) { top: 69%; left: 50%; width: 300px; animation-duration: 3s; animation-delay: -1.6s; }
.streaks i:nth-child(6) { top: 83%; left: 76%; width: 160px; animation-duration: 4.4s; animation-delay: -.3s; background: linear-gradient(90deg, transparent, rgba(214,40,40,.8)); }
.streaks i:nth-child(7) { top: 11%; left: 88%; width: 120px; animation-duration: 3.8s; animation-delay: -2.6s; }
.streaks i:nth-child(8) { top: 63%; left: 92%; width: 200px; animation-duration: 3.4s; animation-delay: -3.1s; }
@keyframes streak { from { transform: translateX(-110vw); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(40vw); opacity: 0; } }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-60px,40px) scale(1.12); } }
.hero h1 .hl { background: linear-gradient(90deg, #fff 0%, #ffd27a 60%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust-row { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #aab7c6; font-size: 14px; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .ico { width: 18px; height: 18px; color: var(--gold); }
.stat { backdrop-filter: blur(6px); transition: transform .25s, border-color .25s, background .25s; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--red), var(--gold)); }
.stat:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.09); }
.stat strong { font-variant-numeric: tabular-nums; }
.stat strong span { font-size: inherit; color: inherit; }

/* Cards */
.card, .deal, .quote, .partner { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover, .deal:hover, .quote:hover, .partner:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(13,27,42,.12); border-color: #c9d3de; }
#calculator .card:hover, .mchart:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }
.icon-chip { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--red); background: linear-gradient(135deg, #fff1f1, #ffe1e1); margin-bottom: 8px; transition: transform .25s, background .25s, color .25s; }
.icon-chip .ico { width: 24px; height: 24px; }
.card:hover .icon-chip { background: linear-gradient(135deg, var(--red), #ef4444); color: var(--white); transform: rotate(-6deg) scale(1.05); }
#programs .card ul { list-style: none; padding: 0; }
#programs .card li { position: relative; padding-left: 22px; margin-bottom: 6px; }
#programs .card li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

/* Process timeline */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 46px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, #c9d3de 0 8px, transparent 8px 14px); z-index: 0; }
.timeline .card { position: relative; z-index: 1; }
.step-num { box-shadow: 0 0 0 6px #fff, 0 6px 16px rgba(214,40,40,.35); }

/* Scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease, border-color .25s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .grid-3 > .reveal:nth-child(3n+2), .js .grid-4 > .reveal:nth-child(4n+2), .js .doc-grid > .reveal:nth-child(3n+2), .js .hero-stats > .reveal:nth-child(2) { transition-delay: .08s; }
.js .grid-3 > .reveal:nth-child(3n), .js .grid-4 > .reveal:nth-child(4n+3), .js .doc-grid > .reveal:nth-child(3n), .js .hero-stats > .reveal:nth-child(3) { transition-delay: .16s; }
.js .grid-4 > .reveal:nth-child(4n), .js .hero-stats > .reveal:nth-child(4) { transition-delay: .24s; }
.js .reveal.in:hover { transition-delay: 0s; transform: translateY(-4px); }
.js .stat.reveal.in:hover { transform: translateY(-3px); }
.js #calculator .reveal.in:hover { transform: none; }

/* Market Pulse */
.market { background: linear-gradient(180deg, var(--white), var(--bg)); }
.market-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; box-shadow: var(--shadow); }
.seg button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.seg button:hover { color: var(--navy); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.seg-sm button { padding: 6px 12px; font-size: 13px; }
.market-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 20px; align-items: start; }
.mtiles { display: grid; gap: 12px; }
.mtile { text-align: left; font: inherit; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; }
.mtile:hover { border-color: #b8c4d2; transform: translateX(3px); }
.mtile[aria-pressed="true"] { border-color: var(--navy); box-shadow: var(--shadow); }
.mtile[aria-pressed="true"]::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.mtile-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.mtile-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 4px; }
.mtile-value { font-size: 22px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.2; }
.mtile-delta, .mc-delta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.spark { width: 120px; height: 34px; flex: none; overflow: visible; }
.spark polyline { stroke: #9fb0c4; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--red); }
.mtile[aria-pressed="true"] .spark polyline { stroke: #1f4e8c; }
.mchart { padding: 22px 22px 16px; }
.mc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mc-title { font-weight: 700; color: var(--navy); }
.mc-value { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mc-delta { font-size: 13px; margin-top: 2px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #15803d; background: #ecfdf3; border: 1px solid #bbf7d0; padding: 4px 10px; border-radius: 999px; flex: none; }
.mc-chart { position: relative; margin-top: 14px; min-height: 220px; }
.mc-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.mc-grid { stroke: #e8edf3; stroke-width: 1; }
.mc-axis { fill: #6b7787; font-size: 11px; font-family: inherit; font-variant-numeric: tabular-nums; }
.mc-line { fill: none; stroke: #1f4e8c; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mc-last { fill: var(--red); stroke: var(--white); stroke-width: 2; }
.mc-cross { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 3 3; }
.mc-dot { fill: #1f4e8c; stroke: var(--white); stroke-width: 2; }
.mc-hit { cursor: crosshair; outline: none; }
.mc-chart:focus-within { outline: 2px solid rgba(31,78,140,.25); outline-offset: 4px; border-radius: 6px; }
.mc-tip { position: absolute; pointer-events: none; background: var(--navy); color: #cfd8e3; padding: 7px 11px; border-radius: 8px; font-size: 12px; white-space: nowrap; box-shadow: 0 8px 20px rgba(13,27,42,.25); display: flex; flex-direction: column; line-height: 1.35; }
.mc-tip[hidden] { display: none; }
.mc-tip strong { color: var(--white); font-size: 15px; font-variant-numeric: tabular-nums; }
.mc-meta { font-size: 12px; color: var(--muted); margin-top: 8px; }
.mc-table { margin-top: 8px; font-size: 13px; }
.mc-table summary { cursor: pointer; color: var(--red); font-weight: 600; }
.mc-table table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.mc-table th, .mc-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mc-table td:last-child, .mc-table th:last-child { text-align: right; }
.market-foot { text-align: center; margin-top: 22px; }
.market-empty { display: none; text-align: center; color: var(--muted); }
.market.no-data .market-controls, .market.no-data .market-grid, .market.no-data .market-foot { display: none; }
.market.no-data .market-empty { display: block; }

/* Calculator */
.slider-field { margin-bottom: 18px; }
.slider-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.slider-top label { margin: 0; }
.num-wrap { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 0 8px; flex: none; }
.num-wrap:focus-within { border-color: var(--red); background: var(--white); }
.num-wrap input { border: 0; background: transparent; width: 104px; padding: 7px 2px; text-align: right; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; outline: none; }
.field-row .num-wrap input { width: 58px; }
.affix { color: var(--muted); font-size: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; accent-color: var(--red); }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid var(--red); box-shadow: 0 2px 6px rgba(13,27,42,.25); transition: transform .15s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(214,40,40,.2); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--red); }
input[type=range]::-moz-range-progress { background: var(--red); height: 6px; border-radius: 999px; }
.calc-result { position: sticky; top: 96px; background: linear-gradient(160deg, #0d1b2a, #16304d); box-shadow: 0 20px 50px rgba(13,27,42,.3); }
.calc-label { color: #aab7c6; font-size: 14px; }
.calc-result .big { font-size: 44px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-result dd { font-variant-numeric: tabular-nums; }
.split { margin-top: 16px; }
.split-bar { display: flex; height: 12px; gap: 2px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.split-bar span { display: block; height: 100%; transition: width .4s ease; }
.split-loan { background: #6ea8ff; border-radius: 999px 0 0 999px; }
.split-cash { background: var(--gold); border-radius: 0 999px 999px 0; }
.split-legend { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: #cfd8e3; }
.split-legend span { display: inline-flex; align-items: center; gap: 6px; }
.split-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.split-legend b { font-weight: 600; }
.k-loan { background: #6ea8ff; } .k-cash { background: var(--gold); }
.ltv { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.ltv-top { display: flex; justify-content: space-between; color: #aab7c6; font-size: 14px; }
.ltv-top b { color: var(--white); }
.meter { height: 8px; border-radius: 999px; background: rgba(110,168,255,.18); margin-top: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; background: #6ea8ff; border-radius: 999px; transition: width .4s ease; }
.ltv-note { font-size: 12px; color: #8b9bb0; margin-top: 6px; }
.profit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.profit > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 12px; }
.profit span { display: block; font-size: 12px; color: #aab7c6; }
.profit b { font-size: 20px; color: var(--white); font-variant-numeric: tabular-nums; }
.profit b.neg { color: #fca5a5; }

/* FAQ */
.faq-item summary::after { transition: transform .25s; }
.faq-item[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq-item[open] .faq-a { animation: faqIn .3s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Contact */
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ico { color: var(--red); margin-top: 2px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--red-dark), var(--red) 60%, #e85d3a); position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { display: flex; align-items: center; gap: 16px; }
@media (min-width: 681px) { .cta-band .container { padding-right: 96px; } }
/* Finish line: a checkered stripe across the band, near the right edge */
.finish-line { position: absolute; top: 0; bottom: 0; right: 32px; width: 48px; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 24px 24px; transform: skewX(-12deg); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.cta-band::before { content: ""; position: absolute; top: 0; bottom: 0; right: 92px; width: 160px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12)); transform: skewX(-12deg); }

/* Checkered flags */
.flag-ico { width: 26px; height: 26px; color: var(--navy); vertical-align: -5px; margin-left: 4px; flex: none; }
.flag-lg { width: 52px; height: 52px; color: var(--white); margin: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); animation: flagFlutter 2.4s ease-in-out infinite alternate; transform-origin: 12% 90%; }
@keyframes flagFlutter { from { transform: rotate(-4deg); } to { transform: rotate(3deg); } }
.finish-card { overflow: hidden; }
.finish-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.finish-card .step-num { background: #111; }
.site-footer { border-top: 0; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(13,27,42,.3); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red); }

/* ===================== Compact layout ===================== */
section { padding: 64px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { margin: 6px 0 8px; }
.section-head p { margin: 0; }
.hero { padding: 80px 0 72px; }
.card { padding: 22px; }
.card .icon-chip { width: 42px; height: 42px; border-radius: 10px; }
.card .icon-chip .ico { width: 22px; height: 22px; }
#programs .card li { margin-bottom: 3px; }
.market { background: var(--bg); }
.anchor { position: relative; top: -90px; display: block; }

/* Calculator: tighter controls */
.slider-field { margin-bottom: 12px; }
.slider-top { margin-bottom: 4px; }
.calc-result { padding: 24px; }
.calc-result dl { gap: 6px 16px; margin-top: 14px; }

/* Process: compact steps */
#process .card h3 { margin: 10px 0 4px; }
#process .card p { margin: 0; font-size: 15px; }

/* Track record */
.track-quotes { margin-top: 22px; }
.quote { padding: 20px; }
.quote blockquote { margin: 8px 0 12px; }
.deal { padding: 18px 20px; }
.deal-amt { font-size: 26px; margin: 10px 0 6px; }

/* Apply + brokers */
#apply-options .card ul { margin-top: 4px; }
.broker-strip { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 20px; align-items: start; margin-top: 22px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.broker-intro strong { display: block; color: var(--navy); }
.broker-intro span, .broker-item span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.broker-item { display: flex; gap: 10px; align-items: flex-start; }
.broker-item .ico { color: var(--red); margin-top: 2px; }
.broker-item b { display: block; color: var(--navy); font-size: 14px; }

/* Partners: three across, shorter logos */
.partners { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.partner { padding: 22px 20px; }
.partner-logo { height: 96px; margin-bottom: 10px; }
.partner-logo img { max-height: 96px; }
.mayele-lockup svg { width: 52px; height: 52px; }
.mayele-lockup span { font-size: 24px; }

/* Forms */
.doc { padding: 12px 16px; }
.doc-type { width: 40px; height: 48px; }
.doc-grid { margin-bottom: 24px; }
.doc-grid:last-of-type { margin-bottom: 0; }

/* FAQ: two columns */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-items: start; }
.faq-item { margin-bottom: 0; }
.faq-item summary { padding: 14px 18px; }

/* Contact */
.cta-band { padding: 40px 0; }
.contact-list li { margin-bottom: 10px; }
.site-footer { padding: 40px 0 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.nav a { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 681px) {
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .brand small { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px; }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav a[href="#apply-options"], .nav a[href="#partners"] { display: inline; }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .nav a[href="#apply-options"], .nav a[href="#partners"] { display: none; }
}
.slider-hint { font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.calc-result .dt-total, .calc-result .dd-total { color: var(--white); font-weight: 700; border-top: 1px solid rgba(255,255,255,.12); padding-top: 6px; }
/* ===================== Full application ===================== */
.full-app { max-width: 920px; }
.full-app h3.sub { font-size: 15px; color: var(--navy); margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.full-app h3.sub .hint { font-weight: 400; }
.full-app .step > h2 + h3.sub, .full-app .step-intro + h3.sub, .full-app .repeat:first-child h3.sub { border-top: 0; padding-top: 0; }
.step-intro { margin: -6px 0 18px; font-size: 14px; }
.field-row.four { grid-template-columns: repeat(4, 1fr); }
.field-row.five { grid-template-columns: repeat(5, 1fr); }
.field-row.addr { grid-template-columns: 3fr 1fr; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.field-row .check { align-self: center; }
.indent { border-left: 3px solid var(--line); padding-left: 16px; margin: 4px 0 16px; }
.metrics { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.metrics:empty { display: none; }
.metrics > div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 13px; }
.metrics span { color: var(--muted); margin-right: 8px; }
.metrics b { color: var(--navy); font-variant-numeric: tabular-nums; }
.metrics .warn { background: #fff8e1; border-color: #f4dc8a; color: #7a5b00; }
#assetTotal { font-weight: 700; color: var(--navy); }
.secure-box { background: #f3f8f4; border: 1px solid #cfe6d6; border-radius: 10px; padding: 14px 16px 2px; margin-bottom: 16px; }
.secure-head { font-size: 13px; font-weight: 600; color: #1a7f37; margin-bottom: 10px; }
.notice.insecure { background: #fdecec; border-color: #f5b5b5; color: #8a1c1c; margin-top: 14px; }
.yn-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.yn-row[hidden] { display: none; }
.yn { display: inline-flex; gap: 6px; flex: none; }
.yn label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--ink); }
.yn input { width: auto; margin: 0; accent-color: var(--red); }
.yn label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: var(--white); }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.demo-grid fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 6px; margin: 0; }
.demo-grid legend { font-weight: 700; color: var(--navy); font-size: 14px; padding: 0 4px; }
.demo-grid .check { margin-bottom: 8px; }
.repeat { margin-bottom: 8px; }
.repeat-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 2px; margin-bottom: 12px; background: #fbfcfd; }
.repeat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.repeat-title { color: var(--navy); font-size: 14px; }
.repeat-remove { background: none; border: 0; color: var(--red); font-weight: 600; cursor: pointer; font-size: 13px; }
.repeat-add { padding: 8px 14px; font-size: 14px; }
.ack { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 6px 0 16px; font-size: 13px; color: var(--ink); }
.ack h3 { margin: 0 0 6px; font-size: 15px; color: var(--navy); }
.ack p { margin: 0; }
.success-flag { color: var(--navy); width: 64px; height: 64px; }
.upper { text-transform: uppercase; }
.nav-simple a { color: #cfd8e3; text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav-simple a:hover { color: var(--white); }
/* ===================== Privacy policy ===================== */
.legal-page { background: var(--bg); padding: 48px 0 72px; }
.legal-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.legal-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.legal-toc strong { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.legal-toc a { color: var(--ink); text-decoration: none; padding: 5px 10px; border-left: 2px solid var(--line); }
.legal-toc a:hover { color: var(--red); border-left-color: var(--red); }
.policy { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); line-height: 1.7; }
.policy h1 { color: var(--navy); margin: 0 0 4px; font-size: clamp(28px, 4vw, 36px); }
.legal-meta { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.legal-draft { margin: 0 0 8px; font-size: 14px; }
.policy section { scroll-margin-top: 90px; border-top: 1px solid var(--line); padding: 22px 0 0; margin-top: 22px; }
.policy h2 { color: var(--navy); font-size: 21px; margin: 0 0 10px; }
.policy h3 { color: var(--navy); font-size: 16px; margin: 18px 0 6px; }
.policy ul { padding-left: 20px; }
.policy li { margin-bottom: 6px; }
.legal-summary { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.legal-summary li { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0; font-size: 14px; }
.policy .table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg); color: var(--navy); }
.legal-table td:first-child { font-weight: 600; color: var(--navy); }
.legal-contact { font-style: normal; }
/* Logo */
.brand { flex: none; }
.brand-logo { display: block; height: 60px; width: auto; }
.brand-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #aab7c6; border-left: 1px solid #44566c; padding-left: 12px; }
.footer-logo { display: block; height: 68px; width: auto; margin: 0 0 14px -6px; }
/* Application preview mode */
.preview-bar { background: #eef4ff; border-color: #bcd0f5; color: #1e3a6b; margin: 14px 0 0; }
.previewing .step-labels span { cursor: pointer; }
.previewing .step-labels span:hover { color: var(--red); text-decoration: underline; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.choice-card { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; cursor: pointer; margin: 0; font-weight: 400; transition: border-color .15s, background .15s; }
.choice-card input { width: auto; margin-top: 4px; accent-color: var(--red); }
.choice-card strong { display: block; color: var(--navy); }
.choice-card small { color: var(--muted); }
.choice-card:has(input:checked) { border-color: var(--navy); background: #f4f7fb; }
/* Address suggestions */
.addr-host { position: relative; }
.addr-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(13,27,42,.18); max-height: 320px; overflow-y: auto; min-width: 280px; }
.addr-opt { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #eef2f6; line-height: 1.35; }
.addr-opt strong { display: block; color: var(--navy); font-size: 14px; }
.addr-opt span { display: block; color: var(--muted); font-size: 12px; }
.addr-opt:hover, .addr-opt[aria-selected="true"] { background: #f2f6fb; }
.addr-opt[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--red); }
.addr-foot { padding: 6px 14px; font-size: 10px; color: #8b97a6; background: #fafbfc; }
/* Spam trap: hidden from people, visible to bots */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ref-num { font-family: ui-monospace, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
/* Staff sign-in */
.staff-login-page { background: var(--navy); min-height: 100vh; margin: 0; }
.signin { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.signin-card { background: var(--white); border-radius: 14px; width: min(440px, 100%); padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.signin-brand { background: var(--navy); border-radius: 10px; margin: -8px -8px 22px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.signin-brand img { height: 56px; width: auto; }
.signin-brand span { color: #aab7c6; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.signin-card h1 { font-size: 22px; color: var(--navy); margin: 0 0 12px; }
.signin-card .hint { font-size: 14px; }
.signin-card .hint.small { font-size: 12px; margin-top: 14px; }
.signin-error { background: #fdecec; color: #8a1c1c; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 14px 0 0; }
.signin-foot { color: #8b9bb0; margin-top: 16px; }
.enroll-steps { padding-left: 20px; font-size: 14px; color: var(--ink); }
.enroll-steps li { margin-bottom: 10px; }
.setup-key { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0 6px; font-size: 13px; }
.setup-key span { color: var(--muted); }
.qr-box { width: 196px; max-width: 100%; margin: 10px 0 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-alt { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.setup-key b { color: var(--navy); word-break: break-all; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; }
.code-input { font-size: 24px; letter-spacing: 6px; text-align: center; font-family: ui-monospace, Consolas, monospace; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; display: inline-block; margin: 2px 14px 2px 0; }
.backup-codes { list-style: none; padding: 12px; margin: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; font-size: 15px; text-align: center; }
/* Responsive */
@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .broker-strip { grid-template-columns: 1fr 1fr; }
  .broker-intro { grid-column: 1 / -1; }
  .partners { grid-template-columns: 1fr 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .mtiles { grid-template-columns: 1fr 1fr; }
  .calc-result { position: static; }
  .timeline::before { display: none; }
  .stats-band .container { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .hero .container, .calc, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .brand-logo { height: 46px; }
  .policy { padding: 24px 18px; }
  .legal-summary { grid-template-columns: 1fr; }
  .field-row.four, .field-row.five, .field-row.addr, .demo-grid { grid-template-columns: 1fr 1fr; }
  .yn-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .step-labels span:not(.active) { display: none; }
  .step-labels { display: flex; justify-content: center; }
  section { padding: 44px 0; }
  .finish-line { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 12px; transform: none; background-size: 12px 12px; box-shadow: none; }
  .cta-band::before { display: none; }
  .cta-band { padding-top: 52px; }
  .flag-lg { width: 40px; height: 40px; }
  .cta-band h2 { font-size: 22px; }
  /* Track record: swipe sideways instead of stacking */
  #funded .grid-3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  #funded .grid-3::-webkit-scrollbar { display: none; }
  #funded .grid-3 > * { flex: 0 0 82%; scroll-snap-align: center; }
  #funded .grid-3 > .reveal { transition-delay: 0s; }
  .track-quotes { margin-top: 8px; }
  .pricing-line { gap: 6px; }
  .pricing-line > span { font-size: 13px; padding: 5px 11px; }
  .section-head { margin-bottom: 24px; }
  .broker-strip, .faq-grid { grid-template-columns: 1fr; }
  /* Market tiles: 2x2, no sparkline */
  .mtiles { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .mtile { padding: 10px 12px; }
  .mtile .spark { display: none; }
  .mtile-label { font-size: 12px; line-height: 1.3; display: block; }
  .mtile-value { font-size: 18px; }
  .mtile:hover { transform: none; }
  /* Process: numbered list instead of tall cards */
  #process .grid-4 { gap: 10px; }
  #process .card { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; }
  #process .step-num { grid-row: span 2; }
  #process .card h3 { margin: 0 0 2px; font-size: 17px; }
  #process .card p { font-size: 14px; }
  /* Programs: icon beside title */
  #programs .card { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; padding: 18px; }
  #programs .card .icon-chip { grid-row: span 2; margin: 0; }
  #programs .card h3 { margin: 0; align-self: center; }
  #programs .card p { grid-column: 1 / -1; margin: 10px 0 8px; }
  #programs .card ul { grid-column: 1 / -1; }
  .partners { grid-template-columns: 1fr; }
  .hero-stats .stat { padding: 14px; }
  .stat strong { font-size: 22px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px; }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .mtiles { grid-template-columns: 1fr; }
  .market-controls { flex-direction: column; align-items: stretch; }
  #marketTabs { display: flex; width: 100%; border-radius: 14px; }
  #marketTabs button { flex: 1; padding: 8px 6px; font-size: 13px; white-space: normal; line-height: 1.25; border-radius: 10px; }
  .seg-sm { align-self: center; }
  .calc-result .big { font-size: 36px; }
  .hero { padding: 64px 0 56px; }
  .doc-grid, .partners, .grid-3, .grid-3.grid-2, .grid-4, .field-row, .field-row.three, .review dl { grid-template-columns: 1fr; }
  .apply-head, .apply-body, .apply-foot { padding-left: 18px; padding-right: 18px; }
  section { padding: 56px 0; }
}

/* "Secured by" credit at the bottom of every page */
.secured-by { margin: 14px 0 0; font-size: 11px; letter-spacing: .02em; text-align: center; color: #8b9bb0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.secured-by svg { flex: none; opacity: .8; }
.secured-by.page-end { margin: 0; padding: 18px 16px 24px; color: var(--muted); background: var(--bg); }
.secured-by a, .site-footer .secured-by a { display: inline; margin: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.secured-by a:hover { color: var(--red, #d62828); }
/* Partner logos drawn for dark backgrounds sit on a navy plate */
.partner-logo img.logo-on-dark { background: var(--navy); padding: 14px 18px; border-radius: 10px; max-height: 72px; box-sizing: content-box; max-width: calc(100% - 36px); }
/* Partners on wide screens: a six-column track so a short last row sits centered */
@media (min-width: 901px) {
  .partners { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .partner { grid-column: span 2; }
  .partner:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
  .partner:nth-child(3n+1):last-child { grid-column: 3 / span 2; }
}
/* Two across (tablet): an odd last partner card sits centered */
@media (min-width: 681px) and (max-width: 900px) {
  .partner:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
}
