/* DEALR — shared styles. Premium fintech/auto aesthetic. */
:root {
  --ink: #0c1524;
  --ink-2: #16233b;
  --slate: #47566d;
  --muted: #6b7a92;
  --line: #e3e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --brand: #1f6feb;
  --brand-2: #14b8a6;
  --brand-ink: #0b4bb5;
  --good: #0f9d58;
  --warn: #e08a1e;
  --gold: #c9911d;
  --shadow: 0 1px 2px rgba(12,21,36,.06), 0 8px 24px rgba(12,21,36,.08);
  --shadow-lg: 0 24px 60px rgba(12,21,36,.16);
  --r: 14px;
  --r-sm: 10px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--slate); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
img, svg { display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-ink); background: rgba(31,111,235,.09);
  padding: 6px 12px; border-radius: 999px;
}
.lead { font-size: 1.15rem; color: var(--slate); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
section { padding: 68px 0; }
.section-tight { padding: 44px 0; }

/* Buttons */
.btn {
  --pad: 13px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: .98rem;
  padding: var(--pad); border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(31,111,235,.28); }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-lg { --pad: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Top nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,248,251,.82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.link {
  color: var(--slate); font-weight: 600; font-size: .96rem;
  padding: 8px 14px; border-radius: 8px;
}
.nav-links a.link:hover { color: var(--ink); background: rgba(12,21,36,.05); }
.nav-links a.link.active { color: var(--brand-ink); }
.nav-cta { margin-left: 8px; }
.hamburger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.hamburger svg { width: 22px; height: 22px; color: var(--ink); }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 22px 22px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .28s ease; visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a.link { padding: 13px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav-links a.link:not(.active):hover { background: rgba(12,21,36,.05); }
  .nav-cta { margin: 8px 0 0; }
  .hamburger { display: inline-flex; }
}

/* Hero */
.hero {
  background:
    radial-gradient(1100px 420px at 15% -10%, rgba(31,111,235,.16), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(20,184,166,.14), transparent 55%),
    linear-gradient(180deg, #0c1524 0%, #12203a 100%);
  color: #eaf1fb; position: relative; overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 74px 0 84px; }
.hero h1 { color: #fff; }
.hero .lead { color: #b8c6dd; font-size: 1.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; color: #cdd9ec; font-size: .92rem; font-weight: 600; }
.hero-badge svg { width: 18px; height: 18px; color: var(--brand-2); flex: none; }
.hero .eyebrow { color: #bfe9e1; background: rgba(20,184,166,.16); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 52px 0 60px; }
}

/* Deal form card */
.form-card {
  background: var(--card); color: var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 26px; border: 1px solid rgba(255,255,255,.5);
}
.form-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.form-head h3 { margin: 0; font-size: 1.15rem; }
.steps-dots { display: flex; gap: 6px; }
.steps-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: background .2s, width .2s; }
.steps-dots i.on { background: var(--brand); width: 22px; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.progress > i { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 999px; transition: width .35s ease; }

.step { display: none; }
.step.active { display: block; animation: fade .3s ease; }
.step h4 { font-size: 1.05rem; margin-bottom: 14px; color: var(--ink); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,235,.15); }
input.invalid, select.invalid { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,.13); }
.field .err { display: none; color: #c23636; font-size: .78rem; margin-top: 5px; font-weight: 600; }
.field.show-err .err { display: block; }

/* ---------- custom on-brand dropdown (replaces native <select>) ---------- */
.dd { position: relative; }
/* the real <select> stays in the DOM for form semantics/value, visually hidden
   but still targetable by label[for] focus (which we forward to the trigger) */
.dd-native {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.dd-ic { width: 18px; height: 18px; flex: none; }
.dd-trigger {
  position: relative; width: 100%; font: inherit; color: var(--ink);
  text-align: left; padding: 12px 40px 12px 13px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.dd-trigger .dd-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-trigger.is-placeholder .dd-val { color: var(--muted); }
.dd-caret {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; transition: transform .2s ease, color .15s;
}
.dd-trigger:hover { border-color: var(--brand); }
.dd-trigger:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,235,.15); }
.dd.open .dd-trigger { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,235,.15); }
.dd.open .dd-caret { transform: translateY(-50%) rotate(180deg); color: var(--brand); }
/* invalid state mirrored from the hidden native select (set by form validation) */
.dd-native.invalid ~ .dd-trigger { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,.13); }

.dd-pop {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg); padding: 6px;
  opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top center;
  pointer-events: none; transition: opacity .16s ease, transform .16s ease;
}
.dd.open .dd-pop { opacity: 1; transform: none; pointer-events: auto; }
.dd-search-wrap { position: relative; margin-bottom: 6px; }
.dd-search-wrap .dd-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.dd-search {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--ink);
  padding: 10px 12px 10px 34px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fbfcfe;
}
.dd-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,235,.15); background: #fff; }
.dd-list {
  max-height: 264px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #cfd7e3 transparent;
}
.dd-list::-webkit-scrollbar { width: 10px; }
.dd-list::-webkit-scrollbar-track { background: transparent; }
.dd-list::-webkit-scrollbar-thumb { background: #cfd7e3; border-radius: 999px; border: 3px solid #fff; }
.dd-list::-webkit-scrollbar-thumb:hover { background: #b4c0d4; }
.dd-opt {
  display: flex; align-items: center; gap: 8px; padding: 10px 11px;
  border-radius: 8px; cursor: pointer; color: var(--ink); font-size: .96rem;
  line-height: 1.2; user-select: none;
}
.dd-opt .dd-opt-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-opt.active { background: rgba(31,111,235,.09); }
.dd-opt.selected { color: var(--brand-ink); font-weight: 700; }
.dd-opt .dd-check { width: 16px; height: 16px; color: var(--brand); opacity: 0; }
.dd-opt.selected .dd-check { opacity: 1; }
.dd-empty { padding: 14px 11px; color: var(--muted); font-size: .9rem; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .dd-pop, .dd-caret { transition: none; }
}
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  padding: 12px 14px; cursor: pointer; text-align: left; font: inherit;
  display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, background .15s;
}
.chip b { font-weight: 700; }
.chip span { font-size: .8rem; color: var(--muted); }
.chip:hover { border-color: var(--brand); }
.chip.sel { border-color: var(--brand); background: rgba(31,111,235,.06); box-shadow: 0 0 0 2px rgba(31,111,235,.12) inset; }
.form-nav { display: flex; gap: 10px; margin-top: 18px; }
.form-nav .btn { flex: 1; }
.form-foot { margin-top: 14px; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 7px; justify-content: center; }
.form-foot svg { width: 15px; height: 15px; color: var(--good); }

/* Offer result */
.offer-result { text-align: center; padding: 6px 4px 2px; animation: fade .35s ease; }
.offer-result .tag { color: var(--muted); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.offer-amount { font-size: clamp(2.6rem, 8vw, 3.4rem); font-weight: 850; letter-spacing: -.03em; margin: 6px 0 2px; color: var(--ink); }
.offer-amount .cur { font-size: .5em; vertical-align: super; color: var(--slate); font-weight: 700; }
.offer-car { color: var(--slate); font-weight: 600; margin-bottom: 4px; }
.offer-note { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.offer-cta { display: grid; gap: 10px; }

/* Generic layout helpers */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; box-shadow: var(--shadow);
}
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(31,111,235,.1); color: var(--brand); margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .96rem; }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { margin: 0; }

/* Steps (how it works) */
.stepline { display: grid; gap: 20px; }
.stepline .row { display: grid; grid-template-columns: 62px 1fr; gap: 20px; align-items: start; }
.stepnum {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-ink)); box-shadow: 0 8px 18px rgba(31,111,235,.3);
}
.stepline .row h3 { margin-bottom: 6px; }
.stepline .row p { margin: 0; }

/* Stats band */
.band { background: var(--ink); color: #fff; }
.band h2 { color: #fff; }
.band p { color: #b8c6dd; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 8px; }
.stat b { display: block; font-size: 2.2rem; font-weight: 850; letter-spacing: -.03em; color: #fff; }
.stat span { color: #9fb0c9; font-size: .92rem; font-weight: 600; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Social proof — testimonials + buyer network */
.quote {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.quote .stars { display: inline-flex; gap: 3px; color: var(--gold); }
.quote .stars svg { width: 17px; height: 17px; }
.quote blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-2); line-height: 1.5; }
.quote blockquote b { color: var(--brand-ink); font-weight: 750; }
.quote figcaption { margin-top: auto; padding-top: 4px; display: flex; flex-direction: column; }
.quote .who { font-weight: 700; color: var(--ink); font-size: .96rem; }
.quote .what { font-size: .84rem; color: var(--muted); }

.buyer-net { margin-top: 46px; text-align: center; }
.buyer-label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.buyer-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 34px;
}
.buyer-logo {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; color: var(--slate);
  opacity: .72; filter: grayscale(1); transition: opacity .2s, color .2s;
}
.buyer-logo:hover { opacity: 1; color: var(--ink); }
.proof-note { margin: 26px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }

/* Offers page — agent working */
.agent-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 26px; margin-bottom: 26px;
}
.agent-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.agent-orb {
  width: 46px; height: 46px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 35% 30%, var(--brand-2), var(--brand)); box-shadow: 0 0 0 6px rgba(31,111,235,.12);
}
.agent-orb::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(31,111,235,.4); border-top-color: transparent; animation: spin 1s linear infinite;
}
.agent-done .agent-orb::after { animation: none; border-color: transparent; }
.agent-head h3 { margin: 0; }
.agent-head .sub { margin: 0; font-size: .9rem; color: var(--muted); }
.agent-progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.agent-progress > i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 999px; transition: width .4s ease; }
.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .sources { grid-template-columns: 1fr; } }
.source {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fbfcfe;
  opacity: .5; transition: opacity .3s, border-color .3s, background .3s;
}
.source.scanning { opacity: 1; border-color: var(--brand); background: rgba(31,111,235,.05); }
.source.done { opacity: 1; }
.source .dot { width: 20px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; }
.source .dot svg { width: 20px; height: 20px; }
.source .nm { font-weight: 650; font-size: .92rem; }
.source .st { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--muted); }
.source.scanning .st { color: var(--brand); }
.source.done .st { color: var(--good); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(31,111,235,.3); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }

/* Results */
.results { animation: fade .4s ease; }
.results-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px;
}
@media (max-width: 700px) { .results-summary { grid-template-columns: 1fr; } }
.rs-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.rs-card .k { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rs-card .v { font-size: 1.8rem; font-weight: 850; letter-spacing: -.02em; margin-top: 3px; }
.rs-card.best { border-color: var(--good); background: linear-gradient(180deg, rgba(15,157,88,.06), #fff); }
.rs-card.best .v { color: var(--good); }

.offer-list { display: grid; gap: 12px; }
.offer-row {
  display: grid; grid-template-columns: 44px 1fr auto auto; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.offer-row .rank { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; background: rgba(12,21,36,.05); color: var(--slate); }
.offer-row .who { min-width: 0; }
.offer-row .who b { font-size: 1.05rem; font-weight: 700; display: block; }
.offer-row .who span { font-size: .84rem; color: var(--muted); }
.offer-row .terms { text-align: right; font-size: .82rem; color: var(--muted); }
.offer-row .amt { text-align: right; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.offer-row.best { border-color: var(--good); box-shadow: 0 0 0 2px rgba(15,157,88,.25), var(--shadow); }
.offer-row.best .rank { background: var(--good); color: #fff; }
.offer-row.best .amt { color: var(--good); }
.best-flag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; color: var(--good); background: rgba(15,157,88,.12);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 4px;
}
.best-flag svg { width: 13px; height: 13px; }
@media (max-width: 640px) {
  .offer-row { grid-template-columns: 40px 1fr auto; }
  .offer-row .terms { display: none; }
}

/* share / refer growth hook */
.share-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 26px; padding: 22px 24px; border-radius: var(--r);
  border: 1px solid rgba(15,157,88,.28);
  background: linear-gradient(180deg, rgba(15,157,88,.06), var(--card));
  box-shadow: var(--shadow);
}
.share-card h3 { font-size: 1.15rem; }
.share-card .eyebrow { color: var(--good); background: rgba(15,157,88,.12); }
.share-copy { min-width: 240px; flex: 1 1 320px; }
.share-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-links { display: inline-flex; gap: 8px; }
.share-ico {
  width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, color .2s, transform .1s;
}
.share-ico:hover { border-color: var(--good); color: var(--good); }
.share-ico:active { transform: translateY(1px); }
.share-ico svg { width: 19px; height: 19px; }
@media (max-width: 640px) {
  .share-card { flex-direction: column; align-items: flex-start; }
  .share-actions { width: 100%; }
}

/* transient copy/share toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg { width: 54px; height: 54px; color: var(--muted); margin: 0 auto 16px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand-ink), #123a86);
  color: #fff; border-radius: 20px; padding: 46px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d8f2; max-width: 52ch; margin: 0 auto 22px; }

/* Trust / about */
.trust-list { display: grid; gap: 14px; }
.trust-item { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.trust-item svg { width: 24px; height: 24px; color: var(--good); margin-top: 2px; }
.trust-item b { display: block; margin-bottom: 2px; }
.trust-item p { margin: 0; font-size: .95rem; }

.money-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 10px; }
@media (max-width: 760px) { .money-flow { grid-template-columns: 1fr; } }
.money-step { position: relative; padding: 22px; text-align: center; }
.money-step .n { font-weight: 800; color: var(--brand); font-size: .8rem; letter-spacing: .08em; }
.money-step h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.money-step p { margin: 0; font-size: .92rem; }

.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
details.qa { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 20px; box-shadow: var(--shadow); }
details.qa summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary .plus { font-size: 1.4rem; color: var(--brand); transition: transform .2s; flex: none; }
details.qa[open] summary .plus { transform: rotate(45deg); }
details.qa p { padding: 0 0 16px; margin: 0; }

/* Footer */
.footer { background: var(--ink); color: #9fb0c9; padding: 54px 0 30px; margin-top: 20px; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 760px) { .footer .top { grid-template-columns: 1fr 1fr; gap: 26px; } }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer .tag { font-size: .92rem; color: #8496b0; max-width: 34ch; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.footer a { color: #9fb0c9; display: block; padding: 5px 0; font-size: .94rem; }
.footer a:hover { color: #fff; }
.footer .bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: .85rem; color: #6f8098; }

/* Legal prose (privacy / terms) */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { margin-top: 2em; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: 1.5em; }
.legal p, .legal li { color: var(--slate); }
.legal ul { margin: 0 0 1rem; padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--muted); font-size: .95rem; margin-bottom: 2em; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(9,15,26,.6);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--card); border-radius: var(--r); width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; position: relative;
  transform: translateY(14px) scale(.98); transition: transform .22s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; z-index: 2;
  border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--slate);
}
.modal-close:hover { color: var(--ink); border-color: var(--slate); }
.modal-close svg { width: 18px; height: 18px; }
.modal .form-card { box-shadow: none; border: none; padding: 28px 24px 24px; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .agent-orb::after { display: none; }
}
