/* ==========================================================================
   DeedZip — design system
   Tokens → base → layout → components → pages → utilities
   ========================================================================== */

:root {
  /* Ink & neutrals */
  --ink: #0b0b0b;
  --ink-2: #161616;
  --ink-3: #262626;
  --text: #1f1f1f;
  --muted: #5c5c5c;
  --subtle: #8f8f8f; /* borders & icons only (3:1) */
  --subtle-text: #6b6b6b; /* dimmed text that still meets 4.5:1 */
  --line: #e9e6e1;
  --line-2: #d6d2cb;
  --bg: #ffffff;
  --bg-alt: #f6f5f3;
  --bg-warm: #faf7f2;

  /* Brand: DeedZip orange. --brand is the text-safe shade (links, labels: 5.5:1 on white);
     --brand-fill is the logo orange for buttons and badges, always with --on-brand text. */
  --brand: #b9410a;
  --brand-600: #a63a0b;
  --brand-700: #8f320a;
  --brand-50: #fff3eb;
  --brand-100: #ffe0cc;
  --brand-fill: #ff6a1f;
  --brand-fill-600: #f25a0c;
  --brand-hi: #ffa25c; /* orange text and icons on black */
  --on-brand: #140800;
  --gold: #ff6a1f;
  --gold-600: #e2520c;
  --gold-50: #fff4ec;

  --danger: #b42318;
  --danger-50: #fef3f2;

  /* Chart palette (validated: CVD-safe adjacent order on white) */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 11, 0.06), 0 1px 3px rgba(11, 11, 11, 0.06);
  --shadow: 0 2px 6px rgba(11, 11, 11, 0.05), 0 12px 32px rgba(11, 11, 11, 0.08);
  --shadow-lg: 0 24px 64px rgba(11, 11, 11, 0.18);
  --ring: 0 0 0 3px rgba(255, 106, 31, 0.35);

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;
  --mobile-bar-h: 0px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--mobile-bar-h);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
/* Headings/regions focused by script for screen readers (tabindex="-1") don't need a ring */
[tabindex='-1']:focus { outline: none; }
/* Light focus ring on dark surfaces so it keeps ≥3:1 contrast */
.section--dark :focus-visible, .page-hero--dark :focus-visible, .cta-band :focus-visible, .mini-calc__result :focus-visible,
.contact-call :focus-visible, .side-cta :focus-visible, .call-now :focus-visible, .topbar :focus-visible, .calc-cta :focus-visible { outline-color: var(--brand-hi); }
/* Bigger hit areas for small standalone links without changing layout (inline padding doesn't affect line boxes) */
.breadcrumbs a, .footer__legal p a { padding: 10px 0; }
@media (max-width: 899px) { .link-arrow { min-height: 44px; } }
::selection { background: var(--brand-100); color: var(--ink); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1320px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--bg-alt); }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--ink); color: #d6d1c9; }
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.section__head p { color: var(--muted); font-size: 1.125rem; }
.section--dark .section__head p { color: #b5b0a8; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }
.section--dark .eyebrow, .page-hero--dark .eyebrow, .cta-band .eyebrow { color: var(--brand-hi); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.05fr 0.95fr; } .split--reverse > :first-child { order: 2; } }

.lead { font-size: 1.1875rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 700 1rem/1.2 var(--font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--brand-fill); --btn-fg: var(--on-brand); box-shadow: 0 6px 18px rgba(255, 106, 31, 0.28); }
.btn--primary:hover { --btn-bg: var(--brand-fill-600); box-shadow: 0 10px 24px rgba(255, 106, 31, 0.34); }
.btn--dark { --btn-bg: var(--ink); }
.btn--dark:hover { --btn-bg: var(--ink-2); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--outline:hover { --btn-bd: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.28); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.14); }
.btn--lg { min-height: 56px; padding: 15px 28px; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.65; pointer-events: none; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform 0.15s; width: 1.05em; height: 1.05em; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #bfbab2; font-size: 0.8125rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar__status { display: inline-flex; align-items: center; gap: 8px; }
/* Green = available now (main.js hides the dot outside office hours) */
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.topbar__links { display: flex; gap: 20px; }
.topbar__status, .topbar__links { white-space: nowrap; }
@media (max-width: 1179px) { .topbar__hours { display: none; } }
@media (max-width: 899px) { .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11, 11, 11, 0.06); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 38px; height: 38px; }
.logo__word { display: flex; flex-direction: column; min-width: 0; font-family: var(--font-display); font-size: 1.28rem; line-height: 1; }
.logo__name { font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; }
.logo__zip, .logo__tld { color: var(--gold-600); }
.logo__tld { text-transform: none; font-weight: 600; letter-spacing: 0; }
.logo__tag { margin-top: 4px; font-size: 0.55em; font-weight: 500; letter-spacing: 0.03em; color: var(--muted); white-space: nowrap; }
.logo--light { color: #f3e9d8; }
.logo--light:hover { color: #f3e9d8; }
.logo--light .logo__zip, .logo--light .logo__tld { color: var(--brand-fill); }
.logo--light .logo__tag { color: #d9d4cb; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font: 600 0.95rem/1 var(--font); color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; }
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__link[aria-current='page'] { background: var(--bg-alt); color: var(--ink); }
.nav__link .icon { width: 16px; height: 16px; transition: transform 0.2s; color: var(--muted); }

.menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); min-width: 300px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity 0.16s, transform 0.16s, visibility 0.16s; }
.menu::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.menu--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.menu__link { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); line-height: 1.35; }
.menu__link:hover { background: var(--bg-alt); color: var(--text); }
.menu__link .icon { width: 20px; height: 20px; color: var(--brand); margin-top: 1px; }
.menu__title { display: block; font-weight: 650; color: var(--ink); font-size: 0.95rem; }
.menu__desc { display: block; font-size: 0.8125rem; color: var(--muted); }
.menu__foot { grid-column: 1 / -1; margin-top: 4px; padding: 12px; border-radius: 10px; background: var(--brand-50); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
.menu__foot a { font-weight: 700; white-space: nowrap; }
.menu:not(.menu--wide) .menu__foot { flex-direction: column; align-items: flex-start; gap: 2px; }

@media (min-width: 1100px) {
  .nav__item.has-menu:hover > .menu,
  .nav__item.has-menu:focus-within > .menu,
  .nav__item.has-menu.is-open > .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav__item.has-menu:hover > .nav__link .icon,
  .nav__item.has-menu.is-open > .nav__link .icon { transform: rotate(180deg); }
}

.header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header__phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); line-height: 1.15; white-space: nowrap; }
.header__phone:hover { color: var(--brand); }
.header__phone-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-50); color: var(--brand); }
.header__phone-icon .icon { width: 19px; height: 19px; }
.header__phone small { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.header__phone strong { font-size: 1rem; font-weight: 750; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }

/* Desktop header fit: logo + 7 nav items + phone + CTA on one line from 1100px up.
   ≥1440 full phone label · 1340–1439 number only · 1100–1339 compact nav · 1100–1239 no header phone (number stays in the topbar) */
@media (max-width: 1439px) { .header__phone small { display: none; } }
@media (min-width: 1100px) {
  .site-header .header__inner { gap: 12px; }
  .nav__link { padding: 10px 7px; font-size: 0.9rem; gap: 3px; }
  .nav__link .icon { width: 14px; height: 14px; }
  .site-header .header__actions { gap: 12px; }
  .site-header .header__actions .btn { padding: 12px 18px; font-size: 0.95rem; }
}
@media (min-width: 1100px) and (max-width: 1339px) {
  .site-header .logo__mark { width: 34px; height: 34px; }
  .site-header .logo__word { font-size: 1.14rem; }
}
@media (min-width: 1240px) and (max-width: 1339px) {
  .site-header .nav ~ .header__actions .header__phone > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1100px) and (max-width: 1239px) {
  .site-header .nav ~ .header__actions .header__phone { display: none; } /* landing pages (no nav) keep theirs */
  .nav__link { padding: 10px 6px; }
  .site-header .header__actions .btn { padding: 12px 14px; }
}
@media (max-width: 1099px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: grid; }
  .header__actions { margin-left: auto; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; background: #fff; overflow-y: auto; padding: 12px var(--gutter) 120px;
    transform: translateX(100%); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s; border-top: 1px solid var(--line);
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.0625rem; border-radius: 0; }
  .nav__link:hover, .nav__item:focus-within > .nav__link { background: none; }
  .menu, .menu--wide { position: static; transform: none; min-width: 0; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 12px; display: none; grid-template-columns: 1fr; }
  .nav__item.is-open > .menu { display: grid; }
  .nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
  .nav__mobile-cta { display: grid !important; gap: 10px; margin-top: 20px; }
  .nav__lang { justify-self: center; padding: 8px 12px; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) { .header__phone > span:last-child { display: none; } }
@media (max-width: 1099px) { .header__phone-icon { width: 44px; height: 44px; } }
@media (max-width: 440px) {
  .header__inner { gap: 12px; }
  .logo { gap: 8px; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__word { font-size: 1.1rem; }
  .header__actions { gap: 8px; }
}
@media (max-width: 359px) { .site-header .header__phone { display: none; } }
@media (min-width: 1100px) { .nav__mobile-cta { display: none !important; } }

/* ---------- Mobile sticky action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 899px) {
  :root { --mobile-bar-h: 76px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(11, 11, 11, 0.08); transform: translateY(0); transition: transform 0.25s;
  }
  .mobile-bar .btn { min-height: 52px; padding: 10px 12px; }
  .mobile-bar.is-hidden { transform: translateY(110%); }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 0.875rem; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.page-hero--dark .breadcrumbs ol, .page-hero--dark .breadcrumbs a { color: #bfbab2; }
.page-hero--dark .breadcrumbs li + li::before { color: #5a5650; }
.page-hero--dark .breadcrumbs a:hover { color: #fff; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #fff0e5 0%, rgba(255, 240, 229, 0) 60%), radial-gradient(900px 500px at -10% 110%, #f4f1ec 0%, rgba(244, 241, 236, 0) 55%), var(--bg); padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.hero__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.12fr 0.88fr; } }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--brand); }
.hero h1 .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.18em; background: var(--gold); opacity: 0.45; border-radius: 4px; z-index: -1; }
.hero__sub { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 600px; margin-bottom: 28px; }
.hero__ask { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.0625rem; margin-bottom: 12px; }
div.hero__ask { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; max-width: 640px; }
.hero__ask-q { margin: 0; }
.hero__ask-hint { display: inline-flex; align-items: center; gap: 6px; font: 600 0.8125rem var(--font); color: var(--muted); }
.hero__ask-hint .icon { width: 15px; height: 15px; color: var(--brand); }
.hero__sub strong { color: var(--ink); font-weight: 650; }
.hero__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 640px; color: var(--muted); font-size: 0.9rem; }
.hero__alt a { font-weight: 700; }
.hero__hours { display: inline-flex; align-items: center; gap: 6px; }
.hero__hours .icon { width: 16px; height: 16px; color: var(--subtle); }
/* Phone as a secondary CTA: icon bubble + label + number */
.phone-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--ink); line-height: 1.2; }
.phone-link:hover { color: var(--brand); }
.phone-link__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-fill); color: var(--on-brand); box-shadow: 0 6px 16px rgba(255, 106, 31, 0.25); flex: none; transition: transform 0.15s; }
.phone-link:hover .phone-link__icon { transform: scale(1.05); }
.phone-link__icon .icon { width: 20px; height: 20px; }
.phone-link small { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.phone-link strong { font: 800 1.2rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 22px 0 0; font-size: 0.9375rem; color: var(--text); font-weight: 500; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks .icon { color: var(--brand); width: 18px; height: 18px; stroke-width: 2.6; }
.section--dark .ticks, .page-hero--dark .ticks, .cta-band .ticks { color: #e4e0d9; }
.section--dark .ticks .icon, .page-hero--dark .ticks .icon, .cta-band .ticks .icon { color: var(--brand-hi); }

/* Goal selector (step 1 of the funnel, embedded) */
.goal-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 640px; }
@media (min-width: 640px) { .goal-cards { grid-template-columns: repeat(4, 1fr); } }
.goal-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; min-height: 118px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.25; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.goal-card:hover { color: var(--ink); border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.goal-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.goal-card__icon .icon { width: 22px; height: 22px; }
.goal-card small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }

/* Hero visual: pre-approval card */
.hero__visual { position: relative; max-width: 480px; margin: 0 auto; width: 100%; }
.approval-card { position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px; border: 1px solid var(--line); }
.approval-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 20px; }
.approval-card__label { font-size: 0.8125rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 440px) { .approval-card { padding: 22px 20px; } .approval-card__label { font-size: 0.75rem; letter-spacing: 0.04em; } .approval-card__rows div { gap: 12px; } .approval-card__rows dd { text-align: right; } }
.status-pill .icon { width: 15px; height: 15px; stroke-width: 3; }
.approval-card__amount { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 2.9rem); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.approval-card__sub { color: var(--muted); font-size: 0.9375rem; margin: 8px 0 20px; }
.approval-card__rows { display: grid; gap: 10px; margin: 0; padding: 18px 0 0; border-top: 1px dashed var(--line-2); }
.approval-card__rows div { display: flex; justify-content: space-between; font-size: 0.9375rem; }
.approval-card__rows dt { color: var(--muted); }
.approval-card__rows dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.approval-card__progress { margin-top: 20px; }
.approval-card__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.approval-card__steps span { position: relative; padding-top: 10px; }
.approval-card__steps span::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--line); }
.approval-card__steps span.done::before { background: var(--brand-fill); }
.approval-card__steps span.done { color: var(--ink); }
/* Chips sit in reserved space above/below the card and only overlap its padding, never its content */
.hero__visual { padding: 44px 0; }
.float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.3; color: var(--muted); white-space: nowrap; animation: chipFloat 6s ease-in-out infinite alternate; }
.float-chip--a { animation-delay: -3s; }
@keyframes chipFloat { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.float-chip strong { display: block; font-size: 0.9375rem; color: var(--ink); }
.float-chip__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; }
.float-chip--a { left: -20px; bottom: 0; }
.float-chip--a .float-chip__icon { background: var(--gold-50); color: var(--gold-600); }
.float-chip--b { right: -14px; top: 0; }
.float-chip--b .float-chip__icon { background: var(--brand-50); color: var(--brand); }
@media (max-width: 560px) { .float-chip--a { left: -6px; } .float-chip--b { right: -6px; } }

.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 16px; height: 16px; }

/* ---------- Trust bar ---------- */
.trust-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-bar__inner { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1080px) { .trust-bar__inner { grid-template-columns: repeat(4, 1fr) 1.25fr; } }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 22px 16px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
@media (max-width: 1079px) { .trust-item:last-child { grid-column: 1 / -1; justify-content: center; border-top: 1px solid var(--line); border-left: 0; } }
@media (min-width: 640px) and (max-width: 1079px) { .trust-bar__inner { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) { .trust-item:nth-child(odd) { border-left: 0; } .trust-item:nth-child(n + 3) { border-top: 1px solid var(--line); } }
.trust-item__value { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.trust-item__label { font-size: 0.8125rem; color: var(--muted); line-height: 1.3; margin-top: 4px; }
.trust-item > .icon { width: 28px; height: 28px; color: var(--brand); }
.trust-item__value--sm { font-size: 1.05rem; letter-spacing: -0.01em; }
.trust-item__eho { width: 34px; height: 34px; flex: none; color: var(--ink); }
.trust-item__label a { color: var(--brand); font-weight: 600; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card--pad-lg { padding: clamp(24px, 4vw, 40px); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.icon-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); margin-bottom: 18px; }
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge--gold { background: var(--gold-50); color: var(--gold-600); }
.icon-badge--ink { background: var(--ink); color: #fff; }

.feature { display: flex; gap: 16px; }
.feature .icon-badge { margin: 0; flex: none; width: 46px; height: 46px; }
.feature h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 0.975rem; margin: 0; }

/* Steps */
.steps { display: grid; gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step-card { position: relative; padding: 30px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-card__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1rem var(--font-display); margin-bottom: 16px; }
.step-card__time { position: absolute; top: 30px; right: 24px; font-size: 0.8125rem; font-weight: 700; color: var(--brand); background: var(--brand-50); padding: 4px 10px; border-radius: 999px; }
.step-card p { color: var(--muted); margin: 0; }

/* Program cards */
.program-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.program-card { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.program-card:hover { color: var(--text); border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.program-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand); margin-bottom: 16px; }
.program-card__icon .icon { width: 24px; height: 24px; }
.program-card__title { font-size: 1.125rem; margin-bottom: 6px; }
.program-card__text { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.program-card__facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; }
.program-card__facts li { font-size: 0.8125rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-3); }
.program-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); font-size: 0.95rem; }
.program-card__link .icon { width: 1em; height: 1em; transition: transform 0.15s; }
.program-card:hover .program-card__link .icon { transform: translateX(3px); }

/* Tool cards */
.tool-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tool-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.tool-card:hover { color: var(--text); border-color: var(--brand); box-shadow: var(--shadow); }
.tool-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; flex: none; }
.tool-card__icon .icon { width: 22px; height: 22px; }
.tool-card__title { display: block; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.tool-card__text { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

/* Article cards */
.article-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.article-card { display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.article-card:hover { color: var(--text); border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card__cat { align-self: flex-start; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-700); background: var(--brand-50); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.article-card__title { font-size: 1.1875rem; margin-bottom: 8px; }
.article-card__text { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.article-card__meta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.article-card__meta .icon { width: 1em; height: 1em; color: var(--brand); }

/* Comparison table (broker vs bank vs marketplace) */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; font-size: 0.975rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--bg-alt); font: 700 0.875rem var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.compare thead th.is-us { background: var(--ink); color: #fff; }
.compare td.is-us { background: var(--brand-50); font-weight: 600; color: var(--ink); }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes, .compare .no { display: inline-flex; align-items: center; gap: 6px; }
.compare .yes .icon { color: var(--brand); stroke-width: 2.6; width: 18px; height: 18px; }
.compare .no .icon { color: var(--subtle); width: 18px; height: 18px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table-scroll > table { min-width: 640px; }
/* Narrow tables don't need the full 640px scroll width on phones */
.table-scroll > table:not(:has(tr > :nth-child(4))) { min-width: 480px; }
.table-scroll > table:not(:has(tr > :nth-child(3))) { min-width: 0; }

/* Testimonials */
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.testimonial blockquote { margin: 0; font-size: 1.0625rem; color: var(--ink); line-height: 1.6; }
.testimonial__who { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 0.9rem; color: var(--muted); }
.testimonial__who strong { display: block; color: var(--ink); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 0.95rem var(--font-display); flex: none; }
.avatar--lg { width: 88px; height: 88px; font-size: 1.6rem; }
img.avatar { object-fit: cover; object-position: center 20%; }
.lo-profile { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (min-width: 860px) { .lo-profile { grid-template-columns: minmax(0, 340px) 1fr; } }
.lo-profile__photo { width: 100%; height: auto; max-width: 340px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 0 auto; }
.lo-profile__title { color: var(--brand); font-weight: 650; }
.lo-profile h2 { margin-bottom: 4px; }
.sample-badge { align-self: flex-start; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8f320a; background: var(--gold-50); padding: 3px 8px; border-radius: 6px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s, box-shadow 0.15s; }
.faq__item[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font: 700 1.0625rem/1.4 var(--font-display); color: var(--ink); }
.faq__q::-webkit-details-marker { display: none; }
.faq__chev { transition: transform 0.2s; color: var(--muted); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 22px 20px; color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); color: #d6d1c9; padding: clamp(32px, 5vw, 64px); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } }
.cta-band::after { content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 31, 0.35), rgba(255, 106, 31, 0) 70%); pointer-events: none; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; font-size: 1.0625rem; }
.cta-band__actions { position: relative; z-index: 1; display: grid; gap: 12px; }
.cta-band__phone { display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-weight: 700; text-decoration: none; font-size: 1.0625rem; }
.cta-band__phone:hover { color: var(--brand-hi); }

/* Inline CTA (inside articles) */
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px; margin: 2rem 0; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); }
.inline-cta strong { display: block; font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 2px; }
.inline-cta p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Page heroes (interior) ---------- */
.page-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-hero--dark { background: radial-gradient(800px 400px at 90% 0%, rgba(255, 106, 31, 0.22), transparent 60%), var(--ink); color: #d6d1c9; border-bottom: 0; }
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .lead { color: #bfbab2; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.page-hero__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.2fr 0.8fr; } }
.page-hero .lead { max-width: 680px; }
.fact-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; padding: 0; list-style: none; }
.fact-strip li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.fact-strip .icon { width: 16px; height: 16px; color: var(--brand); stroke-width: 2.6; }
.page-hero--dark .fact-strip li { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.page-hero--dark .fact-strip .icon { color: var(--brand-hi); }

/* Quick-start box in page heroes */
.quick-start { background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); color: var(--text); }
.quick-start h2 { font-size: 1.3rem; margin-bottom: 6px; }
.quick-start p { color: var(--muted); font-size: 0.95rem; }
.quick-start .goal-cards { grid-template-columns: 1fr 1fr; }
.quick-start__options { display: grid; gap: 10px; margin: 16px 0; }
.quick-start__opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 650; transition: border-color 0.15s, background 0.15s; }
.quick-start__opt:hover { border-color: var(--brand); background: var(--brand-50); color: var(--ink); }
.quick-start__opt .icon { color: var(--brand); }
.quick-start__foot { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); margin-top: 14px; }
.quick-start__foot .icon { width: 16px; height: 16px; color: var(--brand); }

/* ---------- Article / content layout ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: clamp(40px, 6vw, 72px); }
@media (min-width: 1040px) { .content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } }
.content-aside { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1040px) { .content-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.toc__title { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 0; font-size: 0.925rem; color: var(--text); text-decoration: none; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; font-size: 0.8125rem; color: var(--subtle-text); padding-top: 1px; }
.toc a:hover, .toc a.is-active { color: var(--brand); }
@media (max-width: 1039px) { .content-aside .toc { display: none; } }

.side-cta { padding: 26px; border-radius: var(--radius); background: var(--ink); color: #d6d1c9; }
.side-cta h3 { color: #fff; font-size: 1.25rem; }
.side-cta p { font-size: 0.95rem; }
.side-cta .btn { width: 100%; margin-top: 6px; }
.side-cta__phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: #fff; font-weight: 700; text-decoration: none; }
.side-cta__phone:hover { color: var(--brand-hi); }

.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: 0.9rem; margin-top: 18px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 16px; height: 16px; }

.prose { font-size: 1.0625rem; max-width: 760px; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.5vw, 1.85rem); margin: 2.4rem 0 0.8rem; }
.prose h3 { font-size: 1.25rem; margin: 1.8rem 0 0.6rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--brand); }
.prose a { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--bg-alt); font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line-2); }
.prose tbody tr:hover { background: #faf9f7; }
.prose .table-scroll { margin: 1.5rem 0; border: 1px solid var(--line); }
.prose .table-scroll table { margin: 0; }
.prose blockquote { margin: 1.5rem 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--ink); font-style: italic; }

.key-takeaways { margin: 0 0 2rem; padding: 24px 26px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.key-takeaways h2, .key-takeaways .key-takeaways__title { font: 700 0.875rem var(--font) !important; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-700) !important; margin: 0 0 12px !important; }
.key-takeaways ul { margin: 0 !important; padding: 0; list-style: none; display: grid; gap: 10px; }
.key-takeaways li { position: relative; padding-left: 30px; margin: 0 !important; }
.key-takeaways li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23140800' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

.callout { display: flex; gap: 14px; padding: 18px 20px; margin: 1.5rem 0; border-radius: var(--radius-sm); background: var(--gold-50); border: 1px solid #ffd9c2; color: var(--text); font-size: 0.975rem; }
.callout > .icon { color: var(--gold-600); width: 22px; height: 22px; margin-top: 2px; }
.callout p:last-child { margin: 0; }
.callout--tip { background: var(--brand-50); border-color: var(--brand-100); }
.callout--tip > .icon { color: var(--brand); }
.callout--pro { background: var(--bg-alt); border-color: var(--line); }
.callout--pro > .icon { color: var(--ink); }

.disclaimer { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--brand); margin-top: 3px; stroke-width: 2.6; width: 20px; height: 20px; }

/* Pros/cons */
.pros-cons { display: grid; gap: 16px; margin: 1.5rem 0; }
@media (min-width: 700px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons > div { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.pros-cons h3, .pros-cons h4 { margin: 0 0 10px; font-size: 1.0625rem; }
.pros-cons ul { margin: 0; padding-left: 1.1rem; }
.pros-cons .pros { border-top: 3px solid var(--brand); }
.pros-cons .cons { border-top: 3px solid var(--subtle); }

/* Requirement grid on loan pages */
.req-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 1.5rem 0 2rem; }
@media (min-width: 420px) { .req-grid { grid-template-columns: 1fr 1fr; } }
.req { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.req__label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.req__value { font: 800 1.5rem/1.2 var(--font-display); color: var(--ink); letter-spacing: -0.02em; margin: 4px 0; }
.req__note { font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field + .field { margin-top: 16px; }
.field-row { display: grid; gap: 14px; }
.field-row > .field + .field { margin-top: 0; } /* side-by-side fields share the row's top edge; the grid gap spaces them */
.field-row + .field, .field + .field-row { margin-top: 16px; }
@media (min-width: 560px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }
.label { font-weight: 650; font-size: 0.9375rem; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label__hint { font-weight: 500; color: var(--muted); font-size: 0.8125rem; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff;
  font: 500 1rem var(--font); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 120px; resize: vertical; }
.select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566275' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 42px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--subtle); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14); }
.field__error { display: none; color: var(--danger); font-size: 0.8125rem; font-weight: 600; }
.field.has-error .field__error { display: block; }
.field.has-error .input { border-color: var(--danger); }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix .input { padding-left: 30px; }
.input-affix__pre, .input-affix__post { position: absolute; top: 50%; transform: translateY(-50%); line-height: 1; color: var(--muted); font-weight: 600; pointer-events: none; }
.input-affix__pre { left: 14px; }
.input-affix__post { right: 14px; }
.input-affix--post .input { padding-left: 14px; padding-right: 40px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Range slider */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 2px 0 0; --pct: 50%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) var(--pct), var(--line) var(--pct)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--brand-fill); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(11, 11, 11, 0.2); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(11, 11, 11, 0.2); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }

/* Segmented control */
.segmented { display: flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); }
.segmented label { flex: 1; position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 9px 8px; border-radius: 9px; font-weight: 650; font-size: 0.9rem; color: var(--muted); transition: background 0.15s, color 0.15s; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { box-shadow: var(--ring); }

/* Call/text consent: shown ABOVE the submit button, 14px+, body-text contrast (TCPA/FTSA "clear and conspicuous") */
.consent { font-size: 0.875rem; line-height: 1.5; color: var(--text); margin: 16px 0 14px; }
.consent a { color: inherit; text-decoration: underline; }
.consent-optin { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); font-size: 0.875rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.consent-optin input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.identity { margin: 0 0 6px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 0.8125rem; color: var(--muted); }
.secure-note .icon { width: 15px; height: 15px; color: var(--brand); }

/* ---------- Calculators ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 980px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.calc__inputs { padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.calc__inputs .field + .field { margin-top: 0; }
.calc__results { padding: clamp(22px, 3vw, 34px); background: var(--bg-alt); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }
@media (min-width: 980px) { .calc__results { border-top: 0; border-left: 1px solid var(--line); } }
.calc__group-title { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 6px 0 -6px; }
.calc details.calc__more { border-top: 1px solid var(--line); padding-top: 16px; }
.calc details.calc__more summary { cursor: pointer; font-weight: 700; color: var(--brand); list-style: none; display: flex; align-items: center; gap: 6px; }
.calc details.calc__more summary::-webkit-details-marker { display: none; }
.calc details.calc__more[open] summary .icon { transform: rotate(180deg); }
.calc details.calc__more .calc__more-body { display: grid; gap: 20px; margin-top: 18px; }

.result-hero { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.result-hero__label { font-size: 0.875rem; font-weight: 650; color: var(--muted); }
.result-hero__value { font: 800 clamp(2.4rem, 5vw, 3.2rem)/1.05 var(--font-display); color: var(--ink); letter-spacing: -0.03em; margin: 6px 0 4px; }
.result-hero__value small { font-size: 0.4em; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.result-hero__sub { font-size: 0.9rem; color: var(--muted); }
.result-hero--brand { background: var(--ink); border-color: var(--ink); }
.result-hero--brand .result-hero__label, .result-hero--brand .result-hero__sub { color: #b5b0a8; }
.result-hero--brand .result-hero__value { color: #fff; }

.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.stat { padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.stat__label { font-size: 0.8125rem; color: var(--muted); font-weight: 600; line-height: 1.3; }
.stat__value { font: 800 1.3rem/1.2 var(--font-display); color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat__value.is-good { color: var(--brand-700); }
.stat__value.is-bad { color: var(--danger); }

/* Payment breakdown: stacked bar + legend */
.breakdown__bar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; margin: 14px 0 16px; background: var(--line); }
.breakdown__seg { height: 100%; min-width: 2px; transition: flex-grow 0.3s ease, opacity 0.15s; cursor: default; }
.breakdown__seg:hover { opacity: 0.8; }
.breakdown__legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.breakdown__legend li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.breakdown__legend li:last-child { border-bottom: 0; }
.breakdown__swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.breakdown__name { color: var(--text); }
.breakdown__val { margin-left: auto; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Amortization chart */
.chart-card { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.chart-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.chart-card__head h3 { margin: 0; font-size: 1.0625rem; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: #ebe8e3; stroke-width: 1; }
.chart .axis-label { fill: var(--subtle-text); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .bar { transition: opacity 0.12s; }
.chart .hit:hover + .bar, .chart .col:hover .bar { opacity: 0.78; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 170px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 0.8125rem; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, -100%); transition: opacity 0.1s; }
.chart-tip.is-visible { opacity: 1; }
.chart-tip__title { font-weight: 700; margin-bottom: 6px; color: #b5b0a8; }
.chart-tip__row { display: flex; align-items: center; gap: 8px; }
.chart-tip__row i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-tip__row b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }

/* Amortization table + gate */
.amort-wrap { position: relative; margin-top: 8px; }
.amort-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.amort-table th, .amort-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.amort-table th:first-child, .amort-table td:first-child { text-align: left; }
.amort-table thead th { font-size: 0.8125rem; color: var(--muted); font-weight: 700; background: var(--bg-alt); position: sticky; top: 0; }
.amort-table tr.is-locked td { filter: blur(5px); user-select: none; }
.gate { position: absolute; left: 0; right: 0; bottom: 0; top: 220px; display: grid; place-items: center; padding: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 22%, #fff 45%); }
.gate__box { width: 100%; max-width: 440px; text-align: center; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gate__box h3 { font-size: 1.125rem; margin-bottom: 4px; }
.gate__box p { color: var(--muted); font-size: 0.9rem; }
.gate__form { display: flex; gap: 8px; margin-top: 12px; }
.gate__form .input { min-height: 46px; }
.gate__form .btn { min-height: 46px; }
@media (max-width: 480px) { .gate__form { flex-direction: column; } }

.calc-cta { padding: 22px; border-radius: var(--radius); background: var(--ink); color: #d6d1c9; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.calc-cta .btn { white-space: normal; text-align: center; }
/* Single-column calculator stacks must never size to their widest child (chart, table, long button) */
.calc-section .calc-wide, .calc-section .chart-card { min-width: 0; }
.calc-section .calc-wide { grid-template-columns: minmax(0, 1fr); }
.calc-section .calc-panel { min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.calc-cta strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; display: block; }
.calc-cta p { margin: 0; font-size: 0.925rem; }
.calc-cta .btn { --btn-bg: var(--brand-fill); --btn-fg: var(--on-brand); box-shadow: none; }
.calc-cta .btn:hover { --btn-bg: var(--brand-hi); }
.calc-cta__phone { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; justify-content: center; }
.calc-cta__phone:hover { color: #fff; text-decoration: underline; }

.tier-cards { display: grid; gap: 12px; }
@media (min-width: 560px) { .tier-cards { grid-template-columns: repeat(3, 1fr); } }
.tier { padding: 18px 16px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); }
.tier.is-featured { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.tier__name { font-size: 0.8125rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tier__value { font: 800 1.45rem/1.15 var(--font-display); color: var(--ink); margin: 6px 0 2px; letter-spacing: -0.02em; }
.tier__meta { font-size: 0.8125rem; color: var(--muted); }

.meter { position: relative; height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 10px; }
.meter__fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--brand-fill); transition: width 0.3s; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; }
.badge .icon { width: 14px; height: 14px; stroke-width: 3; }
.badge--good { background: var(--brand-50); color: var(--brand-700); }
.badge--warn { background: var(--gold-50); color: #8f320a; }
.badge--bad { background: var(--danger-50); color: var(--danger); }

/* Home mini calculator */
.mini-calc { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
/* Side-by-side only when the calculator itself has room (~600px+), regardless of viewport */
.mini-calc { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 960px) { .split--calc { grid-template-columns: 0.8fr 1.2fr; } }
.mini-calc__inputs { padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }
.mini-calc__result { padding: clamp(22px, 3vw, 36px); background: var(--ink); color: #d6d1c9; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.mini-calc__result .result-hero__label { color: #b5b0a8; }
.mini-calc__result .result-hero__value { color: #fff; }
.mini-calc__result .breakdown__legend li { border-color: rgba(255, 255, 255, 0.1); }
.mini-calc__result .breakdown__name { color: #d6d1c9; }
.mini-calc__result .breakdown__val { color: #fff; }
.mini-calc__result .breakdown__bar { background: rgba(255, 255, 255, 0.12); }

/* ---------- Funnel (get-started) ---------- */
.funnel-body { --mobile-bar-h: 0px; background: var(--bg-alt); min-height: 100vh; display: flex; flex-direction: column; }
.funnel-header { background: #fff; border-bottom: 1px solid var(--line); }
.funnel-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.funnel-header__secure { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.funnel-header__secure .icon { width: 16px; height: 16px; color: var(--brand); }
@media (max-width: 640px) { .funnel-header__secure { display: none; } }
.funnel-main { flex: 1; padding: clamp(20px, 4vw, 48px) 0 64px; }
.funnel { max-width: 720px; margin: 0 auto; }
.funnel__progress { margin-bottom: 22px; }
.funnel__progress-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.funnel__bar { height: 8px; border-radius: 8px; background: #e6e2dc; overflow: hidden; }
.funnel__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-fill), var(--brand-hi)); border-radius: 8px; transition: width 0.35s ease; }
.funnel__card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.funnel__step { animation: stepIn 0.28s ease both; }
.funnel__step.is-back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.funnel__q { font-size: clamp(1.45rem, 3vw, 1.95rem); margin-bottom: 8px; }
.funnel__help { color: var(--muted); margin-bottom: 24px; }
.funnel__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.funnel__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; background: none; border: 0; padding: 10px 4px; font: 650 0.95rem var(--font); color: var(--muted); cursor: pointer; }
.funnel__back:hover { color: var(--ink); }
.funnel__back .icon { transform: rotate(180deg); width: 18px; height: 18px; }
.funnel__aside { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 22px; font-size: 0.875rem; color: var(--muted); }
.funnel__aside span { display: inline-flex; align-items: center; gap: 6px; }
.funnel__aside .icon { width: 16px; height: 16px; color: var(--brand); }
.funnel__help-call { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-size: 0.925rem; color: var(--muted); flex-wrap: wrap; text-align: center; }
.funnel__help-call a { font-weight: 700; }

.options { display: grid; gap: 12px; }
.options--2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .options--3 { grid-template-columns: repeat(3, 1fr); } .options--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .options--2 { grid-template-columns: 1fr; } }
.option { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; min-height: 68px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; text-align: left; font: 650 1rem/1.3 var(--font); color: var(--ink); cursor: pointer; transition: border-color 0.12s, background 0.12s, box-shadow 0.12s, transform 0.12s; }
.option:hover { border-color: var(--brand); background: #fffaf6; }
.option:active { transform: scale(0.99); }
.option.is-selected { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand) inset; }
.option__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt); color: var(--brand); flex: none; transition: background 0.12s; }
.option.is-selected .option__icon, .option:hover .option__icon { background: #fff; }
.option__icon .icon { width: 22px; height: 22px; }
.option__text small { display: block; font-weight: 500; font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }
.option__check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; color: transparent; transition: all 0.12s; }
.option__check .icon { width: 14px; height: 14px; stroke-width: 3.2; }
.option.is-selected .option__check { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--on-brand); }
.option--multi .option__check { border-radius: 6px; }
.option--stack { flex-direction: column; align-items: flex-start; text-align: left; min-height: 120px; }
.option--stack .option__check { position: absolute; top: 14px; right: 14px; }

.big-value { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 4px; }
.big-value .input { font: 800 1.8rem var(--font-display); min-height: 64px; letter-spacing: -0.02em; }
.big-value.input-affix { align-items: center; }
.big-value .input-affix__pre { left: 16px; font: 800 1.35rem var(--font-display); color: var(--subtle-text); }
.big-value.input-affix .input { padding-left: 38px; }
.slider-meta { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--muted); }
.down-summary { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); font-size: 0.925rem; color: var(--muted); }
.down-summary strong { color: var(--ink); }

.funnel__loading { text-align: center; padding: 30px 0; }
.spinner { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; border: 4px solid var(--brand-50); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing-list { list-style: none; padding: 0; margin: 20px auto 0; max-width: 340px; text-align: left; display: grid; gap: 10px; }
.analyzing-list li { display: flex; align-items: center; gap: 10px; color: var(--subtle-text); transition: color 0.2s; }
.analyzing-list li.done { color: var(--ink); }
.analyzing-list .icon { color: var(--line-2); stroke-width: 3; width: 18px; height: 18px; }
.analyzing-list li.done .icon { color: var(--brand); }

.form-alert { display: none; padding: 12px 14px; border-radius: 10px; background: var(--danger-50); color: var(--danger); font-weight: 600; font-size: 0.9rem; margin-top: 14px; }
.form-alert.is-visible { display: block; }

.mini-footer { padding: 22px 0 calc(22px + var(--mobile-bar-h)); border-top: 1px solid var(--line); background: #fff; font-size: 0.78rem; color: var(--muted); }
.mini-footer p { margin: 0 0 6px; }
.mini-footer a { color: var(--muted); }

/* ---------- Thank you ---------- */
.ty-hero { text-align: center; padding: clamp(36px, 6vw, 72px) 0 32px; }
.ty-check { width: 76px; height: 76px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-fill); color: var(--on-brand); box-shadow: 0 0 0 10px var(--brand-50); animation: pop 0.4s ease both; }
.ty-check .icon { width: 38px; height: 38px; stroke-width: 3; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ty-grid { display: grid; gap: 20px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 900px) { .ty-grid { grid-template-columns: 1fr 1fr; } }
.call-now { text-align: center; background: var(--ink); color: #d6d1c9; border: 0; }
.call-now h2 { color: #fff; font-size: 1.5rem; }
.call-now__number { display: block; font: 800 clamp(1.8rem, 4vw, 2.4rem) var(--font-display); color: #fff; text-decoration: none; margin: 8px 0 16px; letter-spacing: -0.02em; }
.call-now__number:hover { color: var(--brand-hi); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.slot { padding: 12px 8px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font: 650 0.875rem/1.3 var(--font); color: var(--ink); cursor: pointer; text-align: center; }
.slot small { display: block; font-weight: 500; color: var(--muted); font-size: 0.75rem; }
.slot:hover { border-color: var(--brand); }
.slot.is-selected { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand) inset; }
.summary-list { display: grid; gap: 0; margin: 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.summary-list div:last-child { border-bottom: 0; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }

/* ---------- Team ---------- */
.mlo-card { text-align: center; padding: 32px 24px; }
.mlo-card .avatar { margin: 0 auto 16px; }
.mlo-card h3 { margin-bottom: 2px; }
.mlo-card__title { color: var(--brand); font-weight: 650; font-size: 0.95rem; }
.mlo-card__nmls { font-size: 0.8125rem; color: var(--muted); margin: 4px 0 12px; }
.mlo-card p { color: var(--muted); font-size: 0.95rem; }
.mlo-card .avatar--lg { box-shadow: 0 0 0 6px var(--brand-50); }
.avatar--lg { background: linear-gradient(140deg, var(--ink-3), var(--ink)); }
.team-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.team-cta p { margin: 0; color: var(--muted); }

/* ---------- Home: "meet your loan officer" strip ---------- */
.lo-strip { display: grid; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff 0%, var(--brand-50) 100%); border: 1px solid var(--brand-100); }
@media (min-width: 1000px) { .lo-strip { grid-template-columns: auto minmax(0, 1fr) 280px; gap: 40px; } }
.lo-strip__person { display: flex; align-items: center; gap: 18px; }
.lo-strip__avatar { width: 96px; height: 96px; font-size: 1.75rem; box-shadow: 0 0 0 6px #fff, 0 10px 24px rgba(11, 11, 11, 0.18); }
.lo-strip__person .eyebrow { margin-bottom: 6px; }
.lo-strip__name { font: 800 1.35rem/1.2 var(--font-display); color: var(--ink); letter-spacing: -0.02em; margin: 0 0 4px; }
.lo-strip__title { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.lo-strip__title span { font-size: 0.8125rem; }
.lo-strip__body h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 8px; }
.lo-strip__body p { color: var(--muted); margin-bottom: 0; }
.lo-strip__body .ticks { margin-top: 14px; }
.lo-strip__actions { display: grid; gap: 10px; }
.lo-strip__actions .btn { background-color: var(--btn-bg); }
.lo-strip__actions .btn--outline { --btn-bg: #fff; }
.lo-strip__more { justify-self: center; font-size: 0.95rem; margin-top: 4px; }
@media (min-width: 600px) and (max-width: 999px) { .lo-strip__actions { grid-template-columns: 1fr 1fr; } .lo-strip__more { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .lo-strip__person { flex-direction: column; text-align: center; max-width: 220px; } .lo-strip__person .eyebrow::before { display: none; } }

.program-help { margin: 32px 0 0; color: var(--muted); }
.program-help .link-arrow { display: inline; }
.program-help .link-arrow .icon { display: inline-block; vertical-align: -0.15em; margin-left: 4px; }

/* ---------- Home: compact program cards on phones ---------- */
@media (max-width: 599px) {
  .program-grid--compact { grid-template-columns: 1fr 1fr; gap: 10px; }
  .program-grid--compact .program-card { padding: 16px 14px; }
  .program-grid--compact .program-card__icon { width: 38px; height: 38px; margin-bottom: 10px; }
  .program-grid--compact .program-card__icon .icon { width: 20px; height: 20px; }
  .program-grid--compact .program-card__title { font-size: 1rem; margin-bottom: 8px; }
  .program-grid--compact .program-card__text, .program-grid--compact .program-card__link { display: none; }
  .program-grid--compact .program-card__facts { margin: 0; gap: 4px; }
  .program-grid--compact .program-card__facts li { font-size: 0.75rem; padding: 3px 8px; }
}

/* Comparison table: sticky row labels + swipe hint on small screens */
.table-hint { display: none; align-items: center; justify-content: flex-end; gap: 6px; margin: 0 0 10px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.table-hint .icon { width: 15px; height: 15px; }
@media (max-width: 700px) {
  .table-hint { display: flex; }
  .compare--sticky th[scope='row'] { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); min-width: 130px; }
  .compare--sticky thead th:first-child { position: sticky; left: 0; z-index: 2; }
}

/* ---------- About ---------- */
.about-hero .page-hero__grid { align-items: end; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-stat { padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.about-stat__value { display: block; font: 800 2rem/1.1 var(--font-display); color: #fff; letter-spacing: -0.02em; }
.about-stat__label { display: block; margin-top: 6px; font-size: 0.875rem; color: #bfbab2; line-height: 1.4; }
.broker-diagram { margin: 0; }
.broker-diagram svg { width: 100%; height: auto; }
.broker-diagram figcaption { margin-top: 14px; text-align: center; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.bd-line { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 4 5; }
.bd-line--you { stroke: var(--brand); stroke-width: 3; stroke-dasharray: none; }
.bd-line--best { stroke: var(--brand); stroke-width: 3; stroke-dasharray: none; }
.bd-you circle:first-child { fill: var(--brand-50); stroke: var(--brand); stroke-width: 2; }
.bd-ico { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.bd-lenders rect { fill: #fff; stroke: var(--line-2); stroke-width: 1.5; }
.bd-lenders rect.bd-best { fill: var(--brand-50); stroke: var(--brand); stroke-width: 2; }
.bd-bank path { fill: none; stroke: var(--subtle); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bd-check { fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.bd-label { font: 700 13px var(--font); fill: var(--ink); text-anchor: middle; }
@media (max-width: 560px) { .bd-label { font-size: 17px; } }
.advantage-grid { gap: 32px 40px; max-width: 1000px; margin: 0 auto; }
.value-card .icon-badge { margin-bottom: 16px; }
.value-card p { color: var(--muted); font-size: 0.95rem; }
.licensing-card { display: grid; gap: 28px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
@media (min-width: 900px) { .licensing-card { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.licensing-card p { color: var(--muted); }
.licensing-card__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; }
.licensing-card__facts dd { max-width: 60%; }
.eho--dark { color: var(--ink); font-weight: 700; font-size: 0.9rem; }
.eho--dark svg { width: 24px; height: 24px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; } }
.contact-methods { display: grid; gap: 20px; }
.contact-call { display: grid; gap: 12px; padding: clamp(24px, 4vw, 32px); border-radius: var(--radius-lg); background: radial-gradient(500px 260px at 100% 0%, rgba(255, 106, 31, 0.25), transparent 60%), var(--ink); color: #d6d1c9; box-shadow: var(--shadow); }
.contact-call__label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-hi); }
.contact-call__number { font: 800 clamp(2rem, 5vw, 2.6rem)/1.1 var(--font-display); color: #fff; text-decoration: none; letter-spacing: -0.02em; margin: 2px 0 6px; }
.contact-call__number:hover { color: var(--brand-hi); }
.contact-call__hours { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 0; font-size: 0.875rem; color: #bfbab2; }
.contact-call__hours .icon { width: 16px; height: 16px; color: var(--brand-hi); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-list li { display: flex; gap: 16px; padding: 18px 20px; }
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list .icon-badge { width: 44px; height: 44px; margin: 0; flex: none; border-radius: 12px; }
.contact-list .icon-badge .icon { width: 22px; height: 22px; }
.contact-list div { display: grid; gap: 2px; min-width: 0; font-size: 0.975rem; color: var(--ink); }
.contact-list a { font-weight: 650; overflow-wrap: anywhere; justify-self: start; padding: 10px 0; margin: -10px 0; }
.contact-list address { font-style: normal; }
.contact-list__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.contact-list__note { font-size: 0.875rem; color: var(--muted); }
a.contact-list__note { color: var(--brand); font-weight: 600; }
.contact-form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.contact-form { margin-top: 22px; }
.contact-form .field-row { gap: 16px; }
.contact-form .field-row .field + .field { margin-top: 0; }
.contact-form .field-row + .field { margin-top: 16px; }
.form-done { padding: 12px 0 4px; }
.form-done h2 { margin-bottom: 8px; }
@media (max-width: 480px) { .contact-list li { padding: 16px; gap: 14px; } .contact-list div { font-size: 0.9375rem; } }
@media (max-width: 959px) {
  .contact-methods { display: contents; }
  .contact-call { order: 1; }
  .contact-form-card { order: 2; }
  .contact-list { order: 3; }
}

/* ---------- Modal (exit intent / callback) ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 16px; background: rgba(11, 11, 11, 0.55); backdrop-filter: blur(3px); }
.modal.is-open { display: grid; animation: fade 0.2s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
/* Wide enough that the long consent text fits a laptop window. When the window is still too short (or on a phone),
   only .modal__body scrolls: the stripe and close button stay put, and a shadow at the edge shows there's more. */
.modal__dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: pop 0.25s ease both; }
.modal__dialog::before { content: ''; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--gold-600) 0%, var(--brand-fill) 55%, var(--brand-hi) 100%); }
.modal__body {
  --pad: clamp(22px, 4vw, 32px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  margin: 8px 4px 8px 0; padding: calc(var(--pad) - 8px) calc(var(--pad) - 4px) calc(var(--pad) - 8px) var(--pad);
  background:
    linear-gradient(#fff 50%, rgba(255, 255, 255, 0)) center top / 100% 40px no-repeat local,
    linear-gradient(rgba(255, 255, 255, 0), #fff 50%) center bottom / 100% 40px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(11, 11, 11, 0.18), rgba(11, 11, 11, 0)) center top / 100% 16px no-repeat,
    radial-gradient(farthest-side at 50% 100%, rgba(11, 11, 11, 0.18), rgba(11, 11, 11, 0)) center bottom / 100% 16px no-repeat;
}
.modal__close { position: absolute; z-index: 2; top: 12px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.modal__close:hover { background: var(--line); }
.modal h2 { font-size: 1.5rem; margin-right: 32px; }
.modal p:not(.consent) { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a8a49c; font-size: 0.925rem; }
.footer__top { display: grid; gap: 36px 24px; padding: 64px 0 40px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 640px) { .footer__top { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .footer__top { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1180px) { .footer__top { grid-template-columns: 1.5fr repeat(5, 1fr); } .footer__brand { grid-column: auto; } }
.footer__brand p { margin: 16px 0; max-width: 320px; }
.footer__hours { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; }
.footer__hours .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--brand-hi); }
.footer__contact { display: grid; gap: 10px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.footer__contact a:hover { color: var(--brand-hi); }
.footer__contact .icon { width: 18px; height: 18px; color: var(--brand-hi); }
.footer__col h3 { color: #fff; font: 700 0.875rem var(--font); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a { color: #a8a49c; text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__col a[aria-current='page'] { color: #fff; }
.site-footer :focus-visible { outline-color: var(--brand-hi); }
/* Comfortable tap targets on touch screens */
@media (max-width: 899px) {
  .footer__col ul { gap: 0; }
  .footer__col a, .footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__bottom ul a { display: inline-flex; align-items: center; min-height: 44px; }
}
.footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 28px 0 36px; font-size: 0.8rem; line-height: 1.6; color: #9a958d; }
.footer__legal p { margin: 0 0 10px; }
.footer__legal a { color: #bfbab2; }
.footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 16px; }
.eho { display: inline-flex; align-items: center; gap: 10px; color: #e4e0d9; font-weight: 700; font-size: 0.8125rem; }
.eho svg { width: 30px; height: 30px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* ---------- Misc ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list li, .pill { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.pill-list a { text-decoration: none; color: inherit; }
.divider-or { display: flex; align-items: center; gap: 12px; color: var(--subtle-text); font-size: 0.8125rem; font-weight: 600; margin: 4px 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.notice { padding: 12px 16px; border-radius: 10px; background: var(--gold-50); border: 1px solid #ffd9c2; font-size: 0.875rem; color: #7a2b08; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: #fff; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table thead th { background: var(--bg-alt); font-size: 0.8125rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table pre { margin: 0; white-space: pre-wrap; font-size: 0.78rem; color: var(--muted); max-width: 420px; }
.tier-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.tier-badge--hot { background: #fde8e7; color: #b42318; }
.tier-badge--warm { background: var(--gold-50); color: #8f320a; }
.tier-badge--nurture { background: #e8f0fb; color: #1c5cab; }

@media print {
  .site-header, .topbar, .mobile-bar, .site-footer, .modal, .calc-cta, .side-cta, .gate { display: none !important; }
  .amort-table tr.is-locked td { filter: none; }
}

/* ---- code-agent additions ---- */
/* Calculator pages: layout */
.page-hero--calc { padding-bottom: clamp(28px, 4vw, 44px); }
.page-hero--calc .lead { margin-bottom: 0; }
.calc-section { padding: clamp(24px, 4vw, 44px) 0 0; }
.calc [hidden], .calc-wide [hidden], .admin [hidden] { display: none !important; }
.calc__inputs > .field-row .field + .field { margin-top: 0; }
.calc__inputs .field-row { gap: 16px; }
.input-pair { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); cursor: pointer; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); cursor: pointer; }
.check small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }
.check + .check { margin-top: 12px; }
.field.is-disabled .input { background: var(--bg-alt); color: var(--subtle); }
.calc-panel { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.calc-panel__title { margin: 0; font: 700 0.9375rem/1.3 var(--font); color: var(--ink); letter-spacing: 0; }
.calc-panel .breakdown__bar { background: transparent; }
.calc-panel .breakdown__bar:empty, .calc-panel .breakdown__bar:not(:has(.breakdown__seg:not([hidden]))) { background: var(--line); }
.breakdown__legend li.is-hot .breakdown__name { color: var(--ink); font-weight: 650; }
.breakdown__legend small { color: var(--muted); font-weight: 500; }
.calc-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.calc-note p { margin: 0; }
.calc-note p + p { margin-top: 6px; }
.stat__hint { font-size: 0.75rem; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.calc__results .disclaimer { margin: 0; }
.calc-wide { display: grid; gap: 20px; margin-top: 20px; }
.chart-card__head h2 { margin: 0; font-size: 1.0625rem; letter-spacing: -0.01em; }
.chart-card__sub { font-size: 0.875rem; color: var(--muted); margin: 0 0 10px; }
.chart { min-height: 210px; }
.chart:focus { outline: none; }
.chart:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 8px; }
.chart .col { outline: none; }
.chart .col:focus-visible .hit { fill: rgba(255, 106, 31, 0.07); }
.chart .col:focus-visible .bar { opacity: 0.78; }
.chart .grid-line--zero { stroke: #d6d2cb; }
.chart .crosshair line { stroke: #a19c94; stroke-width: 1; }
.chart .marker-line { stroke: #d6d2cb; stroke-width: 1; }
.chart .marker-label { fill: var(--muted); font-size: 11px; font-weight: 600; font-family: var(--font); }
.chart .end-label { fill: var(--text); font-size: 12px; font-weight: 600; font-family: var(--font); }
.chart .overlay { cursor: crosshair; }
.amort-wrap.is-gated { min-height: 560px; }
.amort-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.amort-table tbody th { font-weight: 650; color: var(--ink); white-space: nowrap; }
.amort-table tbody th small { font-weight: 500; color: var(--muted); }
.amort-table tfoot th, .amort-table tfoot td { font-weight: 700; color: var(--ink); border-bottom: 0; border-top: 2px solid var(--line-2); padding: 10px 12px; text-align: right; }
.amort-table tfoot th { text-align: left; }
.amort-table tr.is-current th, .amort-table tr.is-current td { background: var(--brand-50); }
.amort-table--compare td, .amort-table--compare th { white-space: nowrap; }
@media (max-width: 520px) {
  .amort-table { font-size: 0.8125rem; }
  .amort-table th, .amort-table td, .amort-table tfoot th, .amort-table tfoot td { padding: 8px 6px; }
  .amort-table tbody th small { display: none; }
  .chart-card { padding: 18px 16px; }
}
.gate__note { font-size: 0.75rem; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
.gate__note a { color: var(--muted); }
.gate__error { color: var(--danger); font-size: 0.8125rem; font-weight: 600; margin: 8px 0 0; }
.print-only { display: none; }
.view-table summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: 0.9375rem; }
.view-table[open] summary { margin-bottom: 10px; }
.summary-list--tight div { padding: 8px 0; font-size: 0.9rem; }
.summary-list__total { border-top: 2px solid var(--line-2); }
.verdict { display: grid; gap: 8px; }
.verdict__head { font: 700 1.0625rem/1.3 var(--font-display); color: var(--ink); margin: 0; }
.verdict__text { margin: 0; font-size: 0.925rem; color: var(--muted); }
.result-hero .badge { margin-top: 10px; }

/* Tier cards rendered as buttons */
button.tier { display: block; width: 100%; font: inherit; text-align: left; color: inherit; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
button.tier:hover { border-color: var(--line-2); }
button.tier.is-featured:hover { border-color: var(--brand); }
.tier__name, .tier__value, .tier__meta { display: block; }
.tier__tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 0.6875rem; letter-spacing: 0.04em; }

/* Meters */
.meter-row + .meter-row { margin-top: 16px; }
.meter-row__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 0.875rem; font-weight: 650; color: var(--ink); }
.meter-row__top b { font-variant-numeric: tabular-nums; }
.meter-row__val { display: inline-flex; align-items: center; gap: 8px; }
.meter-row__val .badge { padding: 2px 8px; font-size: 0.75rem; }
.meter__fill.is-warn { background: var(--gold); }
.meter__fill.is-bad { background: var(--danger); }
.meter__tick { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; }
.meter-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Related links on calculator pages */
.related-links { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.prose .related-links li { margin: 0; }
.related-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 0.95rem; }
.related-links a:hover { border-color: var(--brand); color: var(--ink); }
.related-links .icon { color: var(--brand); width: 18px; height: 18px; }
.formula { padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; color: var(--ink); overflow-x: auto; }

/* Print: only the amortization schedule */
@media print {
  body.print-schedule main > :not(.calc-section), body.print-schedule .calc, body.print-schedule .chart-card:not([data-print-area]), body.print-schedule [data-print], body.print-schedule .skip-link { display: none !important; }
  body.print-schedule .calc-wide { margin: 0; }
  body.print-schedule .chart-card { border: 0; padding: 0; }
  .print-only { display: block; font-size: 0.85rem; color: #333; }
  .amort-wrap.is-gated { min-height: 0; }
  .amort-table thead th { position: static; }
  .chart-tip { display: none !important; }
}

/* Admin lead inbox */
.admin { padding: 28px 0 64px; }
.admin .container { max-width: 1440px; }
.admin__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.admin__head h1 { font-size: 1.75rem; margin: 0; }
.admin__brand { display: flex; align-items: center; gap: 12px; }
.admin__meta { font-size: 0.8125rem; color: var(--muted); }
.admin__toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.admin__toolbar .field { min-width: 150px; gap: 4px; }
.admin__toolbar .field + .field { margin-top: 0; }
.admin__toolbar .label { font-size: 0.8125rem; }
.admin__toolbar .input, .admin__toolbar .select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: 0.9375rem; }
.admin__toolbar .grow { flex: 1; min-width: 200px; }
.admin__toolbar .btn { min-height: 42px; }
.admin__stats { margin-bottom: 18px; }
.admin__msg { max-width: 640px; margin: 24px auto; text-align: center; }
.admin__msg .icon-badge { margin: 0 auto 14px; }
.admin__msg form { display: flex; gap: 8px; max-width: 420px; margin: 16px auto 0; }
.admin__msg code { font-size: 0.85em; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; }
.admin .table-scroll { border: 1px solid var(--line); background: #fff; }
.admin-table { font-size: 0.875rem; }
.admin-table td small { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.admin-table tbody tr:hover td { background: #faf9f7; }
.admin-table .nowrap { white-space: nowrap; }
.admin-table details summary { cursor: pointer; color: var(--brand); font-weight: 650; white-space: nowrap; }
.admin-table details pre { margin-top: 8px; max-height: 320px; overflow: auto; background: var(--bg-alt); padding: 10px; border-radius: 8px; }
.admin-table .tier-badge--none { background: var(--bg-alt); color: var(--muted); }
.admin-table thead th { white-space: nowrap; }
.slot:disabled { opacity: 0.45; cursor: not-allowed; border-color: var(--line); }

/* Tables inside calculator panels scroll in their own box on phones */
.calc-panel, .chart-card { min-width: 0; }
.calc-panel .table-scroll > table { min-width: 340px; }
.chart-card .table-scroll > table { min-width: 460px; }
.calc-panel .table-scroll.fee-scroll > table.fee-table { min-width: 0; }
.calc-panel .table-scroll > .amort-table--compare { min-width: 0; }
.amort-table--compare tbody th { white-space: normal; }
@media (max-width: 520px) { .calc-panel { padding: 16px; } .calc__results { padding-left: 16px; padding-right: 16px; } }
.fee-table td { text-align: center; }
.fee-table td.is-current { background: var(--brand-50); color: var(--brand-700); font-weight: 800; box-shadow: inset 0 0 0 2px var(--brand); }
.fee-table tbody th { white-space: normal; font-weight: 600; }
.itemized__group { margin: 16px 0 0; font: 700 0.75rem/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.itemized .summary-list div { font-size: 0.9rem; }
.itemized__sub dt, .itemized__sub dd { font-weight: 700; color: var(--ink); }

/* ---- resources additions ---- */
/* Shared */
@media print { .no-print { display: none !important; } }

/* Resources hub */
.res-tools { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.res-card .icon-badge { margin-bottom: 14px; }
.res-subhead { margin-top: clamp(40px, 6vw, 64px); margin-bottom: 24px; }
.res-path { list-style: none; counter-reset: rp; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.res-path li { counter-increment: rp; }
.res-path a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 650; line-height: 1.3; transition: border-color 0.15s, background 0.15s; }
.res-path a::before { content: counter(rp); display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font: 800 0.8125rem/1 var(--font-display); }
.res-path a:hover { border-color: var(--brand); background: var(--brand-50); color: var(--ink); }
.res-path small { display: block; margin-top: 2px; font-weight: 500; font-size: 0.8125rem; color: var(--muted); }
.card .res-path__cta { margin-top: 16px; }
.res-terms li { transition: border-color 0.15s; }
.res-terms li:hover { border-color: var(--brand); }
.res-terms a:hover { color: var(--brand-700); }
.res-disclaimer { margin: 28px 0 0; }

/* Loan match quiz */
.quiz { max-width: 760px; margin: 0 auto; }
.quiz__card { min-height: 380px; }
@media (max-width: 559px) { .quiz .options--2 { grid-template-columns: 1fr; } .quiz .option { min-height: 60px; padding: 12px 14px; } }
.quiz__foot { text-align: center; margin: 14px 0 0; }
.quiz__privacy { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.quiz__privacy .icon { width: 15px; height: 15px; color: var(--brand); }
.quiz__noscript h2 { font-size: 1.4rem; }
.quiz .funnel__q:focus, .quiz-results__title:focus { outline: none; }
.quiz-results__title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 10px; }
.quiz-results__title span { color: var(--brand); }
.quiz-results__intro { color: var(--muted); }
.quiz-results__chips li { font-size: 0.8125rem; background: var(--bg-alt); }
.quiz-matches { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.quiz-match { padding: clamp(18px, 3vw, 26px); border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
.quiz-match.is-top { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.quiz-match__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.quiz-match__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.quiz-match__icon .icon { width: 24px; height: 24px; }
.quiz-match__title { margin: 6px 0 0; font-size: 1.25rem; }
.quiz-match__tagline { color: var(--muted); margin: 0 0 16px; }
.quiz-match__cols { display: grid; gap: 18px; }
@media (min-width: 640px) { .quiz-match__cols { grid-template-columns: 1fr 1fr; } }
.quiz-match__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.quiz-match .checklist { gap: 10px; font-size: 0.9375rem; line-height: 1.5; }
.quiz-match .checklist .icon { width: 18px; height: 18px; }
.quiz-match .quiz-match__watch .icon { color: var(--gold-600); stroke-width: 2.2; }
.quiz-match__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.quiz-match__foot .btn { white-space: normal; text-align: center; }
.quiz-results__cta { margin: 8px 0 24px; }
.quiz-results__cta .btn { white-space: normal; text-align: center; }
@media (min-width: 720px) {
  .quiz-results__cta { grid-template-columns: 1fr auto; align-items: center; }
  .quiz-results__cta .calc-cta__phone { grid-column: 1 / -1; justify-content: flex-start; }
}
.quiz-results__reads { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px 20px; }
@media (min-width: 640px) { .quiz-results__reads { grid-template-columns: 1fr 1fr; } }
.quiz-results__reads .link-arrow { font-size: 0.95rem; }
.quiz-results__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.quiz-results__fine { margin: 16px 0 0; }

/* Mortgage process timeline */
.timeline-jump { margin: 0 0 1.75rem; }
.timeline-jump a:hover { color: var(--brand); }
.prose .timeline { list-style: none; position: relative; margin: 0 0 2rem; padding: 0; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--brand-100), var(--line)); }
.timeline > .timeline__item { position: relative; margin: 0 0 22px; padding-left: 60px; }
.timeline > .timeline__item:last-child { margin-bottom: 0; }
.timeline__num { position: absolute; left: 0; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1rem/1 var(--font-display); box-shadow: 0 0 0 6px #fff; }
.timeline__item--milestone .timeline__num { background: var(--brand-fill); color: var(--on-brand); }
.timeline__card { padding: clamp(18px, 3vw, 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.timeline__item--milestone .timeline__card { border-color: var(--brand-100); }
.timeline .timeline__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 10px; }
.timeline .timeline__head h3 { margin: 0; font-size: 1.25rem; }
.timeline__time { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 0.8125rem; font-weight: 700; line-height: 1.3; }
.timeline__time .icon { width: 14px; height: 14px; }
.timeline .timeline__card > p { margin-bottom: 0; }
.timeline .timeline__roles { display: grid; gap: 12px; margin: 16px 0 6px; }
@media (min-width: 700px) { .timeline .timeline__roles { grid-template-columns: 1fr 1fr; } }
.timeline__role { padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); }
.timeline .timeline__role h4 { margin: 0 0 6px; font: 700 0.75rem var(--font); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.timeline .timeline__role ul { margin: 0; padding-left: 1.1rem; font-size: 0.9375rem; line-height: 1.5; }
.timeline .timeline__role li { margin-bottom: 0.3rem; }
.timeline .timeline__note { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--brand-50); font-size: 0.9375rem; line-height: 1.55; }
.timeline__note .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.timeline .timeline__note--delay { background: var(--gold-50); }
.timeline__note--delay .icon { color: var(--gold-600); }
@media (max-width: 559px) {
  .timeline::before { left: 15px; }
  .timeline > .timeline__item { padding-left: 46px; }
  .timeline__num { width: 32px; height: 32px; font-size: 0.875rem; box-shadow: 0 0 0 4px #fff; }
}

/* Homebuyer checklist */
.hb-progress { position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; display: grid; gap: 10px; margin: 0 0 1.5rem; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hb-progress__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.prose .hb-progress p { margin: 0; }
.hb-progress__count { font-weight: 600; color: var(--muted); }
.hb-progress__count strong { font: 800 1.25rem var(--font-display); color: var(--ink); }
.hb-progress__actions { display: flex; gap: 8px; }
.hb-progress__actions .btn { min-height: 38px; padding: 6px 14px; font-size: 0.875rem; }
.no-js .hb-progress__actions { display: none; }
.hb-progress__msg { font-size: 0.875rem; color: var(--muted); }
.hb-progress__note { font-size: 0.8125rem; color: #8f320a; }
@media (max-width: 559px) { .hb-progress__msg { display: none; } .hb-progress { padding: 12px 14px; } }
.hb-phase { margin-top: 2.4rem; }
.hb-phase__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.prose .hb-phase__head h2 { margin: 0; flex: 1 1 auto; scroll-margin-top: 140px; }
.hb-phase__num { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font: 800 0.95rem/1 var(--font-display); transition: background 0.2s; }
.hb-phase.is-complete .hb-phase__num { background: var(--brand-fill); color: var(--on-brand); }
.hb-phase__count { padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.hb-phase.is-complete .hb-phase__count { background: var(--brand-50); color: var(--brand-700); }
.prose .hb-phase__intro { margin: 8px 0 14px; color: var(--muted); }
.prose .hb-tasks { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 10px; }
.prose .hb-task { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color 0.15s, background 0.15s; }
.hb-task:hover { border-color: var(--line-2); }
.prose .hb-task.is-done { background: #fffaf6; border-color: var(--brand-100); }
.hb-task input { position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.hb-task label { display: flex; gap: 14px; padding: 14px 16px; cursor: pointer; }
.hb-task__box { display: grid; place-items: center; width: 24px; height: 24px; flex: none; margin-top: 1px; border-radius: 7px; border: 2px solid var(--line-2); background: #fff; color: transparent; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.hb-task__box .icon { width: 15px; height: 15px; stroke-width: 3.2; }
.hb-task input:checked + label .hb-task__box { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--on-brand); }
.hb-task input:focus-visible + label .hb-task__box { box-shadow: var(--ring); }
.hb-task__title { display: block; font-weight: 650; color: var(--ink); line-height: 1.35; }
.hb-task input:checked + label .hb-task__title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--subtle); }
.hb-task__desc { display: block; margin-top: 3px; font-size: 0.925rem; line-height: 1.5; color: var(--muted); }
.prose .hb-task__link { display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 12px 54px; font-size: 0.875rem; text-decoration: none; }
.hb-task__link .icon { width: 14px; height: 14px; }
.hb-email { margin: 2.5rem 0; }
.hb-email__intro { display: flex; gap: 16px; align-items: flex-start; }
.hb-email__intro .icon-badge, .hb-email__done .icon-badge { flex: none; margin: 0; }
.prose .hb-email h2 { margin: 2px 0 6px; font-size: 1.35rem; }
.prose .hb-email p { margin-bottom: 0.5rem; }
.hb-email form { margin-top: 14px; }
.hb-email .gate__form { margin-top: 0; }
.hb-email .gate__form .btn { white-space: nowrap; }
.hb-email__done { display: flex; gap: 16px; align-items: flex-start; }
.hb-email__done:focus { outline: none; }
.hb-email__target { font-weight: 700; color: var(--ink); word-break: break-all; }
@media print {
  .page-checklist .breadcrumbs, .page-checklist .hb-task__link, .page-checklist .hb-progress__msg, .page-checklist .hb-progress__note { display: none !important; }
  .page-checklist .page-hero { padding: 0 0 12px; background: none; border: 0; }
  .page-checklist .content-layout { display: block; padding: 0; }
  .page-checklist .hb-progress { position: static; box-shadow: none; border-color: #999; }
  .page-checklist .hb-phase { margin-top: 1.2rem; }
  .page-checklist .hb-phase__head { break-after: avoid; }
  .page-checklist .hb-task { break-inside: avoid; border-color: #bbb; }
  .page-checklist .hb-task label { padding: 8px 12px; }
  .page-checklist .hb-task__box { border-color: #333; }
  .page-checklist .hb-task__box, .page-checklist .funnel__bar, .page-checklist .hb-phase__num { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Mortgage glossary */
.gloss { min-width: 0; max-width: 780px; }
.gloss-tools { position: relative; z-index: 20; margin: 0 0 8px; padding: 0 0 14px; background: #fff; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .gloss-tools { position: sticky; top: var(--header-h); padding-top: 14px; } }
.gloss-search { position: relative; }
.gloss-search > .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.gloss-search .input { padding-left: 46px; }
.no-js .gloss-search { display: none; }
.gloss-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 12px 0 0; padding: 0; }
.gloss-nav a, .gloss-nav span { display: grid; place-items: center; min-width: 27px; height: 32px; padding: 0 4px; border-radius: 8px; font: 700 0.875rem/1 var(--font); text-decoration: none; }
.gloss-nav a { color: var(--ink); background: var(--bg-alt); transition: background 0.12s, color 0.12s; }
.gloss-nav a:hover { background: var(--brand-fill); color: var(--on-brand); }
.gloss-nav .is-disabled { color: var(--line-2); background: transparent; pointer-events: none; }
.gloss-status { margin: 8px 0 0; font-size: 0.8125rem; color: var(--muted); }
.gloss-empty { margin-top: 20px; padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); }
.gloss-empty p:last-child { margin: 0; }
.gloss-group { margin-top: 26px; scroll-margin-top: calc(var(--gloss-offset, 0px) + 8px); }
.gloss-group__letter { display: flex; align-items: center; gap: 14px; margin: 0 0 4px; font-size: 2rem; color: var(--brand); }
.gloss-group__letter::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.gloss-list { margin: 0; }
.gloss-term { padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--gloss-offset, 0px) + 8px); transition: background 0.3s; }
.gloss-term:last-child { border-bottom: 0; }
.gloss-term dt { font: 700 1.125rem/1.35 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.gloss-term dd { margin: 6px 0 0; }
.gloss-term dd p { margin: 0; }
.gloss-term .gloss-term__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 0.9rem; }
.gloss-term__links a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.gloss-term__links a:hover { text-decoration: underline; }
.gloss-term__links .icon { width: 14px; height: 14px; }
.gloss-term:target { padding-left: 16px; padding-right: 16px; border-radius: var(--radius-sm); background: var(--gold-50); box-shadow: inset 3px 0 0 var(--gold); }
.gloss-top { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.gloss-top .icon { width: 14px; height: 14px; transform: rotate(180deg); }
@media (min-width: 768px) { .gloss-top { display: none; } }
.gloss .disclaimer { margin-top: 2rem; }
.gloss-aside h3 { font-size: 1.0625rem; margin-bottom: 12px; }
.gloss-aside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }

/* ---- real estate additions ---- */
.re-disclosure { margin-top: 28px; }
.re-next { margin: 8px 0 0; padding-left: 1.2rem; display: grid; gap: 12px; font-size: 0.95rem; color: var(--muted); }
.re-next li::marker { color: var(--brand); font-weight: 700; }
.re-next strong { display: block; color: var(--ink); }
.re-form .field + .field-row, .re-form .field-row + .field, .re-form .field-row + .field-row { margin-top: 16px; }

/* ---- scheduler additions ---- */
/* Call scheduler on /thank-you/ (thankyou.js) */
.sched[hidden], .sched [hidden] { display: none !important; }
.sched__title { font-size: 1.5rem; }
.sched__intro { margin-bottom: 16px; }
.sched-loading { display: flex; align-items: center; gap: 10px; min-height: 96px; margin: 0; color: var(--muted); font-size: 0.9375rem; }
.sched-spinner { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--brand); animation: sched-spin 0.8s linear infinite; }
@keyframes sched-spin { to { transform: rotate(360deg); } }
.sched-tz { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 9px 12px; border-radius: 10px; background: var(--bg-alt); font-size: 0.875rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.sched-tz .icon { width: 18px; height: 18px; color: var(--brand); }
.sched-label { margin: 0 0 8px; }
.sched-label__aside { font-size: 0.8125rem; font-weight: 600; color: var(--muted); text-align: right; }
.sched-cal { margin-bottom: 20px; }
.sched-cal__dow, .sched-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sched-cal__dow { margin-bottom: 6px; }
.sched-cal__dow span { text-align: center; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--subtle-text); }
.sched-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 50px; padding: 4px 0; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); font: 700 1rem/1.1 var(--font); font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color 0.12s, background 0.12s, color 0.12s; }
.sched-day__sub { min-height: 0.75rem; font-size: 0.625rem; font-weight: 700; line-height: 0.75rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.sched-day:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-50); }
.sched-day.is-today .sched-day__sub { color: var(--brand); }
.sched-day.is-selected, .sched-day.is-selected:hover { border-color: var(--brand-fill); background: var(--brand-fill); color: var(--on-brand); }
.sched-day.is-selected .sched-day__sub { color: var(--brand-50); }
.sched-day:disabled { cursor: not-allowed; border-color: transparent; background: var(--bg-alt); color: var(--subtle); font-weight: 500; }
.sched-day:disabled .sched-day__sub { color: var(--subtle); }
.sched-times { display: grid; gap: 14px; }
.sched-group__name { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sched .sched-slots { margin: 0; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.sched .sched-slots .slot { min-height: 44px; padding: 10px 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched-empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: 0.9375rem; }
.sched-action { margin-top: 20px; }
.sched-action__pick { margin: 0 0 10px; font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }
.sched-action__pick.is-set { color: var(--ink); font-weight: 650; }
.sched-alt { margin: 16px 0 0; }
.sched-alt a { font-weight: 700; white-space: nowrap; }
.sched-nowrap { white-space: nowrap; }
/* Phones: keep the pick + Confirm button in reach while scrolling the time list */
@media (max-width: 640px) {
  .sched-action { position: sticky; bottom: 0; z-index: 2; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -14px 14px -14px rgba(11, 11, 11, 0.22); }
  .sched-action .form-alert { margin-top: 10px; }
}
@media (max-width: 420px) {
  .sched.card--pad-lg { padding: 22px 16px; }
  .sched-cal__dow, .sched-cal__grid { gap: 4px; }
}
.sched-booked:focus { outline: none; }
.sched-booked__icon { width: 60px; height: 60px; margin: 6px auto 16px; }
.sched-booked__icon .icon { width: 28px; height: 28px; stroke-width: 2.5; }
.sched-booked__when { margin: 0 0 6px; font: 800 1.25rem/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.sched-add { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.sched-add__label { justify-content: center; margin: 0 0 10px; }
.sched-add__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sched-add__links .btn { padding-left: 10px; padding-right: 10px; white-space: normal; }
.sched-embed { margin-top: 4px; }
.sched-embed__frame { display: block; width: 100%; min-width: 280px; height: 700px; border: 0; border-radius: 12px; overflow: hidden; background: #fff; }
.sched-embed__frame--google { height: 640px; }
.sched-embed__frame--cal { height: auto; min-height: 640px; overflow: auto; }

/* Admin inbox: upcoming appointments panel (admin.js) */
.admin-appts { margin-bottom: 18px; padding: 20px 22px; }
.admin-appts__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 20px; margin-bottom: 10px; }
.admin-appts__head h2 { margin: 0; font-size: 1.25rem; }
.admin-appts__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font: 800 0.8125rem/1 var(--font); vertical-align: 3px; }
.admin-appts__empty { margin: 0; padding: 12px 0 4px; color: var(--muted); font-size: 0.9375rem; }
.admin-appts__list { display: grid; margin: 0; padding: 0; list-style: none; }
.admin-appt { display: grid; grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) minmax(150px, 190px) minmax(0, 1.5fr); gap: 4px 18px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.admin-appt > div { min-width: 0; overflow-wrap: anywhere; }
.admin-appt small { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.admin-appt strong { display: block; color: var(--ink); }
.admin-appt.is-soon .admin-appt__when strong { color: var(--brand-700); }
.admin-appt .tier-badge { margin-right: 6px; vertical-align: 1px; }
.admin-appt .tier-badge--none { background: var(--bg-alt); color: var(--muted); }
.admin-appt__phone a { font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .admin-appt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.admin-appts__more { margin: 8px 0 0; font-size: 0.8125rem; color: var(--muted); }
.admin-appts__sub { display: grid; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-appts__sub .label { font-size: 0.8125rem; }
.admin-appts__url { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-appts__url .input { flex: 1 1 260px; min-width: 0; min-height: 40px; padding-top: 6px; padding-bottom: 6px; font: 500 0.8125rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.admin-appts__sub p { margin: 0; }
.admin-appts code { font-size: 0.85em; background: var(--bg-alt); padding: 1px 5px; border-radius: 6px; }

/* ---------- conversion path Phase 1 ---------- */
/* Funnel contact step: optional real estate consent, then the call/text consent directly above the button */
#contact-form .consent-optin { margin: 18px 0 0; }
#contact-form .consent { margin: 16px 0 14px; }
.field__error a { color: inherit; text-decoration: underline; white-space: nowrap; }
.form-alert a { color: inherit; text-decoration: underline; white-space: nowrap; }
.funnel__loading .funnel__help { margin: 8px auto 0; max-width: 420px; }
/* Home mini calculator: visitor-entered rate, empty result until then */
.mini-calc .input-affix--post .input { max-width: 200px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-calc__note { margin: 4px 0 0; font-size: 0.875rem; color: #b5b0a8; }
.mini-calc__result .mini-calc__assumptions { margin: 0; color: #b5b0a8; }
/* Home "Find the home, not just the loan" section and the thank-you agent-match card */
.home-re .card .checklist { font-size: 0.975rem; }
.ty-agent .re-disclosure { margin-top: 18px; }

/* ---------- loans Phase 1 ---------- */
/* /lp/va/: broker / non-affiliation line directly under the H1 (14px+, full-contrast ink) */
.hero__note { margin: -6px 0 18px; max-width: 600px; font-size: 0.9375rem; font-weight: 600; line-height: 1.45; color: var(--ink); }

/* ---------- calculators Phase 1 ---------- */
/* "Illustration only" line directly under each result (readable size and contrast, not muted fine print) */
.calc-illus { margin: -4px 0 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.45; color: var(--text); }
/* Short assumption note under an input (e.g. "Florida estimate incl. wind") */
.field__note { display: block; margin-top: 6px; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }
/* Email-gate consent sits above the Unlock button at body-copy contrast */
.gate .gate__note { margin: 8px 0 0; font-size: 0.8125rem; color: var(--text); text-align: left; }
.gate .gate__note a { color: inherit; text-decoration: underline; }
/* Rate fields start empty: keep the placeholder legible */
.calc .input[data-blank]::placeholder { color: var(--subtle, var(--muted)); opacity: 1; }

/* ---------- learn/resources Phase 1 ---------- */
/* Quiz: neutral "Worth a look" badge and the call/questionnaire row shown when no program is a clear fit */
.badge--neutral { background: var(--bg-alt); color: var(--text); border: 1px solid var(--line-2); }
.quiz-results__fallback { margin: 4px 0 20px; }
.quiz-results .callout { margin: 0 0 18px; }
/* Loans hub: program cards grouped by card.group (collection.loansByGroup) */
.program-group + .program-group { margin-top: 48px; }
.program-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.program-group__head h3 { margin: 0; font-size: 1.3rem; }
.program-group__head p { margin: 0; flex: 1 1 280px; color: var(--muted); font-size: 0.95rem; }
.program-group__head .link-arrow { white-space: nowrap; font-size: 0.95rem; }
