/* Public funnel: landing, quick-qualify, results, calculator. */
.site-head .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.site-head nav { display: none; gap: 4px; margin-left: 12px; }
.site-head nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.site-head nav a:hover { background: var(--sunken); }
@media (min-width: 1120px) { .site-head nav { display: flex; } }
.lo-chip { display: none; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; line-height: 1.2; }
.lo-chip .av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font: 600 13px/1 var(--font); }
@media (min-width: 760px) { .lo-chip { display: inline-flex; } }

.hero { padding: 28px 0 48px; position: relative; }
.hero-grid { display: grid; gap: 24px; align-items: start; grid-template-areas: 'intro' 'card' 'extras'; }
.hero-grid .intro { grid-area: intro; } .hero-grid .qq, .hero-grid .example { grid-area: card; } .hero-grid .extras, .hero-grid .goals { grid-area: extras; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: 'intro card' 'extras card'; gap: 0 56px; padding-top: 28px; } }
/* home: goal tiles, example card */
.hero .hero-grid { grid-template-areas: 'intro' 'extras' 'card'; }
@media (min-width: 980px) { .hero .hero-grid { grid-template-areas: 'intro card' 'extras card'; } }
.goals-q { margin: 6px 0 12px; font-size: 14px; }
.tiles { display: grid; gap: 10px; max-width: 620px; }
.tile-btn { display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, transform .08s, box-shadow .15s; font: inherit; }
.tile-btn:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.tile-btn:active { transform: translateY(1px); }
.tile-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.tile-ico svg { width: 30px; height: 30px; }
.tile-text strong { display: block; font: 600 18px/1.25 var(--font); }
.tile-text span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.tile-go { font-size: 20px; color: var(--brand); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 16px 0 0; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.trust li::before { content: '✓'; color: var(--good); font-weight: 700; margin-right: 6px; }
.example { padding: 22px; }
.ex-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.ex-row span { color: var(--muted); }
.ex-row strong { font-variant-numeric: tabular-nums; }
.ex-ratio { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; }
.ex-ratio .serif { font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.ex-ratio span:last-child { font: 600 18px/1 var(--serif); color: var(--brass); }
.what-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .what-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; } }
.what-grid p { font-size: 16.5px; color: var(--ink-2); }
.compare { padding: 0; overflow: hidden; }
.compare .table td:first-child { color: var(--muted); font-weight: 500; }
.compare p { padding: 0 16px 16px; }
.cta-band { background: var(--ink); color: var(--paper); padding: 40px 0; }
.cta-band .muted { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.cta-band .btn:not(.primary) { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); }
:root[data-theme='dark'] .cta-band { background: var(--surface); }
/* guided flow, one question per screen */
.flow { min-height: 100dvh; display: flex; flex-direction: column; }
.flow-top { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.flow-top .wrap { min-height: 60px; }
.flow-progress { height: 4px; background: var(--line-2); }
.flow-progress i { display: block; height: 100%; background: var(--brand); transition: width .25s ease; }
.flow-body { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 32px 16px 48px; }
.flow-card { display: grid; gap: 14px; }
.flow-card .q { font-size: clamp(26px, 4.6vw, 36px); margin: 0 0 6px; }
.flow-card > .muted { margin: -6px 0 6px; }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
@media (max-width: 520px) { .choices { grid-template-columns: repeat(min(var(--cols, 2), 2), minmax(0, 1fr)); } }
@media (max-width: 520px) { .choices[style*="--cols:5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice { min-height: 64px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; display: grid; gap: 3px; align-content: center; transition: border-color .12s, box-shadow .12s; }
.choice strong { font: 600 16.5px/1.3 var(--font); }
.choice span { font-size: 13.5px; color: var(--muted); }
.choice:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.choice[aria-pressed='true'] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.flow-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.flow-note { margin: 22px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 0.98; letter-spacing: -0.035em; max-width: 12ch; margin-bottom: 18px; }
.hero .lede { font-size: 17.5px; color: var(--ink-2); max-width: 46ch; }
.proof { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 20px; margin: 26px 0 0; padding: 0; list-style: none; max-width: 520px; }
@media (min-width: 560px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proof li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.proof li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 2px; background: var(--brass); transform: rotate(45deg); }
.formula { margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.formula .frac { display: grid; text-align: center; font: 600 15px/1.25 var(--font); }
.formula .frac span:first-child { border-bottom: 2px solid var(--ink); padding: 0 6px 3px; }
.formula .frac span:last-child { padding-top: 3px; color: var(--muted); }
.formula .eq { font: 600 26px/1 var(--serif); color: var(--brass); }

.qq { position: relative; }
.qq .card { padding: 22px; }
.qq-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.qq-head h2 { font-size: 22px; margin: 0; }
.qq .grid { --gap: 14px; }
.qq-foot { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 18px; }
.qq-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

.results { padding: 8px 0 40px; }
.results .card { padding: 24px; }
.big-ratio { display: flex; align-items: baseline; gap: 10px; }
.big-ratio .n { font: 600 clamp(56px, 10vw, 84px)/0.95 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.big-ratio .x { font: 600 28px/1 var(--serif); color: var(--brass); }
.result-top { display: grid; gap: 20px; }
@media (min-width: 900px) { .result-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; } }
.figure-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
@media (min-width: 640px) { .figure-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figure-row .stat .value { font-size: 20px; }
.result-cols { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 900px) { .result-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cta-bar { position: sticky; bottom: 0; z-index: 10; margin-top: 18px; padding: 12px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.adjust input[type='range'] { width: 100%; accent-color: var(--brand); }
.rate-math { width: 100%; font-size: 14px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rate-math td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.rate-math td:last-child { text-align: right; font-weight: 600; }
.rate-math tr.total td { border-bottom: 0; border-top: 1px solid var(--ink); font-weight: 700; padding-top: 8px; }

.section { padding: 56px 0; }
.section.alt { background: var(--surface-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { max-width: 680px; margin-bottom: 26px; }
.how { display: grid; gap: 16px; }
@media (min-width: 860px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how .card h3 { font-size: 20px; }
.how .n { font: 600 14px/1 var(--serif); color: var(--brass); margin-bottom: 10px; display: block; }

.calc { display: grid; gap: 18px; }
@media (min-width: 980px) { .calc { grid-template-columns: 380px minmax(0, 1fr); align-items: start; } }
.calc .inputs { display: grid; gap: 14px; }
.chart svg { width: 100%; height: auto; }
.chart .legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.chart .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.sched { max-height: 420px; overflow: auto; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font: 600 16.5px/1.4 var(--font); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--brass); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 72ch; }
.code-input { font: 600 28px/1 var(--mono); letter-spacing: 0.4em; text-align: center; }
.paused { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }

@media (max-width: 560px) { .site-head .hide-sm { display: none; } .site-head .wrap { gap: 8px; } .hero { padding-top: 16px; } }
/* rent step: optional ZIP + bedrooms and the Census hint */
.rent-help { margin-top: 4px; }
.rent-hint { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--brand-soft); font-size: 14px; color: var(--ink-2); }
.rent-hint strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Address first */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-address { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 22px; max-width: 560px; }
.hero-address .input { height: 52px; font-size: 16px; }
.hero-address .btn { height: 52px; }
.hero-address-note { grid-column: 1 / -1; }
@media (max-width: 560px) { .hero-address { grid-template-columns: 1fr; } }
.addr-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.addr-row .field { margin: 0; }
.addr-found { margin-top: 16px; padding: 16px; display: grid; gap: 10px; }
.addr-line { margin: 0; }
.rent-est { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.rent-est-n { font-size: 40px; line-height: 1.05; margin: 4px 0; font-variant-numeric: tabular-nums; }
.rent-est-n span { font-size: 16px; color: var(--muted); margin-left: 4px; }
.rent-hint.est { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-top: 10px; }
.rent-hint.est.warn { background: var(--warn-soft, #fff4e5); }
@media (max-width: 560px) { .addr-row { grid-template-columns: 1fr; } }

/* Monthly costs on the rent step */
.costs-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.costs-h { font: 600 15px/1.2 var(--font); margin: 0; color: var(--ink-2); }
.hoa-row { display: grid; gap: 10px; }
.hoa-row .field { max-width: 280px; }

/* Hero: the address bar is the one bold element; goals are quiet links under it. */
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(var(--surface), var(--paper)); }
.hero-address { grid-template-columns: 1fr auto; gap: 0; max-width: 600px; margin-top: 26px; padding: 6px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); }
.hero-address:focus-within { border-color: var(--brand); box-shadow: var(--focus), var(--shadow-lg); }
.hero-address .input { height: 54px; border: 0; background: transparent; box-shadow: none; font-size: 17px; padding-left: 14px; }
.hero-address .input:focus { box-shadow: none; }
.hero-address .btn { height: 54px; padding: 0 22px; border-radius: 8px; font-size: 16px; }
.hero-address-note { grid-column: 1 / -1; padding: 8px 14px 4px; }
@media (max-width: 560px) { .hero-address { grid-template-columns: 1fr; } .hero-address .btn { width: 100%; } }
.goals-q { margin: 22px 0 10px; color: var(--muted); font-weight: 500; }
.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 600px; gap: 8px; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }
.tile-btn { grid-template-columns: 1fr; gap: 2px; padding: 12px 14px; border-radius: 10px; box-shadow: none; }
.tile-btn:hover { box-shadow: none; background: var(--brand-soft); }
.tile-ico, .tile-go { display: none; }
.tile-text strong { font: 600 15px/1.25 var(--font); }
.tile-text span { font-size: 12.5px; line-height: 1.35; }
.example { border-color: var(--ink); box-shadow: 6px 6px 0 var(--sunken); }
.ex-ratio .serif { font-size: 72px; letter-spacing: -0.04em; }
.rent-est-n { font-family: var(--serif); font-weight: 700; letter-spacing: -0.03em; }

/* Address suggestions */
.addr-ac { position: relative; min-width: 0; }
.addr-ac .input { width: 100%; }
.addr-ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 300px; overflow: auto; text-align: left; }
.addr-ac-list li { padding: 11px 12px; border-radius: 7px; cursor: pointer; font-size: 15px; line-height: 1.3; }
.addr-ac-list li.on { background: var(--brand-soft); }
.hero-address .addr-ac-list { left: -6px; right: -120px; top: calc(100% + 12px); }
@media (max-width: 560px) { .hero-address .addr-ac-list { right: -6px; } }

.addr-miss { margin-top: 16px; border-color: var(--warn); background: var(--warn-soft); }
.addr-miss-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .addr-miss-grid { grid-template-columns: 2fr 1.3fr 1.2fr 0.8fr; } }

.rent-est > div { flex: 1 1 260px; min-width: 0; }
.rent-est > .pill { flex: none; }
.closing { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.closing summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: 14.5px; }
.closing-group { margin-top: 14px; }
.closing-head { display: flex; justify-content: space-between; font-weight: 650; font-size: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.closing-kv { font-size: 13.5px; gap: 6px 16px; }
.closing-kv dd { font-weight: 500; }

.big-ratio.tone-stellar .n, .big-ratio.tone-great .n, .big-ratio.tone-good .n { color: var(--good); }
.big-ratio.tone-ok .n, .big-ratio.tone-low .n { color: var(--ink); }
.big-ratio.tone-out .n { color: #c9601f; }
.big-ratio .dscr-star { font-size: 34px; align-self: center; }

/* hero example: rent against payment, then the ratio */
.example.card { padding: 26px 26px 22px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.ex-kicker { margin: 0 0 14px; font: 600 13px/1.2 var(--font); color: var(--muted); }
.ex-bars { display: grid; gap: 12px; }
.ex-bar { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; align-items: baseline; }
.ex-bar-l { font: 500 14px/1.2 var(--font); color: var(--ink-2); }
.ex-bar-v { font: 600 17px/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--ink); }
.ex-bar i { grid-column: 1 / -1; display: block; height: 14px; border-radius: 5px; }
.ex-bar.rent i { background: var(--brand); }
.ex-bar.pay i { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 26%, var(--surface)) 0 6px, color-mix(in srgb, var(--ink) 18%, var(--surface)) 6px 12px); }
.example .ex-ratio { display: flex; align-items: center; gap: 14px; margin: 22px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.example .ex-ratio .serif { font-size: clamp(56px, 6.4vw, 76px); line-height: 0.9; letter-spacing: -0.04em; color: var(--ink); }
.example .ex-ratio > span:nth-child(2) { font: 500 14px/1.35 var(--font); color: var(--muted); flex: 1; }
.ex-meter { margin: 14px 2px 58px; }

/* loan officer page: what you get */
.lo-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); border-radius: 14px; overflow: hidden; }
.lo-feature { padding: 22px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lo-feature h3 { font-size: 17px; margin: 0 0 8px; }
.lo-feature p { font-size: 14.5px; line-height: 1.5; }
