/* Clary Auto Credit
   Brand: Bud Clary blue #0095FF + yellow #FFF100 (org color rule: no dark blue #00578A here).
   Contrast: #0095FF is 3.1:1 on white, so blue never carries small text on a light
   background; ink on blue is 5.8:1 and ink on yellow 15:1, so blocks use ink text.
   Shapes: buttons are full pills; cards, photos and panels are 18px; nothing else rounds. */

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0095ff;
  --yellow: #fff100;
  --yellow-press: #f0e200;
  --on-color: #0f151d; /* text on blue or yellow, both themes */
  --paper: #fbfcfd;
  --card: #ffffff;
  --mist: #eaf5ff;
  --ink: #0f151d;
  --ink-2: #333d4a;
  --muted: #55606d;
  --line: #dde4eb;
  --shadow: 0 1px 2px rgba(10, 60, 110, 0.06), 0 12px 32px rgba(10, 60, 110, 0.08);
  --r: 18px;
  --wrap: 1180px;
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1117;
    --card: #131a22;
    --mist: #0f2236;
    --ink: #edf1f5;
    --ink-2: #c7cfd8;
    --muted: #9ba6b2;
    --line: #25303c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.55rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; font-weight: 750; }
p { margin: 0 0 1em; max-width: 68ch; }
ul { margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--on-color); padding: 8px 14px; z-index: 30; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 12px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 820px); }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.lede { font-size: 1.2rem; color: var(--ink-2); }
.fine { font-size: 0.875rem; color: var(--muted); }

/* ---------- icons ---------- */
.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic-btn { width: 1.1em; height: 1.1em; transition: transform 0.2s ease; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--on-color); box-shadow: inset 0 0 0 2px var(--on-color), 0 3px 0 var(--on-color); }
.btn-yellow:hover { background: var(--yellow-press); }
.btn-yellow:hover .ic-btn { transform: translateX(3px); }
.btn-yellow:active { box-shadow: inset 0 0 0 2px var(--on-color), 0 1px 0 var(--on-color); transform: translateY(2px); }
.btn-line { color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-line:hover { background: rgba(15, 21, 29, 0.06); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.text-link { font-weight: 750; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { height: 70px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
/* The mark (src/img/mark.svg, scripts/make-logo.py) has a near-black road, so on a dark
   background it sits on a white chip. */
.logo-mark { width: 44px; height: 44px; flex: none; }
@media (prefers-color-scheme: dark) {
  .logo-mark { background: #fff; border-radius: 12px; padding: 3px; }
}
.site-footer .logo-mark { background: #fff; border-radius: 12px; padding: 3px; }
.logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-weight: 850; font-size: 1.1rem; letter-spacing: -0.01em; }
.logo-by { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.nav-desktop { display: flex; gap: 22px; margin-left: auto; }
.nav-desktop a { text-decoration: none; font-weight: 650; font-size: 0.97rem; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.header-cta { flex: none; }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.2s ease; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-mobile[open] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 70px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 18px;
  display: grid;
  box-shadow: var(--shadow);
}
.nav-mobile nav a { padding: 13px 4px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-mobile nav a:last-child { border-bottom: 0; }

@media (max-width: 1080px) {
  .nav-desktop { gap: 16px; }
  .nav-desktop a { font-size: 0.92rem; }
}
@media (max-width: 960px) {
  .nav-desktop, .header-cta { display: none; }
  .nav-mobile { display: block; }
}

/* ---------- hero (home) ---------- */
.hero { background: var(--blue); color: var(--on-color); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(40px, 6vw, 84px) 0; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero .lede { color: var(--on-color); max-width: 34ch; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
.hero .btn-line { color: var(--on-color); }
.hero .btn-line:hover { background: rgba(255, 255, 255, 0.18); }
.hero-photo { position: relative; }
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  background: var(--yellow);
  border-radius: var(--r);
  box-shadow: inset 0 0 0 2px var(--on-color);
}
.hero-photo img { position: relative; border-radius: var(--r); box-shadow: 0 0 0 2px var(--on-color); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* ---------- facts strip ---------- */
.facts { border-bottom: 1px solid var(--line); background: var(--card); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-row > div { padding: 26px 22px; border-left: 1px solid var(--line); }
.facts-row > div:first-child { border-left: 0; padding-left: 0; }
.facts-row strong { display: block; font-size: 1.25rem; font-weight: 850; letter-spacing: -0.01em; }
.facts-row span { color: var(--muted); font-size: 0.95rem; }

/* ---------- situations bento ---------- */
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; margin-top: 32px; }
.tile {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.tile:hover { transform: translateY(-3px); }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-body h3 { margin: 0; font-size: 1.35rem; }
.tile-body p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.tile .go { margin-top: auto; padding-top: 10px; font-weight: 800; display: inline-flex; gap: 6px; align-items: center; }
.tile-lg { grid-row: span 2; }
.tile-lg img { aspect-ratio: auto; flex: 1 1 0; min-height: 280px; }
.tile-lg .tile-body { flex: none; }
.tile-lg h3 { font-size: 1.7rem; }
.tile-yellow { background: var(--yellow); color: var(--on-color); box-shadow: inset 0 0 0 2px var(--on-color); grid-column: span 2; }
.tile-yellow .tile-body { padding: 28px; flex-direction: row; align-items: center; gap: 28px; flex-wrap: wrap; }
.tile-yellow .tile-body > div { flex: 1 1 280px; }
.tile-yellow p { color: var(--on-color); }
.tile-yellow img.car { width: 200px; aspect-ratio: auto; object-fit: contain; }

/* ---------- lenders band ---------- */
.lenders { background: var(--mist); }
.lender-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0 14px; }
.lender {
  background: var(--card);
  border-radius: var(--r);
  padding: 20px 18px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.lender b { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.lender span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.lender-kind { font-weight: 800; font-size: 0.95rem; margin: 26px 0 0; color: var(--ink-2); }
.lender-grid.three { grid-template-columns: repeat(3, 1fr); }
.more { margin-top: 28px; }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.lender.feature { background: var(--yellow); color: var(--on-color); box-shadow: inset 0 0 0 2px var(--on-color); }
.lender.feature span { color: var(--on-color); }
.lender.blue { background: var(--blue); color: var(--on-color); box-shadow: none; }
.lender.blue span { color: var(--on-color); }
.lenders-note { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 34px; }
.lenders-note p { color: var(--ink-2); }

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.how-head { position: sticky; top: 110px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before {
  content: counter(s);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--on-color);
  box-shadow: inset 0 0 0 2px var(--on-color);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.3rem;
}
.steps h3 { margin: 6px 0 6px; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- what we are / aren't ---------- */
.are { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.are > div { border-radius: var(--r); padding: 30px; }
.are .yes { background: var(--blue); color: var(--on-color); }
.are .no { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.are h3 { font-size: 1.35rem; }
.are ul { list-style: none; display: grid; gap: 12px; }
.are li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.are li .ic { margin-top: 3px; }
.are .no .ic { color: var(--muted); }

/* ---------- checklist ---------- */
.bring { background: var(--yellow); color: var(--on-color); border-radius: var(--r); padding: clamp(28px, 4vw, 52px); box-shadow: inset 0 0 0 2px var(--on-color); }
.bring-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 18px; }
.bring h3 { font-size: 1.1rem; margin-bottom: 14px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.ticks .ic { margin-top: 3px; }

/* ---------- town list ---------- */
.towns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; margin-top: 30px; }
.towns h3 { font-size: 1.1rem; padding-bottom: 10px; border-bottom: 3px solid var(--blue); }
.towns ul { list-style: none; display: grid; gap: 8px; font-size: 0.96rem; color: var(--ink-2); }

/* ---------- closing band ---------- */
.band { background: var(--blue); color: var(--on-color); }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(44px, 6vw, 72px) 0; }
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; font-size: 1.1rem; }

/* ---------- page hero (inner pages) ---------- */
.phero { background: var(--mist); border-bottom: 1px solid var(--line); }
.phero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(36px, 5vw, 72px) 0; }
.phero img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.phero .lede { max-width: 46ch; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.phero-solo .phero-grid { grid-template-columns: 1fr; }

/* ---------- content ---------- */
.prose h2 { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul.dots { padding-left: 1.2em; display: grid; gap: 6px; margin-bottom: 1em; }
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.col { background: var(--card); border-radius: var(--r); padding: 26px; box-shadow: inset 0 0 0 1px var(--line); }
.col h3 { display: flex; gap: 10px; align-items: center; }
.col h3 .ic { color: var(--blue); width: 1.4em; height: 1.4em; }
.col p { color: var(--ink-2); font-size: 0.98rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.callout { border-left: 4px solid var(--blue); padding: 6px 0 6px 20px; margin: 24px 0; }
.alt { background: var(--card); border-block: 1px solid var(--line); }
.mist { background: var(--mist); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin-top: 22px; }
.faq details { background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 22px; font-weight: 750; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.ic-caret { transition: transform 0.2s ease; color: var(--muted); }
.faq details[open] .ic-caret { transform: rotate(180deg); }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0; color: var(--ink-2); }

/* ---------- quiz ---------- */
.quiz-section { background: var(--mist); }
.quiz-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.quiz-copy { position: sticky; top: 110px; }
.quiz-copy .ticks { margin: 22px 0; font-weight: 650; }
.quiz-copy .ticks .ic { color: var(--blue); }
.quiz-host { width: 100%; max-width: 576px; justify-self: center; }
.quiz-host:not([data-bc-fresh-start-mounted]) { min-height: 740px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- dealerships ---------- */
.town-block { padding: 34px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.town-block:first-child { border-top: 0; }
.town-block h2 { font-size: 1.6rem; }
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.store { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; font-size: 0.97rem; }
.store h3 { margin: 0; font-size: 1.12rem; }
.store .sells { color: var(--muted); font-weight: 650; font-size: 0.9rem; }
.store a { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.store .addr { display: flex; gap: 8px; color: var(--ink-2); }
.store .ic { color: var(--blue); margin-top: 2px; }

/* ---------- sources ---------- */
.sources { padding-top: 0; }
.sources h2 { font-size: 1.3rem; }
.sources ul { list-style: none; display: grid; gap: 6px; font-size: 0.95rem; }

/* ---------- footer ---------- */
.site-footer { background: #0c1117; color: #c7cfd8; padding: 64px 0 120px; margin-top: 0; }
.site-footer a { color: #edf1f5; }
.site-footer a.btn-yellow { color: var(--on-color); }
.site-footer .logo-name { color: #edf1f5; }
.site-footer .logo-by { color: #9ba6b2; }
.site-footer h3 { color: #edf1f5; font-size: 1rem; margin-bottom: 12px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #25303c; }
.footer-brand p { margin: 16px 0 22px; max-width: 42ch; }
.footer-nav ul, .footer-stores ul { list-style: none; display: grid; gap: 8px; font-size: 0.95rem; }
.footer-stores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding: 36px 0; border-bottom: 1px solid #25303c; }
.footer-stores ul { font-size: 0.88rem; }
.footer-stores a { color: #c7cfd8; text-decoration: none; }
.footer-stores a:hover { color: #fff; text-decoration: underline; }
.disclosures { padding-top: 28px; display: grid; gap: 4px; }
.disclosures p { font-size: 0.86rem; max-width: 110ch; color: #b3bdc8; }
.copyright { font-size: 0.82rem; color: #8a96a3; }
.mobile-bar { display: none; }

/* ---------- motion ---------- */
/* No entrance animation on the hero: the headline is the LCP element and must paint at once.
   Motion is limited to hover / press feedback. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .phero-grid, .how, .split, .quiz-grid, .lenders-note, .footer-top { grid-template-columns: 1fr; }
  .hero-photo { margin: 0 22px 22px 0; }
  .how-head, .quiz-copy { position: static; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-lg { grid-row: auto; grid-column: span 2; }
  .tile-lg img { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .lender-grid { grid-template-columns: repeat(2, 1fr); }
  .lender-grid.three, .cols.three { grid-template-columns: 1fr; }
  .towns, .footer-stores { grid-template-columns: repeat(2, 1fr); }
  .town-block { grid-template-columns: 1fr; gap: 14px; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .facts-row > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-row > div { border-top: 1px solid var(--line); }
  .facts-row > div:nth-child(-n + 2) { border-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: 76px; }
  .bento, .are, .cols, .bring-grid, .store-grid { grid-template-columns: 1fr; }
  .tile-lg, .tile-yellow { grid-column: auto; }
  .tile-yellow img.car { width: 160px; }
  .towns { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-stores { grid-template-columns: 1fr; }
  .facts-row > div { padding: 18px 12px 18px 0; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .site-footer { padding-bottom: 110px; }
  .mobile-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
}
