/* Alura Capital site styles.
   Mobile first. md >= 768px, lg >= 1080px, desktop nav >= 1150px. */

/* Stand-ins for Instrument Sans, sized to match it, so text wraps the same before and after the web font arrives
   and the page does not jump. Arial or Helvetica where they exist, Roboto on Android. */
@font-face { font-family: 'Instrument Sans Fallback'; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Liberation Sans'); size-adjust: 102.0%; ascent-override: 95.1%; descent-override: 24.51%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Fallback'; font-weight: 500; src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Liberation Sans'); size-adjust: 103.2%; ascent-override: 93.99%; descent-override: 24.22%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Fallback'; font-weight: 600 700; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Liberation Sans Bold'); size-adjust: 97.5%; ascent-override: 99.49%; descent-override: 25.64%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Android Fallback'; font-weight: 400; src: local('Roboto'); size-adjust: 102.7%; ascent-override: 94.45%; descent-override: 24.34%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Android Fallback'; font-weight: 500; src: local('Roboto Medium'), local('Roboto'); size-adjust: 103.2%; ascent-override: 93.99%; descent-override: 24.22%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Android Fallback'; font-weight: 600 700; src: local('Roboto Bold'), local('Roboto'); size-adjust: 103.7%; ascent-override: 93.54%; descent-override: 24.11%; line-gap-override: 0%; }

:root {
  --ink: #111111;
  --ink-warm: #14110C;
  --muted: #545454;
  --line: #C1C1C1;
  --field-line: #8A8A8A;
  --gray-50: #F7F7F7;
  --hover: #F2F2F2;
  --gold: #D4A63A;
  --gold-light: #E8C25A;
  --gold-ink: #7A5C14;
  --dusk: #1B2436;
  --bronze: #3D2B14;
  --promo: #FBF4E2;
  --stats: #F3EEE7;
  --foot: #0E0C0A;
  --font: 'Instrument Sans', 'Instrument Sans Fallback', 'Instrument Sans Android Fallback', Helvetica, 'Helvetica Neue', Arial, sans-serif;
  --font-brand: 'Archivo', 'Instrument Sans', Arial, sans-serif;
  --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* Anything the browser scrolls to, a jump link or a field reached with Tab or Shift+Tab, stops clear of the sticky header. */
  scroll-padding-top: calc(100px + env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 20px; border-radius: 100px; background: var(--ink); color: #fff;
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 16px; }
main:focus { outline: none; }

.wrap { width: min(1280px, 100% - 2 * var(--gut)); margin: 0 auto; }

.h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
  letter-spacing: 0;
  color: var(--ink);
  text-wrap: balance; /* the topic-word headings run to two lines; keep them even, no one-word last line */
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 24px; border-radius: 100px;
  font-size: 16px; font-weight: 500; line-height: 24px; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--gold); color: var(--ink-warm); }
.btn--outline { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Global nav ---------- */
/* Paints the phone's top safe-area band so nothing scrolls into view above the sticky header. */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 51; background: #fff; }
.gh { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: #fff; transition: box-shadow .2s; }
.gh.is-scrolled { box-shadow: 0 1px 0 #E6E6E6; }
.gh-bar { position: relative; display: flex; align-items: center; height: 80px; padding: 0 24px; }

.gh-burger {
  display: grid; place-items: center; width: 48px; height: 48px; margin-left: -12px;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.gh-burger svg { width: 24px; height: 24px; }
.gh-burger:hover { background: var(--hover); }

.gh-logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
}
/* Centred with auto margins instead of the -50% transform where the browser can size the link to its content.
   The logo is 43px tall in the 80px bar, so it sits half a pixel down; without a transform the browser draws it on
   whole pixels and it stays sharp. Browsers without fit-content keep the transform above. */
@supports (width: fit-content) and (height: fit-content) {
  .gh-logo { top: 0; right: 0; bottom: 0; left: 0; width: fit-content; height: fit-content; margin: auto; transform: none; }
}
/* Drawn mark and text, kept only so pages still on the old header look right while the upload runs
   (main.css goes up first). Nothing on the new pages uses .mark, the span or .foot-mark; remove them next release. */
.gh-logo .mark { width: 32px; height: 32px; color: var(--gold); flex-shrink: 0; }
.gh-logo span {
  font-family: var(--font-brand); font-stretch: 125%; font-weight: 800;
  font-size: 17px; line-height: 1; letter-spacing: -.01em; white-space: nowrap;
}
/* The owner's logo as supplied, 288 x 43 at full size. Its width follows the room beside it: here, centred between
   the menu button and the Apply pill, it keeps 16px clear of the pill even with a 17px classic scrollbar.
   max-width: none stops the centred link from squeezing it. */
.gh-logo img { width: min(288px, calc(100vw - 257px)); max-width: none; height: auto; }

.gh-nav, .gh-right { display: none; }

.gh-list { display: flex; margin: 0; padding: 0; list-style: none; }
.gh-link {
  position: relative; display: block; height: 104px; padding: 0 16px;
  border: 0; background: none; cursor: pointer;
  font-size: 16px; font-weight: 500; line-height: 24px; color: var(--ink);
  transition: color .15s;
}
.gh-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transition: transform .2s;
}
.gh-link:hover, .gh-link[aria-expanded="true"] { color: var(--gold-ink); }
.gh-link[aria-expanded="true"]::after { transform: scaleX(1); }

.gh-right { align-items: center; gap: 28px; margin-left: auto; }
.gh-util {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.gh-util svg { width: 24px; height: 24px; }
.gh-util:hover { text-decoration: underline; text-underline-offset: 3px; }
.gh-apply {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 1000px;
  background: var(--ink); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none;
  white-space: nowrap; transition: background-color .15s, color .15s;
}
.gh-apply:hover { background: var(--gold); color: var(--ink-warm); }
/* Phone and tablet header: Apply sits at the right, opposite the menu button. */
.gh-apply--m { height: 44px; margin-left: auto; padding: 0 18px; }

/* Mega menu */
.mm {
  position: absolute; top: calc(100% + 24px); left: 185px;
  width: 1010px; max-width: calc(100vw - 233px);
  display: grid; grid-template-columns: 210px minmax(0, 1fr) 320px; gap: 32px;
  padding: 24px; border-radius: 24px; background: #fff;
  box-shadow: 0 16px 48px rgba(17, 17, 17, .16), 0 2px 8px rgba(17, 17, 17, .06);
}
.mm[hidden] { display: none; }
.mm::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; }
.mm-tabs { display: flex; flex-direction: column; }
.mm-tab {
  padding: 15px 16px; border: 0; border-radius: 12px; background: none; cursor: pointer;
  text-align: left; font-size: 15px; font-weight: 500; line-height: 20px; color: var(--ink);
  position: relative;
}
.mm-tab + .mm-tab::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: #E6E6E6;
}
.mm-tab:hover, .mm-tab[aria-pressed="true"] { background: var(--hover); }
.mm-tab:hover::before, .mm-tab[aria-pressed="true"]::before,
.mm-tab:hover + .mm-tab::before, .mm-tab[aria-pressed="true"] + .mm-tab::before { background: transparent; }
.mm-pane ul { margin: 0; padding: 0; list-style: none; }
.mm-pane li a {
  display: inline-block; padding: 6px 0; font-size: 15px; line-height: 20px; color: var(--ink); text-decoration: none;
}
.mm-pane li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mm-start {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 0 4px;
  font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.mm-start svg { width: 20px; height: 20px; transition: transform .15s; }
.mm-start:hover svg { transform: translateX(3px); }
.mm-label { margin: 18px 0 6px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--muted); }
.mm-promo { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.mm-promo-img { display: block; height: 176px; border-radius: 16px; overflow: hidden; background: var(--hover); }
.mm-promo-img img { width: 100%; height: 100%; object-fit: cover; }
.mm-promo-img--face img { object-position: 50% 22%; }
.mm-promo-t { margin-top: 16px; font-size: 17px; font-weight: 500; line-height: 26px; }
.mm-promo-l { margin-top: 8px; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.mm-promo:hover .mm-promo-l { text-decoration: none; }

/* Mobile menu */
.mnav {
  position: fixed; top: calc(80px + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0; z-index: 49;
  overflow-y: auto; padding: 8px 24px calc(32px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid #E6E6E6;
}
.mnav[hidden] { display: none; }
.mg { border-bottom: 1px solid #E6E6E6; }
.mg summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500; line-height: 24px;
}
.mg summary::-webkit-details-marker { display: none; }
.mg summary svg { width: 24px; height: 24px; transition: transform .2s; }
.mg[open] summary svg { transform: rotate(180deg); }
.mg-body { padding: 0 0 16px; }
.mg-body a { display: block; padding: 9px 0; font-size: 16px; color: var(--ink); text-decoration: none; }
.mg-body a.mg-start { font-weight: 500; }
.mg-body p { margin: 10px 0 2px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--muted); }
.mnav-foot { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; }
.mnav-util { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 500; text-decoration: none; }
.mnav-util svg { width: 24px; height: 24px; }
.mnav-foot .btn { margin-top: 16px; }

/* ---------- Alert bar ---------- */
.alert {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 24px;
  background: var(--gold); color: var(--ink-warm);
}
.alert-ico { width: 24px; height: 24px; flex-shrink: 0; }
.alert p { margin: 0; font-size: 14px; font-weight: 500; line-height: 18px; }
.alert a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.alert a:hover { text-decoration: none; }

/* ---------- Hero ---------- */
.hero-inner { max-width: 1440px; margin: 0 auto; padding: 48px var(--gut) 0; }
.hero-top { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; }
/* Stops the rotating word. Placed out of the flow beside "Finance your next", so showing it moves nothing.
   Its bottom edge stays at least 3px above the box the rotating word is drawn in (that box clips the word, even
   mid-slide), and its left edge clears the end of "Finance your next", at every width and with either font. */
.hero-pause {
  position: absolute; top: -6px; left: calc(50% + 86px); display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 1px solid var(--field-line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer;
}
.hero-pause[hidden] { display: none; }
.hero-pause:hover { background: var(--hover); }
.hero-pause svg { width: 16px; height: 16px; fill: currentColor; }
.hero-pause .ip-play, .hero-pause.is-paused .ip-pause { display: none; }
.hero-pause.is-paused .ip-play { display: inline; }
.hero-h { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 0; font-weight: 500; color: var(--ink); }
.hero-intro { display: block; font-size: 18px; line-height: normal; }
/* The rotating word sits right under the H1 (outside it, hidden from screen readers).
   One element; main.js swaps its text and slides it, so it is painted once and never fades in from invisible. */
.hero-rotate {
  display: block; width: 100%; margin: 4px 0 0; overflow: hidden;
  font-size: 40px; font-weight: 500; line-height: 48px; letter-spacing: -1px; color: var(--ink);
}
/* Every word fits on one line from 300px up, so wrapping only shows when a visitor enlarges letter or word spacing
   (WCAG 1.4.12): then a long word takes a second line instead of being cut off. Below 300px it stays on one line,
   so the rotation never changes the line count there. */
.hero-word { display: block; white-space: normal; text-wrap: balance; }
@media (max-width: 299.98px) { .hero-word { white-space: nowrap; } }
.hero-sub { margin: 16px 0 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.hero-actions { display: flex; justify-content: center; width: 100%; margin-top: 24px; }
.hero-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 0 18px 0 20px; border-radius: 48px;
  background: var(--ink); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.hero-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.hero-btn:hover { background: var(--gold); color: var(--ink-warm); }

.collage {
  --b: 4px; --r: 10px;
  position: relative; z-index: 0; order: -1;
  width: 100%; max-width: 330px; aspect-ratio: 624 / 210;
}
.ph {
  position: absolute; display: block; width: 29.5%; aspect-ratio: 1;
  overflow: hidden; border: var(--b) solid #fff; border-radius: var(--r);
  background: #D9D4CA; box-shadow: 0 6px 20px rgba(17, 17, 17, .16);
  transform: rotate(var(--rot));
  animation: ph-up 280ms ease-out both;
}
/* Photos are visible from the first paint. A short CSS-only slide, no fade, nothing waits for JavaScript. */
@keyframes ph-up { from { transform: translateY(16px) rotate(var(--rot)); } }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--center { --rot: 0deg; z-index: 1; left: 35.2%; top: -7%; width: 30%; animation-duration: 360ms; animation-delay: 120ms; }
.ph--left { --rot: -6deg; z-index: 2; left: 1%; top: 9%; animation-delay: 240ms; }
.ph--right { --rot: 6deg; z-index: 3; left: 69.4%; top: 9%; animation-delay: 275ms; }

.hero-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.hcard {
  display: flex; align-items: center; gap: 16px; min-height: 112px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  color: var(--ink); text-decoration: none; transition: background-color .15s;
}
.hcard:hover { background: var(--hover); }
.hcard:focus-visible { outline: 2px solid var(--ink); outline-offset: -1px; }
.hcard-img { display: block; flex-shrink: 0; width: 96px; height: 96px; }
.hcard-label { font-size: 18px; font-weight: 500; line-height: normal; }

/* ---------- Market cards ---------- */
.market-inner { display: flex; flex-direction: column; gap: 32px; padding-top: 60px; }
.market-title { text-align: center; }
.market-cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
.mcard {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-width: 0; padding: 24px; border-radius: 16px; color: #fff;
}
.mcard--dusk { background: var(--dusk); --tint: #C9D6F2; }
.mcard--bronze { background: var(--bronze); --tint: #F1D9A6; }
.mcard-main { display: flex; flex-direction: column; gap: 32px; }
.mcard-badge {
  align-self: flex-start; padding: 4px 10px; border-radius: 6px;
  background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 500; line-height: normal;
}
.mcard-copy { display: flex; flex-direction: column; gap: 12px; }
.mcard-title { margin: 0; font-size: 28px; font-weight: 500; line-height: normal; }
.mcard-body { margin: 0; font-size: 16px; line-height: normal; }
.mcard-body a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.mcard-body a:hover { text-decoration: none; }
.mcard-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.mcard-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; line-height: normal; }
.mcard-list svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--tint); }
.mcard-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px;
  padding: 0 24px; border: 2px solid #fff; border-radius: 48px; color: #fff;
  font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .15s;
}
.mcard-btn:hover { background: rgba(255, 255, 255, .12); }
.mcard :focus-visible { outline-color: #fff; }

/* ---------- Explore tiles ---------- */
.explore { padding-top: 48px; text-align: center; }
.explore-title { padding: 0 var(--gut); }
.tiles { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
.tile {
  display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  color: var(--ink); text-align: left; text-decoration: none; transition: background-color .15s;
}
.tile:hover { background: var(--hover); }
.tile-ico { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; padding: 10px; border-radius: 8px; }
.tile-ico svg { width: 100%; height: 100%; }
.tile-ico--gold { background: #FBF1D6; color: var(--gold-ink); }
.tile-ico--blue { background: #E6ECF8; color: var(--dusk); }
.tile-ico--sand { background: #F1ECE2; color: var(--bronze); }
.tile-label { flex: 1; font-size: 16px; font-weight: 500; line-height: normal; }
.tile-arrow { width: 24px; height: 24px; flex-shrink: 0; transition: transform .15s; }
.tile:hover .tile-arrow { transform: translateX(3px); }

/* ---------- Goal cards ---------- */
.goals { margin-top: 48px; }
.goals-title { margin-bottom: 32px; text-align: center; }
.goal-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.goal {
  display: flex; flex-direction: column; align-items: flex-start; min-height: 220px; padding: 24px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--gray-50);
  color: var(--ink); text-decoration: none; transition: background-color .15s;
}
.goal:hover { background: #EFEFEF; }
.goal-ico { width: 24px; height: 24px; flex-shrink: 0; }
.goal-title { margin-top: 8px; font-size: 20px; font-weight: 500; line-height: normal; }
.goal-text { margin: 4px 0 24px; font-size: 16px; line-height: 1.35; color: var(--muted); }
.goal-go {
  display: grid; place-items: center; width: 48px; height: 48px; margin-top: auto;
  border-radius: 50%; background: var(--ink); color: #fff; transition: background-color .15s, color .15s;
}
.goal-go svg { width: 24px; height: 24px; }
.goal:hover .goal-go { background: var(--gold); color: var(--ink-warm); }

/* ---------- Calculator promo ---------- */
.promo-sec { margin-top: 48px; }
.promo {
  display: grid; grid-template-columns: 1fr; gap: 24px; overflow: hidden;
  padding: 32px 24px 0; border-radius: 16px; background: var(--promo);
}
.promo-copy p { margin: 16px 0 32px; font-size: 16px; line-height: 24px; color: #333; }
.promo-art { position: relative; height: 290px; }
.cc {
  position: absolute; width: 210px; padding: 16px; border-radius: 16px;
  border: 1.5px solid rgba(17, 17, 17, .12); box-shadow: 0 12px 28px rgba(17, 17, 17, .12);
}
.cc p { margin: 0; }
.cc-k { font-size: 12px; font-weight: 500; line-height: 16px; color: var(--muted); }
.cc-big { margin: 2px 0 10px !important; font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -.5px; color: var(--ink); }
.cc--back { z-index: 1; right: 6%; top: 8px; background: #F6E7BF; transform: rotate(-8deg); }
.cc--left { z-index: 2; left: 0; top: 104px; width: 230px; background: #DCE4F4; transform: rotate(-7deg); }
.cc--front { z-index: 3; right: 0; top: 170px; background: #F7E1CF; transform: rotate(9deg); }
.cc-row { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 500; line-height: 16px; color: #333; }
.cc-row b { color: var(--ink); }
.cc-bar { height: 6px; margin-top: 6px; border-radius: 6px; background: rgba(17, 17, 17, .12); }
.cc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold-ink); }
.cc-slider {
  position: relative; height: 6px; margin: 6px 0 16px; border-radius: 6px;
  background: linear-gradient(90deg, var(--dusk) 0 64%, rgba(17, 17, 17, .15) 64%);
}
.cc-slider i {
  position: absolute; left: 64%; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--dusk); transform: translate(-50%, -50%);
}
.cc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-pills span {
  padding: 5px 9px; border: 1.5px solid var(--dusk); border-radius: 20px;
  font-size: 11px; font-weight: 500; line-height: 14px; color: var(--dusk);
}
.cc-pills .on { background: var(--dusk); color: #fff; }
.cc-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-boxes span {
  display: flex; flex-direction: column; padding: 8px; border: 1.5px solid rgba(122, 92, 20, .4);
  border-radius: 10px; font-size: 11px; font-weight: 500; line-height: 14px; color: var(--muted);
}
.cc-boxes b { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--ink); }

/* ---------- Team / promises band ---------- */
.stats { margin-top: 48px; padding: 48px 0; background: var(--stats); }
.stats-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.stats-art { position: relative; flex-shrink: 0; width: 220px; height: 205px; }
.stats-diamond {
  position: absolute; left: 50%; top: 50%; width: 64%; aspect-ratio: 1; border-radius: 22px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #B88C2E);
  transform: translate(-50%, -50%) rotate(45deg);
}
.face {
  position: absolute; width: 58%; aspect-ratio: 480 / 456; overflow: hidden;
  border: 5px solid #fff; border-radius: 16px; background: #D9D4CA;
  box-shadow: 0 10px 24px rgba(17, 17, 17, .16);
}
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.face--george { left: 0; top: 2%; transform: rotate(-5deg); }
.face--ary { right: 0; bottom: 2%; transform: rotate(5deg); }
.stats-copy { width: 100%; }
.stats-cols { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 24px 0 32px; }
.stats-cols h3 { margin: 0; font-size: 20px; font-weight: 500; line-height: normal; }
.stats-cols p { margin: 8px 0 0; font-size: 16px; line-height: 24px; color: var(--muted); }

/* ---------- Disclosures ---------- */
.disc { background: var(--gray-50); }
.disc-inner { max-width: 1440px; margin: 0 auto; padding: 28px var(--gut) 32px; }
.disc summary {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 500; line-height: 24px; color: var(--ink); border-radius: 100px;
}
.disc summary::-webkit-details-marker { display: none; }
.disc summary svg { width: 20px; height: 20px; transition: transform .2s; }
.disc-inner[open] summary svg { transform: rotate(180deg); }
.disc p { margin: 16px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.disc summary + p { margin-top: 24px; }
.disc a { color: var(--ink); }

/* ---------- Footer ---------- */
.foot { padding: 48px 0 40px; background: var(--foot); color: #fff; }
.foot :focus-visible { outline-color: #fff; }
.foot-top { display: grid; grid-template-columns: 1fr; gap: 40px; }
.foot-mark { display: block; width: 48px; height: 48px; margin-bottom: 28px; color: var(--gold); }
.foot-logo { display: block; margin-bottom: 28px; }
.foot-logo img { width: 288px; }
.foot-brand + .foot-brand { margin-top: 24px; }
.foot-bt { margin: 0; font-size: 18px; font-weight: 500; line-height: normal; }
.foot-bt a { color: #fff; text-decoration: none; }
.foot-bt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-bd { max-width: 290px; margin: 4px 0 0; font-size: 14px; line-height: 20px; color: #C9C2B6; }
.foot-h { margin: 0 0 20px; font-size: 18px; font-weight: 500; line-height: normal; }
.foot-col ul { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.foot-col a, .linkish {
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 16px; line-height: 22px; color: #fff; text-decoration: none;
}
.foot-col a:hover, .linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-mid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 56px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.foot-icons { display: flex; gap: 12px; margin-left: -10px; }
.foot-icons a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; }
.foot-icons a:hover { background: rgba(255, 255, 255, .1); }
.foot-icons svg { width: 28px; height: 28px; }
.foot-apply {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 22px;
  border-radius: 100px; background: #fff; color: var(--ink); font-weight: 500; text-decoration: none;
  transition: background-color .15s;
}
.foot-apply svg { width: 20px; height: 20px; }
.foot-apply:hover { background: var(--gold); }
.foot-legal { margin-top: 48px; }
.foot-legal p { margin: 0 0 14px; font-size: 12px; line-height: 18px; color: #C9C2B6; }
.foot-legal a { color: #fff; }
.foot-eho { display: flex; align-items: center; gap: 10px; margin-top: 28px !important; }
.foot-eho svg { width: 44px; height: 44px; color: #fff; }

/* ---------- Floating call pill ---------- */
.chat {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 8px;
  border-radius: 100px; background: #fff; color: var(--ink);
  font-size: 16px; font-weight: 500; text-decoration: none;
  box-shadow: 0 4px 20px rgba(17, 17, 17, .18); transition: background-color .15s;
}
.chat:hover { background: var(--hover); }
.chat-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); }
.chat-ico svg { width: 20px; height: 20px; }
/* Phones: the pill shrinks to its round phone icon so it does not sit on the hero cards' labels.
   The words stay in the link for screen readers, so its name is still "Call or text (813) 356-9448". */
@media (max-width: 479.98px) {
  .chat { padding: 0 8px; }
  .chat-t {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}
@media (max-width: 374.98px) {
  .chat {
    right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    height: 48px; padding: 0 4px;
  }
}
/* Under 358px the 48px circle would reach the end of "Trade up in a 1031"; the extra right padding wraps that label instead. */
@media (max-width: 357.98px) {
  .hcard { padding-right: 40px; }
}
/* .chat--round and .chat--wait are on the homepage only, and main.js decides when each one applies.
   .chat--round, 480 to 1661px wide, while the hero cards are on screen: the words of the pill would reach the cards' labels
   at some screen sizes. From 1644px of page width the pill clears the cards as it is. The bound is higher because a
   classic scrollbar (15 to 17px) is part of the width a media query sees. */
@media (min-width: 480px) and (max-width: 1661.98px) {
  .chat.chat--round { right: calc(16px + env(safe-area-inset-right, 0px)); padding: 0 8px; }
  .chat--round .chat-t {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}
/* .chat--wait, only while the button would sit on a line of the hero sentence (short phone screens, upright or on
   their side): it stays away until the sentence has scrolled past it. Without scripts the button always shows. */
@media (scripting: enabled) {
  .chat--wait { visibility: hidden; }
}

/* ---------- Legal dialogs ---------- */
.legal {
  width: calc(100% - 32px); max-width: 560px; padding: 32px; border: 0; border-radius: 20px;
  color: var(--ink); box-shadow: 0 24px 64px rgba(17, 17, 17, .3);
}
.legal::backdrop { background: rgba(17, 17, 17, .5); }
.legal h2 { margin: 0 0 12px; font-size: 28px; font-weight: 500; line-height: 36px; }
.legal p { margin: 0; font-size: 16px; line-height: 25px; color: #333; }
.legal-close {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--hover); cursor: pointer;
}
.legal-close svg { width: 20px; height: 20px; }

/* ---------- Phones: logo moves beside the menu button so it clears the Apply pill ---------- */
@media (max-width: 479.98px) {
  .gh-logo { position: static; transform: none; width: auto; height: auto; margin: 0 0 0 4px; }
  .gh-logo img { width: min(288px, calc(100vw - 184px)); }
}

/* ---------- Small phones ---------- */
@media (max-width: 374.98px) {
  .hero-rotate { font-size: 34px; line-height: 42px; }
  .gh-bar { padding: 0 16px; }
  .gh-logo { gap: 8px; }
  .gh-logo .mark { width: 28px; height: 28px; }
  .gh-logo span { font-size: 14px; }
  .gh-logo img { width: calc(100vw - 160px); }
  .gh-apply--m { padding: 0 14px; }
}

/* ---------- md >= 768px ---------- */
@media (min-width: 768px) {
  :root { --gut: 32px; }
  .h2 { font-size: 40px; line-height: 48px; letter-spacing: -1px; }

  .hero-top { flex-direction: row; justify-content: flex-start; gap: 24px; }
  .hero-copy { flex: 1 1 0; min-width: 0; }
  .hero-pause { top: -5px; left: calc(50% + 94px); }
  .hero-intro { font-size: 20px; }
  .hero-rotate { font-size: 44px; line-height: 52px; }
  .collage { --b: 6px; --r: 16px; order: 0; flex: 1 1 0; max-width: 624px; }
  .hero-btn { width: auto; min-height: 56px; padding: 0 18px 0 24px; }
  .hero-actions { margin-top: 32px; }
  .hero-cards { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
  .hcard { min-height: 144px; padding: 24px; border-radius: 20px; }
  .hcard-label { font-size: 24px; }

  .market-inner { gap: 40px; padding-top: 64px; }
  .market-cards { grid-template-columns: 1fr 1fr; }
  .mcard { padding: 32px; border-radius: 20px; }
  .mcard-list li { font-size: 16px; }
  .mcard-btn { align-self: flex-start; width: auto; }

  .explore { padding-top: 64px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }

  .goals { margin-top: 64px; }
  .goal-list { grid-template-columns: repeat(3, 1fr); }

  .promo-sec { margin-top: 64px; }
  .promo { padding: 40px 32px 0; border-radius: 20px; }
  .promo-art { height: 320px; max-width: 460px; width: 100%; margin: 0 auto; }

  .stats { margin-top: 64px; }
  .stats-cols { grid-template-columns: repeat(3, 1fr); gap: 32px; }

  .foot-top { grid-template-columns: repeat(3, 1fr); }
  .foot-brands { grid-column: 1 / -1; }

  .chat { right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- lg >= 1080px ---------- */
@media (min-width: 1080px) {
  :root { --gut: 72px; }
  .h2 { font-size: 48px; line-height: 56px; }

  .alert { padding: 12px 80px; }

  .hero-inner { padding: 64px 80px 0; }
  .hero-top { min-height: 336px; }
  .hero-copy { flex: 0 1 574px; padding: 64px 0; }
  .hero-pause { top: 62px; left: calc(50% + 112px); width: 32px; height: 32px; }
  .hero-h { gap: 8px; }
  .hero-intro { font-size: 24px; }
  .hero-rotate { margin-top: 8px; font-size: 56px; line-height: 64px; }
  .hero-sub { font-size: 18px; line-height: 28px; }
  .collage { flex: 0 1 624px; }
  .hero-cards { grid-template-columns: repeat(3, 1fr); margin-top: 30px; }

  .market-inner { gap: 48px; padding-top: 96px; }
  .mcard { padding: 48px; }
  .mcard-copy { gap: 16px; max-width: 628px; }
  .mcard-title { font-size: 32px; line-height: 40px; }
  .mcard-body { font-size: 18px; }

  .explore { padding-top: 96px; }
  .tiles { gap: 24px; margin-top: 48px; }
  .tile { min-height: 96px; padding: 15px 16px; border-radius: 20px; }
  .tile-ico { width: 64px; height: 64px; padding: 14px; }
  .tile-label { font-size: 24px; }

  .goals { margin-top: 96px; }
  .goals-title { padding-top: 32px; margin-bottom: 48px; }
  .goal-list { gap: 24px; }
  .goal { min-height: 255px; padding: 32px; border-radius: 20px; }
  .goal-title { font-size: 24px; }
  .goal-text { font-size: 18px; }

  .promo-sec { margin-top: 96px; }
  .promo { grid-template-columns: minmax(0, 1fr) 456px; align-items: center; gap: 64px; min-height: 434px; padding: 0 48px; }
  .promo-art { height: 434px; max-width: none; margin: 0; }
  .cc--back { right: 3%; top: 22px; }
  .cc--left { top: 196px; left: 0; }
  .cc--front { top: 262px; right: 0; }

  .stats { margin-top: 96px; padding: 60px 0; }
  .stats-inner { flex-direction: row; gap: 120px; min-height: 415px; }
  .stats-art { width: 335px; height: 312px; }
  .face { border-width: 6px; border-radius: 20px; }
  .stats-cols { gap: 40px; margin: 48px 0; }
  .stats-cols h3 { font-size: 24px; }
  .stats-cols p { font-size: 18px; }

  .disc-inner { padding: 28px 80px 40px; }

  .foot { padding: 80px 0 64px; }
  .foot-top { grid-template-columns: 1.95fr 1fr 1fr 1fr; gap: 24px; }
  .foot-brands { grid-column: auto; }

  .chat { right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Desktop nav >= 1150px ---------- */
@media (min-width: 1150px) {
  .gh-bar { height: 104px; padding: 0 48px; }
  .gh-burger, .mnav, .gh-apply--m { display: none !important; }
  .gh-logo { position: static; transform: none; width: auto; height: auto; margin: 0; }
  /* Desktop: the logo grows with the window and keeps 16px between the nav and the phone link, even with a 17px
     classic scrollbar. From 1300px the email link shows too, so less room is left over. */
  .gh-logo img { width: min(288px, calc(100vw - 969px)); }
  .gh-nav { display: block; margin-left: 24px; }
  .gh-right { display: flex; }
  /* Mega menus open 62px left of the first nav item, as they did beside the old 175px logo, and end 48px from the
     right edge. The nav starts 72px after the logo (48px bar padding, 24px nav margin), so the panel starts 10px
     after the logo's width. Only for the image logo: pages still on the drawn logo keep left: 185px. */
  .gh-logo:has(img) ~ .gh-nav .mm {
    left: calc(10px + min(288px, 100vw - 969px));
    max-width: calc(100vw - 58px - min(288px, 100vw - 969px));
  }
}
@media (min-width: 1150px) and (max-width: 1299.98px) {
  .gh-util[href^="mailto"] { display: none; }
}
@media (min-width: 1300px) {
  .gh-logo img { width: min(288px, calc(100vw - 1091px)); }
  .gh-logo:has(img) ~ .gh-nav .mm {
    left: calc(10px + min(288px, 100vw - 1091px));
    max-width: calc(100vw - 58px - min(288px, 100vw - 1091px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .gh-link::after, .tile-arrow, .mm-start svg, .mg summary svg, .disc summary svg { transition: none !important; }
  .ph { animation: none; }
}

/* =====================================================================
   Sections carried over from the live site, in the same visual language.
   ===================================================================== */
.sec { margin-top: 48px; }
.sec-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.sec-intro { margin: 16px 0 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.sec-note { margin: 32px 0 0; text-align: center; font-size: 18px; font-weight: 500; line-height: 26px; }
.sub-h { margin: 0 0 24px; font-size: 24px; font-weight: 500; line-height: 32px; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--hover);
  font-size: 13px; font-weight: 500; line-height: normal;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Loans */
.loan-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.loan { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.loan-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #D9D4CA; }
.loan-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 24px; }
.loan-title { margin: 0; font-size: 22px; font-weight: 500; line-height: normal; }
.loan-text { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.loan-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: auto 0 0; padding-top: 16px; }
.loan-links a { font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.loan-links a:hover { text-decoration: none; }

/* Build your scenario */
.chips { display: grid; grid-template-columns: 1fr; gap: 12px; }
.chip {
  position: relative; display: grid; align-content: start; gap: 6px; padding: 20px 60px 20px 20px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; text-align: left;
  transition: background-color .15s, border-color .15s;
}
.chip::after {
  content: ""; position: absolute; right: 20px; top: 20px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff center / 14px no-repeat;
}
.chip:hover { background: var(--hover); }
.c-label { font-size: 18px; font-weight: 500; line-height: 24px; }
.c-no { font-size: 15px; line-height: 22px; color: var(--muted); }
.c-yes, .c-how { display: none; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--promo); }
.chip[aria-pressed="true"]::after {
  border-color: var(--ink);
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.chip[aria-pressed="true"] .c-no { display: none; }
.chip[aria-pressed="true"] .c-yes {
  display: inline-block; justify-self: start; padding: 2px 8px; border-radius: 6px;
  background: var(--gold); color: var(--ink-warm); font-size: 12px; font-weight: 600; line-height: 18px;
}
.chip[aria-pressed="true"] .c-how { display: block; font-size: 15px; line-height: 22px; color: #333; }
.build-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 32px; }
.count { margin: 0; font-weight: 500; color: var(--muted); }

/* Calculators */
.calc { padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.tabs-scroll { overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs { display: flex; gap: 8px; width: max-content; }
.tabs [role="tab"] {
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; background: #fff; cursor: pointer;
  font-size: 15px; font-weight: 500; line-height: 20px; white-space: nowrap; transition: background-color .15s;
}
.tabs [role="tab"]:hover { background: var(--hover); }
.tabs [role="tab"][aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.panel { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
.fields { display: grid; grid-template-columns: 1fr; gap: 16px; align-content: start; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; line-height: 20px; color: #333; }
.fields input:not([type="checkbox"]), .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 16px/22px var(--font);
}
.fields input:not([type="checkbox"]):focus-visible, .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0;
}
.fields label.check { flex-direction: row; align-items: center; gap: 10px; align-self: end; min-height: 48px; }
.fields input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.results { align-self: start; padding: 24px; border: 1px solid #E6E6E6; border-radius: 16px; background: var(--gray-50); }
.big { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; }
.big span { font-size: 14px; font-weight: 500; color: var(--muted); }
/* Commas give a long figure nowhere to wrap, so it may break anywhere, but only when it is wider than all the room
   it can get, rather than push past the box on a phone. A figure in a results row keeps its natural width: the label
   beside it gives way first, down to its longest word. The results that are sentences stop at 62% of the row, so the
   label keeps a readable column. "Days left" has a short label and, from 480px on the homepage, usually a one-line
   answer, so it stops there on phones only (pages.css adds the calculator pages from 1080px, where the answer wraps
   anyway). Its label never splits: where the row is too narrow for both on one line (the homepage from 1080 to about
   1124px), the answer wraps instead, in even lines. */
.panel [data-o] { overflow-wrap: anywhere; }
.results dl > div > dt { flex: 1 1 0%; }
.results dd[data-o] { flex: 0 1 auto; }
.panel[data-calc="commercial"] dd[data-o="res"], .panel[data-calc="x1031"] dd[data-o="d180"],
.panel[data-calc="cor"] dd[data-o="dscr"] { max-width: 62%; }
@media (max-width: 479.98px) { .panel[data-calc="x1031"] dd[data-o="left"] { max-width: 62%; } }
.panel[data-calc="x1031"] .results dl > div:has(> dd[data-o="left"]) > dt { min-width: max-content; }
.panel[data-calc="x1031"] dd[data-o="left"] { text-wrap: balance; }
.big b { font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
/* Below 340px the 40px headline figure ($1,584,653 at the default inputs) is wider than its box; 34px fits it whole,
   and 28px below 320px. */
@media (max-width: 339.98px) { .big b { font-size: 34px; } }
@media (max-width: 319.98px) { .big b { font-size: 28px; } }
.results dl { display: flex; flex-direction: column; margin: 0; }
.results dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #E6E6E6; }
.results dt { font-size: 14px; line-height: 20px; color: var(--muted); }
.results dd { margin: 0; font-size: 15px; font-weight: 500; line-height: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.verdict { margin: 12px 0 0; font-size: 15px; line-height: 22px; color: #333; }
.verdict:empty { display: none; }
.note { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.calc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #E6E6E6; }
.calc-disc { margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); }
/* Tools intro: one plain line per calculator, always visible (the tabs hide six of the seven notes). */
.tool-notes { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 32px; }
.tool-notes dt { font-size: 16px; font-weight: 500; line-height: 22px; color: var(--ink); }
.tool-notes dd { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
/* Reviewed-by line under the tools and the FAQ, in the same small print as the calculator disclaimer. */
.reviewed { margin: 24px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }

/* Downloads */
.downloads { margin-top: 48px; }
.dl-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dl-list a {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; height: 100%;
  padding: 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none;
  transition: background-color .15s;
}
.dl-list a:hover { background: var(--hover); }
.dl-ico { grid-row: span 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: #FBF1D6; color: var(--gold-ink); }
.dl-ico svg { width: 26px; height: 26px; }
.dl-t { font-size: 16px; font-weight: 500; line-height: 22px; }
.dl-d { font-size: 14px; line-height: 20px; color: var(--muted); }
.dl-f { margin-top: 4px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--gold-ink); }
/* The text link under each tile. Every link in .dl-list is a bordered tile by default, so this class undoes that,
   and the tile takes the spare height so the tiles in a row stay the same size. */
.dl-list li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dl-list li > a:not(.dl-more) { flex: 1 1 auto; height: auto; }
.dl-list a.dl-more {
  display: block; align-self: flex-start; height: auto; padding: 2px 0; border: 0; border-radius: 0;
  font-size: 13px; font-weight: 500; line-height: 20px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}
.dl-list a.dl-more:hover { background: none; text-decoration: none; }
.dl-all { margin: -12px 0 20px; font-size: 15px; line-height: 22px; }
.dl-all a { font-weight: 500; color: var(--ink); text-underline-offset: 3px; }

/* VA */
.va-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.va-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: #D9D4CA; }
.va-copy .h2 { margin-top: 12px; }
.va-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 32px; padding: 0; list-style: none; }
.va-facts li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid #E6E6E6; border-radius: 16px; background: var(--gray-50); }
.va-facts b { font-size: 20px; font-weight: 600; line-height: 26px; }
.va-facts span { font-size: 14px; line-height: 20px; color: var(--muted); }

/* Team */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.member { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.member-img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; background: #D9D4CA; }
.member-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 24px; }
.member-name { margin: 0; font-size: 24px; font-weight: 500; line-height: normal; }
.member-role { margin: 0; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--gold-ink); }
.member-role a { color: inherit; }
.member-bio { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.member-contact { display: flex; flex-direction: column; gap: 6px; margin: auto 0 0; padding-top: 8px; }
.member-contact a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.member-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.member-contact svg { width: 20px; height: 20px; flex-shrink: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { padding: 24px; border: 1px solid #E6E6E6; border-radius: 20px; background: var(--gray-50); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; }
.step h3 { margin: 0; font-size: 20px; font-weight: 500; line-height: normal; }
.step p { margin: 8px 0 0; color: var(--muted); }
.promises { margin-top: 48px; padding: 24px; border-radius: 20px; background: var(--stats); }
.promises .sub-h { margin-bottom: 20px; }
.promise-list { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.promise-list li { display: flex; gap: 12px; font-size: 16px; line-height: 24px; }
.promise-list svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--gold-ink); }

/* FAQ */
.faq-wrap { width: min(880px, 100% - 2 * var(--gut)); }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0;
  cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; line-height: 26px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 24px; height: 24px; flex-shrink: 0; transition: transform .2s; }
.qa details[open] summary svg { transform: rotate(180deg); }
.qa p { max-width: 720px; margin: 0 0 20px; font-size: 16px; line-height: 26px; color: #333; }
.qa p.faq-more { margin-top: -8px; }
.faq-more a { font-weight: 500; color: var(--ink); text-underline-offset: 3px; }

/* Scenario form */
.ask-panel { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 24px; border-radius: 20px; background: var(--dusk); color: #fff; }
.ask-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ask-copy :focus-visible { outline-color: #fff; }
.ask-h { margin: 0; font-size: 32px; font-weight: 500; line-height: 40px; }
.ask-intro { margin: 0; font-size: 18px; line-height: 26px; color: #E3E7F0; }
.ask-contact { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ask-contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; color: #fff; text-decoration: none; }
.ask-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ask-contact svg { width: 22px; height: 22px; color: #C9D6F2; }
.ask-apply { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: #C9D2E3; }
.ask-card { padding: 24px; border-radius: 16px; background: #fff; color: var(--ink); }
.scenario-form { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; line-height: 20px; color: #333; }
.field .opt { font-weight: 400; color: var(--muted); }
.field select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 20px no-repeat;
}
.field textarea { min-height: 140px; resize: vertical; }
.scenario-form > .btn, .scenario-form > .consent, .scenario-form > .err, .field--full { grid-column: 1 / -1; }
.consent { margin: 0; font-size: 13px; line-height: 19px; color: var(--muted); }
.err { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; font-size: 14px; font-weight: 500; line-height: 20px; }
.success { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.success:focus { outline: none; }
.success-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink-warm); }
.success-mark svg { width: 26px; height: 26px; }
.success-h { margin: 0; font-size: 28px; font-weight: 500; line-height: 36px; }
.success p { margin: 0; color: #333; }

@media (min-width: 768px) {
  .sec { margin-top: 64px; }
  .loan-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .chips { grid-template-columns: 1fr 1fr; }
  .calc { padding: 24px; }
  .tool-notes { grid-template-columns: 1fr 1fr; gap: 16px 32px; }
  .tabs-scroll { margin: 0; padding: 2px 0 4px; overflow: visible; }
  .tabs { flex-wrap: wrap; width: auto; }
  .fields { grid-template-columns: 1fr 1fr; }
  .dl-list { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .promise-list { grid-template-columns: 1fr 1fr; gap: 16px 32px; }
  .ask-panel { padding: 32px; }
  .ask-h { font-size: 40px; line-height: 48px; letter-spacing: -1px; }
  .scenario-form { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1080px) {
  html { scroll-padding-top: calc(124px + env(safe-area-inset-top, 0px)); }
  .sec { margin-top: 96px; }
  .sec-head { margin-bottom: 48px; }
  .sec-intro { font-size: 18px; line-height: 28px; }
  .sub-h { font-size: 28px; line-height: 36px; }
  .loan-grid { grid-template-columns: repeat(3, 1fr); }
  .loan { border-radius: 20px; }
  .loan-title { font-size: 24px; }
  .chips { gap: 16px; }
  .calc { padding: 32px; }
  .tool-notes { grid-template-columns: repeat(4, 1fr); gap: 24px 40px; margin-bottom: 48px; }
  .panel { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; }
  .dl-list { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .dl-list a.dl-more { min-height: 44px; }
  .downloads { margin-top: 64px; }
  .va-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .member { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
  .member-img { height: 100%; aspect-ratio: auto; }
  .member-body { padding: 32px; }
  .step { padding: 32px; }
  .step h3 { font-size: 24px; }
  .promises { margin-top: 64px; padding: 40px; }
  .ask-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; padding: 48px; }
  .ask-h { font-size: 48px; line-height: 56px; }
  .ask-card { padding: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .qa summary svg, .chip { transition: none !important; }
}
