/* ==========================================================================
   Carpool Traffic School — v2.2.0
   1 tokens · 2 base · 3 layout · 4 components · 5 header/footer
   6 home · 7 inner pages · 8 responsive · 9 print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy: #0b312f;          /* hero / footer */
  --teal: #123f3d;          /* brand text */
  --teal-600: #1d5a55;
  --teal-100: #d9e9e3;
  --teal-50: #eef5f2;
  --coral: #c24e3c;         /* CTA — AA with white text */
  --coral-hover: #a94031;
  --coral-soft: #f0a08f;
  --coral-50: #fbeee9;
  --gold: #efc06c;
  --gold-50: #fbf3e0;
  --cream: #f8f5ee;
  --paper: #ffffff;
  --ink: #152e2b;
  --muted: #56696a;
  --line: #e2e8e5;
  --line-strong: #cbd7d2;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 49, 47, .06), 0 2px 8px rgba(11, 49, 47, .04);
  --shadow: 0 2px 4px rgba(11, 49, 47, .05), 0 14px 34px rgba(11, 49, 47, .09);
  --shadow-lg: 0 6px 12px rgba(11, 49, 47, .08), 0 30px 70px rgba(11, 49, 47, .22);

  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 78px;
  --section: 96px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; color: var(--teal); line-height: 1.12; letter-spacing: -.025em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.h4 { font-size: 1.1rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.mobile-only { display: none; }

.eyebrow { font: 800 .75rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.eyebrow-light { color: var(--coral-soft); }
.lede { font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 60ch; }

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap-narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section-compact { padding-block: 48px; }
.section-flush-top { padding-top: 48px; }
.section-tint { background: var(--cream); }
.section-head { margin-bottom: 40px; max-width: 760px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head-center { text-align: center; margin-inline: auto; }
.center-link { margin-top: 36px; text-align: center; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.layout-aside-left { grid-template-columns: 260px minmax(0, 1fr); }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-stack { gap: 20px; }

/* 4. Components ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent; background: none;
  font: 700 .95rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { transition: transform .15s; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(194, 78, 60, .25); }
.btn-primary:hover { background: var(--coral-hover); }
.btn-outline { border-color: var(--line-strong); color: var(--teal); background: #fff; }
.btn-outline:hover { border-color: var(--teal); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-dark { background: var(--teal); color: #fff; }
.btn-dark:hover { background: var(--navy); }
.btn-light { background: #fff; color: var(--coral-hover); }
.btn-light:hover { background: var(--cream); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--coral-hover); text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-sm { font-size: .9rem; }

.chip-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--teal); }
.chip:hover { border-color: var(--teal); background: var(--teal-50); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card > * + * { margin-top: 14px; }
.card-title { font-size: 1.2rem; }
.card p { color: var(--muted); }
.card-note { font-size: .85rem; }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--coral-50); color: var(--coral); }
.card-icon .icon { width: 22px; height: 22px; }
.card .btn + .btn { margin-top: 10px; }
.empty-state { padding: 20px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--cream); color: var(--muted); }
.check-badge { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--coral); color: #fff; }
.check-badge .icon { width: 18px; height: 18px; }

.meta-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pills li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #e3efea; font-weight: 600; font-size: .9rem; }
.meta-pills a { color: #fff; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--teal); }
.field-label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .finder select {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus, .finder select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18, 63, 61, .12); }
.select-wrap { position: relative; display: block; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; text-overflow: ellipsis; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); pointer-events: none; }
select:disabled { background: var(--cream) !important; color: var(--muted) !important; cursor: not-allowed; }
.form-note { font-size: .85rem; color: var(--muted); }
.honeypot { position: absolute !important; left: -9999px !important; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; }
.notice-success { background: #e5f3ea; color: #1f5b3a; }
.notice-error { background: var(--coral-50); color: #8d3527; }

/* Breadcrumbs (on dark hero) */
.breadcrumbs ol { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: #a9c4bb; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; color: #6f918a; }
.breadcrumbs a { color: #cfe2db; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current] { color: #fff; font-weight: 600; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Prose */
.prose { max-width: 72ch; font-size: 1.0625rem; line-height: 1.75; color: #2c4642; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--coral); }
.prose a { color: var(--coral-hover); text-underline-offset: 3px; }

/* Course selector: one connected bar — State | Course | Review */
.finder { background: #fff; border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lg); }
.finder-title { font-size: 1.35rem; margin: 14px 16px 10px; }
.finder-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) auto; align-items: stretch; }
.finder-field { position: relative; display: grid; gap: 2px; min-width: 0; padding: 12px 20px 10px; border-radius: 14px; cursor: pointer; transition: background-color .15s; }
.finder-field:hover { background: var(--cream); }
.finder-field + .finder-field::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.finder-field:focus-within { background: var(--teal-50); }
.finder-label { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.finder-label .icon { width: 15px; height: 15px; }
.finder select { min-height: 36px; padding: 0 30px 0 0; border: 0; border-radius: 0; background: transparent; font-size: 1.12rem; font-weight: 600; color: var(--teal); box-shadow: none !important; }
.finder select:focus { outline: none; }
.finder select:disabled { background: transparent !important; color: #8a9a97 !important; }
.finder .select-wrap::after { right: 4px; }
.finder-submit { min-height: 64px; margin-left: 8px; padding: 0 30px; font-size: 1.05rem; border-radius: 14px; }
.finder-empty { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; color: var(--muted); font-size: 1.05rem; }

/* Course row */
.course-list { display: grid; gap: 14px; }
.course-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s;
}
.course-row:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.course-row-state { font: 800 .74rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.course-row-title { font-size: 1.25rem; }
.course-row-title a { text-decoration: none; }
.course-row-title a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.course-row-text { margin-top: 6px; color: var(--muted); font-size: .96rem; max-width: 75ch; }
.course-row-side { display: flex; align-items: center; gap: 22px; }
.course-row-price { font-size: 1.6rem; font-weight: 800; color: var(--teal); letter-spacing: -.02em; white-space: nowrap; }
.course-row-actions { display: flex; gap: 10px; }

/* FAQ accordion */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; cursor: pointer; font-weight: 700; font-size: 1.05rem; color: var(--teal); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; color: var(--coral); width: 22px; height: 22px; transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 24px 22px; font-size: 1rem; color: var(--muted); }
.faq-search { position: relative; display: block; margin-bottom: 20px; }
.faq-search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.faq-search input { width: 100%; min-height: 56px; padding: 0 18px 0 50px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: #fff; }
.faq-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18, 63, 61, .12); }

/* CTA band */
.cta-band { background: var(--coral); color: #fff; padding-block: 64px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-copy p { margin-top: 8px; color: #ffe3dc; font-size: 1.1rem; }

/* Preflight checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.checklist li { display: flex; gap: 16px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.checklist h3 { font-size: 1.1rem; }
.checklist p { margin-top: 6px; color: var(--muted); font-size: .95rem; }

/* 5. Header / footer ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: box-shadow .2s, background-color .2s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.header-bar { min-height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo-badge { display: block; width: 44px; height: 44px; flex: none; }
.logo-type { display: block; line-height: 1; }
.logo-type b { display: block; font-weight: 900; font-size: 1.55rem; letter-spacing: -.04em; color: var(--teal); }
.logo-type small { display: block; margin-top: 4px; font-weight: 800; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--coral); }
.logo-reverse .logo-type b { color: #fff; }
.logo-reverse .logo-type small { color: var(--coral-soft); }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav a { position: relative; display: block; padding: 10px 13px; font-weight: 600; font-size: .97rem; color: #cfe1da; text-decoration: none; white-space: nowrap; border-radius: 8px; transition: color .15s, background-color .15s; }
.primary-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.primary-nav a[aria-current="page"] { color: #fff; }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--coral-soft); }
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.lang-switch a { padding: 5px 11px; border-radius: 999px; color: #b9d1c9; font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-decoration: none; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current] { background: #fff; color: var(--teal); }
.btn-login { min-height: 42px; padding: 0 16px; border-color: rgba(255, 255, 255, .28); color: #fff; font-size: .92rem; }
.btn-login:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: var(--radius-sm); background: transparent; color: #fff; cursor: pointer; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-icon-close { display: none; }
.menu-open .menu-icon-open { display: none; }
.menu-open .menu-icon-close { display: inline; }

.site-footer { background: var(--navy); color: #c5d9d1; padding: 72px 0 28px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 56px; }
.footer-brand p { margin-top: 20px; max-width: 36ch; font-size: .95rem; line-height: 1.65; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.site-footer h2 { font: 800 .76rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li + li { margin-top: 10px; }
.site-footer a { color: #c5d9d1; text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-states { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; gap: 20px; align-items: baseline; }
.footer-states h2 { margin: 0; flex: none; }
.footer-states ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 24px; font-size: .82rem; color: #8fb0a3; }

/* 6. Home ------------------------------------------------------------------ */
.home-hero {
  position: relative; color: #fff; padding: 84px 0 76px; text-align: center; overflow: hidden;
  background:
    radial-gradient(800px 460px at 50% -8%, rgba(64, 140, 128, .38), transparent 65%),
    radial-gradient(600px 380px at 100% 110%, rgba(194, 78, 60, .16), transparent 60%),
    var(--navy);
}
.home-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: repeating-linear-gradient(90deg, var(--gold) 0 40px, transparent 40px 68px); opacity: .7; }
.home-hero-copy { max-width: 860px; margin-inline: auto; }
.home-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
.home-hero .lede { margin: 20px auto 0; color: #c9ddd6; font-size: 1.2rem; }
.home-hero .finder { margin: 44px auto 0; max-width: 1040px; text-align: left; }
.hero-ticks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.hero-ticks li { display: inline-flex; align-items: center; gap: 8px; color: #d8e8e2; font-weight: 600; font-size: .95rem; }
.hero-ticks .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(239, 192, 108, .2); color: var(--gold); }

.state-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.state-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--teal); font-weight: 700; font-size: .94rem; cursor: pointer; }
.state-tab span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--teal-50); font-size: .75rem; }
.state-tab:hover { border-color: var(--teal); }
.state-tab[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.state-tab[aria-pressed="true"] span { background: rgba(255, 255, 255, .18); }
.list-more { margin-top: 24px; text-align: center; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.steps li { padding: 34px 30px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.step-num { display: block; font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--coral); }
.steps h3 { margin-top: 20px; font-size: 1.25rem; }
.steps p { margin-top: 10px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.split-intro p:not(.eyebrow) { margin: 18px 0 28px; color: var(--muted); font-size: 1.08rem; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.benefit-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--teal); color: #fff; }
.benefit-icon .icon { width: 24px; height: 24px; }
.benefits h3 { margin-top: 16px; font-size: 1.12rem; }
.benefits p { margin-top: 6px; color: var(--muted); font-size: .96rem; }

/* 7. Inner pages ----------------------------------------------------------- */
.page-hero { background: var(--navy); color: #fff; padding: 36px 0 64px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 95% 0, rgba(64, 140, 128, .3), transparent 62%); pointer-events: none; }
.page-hero > .wrap { position: relative; }
.page-hero-grid { display: grid; gap: 48px; }
.page-hero-grid.has-aside { grid-template-columns: minmax(0, 1fr) 360px; align-items: end; }
.page-hero-body { max-width: 820px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.page-hero .eyebrow { color: var(--coral-soft); }
.page-hero .lede { margin-top: 16px; color: #c9ddd6; }
.page-hero-meta { margin-top: 22px; }
.enroll-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); display: grid; gap: 12px; }
.enroll-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; color: var(--teal); }
.enroll-price span { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.enroll-note { font-size: .85rem; color: var(--muted); text-align: center; }

/* Courses catalog */
.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.catalog-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.catalog-nav-title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.catalog-states { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.catalog-states a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; color: var(--ink); text-decoration: none; }
.catalog-states a:hover { background: var(--teal-50); }
.catalog-states a[aria-current] { background: var(--teal); color: #fff; }
.catalog-states b { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--teal-50); color: var(--teal); font-size: .78rem; text-align: center; }
.catalog-states a[aria-current] b { background: rgba(255, 255, 255, .18); color: #fff; }
.catalog-help { margin-top: 20px; padding: 22px; border-radius: var(--radius); background: var(--cream); }
.catalog-help h3 { font-size: 1rem; }
.catalog-help p { margin: 8px 0 12px; font-size: .9rem; color: var(--muted); }
.state-group + .state-group { margin-top: 48px; }
.state-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--teal); }
.state-group-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

/* Timeline (how it works) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; }
.timeline li + li { margin-top: 44px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 35px; top: 72px; bottom: -44px; width: 2px; background: var(--line-strong); }
.timeline .step-num { font-size: 2.6rem; padding-top: 4px; }
.timeline h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.timeline p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.timeline .timeline-note { margin-top: 16px; padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--gold-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #5b4d2a; font-size: .98rem; }

/* About */
.principles { list-style: none; padding: 0 !important; display: grid; gap: 16px; }
.principles li { display: flex; gap: 14px; align-items: flex-start; }
.principles .check-badge { width: 28px; height: 28px; margin-top: 2px; }
.principles strong { color: var(--teal); }
.about-card { text-align: center; }
.about-badge { width: 96px; height: 96px; }
.about-tagline { font-size: 1.4rem; font-weight: 800; color: var(--teal) !important; letter-spacing: -.02em; }

/* Legal */
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .92rem; }
.toc a { color: var(--teal); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.legal-links { display: grid; gap: 4px; padding: 0 8px; }
.legal-links a { padding: 6px 0; font-size: .92rem; color: var(--muted); text-decoration: none; }
.legal-links a[aria-current] { color: var(--coral-hover); font-weight: 700; }
.legal-body h2 { font-size: 1.35rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-contact { padding-top: 1.2em; border-top: 1px solid var(--line); margin-top: 2em !important; }

.card-form { padding: 32px; }
.aside-help { font-size: .92rem; color: var(--muted); }
.mobile-enroll-bar { display: none; }

/* 404 */
.not-found { padding-block: 80px; background: var(--cream); }
.not-found-grid { display: grid; gap: 40px; }
.exit-sign { display: inline-flex; flex-direction: column; align-items: center; padding: 10px 26px 12px; margin-bottom: 24px; background: var(--teal); color: #fff; border-radius: 12px; box-shadow: inset 0 0 0 3px var(--teal), inset 0 0 0 5px #fff; }
.exit-sign span { font: 800 .75rem/1 var(--font); letter-spacing: .2em; text-transform: uppercase; }
.exit-sign b { font: 900 2.6rem/1 var(--font); letter-spacing: -.02em; }
.not-found h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.not-found .lede { margin-top: 16px; }

.post-summary + .post-summary { margin-top: 20px; }

/* 8. Responsive ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .header-bar { gap: 16px; }
  .primary-nav a { padding-inline: 9px; font-size: .94rem; }
  .btn-login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn-login { width: 42px; padding: 0; }
}

@media (max-width: 1024px) {
  :root { --section: 72px; --header-h: 70px; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; margin: 0;
    background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 40px rgba(0, 0, 0, .3);
    padding: 8px var(--gutter) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .menu-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
  .primary-nav a { padding: 16px 4px; font-size: 1.05rem; border-radius: 0; }
  .primary-nav a:hover { background: none; }
  .primary-nav a[aria-current="page"]::after { display: none; }
  .finder-form { grid-template-columns: 1fr 1fr; }
  .finder-submit { grid-column: 1 / -1; margin: 8px 0 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .layout-aside, .layout-aside-left { grid-template-columns: 1fr; gap: 36px; }
  .aside { position: static; }
  .legal-toc { order: -1; }
  .page-hero-grid.has-aside { grid-template-columns: 1fr; gap: 32px; }
  .enroll-card { max-width: 480px; }
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .catalog-nav { position: static; min-width: 0; }
  .catalog-states { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .catalog-states li { flex: none; }
  .catalog-help { display: none; }
  .checklist { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .course-row { grid-template-columns: 1fr; gap: 16px; }
  .course-row-side { justify-content: space-between; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --section: 56px; }
  body { font-size: 15.5px; }
  .logo-badge { width: 40px; height: 40px; }
  .logo-type b { font-size: 1.35rem; }
  .logo-type small { font-size: .58rem; }
  .header-actions { gap: 8px; }
  .lang-switch a { padding: 5px 9px; }
  .home-hero { padding: 44px 0 48px; text-align: left; }
  .home-hero .lede { font-size: 1.05rem; margin-left: 0; }
  .home-hero .finder { margin-top: 28px; }
  .finder { padding: 8px; border-radius: 16px; }
  .finder-form { grid-template-columns: 1fr; }
  .finder-field + .finder-field::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
  .finder-submit { min-height: 56px; }
  .finder-empty { flex-direction: column; align-items: stretch; }
  .hero-ticks { justify-content: flex-start; flex-direction: column; gap: 10px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .state-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .state-tab { flex: none; }
  .course-row { padding: 20px; }
  .course-row-side { flex-direction: column; align-items: stretch; gap: 12px; }
  .course-row-actions .btn { flex: 1; }
  .steps { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; gap: 24px; }
  .page-hero { padding: 24px 0 44px; }
  .breadcrumbs [aria-current] { max-width: 22ch; }
  .actions .btn { flex: 1 1 100%; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .card-form { padding: 22px 18px; }
  .timeline li { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
  .timeline li:not(:last-child)::before { left: 22px; }
  .timeline .step-num { font-size: 2rem; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .footer-states { flex-direction: column; gap: 14px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .not-found { padding-block: 48px; }

  .carpool-course-page { padding-bottom: 80px; }
  .mobile-enroll-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: 14px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11, 49, 47, .1);
  }
  .mobile-enroll-bar span { flex: 1; min-width: 0; font-weight: 700; font-size: .9rem; color: var(--teal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-enroll-bar b { color: var(--coral); }
  .mobile-enroll-bar .btn { min-height: 44px; padding: 0 22px; }
}

@media (max-width: 400px) {
  .header-bar { gap: 10px; }
  .logo { gap: 8px; }
  .logo-badge { width: 36px; height: 36px; }
  .logo-type b { font-size: 1.15rem; }
  .logo-type small { font-size: .5rem; letter-spacing: .18em; }
  .header-actions { gap: 6px; }
  .lang-switch a { padding: 4px 7px; font-size: .72rem; }
  .btn-login, .menu-toggle { width: 38px; height: 38px; min-height: 38px; }
}

/* 9. Print ----------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .mobile-enroll-bar, .aside, .finder, .enroll-card { display: none !important; }
  .page-hero, .home-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
  .layout-aside { display: block; }
}


/* v2.3 backend-integration polish ------------------------------------------ */
.lang-switch { display: none !important; }
.floating-lang {
  position: fixed; right: 16px; top: calc(var(--header-h) + 18px); z-index: 95;
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px rgba(11,49,47,.12); backdrop-filter: blur(10px);
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
}
.floating-lang a { color: var(--muted); padding: 4px 6px; border-radius: 999px; text-decoration: none; }
.floating-lang a:hover { color: var(--teal); }
.floating-lang a[aria-current] { color: #fff; background: var(--teal); }
.floating-lang span { color: var(--line-strong); }
body.admin-bar .site-header { top: 32px; }
body.admin-bar .floating-lang { top: calc(var(--header-h) + 50px); }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .floating-lang { top: auto; }
}
@media (max-width: 720px) {
  .floating-lang { top: auto; right: 12px; bottom: 12px; z-index: 96; }
}


/* v2.3.2 — email-only contact page */
.contact-email-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.contact-email-address{
  display:inline-block;
  margin:10px 0 22px;
  font-size:clamp(20px,2.4vw,30px);
  line-height:1.15;
  font-weight:900;
  color:var(--green,#123f3d);
  text-decoration:underline;
  text-decoration-color:var(--coral,#d85f49);
  text-decoration-thickness:2px;
  text-underline-offset:5px;
  overflow-wrap:anywhere;
}
.contact-email-card .form-note{
  margin-top:14px;
  margin-bottom:0;
}


/* ==========================================================
   v2.3.3 — refined email-only contact page
   ========================================================== */

.contact-hero{
  padding:72px 0 58px;
  background:
    radial-gradient(circle at 88% 18%, rgba(85,127,141,.16), transparent 24%),
    linear-gradient(135deg,#f8fbfa 0%,#ffffff 65%);
  border-bottom:1px solid #dce6e1;
}

.contact-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(280px,.65fr);
  gap:70px;
  align-items:end;
}

.contact-hero h1{
  max-width:760px;
  margin:9px 0 16px;
  color:#0b312f;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(48px,5vw,70px);
  line-height:.96;
  letter-spacing:-2.6px;
}

.contact-hero p{
  max-width:650px;
  margin:0;
  color:#61736d;
  font-size:16px;
  line-height:1.7;
}

.contact-hero-note{
  padding-left:26px;
  border-left:3px solid #d85f49;
}

.contact-hero-note-label{
  display:block;
  margin-bottom:7px;
  color:#71877f;
  font-size:9px;
  font-weight:950;
  letter-spacing:1.4px;
  text-transform:uppercase;
}

.contact-hero-note strong{
  display:block;
  color:#123f3d;
  font-size:20px;
  line-height:1.25;
  overflow-wrap:anywhere;
}

.contact-hero-note>span:last-child{
  display:block;
  margin-top:6px;
  color:#73847e;
  font-size:12px;
}

.contact-section{
  padding-top:68px;
}

.contact-layout-refined{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(300px,.65fr);
  gap:80px;
  align-items:start;
}

.contact-primary{
  padding:0 0 10px;
}

.contact-primary-top{
  display:flex;
  gap:18px;
  align-items:flex-start;
}

.contact-icon-circle{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  flex:0 0 auto;
  border-radius:50%;
  background:#eaf2ef;
  color:#123f3d;
}

.contact-icon-circle svg{
  width:23px;
  height:23px;
}

.contact-primary h2{
  margin:5px 0 0;
  color:#0b312f;
  font-family:Georgia,"Times New Roman",serif;
  font-size:36px;
  line-height:1.02;
  letter-spacing:-1.4px;
}

.contact-primary-copy{
  max-width:690px;
  margin:25px 0 0;
  color:#61736d;
  font-size:14px;
  line-height:1.75;
}

.contact-email-display{
  display:inline-block;
  margin:27px 0 24px;
  color:#123f3d;
  font-size:clamp(24px,3vw,38px);
  line-height:1.08;
  font-weight:900;
  letter-spacing:-1.3px;
  text-decoration:none;
  overflow-wrap:anywhere;
}

.contact-email-display:after{
  content:"";
  display:block;
  width:100%;
  height:3px;
  margin-top:8px;
  background:linear-gradient(90deg,#d85f49 0 42%,#efc06c 42% 64%,#557f8d 64%);
  transform-origin:left center;
  transition:transform .18s ease;
}

.contact-email-display:hover:after{
  transform:scaleX(.72);
}

.contact-primary-actions{
  display:flex;
  align-items:center;
  gap:17px;
  flex-wrap:wrap;
}

.contact-device-note{
  color:#7a8b85;
  font-size:11px;
}

.contact-checklist{
  margin-top:42px;
  padding-top:27px;
  border-top:1px solid #dce6e1;
}

.contact-checklist-title{
  display:block;
  margin-bottom:15px;
  color:#6d837a;
  font-size:9px;
  font-weight:950;
  letter-spacing:1.4px;
  text-transform:uppercase;
}

.contact-checklist-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px 24px;
}

.contact-checklist-grid span{
  display:flex;
  align-items:center;
  gap:8px;
  color:#365651;
  font-size:12px;
  font-weight:800;
}

.contact-checklist-grid svg{
  width:15px;
  height:15px;
  color:#d85f49;
}

.contact-checklist p{
  margin:18px 0 0;
  color:#899691;
  font-size:10px;
  line-height:1.55;
}

.contact-side{
  border-top:1px solid #123f3d;
}

.contact-side-block{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:18px;
  padding:27px 0 28px;
  border-bottom:1px solid #dce6e1;
}

.contact-side-number{
  color:#d85f49;
  font-family:Georgia,"Times New Roman",serif;
  font-size:21px;
}

.contact-side h3{
  margin:5px 0 8px;
  color:#123f3d;
  font-family:Georgia,"Times New Roman",serif;
  font-size:23px;
  line-height:1.05;
}

.contact-side p{
  margin:0;
  color:#6b7d77;
  font-size:12px;
  line-height:1.65;
}

.contact-side-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin-top:15px;
}

.contact-side-links a{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#123f3d;
  font-size:11px;
  font-weight:900;
}

.contact-side-links a:hover{
  color:#d85f49;
}

.contact-side-links svg{
  width:13px;
  height:13px;
}

@media(max-width:820px){
  .contact-hero{
    padding:52px 0 44px;
  }

  .contact-hero-grid,
  .contact-layout-refined{
    grid-template-columns:1fr;
    gap:38px;
  }

  .contact-hero-note{
    padding:18px 0 0;
    border-left:0;
    border-top:3px solid #d85f49;
  }

  .contact-section{
    padding-top:48px;
  }

  .contact-side{
    margin-top:8px;
  }
}

@media(max-width:520px){
  .contact-primary-top{
    display:block;
  }

  .contact-icon-circle{
    margin-bottom:15px;
  }

  .contact-checklist-grid{
    grid-template-columns:1fr;
  }

  .contact-primary-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .contact-primary-actions .btn{
    width:100%;
  }
}


/* ==========================================================
   v2.3.5 — subtle hero refinement + persistent course selector
   ========================================================== */

.home-hero{
  padding:88px 0 78px;
  background:
    radial-gradient(760px 420px at 50% -10%, rgba(74,143,132,.34), transparent 66%),
    radial-gradient(560px 340px at 12% 110%, rgba(194,78,60,.10), transparent 62%),
    radial-gradient(520px 320px at 92% 100%, rgba(85,127,141,.12), transparent 62%),
    var(--navy);
}

.home-hero-copy{
  max-width:900px;
}

.home-hero h1{
  max-width:860px;
  margin-inline:auto;
  font-size:clamp(2.7rem,5.5vw,4.55rem);
  line-height:.98;
  letter-spacing:-.047em;
}

.home-hero .lede{
  max-width:690px;
  margin-top:22px;
  font-size:1.16rem;
  line-height:1.65;
}

.home-hero .finder{
  margin-top:40px;
  max-width:1060px;
  border-radius:16px;
  box-shadow:
    0 8px 18px rgba(0,0,0,.09),
    0 24px 56px rgba(0,0,0,.19);
}

.home-hero .hero-ticks{
  margin-top:24px;
  gap:10px 26px;
}

.home-hero .hero-ticks li{
  font-size:.9rem;
  color:#d5e4df;
}

.home-hero::after{
  height:4px;
  background:linear-gradient(
    90deg,
    transparent 0 12%,
    var(--gold) 12% 30%,
    transparent 30% 34%,
    var(--coral) 34% 52%,
    transparent 52% 56%,
    #557f8d 56% 74%,
    transparent 74%
  );
  opacity:.65;
}

.finder select:disabled{
  opacity:.72;
}

.finder-submit:disabled{
  opacity:.52;
  cursor:not-allowed;
  transform:none !important;
  box-shadow:none;
}

@media(max-width:720px){
  .home-hero{
    padding:62px 0 58px;
  }

  .home-hero h1{
    font-size:clamp(2.45rem,11vw,3.65rem);
  }

  .home-hero .lede{
    font-size:1.04rem;
  }

  .home-hero .finder{
    margin-top:34px;
  }
}
