/* Layout: one column, 1120px frame, 62ch measure; white ground with brochure-style blue and red panels */

/* Self-hosted (SIL OFL), latin subset. No third-party font request, so no visitor data leaves
   the site and no cookies are set. Montserrat is one variable file covering 400-700. */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/montserrat-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Montserrat Alternates"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/montserrat-alternates-600.woff2) format("woff2");
}
@font-face {
  font-family: "Montserrat Alternates"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/montserrat-alternates-700.woff2) format("woff2");
}

:root {
  --red: #D91920;
  --red-deep: #AE1219;
  --blue: #3BB4E8;
  --blue-panel: #5CB9EB;
  --navy: #253C79;

  --ink: #253C79;
  --ink-soft: #4F5F94;
  --ink-faint: #5A6992;
  --paper: #FFFFFF;
  --raised: #FFFFFF;
  --band: #EFF6FC;
  --line: #D6E2F1;
  --field-line: #7F8DB3;   /* 3.3:1 on white: form borders must be visible (WCAG 1.4.11) */
  --blue-text: #0F6E9C;    /* brand blue darkened to 5.6:1 for numerals and small marks */
  --ok: #1E7A45;
  --ok-bg: #EAF7EF;
  --bad-bg: #FFF1F1;

  --red-text: #C9151C;
  --red-fill: #D91920;
  --panel-red-bg: #D91920;
  --panel-red-fg: #FFFFFF;
  --panel-blue-bg: #5CB9EB;
  --panel-blue-fg: #1C2F60;

  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D91920' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6l4.7 4.7L19.2 7'/%3E%3C/svg%3E");

  --shadow: 0 1px 2px rgba(37, 60, 121, .06), 0 10px 28px -14px rgba(37, 60, 121, .25);

  --display: "Montserrat Alternates", "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --frame: 1120px;
  --gutter: clamp(1rem, 4.5vw, 3.5rem);

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E4EAF8;
    --ink-soft: #AEBCD9;
    --ink-faint: #8E9CBF;
    --paper: #0F1830;
    --raised: #18233E;
    --band: #141E37;
    --line: #2B3959;
    --field-line: #6F80AB;
    --blue-text: #3BB4E8;
    --ok: #7FD3A0;
    --ok-bg: #152B2A;
    --bad-bg: #2E1622;

    --red-text: #FF767C;
    --red-fill: #D91920;
    --panel-red-bg: #951218;
    --panel-red-fg: #FFF2F2;
    --panel-blue-bg: #13304F;
    --panel-blue-fg: #D3E7F7;

    --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF767C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6l4.7 4.7L19.2 7'/%3E%3C/svg%3E");

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #E4EAF8;
  --ink-soft: #AEBCD9;
  --ink-faint: #8E9CBF;
  --paper: #0F1830;
  --raised: #18233E;
  --band: #141E37;
  --line: #2B3959;
  --field-line: #6F80AB;
  --blue-text: #3BB4E8;
  --ok: #7FD3A0;
  --ok-bg: #152B2A;
  --bad-bg: #2E1622;

  --red-text: #FF767C;
  --red-fill: #D91920;
  --panel-red-bg: #951218;
  --panel-red-fg: #FFF2F2;
  --panel-blue-bg: #13304F;
  --panel-blue-fg: #D3E7F7;

  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF767C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6l4.7 4.7L19.2 7'/%3E%3C/svg%3E");

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 48rem) { body { font-size: 1.0938rem; } }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--body);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.012em;
}

/* Montserrat Alternates is a display face: its curly E and N read poorly at small sizes,
   so it is kept to the two largest heading levels and the wordmark. */
h1 { font-family: var(--display); font-size: clamp(1.95rem, 5.4vw, 3.1rem); color: var(--ink); }
h2 { font-family: var(--display); font-size: clamp(1.45rem, 3.5vw, 2.05rem); color: var(--red-text); }
h3 { font-size: clamp(1.08rem, 1.9vw, 1.24rem); letter-spacing: -0.004em; color: var(--ink); }
p { margin: 0; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-text); }

:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; border-radius: 3px; }
/* The red ring disappears on the red panel, the blue panel and the footer */
.band--red :focus-visible, .band--blue :focus-visible, .foot :focus-visible, .callbar :focus-visible { outline-color: currentColor; }
.btn--primary:focus-visible { outline-color: var(--ink); }
.band--red .btn--primary:focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--frame); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 62ch; }
.stack { display: flex; flex-direction: column; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow {
  font-family: var(--body);
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.skip { position: absolute; left: -9999px; top: 0; background: var(--red-fill); color: #fff; padding: .7rem 1.1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- logo lockup ---------- */

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; min-width: 0; min-height: 4.5rem; }
.brand img { height: 2.75rem; width: auto; display: block; }
@media (max-width: 24rem) { .brand img { height: 2.4rem; } }
/* The lockup's red line drops to about 3:1 on the dark page, so it sits on a white tab */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { background: #fff; padding: .3rem .5rem; border-radius: 8px; box-sizing: content-box; } }
:root[data-theme="dark"] .brand img { background: #fff; padding: .3rem .5rem; border-radius: 8px; box-sizing: content-box; }

/* ---------- header ---------- */

.masthead {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; }

.navtoggle {
  display: none; appearance: none; background: transparent;
  border: 1.5px solid var(--field-line); border-radius: 10px;
  color: var(--ink); font: inherit; font-weight: 700;
  font-size: .95rem; padding: .5rem .9rem; min-height: 44px; cursor: pointer;
  align-items: center; gap: .55rem;
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
.navtoggle__bars::before { top: -6px; }
.navtoggle__bars::after { top: 6px; }
.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after { transition: none; } }

.nav { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft); text-decoration: none;
  font-weight: 600; font-size: .95rem;
  padding: .6rem .65rem; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { color: var(--red-text); background: var(--band); }
.nav a[aria-current="page"] { color: var(--red-text); background: var(--band); }

.navcall {
  margin-left: .4rem;
  background: var(--red-fill) !important;
  color: #fff !important;
  padding: .55rem .95rem !important;
  font-variant-numeric: tabular-nums;
}
.navcall:hover { background: var(--red-deep) !important; color: #fff !important; }
.navcall--compact {
  display: none; align-items: center; gap: .35rem; min-height: 44px;
  border-radius: 10px; text-decoration: none; font-weight: 700; font-size: .95rem;
}

@media (max-width: 64rem) {
  .navtoggle { display: inline-flex; }
  .navcall--compact { display: inline-flex; margin-left: 0; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .1rem; padding-bottom: .9rem;
         max-height: calc(100dvh - 4.5rem); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav a { padding: .65rem .7rem; font-size: 1rem; }
  .nav .navcall { margin-left: 0; text-align: center; margin-top: .45rem; }
}
/* Phones get the bottom call bar instead, which keeps the header on one row */
@media (max-width: 48rem) { .navcall--compact { display: none !important; } }
@media (max-width: 24rem) { .masthead__inner { gap: .5rem; } .navtoggle { padding: .5rem .7rem; } }

/* ---------- sections and panels ---------- */

section { padding-block: clamp(2.8rem, 6.5vw, 5rem); }
.band { background: var(--band); }

.band--blue { background: var(--panel-blue-bg); color: var(--panel-blue-fg); }
.band--blue h2, .band--blue h3 { color: var(--panel-blue-fg); }
.band--blue .eyebrow { color: var(--panel-blue-fg); }
.band--blue a { color: var(--panel-blue-fg); }
.band--blue p { color: var(--panel-blue-fg); }

.band--red { background: var(--panel-red-bg); color: var(--panel-red-fg); }
.band--red h2, .band--red h3 { color: var(--panel-red-fg); }
.band--red .eyebrow { color: var(--panel-red-fg); }
.band--red a { color: var(--panel-red-fg); }
.band--red p { color: var(--panel-red-fg); }

.sechead { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2.2rem; }
.sechead p.measure { color: var(--ink-soft); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.2rem, 4.5vw, 3.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 3.5rem); align-items: center; }
.hero__grid > *, .contact__grid > *, .grid > * { min-width: 0; }
@media (min-width: 62rem) { .hero__grid { grid-template-columns: 1.16fr .84fr; } }

.hero h1 { margin-top: .85rem; }
.hero__lead { margin-top: 1.2rem; font-size: clamp(1.03rem, 1.9vw, 1.18rem); color: var(--ink-soft); max-width: 46ch; }
.hero__rule { width: 3.5rem; height: 4px; background: var(--red-fill); border-radius: 2px; margin-top: 1.8rem; }

.ctarow { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero .ctarow .btn { padding-inline: 1.15rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.3; text-align: center;
  padding: .82rem 1.4rem; min-height: 48px; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
@media (max-width: 30rem) { .ctarow .btn { flex: 1 1 100%; } }

.btn--primary { background: var(--red-fill); color: #fff; }
.btn--primary:hover { background: var(--red-deep); color: #fff; }

.btn--ghost { background: transparent; border-color: var(--field-line); color: var(--ink); font-variant-numeric: tabular-nums; }
.btn--ghost:hover { border-color: var(--red-text); color: var(--red-text); }

.band--red .btn--primary { background: #fff; color: var(--red-deep); }
.band--red .btn--primary:hover { background: #FFE9E9; color: var(--red-deep); }
.band--blue .btn--ghost { border-color: currentColor; color: var(--panel-blue-fg); }
.band--blue .btn--primary { background: #fff; color: var(--red-deep); }
.band--blue .btn--primary:hover { background: #FFECEC; color: var(--red-deep); }

/* ---------- media ---------- */

.figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--band); line-height: 0; }
.figure picture { display: contents; }
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 62rem) { .figure--tall { aspect-ratio: 4 / 3; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .figure img { filter: brightness(.9); } }
:root[data-theme="dark"] .figure img { filter: brightness(.9); }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--hero img { object-position: center 30%; }
.figure--wide { aspect-ratio: 16 / 10; }
.figure--square { aspect-ratio: 1 / 1; }
.figure--hero { border-radius: 16px 16px 16px 72px; }

.figcap { font-size: .8rem; color: var(--ink-faint); margin-top: .6rem; line-height: 1.5; }

/* ---------- trust strip ---------- */

.trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  margin-top: 2.2rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: .89rem; color: var(--ink-soft);
}
.trust > span { display: block; }
.trust b { color: var(--ink); font-weight: 700; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red-fill); margin-right: .55rem; vertical-align: .18em; }

/* ---------- call card ---------- */

.callcard {
  background: var(--raised); border: 1.5px solid var(--line); border-radius: 16px;
  padding: clamp(1.35rem, 2.8vw, 1.9rem); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1rem;
}
.callcard__num {
  font-family: var(--display); font-size: clamp(1.6rem, 4vw, 1.95rem); font-weight: 700;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  color: var(--red-text); text-decoration: none; display: inline-block;
}
.callcard__num:hover { color: var(--red-deep); }

.copybtn {
  appearance: none; background: transparent; border: 1.5px solid var(--field-line); border-radius: 8px;
  color: var(--ink-soft); font: inherit; font-size: .9rem; font-weight: 600;
  padding: .4rem .8rem; min-height: 44px; cursor: pointer; white-space: nowrap;
}
.copybtn:hover { border-color: var(--red-text); color: var(--red-text); }
.copybtn[data-copied="yes"] { border-color: var(--red-text); color: var(--red-text); background: var(--band); }

.deflist { display: grid; gap: .8rem; margin: 0; }
.deflist > div { display: grid; grid-template-columns: 7.6rem 1fr; gap: .35rem 1rem; align-items: baseline; }
.deflist dt { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.deflist dd { margin: 0; min-width: 0; font-size: 1rem; overflow-wrap: anywhere; }
.callcard--sticky { position: sticky; top: 6rem; }
@media (max-width: 62rem) { .hero__aside { order: -1; } .callcard--sticky { position: static; } }
@media (max-width: 26rem) { .deflist > div { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */

.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
@media (min-width: 62rem) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--raised); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 1.45rem; display: flex; flex-direction: column; gap: .55rem; min-width: 0;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--red-text) 45%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
.card h3 { font-size: 1.12rem; }
.card--rn { background: color-mix(in srgb, var(--red-fill) 6%, var(--raised)); border-color: color-mix(in srgb, var(--red-text) 40%, var(--line)); }
.card__link { margin-top: auto; padding-top: .3rem; font-weight: 700; color: var(--red-text); }
.card__link::after { content: " \2192"; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card--lead { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); }

.card__tag {
  align-self: flex-start;
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--red-fill); padding: .24rem .55rem; border-radius: 5px;
}
.rank { font-size: .95rem; font-weight: 700; color: var(--blue-text); font-variant-numeric: tabular-nums; }

/* ---------- steps ---------- */

.steps { display: grid; gap: 1.6rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 52rem) { .steps--row { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.steps li::before {
  content: counter(step);
  font-size: 1rem; font-weight: 700;
  color: var(--paper); background: var(--blue-text);
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; flex: none;
}
.band--blue .steps li::before { background: var(--panel-blue-fg); color: var(--panel-blue-bg); }
.band--red .steps li::before { background: #fff; color: var(--red-deep); }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; }
.band--blue .steps p, .band--red .steps p { color: inherit; }

/* ---------- checks ---------- */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.checks li { display: grid; grid-template-columns: 1.35rem 1fr; gap: .75rem; align-items: start; }
.checks li::before {
  content: ""; width: 1.35rem; height: 1.35rem; margin-top: .22rem; border-radius: 50%;
  background-color: var(--band);
  border: 1.5px solid color-mix(in srgb, var(--red-text) 40%, transparent);
  background-image: var(--tick); background-size: 66% 66%; background-position: center; background-repeat: no-repeat;
}
.band--blue .checks li::before,
.band--red .checks li::before {
  background-color: rgba(255, 255, 255, .16);
  border-color: currentColor;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6l4.7 4.7L19.2 7'/%3E%3C/svg%3E");
}

/* ---------- chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chips li {
  border: 1.5px solid var(--line); background: var(--raised); border-radius: 999px;
  padding: .38rem .9rem; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
}
.band .chips li { background: var(--paper); }
.band--blue .chips li, .band--red .chips li { background: rgba(255,255,255,.14); border-color: currentColor; color: inherit; }

/* ---------- counties ---------- */

.regions { display: grid; gap: 1.7rem; }
@media (min-width: 42rem) { .regions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); } }
.region h3 { font-size: .98rem; color: var(--red-text); margin-bottom: .65rem; }
.region ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.region li { color: var(--ink-soft); font-size: .96rem; }

/* ---------- prose ---------- */

.prose { display: flex; flex-direction: column; gap: 1.05rem; max-width: 62ch; }
.prose h2 { margin-top: 1rem; }
.prose h3 { margin-top: .7rem; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 700; }
.band--blue .prose p, .band--red .prose p, .band--blue .prose strong, .band--red .prose strong { color: inherit; }

.pullquote {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.2rem, 2.7vw, 1.6rem); line-height: 1.28;
  text-wrap: balance; max-width: 22ch; margin: 0;
}

/* ---------- form ---------- */

.form { display: grid; gap: 1rem; max-width: 34rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label, .field legend { font-size: 1rem; font-weight: 700; color: var(--ink); }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: .45rem; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--raised);
  border: 1.5px solid var(--field-line); border-radius: 9px; padding: .72rem .85rem; min-height: 48px; width: 100%; min-width: 0;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-text); }
.field ::placeholder { color: var(--ink-faint); opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--red-text) !important; background: var(--bad-bg) !important; }
.field__error { color: var(--red-text); font-size: .95rem; font-weight: 600; }
.field__error::before { content: "! "; }
.field__note { font-size: .9rem; color: var(--ink-soft); }
.req { color: var(--red-text); }
.form__req { font-size: .95rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Big, tappable choice pills in place of small radio buttons and checkboxes */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills label { position: relative; cursor: pointer; font-weight: 500; }
.pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pills span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem;
  border: 1.5px solid var(--field-line); border-radius: 999px; background: var(--raised); color: var(--ink);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pills--small span { min-height: 40px; padding: .35rem .85rem; font-size: .95rem; }
.pills label:hover span { border-color: var(--red-text); }
.pills input:checked + span { background: var(--red-fill); border-color: var(--red-fill); color: #fff; font-weight: 700; }
.pills input:checked + span::before { content: "\2713"; margin-right: .4rem; }
.pills input:focus-visible + span { outline: 3px solid var(--red-text); outline-offset: 2px; }

.note {
  font-size: .95rem; color: var(--ink-soft); background: var(--band);
  border-left: 4px solid var(--blue); padding: .9rem 1.1rem; border-radius: 0 9px 9px 0;
}

.note--alert { border-left-color: var(--red-fill); background: var(--bad-bg); }
.note--alert p { color: var(--ink); }
.result {
  background: var(--raised); border: 2px solid var(--ok); border-radius: 14px; padding: 1.3rem;
  display: flex; flex-direction: column; gap: .9rem; box-shadow: var(--shadow);
}
.result:focus { outline: none; }
.result:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }
.result__h { font-size: 1.15rem; color: var(--ok); }
.result__tick { width: 1.15em; height: 1.15em; margin-right: .4rem; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.result--error { border-color: var(--red-text); }
.result--error .result__h { color: var(--red-text); }
.result--error .result__tick { display: none; }
.result--error .result__h::before { content: "! "; }
.result__hint { font-size: .95rem; color: var(--ink-soft); }
.result pre {
  margin: 0; font-family: var(--body); background: var(--band); border-radius: 10px; padding: .9rem 1rem;
  font-size: 1rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink);
}
.result__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- footer ---------- */

.foot { background: #1B2C5A; color: #C9D6EE; padding-block: clamp(2.6rem, 5.5vw, 3.8rem) 2rem; }
:root[data-theme="dark"] .foot { background: #0B1226; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #0B1226; } }
.foot a { color: #C9D6EE; overflow-wrap: anywhere; }
.foot a:hover { color: #fff; }
.foot__grid { display: grid; gap: 2.1rem; }
@media (min-width: 56rem) { .foot__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: 1rem; }
.foot ul a { display: inline-block; padding-block: .35rem; }
.foot__h { font-family: var(--body); font-size: .94rem; letter-spacing: .14em; text-transform: uppercase; color: #8FA6D4; font-weight: 700; margin-bottom: .6rem; }
.foot__brand { display: inline-block; background: #fff; padding: .7rem .9rem; border-radius: 12px; }
.foot__brand img { display: block; height: 3rem; width: auto; }
.foot__about { margin-top: 1rem; max-width: 36ch; }
.foot__contact { margin-top: 1.1rem; line-height: 2; }
.foot__muted { color: #93A6CC; }
.foot__legal {
  margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.4rem; font-size: 1rem; color: #93A6CC;
}
.foot__legal a { display: inline-block; padding-block: .7rem;
}

/* ---------- contact hero: heading, then phone card, then steps on small screens ---------- */

.contact__grid { display: grid; gap: clamp(1.6rem, 4vw, 2.4rem) clamp(2rem, 4.5vw, 3.5rem); }
@media (min-width: 62rem) {
  .contact__grid { grid-template-columns: 1.08fr .92fr; grid-template-areas: "intro card" "steps card"; align-items: start; }
  .contact__intro { grid-area: intro; }
  .contact__card { grid-area: card; position: sticky; top: 6rem; }
  .contact__steps { grid-area: steps; }
}
.contact__steps .hero__rule { margin-top: 0; }

a.email { overflow-wrap: anywhere; }

/* ---------- county checker ---------- */

.checker { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; max-width: 30rem; }
.checker label { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.checker__row { display: flex; gap: .5rem; }
.checker input {
  flex: 1; min-width: 0; width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--raised);
  border: 1.5px solid var(--field-line); border-radius: 10px; padding: .7rem .9rem; min-height: 48px;
}
.checker input:focus { border-color: var(--blue-text); }
.checker input::placeholder { color: var(--ink-faint); opacity: 1; }
.checker__out:empty { display: none; }
.checker__out { border-radius: 10px; padding: .75rem .95rem; font-size: 1rem; }
.checker__out.is-yes { background: var(--ok-bg); color: var(--ink); border-left: 4px solid var(--ok); }
.checker__out.is-yes strong { color: var(--ok); }
.checker__out.is-no { background: var(--band); color: var(--ink); border-left: 4px solid var(--blue-text); }
@media (prefers-reduced-motion: no-preference) { html:not(.motion) .checker__out:not(:empty) { animation: pop .25s ease-out; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- common questions ---------- */

.faq { display: grid; gap: .6rem; }
.faq__item { background: var(--raised); border: 1.5px solid var(--line); border-radius: 12px; }
.faq__item[open] { border-color: color-mix(in srgb, var(--red-text) 45%, var(--line)); }
.faq__item summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 1.05rem; color: var(--ink);
  padding: 1rem 3rem 1rem 1.15rem; position: relative; min-height: 44px; border-radius: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--band); color: var(--red-text); font-size: 1.25rem; line-height: 1;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--red-text); }
.faq__item p { padding: 0 1.15rem 1.1rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) { .faq__item[open] p { animation: pop .25s ease-out; } }

/* ---------- phone call bar (phones only) ---------- */

.callbar { display: none; }
@media (max-width: 48rem) {
  body { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: 6rem; }
  .result { scroll-margin-bottom: 6rem; }
  .callbar {
    display: flex; gap: .5rem; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: saturate(150%) blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .35);
  }
  .callbar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 50px;
    border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 1rem; text-align: center; line-height: 1.2;
  }
  .callbar__call { background: var(--red-fill); color: #fff; flex: 1.25; }
  .callbar__call:hover { background: var(--red-deep); color: #fff; }
  .callbar__ask { border: 2px solid var(--field-line); color: var(--ink); }
  .callbar :focus-visible { outline-color: var(--ink); }
}
.callbar a { white-space: nowrap; }
@media (max-width: 26rem) { .callbar a { font-size: .94rem; padding-inline: .5rem; } }
@media (max-width: 24rem) { .callbar a { font-size: .9rem; padding-inline: .45rem; } .callbar { gap: .4rem; padding-inline: .5rem; } }
@media (max-width: 22rem) { .callbar a { white-space: normal; } }

/* ---------- file upload (résumé) ---------- */

.field input[type=file] {
  font: inherit; font-size: .95rem; color: var(--ink); width: 100%; min-width: 0;
  border: 1.5px dashed var(--field-line); border-radius: 9px; padding: .7rem; background: var(--raised);
}
.field input[type=file]::file-selector-button {
  font: inherit; font-weight: 700; font-size: .95rem; margin-right: .8rem; cursor: pointer;
  padding: .55rem 1rem; min-height: 44px; border-radius: 8px;
  border: 1.5px solid var(--field-line); background: var(--band); color: var(--ink);
}
.field input[type=file]:hover::file-selector-button { border-color: var(--red-text); color: var(--red-text); }

/* ---------- legal pages ---------- */

.legal { max-width: 68ch; }
.legal h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); margin-top: 1.6rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; color: var(--ink-soft); }
.legal__date { font-size: .95rem; color: var(--ink-faint); }

/* ---------- privacy notice (no cookies are used; this only says so) ----------
   In the page flow under the header, never fixed, so it cannot cover content or focus. */

.notice { background: var(--band); border-bottom: 1px solid var(--line); }
.notice__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; padding-block: .55rem; }
.notice p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.notice p a { font-weight: 600; margin-left: .3rem; white-space: nowrap; }
.notice .btn { min-height: 44px; padding: .3rem 1.1rem; font-size: .95rem; }
.notice__row { flex-wrap: nowrap; }
.notice p { flex: 1; line-height: 1.45; }

/* ---------- GSAP hero intro (site.js) ----------
   motion.js adds .motion before first paint (never for reduced motion). The hero text starts
   hidden and GSAP reveals it, then site.js adds .intro-done. If GSAP fails to load, the
   intro-safety animation shows everything after 1.6s anyway. The photo is only scaled,
   never faded, so it still counts for LCP straight away. */
.motion:not(.intro-done) main > section:first-child :is(.eyebrow, .ctarow > *, .trust > span) {
  opacity: 0; animation: intro-safety 0s 1.6s forwards;
}
/* The heading and lead are the page's LCP text, so they only slide, never fade */
.motion:not(.intro-done) main > section:first-child :is(h1, .hero__lead) { transform: translateY(14px); animation: intro-safety 0s 1.6s forwards; }
.motion:not(.intro-done) main > section:first-child .hero__rule { transform: scaleX(0); transform-origin: left; animation: intro-safety 0s 1.6s forwards; }
.motion:not(.intro-done) .figure--hero img { transform: scale(1.06); animation: intro-safety 0s 1.6s forwards; }
@keyframes intro-safety { to { opacity: 1; transform: none; } }

/* ---------- reveal on scroll (only when JS runs and motion is welcome) ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease, border-color .2s ease, box-shadow .2s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in:hover { transform: translateY(-3px); }


/* ---------- accessibility settings (button + panel; site.js runs it, motion.js applies saved settings) ---------- */

.a11y__btn {
  position: fixed; z-index: 55; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 52px; min-width: 52px; padding: .45rem 1rem .45rem .55rem;
  border: 2px solid var(--paper); border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow);
}
.a11y__btn:hover { background: var(--red-fill); color: #fff; }
.a11y__btn:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }
.a11y__icon { width: 34px; height: 34px; flex: none; }
/* A round icon at rest, so it never sits over text; the "Accessibility" label slides out on
   hover or keyboard focus (on devices that hover). The name is always there for screen readers. */
.a11y__btn { padding: .45rem; }
.a11y__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: hover) {
  .a11y__btn:hover, .a11y__btn:focus-visible, .a11y__btn[aria-expanded="true"] { padding-right: 1rem; }
  .a11y__btn:hover .a11y__label, .a11y__btn:focus-visible .a11y__label, .a11y__btn[aria-expanded="true"] .a11y__label {
    position: static; width: auto; height: auto; overflow: visible; clip: auto;
  }
}
/* Phones: sit above the call bar */
@media (max-width: 48rem) { .a11y__btn { bottom: calc(4.9rem + env(safe-area-inset-bottom, 0px)); left: .75rem; } }
/* Keep focused items clear of the button when the browser scrolls to them */
@media (min-width: 48.0625rem) { html { scroll-padding-bottom: 5.5rem; } }
@media (max-width: 48rem) { html { scroll-padding-bottom: 9.5rem; } }

.a11y__panel {
  position: fixed; z-index: 56; left: 1rem; bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  width: min(23rem, calc(100vw - 2rem)); max-height: calc(100dvh - 7rem); overflow-y: auto;
  background: var(--raised); color: var(--ink); border: 1.5px solid var(--field-line); border-radius: 16px;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .45); padding: 1.1rem 1.15rem 1.2rem;
  display: grid; gap: .8rem;
}
@media (max-width: 30rem) { .a11y__sizes button, .a11y__sizes button[data-size] { font-size: .9rem; padding-inline: .15rem; } }
@media (max-width: 48rem) { .a11y__panel { left: .75rem; width: calc(100vw - 1.5rem); bottom: calc(8.6rem + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 10rem); } }
.a11y__panel[hidden] { display: none; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.a11y__title { font-family: var(--body); font-size: 1.2rem; color: var(--ink); }
.a11y__close {
  appearance: none; border: 1.5px solid var(--field-line); background: transparent; color: var(--ink);
  width: 44px; height: 44px; border-radius: 10px; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.a11y__close:hover { border-color: var(--red-text); color: var(--red-text); }
.a11y__label-row { font-weight: 700; font-size: 1rem; }
.a11y__sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.a11y__sizes button { min-width: 0; white-space: nowrap; }
.a11y__head > *, .a11y__toggle > span { min-width: 0; }
.a11y__close { flex: none; }
.a11y__sizes button, .a11y__toggle {
  appearance: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
  background: var(--raised); border: 1.5px solid var(--field-line); border-radius: 10px; min-height: 48px;
}
.a11y__sizes button { padding: .4rem .3rem; font-size: .95rem; }
.a11y__sizes button[data-size="lg"] { font-size: 1.05rem; }
.a11y__sizes button[data-size="xl"] { font-size: 1.15rem; }
.a11y__sizes button[aria-pressed="true"] { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.a11y__toggles { display: grid; gap: .45rem; }
.a11y__toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .85rem; text-align: left; font-size: 1rem; }
.a11y__toggle i { flex: none; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--field-line); position: relative; }
.a11y__toggle i::after { content: ""; position: absolute; top: .19rem; left: .2rem; width: 1.12rem; height: 1.12rem; border-radius: 50%; background: #fff; }
.a11y__toggle[aria-pressed="true"] { border-color: var(--red-text); }
.a11y__toggle[aria-pressed="true"] i { background: var(--red-fill); }
.a11y__toggle[aria-pressed="true"] i::after { left: auto; right: .2rem; }
.a11y__sizes button:hover, .a11y__toggle:hover { border-color: var(--red-text); }
.a11y__reset { width: 100%; }
.a11y__note { font-size: .92rem; color: var(--ink-soft); }

/* Larger text: everything is sized in rem, so the whole page scales */
html.text-lg { font-size: 112.5%; }
html.text-xl { font-size: 125%; }

/* Higher contrast: darker text, borders and labels (light), brighter ones (dark) */
:root.contrast {
  --ink: #0A1430; --ink-soft: #0A1430; --ink-faint: #1C2747;
  --line: #5A6992; --field-line: #1C2747; --red-text: #A10E14; --blue-text: #0A5276;
}
@media (prefers-color-scheme: dark) {
  :root.contrast:not([data-theme="light"]) {
    --ink: #FFFFFF; --ink-soft: #FFFFFF; --ink-faint: #E6ECF8;
    --line: #AEBCD9; --field-line: #D3DCEF; --red-text: #FFB4B8; --blue-text: #9AD9FF;
  }
}
.contrast .card, .contrast .callcard, .contrast .faq__item, .contrast .chips li { border-color: var(--field-line); }

/* Underline every text link (buttons excluded) */
.links a:not(.btn):not(.navcall):not(.brand):not(.callbar a) { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* Stop animations: no transitions, animations, hover lifts or smooth scrolling */
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
html.still { scroll-behavior: auto !important; }
.still .reveal { opacity: 1 !important; transform: none !important; }
.still .btn:hover, .still .card:hover { transform: none; }
/* Larger text on phones: the number alone fills most of the bar, so the two buttons stack
   (number stays whole, both stay big). Everything that clears the bar moves up with it. */
@media (max-width: 30rem) {
  .text-lg .callbar, .text-xl .callbar { flex-wrap: wrap; gap: .45rem; }
  .text-lg .callbar a, .text-xl .callbar a { flex: 1 1 100%; min-height: 46px; font-size: .95rem; }
  .text-lg body, .text-xl body { padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px)); }
  .text-lg .a11y__btn, .text-xl .a11y__btn { bottom: calc(7.4rem + env(safe-area-inset-bottom, 0px)); }
  .text-lg .a11y__panel, .text-xl .a11y__panel { bottom: calc(11rem + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 12.5rem); }
  html.text-lg, html.text-xl { scroll-padding-bottom: 12rem; }
  /* Keep the panel itself inside a narrow phone at the larger sizes */
  .text-lg .a11y__panel, .text-xl .a11y__panel { padding: .9rem .85rem 1rem; gap: .65rem; }
  .text-lg .a11y__sizes button, .text-xl .a11y__sizes button { font-size: .8rem; }
  .text-lg .a11y__toggle, .text-xl .a11y__toggle { font-size: .9rem; padding-inline: .7rem; gap: .6rem; }
}
