/* MortgageDoor marketing site — design system */

:root {
  /* MortgageDoor — premium fintech (Stripe / Mercury / Linear tier)
     Deep purple primary · charcoal neutrals · refined editorial type. */
  /* MortgageDoor official brand tokens (per brand sheet) */
  --brand-primary: #7C3AED;       /* deep purple — official */
  --brand-primary-hover: #6D28D9; /* hand-tuned deeper shade */
  --brand-primary-soft: #EDE9FE;  /* tinted background */
  --brand-primary-light: #DDD6FE; /* light tint */
  --brand-dark: #0F172A;          /* charcoal — official */
  --brand-dark-soft: #1F2937;
  --brand-accent: #7C3AED;        /* secondary accent = same brand purple */
  --brand-accent-hover: #6D28D9;
  --brand-accent-soft: #EDE9FE;
  --brand-accent-text: #7C3AED;

  --bg: #F8FAFC;                  /* slate-50 */
  --surface: #ffffff;
  --surface-soft: #F1F5F9;        /* slate-100 */
  --border: #E2E8F0;              /* slate-200 */
  --border-soft: #F1F5F9;

  --text: #0F172A;                /* slate-900 */
  --text-soft: #475569;           /* slate-600 */
  --text-muted: #64748B;          /* slate-500 */
  --on-primary: #ffffff;

  --success: #10B981;             /* emerald-500 */
  --error: #EF4444;               /* red-500 */

  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 14px rgba(15,23,42,.07), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 24px 56px rgba(15,23,42,.13), 0 6px 14px rgba(15,23,42,.06);
  --shadow-violet: 0 10px 26px rgba(79,70,229,.30);

  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --transition: 180ms cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-primary-hover); }

img, svg { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ======================== layout ======================== */

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* ======================== nav ======================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1.5px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1180px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--brand-dark); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text); font-weight: 500; font-size: 14.5px;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--brand-primary); }
.nav-cta-row { display: flex; gap: 12px; align-items: center; }
.nav-phone {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--brand-dark); font-weight: 600; font-size: 14px;
  transition: all var(--transition);
}
.nav-phone:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-phone span { display: none; }
}

/* ======================== buttons ======================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 14.5px; line-height: 1;
  transition: all var(--transition); cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand-primary); color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-primary-hover); color: var(--on-primary);
  transform: translateY(-1px); box-shadow: var(--shadow-violet);
}
.btn-secondary {
  background: var(--surface); color: var(--brand-dark);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-ghost { background: transparent; color: var(--brand-primary); }
.btn-ghost:hover { background: var(--brand-primary-soft); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; }

/* ======================== hero ======================== */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 18% -10%, var(--brand-primary-light), transparent 65%),
    radial-gradient(700px 500px at 100% 0%, #f0e1ff, transparent 65%),
    var(--bg);
  padding: 96px 0 80px;
  border-bottom: 1.5px solid var(--border);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 {
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05;
  font-weight: 700; color: var(--brand-dark);
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--brand-primary); }
.hero p.lead {
  font-size: 18px; color: var(--text-soft);
  margin-bottom: 32px; max-width: 540px;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-trust {
  display: flex; gap: 24px; margin-top: 40px;
  font-size: 13px; color: var(--text-muted);
}
.hero-trust strong { color: var(--brand-dark); }

.hero-visual {
  position: relative; border-radius: var(--radius-xl);
  background: var(--surface); padding: 32px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}
.hero-visual::before {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(135deg, var(--brand-primary), #ec4899);
  border-radius: var(--radius-xl); z-index: -1; opacity: .15; filter: blur(14px);
}

/* ======================== feature cards ======================== */

.section-title {
  font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15;
  color: var(--brand-dark); font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-soft); font-size: 17px; max-width: 600px; margin: 0 auto 48px; }
.section-head { text-align: center; margin-bottom: 56px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.feature-card {
  background: var(--surface); padding: 32px;
  border-radius: var(--radius); border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-3px); box-shadow: var(--shadow-violet);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--brand-primary-soft); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; color: var(--brand-dark); margin-bottom: 8px; font-weight: 600; }
.feature-card p { color: var(--text-soft); font-size: 14.5px; }

/* loan options grid */
.option-card {
  background: var(--surface); padding: 28px;
  border-radius: var(--radius); border: 1.5px solid var(--border);
  transition: all var(--transition); display: block;
}
.option-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-3px); box-shadow: var(--shadow-violet);
  color: inherit;
}
.option-card h3 {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--brand-dark); font-size: 18px; font-weight: 600; margin-bottom: 8px;
}
.option-card p { color: var(--text-soft); font-size: 14px; }
.option-card .arrow { color: var(--brand-primary); transition: transform var(--transition); }
.option-card:hover .arrow { transform: translateX(4px); }

/* ======================== calculator widget ======================== */

.calc-widget {
  background: var(--surface); border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.calc-widget-header { padding: 28px 32px 20px; border-bottom: 1px solid var(--border-soft); }
.calc-widget-header h3 { color: var(--brand-dark); font-size: 20px; font-weight: 600; }
.calc-widget-header p { color: var(--text-soft); font-size: 14px; margin-top: 4px; }
.calc-widget-body { padding: 28px 32px; }
.calc-widget-result {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-dark-soft) 100%);
  color: var(--on-primary); padding: 28px 32px; text-align: center;
}
.calc-widget-result .label {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255, 255, 255, .7); margin-bottom: 8px;
}
.calc-widget-result .amount {
  font-size: 44px; font-weight: 700; letter-spacing: -.02em;
}
.calc-widget-result .amount-sub {
  font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 6px;
}

/* ======================== sliders ======================== */

.slider-field { margin-bottom: 28px; }
.slider-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.slider-label {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  text-transform: uppercase; letter-spacing: .5px;
}
.slider-value {
  font-size: 22px; font-weight: 700; color: var(--brand-dark);
  letter-spacing: -.01em; transition: all var(--transition);
}
input.slider-value {
  font-family: inherit; background: transparent;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 4px 8px; margin: -4px -8px; outline: none;
  text-align: right; max-width: 200px;
}
input.slider-value:hover { border-color: var(--border); background: var(--surface-soft); }
input.slider-value:focus {
  border-color: var(--brand-primary); background: #fff;
  box-shadow: 0 0 0 4px var(--brand-primary-soft);
  color: var(--brand-primary);
}
.slider-value-sub { font-size: 13px; color: var(--text-soft); margin-left: 8px; font-weight: 500; }

input[type="range"].slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--border-soft); outline: none;
  background-image: linear-gradient(var(--brand-primary), var(--brand-primary));
  background-size: 50% 100%; background-repeat: no-repeat;
  transition: background-size 0ms;
}
input[type="range"].slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-primary);
  border: 4px solid var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--brand-primary);
  cursor: grab; transition: transform var(--transition);
}
input[type="range"].slider::-webkit-slider-thumb:active {
  cursor: grabbing; transform: scale(1.1);
}
input[type="range"].slider::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-primary); border: 4px solid var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--brand-primary);
  cursor: grab;
}
.slider-bounds { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-muted); }

.slider-tier {
  margin-top: 10px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--brand-primary-soft); color: var(--brand-primary);
  font-size: 13.5px; font-weight: 600; transition: all var(--transition);
}

/* ======================== forms ======================== */

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-primary-soft);
}

/* chip selector (for purpose / property type) */
.chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.chip {
  padding: 18px 16px; text-align: center;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--text);
  transition: all var(--transition);
}
.chip:hover { border-color: var(--brand-primary-light); }
.chip.selected {
  background: var(--brand-primary); color: var(--on-primary);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-violet); transform: translateY(-2px);
}
.chip-icon { display: block; margin: 0 auto 8px; }

/* ======================== multi-step form ======================== */

.steps-container {
  background: var(--surface); border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.steps-progress {
  padding: 24px 32px; background: var(--surface-soft);
  border-bottom: 1px solid var(--border-soft);
}
.steps-progress-bar {
  height: 8px; border-radius: 4px; background: var(--border-soft);
  overflow: hidden; margin-bottom: 12px;
}
.steps-progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--brand-primary), #a855f7);
  width: 20%; transition: width 400ms cubic-bezier(.4, 0, .2, 1);
  border-radius: 4px;
}
.steps-progress-label {
  display: flex; justify-content: space-between; font-size: 13px;
  color: var(--text-soft); font-weight: 500;
}
.steps-progress-label strong { color: var(--brand-primary); }

.step-panel { padding: 40px 32px; display: none; }
.step-panel.active { display: block; animation: fadeInUp 320ms ease-out; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-size: 24px; font-weight: 700; color: var(--brand-dark);
  letter-spacing: -.02em; margin-bottom: 8px;
}
.step-sub { color: var(--text-soft); font-size: 15px; margin-bottom: 28px; }

.step-actions {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 20px 32px; border-top: 1px solid var(--border-soft);
  background: var(--surface-soft);
}
.step-actions .btn-back { color: var(--text-soft); }
.step-actions .btn-back:hover { color: var(--brand-primary); }

/* ======================== footer ======================== */

footer {
  background: var(--brand-dark); color: rgba(255, 255, 255, .8);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { color: rgba(255, 255, 255, .9); }
.footer-brand p { font-size: 13.5px; margin-top: 12px; line-height: 1.6; opacity: .8; }
.footer-col h4 {
  color: #fff; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255, 255, 255, .65); font-size: 14px;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px;
  font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .55);
}
.footer-legal p + p { margin-top: 12px; }
.footer-licenses {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px;
  font-weight: 600; color: rgba(255, 255, 255, .75);
}

/* ======================== thanks page ======================== */

.thanks-card {
  background: var(--surface); padding: 56px 48px;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  text-align: center; max-width: 560px; margin: 80px auto;
}
.thanks-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 40px;
}
.thanks-card h1 {
  font-size: 32px; font-weight: 700; color: var(--brand-dark);
  letter-spacing: -.02em; margin-bottom: 12px;
}
.thanks-card p { color: var(--text-soft); font-size: 16px; margin-bottom: 32px; }

/* ======================== animations ======================== */

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, -30px) rotate(8deg); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-25px, 20px) rotate(-6deg); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -18px); }
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 10px 26px rgba(91, 28, 158, .25); }
  50% { box-shadow: 0 14px 34px rgba(91, 28, 158, .4); }
}
@keyframes draw-in {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}

.shape {
  position: absolute; pointer-events: none; z-index: 0;
  filter: blur(1px); opacity: .85;
}
.shape-1 { top: 6%; left: 3%; width: 200px; height: 200px; animation: float-a 16s ease-in-out infinite; }
.shape-2 { bottom: 8%; left: 6%; width: 130px; height: 130px; animation: float-b 20s ease-in-out infinite; }
.shape-3 { top: 18%; right: 4%; width: 110px; height: 110px; animation: float-c 14s ease-in-out infinite; }

.hero > .container { position: relative; z-index: 1; }

.btn-pulse { animation: pulse-soft 3.6s ease-in-out infinite; }

/* scroll reveal */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(.4,0,.2,1), transform 600ms cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* counter — pre-set its width via tabular-nums so it doesn't reflow during animation */
.counter { font-variant-numeric: tabular-nums; }

/* feature card icon refresh — bigger illustration container */
.feature-card .feature-illus {
  width: 64px; height: 64px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-primary-soft) 0%, #fff 100%);
  border: 1.5px solid var(--brand-primary-light);
}

.option-card .option-illus {
  width: 56px; height: 56px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* ======================== small helpers ======================== */

.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; }


/* ════════════════════════════════════════════════════════════════════════
   2026 HOMEPAGE — big-lender redesign
   ════════════════════════════════════════════════════════════════════════ */

/* ── HERO v2 ───────────────────────────────────────────────────────── */
.hero-v2 {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FAFBFF 0%, var(--bg) 100%);
  padding: 80px 0 56px;
}
.hero-bg-grad {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(79,70,229,.10), transparent 60%),
    radial-gradient(600px 400px at 5% 30%, rgba(6,182,212,.08), transparent 60%);
}
.hero-v2 .container { position: relative; z-index: 1; }
.hero-v2-inner {
  display: grid; grid-template-columns: minmax(0,1fr) 460px;
  gap: 56px; align-items: center;
}
@media (max-width: 980px) { .hero-v2-inner { grid-template-columns: 1fr; gap: 40px; } }

.hero-v2-title {
  font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02;
  font-weight: 800; letter-spacing: -.035em; color: var(--text);
  margin-bottom: 22px;
}
.hero-v2-title-grad {
  background: linear-gradient(120deg, var(--brand-primary) 0%, #818CF8 50%, var(--brand-accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-v2-lead {
  font-size: 19px; line-height: 1.55; color: var(--text-soft);
  margin-bottom: 32px; max-width: 540px;
}
.hero-v2-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px;
}
.btn-mega {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 10px; font-size: 16px; font-weight: 700;
  background: var(--brand-primary); color: #fff;
  text-decoration: none; letter-spacing: -.005em;
  box-shadow: 0 4px 14px rgba(79,70,229,.32), 0 1px 3px rgba(79,70,229,.18);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-mega:hover {
  background: var(--brand-primary-hover); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,.38), 0 2px 6px rgba(79,70,229,.20);
}
.btn-mega-ghost {
  background: #fff; color: var(--text); box-shadow: none;
  border: 1.5px solid var(--border);
}
.btn-mega-ghost:hover {
  background: var(--bg); color: var(--brand-primary); border-color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.btn-mega-ghost-dark {
  background: rgba(255,255,255,.10); color: #fff;
  border: 1.5px solid rgba(255,255,255,.30); box-shadow: none;
}
.btn-mega-ghost-dark:hover {
  background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.50);
}

.hero-v2-trust {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--border-soft);
}
.trust-item .trust-stars {
  font-size: 14px; color: #F59E0B; letter-spacing: .08em; font-weight: 700;
}
.trust-item .trust-num {
  font-size: 15px; font-weight: 800; color: var(--brand-primary); letter-spacing: -.01em;
}
.trust-item .trust-label {
  font-size: 12.5px; color: var(--text-muted); margin-top: 2px; font-weight: 500;
}
.trust-divider { width: 1px; height: 32px; background: var(--border); }

/* Calculator card in hero */
.hero-v2-calc, .hero-v2-illus { display: flex; justify-content: flex-end; position: relative; }

/* === Animated hero illustration === */
.hero-illus-svg { width: 100%; max-width: 460px; height: auto; display: block; }

.hi-sun {
  transform-origin: 350px 120px;
  animation: hi-sun-pulse 6s ease-in-out infinite;
}
.hi-house-grp {
  transform-origin: center;
  animation: hi-house-rise 1s cubic-bezier(.34,1.32,.64,1) both;
}
@keyframes hi-house-rise {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes hi-sun-pulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.hi-badge {
  transform-origin: 370px 260px;
  animation: hi-badge-pop 1s cubic-bezier(.34,1.4,.64,1) .35s both;
}
.hi-badge-ring {
  transform-origin: 370px 260px;
  animation: hi-badge-ring 2.6s ease-out infinite;
}
@keyframes hi-badge-pop {
  from { transform: scale(.2); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes hi-badge-ring {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.55); opacity: 0; }
}

.hi-coin { transform-origin: center; }
.hi-coin-1 { animation: hi-float-a 4.5s ease-in-out infinite, hi-fade .7s ease-out .4s both; transform: translate(105px, 175px); }
.hi-coin-2 { animation: hi-float-b 5.5s ease-in-out infinite, hi-fade .7s ease-out .55s both; transform: translate(360px, 195px); }
.hi-coin-3 { animation: hi-float-c 4s ease-in-out infinite, hi-fade .7s ease-out .7s both; transform: translate(80px, 285px); }
@keyframes hi-float-a { 0%,100% { transform: translate(105px, 175px) rotate(-3deg); } 50% { transform: translate(108px, 165px) rotate(2deg); } }
@keyframes hi-float-b { 0%,100% { transform: translate(360px, 195px) rotate(2deg); }  50% { transform: translate(355px, 205px) rotate(-3deg); } }
@keyframes hi-float-c { 0%,100% { transform: translate(80px, 285px) rotate(-1deg); }  50% { transform: translate(85px, 275px) rotate(3deg); } }
@keyframes hi-fade { from { opacity: 0; } to { opacity: 1; } }

.hi-chart {
  animation: hi-chart-slide .9s cubic-bezier(.34,1.32,.64,1) .5s both;
}
@keyframes hi-chart-slide {
  from { transform: translate(38px, 320px); opacity: 0; }
  to   { transform: translate(50px, 320px); opacity: 1; }
}
.hi-trend {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: hi-trend-draw 1.6s ease-out 1s forwards;
}
@keyframes hi-trend-draw { to { stroke-dashoffset: 0; } }

.hi-spark { animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.hi-spark-1 { transform: translate(195px, 145px); animation: hi-spark-a 3.2s 0.4s infinite; }
.hi-spark-2 { transform: translate(330px, 145px); animation: hi-spark-b 3.6s 1.1s infinite; }
.hi-spark-3 { transform: translate(245px, 95px);  animation: hi-spark-c 3.4s 0.7s infinite; }
@keyframes hi-spark-a { 0%,40%,100% { opacity:0; transform: translate(195px,145px) scale(.5); } 50% { opacity:1; transform: translate(195px,140px) scale(1.1); } }
@keyframes hi-spark-b { 0%,40%,100% { opacity:0; transform: translate(330px,145px) scale(.5); } 60% { opacity:1; transform: translate(335px,140px) scale(1.1); } }
@keyframes hi-spark-c { 0%,40%,100% { opacity:0; transform: translate(245px, 95px) scale(.5); } 55% { opacity:1; transform: translate(248px, 90px) scale(1.1); } }

/* Estimated-payment pill anchored to the illustration */
.hi-pill {
  position: absolute; right: -8px; bottom: 30px;
  background: #fff; border-radius: 14px;
  padding: 16px 20px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 220px;
  animation: hi-pill-pop 1s cubic-bezier(.34,1.32,.64,1) .6s both;
}
@keyframes hi-pill-pop {
  from { transform: translateY(20px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.hi-pill-amt { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.hi-pill-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }
.hi-pill-cta {
  display: inline-block; margin-top: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--brand-primary);
  text-decoration: none;
}
.hi-pill-cta:hover { text-decoration: underline; }
@media (max-width: 980px) {
  .hi-pill { position: relative; right: 0; bottom: 0; margin: -40px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hi-sun, .hi-coin, .hi-badge-ring, .hi-spark { animation: none; }
}
.calc-card {
  width: 100%; max-width: 460px;
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--border-soft);
}
.calc-card-head {
  padding: 26px 28px 22px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #6366F1 50%, #818CF8 100%);
  color: #fff;
}
.calc-card-amount {
  font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.calc-card-sub {
  font-size: 13px; opacity: .85; margin-top: 6px; font-weight: 500;
}
.calc-card-body { padding: 22px 26px 26px; }
.calc-card-body .slider-field { margin-bottom: 18px; }
.calc-card-body .slider-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 7px; font-size: 13px;
}
.calc-card-body .slider-label { color: var(--text-muted); font-weight: 600; }
.calc-card-body .slider-value {
  font-weight: 700; color: var(--text); border: none; background: transparent;
  text-align: right; width: 110px; font-size: 14px; font-family: inherit;
  padding: 2px 4px; border-radius: 4px;
}
.calc-card-body .slider-value:focus { outline: none; background: var(--brand-primary-soft); }
.calc-card-body .slider-value-sub { font-size: 11.5px; color: var(--text-muted); margin-left: 4px; }
.calc-card-body .slider {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 5px; border-radius: 999px; background: var(--border); outline: none;
}
.calc-card-body .slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%; background: var(--brand-primary);
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(79,70,229,.4); cursor: pointer;
}
.calc-card-body .slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--brand-primary);
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(79,70,229,.4); cursor: pointer; border-style: solid;
}
.btn-cta-block {
  display: block; text-align: center; margin-top: 18px;
  padding: 14px 18px; border-radius: 10px; background: var(--brand-primary);
  color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(79,70,229,.30);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-cta-block:hover {
  background: var(--brand-primary-hover); color: #fff;
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79,70,229,.36);
}
.calc-card-foot {
  font-size: 11.5px; color: var(--text-muted); text-align: center; margin-top: 12px;
}


/* ── TODAY'S RATES STRIP ───────────────────────────────────────────── */
.rates-strip {
  padding: 28px 0; background: var(--brand-dark);
}
.rates-strip-inner { color: #fff; }
.rates-strip-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.rates-strip-meta { font-size: 12px; color: rgba(255,255,255,.55); }

.rates-strip-row {
  display: grid; grid-template-columns: repeat(5, 1fr) auto;
  gap: 18px; align-items: end;
}
@media (max-width: 900px) {
  .rates-strip-row { grid-template-columns: repeat(2, 1fr); }
  .rate-cta { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}
.rate-cell { padding: 0 4px; }
.rate-label { font-size: 11.5px; color: rgba(255,255,255,.60); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.rate-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.rate-value .rate-pct { font-size: 18px; font-weight: 700; opacity: .75; margin-left: 2px; }
.rate-sub { font-size: 11.5px; color: rgba(255,255,255,.55); margin-top: 6px; font-weight: 500; }
.rate-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 9px; background: var(--brand-primary);
  color: #fff; font-weight: 700; font-size: 13.5px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(79,70,229,.40);
  transition: background var(--transition), transform var(--transition);
}
.rate-cta:hover { background: var(--brand-primary-hover); color: #fff; transform: translateY(-1px); }


/* ── SECTION SHARED ────────────────────────────────────────────────── */
.section-light { background: var(--surface); }
.section-head {
  text-align: center; max-width: 720px; margin: 0 auto 48px;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.025em;
  color: var(--text); line-height: 1.1; margin-bottom: 12px;
}
.section-sub { font-size: 17px; color: var(--text-soft); line-height: 1.55; }


/* ── LOAN OPTIONS GRID ─────────────────────────────────────────────── */
.opt-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 980px) { .opt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .opt-grid { grid-template-columns: 1fr; } }
.opt-tile {
  background: #fff; padding: 26px 24px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); color: var(--text); text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.opt-tile:hover {
  border-color: var(--brand-primary); transform: translateY(-4px);
  box-shadow: var(--shadow-lg); color: var(--text);
}
.opt-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
}
.opt-icon-indigo  { background: var(--brand-primary-soft); }
.opt-icon-cyan    { background: #ECFEFF; }
.opt-icon-amber   { background: #FEF3C7; }
.opt-icon-emerald { background: #D1FAE5; }
.opt-tile h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
  letter-spacing: -.01em; color: var(--text);
}
.opt-tile p {
  font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px;
  flex: 1;
}
.opt-link {
  font-size: 13.5px; font-weight: 700; color: var(--brand-primary);
}
.opt-tile:hover .opt-link { text-decoration: underline; }


/* ── HOW IT WORKS ──────────────────────────────────────────────────── */
.how-section { padding: 88px 0; }
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  background: #fff; padding: 32px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.how-step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.how-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #818CF8 100%);
  color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; box-shadow: 0 4px 12px rgba(79,70,229,.30);
}
.how-step h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 10px;
  letter-spacing: -.01em; color: var(--text);
}
.how-step > p {
  font-size: 14.5px; color: var(--text-soft); line-height: 1.6; margin-bottom: 16px;
}
.how-points {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px dashed var(--border); padding-top: 14px;
}
.how-points li {
  font-size: 13.5px; color: var(--text-muted); padding: 4px 0;
  position: relative; padding-left: 20px;
}
.how-points li::before {
  content: '✓'; position: absolute; left: 0; top: 4px;
  color: var(--brand-primary); font-weight: 800; font-size: 13px;
}


/* ── BROKER vs RETAIL COMPARE ──────────────────────────────────────── */
.compare-section { padding: 88px 0; }
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 960px; margin: 0 auto;
}
@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col {
  background: #fff; padding: 32px 28px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
}
.compare-us {
  border-color: var(--brand-primary);
  background: linear-gradient(180deg, var(--brand-primary-soft) 0%, #fff 80%);
  box-shadow: 0 12px 32px rgba(79,70,229,.12);
}
.compare-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--border-soft); color: var(--text-muted);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 18px;
}
.compare-tag.tag-us { background: var(--brand-primary); color: #fff; }
.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
  font-size: 14.5px; color: var(--text); line-height: 1.5;
}
.compare-list li:last-child { border-bottom: none; }
.compare-mark {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0; font-size: 12px;
}
.compare-mark.check { background: var(--success); color: #fff; }
.compare-mark.x { background: var(--border); color: var(--text-muted); }
.compare-foot {
  text-align: center; margin-top: 32px;
  font-size: 17px; font-weight: 700; color: var(--brand-primary);
}


/* ── STATS BAND ────────────────────────────────────────────────────── */
.stats-band {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1E1B4B 50%, var(--brand-primary) 100%);
  padding: 56px 0; color: #fff;
}
.stats-band-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  text-align: center;
}
@media (max-width: 720px) { .stats-band-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.stat-band-num {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg, #fff 0%, #C7D2FE 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 10px;
}
.stat-band-label {
  font-size: 13px; color: rgba(255,255,255,.75); font-weight: 600;
  letter-spacing: -.005em;
}


/* ── TESTIMONIALS ──────────────────────────────────────────────────── */
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: #fff; padding: 28px 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testi-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.testi-stars {
  color: #F59E0B; letter-spacing: .12em; font-size: 16px; margin-bottom: 14px;
}
.testi-body {
  font-size: 15.5px; color: var(--text); line-height: 1.6; margin-bottom: 22px;
  font-weight: 500;
}
.testi-meta { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
}
.testi-name { font-weight: 700; color: var(--text); font-size: 14px; }
.testi-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }


/* ── FINAL CTA ─────────────────────────────────────────────────────── */
.cta-final { padding: 88px 0; background: var(--bg); }
.cta-final-card {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1E1B4B 60%, var(--brand-primary) 100%);
  border-radius: var(--radius-xl);
  padding: 64px 48px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-final-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 80% -10%, rgba(255,255,255,.15), transparent 60%);
}
.cta-final-card h2 {
  font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.025em;
  margin-bottom: 14px; color: #fff; position: relative;
}
.cta-final-card p {
  font-size: 17px; color: rgba(255,255,255,.85); line-height: 1.55;
  margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto;
  position: relative;
}
.cta-final-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px; position: relative;
}
.cta-final-trust {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.65); font-weight: 500;
  position: relative;
}


/* ════════════════════════════════════════════════════════════════════════
   NAV v3 — slim top bar, always-visible hamburger, grouped drawer
   (fintech pattern: Lower, Tomo, Vesta, Roost)
   ════════════════════════════════════════════════════════════════════════ */
.nav-v3 {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.nav-v3.is-scrolled {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 8px 24px -16px rgba(15,23,42,.10);
}
.nav-v3 .nav-inner {
  padding: 12px 28px; gap: 16px;
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-v3 .nav-logo { flex-shrink: 0; }

.nav-v3 .nav-right { display: flex; align-items: center; gap: 14px; }

.nav-phone-v3 {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text); font-weight: 600; font-size: 14px;
  text-decoration: none; padding: 6px 10px; border-radius: 8px;
  transition: color 140ms ease, background 140ms ease;
}
.nav-phone-v3 svg { color: var(--brand-primary); }
.nav-phone-v3:hover { color: var(--brand-primary); background: var(--brand-primary-soft); }

.nav-signin-v3 {
  display: inline-flex; align-items: center;
  color: var(--text); font-weight: 600; font-size: 14px;
  text-decoration: none; padding: 8px 12px; border-radius: 8px;
  transition: color 140ms ease, background 140ms ease;
}
.nav-signin-v3:hover { color: var(--brand-primary); background: var(--brand-primary-soft); }

.nav-apply-v3 {
  display: inline-flex; align-items: center;
  padding: 10px 20px; border-radius: 999px;
  background: var(--brand-dark); color: #fff;
  font-weight: 700; font-size: 14px; text-decoration: none;
  letter-spacing: -.005em;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.nav-apply-v3:hover {
  background: var(--brand-primary); color: #fff;
  transform: translateY(-1px); box-shadow: 0 6px 18px rgba(124,58,237,.32);
}

/* Hamburger — always visible, "Menu" label hidden on small screens */
.nav-burger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 12px; border-radius: 10px;
  background: var(--surface-soft); border: 1px solid var(--border-soft);
  color: var(--text); font: 600 13.5px/1 var(--sans, 'Inter', sans-serif);
  cursor: pointer; letter-spacing: -.005em;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.nav-burger:hover {
  background: #fff; border-color: var(--brand-primary);
  color: var(--brand-primary); transform: translateY(-1px);
}
.nav-burger:active { transform: translateY(0); }
.nav-burger-lines {
  display: inline-flex; flex-direction: column; gap: 3px;
  width: 16px; height: 12px; justify-content: center;
}
.nav-burger-lines i {
  display: block; height: 2px; width: 100%;
  background: currentColor; border-radius: 999px;
  transition: transform 220ms cubic-bezier(.4,0,.2,1), opacity 180ms ease;
}
body.nav-drawer-open .nav-burger-lines i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-drawer-open .nav-burger-lines i:nth-child(2) { opacity: 0; }
body.nav-drawer-open .nav-burger-lines i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Compact at small breakpoints — keep CTA + hamburger, hide the rest */
@media (max-width: 720px) {
  .nav-v3 .nav-inner { padding: 10px 16px; gap: 8px; }
  .nav-phone-v3 span,
  .nav-signin-v3 { display: none; }
  .nav-apply-v3 { padding: 9px 14px; font-size: 13px; }
  .nav-burger-lbl { display: none; }
  .nav-burger { padding: 9px 11px; }
}

/* ═══ Slide-out drawer (always available, grouped sections) ═══ */
.nav-drawer-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.50);
  opacity: 0; pointer-events: none; z-index: 90;
  transition: opacity 220ms ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(440px, 92vw); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 320ms cubic-bezier(.32,.72,0,1);
  box-shadow: -28px 0 60px rgba(15,23,42,.22);
}
body.nav-drawer-open .nav-drawer-overlay { opacity: 1; pointer-events: auto; }
body.nav-drawer-open .nav-drawer { transform: translateX(0); }
body.nav-drawer-open { overflow: hidden; }

.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border-soft);
}
.nav-drawer-close {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface-soft); border: none; color: var(--text-muted);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 140ms ease, color 140ms ease;
}
.nav-drawer-close:hover { background: var(--border-soft); color: var(--text); }

.nav-drawer-body {
  flex: 1; overflow-y: auto; padding: 8px 0 16px;
}
.nav-drawer-section { padding: 14px 16px 6px; }
.nav-drawer-section + .nav-drawer-section { border-top: 1px solid var(--border-soft); padding-top: 18px; margin-top: 6px; }
.nav-drawer-section-label {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .8px;
  padding: 0 10px 8px;
}

/* GRID: 2-col cards for the marquee "Get Started" section */
.nav-drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nav-drawer-grid a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 12px;
  text-decoration: none; color: var(--text);
  transition: background 140ms ease, transform 140ms ease;
  min-height: 64px;
}
.nav-drawer-grid a:hover { background: var(--brand-primary-soft); transform: translateY(-1px); }
.nav-drawer-grid a:hover .nav-drawer-link-h { color: var(--brand-primary); }
.nav-drawer-ico {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-drawer-link-h { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -.005em; }
.nav-drawer-link-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.35; }

/* LIST: secondary sections with chevron rows */
.nav-drawer-list { display: flex; flex-direction: column; }
.nav-drawer-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--text); text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.nav-drawer-list a:hover { background: var(--brand-primary-soft); color: var(--brand-primary); }
.nav-drawer-chev { color: var(--text-muted); font-size: 20px; line-height: 1; }
.nav-drawer-list a:hover .nav-drawer-chev { color: var(--brand-primary); transform: translateX(2px); }
.nav-drawer-chev { transition: transform 140ms ease, color 140ms ease; }

/* FOOT: sticky CTA + license meta */
.nav-drawer-foot {
  padding: 16px 20px 22px; border-top: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  background: linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
}
.nav-drawer-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 18px; border-radius: 12px;
  background: var(--brand-primary); color: #fff;
  font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 8px 20px rgba(124,58,237,.32);
  transition: background 160ms ease, transform 160ms ease;
}
.nav-drawer-cta:hover { background: var(--brand-primary-hover); transform: translateY(-1px); }
.nav-drawer-foot-meta {
  display: flex; gap: 8px; justify-content: center;
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}

/* On very narrow screens make the grid stack */
@media (max-width: 380px) {
  .nav-drawer-grid { grid-template-columns: 1fr; }
}

/* Legacy hamburger styles (kept for any embedded pages that still reference
   the old class — harmless if unused). */
.nav-drawer-links {
  display: flex; flex-direction: column; padding: 10px 12px; flex: 1; overflow-y: auto;
}
.nav-drawer-links a {
  padding: 14px 14px; border-radius: 10px;
  font-size: 16px; font-weight: 600; color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  transition: background var(--transition), color var(--transition);
}
.nav-drawer-links a:hover { background: var(--brand-primary-soft); color: var(--brand-primary); }
.nav-drawer-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 10px;
  background: #fff; border: 1.5px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.nav-drawer-phone:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.nav-drawer-link-sm {
  font-size: 12.5px; color: var(--text-muted); text-align: center;
  padding: 6px; text-decoration: none;
}
.nav-drawer-link-sm:hover { color: var(--brand-primary); }


/* ════════════════════════════════════════════════════════════════════════
   RATE TICKER section
   ════════════════════════════════════════════════════════════════════════ */
.rate-ticker-section { padding: 64px 0 56px; background: var(--surface); }
.rate-ticker-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 26px;
}
.rate-ticker-title {
  font-size: clamp(24px, 3vw, 32px); font-weight: 800;
  letter-spacing: -.025em; color: var(--text); line-height: 1.15;
  margin-bottom: 6px;
}
.rate-ticker-sub {
  font-size: 14.5px; color: var(--text-soft); line-height: 1.55;
  max-width: 560px;
}
.rate-ticker-cta {
  display: inline-flex; align-items: center;
  padding: 12px 22px; border-radius: 999px;
  background: #fff; color: var(--text);
  font-weight: 700; font-size: 14px; text-decoration: none;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.rate-ticker-cta:hover {
  color: var(--brand-primary); border-color: var(--brand-primary);
  transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,70,229,.18);
}

.rate-ticker-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.rate-ticker-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 22px;
  background: var(--surface-soft); border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.rate-ticker-bar-label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rate-ticker-bar-label strong { font-weight: 700; color: var(--text); font-size: 14px; }
.rate-as-of { color: var(--text-muted); font-size: 12.5px; }
.rate-ticker-discl {
  color: var(--brand-primary); font-weight: 600; font-size: 13px;
  text-decoration: none; white-space: nowrap;
}
.rate-ticker-discl:hover { text-decoration: underline; }

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
}
.dot.pulse { box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: dot-pulse 2s infinite; }
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.rate-track-wrap { overflow: hidden; position: relative; }
.rate-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr); gap: 0;
}

/* Sliding-billboard marquee variant */
.rate-marquee { mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); }
.rate-track-marquee {
  display: flex; grid-auto-flow: unset; grid-auto-columns: unset;
  width: max-content;
  animation: rate-marquee-scroll 56s linear infinite;
  will-change: transform;
}
.rate-track-marquee .rate-tile {
  flex: 0 0 240px; max-width: 240px;
}
.rate-marquee:hover .rate-track-marquee { animation-play-state: paused; }
@keyframes rate-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* second copy aligns with first */
}
@media (prefers-reduced-motion: reduce) {
  .rate-track-marquee { animation: none; }
}
.rate-tile {
  padding: 20px 22px; border-right: 1px solid var(--border-soft);
  background: var(--surface);
  transition: background var(--transition);
}
.rate-tile:last-child { border-right: none; }
.rate-tile:hover { background: var(--brand-primary-soft); }
.rate-tile-name {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px;
}
.rate-tile-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 5px 0; font-size: 13px;
}
.rt-k { color: var(--text-muted); font-weight: 500; }
.rt-v { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rt-v.rt-strong { font-size: 18px; font-weight: 800; letter-spacing: -.015em; color: var(--brand-dark); }
.rt-fee { color: var(--text-muted); font-weight: 500; font-size: 11.5px; }
.rate-tile-delta {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border);
  font-size: 11.5px; font-weight: 700; letter-spacing: -.005em;
  display: inline-flex; align-items: center; gap: 5px;
}
.delta-down { color: var(--success); }
.delta-up   { color: var(--error); }
.delta-flat { color: var(--text-muted); }


/* ════════════════════════════════════════════════════════════════════════
   HIGHLIGHT TILES — 3-card hero strip
   ════════════════════════════════════════════════════════════════════════ */
.highlight-section { padding: 88px 0; background: var(--bg); }
.highlight-title {
  text-align: center; font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -.025em; color: var(--text);
  line-height: 1.1; margin-bottom: 40px;
}
.hi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .hi-grid { grid-template-columns: 1fr; } }
.hi-card {
  position: relative; padding: 36px 34px 64px;
  border-radius: var(--radius-lg); text-decoration: none;
  color: var(--text); min-height: 260px;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.hi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.hi-indigo { background: linear-gradient(155deg, #EEF2FF 0%, #E0E7FF 100%); }
.hi-slate  { background: linear-gradient(155deg, #F1F5F9 0%, #E2E8F0 100%); }
.hi-mint   { background: linear-gradient(155deg, #ECFDF5 0%, #D1FAE5 100%); }
.hi-card .hi-icon { color: var(--brand-dark); margin-bottom: 22px; }
.hi-indigo .hi-icon { color: var(--brand-primary); }
.hi-mint   .hi-icon { color: #065F46; }
.hi-card h3 {
  font-size: 22px; font-weight: 800; letter-spacing: -.015em;
  color: var(--text); margin-bottom: 10px; line-height: 1.2;
}
.hi-card p {
  font-size: 14.5px; color: var(--text-soft); line-height: 1.55;
}
.hi-card .hi-arrow {
  position: absolute; left: 30px; bottom: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.hi-card:hover .hi-arrow {
  background: var(--brand-dark); color: #fff;
  transform: translate(4px, 0);
}


/* ════════════════════════════════════════════════════════════════════════
   GOAL PICKER — split card with numbered destination list
   ════════════════════════════════════════════════════════════════════════ */
.goal-section { padding: 80px 0; background: var(--surface); }
.goal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) { .goal-card { grid-template-columns: 1fr; padding: 32px; gap: 32px; } }
.goal-left { max-width: 420px; }
.goal-title {
  font-size: clamp(28px, 3.5vw, 38px); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.15; color: var(--text);
  margin-bottom: 14px;
}
.goal-sub {
  font-size: 16px; color: var(--text-soft); line-height: 1.6;
}
.goal-right { display: flex; flex-direction: column; gap: 10px; }
.goal-pick {
  display: grid; grid-template-columns: 50px 1fr 24px;
  align-items: center; gap: 18px;
  padding: 18px 22px;
  background: var(--bg);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  text-decoration: none; color: var(--text);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.goal-pick:hover {
  background: #fff; border-color: var(--brand-primary);
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  color: var(--text);
}
.goal-pick-num {
  font-family: var(--mono, monospace); font-size: 12.5px; font-weight: 800;
  color: var(--brand-primary); letter-spacing: -.005em;
}
.goal-pick-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  letter-spacing: -.01em; margin-bottom: 3px;
}
.goal-pick-sub {
  font-size: 13px; color: var(--text-muted);
}
.goal-pick-arrow {
  font-size: 22px; color: var(--brand-primary); font-weight: 700;
  transition: transform var(--transition);
}
.goal-pick:hover .goal-pick-arrow { transform: translateX(4px); }


/* ════════════════════════════════════════════════════════════════════════
   /home-loans page
   ════════════════════════════════════════════════════════════════════════ */

/* Hero */
.hl-hero { position: relative; padding: 80px 0 64px; overflow: hidden; background: linear-gradient(180deg, #FAFBFF 0%, var(--bg) 100%); }
.hl-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(700px 380px at 80% -10%, rgba(79,70,229,.12), transparent 60%),
    radial-gradient(500px 380px at 10% 30%, rgba(6,182,212,.08), transparent 60%);
}
.hl-hero .container { position: relative; z-index: 1; }
.hl-hero-inner { max-width: 800px; }
.hl-title { font-size: clamp(40px, 6vw, 68px); line-height: 1.05;
  font-weight: 800; letter-spacing: -.03em; color: var(--text); margin-bottom: 20px; }
.hl-grad { background: linear-gradient(120deg, var(--brand-primary) 0%, #818CF8 50%, var(--brand-accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-lead { font-size: 19px; line-height: 1.55; color: var(--text-soft); margin-bottom: 32px; }
.hl-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hl-hero-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-muted); }
.hl-hero-meta span { font-weight: 500; }


/* Quiz */
.hl-quiz-section { padding: 56px 0; background: var(--surface); }
.hl-quiz-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow); }
@media(max-width:720px){ .hl-quiz-card { padding: 26px; } }
.hl-quiz-head { display: grid; grid-template-columns: 1fr 220px; gap: 32px; align-items: center; margin-bottom: 28px; }
@media(max-width:720px){ .hl-quiz-head { grid-template-columns: 1fr; gap: 18px; } }
.hl-quiz-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.025em; color: var(--text); margin-bottom: 6px; }
.hl-quiz-sub { font-size: 14.5px; color: var(--text-soft); line-height: 1.55; }
.hl-quiz-progress { text-align: right; }
.hl-quiz-progress-bar { height: 6px; background: var(--surface-soft); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.hl-quiz-progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--brand-primary), #818CF8); border-radius: 999px; transition: width 280ms cubic-bezier(.4,0,.2,1); }
.hl-quiz-progress-label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.hl-quiz-step { display: none; animation: hl-fade .25s ease; }
.hl-quiz-step.active { display: block; }
@keyframes hl-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hl-q-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin-bottom: 6px; }
.hl-q-help { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }
.hl-q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hl-q-grid-4 { grid-template-columns: repeat(4, 1fr); }
.hl-q-grid-2 { grid-template-columns: 1fr 1fr; }
@media(max-width:720px){ .hl-q-grid, .hl-q-grid-4, .hl-q-grid-2 { grid-template-columns: 1fr; } }
.hl-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  text-align: left; font-family: inherit; cursor: pointer;
  transition: all var(--transition);
}
.hl-opt:hover { border-color: var(--brand-primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); background: var(--brand-primary-soft); }
.hl-opt.selected { border-color: var(--brand-primary); background: var(--brand-primary-soft); box-shadow: 0 0 0 3px var(--brand-primary-soft); }
.hl-opt-icon { font-size: 26px; flex-shrink: 0; }
.hl-opt-text { display: flex; flex-direction: column; gap: 2px; }
.hl-opt-text strong { font-size: 15.5px; font-weight: 700; color: var(--text); letter-spacing: -.005em; }
.hl-opt-text small { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.hl-opt-mini { flex-direction: column; align-items: flex-start; padding: 14px 16px; gap: 4px; }
.hl-opt-mini strong { font-size: 15px; }
.hl-opt-mini small { color: var(--text-muted); font-size: 12px; }
.hl-quiz-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.hl-back, .hl-skip { background: none; border: none; color: var(--brand-primary); font-weight: 600; cursor: pointer; padding: 8px 0; font-family: inherit; font-size: 13.5px; }
.hl-back:hover, .hl-skip:hover { text-decoration: underline; }

/* Quiz results */
.hl-rec-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.hl-rec {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--brand-primary-soft);
  border: 1.5px solid var(--brand-primary-light); border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  transition: all var(--transition);
}
.hl-rec:hover { background: #fff; border-color: var(--brand-primary); transform: translateX(4px); box-shadow: var(--shadow-sm); color: var(--text); }
.hl-rec-name { font-size: 15.5px; font-weight: 700; color: var(--text); letter-spacing: -.005em; }
.hl-rec-best { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.hl-rec-arrow { font-size: 22px; color: var(--brand-primary); font-weight: 700; }
.hl-quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }


/* Filters + cards */
.hl-options-section { padding: 88px 0; background: var(--bg); }
.hl-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.hl-filter {
  padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 13.5px;
  cursor: pointer; transition: all var(--transition); font-family: inherit;
}
.hl-filter:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.hl-filter.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.30); }

.hl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media(max-width:980px){ .hl-cards { grid-template-columns: 1fr 1fr; } }
@media(max-width:640px){ .hl-cards { grid-template-columns: 1fr; } }
.hl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px 22px;
  display: flex; flex-direction: column;
  transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.hl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-primary-light); }
.hl-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.hl-card-icon { font-size: 32px; line-height: 1; width: 54px; height: 54px; border-radius: 12px; background: var(--brand-primary-soft); display: flex; align-items: center; justify-content: center; }
.hl-card-best { text-align: right; max-width: 60%; }
.hl-card-best span { display: block; font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.hl-card-best strong { display: block; font-size: 12.5px; color: var(--text); font-weight: 600; line-height: 1.4; }
.hl-card-name { font-size: 20px; font-weight: 800; letter-spacing: -.015em; color: var(--text); margin-bottom: 8px; }
.hl-card-desc { font-size: 14px; color: var(--text-soft); line-height: 1.55; flex: 1; margin-bottom: 18px; }
.hl-card-cta-row { display: flex; gap: 8px; align-items: center; }
.hl-card-cta { padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; transition: all var(--transition); }
.hl-cta-primary { background: var(--brand-primary); color: #fff; box-shadow: 0 2px 6px rgba(79,70,229,.20); }
.hl-cta-primary:hover { background: var(--brand-primary-hover); color: #fff; box-shadow: 0 6px 14px rgba(79,70,229,.30); transform: translateY(-1px); }
.hl-cta-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.hl-cta-ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.hl-empty { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.hl-empty h3 { font-size: 20px; color: var(--text); font-weight: 700; margin-bottom: 8px; }
.hl-empty-reset { background: none; border: none; color: var(--brand-primary); font-weight: 700; cursor: pointer; font-family: inherit; text-decoration: underline; font-size: inherit; }


/* Process */
.hl-process { padding: 88px 0; background: var(--surface); }
.hl-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media(max-width:900px){ .hl-process-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:520px){ .hl-process-grid { grid-template-columns: 1fr; } }
.hl-process-step {
  padding: 28px 24px; background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); position: relative;
  transition: all var(--transition);
}
.hl-process-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-primary-light); }
.hl-process-num {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #818CF8 100%);
  color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; box-shadow: 0 3px 10px rgba(79,70,229,.30);
}
.hl-process-step h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin-bottom: 8px; }
.hl-process-step p { font-size: 13.5px; color: var(--text-soft); line-height: 1.55; margin-bottom: 14px; }
.hl-process-time { font-size: 11px; font-weight: 700; color: var(--brand-primary); background: var(--brand-primary-soft); padding: 3px 10px; border-radius: 999px; letter-spacing: -.005em; }


/* FAQ */
.hl-faq { padding: 88px 0; background: var(--bg); }
.hl-faq-container { max-width: 860px; }
.hl-faq-list { display: flex; flex-direction: column; gap: 10px; }
.hl-faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hl-faq-item[open] { border-color: var(--brand-primary-light); box-shadow: var(--shadow-sm); }
.hl-faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-size: 15.5px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  letter-spacing: -.005em;
}
.hl-faq-item summary::-webkit-details-marker { display: none; }
.hl-faq-chev {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0; line-height: 1;
  transition: transform var(--transition), background var(--transition);
}
.hl-faq-item[open] .hl-faq-chev { background: var(--brand-primary); color: #fff; transform: rotate(45deg); }
.hl-faq-item > p { padding: 0 22px 20px; color: var(--text-soft); font-size: 14.5px; line-height: 1.65; }


/* ════════════════════════════════════════════════════════════════════════
   /calculators landing page
   ════════════════════════════════════════════════════════════════════════ */
.calcs-hero {
  padding: 64px 0 36px;
  background: linear-gradient(180deg, #FAFBFF 0%, var(--bg) 100%);
  text-align: center;
}
.calcs-title {
  font-size: clamp(38px, 5vw, 60px); font-weight: 800;
  letter-spacing: -.03em; color: var(--text); line-height: 1.05;
  margin: 16px auto 18px; max-width: 880px;
}
.calcs-lead {
  font-size: 17px; color: var(--text-soft); line-height: 1.6;
  max-width: 620px; margin: 0 auto;
}

.calcs-filter-wrap { padding: 18px 0 6px; }
.calcs-filter {
  display: inline-flex; padding: 6px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 999px; gap: 4px;
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.calcs-filter-wrap .container { display: flex; justify-content: center; }
.calcs-pill {
  padding: 10px 22px; border-radius: 999px;
  background: transparent; border: none;
  color: var(--text-soft); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all var(--transition);
  font-family: inherit;
}
.calcs-pill:hover { color: var(--text); }
.calcs-pill.active {
  background: var(--surface); color: var(--text);
  box-shadow: 0 1px 3px rgba(15,23,42,.10), 0 1px 1px rgba(15,23,42,.05);
}

.calcs-grid-section { padding: 40px 0 64px; }
.calcs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 760px) { .calcs-grid { grid-template-columns: 1fr; } }
.calcs-card {
  position: relative;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 32px 28px;
  text-decoration: none; color: var(--text);
  transition: all var(--transition);
  display: flex; flex-direction: column;
  min-height: 220px;
}
.calcs-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.calcs-card.soon { opacity: 0.78; }
.calcs-card.soon:hover { opacity: 1; }

.calcs-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--brand-primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 18px;
  transition: background var(--transition);
}
.calcs-card:hover .calcs-icon { background: var(--brand-primary); }
.calcs-card:hover .calcs-icon span { filter: brightness(1.5); }

.calcs-card h3 {
  font-size: 22px; font-weight: 800; letter-spacing: -.02em;
  color: var(--text); margin-bottom: 8px; line-height: 1.2;
}
.calcs-card p {
  font-size: 14.5px; color: var(--text-soft); line-height: 1.6;
  margin-bottom: 16px; flex: 1;
}
.calcs-arrow {
  position: absolute; top: 32px; right: 32px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-soft);
  transition: all var(--transition);
}
.calcs-card:hover .calcs-arrow {
  background: var(--brand-primary); color: #fff; border-color: var(--brand-primary);
  transform: translateX(3px);
}
.calcs-soon-pill {
  display: inline-block; margin-top: 4px;
  padding: 4px 11px; border-radius: 999px;
  background: #FEF3C7; color: #92400E;
  font-size: 11px; font-weight: 700; letter-spacing: -.005em;
  align-self: flex-start;
}

.calcs-empty {
  text-align: center; padding: 80px 24px;
  color: var(--text-muted); font-size: 15px;
}
.calcs-empty p { margin-bottom: 18px; }


/* ════════════════════════════════════════════════════════════════════════
   Legal pages (/privacy, /terms)
   ════════════════════════════════════════════════════════════════════════ */
.legal-hero {
  padding: 56px 0 32px; background: linear-gradient(180deg, #FAFBFF 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-soft);
}
.legal-title {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em;
  color: var(--text); line-height: 1.05; margin: 16px 0 14px;
}
.legal-meta { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.legal-body { padding: 56px 0 88px; background: var(--surface); }
.legal-container { max-width: 760px; }
.legal-container h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--text);
  margin: 44px 0 12px; padding-top: 8px;
}
.legal-container h3 {
  font-size: 17px; font-weight: 700; color: var(--text);
  margin: 24px 0 8px; letter-spacing: -.01em;
}
.legal-container p,
.legal-container li {
  font-size: 15px; line-height: 1.7; color: var(--text-soft); margin-bottom: 12px;
}
.legal-container ul {
  margin: 0 0 16px 0; padding-left: 22px;
}
.legal-container li { margin-bottom: 8px; }
.legal-container a { color: var(--brand-primary); font-weight: 500; }
.legal-container a:hover { color: var(--brand-primary-hover); text-decoration: underline; }
.legal-container .legal-intro {
  font-size: 16px; color: var(--text); line-height: 1.7;
  padding: 18px 22px; background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-light); border-radius: var(--radius);
  margin-bottom: 26px;
}
.legal-container .legal-note {
  font-size: 14px; color: var(--text-soft); line-height: 1.65;
  padding: 14px 18px; background: #FEF9E7;
  border-left: 4px solid #F59E0B; border-radius: var(--radius-sm);
  margin-bottom: 30px;
}
.legal-container .legal-foot {
  margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border-soft);
  font-size: 14px; color: var(--text-muted);
}


/* ════════════════════════════════════════════════════════════════════════
   TCPA consent block (lead-form bottom)
   ════════════════════════════════════════════════════════════════════════ */
.tcpa-consent {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 18px 0; padding: 14px 16px;
  background: var(--bg); border: 1px dashed var(--border);
  border-radius: var(--radius-sm); font-size: 12.5px;
  color: var(--text-soft); line-height: 1.55;
}
.tcpa-consent input[type=checkbox] {
  margin-top: 2px; width: 16px; height: 16px;
  accent-color: var(--brand-primary); flex-shrink: 0;
}
.tcpa-consent label { cursor: pointer; }
.tcpa-consent strong { color: var(--text); font-weight: 600; }
.tcpa-consent a { color: var(--brand-primary); font-weight: 600; }


/* ════════════════════════════════════════════════════════════════════════
   Cookie consent banner (strictly-necessary only)
   ════════════════════════════════════════════════════════════════════════ */
.md-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 1000; max-width: 720px; margin: 0 auto;
  background: var(--brand-dark); color: #fff;
  border-radius: 14px; box-shadow: 0 18px 50px rgba(15,23,42,.25);
  transform: translateY(120%); opacity: 0;
  transition: transform 280ms cubic-bezier(.4,0,.2,1), opacity 200ms;
}
.md-cookie.show { transform: translateY(0); opacity: 1; }
.md-cookie-inner {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px;
}
.md-cookie-text {
  flex: 1; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.88);
}
.md-cookie-text strong { color: #fff; font-weight: 700; }
.md-cookie-text a {
  color: #A5B4FC; text-decoration: underline; font-weight: 500;
}
.md-cookie-text a:hover { color: #C7D2FE; }
.md-cookie-btn {
  padding: 9px 18px; border-radius: 8px;
  background: var(--brand-primary); color: #fff;
  border: none; font-weight: 700; font-size: 13.5px;
  font-family: inherit; cursor: pointer; flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.md-cookie-btn:hover { background: var(--brand-primary-hover); transform: translateY(-1px); }
@media (max-width: 600px) {
  .md-cookie-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .md-cookie-btn { width: 100%; }
}
