/* Home v1: homepage styled to match the site's own design system.
   Loads ONLY on the homepage (see the home() emit head). All type is
   Figtree at the site's H1/H2/H3 weights and sizes. All colors, radii,
   shadows, and components come from site.v5.css tokens. No new tokens.
   TYPE FLOOR (enforced here, homepage only): no copy text below
   0.88rem (14px); field labels 0.95rem bold. */

/* ---------- Hero: a real, visible photo behind the form. The old
   hero was a Miami condo skyline under a 88-96% white wash, so the
   photo was invisible and the hero read as plain white. This override
   (homepage only, loaded after site.v5.css) swaps in a real sunny
   Florida single-family home with palms (assets/hero-home.v1.jpg,
   Pexels, Arian Fernandez) and lightens the wash so the photo is
   unmistakably there. The wash is a left-to-right fade: bright white
   behind the text column on the left (navy H1 and slate body stay
   readable), fading to a light wash on the right so the photo shows
   clearly around the white gate card. No dark overlay; the site
   stays light, navy and blue. ---------- */
.hero{background:linear-gradient(90deg,rgba(255,255,255,.88) 0%,rgba(255,255,255,.72) 38%,rgba(255,255,255,.52) 62%,rgba(255,255,255,.42) 100%),url('/assets/hero-home.v2.jpg') center 30%/cover no-repeat}
.hero .lede{font-size:1.15rem}
.hero .muted{color:var(--muted)}

/* ---------- Benchmark: the site's highlighted-info treatment
   (sky surface, blue left edge), not a gold border. ---------- */
.hero .benchmark{background:var(--sky);border-left:4px solid var(--blue);border-radius:0 var(--r-sm) var(--r-sm) 0;padding:14px 16px;font-size:.95rem;line-height:1.55;color:var(--ink);margin:22px 0 0;max-width:56ch}
.hero .benchmark strong{color:var(--navy)}
.hero .benchmark .bm-rate{color:var(--blue);font-weight:800}

/* ---------- Fork: the site's .seg segmented control, three columns
   (r14: Buy / Refinance / Invest). Selected button is blue with white
   text, like the site's segment. ---------- */
.hero .fork{display:grid;grid-template-columns:1fr 1fr 1fr;border:1px solid var(--line-2);border-radius:10px;overflow:hidden}
.hero .fork-btn{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 16px;border:0;border-right:1px solid var(--line-2);background:#fff;color:var(--navy);cursor:pointer;text-align:left;font-family:var(--font)}
.hero .fork-btn:last-child{border-right:0}
.hero .fork-btn:hover{background:var(--sky)}
.hero .fork-btn.on{background:var(--blue);color:#fff}
.hero .fork-btn .fork-t{font-size:1rem;font-weight:700;line-height:1.2}
.hero .fork-btn .fork-s{font-size:.88rem;font-weight:500;opacity:.85}

/* The hero grid stacks below 1060px (site.v5.css). The 56px desktop
   gap is horizontal there, but vertical once stacked, which left a
   large empty gap between the fork and the gate on phones. Tighten it.
   The stacked hero is a single full-width column, so the desktop
   left-to-right fade would leave the right side of the text over a
   light wash. Use a brighter top-to-bottom fade instead: bright
   behind the headline at the top, still light enough at the bottom
   for the gate and chips, with the photo clearly visible throughout. */
@media (max-width:1060px){
  .hero .grid{gap:16px}
  .hero{background:linear-gradient(180deg,rgba(255,255,255,.86) 0%,rgba(255,255,255,.74) 40%,rgba(255,255,255,.64) 100%),url('/assets/hero-home.v2-768.jpg') center 22%/cover no-repeat}
}
/* Small phones get the 390w hero (22 KB). */
@media (max-width:480px){
  .hero{background:linear-gradient(180deg,rgba(255,255,255,.86) 0%,rgba(255,255,255,.74) 40%,rgba(255,255,255,.64) 100%),url('/assets/hero-home.v2-390.jpg') center 22%/cover no-repeat}
}

/* ---------- Gate card: the site's .starter form card
   (white, blue top edge, radius 14px, large shadow). ---------- */
.hero .qq-gate-card{background:#fff;border:1px solid var(--line);border-top:4px solid var(--blue);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);padding:24px}
.hero .qq-gate-card h3{font-size:1.25rem;font-weight:700;color:var(--navy);margin-bottom:6px}
.hero .qq-gate-card .muted{margin:0 0 14px;line-height:1.5}
.hero .qq-gate-card .field{margin-bottom:10px;gap:5px}
.hero .qq-gate-card .field label{font-size:.95rem;font-weight:700}
.hero .qq-gate-card .field input,.hero .qq-gate-card .field select{padding:11px 14px;min-height:46px}
.hero .qq-gate-card .row2{gap:10px}
.hero .qq-gate-card .consent{font-size:.88rem;line-height:1.55;margin-top:8px;gap:8px}
.hero .qq-gate-card .err{font-size:.88rem}
.hero .qq-gate-card .btn-primary{font-size:1.05rem;font-weight:700;padding:15px 20px}
.hero .qq-gate-card .fine{font-size:.88rem;line-height:1.55;margin-top:8px;color:var(--muted)}
.hero .chips{color:var(--muted);font-size:.92rem;line-height:1.55;margin-top:104px}
.hero .qq-widget .fine{color:var(--muted);font-size:.9rem;line-height:1.55}

/* ---------- Trust band: the site's mist (alt) section. Stat cards use
   the site's .stat-card / .stat-num tokens; statement cards use the
   site's .card with the blue top edge, like .cta-card. The whole band
   is centered: stat numbers are centered, so the statement cards are
   centered too, with a centered button, instead of left-aligned text
   under centered stats. ---------- */
section.s.trust-band{background:var(--mist);border-block:1px solid var(--line);padding:48px 0 44px}
.trust-band .stat-band{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:760px;margin:0 auto}
.trust-band .stat-big{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 24px;box-shadow:var(--shadow);text-align:center}
.trust-band .stat-num{display:block;font:800 2.4rem/1 var(--font);color:var(--navy);letter-spacing:-.02em;font-variant-numeric:tabular-nums;margin-bottom:6px}
.trust-band .stat-cap{color:var(--muted);font-size:1rem;font-weight:600}
.trust-band .stmt-grid{gap:20px}
.trust-band .stmt-card{background:#fff;border:1px solid var(--line);border-top:4px solid var(--blue);border-radius:var(--r);padding:24px;box-shadow:var(--shadow);text-align:center}
.trust-band .stmt-card h3{font-size:1.2rem;font-weight:700;line-height:1.3;color:var(--navy);margin-bottom:8px;text-align:center}
.trust-band .stmt-card p{display:block;-webkit-line-clamp:unset;overflow:visible;font-size:.96rem;color:var(--muted);margin:0 0 16px;text-align:center}
.trust-band .stmt-card .btn{display:flex;width:fit-content;min-width:250px;max-width:100%;margin-left:auto;margin-right:auto}
/* Statement card photo: real photography on top of the card, same
   rounded corners as the site's cards, inside the padding so the
   blue top edge stays visible. 16:9, cropped at build time. */
.trust-band .stmt-card .stmt-photo{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:var(--r-sm);margin-bottom:20px}

/* ---------- Process: a centered, guided stepper. Desktop is a
   horizontal four-step flow with a connecting line running behind
   the numbered circles (each line runs from one circle to the
   next); phones get a centered vertical timeline with the circles
   on a centered line and the titles centered under each circle. ---------- */
section.s.process-sec{padding:64px 0}
.process-sec .sec-head.center{justify-content:center;align-items:center;text-align:center;margin-bottom:32px}
.process-sec .steps li{position:relative;text-align:center}
.process-sec .steps li::before{margin:0 auto 14px}
.process-sec .steps li h3{margin-bottom:0}
.process-sec .steps li:not(:last-child)::after{content:'';position:absolute;top:20px;left:calc(50% + 24px);right:calc(-50% - 4px);height:2px;background:var(--sky-2)}
.process-sec .process-note{font-weight:700;color:var(--navy);font-size:1.05rem;text-align:center}
@media(max-width:1060px){
  /* Two-column grid: no horizontal connector, cells stay centered. */
  .process-sec .steps li:not(:last-child)::after{display:none}
}

/* ---------- Box fork: the site's .card with the blue top rule,
   like .loans-home .card. The "Open the box" link uses the site's
   .card .go treatment (blue text link). ---------- */
section.s.boxes-sec{background:var(--mist);padding:64px 0;border-block:1px solid var(--line)}
.boxes-sec .card{border:1px solid var(--line);border-top:3px solid var(--blue);border-radius:var(--r);padding:24px;box-shadow:none}
.boxes-sec a.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:var(--blue)}
.boxes-sec .card h3{font-size:1.2rem;font-weight:700;line-height:1.3;color:var(--navy)}
.boxes-sec .card p{font-size:.96rem;color:var(--muted)}
.boxes-sec .card .checks{margin:16px 0;padding:0}
.boxes-sec .card .checks li{font-size:.95rem;color:var(--ink);padding-left:32px;margin-bottom:8px;line-height:1.45}
.boxes-sec .card .checks li:last-child{margin-bottom:0}
.boxes-sec .card .more{display:block;margin-top:auto;padding-top:16px;font:700 .95rem var(--font);color:var(--blue)}
/* Box card photo: real photography on top of the card, same rounded
   corners as the site's cards, inside the padding so the blue top
   edge stays visible. 3:2, cropped at build time. */
.boxes-sec .card .box-photo{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:var(--r-sm);margin-bottom:16px}

/* ---------- Loan programs: the site's .state-pills treatment
   (pill radius, 600 weight, blue on hover). Only the top 6 pills
   show at first; the rest sit in a second list revealed by the
   "See more programs" toggle, so the section is not a wall of pills. ---------- */
section.s.programs-sec{padding:64px 0}
.programs-sec .pills{gap:10px}
.programs-sec .pills-more{margin-top:10px}
.programs-sec .pills a{display:inline-flex;align-items:center;padding:9px 18px;border:1px solid var(--line-2);border-radius:999px;background:#fff;color:var(--navy);font:600 .94rem var(--font);transition:border-color .15s,color .15s,box-shadow .15s}
.programs-sec .pills a:hover{border-color:var(--blue);color:var(--blue);text-decoration:none;box-shadow:var(--shadow)}
.programs-sec .pills-toggle{margin:16px 0 0}
.programs-sec .pills-toggle button{background:none;border:0;padding:0;cursor:pointer;font:700 1rem var(--font);color:var(--blue)}
.programs-sec .pills-toggle button:hover{text-decoration:underline}
.programs-sec .view-all a{font-size:1rem;font-weight:700}

/* ---------- Already have a loan: a designed card on the mist band.
   White card with the site's blue top edge, the question as a
   heading, a short subline, and two clear action buttons. ---------- */
section.s.loan-line{background:var(--mist);border-block:1px solid var(--line);padding:36px 0}
.loan-line-card{background:#fff;border:1px solid var(--line);border-top:4px solid var(--blue);border-radius:var(--r);padding:32px 28px;box-shadow:var(--shadow);text-align:center;max-width:720px;margin:0 auto}
.loan-line-card h2{margin:0 0 8px}
.loan-line-card p{color:var(--muted);font-size:1.05rem;margin:0 0 20px}
.loan-line-card .btn-row{justify-content:center}

/* ---------- Partners: the site's mist (alt) section. Navy H2,
   blue eyebrow, blue primary button. No dark background. ---------- */
section.s.partners-sec{padding:64px 0}
.partners-sec .wrap{text-align:center}
.partners-sec .sec-head{display:block;text-align:center}
.partners-sec .sec-head p{margin:14px auto 0;text-align:center;font-size:1.05rem;max-width:60ch}

/* ---------- Closing line (r17): a navy closing band, not empty
   white. White heading, the same primary button, a short reassurance
   line, and large faint dollar signs as a restrained background
   motif (mortgage iconography, premium not loud). ---------- */
section.s.closing-line{background:#082a57;color:#fff;padding:72px 0;text-align:center;position:relative;overflow:hidden;border-top:0}
.closing-line::before{content:'$  $  $  $  $';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:11rem;font-weight:800;letter-spacing:.08em;color:rgba(255,255,255,.045);white-space:nowrap;pointer-events:none}
.closing-line .wrap{position:relative;z-index:1}
.closing-line h2{color:#fff;margin:0 0 20px}
.closing-line .closing-sub{color:#b9cde6;font-size:.95rem;margin:18px 0 0}

/* ---------- Mobile ---------- */
@media (max-width:640px){
  .hero .qq-gate-card{padding:20px}
  .hero .qq-gate-card .field input,.hero .qq-gate-card .field select{min-height:46px}
  .hero .fork-btn{padding:12px 10px}
  .hero .fork-btn .fork-s{font-size:.8rem}
  .trust-band{padding:32px 0 28px}
  .trust-band .stat-band{grid-template-columns:1fr;gap:12px;margin-bottom:0}
  section.s.process-sec,section.s.boxes-sec,section.s.programs-sec,section.s.partners-sec{padding:36px 0}
  section.s.reviews-sec,section.s.states-sec,section.s.careers-sec,section.s.compliance-sec{padding:36px 0}
  section.s.loan-line{padding:20px 0}
  section.s.ratewatch-sec{padding:36px 0}
  section.s.closing-line{padding:56px 0}
  .sec-head{margin-bottom:20px}
  .programs-sec .sec-head{align-items:center;text-align:center}
  .programs-sec .pills{justify-content:center}
  .programs-sec .pills-toggle{text-align:center}
  /* Process on phones: a centered vertical timeline. The numbered
     circle sits on a centered line, the title is centered under it,
     and a short connector joins each circle to the next. */
  .process-sec .steps{gap:32px}
  .process-sec .steps li{display:block;text-align:center}
  .process-sec .steps li::before{margin:0 auto 12px}
  .process-sec .steps li h3{margin:0}
  /* The connector runs only in the gap between items, so it never
     crosses a centered title. */
  .process-sec .steps li:not(:last-child)::after{display:block;content:'';position:absolute;left:50%;top:100%;bottom:-32px;width:3px;background:var(--sky-2);transform:translateX(-50%)}
  .process-sec .sec-head{margin-bottom:24px}
  .process-sec .process-note{margin-top:16px}
}

/* ---------- Reviews section (homepage). Tabs + honest empty state. No
   invented reviews, names, stars or counts anywhere. ---------- */
.reviews-sec .review-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
.reviews-sec .review-tab{appearance:none;border:1px solid var(--line);background:#fff;color:var(--navy);font:600 .95rem var(--font);border-radius:999px;padding:10px 18px;cursor:pointer}
.reviews-sec .review-tab.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.reviews-sec .review-empty{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:28px;box-shadow:var(--shadow);text-align:center;max-width:720px;margin:0 auto}
.reviews-sec .review-empty-title{font-size:1.25rem;font-weight:700;color:var(--navy);margin-bottom:8px}
.reviews-sec .review-empty p{color:var(--muted);margin:0 0 12px}
.reviews-sec .review-empty p:last-child{margin-bottom:0}

/* ---------- Rate Watch section (homepage). Phone mockup, no fake rates. ---------- */
.ratewatch-sec .rw-wrap{display:grid;grid-template-columns:300px 1fr;gap:48px;align-items:center;max-width:880px;margin:0 auto}
.ratewatch-sec .rw-phone{width:300px;max-width:100%;margin:0 auto;background:#0d1b26;border-radius:36px;padding:14px 14px 20px;box-shadow:0 24px 48px rgba(12,44,79,.25);color:#fff}
.ratewatch-sec .rw-notch{width:110px;height:6px;border-radius:99px;background:rgba(255,255,255,.25);margin:2px auto 14px}
.ratewatch-sec .rw-notif{background:#fff;color:var(--ink);border-radius:16px;padding:14px 16px;margin-bottom:14px}
.ratewatch-sec .rw-app{display:block;font-size:.78rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.ratewatch-sec .rw-notif b{display:block;font-size:1.05rem;color:var(--navy);margin-bottom:2px}
.ratewatch-sec .rw-notif-sub{display:block;font-size:.92rem;color:var(--muted);margin-bottom:10px}
.ratewatch-sec .rw-view{display:inline-block;background:var(--blue);color:#fff;font-weight:700;font-size:.88rem;border-radius:999px;padding:8px 14px}
.ratewatch-sec .rw-screen{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:22px 16px;text-align:center}
.ratewatch-sec .rw-rate-label{display:block;font-size:.85rem;color:#b9cde6;margin-bottom:6px}
.ratewatch-sec .rw-rate{display:block;font-size:2rem;font-weight:800;color:#fff;line-height:1.1}
.ratewatch-sec .rw-rate-sub{display:block;font-size:.82rem;color:#93a9c6;margin-top:6px}
.ratewatch-sec .rw-copy h3{font-size:1.25rem;color:var(--navy);margin-bottom:14px}
.ratewatch-sec .rw-copy .btn{margin-top:8px}
@media(max-width:760px){
  .ratewatch-sec .rw-wrap{grid-template-columns:1fr;gap:28px}
  .ratewatch-sec .rw-copy .btn{display:flex;width:fit-content;margin:8px auto 0}
}

/* ---------- Map legend (homepage). ---------- */
.map-legend{text-align:center;color:var(--muted);font-size:.95rem;margin:18px auto 0;max-width:640px}
.map-key{display:inline-block;width:14px;height:14px;border-radius:4px;vertical-align:-2px;margin:0 6px 0 0}
.map-key.lic{background:#0a7ef2}
.map-key.other{background:#dcebfb;border:1px solid #b9d6f5}

/* ---------- Review cards (real customer reviews, 5 stars each). ---------- */
.reviews-sec .review-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.reviews-sec .review-cards[hidden]{display:none}
.reviews-sec .review-empty[hidden]{display:none}
.reviews-sec .review-card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:24px;box-shadow:var(--shadow)}
.reviews-sec .review-stars{color:#f5a623;font-size:1.15rem;letter-spacing:2px;margin-bottom:10px}
.reviews-sec .review-text{color:var(--ink);font-size:.98rem;line-height:1.55;margin:0 0 14px}
.reviews-sec .review-name{font-weight:700;color:var(--navy);margin:0}
.reviews-sec .review-role{color:var(--muted);font-size:.88rem;margin:4px 0 0}

/* ---------- r17: verified platform badge on review cards and tabs.
   A small white circle holding the platform's real brand mark, with
   a blue verified check overlapping the bottom-right corner. ---------- */
.plat-badge{position:relative;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#fff;border:1px solid var(--line);flex:none}
.plat-badge img{width:18px;height:18px;object-fit:contain;display:block}
.plat-check{position:absolute;right:-3px;bottom:-3px;width:14px;height:14px;border-radius:50%;background:var(--blue);border:2px solid #fff;display:flex;align-items:center;justify-content:center}
.plat-check svg{display:block}
.reviews-sec .review-source{display:flex;align-items:center;gap:10px;margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:.88rem;font-weight:600}
.reviews-sec .review-tab{display:inline-flex;align-items:center;gap:8px}
.reviews-sec .review-tab .plat-badge{width:20px;height:20px}
.reviews-sec .review-tab .plat-badge img{width:13px;height:13px}
.reviews-sec .review-tab .plat-check{width:11px;height:11px;border-width:1.5px;right:-2px;bottom:-2px}
@media(max-width:760px){
  .reviews-sec .review-cards{grid-template-columns:1fr}
}

/* r5 Fix B: the hero rate line is now a <p>, styled exactly like the old h1. */
.hero .hero-rate{font-family:var(--font);color:var(--navy);margin:0 0 .5em;text-wrap:balance;font-size:clamp(2.1rem,4.2vw,3.25rem);font-weight:700;line-height:1.12;letter-spacing:-.022em}
.hero .hero-rate em{font-style:normal;color:var(--blue)}

/* =====================================================================
   ENTERPRISE REDESIGN (v4, 2026-11-27, Saaspo research: Stripe, Ramp,
   Adyen, Trustly, Griffin, Voltage, Gumloop, Devin, n8n, Deepgram).
   Homepage only. Patterns: white + whitespace, one accent, monospace
   labels, numbered sections, hairline dividers, scale stats as design,
   compliance as a section. No invented numbers, no badges we do not
   have. Figtree throughout; monospace is a system stack, no new font.
   ===================================================================== */
:root{--mono:ui-monospace,'SF Mono','Cascadia Code','Roboto Mono',Menlo,Consolas,'Liberation Mono',monospace}

/* ---------- Monospace eyebrows (enterprise credibility cue). ---------- */
.eyebrow{font-family:var(--mono);font-size:.8rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--blue)}
.sec-num{display:block;font-family:var(--mono);font-size:.8rem;font-weight:600;letter-spacing:.12em;color:var(--muted);margin-bottom:8px}

/* ---------- Sections: white, hairline dividers, more whitespace. ---------- */
section.s{padding:80px 0;border-top:1px solid var(--line)}
section.s.tight{padding:64px 0}
section.s.trust-band{border-top:0}
section.s.boxes-sec,section.s.loan-line,section.s.partners-sec{background:#fff;border-block:0}

/* ---------- Hero: white, no photo, more whitespace. ---------- */
.hero{background:linear-gradient(180deg,#ffffff 0%,#f5f9fe 58%,#edf4fb 100%);padding:96px 0 96px}
.hero .grid{gap:64px}
.hero .eyebrow{color:var(--muted)}
.hero .hero-rate{letter-spacing:-.028em}
.hero .lede{font-size:1.28rem;line-height:1.5;color:var(--text)}
.hero .muted{font-size:1.06rem;line-height:1.6}
.hero .benchmark{background:#fff;border:1px solid var(--line);border-left:3px solid var(--blue);border-radius:var(--r-sm)}
/* Fork: clean qualifying control. Navy selected state. */
.hero .fork-btn.on{background:var(--navy)}
/* Gate card: flatter, hairline border, restrained shadow. */
.hero .qq-gate-card{border-top:3px solid var(--blue);box-shadow:0 1px 2px rgba(12,44,79,.05),0 12px 32px rgba(12,44,79,.07)}
@media (max-width:1060px){
  .hero{background:linear-gradient(180deg,#ffffff 0%,#f5f9fe 58%,#edf4fb 100%);padding:64px 0 72px}
  .hero .grid{gap:40px}
}
@media (max-width:480px){
  .hero{background:linear-gradient(180deg,#ffffff 0%,#f5f9fe 58%,#edf4fb 100%)}
}

/* ---------- Stats as design (Stripe pattern): 4 stats, hairline
   dividers, large tight numbers, small monospace labels, white. ---------- */
section.s.trust-band{background:#fff;border-block:0;border-bottom:1px solid var(--line);padding:72px 0 40px}
.trust-band .stat-band{display:grid;grid-template-columns:repeat(4,1fr);gap:0;max-width:1080px;margin:0 auto}
.trust-band .stat-big{background:none;border:0;border-radius:0;padding:0 28px;box-shadow:none;text-align:left}
.trust-band .stat-big + .stat-big{border-left:1px solid var(--line)}
.trust-band .stat-num{font-size:2.7rem;letter-spacing:-.03em}
.trust-band .stat-cap{font-family:var(--mono);font-size:.76rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
/* Statement cards: left-aligned, hairline border, no blue top edge. */
.trust-band .stmt-card{border-top:1px solid var(--line);text-align:left}
.trust-band .stmt-card h3{text-align:left}
.trust-band .stmt-card p{text-align:left}
.trust-band .stmt-card .btn{margin-left:0;margin-right:0}
@media (max-width:760px){
  .trust-band .stat-band{grid-template-columns:1fr 1fr;gap:28px 0}
  .trust-band .stat-big{padding:0 20px}
  .trust-band .stat-big:nth-child(3){border-left:0}
  .trust-band .stat-num{font-size:2.2rem}
}

/* ---------- Box cards: hairline border, no blue top edge. ---------- */
.boxes-sec .card{border-top:1px solid var(--line)}

/* ---------- Loan-line card: hairline border, no blue top edge. ---------- */
.loan-line-card{border-top:1px solid var(--line)}

/* ---------- Reviews: flat cards, monospace role label. ---------- */
.reviews-sec .review-card{box-shadow:none}
.reviews-sec .review-role{font-family:var(--mono);font-size:.8rem;letter-spacing:.04em}

/* ---------- Compliance as a section. ---------- */
section.s.compliance-sec{background:#fff}
.compliance-sec .comp-grid{display:grid;grid-template-columns:repeat(3,1fr);margin:28px 0;border:1px solid var(--line);border-radius:var(--r)}
.compliance-sec .comp-item{padding:22px 24px}
.compliance-sec .comp-item + .comp-item{border-left:1px solid var(--line)}
.compliance-sec .comp-label{display:block;font-family:var(--mono);font-size:.74rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.compliance-sec .comp-val{display:block;font-size:1.02rem;font-weight:700;color:var(--navy);line-height:1.4}
.compliance-sec .comp-val a{color:var(--navy)}
.compliance-sec .comp-legal{font-size:.88rem;line-height:1.65;color:var(--muted);max-width:82ch;margin:0}
@media (max-width:760px){
  .compliance-sec .comp-grid{grid-template-columns:1fr}
  .compliance-sec .comp-item + .comp-item{border-left:0;border-top:1px solid var(--line)}
}

/* ---------- Nav (homepage only): smaller, cleaner, more spacing. ---------- */
header.site nav.main>.dd>button,header.site nav.main>a{font-size:.92rem;padding:9px 11px}
header.site .topbar{font-size:.8rem}

/* ---------- r13: homepage inline box forms ---------- */
.box-card{cursor:default}
.box-card.open{border-color:var(--blue)}
.box-card .box-toggle{margin-top:16px;width:100%}
.box-card .box-guide{margin-top:12px;text-align:center}
.box-card .box-guide a{color:var(--navy);font-weight:700}
.box-form-wrap{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.box-inline-form .field{margin-bottom:12px}
.box-inline-form .consent{margin-top:6px}

/* ---------- r13: trust bar marquee (logo strip) ---------- */
/* r17: moved directly below the hero gate form, so the logos load
   eager near the top instead of lazy below the fold. Animation
   80s -> 30s so the movement is clearly visible.
   r25b: 30s -> 45s — a bit slower, per Itay (bar went by too fast). */
.trustbar{overflow:hidden;background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0}
.trustbar-track{display:flex;align-items:center;width:max-content;animation:trustbar-scroll 45s linear infinite}
.trustbar:hover .trustbar-track{animation-play-state:paused}
.trustbar-group{display:flex;align-items:center;gap:56px;padding-right:56px}
.trustbar-item{font-size:.82rem;font-weight:700;color:var(--navy);white-space:nowrap}
.trustbar-item a{color:var(--navy)}
.trustbar-logo{height:32px;width:auto;flex:none;filter:grayscale(1);opacity:.75}
.trustbar-logo.tall{height:44px}
@keyframes trustbar-scroll{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.trustbar-track{animation:none}}

/* =====================================================================
   R18 CLEAN PASS (2026-11-27): tighter spacing, fork attached to the
   form, RateWatch How-it-works centered, every section internally
   aligned. Overrides the v8 rules above; this block loads last, so
   same-specificity rules here win. Home v9.
   ===================================================================== */

/* --- Item 2: fork spacing. More space ABOVE the fork (benchmark to
   fork), less BELOW it (fork to gate form), so the fork reads as part
   of the form. --- */
.hero .benchmark{margin-bottom:24px}

/* --- Item 6: cut section spacing further (desktop). --- */
section.s{padding:64px 0}
section.s.tight{padding:48px 0}
.hero{padding:72px 0 72px}
section.s.trust-band{padding:56px 0 32px}
.trust-band .stat-band{margin-bottom:0}
.sec-head{margin-bottom:24px}
.process-sec .sec-head.center{margin-bottom:24px}
section.s.closing-line{padding:56px 0}
.loan-line-card{padding:24px 20px}
.boxes-sec .card{padding:20px}
.boxes-sec .card .box-photo{margin-bottom:12px}
.boxes-sec .card .checks{margin:12px 0}
/* Statement cards lost their buttons in r18, so the last paragraph
   no longer needs the 16px bottom margin that made room for one. */
.trust-band .stmt-card p:last-child{margin-bottom:0}

/* --- Item 5: alignment. Each section internally consistent. --- */
/* Reviews is a left-aligned section; its bottom button was centered
   by the site rule `.s p:has(> .btn){text-align:center}` (0,2,1), so
   this needs higher specificity to beat it. Note: `.s .reviews-sec`
   does NOT match (same element has both classes), so use section.s. */
section.s.reviews-sec .view-all{text-align:left}
/* Box cards are left-aligned; the guide link was centered. */
.box-card .box-guide{text-align:left}
/* States: the map and legend are centered, so the link under them is too. */
.states-sec .view-all{text-align:center}

/* --- Item 3: RateWatch How-it-works centered (mobile, where it stacks). --- */
@media (max-width:760px){
  .ratewatch-sec .sec-head{align-items:center;text-align:center}
  .ratewatch-sec .rw-copy{text-align:center}
  .ratewatch-sec .rw-copy h3{text-align:center}
  .ratewatch-sec .rw-copy .checks{display:inline-block;text-align:left;margin:0 auto 14px}
}

/* --- Item 6: cut section spacing further (phones). --- */
@media (max-width:640px){
  section.s.process-sec,section.s.boxes-sec,section.s.programs-sec,section.s.partners-sec{padding:28px 0}
  section.s.reviews-sec,section.s.states-sec,section.s.careers-sec,section.s.compliance-sec{padding:28px 0}
  section.s.loan-line{padding:16px 0}
  section.s.ratewatch-sec{padding:28px 0}
  section.s.closing-line{padding:44px 0}
  section.s.trust-band{padding:28px 0 20px}
  .sec-head{margin-bottom:16px}
  .process-sec .sec-head.center{margin-bottom:16px}
  .process-sec .steps{gap:24px}
  .process-sec .steps li:not(:last-child)::after{bottom:-24px}
}

/* --- Item 2 (stacked hero, <=1060px): this block MUST come after the
   desktop .hero padding above, or the desktop rule wins on phones too. --- */
@media (max-width:1060px){
  .hero .grid{gap:12px}
  .hero{padding:48px 0 56px}
  .hero .chips{margin-top:72px}
}

/* =====================================================================
   r18 rev3: the rev2 centering of all nine numbered sections (01-09)
   is REVERTED — sections go back to their r18 alignment (reviews
   "View more reviews" LEFT, box "Read the full guide" LEFT, boxes
   left-aligned, RateWatch centered only at <=760px as in r18).
   Kept from rev2: the statement cards stay removed (stat-band gap
   closed above), the 5-step How it works layout, and the hero
   gradient-only background (no dots, no glow, no photo).
   ===================================================================== */

/* --- 01 How it works: five steps. Desktop is a five-column flow;
   on tablets (2 cols) the fifth step spans both columns so it is not
   orphaned. The step items were already text-align:center in r18. --- */
@media (min-width:1061px){
  .process-sec .steps{grid-template-columns:repeat(5,minmax(0,1fr))}
}
.process-sec .steps li p{color:var(--muted);font-size:.96rem;line-height:1.55;margin:8px 0 0}
@media (max-width:1060px) and (min-width:641px){
  .process-sec .steps li:last-child{grid-column:1 / -1}
}

/* =====================================================================
   R20: interactive "See your rate" payment estimator (2026-11-27).
   A live payment estimator on the homepage: the hand-and-phone concept
   image on the left, a working calculator on the right. The only rate
   is the Freddie Mac national average 7.21% (30-Year Fixed, as of
   November 25, 2026), clearly labeled as the national average, never
   as our rate. No lender name, no approval promise, no timelines.
   3-COLOR RULE (enterprise brand): only THREE colors in this section.
   White (background), navy #082a57 (all text), blue #1b6fd8 (single
   accent, used sparingly: the eyebrow, the payment amount, the CTA
   button, the slider thumb). Borders and dividers are light blue
   tints of the same blue. No other accent colors. The real photo is
   the texture and the visual: it dominates the section (large image
   column, no card border around it), not a flat color block.
   ===================================================================== */
section.s.rate-est-sec{padding:64px 0}
.rate-est-sec .sec-head{margin-bottom:32px}
.rate-est-sec .sec-head p{color:var(--navy)}
.rate-est-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:64px;align-items:center;max-width:1200px;margin:0 auto}
.rate-est-img{margin:0}
.rate-est-img img{width:100%;height:auto;display:block}
.rate-est-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:28px;box-shadow:var(--shadow)}
.rate-est-card .field{margin-bottom:18px}
.rate-est-card .field-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:6px}
.rate-est-card .field-head label{font:700 .95rem var(--font);color:var(--navy)}
.rate-est-card .field-head .field-val{font:800 1.05rem var(--font);color:var(--navy);font-variant-numeric:tabular-nums;white-space:nowrap}
.rate-est-card .field-head .field-val small{font:600 .85rem var(--font);color:var(--navy)}
.rate-est-card .field input{color:var(--navy)}
.rate-est-card input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:99px;background:#edf4fb;outline:none;margin:10px 0 0;cursor:pointer}
.rate-est-card input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:22px;height:22px;border-radius:50%;background:var(--blue);border:3px solid #fff;box-shadow:0 1px 4px rgba(8,42,87,.25);cursor:pointer}
.rate-est-card input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--blue);border:3px solid #fff;box-shadow:0 1px 4px rgba(8,42,87,.25);cursor:pointer}
.rate-est-card input[type=range]::-moz-range-track{height:6px;border-radius:99px;background:#edf4fb}
.rate-est-results{border-top:1px solid var(--line);margin-top:20px;padding-top:20px;display:grid;gap:12px}
.rate-est-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.rate-est-row .re-label{font:600 .92rem var(--font);color:var(--navy)}
.rate-est-row .re-val{font:700 1.05rem var(--font);color:var(--navy);font-variant-numeric:tabular-nums;text-align:right}
.rate-est-row .re-val small{display:block;font:600 .8rem var(--font);color:var(--navy);line-height:1.4;margin-top:2px}
.rate-est-pay{border-top:1px solid var(--line);margin-top:4px;padding-top:16px}
.rate-est-pay .re-label{font:700 .95rem var(--font);color:var(--navy)}
.rate-est-pay .re-val{font-size:1.9rem;letter-spacing:-.02em;color:var(--blue)}
.rate-est-pay .re-val small{font-size:.85rem;color:var(--navy)}
.rate-est-card .btn{width:100%;margin-top:20px}
.rate-est-fine{font-size:.88rem;line-height:1.55;color:var(--navy);margin:14px 0 0;text-align:center}
@media (max-width:1060px){
  .rate-est-grid{grid-template-columns:1fr;gap:32px;max-width:560px}
  .rate-est-img{max-width:560px;margin:0 auto}
}
@media (max-width:640px){
  section.s.rate-est-sec{padding:28px 0}
  .rate-est-sec .sec-head{margin-bottom:20px}
  .rate-est-grid{gap:24px}
  .rate-est-card{padding:20px}
  .rate-est-pay .re-val{font-size:1.6rem}
}

/* =====================================================================
   R21: SITE-WIDE 3-COLOR DESIGN PASS, HOMEPAGE (2026-11-27).
   v15 (2026-11-27): review stars reverted to gold #f5a623 and the
   gate-form error line reverted to red #b3372b, per Itay's verdict.
   Everything else in the palette lock stands.
   Trend from Itay's video (@anthonyxlnder): only THREE colors, the
   product HUGE, real textures (photography) over flat backgrounds.
   Palette lock: white, navy #082a57, blue #1b6fd8, and light blue
   tints of that same blue (#f5f9fe, #edf4fb, #dde6f0). Nothing else.
   EXCEPTIONS (left as they are): third-party brand logos (trust-bar
   marquee, review platform badges), the logo image, real photography,
   and the UserWay accessibility widget (third-party, not site design).
   The r20 rate-estimator section is already 3-color and is untouched.
   Hero: the phone photo is NOT repeated here (the r20 section directly
   below already shows it large; repeating it one viewport above would
   be redundant). Instead the hero product itself is huge: the rate
   headline, the 7.21% benchmark number, and the gate form are all
   enlarged so the Quick Quote dominates the hero.
   ===================================================================== */

/* --- Palette lock: remap every site token used on the homepage to the
   three colors. home.v14.css loads only on the homepage, after
   site.v9.css, so these :root overrides affect the homepage only. --- */
:root{
  --ink:#082a57;
  --text:#082a57;
  --muted:#082a57;
  --soft:#082a57;
  --blue-d:#082a57;
  --blue-l:#1b6fd8;
  --sky:#edf4fb;
  --sky-2:#dde6f0;
  --mist:#f5f9fe;
  --line-2:#dde6f0;
  --green:#1b6fd8;
  --green-t:#edf4fb;
  --amber:#1b6fd8;
  --amber-t:#edf4fb;
  --red:#1b6fd8;
  --red-t:#edf4fb;
}

/* --- Hardcoded off-palette colors on the homepage. --- */
/* Review stars: REVERTED to gold #f5a623 per Itay's verdict (2026-11-27). Only the stars; the rest of the palette lock stands. */
.reviews-sec .review-stars{color:#f5a623}
/* Gate-form error line: REVERTED to red #b3372b per Itay's verdict (2026-11-27). Only the gate-form error (.hero .qq-gate-card .err); other --red uses stay blue. */
.hero .qq-gate-card .err{color:#b3372b}
/* Map legend keys: #0a7ef2 -> blue; #dcebfb/#b9d6f5 -> #dde6f0. */
.map-key.lic{background:var(--blue)}
.map-key.other{background:#dde6f0;border-color:#dde6f0}
/* US map: unlicensed #dcebfb -> #dde6f0; licensed/hover/FL/DC-dot
   #0a7ef2/#0b5fd0 -> blue. FL pulse now runs blue -> navy (in palette)
   instead of blue -> #3d9bf8. */
.usmap .st path{fill:#dde6f0}
.usmap .st:hover path,.usmap .st:focus-visible path{fill:#1b6fd8}
.usmap .st.fl path{fill:#1b6fd8}
.usmap .st.lic path{fill:#1b6fd8}
@keyframes flpulse{0%,100%{fill:#1b6fd8}50%{fill:#082a57}}
.usmap .dcdot{fill:#1b6fd8}
.usmap .st:hover .dcdot,.usmap .st:focus-visible .dcdot{fill:#1b6fd8}
/* RateWatch phone mockup: frame #0d1b26 -> navy; label #b9cde6 ->
   #f5f9fe; sub #93a9c6 -> #dde6f0. */
.ratewatch-sec .rw-phone{background:#082a57}
.ratewatch-sec .rw-rate-label{color:#f5f9fe}
.ratewatch-sec .rw-rate-sub{color:#dde6f0}
/* Closing band subline: #b9cde6 -> #f5f9fe (on navy). */
.closing-line .closing-sub{color:#f5f9fe}
/* Cookie banner: #0d1b26 -> navy; link #9fd0ff -> white, underlined so
   it stays identifiable on navy. */
.cookie-banner{background:#082a57;box-shadow:0 -4px 24px rgba(8,42,87,.25)}
.cookie-banner a{color:#fff;text-decoration:underline}
/* Exit popup scrim: black rgba(0,0,0,.55) -> navy scrim. Inline style,
   so !important is required. */
#qq-exit{background:rgba(8,42,87,.55)!important}
/* Button dark hover: #163d68 -> navy. */
.btn-dark:hover{background:var(--navy)}
/* Green check circles: the data-URI SVG stroke is hardcoded green
   (#138a5e) and is NOT covered by the --green token override, so the
   whole rule is re-declared here with a blue check on #edf4fb. This
   covers the box-card checks and the RateWatch "How Rate Watch works"
   checks. */
.checks li::before{background:#edf4fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231b6fd8' stroke-width='2.6'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/13px no-repeat}

/* --- Hero: the product is HUGE. The rate headline, the 7.21%
   benchmark number, and the gate form dominate the hero. The hero
   background stays the subtle vertical gradient only (r18 lesson: no
   dot grid, no glow, no photo). The hero stays left-aligned (r18 rev2
   lesson: no centering). --- */
.hero .hero-rate{font-size:clamp(2.5rem,5.2vw,4rem);line-height:1.04;letter-spacing:-.03em}
.hero .lede{font-size:1.35rem}
.hero .benchmark{padding:18px 20px;font-size:1rem}
.hero .benchmark .bm-rate{font-size:1.5rem;letter-spacing:-.02em}
@media (min-width:1061px){
  .hero{padding:88px 0}
  .hero .grid{grid-template-columns:1fr 1.05fr;gap:72px}
  .hero .fork-btn{padding:14px 18px}
  .hero .qq-gate-card{padding:32px}
  .hero .qq-gate-card h3{font-size:1.45rem}
  .hero .qq-gate-card .field input,.hero .qq-gate-card .field select{min-height:54px;font-size:1.05rem}
  .hero .qq-gate-card .btn-primary{font-size:1.2rem;padding:18px 24px}
}
@media (max-width:640px){
  .hero .qq-gate-card{padding:24px}
  .hero .qq-gate-card .field input,.hero .qq-gate-card .field select{min-height:52px}
  .hero .qq-gate-card .btn-primary{font-size:1.15rem;padding:16px 20px}
}

/* =====================================================================
   r22 (2026-11-27): Loan Finder quiz on the homepage, two new scenario
   boxes, sections 07-09 flow, gold pop accent, footer mobile spacing.
   Stars stay gold #f5a623 and the gate-form error stays red #b3372b
   (Itay's r21 verdicts); the gold below is the SAME #f5a623 used for
   the stars, so the pop stays inside the existing palette.
   ===================================================================== */

/* --- Hero quiz button: the Loan Finder quiz is a link, not an inline
   quiz (Itay: the full quiz is too much on the homepage). The gold
   button is the yellow pop accent, the only gold on the page outside
   the review stars. r23 follow-up (2026-11-28): the button sits
   directly below the H1 headline, centered in the hero column. --- */
.quiz-cta{text-align:center;margin:20px 0 0}
.btn-gold{background:#f5a623;border-color:#f5a623;color:#082a57;box-shadow:0 2px 8px rgba(245,166,35,.35)}
.btn-gold:hover{filter:brightness(.93);color:#082a57}

/* --- Sections 07-09 flow: alternating tints, no hairline dividers
   between them, tighter padding, so Careers, Licensing and Compliance,
   and IMM Partner read as one flowing band instead of three white
   blocks. Copy and links are untouched. --- */
section.s.careers-sec{background:#f5f9fe;border-top:0;padding:48px 0}
section.s.compliance-sec{background:#edf4fb;border-top:0;padding:48px 0}
section.s.partners-sec{background:#f5f9fe;border-top:0;padding:48px 0}

/* --- Footer on mobile: tighten the stacked link columns so the
   footer reads compact, not stretched. Desktop footer untouched. --- */
@media (max-width:640px){
  footer.site{padding-top:32px}
  .f-top{gap:12px;padding-bottom:20px}
  .f-top .fhead{margin-bottom:8px}
  .f-top li{margin-bottom:5px}
  .f-brand p{margin-top:10px}
  .f-states{padding:16px 0}
  .f-legal{padding:18px 0}
  .f-bottom{padding:14px 0 20px}
  section.s.careers-sec,section.s.compliance-sec,section.s.partners-sec{padding:28px 0}
}

/* =====================================================================
   R24 (2026-11-28): ES/PT homepages matched to EN; quiz button mobile
   right-align + shake; motion pass (hover lift + scroll fade-in).
   Motion only — no color or layout changes. Everything respects
   prefers-reduced-motion.
   ===================================================================== */

/* --- Quiz button shake: a small, gentle horizontal nudge every 6s.
   The shake occupies ~0.6s of each 6s cycle (88%-98%), ±3px max. --- */
@keyframes quiz-nudge{0%,88%,100%{transform:translateX(0)}90%{transform:translateX(-3px)}92%{transform:translateX(3px)}94%{transform:translateX(-2px)}96%{transform:translateX(2px)}98%{transform:translateX(0)}}
.quiz-cta .btn-gold{animation:quiz-nudge 6s ease-in-out infinite}

/* --- Buttons: smooth lift on hover for primary/ghost CTAs (gate submit,
   estimator CTA, closing CTA, header CTAs, box buttons). The quiz button
   is excluded — its motion is the shake, above. --- */
.btn{transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .25s ease}
.btn-primary:hover,.btn-ghost:hover{transform:translateY(-2px)}
.fork-btn{transition:background .15s,border-color .15s,transform .25s ease,box-shadow .15s}
.fork-btn:hover{transform:translateY(-1px)}

/* --- Scroll fade-in for key sections: hidden only when JS added the .rv
   class to <html> (head script); the inline reveal script adds .in as
   each section enters view. --- */
html.rv .rv-fade{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
html.rv .rv-fade.in{opacity:1;transform:none}

/* --- Mobile (<=640px): the hero quiz button aligns LEFT, flush with the
   left-aligned headline (Itay, seeing r24 live: right does not look right
   on mobile; left is the enterprise treatment). Desktop keeps the centered
   treatment from r23b. --- */
@media (max-width:640px){
  .quiz-cta{text-align:left}
  .quiz-cta .btn{margin-left:0;margin-right:auto}
}

/* --- Reduced motion: no shake, no lift, no fade (sections stay visible). --- */
@media (prefers-reduced-motion:reduce){
  .quiz-cta .btn-gold{animation:none}
  .btn,.fork-btn{transition:none}
  .btn-primary:hover,.btn-ghost:hover,.fork-btn:hover{transform:none}
  html.rv .rv-fade{opacity:1;transform:none;transition:none}
}
