/* =========================================================================
   DebtFid — Global Design System
   -------------------------------------------------------------------------
   Palette source: sampled directly from the supplied brand asset
   (https://debtfid.com/wp-content/uploads/2026/10/Debtfid-Logo.webp, 1200x300).
   Sampled ramps:
     Blues  #001C5D  #002D7F  #0051BC
     Greens #08813B  #45AC11  #63BD04
   No colour in this file is invented; all brand hues are traceable to the asset.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — blue ramp (sampled from logo) */
  --blue-950: #001440;
  --blue-900: #001c5d;
  --blue-800: #002d7f; /* PRIMARY */
  --blue-700: #003d9e;
  --blue-600: #0051bc;
  --blue-200: #cddcf5;
  --blue-100: #e8eefa;
  --blue-050: #f4f7fd;

  /* Brand — green ramp (sampled from logo) */
  --green-800: #066b31;
  --green-700: #08813b; /* ACCENT */
  --green-500: #45ac11; /* bright accent — non-text use only */
  --green-400: #63bd04;
  --green-100: #e9f6e4;
  --green-050: #f2faee;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #fbfbf9;
  --grey-050: #f5f7fa;
  --grey-100: #edf1f6;
  --grey-200: #dfe5ed;
  --grey-300: #c7d0dc;
  --grey-500: #6b7a90;
  --ink: #0a1a38;
  --ink-2: #33415c;
  --ink-3: #55637a;

  /* Semantic surface + text */
  --bg: var(--white);
  --bg-alt: var(--grey-050);
  --bg-warm: var(--off-white);
  --surface: var(--white);
  --border: #e3e9f1;
  --border-strong: var(--grey-300);
  --text: var(--ink);
  --text-muted: var(--ink-2);
  --text-subtle: var(--ink-3);

  /* States */
  --link: var(--blue-800);
  --link-hover: var(--blue-700);
  --focus-ring: #0b62d6;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: var(--green-700);
  --success-bg: var(--green-050);
  --notice-bg: #fff8e6;
  --notice-border: #f0d9a0;
  --notice-text: #6b4a00;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.0625rem;   /* 17 */
  --fs-lg: 1.1875rem;   /* 19 */
  --fs-xl: 1.5rem;      /* 24 */
  --fs-2xl: 1.875rem;   /* 30 */
  --fs-3xl: 2.375rem;   /* 38 */
  --fs-4xl: 3rem;       /* 48 */
  --fs-5xl: 3.5rem;     /* 56 */

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  --ls-tight: -0.02em;
  --ls-wide: 0.08em;

  /* Spacing scale (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --container: 1180px;
  --container-narrow: 780px;
  --container-wide: 1320px;
  --gutter: 1.25rem;
  --header-h: 72px;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 26, 56, 0.06);
  --shadow-sm: 0 1px 3px rgba(10, 26, 56, 0.07), 0 1px 2px rgba(10, 26, 56, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 26, 56, 0.08), 0 1px 3px rgba(10, 26, 56, 0.05);
  --shadow-lg: 0 12px 32px rgba(10, 26, 56, 0.1), 0 2px 8px rgba(10, 26, 56, 0.05);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;

  --z-header: 100;
  --z-menu: 90;
  --z-skip: 200;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--link-hover); }

button, input, select, textarea { font: inherit; color: inherit; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--sp-8) 0;
}

::selection { background: var(--blue-200); color: var(--blue-950); }

/* ---------- 3. Focus + a11y utilities ---------- */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: var(--z-skip);
  background: var(--blue-800);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--sp-16); }
.section--lg { padding-block: var(--sp-20); }
.section--sm { padding-block: var(--sp-12); }
.section--alt { background: var(--bg-alt); }
.section--warm { background: var(--bg-warm); }
.section--navy {
  background: var(--blue-900);
  color: #dbe5f6;
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: #9fc3ff; }
.section--bordered { border-top: 1px solid var(--border); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-8); }

.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--sp-12);
  align-items: start;
}

.section-head { max-width: 720px; margin-bottom: var(--sp-10); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--fs-lg); color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: var(--sp-3);
}
.section--navy .eyebrow { color: #7fd39b; }

.lede { font-size: var(--fs-lg); color: var(--text-muted); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"],
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--primary {
  background: var(--blue-800);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--blue-700); color: var(--white); box-shadow: var(--shadow-md); }

.btn--accent { background: var(--green-700); color: var(--white); }
.btn--accent:hover { background: var(--green-800); color: var(--white); }

.btn--secondary {
  background: var(--white);
  color: var(--blue-800);
  border-color: var(--blue-200);
}
.btn--secondary:hover { background: var(--blue-050); border-color: var(--blue-600); color: var(--blue-900); }

.btn--ghost { background: transparent; color: var(--blue-800); border-color: transparent; }
.btn--ghost:hover { background: var(--blue-050); color: var(--blue-900); }

.btn--on-dark {
  background: var(--white);
  color: var(--blue-900);
}
.btn--on-dark:hover { background: var(--blue-050); color: var(--blue-900); }

.btn--outline-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--outline-dark:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: #fff; }

.btn--sm { min-height: 42px; padding: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  text-decoration: none;
  color: var(--blue-800);
}
.link-arrow svg { transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}
.brand__logo {
  width: auto;
  height: 38px;
  object-fit: contain;
}
.brand__fallback {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__wordmark {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: var(--ls-tight);
  color: var(--blue-800);
}
.brand__wordmark em { color: var(--green-700); font-style: normal; }
.brand__tagline {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--blue-800); background: var(--blue-050); }
.nav__link[aria-current="page"] { color: var(--blue-800); font-weight: 700; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  height: 2px;
  width: 18px;
  background: var(--green-500);
  border-radius: 2px;
}
.nav__list > li > .nav__link { position: relative; }

/* The Services trigger is a real <button> so aria-expanded is valid. */
.nav__link--button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-base);
  font-weight: 550;
  font-family: inherit;
  color: var(--ink-2);
}
.nav__link--button.is-active { color: var(--blue-800); font-weight: 700; }
.nav__link--button.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  height: 2px;
  width: 18px;
  background: var(--green-500);
  border-radius: 2px;
}

.nav__caret { transition: transform var(--dur) var(--ease); }
.nav__item--has-menu { position: relative; }
.nav__item--has-menu[data-open="true"] .nav__caret { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  padding: var(--sp-3);
  margin: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur);
}
.nav__item--has-menu[data-open="true"] .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__menu li { margin: 0; }
.nav__menu-link {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-base);
}
.nav__menu-link:hover { background: var(--blue-050); color: var(--blue-800); }
.nav__menu-link span {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 450;
  color: var(--text-subtle);
  margin-top: 2px;
  line-height: 1.4;
}

.nav__toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.nav__toggle-bars { position: relative; width: 18px; height: 12px; }
.nav__toggle-bars span {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav__toggle-bars span:nth-child(1) { top: 0; }
.nav__toggle-bars span:nth-child(2) { top: 5px; }
.nav__toggle-bars span:nth-child(3) { top: 10px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.header-cta { display: inline-flex; }
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-050) 0%, var(--white) 72%);
  padding-block: var(--sp-20) var(--sp-16);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--sp-16);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, var(--fs-5xl));
  margin-bottom: var(--sp-6);
  max-width: 20ch;
}
.hero__lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: var(--sp-8);
}
.hero__note {
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-subtle);
  max-width: 52ch;
}
.hero__visual { position: relative; }

.brand-mark-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-inline: auto;
  border-radius: 28px;
  background:
    radial-gradient(120% 100% at 12% 8%, rgba(0, 81, 188, 0.14) 0%, rgba(0, 81, 188, 0) 62%),
    radial-gradient(110% 110% at 92% 96%, rgba(8, 129, 59, 0.16) 0%, rgba(8, 129, 59, 0) 60%),
    var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  padding: var(--sp-8);
}
.brand-mark-art__logo {
  width: 82%;
  height: auto;
  object-fit: contain;
}
.brand-mark-art__ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed var(--blue-200);
}
.brand-mark-art__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__photo {
  margin: 0 auto;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 3 / 2;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}
.hero__pill--one { top: 4%; left: -4%; }
.hero__pill--two { bottom: 6%; right: -6%; }
.hero__pill svg { color: var(--green-700); flex-shrink: 0; }

/* ---------- 8. Cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.card--interactive:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card--blue {
  background: var(--green-050);
  border-color: var(--green-200);
}
.card--blue .icon-badge {
  background: var(--white);
  border: 1px solid var(--green-100);
}
.card--green {
  background: var(--green-050);
  border-color: var(--green-200);
}
.card--green .icon-badge {
  background: var(--white);
  border: 1px solid var(--green-100);
}
.card h3, .card h4 { margin-bottom: var(--sp-1); font-size: var(--fs-lg); }
.card p { color: var(--text-muted); font-size: var(--fs-base); }
.card__link { margin-top: auto; padding-top: var(--sp-2); }
.card__meta {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--blue-050);
  color: var(--blue-800);
  flex-shrink: 0;
}
.icon-badge--green { background: var(--green-050); color: var(--green-700); }
.icon-badge--lg { width: 56px; height: 56px; border-radius: var(--r-lg); }

.card__head { display: flex; align-items: center; gap: var(--sp-4); }
.card__head h3, .card__head h2 { margin-bottom: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 3px var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--blue-050);
  color: var(--blue-800);
  border: 1px solid var(--blue-200);
}
.tag--green { background: var(--green-050); color: var(--green-800); border-color: #bfe3b4; }
.tag--amber { background: var(--notice-bg); color: var(--notice-text); border-color: var(--notice-border); }
.tag--grey { background: var(--grey-100); color: var(--ink-2); border-color: var(--border-strong); }

/* ---------- 9. Steps / process ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-6);
}
.step {
  position: relative;
  padding-top: var(--sp-4);
  border-top: 3px solid var(--blue-100);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: var(--sp-4);
  border-radius: 50%;
  background: var(--blue-800);
  color: var(--white);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p { color: var(--text-muted); font-size: var(--fs-base); }

.steps--numbered-big .step { border-top-color: var(--green-500); }
.steps--numbered-big .step::before { background: var(--green-700); }

/* ---------- 10. Feature / trust list ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-base);
}
.check-list li > svg { flex-shrink: 0; margin-top: 4px; color: var(--green-700); }
.check-list li strong { color: var(--ink); }

.bullet-list { list-style: none; margin: 0; padding: 0; }
.bullet-list li {
  position: relative;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-3);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

/* ---------- 11. FAQ / accordion ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-2) 0;
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  cursor: pointer;
  font-weight: 650;
  font-size: var(--fs-lg);
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-right: 2px solid var(--blue-800);
  border-bottom: 2px solid var(--blue-800);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq details[open] summary { color: var(--blue-800); }
.faq__answer { padding: 0 0 var(--sp-5); color: var(--text-muted); max-width: 74ch; }
.faq__answer > * + * { margin-top: var(--sp-3); }

/* ---------- 12. Breadcrumbs ---------- */
.breadcrumbs { padding-block: var(--sp-4); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-sm);
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-800); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.breadcrumbs__sep { color: var(--grey-300); }

/* ---------- 13. Page hero (inner pages) ---------- */
.page-hero {
  padding-block: var(--sp-12) var(--sp-10);
  background: linear-gradient(180deg, var(--blue-050) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.875rem, 1.3rem + 1.8vw, var(--fs-3xl)); max-width: 24ch; }
.page-hero .lede { max-width: 62ch; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }

/* ---------- 14. Prose (articles + legal) ---------- */
.prose { font-size: var(--fs-md); color: var(--text-muted); }
.prose h2 {
  font-size: var(--fs-2xl);
  color: var(--ink);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.prose h3 { font-size: var(--fs-xl); color: var(--ink); margin-top: var(--sp-8); }
.prose h4 { font-size: var(--fs-lg); color: var(--ink); margin-top: var(--sp-6); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: var(--sp-6); }
.prose li { margin-bottom: var(--sp-3); }
.prose strong { color: var(--ink); }
.prose > p:first-of-type { font-size: var(--fs-lg); }

.table-wrap { overflow-x: auto; margin-block: var(--sp-6); border: 1px solid var(--border); border-radius: var(--r-md); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-base); min-width: 480px; }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--grey-050); font-weight: 700; color: var(--ink); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.03em; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- 15. Callouts / notices ---------- */
.callout {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-md);
  border: 1px solid var(--blue-200);
  background: var(--blue-050);
  margin-block: var(--sp-6);
  font-size: var(--fs-base);
}
.callout > svg { flex-shrink: 0; margin-top: 2px; color: var(--blue-800); }
.callout p:last-child { margin-bottom: 0; }
.callout__title { display: block; font-weight: 700; color: var(--ink); margin-bottom: var(--sp-1); }
.callout--notice { background: var(--notice-bg); border-color: var(--notice-border); }
.callout--notice > svg { color: #a5761b; }
.callout--notice .callout__title { color: var(--notice-text); }
.callout--warn { background: var(--danger-bg); border-color: #f5c9c4; }
.callout--warn > svg { color: var(--danger); }
.callout--warn .callout__title { color: var(--danger); }
.callout--tip { background: var(--green-050); border-color: #bfe3b4; }
.callout--tip > svg { color: var(--green-700); }

.disclaimer {
  padding: var(--sp-5) var(--sp-6);
  background: var(--grey-050);
  border: 1px solid var(--border);
  border-left: 3px solid var(--grey-300);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-subtle);
  margin-top: var(--sp-8);
}
.disclaimer strong { color: var(--ink-2); }

/* ---------- 16. Forms ---------- */
.form { display: grid; gap: var(--sp-5); }
.form-row { display: grid; gap: var(--sp-5); }
.form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label, .fieldset__legend {
  font-weight: 650;
  font-size: var(--fs-base);
  color: var(--ink);
}
.field .hint { font-size: var(--fs-sm); color: var(--text-subtle); }
.field .req { color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 130px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--grey-500); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--blue-600); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0, 81, 188, 0.18);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2333415c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-10);
}

.field[data-invalid="true"] .input,
.field[data-invalid="true"] .select,
.field[data-invalid="true"] .textarea { border-color: var(--danger); }

.field__error {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--danger);
}
.field[data-invalid="true"] .field__error { display: flex; }

.checkbox {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-base);
  color: var(--text-muted);
}
.checkbox input {
  width: 20px; height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue-800);
}

.form-status {
  display: none;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  border: 1px solid;
}
.form-status[data-state]:not([data-state="idle"]) { display: flex; }
.form-status[data-state="pending"] { background: var(--notice-bg); border-color: var(--notice-border); color: var(--notice-text); }
.form-status[data-state="error"] { background: var(--danger-bg); border-color: #f5c9c4; color: var(--danger); }
.form-status[data-state="success"] { background: var(--success-bg); border-color: #bfe3b4; color: var(--green-800); }
.form-status strong { display: block; margin-bottom: 2px; }

.form__submit { align-items: center; }
.form__submit .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 17. Contact helpers ---------- */
.contact-card {
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.contact-card h3 { font-size: var(--fs-lg); }
.contact-list { list-style: none; margin: 0; padding: 0; font-size: var(--fs-base); }
.contact-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { flex-shrink: 0; margin-top: 3px; color: var(--blue-800); }
.contact-list dt, .contact-list .label { font-weight: 650; color: var(--ink); display: block; }
.contact-list .value { color: var(--text-muted); }
.pending-flag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--notice-text);
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: var(--r-pill);
  padding: 2px var(--sp-3);
  white-space: nowrap;
}

/* ---------- 18. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 58%, #0a5a3a 100%);
  color: #e3ecfa;
  border-radius: var(--r-xl);
  padding: var(--sp-12) var(--sp-10);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); }
.cta-band p { color: #cddcf5; max-width: 62ch; }
.cta-band__inner { position: relative; z-index: 1; max-width: 780px; }
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 172, 17, 0.28) 0%, rgba(69, 172, 17, 0) 70%);
}

/* ---------- 19. Footer ---------- */
.site-footer {
  background: var(--blue-950);
  color: #b9c8e2;
  font-size: var(--fs-sm);
  padding-block: var(--sp-16) var(--sp-8);
  margin-top: 0;
}
.site-footer a { color: #b9c8e2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer h2, .site-footer h3 { color: var(--white); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--ls-wide); margin-bottom: var(--sp-4); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-10);
}
.footer__brand .brand__logo {
  box-sizing: content-box;
  height: 42px;
  width: auto;
  margin-bottom: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--white);
  border-radius: var(--r-md);
  filter: none;
}
.footer__about { max-width: 42ch; color: #9fb2d1; line-height: var(--lh-relaxed); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: var(--sp-3); }
.footer__bottom {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  color: #8ea3c6;
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer__disclosure {
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: #8ea3c6;
  line-height: var(--lh-relaxed);
  max-width: 90ch;
}

/* ---------- 20. 404 ---------- */
.error-page { padding-block: var(--sp-24); text-align: center; }
.error-page__code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--blue-800), var(--green-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-4);
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .hero__visual { order: -1; max-width: 420px; margin-inline: auto; }
  .hero__pill--one { left: 0; }
  .hero__pill--two { right: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--sidebar { grid-template-columns: 1fr; gap: var(--sp-10); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* `backdrop-filter` on the header would make it a containing block for the
     fixed-position mobile drawer, collapsing its height. Neutralise it here. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--white);
  }

  .nav__toggle { display: inline-flex; }
  .header-cta { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: var(--z-menu);
    display: block;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: var(--sp-6) var(--gutter) var(--sp-16);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
      visibility var(--dur);
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: var(--sp-1); }
  .nav__list > li { border-bottom: 1px solid var(--border); }
  .nav__link { width: 100%; justify-content: space-between; min-height: 52px; padding-inline: var(--sp-2); font-size: var(--fs-lg); }
  .nav__link[aria-current="page"]::after { display: none; }

  .nav__menu {
    position: static;
    min-width: 0;
    padding: 0 0 var(--sp-4) var(--sp-2);
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav__item--has-menu[data-open="true"] .nav__menu { display: block; }
  .nav__menu-link { padding: var(--sp-3) var(--sp-4); }

  .nav__mobile-cta { margin-top: var(--sp-6); }
  .nav__mobile-cta .btn { width: 100%; }
}

@media (max-width: 720px) {
  :root { --gutter: 1.125rem; }
  body { font-size: var(--fs-base); }
  .section { padding-block: var(--sp-12); }
  .section--lg { padding-block: var(--sp-16); }
  .grid--2, .grid--3, .grid--4, .steps--grid { grid-template-columns: 1fr; }
  .form-row--2 { grid-template-columns: 1fr; }
  .card { padding: var(--sp-6); }
  .cta-band { padding: var(--sp-10) var(--sp-6); border-radius: var(--r-lg); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .page-hero { padding-block: var(--sp-10) var(--sp-8); }
  .hero { padding-block: var(--sp-12) var(--sp-12); }
  .btn-row .btn { width: 100%; }
}

@media (max-width: 420px) {
  .brand__logo { height: 32px; }
  .breadcrumbs ol { font-size: var(--fs-xs); }
  .hero__pill { font-size: var(--fs-xs); padding: 6px var(--sp-3); }
}

/* ---------- 22. Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .btn, .nav__toggle { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { text-decoration: underline; color: #000; }
  .section { padding-block: 1rem; }
}

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__visual, .brand-mark-art { animation: none !important; }
}

/* ---------- 24. Progressive enhancement: reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
