/* California Crash Law — design system.
   Thesis: golden-hour California editorial. Warm paper, deep sea-teal ink, one
   road-stripe marigold accent, serif display over a calm sans, photography-led,
   cardless. System fonts only (no webfont requests); WCAG 2.2 AA contrast. */

:root {
  --paper: #f7f2e8;
  --paper-2: #efe6d6;
  --paper-3: #e6dbc6;
  --white: #fffdf9;
  --ink: #15201f;
  --ink-2: #33403e;
  --muted: #5f6b67;
  --teal-900: #0b2f30;
  --teal-700: #0f4c4d;
  --teal-500: #1f6b6c;
  --teal-100: #d8e6e2;
  --teal-50: #e9f1ee;
  --marigold: #e3a92b;
  --marigold-600: #c98f18;
  --marigold-700: #9c6c0c;
  --marigold-100: #fbefd1;
  --rule: #dccfb9;
  --rule-strong: #b9a98c;
  --ok: #2a6b45;
  --err: #a3271f;
  --err-bg: #fbe9e6;
  --warn-bg: #fdf3dc;
  --radius: 4px;
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --header-h: 72px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-0: clamp(1rem, .95rem + .2vw, 1.08rem);
  --fs-1: clamp(1.1rem, 1.05rem + .3vw, 1.25rem);
  --fs-2: clamp(1.35rem, 1.2rem + .7vw, 1.7rem);
  --fs-3: clamp(1.7rem, 1.35rem + 1.4vw, 2.4rem);
  --fs-4: clamp(2.2rem, 1.5rem + 3vw, 3.9rem);
  --fs-5: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem);
  --space-1: .375rem;
  --space-2: .75rem;
  --space-3: 1.125rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-0); line-height: 1.65; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--rule-strong); transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--teal-900); text-decoration-color: var(--marigold); }
:focus-visible { outline: 3px solid var(--marigold-600); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--teal-900); margin: 0 0 var(--space-2); letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: var(--fs-4); }
h2 { font-size: var(--fs-3); margin-top: var(--space-5); }
h3 { font-size: var(--fs-2); margin-top: var(--space-4); }
h4 { font-size: var(--fs-1); margin-top: var(--space-3); font-family: var(--font-body); font-weight: 700; }
p, ul, ol, dl, table { margin: 0 0 var(--space-3); }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: .35em; }
strong { color: var(--teal-900); }
.lead { font-size: var(--fs-1); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); font-size: .92em; }
.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--marigold-700); margin-bottom: var(--space-2); }
.eyebrow::before { content: ""; display: inline-block; width: 1.6rem; height: 2px; background: var(--marigold); vertical-align: middle; margin-right: .6rem; }
.subtitle { font-size: var(--fs-1); color: var(--ink-2); max-width: 62ch; line-height: 1.5; }
.updated { margin-top: var(--space-2); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-5) 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }
.page--intake .wrap--narrow { width: min(100% - 2.5rem, 1040px); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal-900); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.35em; border-radius: 2px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; min-height: 46px; letter-spacing: .01em; transition: background-color .18s var(--ease), color .18s, border-color .18s, transform .18s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--marigold); color: var(--ink); border-color: var(--marigold); }
.btn--primary:hover { background: var(--marigold-600); border-color: var(--marigold-600); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--teal-900); border-color: var(--teal-900); }
.btn--ghost:hover { background: var(--teal-900); color: #fff; }
.btn--lg { padding: 1em 1.7em; font-size: 1.06rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 242, 232, .88); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: baseline; gap: .6rem; text-decoration: none; color: var(--teal-900); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; margin-right: auto; line-height: 1; }
.brand:hover { color: var(--teal-900); }
.brand__mark { width: 1.6rem; height: .45rem; background: var(--marigold); flex: none; transform: translateY(-.25rem); }
.site-nav { margin-left: auto; }
.site-nav__list { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.site-nav__list li + li { margin: 0; }
.site-nav__list li:not(.site-nav__lang) a { position: relative; display: block; padding: .55rem .6rem; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.site-nav__list li:not(.site-nav__lang) a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 2px; background: var(--marigold); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--teal-900); }
.site-nav__toggle { display: none; }
.site-header__cta { white-space: nowrap; }
.site-header__contact { display: none; }
.language-switcher { white-space: nowrap; font-size: .85rem; color: var(--ink-2); }
.language-switcher a { color: inherit; text-decoration-color: var(--rule); }
.language-switcher a[aria-current="page"] { font-weight: 700; text-decoration: none; color: var(--teal-900); }
.site-nav__lang { display: none; }
@media (max-width: 1200px) {
  .site-nav__toggle { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 2px solid var(--teal-900); background: transparent; border-radius: 2px; font-weight: 700; color: var(--teal-900); cursor: pointer; font: inherit; font-weight: 700; }
  .site-nav__list { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; padding: .5rem 1.25rem 1rem; box-shadow: 0 20px 40px rgba(11, 47, 48, .12); }
  .site-nav__list.is-open { display: flex; animation: menu-in .22s var(--ease); }
  .site-nav__list li:not(.site-nav__lang) a { padding: .85rem .5rem; font-size: 1.08rem; border-bottom: 1px solid var(--rule); }
  .site-nav__list a::after { display: none; }
  .site-header__cta { display: none; }
  .site-header__contact { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .9rem; font-size: .95rem; }
  .site-nav { margin-left: auto; }
  .site-header__inner > .language-switcher { display: none; }
  .site-nav__lang { display: block; padding: .9rem .5rem 0; font-size: 1rem; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .brand { font-size: 1.05rem; } .site-header__inner { gap: .6rem; } .site-header__contact { padding: .5rem .7rem; } }

/* Footer */
.site-footer { background: var(--teal-900); color: #cfdcd7; margin-top: var(--space-7); padding: var(--space-6) 0 var(--space-4); font-size: .95rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { color: var(--marigold); text-decoration-color: var(--marigold); }
.site-footer h2 { color: var(--marigold); font-family: var(--font-body); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .35rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-5); }
.site-footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; margin-bottom: .3rem; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: var(--space-5); padding-top: var(--space-4); color: #a9bcb6; font-size: .85rem; }
.site-footer__legal strong { color: #fff; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Photography */
.photo { position: relative; overflow: hidden; background: var(--paper-3); margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.photo--coast-highway img, .photo--inland-highway-hills img, .photo--semi-truck-highway img { object-position: 50% 60%; }
.photo--oc-pier-sunset img { object-position: 50% 40%; }
.photo--clinic-exam img { object-position: 50% 35%; }
.photo__credit { position: absolute; right: .6rem; bottom: .5rem; margin: 0; font-size: .7rem; letter-spacing: .02em; color: rgba(255,255,255,.85); background: rgba(11, 47, 48, .45); padding: .2rem .5rem; border-radius: 2px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.photo__credit a { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.page__figure { margin: 0 0 var(--space-5); aspect-ratio: 21 / 9; }
.page__figure img { animation: photo-in 1.2s var(--ease) both; }
@media (max-width: 760px) { .page__figure { aspect-ratio: 16 / 10; margin-inline: calc(50% - 50vw); } }

/* Hero (home): full-bleed photograph, text anchored to the calm plane */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(calc(100svh - var(--header-h)), 820px); display: flex; align-items: flex-end; overflow: hidden; background: var(--teal-900); }
.hero .photo { position: absolute; inset: 0; z-index: -2; }
.hero .photo img { animation: hero-zoom 9s var(--ease) both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,47,48,.15) 0%, rgba(11,47,48,.05) 35%, rgba(11,47,48,.75) 78%, rgba(11,47,48,.92) 100%); }
.hero__inner { padding: var(--space-7) 0 var(--space-6); width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.hero__copy { max-width: 46rem; animation: rise .9s var(--ease) both; animation-delay: .15s; }
.hero .eyebrow { color: var(--marigold); }
.hero h1 { color: #fff; font-size: var(--fs-5); font-weight: 600; max-width: 14ch; margin-bottom: var(--space-3); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .lead { color: #eef3f0; max-width: 40rem; font-size: var(--fs-1); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 var(--space-3); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.75); }
.hero .btn--ghost:hover { background: #fff; color: var(--teal-900); border-color: #fff; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; color: #dbe6e1; font-size: .92rem; }
.hero__trust li { margin: 0; padding-left: 1.1em; position: relative; }
.hero__trust li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5em; height: .5em; background: var(--marigold); transform: rotate(45deg); }
.hero .photo__credit { bottom: .75rem; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .hero { min-height: calc(100svh - var(--header-h)); } .hero__inner { padding: var(--space-6) 0 var(--space-5); } .hero h1 { max-width: 12ch; } }

/* Sections */
.section { padding: var(--space-6) 0; }
.section--alt { background: var(--paper-2); }
.section h2 { margin-top: 0; }
.section__intro { max-width: 64ch; color: var(--ink-2); font-size: var(--fs-1); margin-bottom: var(--space-4); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* Quick links (home: "what happened?") */
.quick-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 var(--space-5); }
.quick-links li { margin: 0; }
.quick-links a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--rule-strong); text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; color: var(--teal-900); }
.quick-links a::after { content: "→"; font-family: var(--font-body); color: var(--marigold-600); transition: transform .2s var(--ease); }
.quick-links a:hover::after { transform: translateX(4px); }

/* Tiles (ruled lists, not boxes). `.cards/.card` names retained for templates. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 var(--space-5); margin: var(--space-3) 0 var(--space-4); }
.card { display: flex; flex-direction: column; gap: .3rem; padding: var(--space-3) 0 var(--space-4); border-top: 2px solid var(--rule-strong); text-decoration: none; color: var(--ink); transition: border-color .2s; }
.card:hover { border-top-color: var(--marigold); color: var(--ink); }
.card__title { font-family: var(--font-display); font-size: 1.2rem; color: var(--teal-900); line-height: 1.2; }
.card:hover .card__title { text-decoration: underline; text-decoration-color: var(--marigold); text-underline-offset: .2em; }
.card__text { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3) var(--space-5); }
.county-block { border-top: 2px solid var(--rule-strong); padding-top: var(--space-3); }
.county-block h3 { margin-top: 0; font-size: 1.3rem; }
.county-block ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1rem; }
.county-block li { break-inside: avoid; margin: 0 0 .3rem; }
.county-section { margin-top: var(--space-4); }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li { position: relative; padding-left: 3.4rem; margin: 0 0 var(--space-4); counter-increment: step; }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -.15rem; font-family: var(--font-display); font-size: 1.9rem; color: var(--marigold-600); line-height: 1; }
.steps > li > strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--teal-900); margin-bottom: .25rem; }
.steps > li > p { margin: 0; color: var(--ink-2); }
.steps--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.steps--grid > li { padding-left: 0; padding-top: 2.8rem; border-top: 1px solid var(--rule-strong); }
.steps--grid > li::before { top: .7rem; }
@media (max-width: 760px) { .steps--grid { grid-template-columns: 1fr; gap: var(--space-4); } .steps--grid > li { padding-left: 3.4rem; padding-top: var(--space-3); } .steps--grid > li::before { top: .9rem; } }

/* Page layout */
.page { padding-top: var(--space-4); }
.page__header { margin-bottom: var(--space-4); max-width: 60rem; }
.page__header h1 { max-width: 24ch; }
.page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-6); align-items: start; }
.page__main > p:first-child { margin-top: 0; }
.page__main > p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.2em; float: left; line-height: .85; padding: .08em .12em 0 0; color: var(--teal-900); }
.page__aside { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: var(--space-4); }
@media (max-width: 960px) { .page__grid { grid-template-columns: 1fr; } .page__aside { position: static; } }
.page__main h2 { scroll-margin-top: calc(var(--header-h) + 1rem); padding-top: var(--space-2); border-top: 1px solid var(--rule); }

.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .85rem; color: var(--muted); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--rule-strong); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.factbox { background: var(--paper-2); padding: var(--space-3) var(--space-4); font-size: .95rem; border-left: 3px solid var(--marigold); }
.factbox h2 { font-family: var(--font-body); font-size: .76rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .14em; color: var(--marigold-700); }
.factbox dl { margin: 0; }
.factbox dt { font-weight: 700; color: var(--ink-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-top: .7rem; }
.factbox dd { margin: 0; }
.factbox ol { padding-left: 1.2em; margin: 0; }
.factbox--muted { background: transparent; border-left-color: var(--rule-strong); }

.related { padding-top: var(--space-2); border-top: 2px solid var(--teal-900); font-size: .95rem; }
.related h2 { font-family: var(--font-body); font-size: .76rem; margin: 0 0 .4rem; text-transform: uppercase; letter-spacing: .14em; color: var(--teal-900); }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: .45rem 0; border-top: 1px solid var(--rule); margin: 0; }
.related li:first-child { border-top: 0; }
.related a { text-decoration: none; font-weight: 600; color: var(--teal-900); }
.related a:hover { text-decoration: underline; }
.related .muted { display: block; font-size: .85rem; }

.notes { display: grid; gap: var(--space-3); }
.note { border-left: 3px solid var(--marigold); padding: .15rem 0 .15rem var(--space-3); scroll-margin-top: calc(var(--header-h) + 1rem); }
.note h4 { margin: 0 0 .25rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.note p { margin: 0 0 .35rem; }

/* Callouts */
.callout { padding: var(--space-3) var(--space-4); margin: var(--space-4) 0; border-left: 4px solid var(--teal-500); background: var(--paper-2); }
.callout p { margin: 0 0 .4rem; }
.callout p:last-child { margin: 0; }
.callout__title { font-weight: 800; color: var(--teal-900); }
.callout--emergency { background: var(--warn-bg); border-left-color: var(--err); }
.callout--info { border-left-color: var(--teal-500); }
.callout--warning { background: var(--warn-bg); border-left-color: var(--marigold-600); }

/* Tables */
.table-wrap { overflow-x: auto; margin: var(--space-3) 0 var(--space-4); border-top: 2px solid var(--teal-900); border-bottom: 1px solid var(--rule-strong); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { color: var(--teal-900); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* FAQ, sources, CTA */
.faq { margin-top: var(--space-5); }
.faq__item { border-top: 1px solid var(--rule); padding: var(--space-3) 0; }
.faq__item h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.faq__item p:last-child { margin: 0; }
.sources { margin-top: var(--space-5); font-size: .9rem; color: var(--ink-2); }
.sources ul { padding-left: 1.2em; }
.cta-inline { margin: var(--space-6) 0; padding: var(--space-5) var(--space-4); background: var(--teal-900); color: #dbe6e1; text-align: center; position: relative; overflow: hidden; }
.cta-inline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--marigold) 0 48px, transparent 48px 72px); }
.cta-inline h2, .cta-inline h3 { color: #fff; margin-top: 0; border: 0; padding: 0; }
.cta-inline p { margin: var(--space-2) auto 0; max-width: 60ch; }
.cta-inline a:not(.btn) { color: #fff; }
.cta-band { background: var(--teal-900); color: #dbe6e1; padding: var(--space-7) 0; margin-top: var(--space-7); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--marigold) 0 48px, transparent 48px 72px); }
.cta-band h2 { color: #fff; margin-top: 0; font-size: var(--fs-4); }
.cta-band p { max-width: 62ch; margin-inline: auto; font-size: var(--fs-1); }
.cta-band .btn--primary { margin-top: var(--space-3); }
.cta-band a:not(.btn) { color: #fff; }
.cta-band__note { font-size: .88rem; color: #a9bcb6; margin-top: var(--space-4); }
.cta-band + .site-footer, .page--thank-you + .site-footer { margin-top: 0; }

/* Forms (the intake panel is the one place a contained surface is the interaction) */
.intake-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .intake-layout { grid-template-columns: 1fr; } .intake-aside { order: 2; } }
.intake-aside { display: grid; gap: var(--space-4); }
.intake { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--teal-900); padding: var(--space-5) var(--space-4); }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: 0; margin: 0 0 var(--space-5); }
.progress li { display: flex; align-items: center; gap: .5rem; font-size: .82rem; line-height: 1.25; color: var(--muted); margin: 0; padding-bottom: .55rem; border-bottom: 3px solid var(--rule); }
.progress li[aria-current="step"] { color: var(--teal-900); font-weight: 700; border-bottom-color: var(--marigold); }
.progress li.is-done { color: var(--ok); border-bottom-color: var(--ok); }
.progress__num { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--paper-2); font-weight: 700; flex: none; font-family: var(--font-display); }
.progress li[aria-current="step"] .progress__num { background: var(--marigold); color: var(--ink); }
.progress li.is-done .progress__num { background: var(--ok); color: #fff; }
@media (max-width: 600px) { .progress__label { display: none; } .progress li[aria-current="step"] .progress__label { display: inline; } }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step > legend { font-family: var(--font-display); font-size: var(--fs-2); font-weight: 600; color: var(--teal-900); margin-bottom: var(--space-3); padding: 0; }
.step__count { display: block; font-family: var(--font-body); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--marigold-700); margin-bottom: .3rem; font-weight: 700; }
.js .step[hidden] { display: none; }
.form-notice { background: var(--paper-2); border-left: 3px solid var(--marigold); padding: var(--space-3) var(--space-4); font-size: .88rem; color: var(--ink-2); margin-top: var(--space-4); }
.form-notice p { margin: 0; }
.step__nav { display: flex; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }
.step__nav .btn:only-child { margin-left: auto; }
.field { margin-bottom: var(--space-3); }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--ink); }
.field--choices { border: 0; padding: 0; margin: 0 0 var(--space-3); min-width: 0; }
.field--choices legend { padding: 0; }
.req { color: var(--marigold-700); }
.hint { margin: -.1rem 0 .5rem; font-size: .9rem; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea { width: 100%; font: inherit; padding: .75rem .85rem; border: 1.5px solid var(--rule-strong); border-radius: 2px; background: #fff; color: var(--ink); min-height: 48px; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-700); outline: 3px solid rgba(15, 76, 77, .22); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field--choices.has-error .choices { border-color: var(--err); }
.field--choices.has-error .choices { outline: 2px solid var(--err); outline-offset: 4px; border-radius: 2px; }
.error { color: var(--err); font-size: .9rem; margin: .3rem 0 0; min-height: 0; font-weight: 600; }
.error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-3); }
.field-row--3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 560px) { .field-row, .field-row--3 { grid-template-columns: 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { display: inline-flex; align-items: flex-start; gap: .65rem; padding: .65rem .95rem; border: 1.5px solid var(--rule-strong); border-radius: 2px; cursor: pointer; background: #fff; font-weight: 500; min-height: 46px; transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: var(--teal-700); }
.choice:has(input:checked) { border-color: var(--teal-900); background: var(--teal-50); font-weight: 700; }
.choice:has(input:focus-visible) { outline: 3px solid var(--marigold-600); outline-offset: 2px; }
.choice input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; flex: none; accent-color: var(--teal-900); }
.choice--inline { border: 0; padding: 0 0 var(--space-3); min-height: 0; background: transparent; }
.choice--consent { display: flex; align-items: flex-start; font-weight: 400; font-size: .95rem; line-height: 1.5; margin-bottom: .6rem; }
.field--consent { padding: var(--space-3) var(--space-4); border-left: 3px solid var(--marigold); background: var(--paper-2); margin: var(--space-4) 0; }
.field--consent legend { padding: 0 .4rem; font-weight: 800; }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-alert { background: var(--err-bg); border-left: 4px solid var(--err); color: var(--err); padding: var(--space-2) var(--space-3); margin-bottom: var(--space-3); font-weight: 600; }
.form-alert ul { margin: .4rem 0 0; padding-left: 1.2em; font-weight: 400; }
.form-alert--ok { background: #e8f3ec; border-left-color: var(--ok); color: var(--ok); }
.review { background: var(--paper-2); padding: var(--space-3) var(--space-4); margin: var(--space-3) 0; }
.review h2 { margin: 0 0 .5rem; font-size: 1.2rem; border: 0; padding: 0; }
.review dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; font-size: .95rem; }
.review dt { color: var(--muted); }
.review dd { margin: 0; }
.cf-turnstile { margin: var(--space-3) 0; }
.reference { font-size: var(--fs-1); }
.reference strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--marigold-100); padding: .1em .45em; border-radius: 2px; }

.page--error .page__header { padding-top: var(--space-5); }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Utilities */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media print { .site-header, .site-footer, .cta-band, .cta-inline, .page__aside, .page__figure, .hero .photo { display: none !important; } .hero { min-height: 0; color: #000; } .page__grid { grid-template-columns: 1fr; } a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; } }
