/* Layout: slim header, dark "ink" hero with the qualifying form beside the pitch, then light proof sections, one sticky CTA bar on phones */
/* Self-hosted fonts (latin subset, variable woff2 from Google Fonts) so no request leaves the site */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/figtree-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --fg: #141B26;
  --muted: #566173;
  --line: #DDE2EA;
  --ink: #12233D;          /* hero + footer ground */
  --ink-fg: #EEF2F8;
  --ink-muted: #A9B6CA;
  --sign: #FFC629;         /* for-sale-sign yellow, the one accent */
  --sign-fg: #1A1405;
  --ok: #1D7A4E;
  --bad: #C2412D;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ctl: #12233D;
  --r: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0D1420; --surface: #151F2F; --fg: #E8EDF5; --muted: #9AA7BB; --line: #26334A;
  --ink: #0A1A31; --ink-fg: #EEF2F8; --ink-muted: #9FB0C8; --sign: #FFC629; --sign-fg: #1A1405; --ok: #4CC38A; --bad: #F07A63; --ctl: #FFC629;
  color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0D1420; --surface: #151F2F; --fg: #E8EDF5; --muted: #9AA7BB; --line: #26334A;
  --ink: #0A1A31; --ink-fg: #EEF2F8; --ink-muted: #9FB0C8; --sign: #FFC629; --sign-fg: #1A1405; --ok: #4CC38A; --bad: #F07A63; --ctl: #FFC629;
  color-scheme: dark }

* { box-sizing: border-box }
[hidden] { display: none !important; }
img { max-width: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); -webkit-text-size-adjust: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.eyebrow { font: 600 0.78rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; border-radius: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--body); padding: 16px 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; background: var(--sign); color: var(--sign-fg); transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Header */
header.top { background: var(--ink); color: var(--ink-fg); border-bottom: 1px solid rgba(255,255,255,.08); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.logo small { font: 500 0.75rem var(--body); color: var(--ink-muted); letter-spacing: 0.04em; }
.top-phone { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; }
.top-phone span { font-size: .72rem; color: var(--ink-muted); }
.top-phone strong { font-family: var(--mono); font-size: 1.05rem; }

/* Hero */
.hero { background: var(--ink); color: var(--ink-fg); padding-top: 56px; padding-bottom: 64px; position: relative; overflow: hidden; overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--sign); }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 800; letter-spacing: -0.02em; margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--sign); }
.hero .lede { color: var(--ink-muted); font-size: 1.15rem; max-width: 34em; margin-top: 18px; }
.fits { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fits li { border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 13px; font-size: .9rem; }
.timeline { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px dashed rgba(255,255,255,.25); max-width: 520px; }
.timeline div { padding-top: 12px; position: relative; font-size: .88rem; color: var(--ink-muted); }
.timeline div::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--sign); }
.timeline div:last-child::before { background: var(--sign); }
.timeline b { display: block; color: var(--ink-fg); font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .04em; }

/* Qualify form */
.qualify { background: var(--surface); color: var(--fg); border-radius: 16px; --qpad: 26px; padding: var(--qpad); scroll-margin-top: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.q-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.q-head h2 { font-size: 1.45rem; }
.q-count { font-family: var(--mono); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.q-bar { height: 6px; background: var(--line); border-radius: 99px; margin: 14px 0 20px; overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 16%; background: var(--sign); border-radius: inherit; transition: width .3s ease; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; padding: 0; }
.hint { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--muted); }
.opt input { accent-color: var(--ctl); width: 18px; height: 18px; margin: 0; flex: none; }
.opt:has(input:checked) { border-color: var(--fg); background: color-mix(in srgb, var(--sign) 14%, transparent); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select { font: inherit; padding: 13px 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--fg); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.money input { padding-left: 28px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid2 > * { min-width: 0; }
.q-group { display: flex; justify-content: space-between; align-items: baseline; font: 700 .8rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.q-group span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.q-group ~ .q-group { margin-top: 36px; }
.q-group + .grid2, .q-group + .field { margin-top: 0; }
.per-mo::after { content: "/mo"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
.per-mo input { padding-right: 44px; }
.q-label { font-weight: 600; font-size: .92rem; margin: 6px 0 8px; }
.opts.yn { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.reveal { margin-top: 2px; }
.consent { display: flex; gap: 10px; font-size: .82rem; color: var(--muted); line-height: 1.45; margin: 6px 0 4px; }
.consent input { margin-top: 3px; accent-color: var(--ctl); flex: none; }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.q-back { background: none; border: 0; color: var(--muted); font: 600 .95rem var(--body); cursor: pointer; padding: 10px 4px; }
.field input.is-bad, .field textarea.is-bad, .field select.is-bad, .opts.is-bad .opt, .consent.is-bad { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent); }
.consent.is-bad { border: 1.5px solid var(--bad); border-radius: var(--r); padding: 10px 12px; color: var(--fg); }
.q-err { color: var(--bad); font-size: .88rem; min-height: 1.3em; margin-top: 8px; }
.q-trust { display: flex; justify-content: space-evenly; gap: 8px 0; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
/* Spread the three items across the full card width so the outer gaps (to the card edge) match the gaps between them; the rule stays inset */
.q-trust { margin-left: calc(-1 * var(--qpad)); margin-right: calc(-1 * var(--qpad)); border-top: 0; background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--qpad)) 1px no-repeat; }
.q-done { text-align: center; padding: 18px 4px; }
.q-done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.6rem; }
.q-done p { color: var(--muted); margin-top: 8px; }
.q-nofit { padding: 6px 2px; display: grid; gap: 12px; }
.q-nofit h3 { font-size: 1.35rem; }
.q-nofit p { color: var(--muted); }
.q-nofit ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.q-nofit .q-back { justify-self: start; padding-left: 0; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sections */
section.band { padding-block: 72px; }
.sec-head { max-width: 640px; display: grid; gap: 14px; margin-bottom: 40px; }
.sec-head.tight { margin-bottom: 24px; }
.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.honest-copy h3 { font-size: 1.5rem; }
.homes-note { margin-top: 12px; }
.q-next { margin-left: auto; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }

.stats { background: var(--surface); border-block: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.stat span { font-size: .88rem; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.steps li:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.steps .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--sign) 22%, transparent); color: var(--fg); margin-bottom: 6px; }
.steps .n { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.steps p { color: var(--muted); font-size: .95rem; }

/* Estimator */
.est { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.est-in { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 20px; }
.slider label { display: flex; justify-content: space-between; font-weight: 600; font-size: .95rem; margin-bottom: 8px; gap: 8px; }
.slider output { font-family: var(--mono); font-weight: 500; }
.slider input { width: 100%; accent-color: var(--ctl); }
.est-out { display: grid; gap: 14px; }
.est-side { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; align-self: stretch; }
.est-side .fine-desk { margin: 0; padding: 0 28px; }
.fine-mob { display: none; }
@media (min-width: 901px) { .est-out .ledger { margin-bottom: 0; } }
@media (max-width: 900px) { .fine-desk { display: none; } .fine-mob { display: block; } }
.monthly { background: var(--ink); color: var(--ink-fg); border-radius: 16px; padding: 24px; }
.monthly .eyebrow { color: var(--ink-muted); }
.monthly .big { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1.05; margin-top: 8px; }
.monthly .big small { font-size: 1rem; font-weight: 600; color: var(--ink-muted); }
.split { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 16px 0 10px; background: rgba(255,255,255,.1); }
.split .rent { background: var(--ink-muted); }
.split .save { background: var(--sign); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--ink-muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 24px; }
.ledger div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.ledger div:last-child { border-bottom: 0; }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.fine { font-size: .8rem; color: var(--muted); }

/* Stories */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.story .who { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.story .who b { font-family: var(--display); font-size: 1.15rem; }
.story .who span { font-size: .82rem; color: var(--muted); }
.story .tag { justify-self: start; font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--sign) 22%, transparent); }
.story p { color: var(--muted); font-size: .95rem; }

.homes { margin-top: 36px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.home { border-top: 3px solid var(--fg); padding-top: 10px; }
.home b { display: block; font-weight: 700; }
.home span { display: block; font-family: var(--mono); font-size: .85rem; color: var(--muted); }

/* Honest section */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.reqs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.reqs div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.reqs dt { color: var(--muted); }
.reqs dd { margin: 0; font-weight: 700; text-align: right; }
.flag { background: var(--sign); color: var(--sign-fg); border-radius: 4px; padding: 0 5px; }
.honest-copy { display: grid; gap: 14px; align-content: start; }
.honest-copy p { color: var(--muted); }
.risk { background: color-mix(in srgb, var(--sign) 14%, transparent); color: var(--fg); border-radius: var(--r); padding: 14px 16px; font-size: .95rem; }

/* FAQ */
.faq details { max-width: 780px; }
details { border-bottom: 1px solid var(--line); }
summary { -webkit-tap-highlight-color: transparent; cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 500 1.5rem var(--mono); color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 18px; max-width: 65ch; }

/* Final CTA + footer */
.final { background: var(--ink); color: var(--ink-fg); }
.final .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 56px; }
.final p { color: var(--ink-muted); margin-top: 8px; }
.final.has-photo { background: linear-gradient(90deg, rgba(10,20,36,.92) 0%, rgba(10,20,36,.7) 50%, rgba(10,20,36,.3) 100%), url(/assets/img/house.webp) center 60% / cover no-repeat, var(--ink); }
.final.has-photo .wrap { padding-block: 96px; }
.final.has-photo p { color: var(--ink-fg); opacity: .85; }
.photo { margin: 0 0 32px; border-radius: 16px; overflow: hidden; aspect-ratio: 21 / 8; background: var(--line); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
@media (max-width: 640px) { .photo { aspect-ratio: 4 / 3; margin-bottom: 24px; } .final.has-photo .wrap { padding-block: 64px; } }
footer { background: var(--ink); color: var(--ink-muted); border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot-note { margin-left: auto; }
@media (min-width: 701px) { .foot-note { text-align: right; } }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: none; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--ink); border-top: 1px solid rgba(255,255,255,.12); }
.sticky .btn { flex: 1; padding: 14px; }
.sticky .call { flex: none; background: transparent; color: var(--ink-fg); border: 1.5px solid rgba(255,255,255,.3); }

@media (max-width: 900px) {
  .hero .wrap, .est, .honest { grid-template-columns: 1fr; }
  .steps, .stories { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li:not(:nth-child(3n+1)) { padding: 20px 20px 22px 0; border-left: 0; }
  .steps li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .homes { grid-template-columns: repeat(3, 1fr); }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .sticky { display: flex; transition: transform .2s; }
  .sticky.is-off { transform: translateY(110%); }
  footer .wrap { padding-bottom: 100px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .steps, .stories { grid-template-columns: 1fr; }
  .steps li:nth-child(even) { padding-left: 0; border-left: 0; }
  .homes { grid-template-columns: 1fr 1fr; }
  .top-phone span { display: none; }
  .logo small { display: none; }
  .qualify { --qpad: 20px; }
  .q-trust { flex-wrap: nowrap; gap: 0; font-size: .74rem; white-space: nowrap; }
  .timeline { font-size: .8rem; }
  section.band { padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Hero: darkened house photo + animated timeline */
.hero { background: linear-gradient(90deg, rgba(10,20,36,.97) 0%, rgba(10,20,36,.9) 45%, rgba(10,20,36,.72) 100%), url(/assets/img/house.webp) center 40% / cover no-repeat, var(--ink); }
.timeline { border-top: 0; background: linear-gradient(90deg, var(--sign), var(--sign)) top left / 0 2px no-repeat, linear-gradient(90deg, rgba(255,255,255,.25) 50%, transparent 0) top left / 12px 2px repeat-x; animation: tl-line 1.6s .3s cubic-bezier(.4,0,.2,1) forwards; animation-play-state: paused; }
.timeline div { opacity: 0; transform: translateY(8px); animation: tl-step .5s forwards; animation-play-state: paused; }
.timeline div:nth-child(1) { animation-delay: .3s; }
.timeline div:nth-child(2) { animation-delay: .9s; }
.timeline div:nth-child(3) { animation-delay: 1.5s; }
.timeline div:last-child::before { box-shadow: 0 0 0 0 rgba(255,198,41,.6); animation: tl-pulse 2s 2.1s ease-out infinite; }
/* site.js adds .play once the timeline is on screen, so phones don't miss it below the fold. */
.timeline.play, .timeline.play div { animation-play-state: running; }
@keyframes tl-line { to { background-size: 100% 2px, 12px 2px; } }
@keyframes tl-step { to { opacity: 1; transform: none; } }
@keyframes tl-pulse { 70% { box-shadow: 0 0 0 10px rgba(255,198,41,0); } 100% { box-shadow: 0 0 0 0 rgba(255,198,41,0); } }
/* The one-time draw-in plays for everyone (owner's call: it is small and short); only the endless pulse stops for reduced motion. */
@media (prefers-reduced-motion: reduce) { .timeline div:last-child::before { animation: none; } }



/* Browser surfaces in the palette */
::selection { background: var(--sign); color: var(--sign-fg); }
html { scrollbar-color: color-mix(in srgb, var(--muted) 55%, transparent) var(--bg); }
input, textarea { caret-color: var(--ctl); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 1.5px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.mono, .ledger dd, .home span, .slider output { font-variant-numeric: tabular-nums; }
.btn:active { transform: translateY(0); filter: brightness(.97); }
.q-back:hover { color: var(--fg); }
details[open] summary { padding-bottom: 10px; }

/* Stats: continue the ink ground out of the hero, numbers in sign yellow */
.stats { background: var(--ink); color: var(--ink-fg); border-block: 0; border-top: 1px solid rgba(255,255,255,.08); }
.stats .wrap { padding-block: 36px 40px; gap: 0; }
.stat { padding-inline: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { color: var(--sign); font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 10px; letter-spacing: -0.02em; }
.stat span { color: var(--ink-muted); display: block; max-width: 18ch; }
.stat span br { display: none; }
@media (min-width: 901px) {
  .stat span br { display: inline; }
  /* Center each stat block in its column; text stays left-aligned. */
  .stat { display: grid; justify-content: center; }
  .stat:first-child { padding-left: 24px; }
  /* Captions break at fixed points so each block is exactly as wide as its text. */
  .stat span { max-width: none; white-space: nowrap; }
}

/* How it works: one connected path, each step a node on the line */
.steps { border-top: 0; counter-reset: s; gap: 40px 32px; }
.steps li, .steps li:not(:nth-child(3n+1)) { position: relative; padding: 0; border: 0; gap: 10px; }
.steps li::before { content: ""; position: absolute; top: 27px; left: 56px; right: -32px; height: 2px; background: linear-gradient(90deg, var(--sign) 50%, transparent 0) 0 0 / 10px 2px repeat-x; }
.steps li:nth-child(3n)::before, .steps li:last-child::before { display: none; }
.steps .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--sign); color: var(--sign-fg); margin-bottom: 8px; box-shadow: 0 0 0 6px var(--bg); position: relative; }
.steps li:last-child .ic { background: var(--ink); color: var(--sign); }
.steps .n { color: var(--fg); font-weight: 500; letter-spacing: .06em; }
.steps h3 { font-size: 1.25rem; }

/* Recent homes: for-sale-sign panels */
.homes { gap: 14px; }
.home { border-top: 0; background: var(--sign); color: var(--sign-fg); border-radius: 12px; padding: 16px 18px 18px; position: relative; }
.home b { font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.15; margin-bottom: 8px; }
.home span { color: var(--sign-fg); opacity: .78; }
.home span:first-of-type { opacity: 1; font-size: 1rem; }

/* FAQ: heading and call panel beside the questions */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 56px; align-items: start; }
.faq-side { position: sticky; top: 24px; display: grid; gap: 0; }
.faq-side .sec-head { margin-bottom: 24px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { max-width: none; }

@media (max-width: 900px) {
  .stats .wrap { row-gap: 28px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li::before { display: none; }
  .steps li, .steps li:nth-child(even), .steps li:not(:nth-child(3n+1)) { padding: 0; border: 0; }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .faq-side { position: static; }
}
@media (max-width: 560px) {
  .steps { gap: 0; }
  .steps li, .steps li:nth-child(even), .steps li:not(:nth-child(3n+1)) { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; padding-bottom: 32px; }
  .steps li > * { grid-column: 2; }
  .steps li .ic { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .steps li::before { display: block; top: 62px; bottom: 4px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--sign) 50%, transparent 0) 0 0 / 2px 10px repeat-y; }
  .steps li:nth-child(3n)::before { display: block; }
  .steps li:last-child::before { display: none; }
  .stat { padding-inline: 0 12px; }
  .stat:nth-child(even) { padding-left: 16px; }
}
/* Keep the hero photo still when the form's height changes between steps:
   size it from the hero's width only and offset it by a fixed amount. */
/* Parallax, driven by the browser itself (no scroll script), so it stays smooth.
   Fallback: the photos stay fixed to the window while the page scrolls over them. */
.hero { background-attachment: scroll, fixed; background-size: 100% 100%, cover; background-position: 0 0, center; }
.final.has-photo { background-attachment: scroll, fixed; background-size: 100% 100%, cover; background-position: 0 0, center; }
/* Browsers with scroll-driven animations: the photo sits on its own layer and drifts slower than the page. */
@supports (animation-timeline: view()) {
  .hero, .final.has-photo { background: var(--ink); position: relative; overflow: hidden; overflow: clip; }
  .final.has-photo { view-timeline-name: --fin; }
  .hero::before, .final.has-photo::before { content: ""; position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; will-change: transform; animation-fill-mode: both; animation-timing-function: linear; animation-duration: 1ms; }
  /* Hero photo is sized from the width only, so form height changes never move it. */
  .hero::before { top: 0; height: 200%; background: linear-gradient(90deg, rgba(10,20,36,.97) 0%, rgba(10,20,36,.9) 45%, rgba(10,20,36,.72) 100%), url(/assets/img/house.webp) center -220px / max(100%, 1800px) auto no-repeat, var(--ink);
    animation-name: px-hero; animation-timeline: scroll(root); animation-range: 0px 1000px; }
  .final.has-photo::before { top: -50%; bottom: -50%; background: linear-gradient(90deg, rgba(10,20,36,.92) 0%, rgba(10,20,36,.7) 50%, rgba(10,20,36,.3) 100%), url(/assets/img/house.webp) center 55% / cover no-repeat;
    animation-name: px-fin; animation-timeline: --fin; animation-range: cover; }
  .final.has-photo .wrap { position: relative; z-index: 1; }
}
@keyframes px-hero { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 350px, 0); } }
@keyframes px-fin { from { transform: translate3d(0, -25%, 0); } to { transform: translate3d(0, 25%, 0); } }

/* The numbers: a navy calculator with the monthly figure as the yellow focal point */
#numbers { background: var(--ink); color: var(--ink-fg); border-block: 0; position: relative; }
#numbers .eyebrow { color: var(--sign); }
#numbers .sec-head p, #numbers .fine { color: var(--ink-muted); }
#numbers .est { gap: 20px; }
#numbers .est-in { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); padding: 28px; gap: 28px; }
@media (min-width: 901px) { #numbers .est-in { gap: 21px; } }
#numbers .slider label { color: var(--ink-fg); align-items: baseline; }
#numbers .slider output { color: var(--sign); font-size: 1.1rem; }
#numbers .slider output { white-space: nowrap; }
@media (max-width: 520px) { #numbers .slider label { font-size: .92rem; gap: 8px; white-space: nowrap; letter-spacing: -.01em; } #numbers .slider output { font-size: .95rem; } }
#numbers .slider input { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; margin: 0; }
#numbers .slider input::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--sign) var(--p, 50%), rgba(255,255,255,.16) 0); }
#numbers .slider input::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.16); }
#numbers .slider input::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--sign); }
#numbers .slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--sign); border: 4px solid var(--ink); box-shadow: 0 0 0 2px var(--sign), 0 4px 10px rgba(0,0,0,.35); transition: transform .15s; }
#numbers .slider input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--sign); border: 4px solid var(--ink); box-shadow: 0 0 0 2px var(--sign); }
#numbers .slider input:active::-webkit-slider-thumb { transform: scale(1.12); }
#numbers .slider input:focus-visible { outline-offset: 4px; }
#numbers .monthly { background: var(--sign); color: var(--sign-fg); padding: 28px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.6); }
#numbers .monthly .eyebrow { color: var(--sign-fg); opacity: .75; }
#numbers .monthly .big { font-size: clamp(3rem, 7vw, 4.5rem); letter-spacing: -0.03em; }
#numbers .monthly .big small { color: var(--sign-fg); opacity: .7; letter-spacing: 0; }
#numbers .monthly ::selection { background: var(--ink); color: var(--ink-fg); } /* the default yellow highlight vanishes on this yellow card */
#numbers .split { height: 14px; background: rgba(26,20,5,.12); }
#numbers .split .rent { background: var(--ink); }
#numbers .split .save { background: #fff; }
#numbers .legend { color: var(--sign-fg); }
#numbers .legend i[style*="ink-muted"] { background: var(--ink) !important; }
#numbers .legend i[style*="--sign"] { background: #fff !important; box-shadow: inset 0 0 0 1px rgba(26,20,5,.25); }
#numbers .ledger { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
#numbers .ledger div { border-bottom-color: rgba(255,255,255,.12); }
#numbers .ledger dt { color: var(--ink-muted); }
#numbers .ledger dd { color: var(--ink-fg); }
#numbers .ledger div:first-child dd { color: var(--sign); }

/* FAQ: each question its own panel, a yellow toggle, the open one lit */
.faq-list { border-top: 0; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: background-color .2s, border-color .2s, color .2s; }
.faq summary { padding: 20px 68px 20px 22px; }
.faq summary::after { content: ""; top: 50%; right: 18px; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--sign) linear-gradient(var(--sign-fg), var(--sign-fg)) center / 12px 2px no-repeat; transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .2s; }
.faq summary::before { content: ""; position: absolute; top: 50%; right: 33px; width: 2px; height: 12px; margin-top: -6px; background: var(--sign-fg); z-index: 1; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.faq details[open] { background: var(--ink); border-color: var(--ink); color: var(--ink-fg); }
.faq details[open] { cursor: pointer; }
.faq details[open] summary { padding-bottom: 20px; }
.faq details p { margin-top: -12px; }
.faq details[open] summary::after { transform: none; }
.faq details[open] summary::before { transform: scaleY(0); }
.faq details[open].closing { background: var(--surface); border-color: var(--line); color: inherit; transition-duration: .28s; transition-timing-function: ease-in-out; }
.faq details[open].closing summary::before { transform: none; }
.faq details p { transition: opacity .2s; }
.faq details.closing p { opacity: 0; transition-duration: .28s; }
.faq details p { padding: 0 22px 22px; color: var(--ink-muted); }



/* Wide screens: all six steps on one continuous timeline */
@media (min-width: 901px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 20px; }
  .steps li::before, .steps li:nth-child(3n)::before { display: block; right: -20px; }
  .steps li:last-child::before { display: none; }
  .steps h3 { font-size: 1.05rem; min-height: 2.2em; text-wrap: pretty; }
  .steps p { font-size: .88rem; }
}

/* Qualify section: centre the copy column against the requirements list */
.honest-copy { align-self: center; }

/* Underlined sentence inside an FAQ answer */
.faq mark.faq-note { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--sign); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* Step change: a short fade-and-rise so the new question doesn't just pop in */
.qualify fieldset.enter { animation: step-in .24s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q-head.is-done { justify-content: center; text-align: center; }

/* Discharge month and year side by side. */
.ym { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; }
