/* =====================================================================
   Rush Vance Funding - shared design system (rvf.css)
   v1.7 2026-08-22 (Sol audit rounds 1-2 applied). One file for index.html, qualify.html, form.html.
   Tokens first, then base, then components. No gradients, no serif,
   no italics. Lime is the only bright element.
   ===================================================================== */

/* ---------- Fonts ----------
   Loaded in each page <head> (no @import waterfall):
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="preconnect" href="https://api.fontshare.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,800&display=swap">
   <link rel="stylesheet" href="https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700&display=swap">
   ---------------------------- */

/* ---------- Tokens ---------- */
:root {
  --cream: #F2EBE0;
  --cream-2: #F7F4F0;
  --white: #FFFFFF;
  --espresso: #3A2820;
  --esp-2: #6B4F3A;
  --esp-3: #765947;      /* muted text, AA on cream and white */
  --esp-deco: #9E7E6A;   /* decoration only, never text */
  --espresso-hover: #2B1C16;
  --line: #DDD5C8;
  --sage: #B8C9A3;
  --sage-soft: #D9E2CD;
  --powder: #A8D4D8;     /* band-powder border + accents */
  --powder-soft: #D5EAEC;
  --lime: #CDDF4A;
  --lime-deep: #B9CB36;
  --pink: #D49EC8;
  --error: #B5473A;
  --error-bg: #FBEFEC;
  --ok: #5F8A4E;

  --font-d: "Bricolage Grotesque", "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-b: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;

  --h1: clamp(40px, 5.2vw, 68px);
  --h2: clamp(32px, 3.6vw, 48px);
  --h3: clamp(22px, 2vw, 28px);
  --body: 18px;
  --body-s: 16px;
  --label: 13px;

  --r-card: 20px;
  --r-input: 12px;
  --r-pill: 999px;
  --shadow: 0 8px 24px rgba(58, 40, 32, 0.08);
  --shadow-lg: 0 16px 40px rgba(58, 40, 32, 0.12);

  --container: 1200px;
  --pad-x: 24px;
  --sec: 96px;
  --nav-h: 76px;
}

@media (max-width: 768px) {
  :root { --sec: 64px; --body: 17px; --nav-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-b);
  font-size: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-d); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--espresso); outline-offset: 3px; border-radius: 4px; }
.band-dark :focus-visible { outline-color: var(--lime); }
::selection { background: var(--sage); color: var(--espresso); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.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; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--esp-2);
  margin-bottom: 16px;
}
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--esp-2); max-width: 58ch; }
.sub { font-size: var(--body); color: var(--esp-2); max-width: 60ch; }
.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head.center .sub, .sec-head.center .lead { margin-left: auto; margin-right: auto; }
.sec-head h2 + .sub, .sec-head h2 + .lead { margin-top: 16px; }
.num { font-family: var(--font-d); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Marker underline: the single emphasis device */
.mark { position: relative; white-space: nowrap; }
.mark svg {
  position: absolute;
  left: -2%;
  bottom: -0.08em;
  width: 104%;
  height: 0.32em;
  z-index: -1;
  overflow: visible;
}
.mark svg path { fill: none; stroke: var(--lime); stroke-width: 11; stroke-linecap: round; }
h1 .mark { z-index: 0; }
@media (max-width: 640px) { .mark { white-space: normal; } .mark svg { display: none; } .mark { box-shadow: inset 0 -0.28em 0 0 var(--lime); } }

/* ---------- Bands ---------- */
.band { padding: var(--sec) 0; }
.band-cream { background: var(--cream); }
.band-white { background: var(--white); }
.band-sage { background: var(--sage-soft); }
.band-powder { background: var(--powder-soft); border-top: 1px solid var(--powder); border-bottom: 1px solid var(--powder); }
.band-flush-top { padding-top: 0; }
.band-dark { background: var(--espresso); color: var(--cream); }
.band-dark .eyebrow { color: var(--sage); }
.band-dark .sub, .band-dark .lead { color: rgba(242, 235, 224, 0.78); }
.band-dark a:not(.btn) { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.band-dark a:not(.btn):hover { color: var(--lime); }
p a, .compliance a, .form-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: var(--body-s);
  line-height: 1;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-lime { background: var(--lime); color: var(--espresso); }
.btn-lime:hover { background: var(--lime-deep); }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { background: var(--espresso-hover); }
.btn-outline { background: transparent; border-color: var(--espresso); color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--espresso); }
.btn-light:hover { background: var(--white); }
.btn-sm { min-height: 44px; padding: 11px 20px; font-size: 15px; }
.btn-lg { min-height: 60px; padding: 18px 36px; font-size: 18px; }
.btn-block { width: 100%; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--espresso);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--espresso);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.chip:hover { background: var(--white); }
.chip.selected, .chip[aria-pressed="true"] { background: var(--espresso); color: var(--cream); }
.chip-pink { border-color: var(--pink); background: var(--pink); color: var(--espresso); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 32px;
}
.card-tint { background: var(--cream-2); }
.card-flat { box-shadow: none; }

/* ---------- Photo block ---------- */
.photo { border-radius: var(--r-card); overflow: hidden; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-3x2 { aspect-ratio: 3 / 2; }
.photo-4x5 { aspect-ratio: 4 / 5; }
.photo-1x1 { aspect-ratio: 1 / 1; }
.photo-16x9 { aspect-ratio: 16 / 9; }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 700; color: var(--espresso); }
.field .hint { font-size: 14px; color: var(--esp-3); }
.input, .select, .textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-input);
  color: var(--espresso);
  font-size: var(--body-s);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder { color: var(--esp-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 4px var(--sage-soft); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--error); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--espresso);
  border-bottom: 2px solid var(--espresso);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select { padding-right: 44px; }
.field-err { display: none; font-size: 14px; color: var(--error); font-weight: 500; }
.field.invalid .field-err, .input[aria-invalid="true"] ~ .field-err { display: block; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 6px 0; font-size: 15px; color: var(--esp-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--espresso); flex: 0 0 auto; }
.alert { padding: 14px 16px; border-radius: var(--r-input); background: var(--error-bg); color: var(--error); font-weight: 500; font-size: 15px; border: 1px solid rgba(181, 71, 58, 0.25); }

/* Range slider */
.range { position: relative; height: 44px; display: flex; align-items: center; }
.range input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.range-track { position: relative; width: 100%; height: 6px; border-radius: 3px; background: var(--line); overflow: visible; }
.range-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 3px; background: var(--espresso); width: 0; }
.range-thumb {
  position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--espresso); transform: translate(-50%, -50%);
  box-shadow: var(--shadow); pointer-events: none;
}
.range:focus-within .range-thumb { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--espresso); }
.range-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--esp-3); font-weight: 500; margin-top: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(58, 40, 32, 0.06); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo { min-width: 0; flex: 0 1 auto; }
.nav-logo img, .nav-mark { height: 32px; width: auto; flex: 0 0 auto; }
.nav-wordmark { overflow: hidden; text-overflow: ellipsis; }
.hamburger { flex: 0 0 auto; }
.footer-logo { height: 64px; width: auto; margin-bottom: 6px; }
.apply-photo { max-width: 420px; }
.faq-photo { max-width: 420px; }
@media (max-width: 900px) { .apply-photo, .faq-photo { max-width: none; } }
.nav-wordmark { font-family: var(--font-d); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; }
.nav-phone { white-space: nowrap; }
@media (max-width: 480px) { .nav-wordmark { font-size: 17px; } .nav-logo img, .nav-mark { height: 26px; } .nav-logo { gap: 8px; } }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { font-size: 16px; font-weight: 500; color: var(--espresso); padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 0.15s ease; }
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { border-bottom-color: var(--espresso); }
.nav-links a.nav-contact { font-weight: 700; }
.hamburger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--espresso); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad-x) 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { width: 100%; margin-top: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: auto 1fr; gap: 24px 56px; align-items: stretch; }
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-widget-wrap { grid-column: 1; grid-row: 2; }
.hero-photo { grid-column: 2; grid-row: 1 / 3; }
.hero-grid > * { min-width: 0; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { margin-bottom: 28px; }
.hero-widget { padding: 24px 28px 28px; }
.hero-widget .label { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.hero-widget .amount { font-size: clamp(34px, 3.2vw, 44px); line-height: 1.1; margin-bottom: 8px; }
.hero-widget .amount.bump { animation: bump 0.15s ease; }
@keyframes bump { 50% { transform: scale(1.04); } }
.hero-widget .range { margin-bottom: 6px; }
.hero-widget .btn { margin-top: 16px; }
.hero-trust { margin-top: 14px; font-size: 14px; color: var(--esp-3); font-weight: 500; }
.hero-paths { margin-top: 20px; }
.hero-photo { position: relative; }
.hero-photo .photo { box-shadow: var(--shadow-lg); }
@media (min-width: 901px) { .hero-photo .photo { aspect-ratio: auto; height: 100%; min-height: 560px; } }
.hero-float { position: absolute; left: -28px; bottom: 36px; max-width: 330px; display: flex; gap: 14px; align-items: center; padding: 14px 18px 14px 14px; margin: 0; }
.hero-float img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.hero-float figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.35; }
.hero-float strong { font-weight: 700; }
.hero-float span { font-size: 12px; color: var(--esp-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 900px) { .hero-float { display: none; } }
@media (max-width: 900px) {
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 24px; }
  .hero-copy, .hero-widget-wrap, .hero-photo { grid-column: 1; grid-row: auto; }
  .hero-copy { order: 1; }
  .hero-photo { order: 2; }
  .hero-widget-wrap { order: 3; }
}

/* ---------- Proof strip ---------- */
.proof { padding: 48px 0 0; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proof-card { padding: 24px 24px 22px; }
.proof-card .num { font-size: clamp(30px, 2.6vw, 38px); line-height: 1; margin-bottom: 8px; }
.proof-card .lbl { font-size: 15px; color: var(--esp-2); font-weight: 500; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Calculator ---------- */
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.calc-card { padding: 24px; }
.calc-card .step { font-size: var(--label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--esp-3); margin-bottom: 6px; }
.calc-card .q { font-family: var(--font-d); font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.calc-card.answered .q::after { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); margin-left: 10px; vertical-align: middle; }
.calc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-opt { min-height: 44px; padding: 10px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--white); font-size: 15px; font-weight: 500; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.calc-opt:hover { border-color: var(--espresso); }
.calc-opt.selected { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.calc-result { margin-top: 24px; display: none; }
.calc-result.visible { display: block; }
.calc-result-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.calc-result .eyebrow { margin-bottom: 6px; }
.calc-result .amount { font-size: clamp(32px, 3vw, 44px); line-height: 1.05; }
.calc-result .desc { color: var(--esp-2); margin-top: 6px; }
.calc-disclaimer { margin-top: 16px; font-size: 14px; color: var(--esp-3); }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }

/* ---------- Programs ---------- */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.svc-card .svc-photo { margin: -28px -28px 6px; overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; aspect-ratio: 3 / 2; }
.svc-card .svc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-card .step { font-size: var(--label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--esp-3); }
.svc-card h3 { font-size: 24px; }
.svc-card .aka { font-size: 14px; color: var(--esp-3); }
.svc-card .svc-desc { color: var(--esp-2); font-size: var(--body-s); }
.svc-card .svc-foot { margin-top: auto; padding-top: 8px; }
.svc-card.special { background: var(--sage-soft); border-color: var(--sage); }
@media (max-width: 1000px) { .programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .programs-grid { grid-template-columns: 1fr; } }

/* ---------- Callback strip ---------- */
.callback { display: grid; grid-template-columns: 1.1fr 2fr auto; gap: 20px; align-items: center; padding: 28px 32px; }
.callback h3 { font-size: 24px; }
.callback .sub { font-size: 15px; margin-top: 4px; }
.callback-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1000px) { .callback { grid-template-columns: 1fr; } .callback .btn { width: 100%; } }
@media (max-width: 640px) { .callback-fields { grid-template-columns: 1fr; } }

/* ---------- Lead form ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.form-layout > *, .lead-form > *, .callback > *, .process-grid > *, .why-grid > *, .faq-layout > * { min-width: 0; }
.promise-list { display: grid; gap: 14px; margin-top: 28px; }
.promise-item { display: flex; gap: 12px; align-items: flex-start; font-size: var(--body-s); color: var(--esp-2); }
.promise-item::before { content: ""; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--espresso); margin-top: 1px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12.5l3 3 7-7' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12.5l3 3 7-7' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form .full { grid-column: 1 / -1; }
.lead-form .form-note { grid-column: 1 / -1; font-size: 13px; color: var(--esp-3); line-height: 1.5; }
.lead-form .form-same-day { grid-column: 1 / -1; font-size: 15px; color: var(--esp-2); font-weight: 500; }
.lead-form .btn { grid-column: 1 / -1; }
.status-line { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--esp-2); margin-bottom: 16px; }
.status-line::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .lead-form { grid-template-columns: 1fr; } }

/* ---------- Case studies ---------- */
.case-list { display: grid; gap: 24px; }
.case-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; overflow: hidden; padding: 0; }
.case-row .photo { border-radius: 0; height: 100%; min-height: 320px; }
.case-body { padding: 36px 40px; display: flex; flex-direction: column; gap: 14px; }
.case-body h3 { font-size: 26px; }
.case-body .story { color: var(--esp-2); }
.case-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 6px; }
.case-stat .num { font-size: 26px; line-height: 1.1; }
.case-stat .lbl { font-size: 13px; color: var(--esp-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.case-note { font-size: 13px; color: var(--esp-3); margin-top: 20px; }
.case-note-top { margin: 0 0 20px; }
@media (max-width: 800px) { .case-row { grid-template-columns: 1fr; } .case-row .photo { aspect-ratio: 3 / 2; min-height: 0; } .case-body { padding: 24px; } }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.steps { display: grid; gap: 20px; counter-reset: step; }
.step-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.step-n { width: 48px; height: 48px; border-radius: 50%; background: var(--espresso); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 800; font-size: 20px; }
.step-item h3 { font-size: 22px; margin-bottom: 6px; }
.step-item p { color: var(--esp-2); font-size: var(--body-s); }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why-list { display: grid; gap: 8px; }
.why-item { padding: 22px 24px; }
.why-item h3 { font-size: 20px; margin-bottom: 6px; }
.why-item p { color: var(--esp-2); font-size: var(--body-s); }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.testi-card .photo { width: 72px; height: 72px; border-radius: 50%; }
.testi-card .photo.square { border-radius: 16px; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.testi-quote { font-size: 17px; color: var(--espresso); line-height: 1.5; }
.testi-who { font-size: 14px; color: var(--esp-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ----------
   Markup contract: .faq-q is a <button aria-expanded aria-controls>, .faq-a has an id and
   the JS toggles .open on .faq-item plus aria-expanded, and sets the inert attribute on .faq-a when closed. */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 4px; }
.faq-item { border-top: 1px solid rgba(242, 235, 224, 0.18); }
.faq-item:last-child { border-bottom: 1px solid rgba(242, 235, 224, 0.18); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; text-align: left; font-family: var(--font-d); font-weight: 800; font-size: 19px; color: var(--cream); }
.faq-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--sage); display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; color: var(--sage); transition: transform 0.2s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; color: rgba(242, 235, 224, 0.8); font-size: var(--body-s); line-height: 1.6; }
.faq-item.open .faq-a-inner { padding-bottom: 22px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 24px; } }
/* FAQ on a light band */
.faq-light .faq-item, .faq-light .faq-item:last-child { border-color: var(--line); }
.faq-light .faq-q { color: var(--espresso); }
.faq-light .faq-icon { border-color: var(--espresso); color: var(--espresso); }
.faq-light .faq-a-inner { color: var(--esp-2); }
.thankyou-box { padding: 8px 0; }

/* ---------- Compliance + footer ---------- */
.compliance { font-size: 13px; line-height: 1.6; color: rgba(242, 235, 224, 0.6); max-width: 90ch; }
.footer { padding: 40px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(242, 235, 224, 0.15); }
.footer-title { font-size: var(--label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; }
.band-dark .footer-links a, .footer-links a { color: var(--cream); font-size: 15px; text-decoration: none; }
.band-dark .footer-links a:hover, .footer-links a:hover { color: var(--lime); }
.footer-tag { color: rgba(242, 235, 224, 0.7); font-size: 15px; max-width: 36ch; margin-top: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: 13px; color: rgba(242, 235, 224, 0.7); }
.band-dark .footer-bottom a, .footer-bottom a { color: var(--cream); margin-left: 16px; text-decoration: underline; text-underline-offset: 3px; }
.band-dark .footer-bottom a:hover, .footer-bottom a:hover { color: var(--lime); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--espresso); z-index: 60; }
.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-lg);
}
.float-cta.visible { opacity: 1; transform: none; pointer-events: auto; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; } .reveal.d5 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
.stack-8 > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.text-center { text-align: center; }
.hide-mobile { } .show-mobile { display: none; }
@media (max-width: 768px) { .hide-mobile { display: none; } .show-mobile { display: block; } }
