/* =========================================================================
   Employee Drug Testing Services - design system
   Tokens first, then base, then components. No frameworks.
   ========================================================================= */

:root {
  /* color */
  /* Brand colors sampled from the logo: navy #01335d, blue #0063a6, green #12b083 */
  --bg: #ffffff;
  --bg-subtle: #f3f6fa;
  --bg-deep: #01335d;
  --surface: #ffffff;
  --fg: #10202e;
  --fg-muted: #4b5c6e;
  --fg-onDeep: #e9f1f8;
  --border: #dce3ec;
  --border-strong: #bfcbda;
  --accent: #0063a6;
  --accent-hover: #01497c;
  --accent-soft: #e8f1f9;
  --accent-fg: #ffffff;
  --navy: #01335d;
  --ring: #3a8fd0;
  --danger: #a4271c;
  --danger-soft: #fdeceb;
  --success: #0f9c73;
  --success-soft: #e4f6ef;

  /* spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.125rem;
  --text-4xl: 2.75rem;

  /* shape */
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(18, 34, 42, 0.06), 0 1px 3px rgba(18, 34, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(18, 34, 42, 0.1);
  --shadow-lg: 0 12px 32px rgba(18, 34, 42, 0.14);
  --maxw: 1200px;
  --maxw-narrow: 760px;
  /* one text measure everywhere: ch units drift with font size and cause ragged right edges */
  --measure: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }

/* Components set display, which would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  line-height: 1.22;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: var(--navy);
}
h1 { font-size: var(--text-4xl); line-height: 1.12; letter-spacing: -0.028em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.022em; }
h3 { font-size: var(--text-lg); letter-spacing: -0.012em; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); }
strong { font-weight: 650; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 3px;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-5); }
@media (min-width: 1280px) { .container { padding: 0 var(--space-6); } }
@media (max-width: 480px) { .container { padding: 0 var(--space-4); } }
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding: var(--space-8) 0; }
.section + .section:not(.section--subtle):not(.cta-band) { padding-top: 0; }
/* a section following a tinted band needs its own breathing room again
   (matches the specificity of the rule above so it actually wins) */
.cta-band + .section:not(.section--subtle):not(.cta-band),
.section--subtle + .section:not(.section--subtle):not(.cta-band) { padding-top: var(--space-7); }
.section--tight { padding: var(--space-7) 0; }
.section--subtle { background: var(--bg-subtle); }
.section--deep { background: var(--bg-deep); color: var(--fg-onDeep); }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep a { color: #9fc8ea; }

.section__intro { max-width: var(--measure); color: var(--fg-muted); font-size: var(--text-lg); }
.eyebrow {
  display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3);
}
h2 { text-wrap: balance; }
.muted { color: var(--fg-muted); }
.lede { font-size: var(--text-lg); color: var(--fg-muted); }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.js .form__progress.js-only { display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: var(--space-3) var(--space-4);
  z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: 0 1px 12px rgba(1, 51, 93, 0.06); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 84px;
}
.logo { display: inline-flex; align-items: center; flex: none; line-height: 0; }
.logo__img { height: 58px; width: auto; transition: opacity 0.15s ease; }
.logo:hover .logo__img { opacity: 0.85; }
@media (max-width: 1080px) { .site-header__inner { min-height: 74px; } }
@media (max-width: 480px) { .logo__img { height: 46px; } }
@media (max-width: 360px) { .logo__img { height: 40px; } }

.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav ul { display: flex; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav ul a {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
  color: var(--fg-muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav ul a:hover { color: var(--fg); background: var(--bg-subtle); }
.site-nav ul a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav__cta { text-decoration: none; margin-left: var(--space-2); }

/* ------------------------------------------------------------ nav dropdown */

.has-dropdown { position: relative; }
.nav-chevron { flex: none; opacity: 0.55; transition: transform 0.15s ease; }
.has-dropdown > a[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: calc(var(--space-3) * -1); z-index: 60;
  min-width: 268px; margin-top: 0; padding: var(--space-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgba(1, 51, 93, 0.12);
  display: none;
}
/* keeps the pointer "inside" the menu while it travels from the label to the
   panel, so the menu does not close in the gap between them */
.dropdown::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
.has-dropdown > a { padding-bottom: var(--space-3); }
.site-nav ul { flex-wrap: nowrap; }
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.dropdown.is-open { display: block; }
/* matches the specificity of `.site-nav ul a` so dropdown links stay stacked
   instead of inheriting the inline-flex used for the top-level nav items */
.site-nav .dropdown a {
  display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 500; color: var(--fg); text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dropdown a:hover { background: var(--bg-subtle); color: var(--accent); }

/* a long menu (the states list) lays out in columns so it stays readable as it
   grows, with the overview link spanning the full width above them */
.has-dropdown:hover > .dropdown--grid,
.has-dropdown:focus-within > .dropdown--grid,
.dropdown--grid.is-open { display: grid; }
.dropdown--grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--space-1); min-width: 560px;
  /* centered under its label so a wide panel clears both edges wherever the
     item sits in the bar, and capped so the list can keep growing */
  left: 50%; transform: translateX(-50%);
  max-height: calc(100vh - 140px); overflow-y: auto;
}
.dropdown--grid .dropdown__all { grid-column: 1 / -1; }
.dropdown__all {
  font-weight: 650; color: var(--accent);
  border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: var(--space-1);
}

@media (max-width: 1080px) {
  /* in the mobile menu the sections simply expand inline */
  .dropdown {
    position: static; display: block; min-width: 0; padding: 0 0 var(--space-3) var(--space-3);
    border: 0; border-radius: 0; box-shadow: none;
  }
  .site-nav .dropdown a { padding: var(--space-2) 0; font-size: 0.9375rem; }
  .dropdown__all { border-bottom: 0; }
  /* the column layout is a desktop affordance; inline menus stay single-column */
  .dropdown--grid.is-open { display: block; }
  .dropdown--grid {
    min-width: 0; left: auto; transform: none;
    max-height: none; overflow-y: visible;
  }
  .nav-chevron { display: none; }
}

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  flex-direction: column; gap: 4px; transition: border-color 0.15s ease;
}
.nav-toggle:hover { border-color: var(--border-strong); }
.nav-toggle__bar { display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: var(--space-3) var(--space-4) var(--space-5);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul a { display: block; padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--border); border-radius: 0; font-size: var(--text-base); }
  .site-nav ul a:hover { background: var(--bg-subtle); }
  .site-nav__cta { margin-top: var(--space-4); justify-content: center; }
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: var(--text-base);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.1s ease;
}
.btn--primary {
  background: var(--accent); color: var(--accent-fg);
  box-shadow: 0 1px 2px rgba(1, 51, 93, 0.18);
}
.btn--primary:hover {
  background: var(--accent-hover); color: var(--accent-fg);
  box-shadow: 0 4px 12px rgba(1, 51, 93, 0.22);
}
.btn--primary:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(1, 51, 93, 0.18); }
.btn--secondary { background: var(--surface); color: var(--accent); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent-hover); background: var(--accent-soft); }
.btn--ghost { background: none; color: var(--fg-muted); }
.btn--ghost:hover { color: var(--fg); background: var(--bg-subtle); }
.btn--sm { min-height: 44px; padding: var(--space-2) var(--space-4); font-size: 0.9375rem; }
.btn__arrow { transition: transform 0.15s ease; }
.btn:hover .btn__arrow { transform: translateX(2px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn__spinner {
  width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

.hero {
  padding: var(--space-7) 0;
  background: linear-gradient(180deg, #f2f7fc 0%, var(--bg) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: var(--space-6);
  align-items: center;
}
.hero__copy { max-width: 34rem; }
.hero h1 {
  font-size: clamp(2.125rem, 1.5rem + 2.1vw, 3rem);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.hero__rotator {
  font-size: 1.25rem; font-weight: 600; color: var(--fg);
  margin-bottom: var(--space-3); line-height: 1.4;
}
.hero__rotator .rotator__item { color: var(--accent); }
.hero__lede {
  font-size: 1.125rem; line-height: 1.6; color: var(--fg-muted);
  margin-bottom: var(--space-5); text-wrap: pretty;
}
.hero__points { list-style: none; padding: 0; margin: 0; }
.hero__points li {
  display: flex; gap: var(--space-3); align-items: flex-start;
  margin-bottom: var(--space-3); font-size: var(--text-base); color: var(--fg);
}
.hero__points li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230f9c73'%3E%3Cpath d='M8.1 13.6 4.9 10.4l1.1-1.1 2.1 2.1 5.9-5.9 1.1 1.1z'/%3E%3C/svg%3E") center/18px no-repeat;
}

/* Rotating word: every option sits in the same grid cell, so the line
   never reflows and nothing shifts while it animates. */
.rotator { display: inline-grid; vertical-align: bottom; max-width: 100%; }
.rotator__item {
  grid-area: 1 / 1; white-space: nowrap; text-align: left;
  opacity: 0; transform: translateY(0.35em);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.rotator__item.is-active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rotator__item { transition: none; }
}
@media (max-width: 480px) {
  .hero__rotator { font-size: var(--text-lg); }
  .rotator__item { white-space: normal; }
}

@media (min-width: 1040px) {
  /* three options per row keeps the card short */
  .lead-form--hero .options--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-form--hero .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-form--hero .field--full { grid-column: 1 / -1; }
}
@media (max-width: 1039px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
}

/* Hero form, one size down */
.lead-form--hero { padding: var(--space-4) var(--space-5) var(--space-5); }
.lead-form--hero .lead-form__heading { font-size: var(--text-base); }
.lead-form--hero .lead-form__intro { font-size: 0.8125rem; }
.lead-form--hero .form__progress { margin-bottom: var(--space-3); }
.lead-form--hero .form__progress-label { font-size: 0.75rem; }
.lead-form--hero .form__legend { font-size: var(--text-base); }
.lead-form--hero .form__hint { font-size: 0.8125rem; margin-bottom: var(--space-2); }
.lead-form--hero .option { min-height: 42px; padding: var(--space-1) var(--space-3); }
.lead-form--hero .option input { width: 18px; height: 18px; }
.lead-form--hero .option__label { font-size: 0.8125rem; line-height: 1.3; }
.lead-form--hero .btn { min-height: 44px; font-size: 0.9375rem; }
.lead-form--hero .form__microcopy { font-size: 0.8125rem; }
.lead-form--hero .form__legal { font-size: 0.6875rem; }
.lead-form--hero .field__label { font-size: 0.8125rem; }
.lead-form--hero .field__input { min-height: 42px; font-size: 0.9375rem; }
@media (max-width: 900px) {
  .hero { padding: var(--space-6) 0; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__copy { max-width: none; }
}

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

.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.trust__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5); list-style: none;
  margin: 0; padding: var(--space-5) 0;
}
.trust__list li {
  display: flex; align-items: flex-start; gap: var(--space-2);
  margin: 0; font-size: 0.9375rem; color: var(--fg-muted); line-height: 1.45;
}
.trust__list li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230f9c73'%3E%3Cpath d='M8.1 13.6 4.9 10.4l1.1-1.1 2.1 2.1 5.9-5.9 1.1 1.1z'/%3E%3C/svg%3E") center/18px no-repeat;
}
@media (max-width: 900px) { .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust__list { grid-template-columns: 1fr; gap: var(--space-3); } }

/* ------------------------------------------------------------------- grids */

.grid { display: grid; gap: var(--space-4); }
.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)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  display: block; padding: var(--space-5); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.card:hover { border-color: var(--border-strong); box-shadow: 0 6px 18px rgba(1, 51, 93, 0.07); transform: translateY(-2px); }
.card__title { font-size: 1.0625rem; margin-bottom: var(--space-2); color: var(--navy); }
a.card:hover .card__title { color: var(--accent); }
.card__text { margin: 0; color: var(--fg-muted); font-size: var(--text-sm); }
.card.is-soft, span.card { cursor: default; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--fg); font-size: var(--text-sm); font-weight: 550;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
a.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: calc(36px + var(--space-4)); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: var(--text-base);
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: var(--space-2); font-size: var(--text-lg); }
.step p { color: var(--fg-muted); margin: 0; }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-5); }
.prose ul li { margin-bottom: var(--space-2); }

.callout {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: var(--space-4) var(--space-5); border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-5) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- breadcrumbs */

.breadcrumbs { border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: var(--space-3) 0; font-size: var(--text-sm); }
.breadcrumbs li { margin: 0; color: var(--fg-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--border-strong); }

/* --------------------------------------------------------------------- faq */

.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; padding: var(--space-4) var(--space-6) var(--space-4) 0; position: relative;
  font-weight: 600; list-style: none; transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: ""; position: absolute; right: var(--space-2); top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--fg-muted); border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-answer { padding-bottom: var(--space-4); color: var(--fg-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- sources */

.sources {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6); background: var(--bg-subtle);
  margin: 0 auto; text-align: center;
}
.sources__heading { font-size: var(--text-base); margin-bottom: var(--space-3); }
.sources__list { font-size: var(--text-sm); margin-bottom: var(--space-3); list-style: none; padding-left: 0; }
.sources__list li { margin-bottom: var(--space-1); }

/* beats the generic .page-head > * rule below */
.page-head > .sources { max-width: 36rem; }

/* pages with a sticky aside keep the block aligned to the article column */
.layout-aside .page-head > .sources { max-width: var(--measure); margin: 0; text-align: left; }
.layout-aside .sources__list { list-style: disc; padding-left: 1.25rem; }
.sources__meta, .sources__note { font-size: var(--text-sm); color: var(--fg-muted); margin-bottom: var(--space-2); }
.sources__note:last-child { margin-bottom: 0; }

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

.lead-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(1, 51, 93, 0.04), 0 8px 28px rgba(1, 51, 93, 0.08);
  padding: var(--space-5);
}
.lead-form--full { max-width: 880px; margin: 0 auto; padding: var(--space-5) var(--space-6) var(--space-6); }
.lead-form--hero { padding: var(--space-5); }
.lead-form--inline { margin: var(--space-6) 0; }
.lead-form__head { margin-bottom: var(--space-4); }
.lead-form__heading { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.lead-form__intro { color: var(--fg-muted); font-size: var(--text-sm); margin: 0; }

.form__progress { margin-bottom: var(--space-4); }
.form__progress-track { height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; }
.form__progress-bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.25s ease-out; }
.form__progress-label { font-size: var(--text-sm); color: var(--fg-muted); margin: var(--space-2) 0 0; }

.form__step { border: 0; padding: 0; margin: 0 0 var(--space-4); min-width: 0; }
.js .form__step { display: none; }
.js .form__step.is-active { display: block; }
.form__legend { font-size: var(--text-lg); font-weight: 700; padding: 0; margin-bottom: var(--space-2); line-height: 1.3; }
.form__hint { font-size: var(--text-sm); color: var(--fg-muted); margin-bottom: var(--space-3); }

.options { display: grid; gap: var(--space-2); }
.options--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .options--grid, .options--wide { grid-template-columns: 1fr; } }
@media (min-width: 760px) {
  .lead-form--full .options--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.option {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 46px; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; background: var(--surface);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.option:hover { border-color: var(--accent); background: var(--accent-soft); }
.option input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.option__label { font-size: var(--text-sm); font-weight: 550; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Wide forms put the short answer lists side by side so the card stays short. */
@media (min-width: 900px) {
  .lead-form--hero .options:not(.options--grid),
  .lead-form--full .options:not(.options--grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-form--hero .options--wide,
  .lead-form--full .options--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 760px) {
  .lead-form--full .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-form--full .field--full { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }
.field__label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-1); }
.field__optional { font-weight: 400; color: var(--fg-muted); }
.field__input {
  width: 100%; min-height: 48px; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  font: inherit; font-size: var(--text-base); color: var(--fg); background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.field__input { min-height: 96px; resize: vertical; }
.field__input:hover { border-color: var(--accent); }
.field__input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58, 143, 208, 0.28); }
.field.has-error .field__input { border-color: var(--danger); }
.field__error { display: block; color: var(--danger); font-size: var(--text-sm); margin-top: var(--space-1); }

/* Dictation: only rendered when the browser supports speech recognition */
.dictate-bar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); }
.dictate {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-2) var(--space-4);
  background: var(--surface); color: var(--fg-muted);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.dictate:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.dictate__icon { flex: none; }
.dictate.is-listening { color: #fff; background: var(--danger); border-color: var(--danger); }
.dictate.is-listening:hover { background: #8e2117; border-color: #8e2117; color: #fff; }
.dictate.is-listening .dictate__icon { animation: dictate-pulse 1.4s ease-in-out infinite; }
@keyframes dictate-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.dictate__status { font-size: 0.8125rem; color: var(--fg-muted); }

.form__turnstile { margin-top: var(--space-4); min-height: 68px; }
.form__actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.form__actions .btn--primary { flex: 1 1 auto; }
.form__microcopy { font-size: var(--text-sm); color: var(--fg); font-weight: 550; margin: var(--space-3) 0 0; }
.form__legal { font-size: 0.8125rem; color: var(--fg-muted); margin: var(--space-1) 0 0; }
.form__error {
  background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

.site-footer { background: var(--bg-deep); color: var(--fg-onDeep); padding: var(--space-7) 0 var(--space-6); margin-top: var(--space-8); }
.site-footer a { color: #aecbe6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-5); } }
.footer-logo {
  display: inline-block; background: #fff; border-radius: var(--radius);
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4);
  line-height: 0; transition: transform 0.15s ease;
}
.footer-logo:hover { transform: translateY(-1px); }
.footer-logo img { height: 56px; width: auto; }
.site-footer__tagline { color: #9db3c9; font-size: var(--text-sm); max-width: 32ch; }
.site-footer__heading { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; color: #9db3c9; margin-bottom: var(--space-3); }
.site-footer__links { list-style: none; padding: 0; margin: 0; font-size: var(--text-sm); }
.site-footer__links li { margin-bottom: var(--space-2); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: var(--space-6); padding-top: var(--space-5); }
.site-footer__bottom p { font-size: 0.8125rem; color: #9db3c9; }
.site-footer__disclaimer { max-width: 90ch; }
.is-soft { color: #9db3c9; }
.site-footer .is-soft { cursor: default; }


/* --------------------------------------------------- two column text split */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--space-7); align-items: start; }
.split__main > p { max-width: var(--measure); }
/* drop the panel below the heading so it floats beside the copy
   instead of butting up against the top of the section */
@media (min-width: 901px) { .split__aside { margin-top: var(--space-9); } }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--space-5); } }

.link-panel {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5);
}
.link-panel__title { font-size: var(--text-base); margin-bottom: var(--space-3); }
.link-panel__list { list-style: none; margin: 0; padding: 0; }
.link-panel__list li { margin: 0; border-top: 1px solid var(--border); }
.link-panel__list li:first-child { border-top: 0; }
.link-panel__list a, .link-panel__list .is-soft {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) 0; font-size: 0.9375rem; font-weight: 550;
  color: var(--fg); text-decoration: none; transition: color 0.15s ease;
}
.link-panel__list a::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230063a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform 0.15s ease;
}
.link-panel__list a:hover { color: var(--accent); }
.link-panel__list a:hover::after { transform: translateX(2px); }
.link-panel__list .is-soft { color: var(--fg-muted); }

.cta-strip--wide { margin-top: var(--space-7); }
.cta-strip--wide .cta-strip__text { max-width: 70ch; }

/* ------------------------------------------------- page with sticky aside */

/* FAQ and sources sit centred like the rest of a normal page ... */
.page-head { max-width: var(--maxw-narrow); }
.page-head > * { max-width: 100%; }
#faq h2 { text-align: center; }

/* ... and line up with the article column on pages with a sticky aside */
.layout-aside .page-head { max-width: var(--maxw); }
.layout-aside .page-head > * { max-width: var(--measure); }
.layout-aside #faq h2 { text-align: left; }

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: var(--space-7);
  align-items: start;
}
.page-grid__main { min-width: 0; max-width: var(--measure); }
.page-grid__aside { position: sticky; top: 108px; }

.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(1, 51, 93, 0.04), 0 8px 24px rgba(1, 51, 93, 0.07);
  padding: var(--space-5);
}
.cta-card__eyebrow {
  display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2);
}
.cta-card__title {
  font-size: var(--text-base); font-weight: 700; color: var(--navy);
  margin: 0 0 var(--space-3); line-height: 1.35;
}
.cta-card .options { gap: var(--space-1); margin-bottom: var(--space-4); }
.option--sm { min-height: 40px; padding: var(--space-1) var(--space-3); }
.option--sm input { width: 18px; height: 18px; }
.option--sm .option__label { font-size: 0.875rem; font-weight: 500; }
.btn--block { width: 100%; }
.cta-card__note { font-size: 0.75rem; color: var(--fg-muted); margin: var(--space-3) 0 0; text-align: center; }

.hero .cta-card { padding: var(--space-6); box-shadow: 0 2px 4px rgba(1, 51, 93, 0.05), 0 14px 36px rgba(1, 51, 93, 0.1); }
.hero .cta-card__title { font-size: var(--text-lg); margin-bottom: var(--space-4); }
.hero .cta-card .options { gap: var(--space-2); }
.hero .cta-card .option--sm { min-height: 46px; }

@media (max-width: 1080px) {
  /* the aside would squeeze the article, so the inline call to action
     and the form at the foot of the page carry the page instead */
  .page-grid { grid-template-columns: 1fr; gap: 0; }
  .page-grid__aside { display: none; }
  .page-grid__main, .page-head > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
}

/* Slim call to action used inside article copy */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cta-strip__text { margin: 0; font-weight: 600; color: var(--navy); max-width: 42ch; }
.cta-strip__note { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--fg-muted); margin-top: var(--space-1); }
.cta-strip .btn { flex: none; }

/* ----------------------------------------------------------- calculator */

.calc {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-6);
}
.calc__results {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4);
  margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border);
}
.calc__result { text-align: center; }
.calc__figure { display: block; font-size: var(--text-3xl); font-weight: 700; color: var(--accent); line-height: 1.1; letter-spacing: -0.02em; }
.calc__label { display: block; font-size: var(--text-sm); color: var(--fg-muted); margin-top: var(--space-1); }
.calc__note { font-size: var(--text-sm); color: var(--fg-muted); margin: var(--space-4) 0 0; }
@media (max-width: 560px) {
  .calc__results { grid-template-columns: 1fr; gap: var(--space-3); }
  .calc__result { display: flex; align-items: baseline; justify-content: space-between; text-align: left; }
  .calc__figure { font-size: var(--text-2xl); }
}

/* ------------------------------------------------------------------- misc */

.cta-band { background: var(--bg-subtle); border-top: 1px solid var(--border); }

/* Sticky call to action on phones, once the hero form has scrolled away */
.mobile-cta { display: none; }
@media (max-width: 900px) {
  .js .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(18, 34, 42, 0.08);
    transform: translateY(110%); transition: transform 0.2s ease-out;
  }
  .js .mobile-cta.is-visible { transform: translateY(0); }
  .mobile-cta .btn { width: 100%; }
  /* room so the sticky bar never covers the last of the footer */
  .js .site-footer { padding-bottom: calc(var(--space-6) + 112px); }
}
.mobile-cta__note { display: block; font-size: 0.75rem; color: var(--fg-muted); text-align: center; margin: var(--space-2) 0 0; }
.state-finder { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: flex-end; }
.state-finder .field { min-width: 260px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
