/* ==========================================================================
   ECOS Medicare Solutions — California build
   site.css · Design system (tokens + components)
   Aesthetic: "Golden State" — Pacific blue, coastal sage, fog-white paper,
   poppy gold. Accessibility target: WCAG 2.2 AA for an older audience
   (base 18px+, 56px tap targets, visible focus, reduced-motion respected).
   Generated from source/site.css by source/generate.py — edit the source.
   ========================================================================== */

:root {
  --ink:        #1c2630;
  --ink-soft:   #46535e;
  --paper:      #f7f4ec;   /* fog */
  --paper-2:    #ebe6d8;
  --surface:    #fffefb;
  --lake:       #1b4e73;   /* primary: Pacific blue */
  --lake-dark:  #10344f;   /* hover / deep */
  --lake-tint:  #e1ebf3;
  --spruce:     #4a6b3f;   /* coastal sage */
  --gold:       #b06f16;   /* AA on paper for large text */
  --gold-deep:  #8a5810;   /* gold for small text */
  --maple:      #d97a2b;   /* coral accent */
  --line:       #d9d4c6;
  --focus:      #1d4f6e;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.95rem, 0.92rem + 0.15vw, 1.02rem);
  --step-0:  clamp(1.13rem, 1.08rem + 0.25vw, 1.25rem);
  --step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.6vw, 3.7rem);

  --gap: clamp(1rem, 0.8rem + 1vw, 1.6rem);
  --pad-section: clamp(3rem, 2rem + 5vw, 5.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(28,38,48,.06), 0 8px 26px rgba(28,38,48,.09);
  --shadow-sm: 0 1px 2px rgba(28,38,48,.07), 0 3px 10px rgba(28,38,48,.06);
  --maxw: 1140px;
  --tap: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--step-0); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 .5em; font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--lake-dark); text-underline-offset: 3px; }
a:hover { color: var(--maple); }
img, svg { max-width: 100%; display: block; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--pad-section); }
.section--paper2 { background: var(--paper-2); }
.section--lake { background: var(--lake-dark); color: #eef3f6; }
.section--lake h2, .section--lake h3 { color: #fff; }
.section--lake p { color: #dfe8ee; }

.eyebrow { font-family: var(--body); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .8rem; color: var(--gold-deep); margin: 0 0 .8rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow.crumb { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink-soft); font-size: .92rem; }
.eyebrow.crumb::before { display: none; }
.section--lake .eyebrow { color: #e9c46a; }
.section--lake .eyebrow::before { background: #e9c46a; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; max-width: 60ch; }
.center { text-align: center; }
.center .lede, .center p { margin-inline: auto; }
.center .eyebrow, .eyebrow.center { justify-content: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: var(--tap); padding: .7rem 1.5rem; font-family: var(--body); font-size: var(--step-0); font-weight: 700; line-height: 1.1; text-decoration: none; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; text-align: center; }
.btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn--primary { background: var(--lake); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--lake-dark); color: #fff; }
.btn--gold { background: var(--gold); color: #2a1d05; }
.btn--gold:hover { background: var(--gold-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--lake-dark); border-color: var(--lake); }
.btn--ghost:hover { background: var(--lake-tint); color: var(--lake-dark); }
.btn--block { width: 100%; }
.btn--lg { font-size: var(--step-1); padding: .85rem 1.8rem; }

/* Header / nav */
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--lake-dark); color: #fff; padding: .9rem 1.3rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 700; }
.skip:focus { left: 0; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(244,242,236,.94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; padding-block: .5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { flex: none; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.05; white-space: nowrap; }
.brand__tag { font-size: .76rem; color: var(--ink-soft); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: clamp(.6rem, 1.5vw, 1.4rem); }
.nav__links { display: flex; gap: clamp(.5rem, 1.2vw, 1.2rem); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: .4rem .2rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav__links a:hover { color: var(--lake-dark); border-bottom-color: var(--gold); }
.header-call { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--lake-dark); text-decoration: none; font-size: 1.1rem; white-space: nowrap; min-height: 44px; }
.header-call:hover { color: var(--maple); }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--lake-dark); cursor: pointer; }
@media (max-width: 1140px) {
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .6rem 1.2rem 1rem; flex-direction: column; gap: 0; }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: .8rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .nav-toggle { display: inline-flex; }
  .brand__tag { display: none; }
}
@media (max-width: 560px) { .header-call { font-size: .95rem; gap: .3rem; } .brand__name { font-size: 1.05rem; } .site-header__inner { gap: .5rem; } }
@media (max-width: 400px) { .header-call svg { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--paper); min-height: clamp(320px, 30vw, 400px); }
.hero__scene { position: absolute; inset: auto 0 0 0; width: 100%; height: 46%; z-index: 0; }
.hero__scene svg { width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 3vw, 3.2rem); align-items: center; padding-block: clamp(2.6rem, 2rem + 4vw, 4.6rem) clamp(8rem, 6rem + 8vw, 12rem); }
.hero h1 { margin-bottom: .35em; }
.hero__sub { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; align-items: center; }
.hero__nocost { margin-top: 1rem; font-weight: 700; color: var(--lake-dark); display: flex; align-items: center; gap: .5rem; }
.hero--short { min-height: 0; }
.hero--short .hero__scene { height: 70%; opacity: .9; }
@media (max-width: 880px) { .hero__inner { grid-template-columns: 1fr; padding-bottom: clamp(7rem, 30vw, 10rem); } }

/* Lead card / form */
.lead-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.3rem, 1rem + 1.5vw, 2rem); }
.lead-card__title { font-size: var(--step-1); margin-bottom: .15em; }
.lead-card__note { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; min-height: var(--tap); padding: .6rem .85rem; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff; border: 1.5px solid #b3ad9c; border-radius: var(--radius-sm); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lake); outline: 3px solid var(--focus); outline-offset: 1px; }
.consent { display: flex; gap: .65rem; align-items: flex-start; background: var(--lake-tint); border: 1px solid #c8d9e4; border-radius: var(--radius-sm); padding: .8rem .9rem; margin: .4rem 0 1rem; }
.consent input { margin-top: .25rem; width: 22px; height: 22px; flex: none; accent-color: var(--lake); }
.consent label { font-size: .86rem; line-height: 1.45; color: var(--ink-soft); font-weight: 400; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.form-fineprint { font-size: .8rem; color: var(--ink-soft); margin: .6rem 0 0; }

/* Trust strip */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust__inner { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; align-items: center; justify-content: center; padding-block: 1.3rem; }
.trust__item { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.trust__item svg { flex: none; color: var(--lake); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--gap); margin-top: 2rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold); }
.stat__num { font-family: var(--display); font-weight: 600; font-size: var(--step-2); color: var(--lake-dark); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-weight: 700; margin: .5rem 0 .2rem; }
.stat__sub { font-size: .85rem; color: var(--ink-soft); }
.source-note { margin-top: 1.3rem; font-size: .82rem; color: var(--ink-soft); max-width: none; }

/* Cards */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card__icon { width: 46px; height: 46px; color: var(--lake); margin-bottom: .8rem; }
.card h3 { margin-bottom: .35em; }
.card p { font-size: 1.02rem; color: var(--ink-soft); }
.card__link { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--lake-dark); padding-top: .6rem; display: inline-flex; align-items: center; gap: .4rem; }
.card__link:hover { color: var(--maple); gap: .65rem; }
.help-card { border-left: 4px solid var(--gold); }

/* Callout */
.callout { display: grid; grid-template-columns: 1fr auto; gap: 1.6rem; align-items: center; background: var(--lake-tint); border: 1px solid #c8d9e4; border-radius: var(--radius); padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); }
.callout .btn { margin: .3rem .3rem .3rem 0; }
@media (max-width: 720px) { .callout { grid-template-columns: 1fr; } .callout > svg { display: none; } }

/* Author */
.author { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.4rem, 3vw, 2.8rem); align-items: start; }
.author__photo { width: 220px; height: 220px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--line); background: var(--paper-2); box-shadow: var(--shadow-sm); }
.creds { list-style: none; margin: .4rem 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.creds li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .92rem; font-weight: 700; color: var(--lake-dark); }
@media (max-width: 680px) { .author { grid-template-columns: 1fr; } .author__photo { width: 160px; height: 160px; } }

/* Locations */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; margin-top: 1.6rem; }
.loc { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; min-height: var(--tap); text-decoration: none; color: var(--ink); font-weight: 700; }
.loc:hover { border-color: var(--lake); color: var(--lake-dark); background: var(--lake-tint); }
.loc span { color: var(--gold-deep); }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.2rem 1.1rem 0; position: relative; font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-family: var(--body); font-weight: 400; font-size: 1.8rem; color: var(--gold-deep); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--lake-dark); }
.faq .faq__a { padding: 0 0 1.2rem; color: var(--ink-soft); }
.faq .faq__a p { margin-bottom: .6em; }

/* CTA strip */
.cta-strip { text-align: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.4rem; }

/* Footer */
.site-footer { background: #13212b; color: #c9d3da; font-size: .95rem; padding-block: clamp(2.4rem, 2rem + 2vw, 3.4rem); }
.site-footer a { color: #e6edf2; }
.site-footer a:hover { color: var(--gold); }
.footer-brand { font-family: var(--display); font-size: 1.3rem; color: #fff; margin-bottom: .4em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4, .footer-areas h4 { color: #fff; font-family: var(--body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid a, .footer-areas a { text-decoration: none; }
.footer-grid a:hover, .footer-areas a:hover { text-decoration: underline; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-areas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.6rem; }
.footer-areas ul { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .45rem 1.4rem; }
.footer-net { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.4rem; padding-top: 1.2rem; font-size: .9rem; line-height: 1.8; }
.footer-net span { color: #fff; font-weight: 700; margin-right: .3rem; }
.disclaimer { border-top: 1px solid #2c3a44; margin-top: 1.6rem; padding-top: 1.6rem; font-size: .82rem; line-height: 1.55; color: #aab8c2; }
.disclaimer strong { color: #e6edf2; }
.disclaimer p { max-width: none; margin-bottom: .7em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Utilities */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Prose, tables, panels */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.ctable { width: 100%; border-collapse: collapse; margin: 1.4rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ctable caption { text-align: left; font-size: .9rem; color: var(--ink-soft); margin-bottom: .5rem; caption-side: top; }
.ctable th, .ctable td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 1.02rem; }
.ctable thead th { background: var(--lake-tint); font-family: var(--display); font-weight: 600; color: var(--lake-dark); }
.ctable tbody tr:last-child td { border-bottom: 0; }
.ctable th[scope="row"] { font-weight: 700; color: var(--ink); min-width: 12ch; }
@media (max-width: 620px) { .ctable th, .ctable td { padding: .6rem .65rem; font-size: .95rem; } }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin: 1.6rem 0; }
@media (max-width: 680px) { .twocol { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; box-shadow: var(--shadow-sm); }
.panel--good { border-top: 4px solid var(--lake); }
.panel--note { border-top: 4px solid var(--gold); }
.panel h3 { margin-top: 0; }
.panel ul { margin: 0; padding-left: 1.1rem; }
.panel li { margin-bottom: .45rem; }
.note-box { background: var(--lake-tint); border: 1px solid #c8d9e4; border-left: 4px solid var(--lake); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; margin: 1.4rem 0; }
.note-box p:last-child { margin-bottom: 0; }
.warn-box { background: #fbf0e6; border: 1px solid #ecd2bd; border-left: 4px solid var(--maple); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; margin: 1.4rem 0; }
.warn-box p:last-child { margin-bottom: 0; }

/* Key facts (answer-first summary) */
.keyfacts { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 0 0 1.8rem; box-shadow: var(--shadow-sm); }
.keyfacts__title { font-family: var(--body); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .8rem; color: var(--gold-deep); margin: 0 0 .6rem; }
.keyfacts ul { margin: 0; padding-left: 1.2rem; }
.keyfacts li { margin-bottom: .45rem; }
.keyfacts li:last-child { margin-bottom: 0; }

/* County list */
.county-list { columns: 3; column-gap: 2rem; list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.county-list li { break-inside: avoid; padding: .3rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
@media (max-width: 680px) { .county-list { columns: 2; } }

/* Sources */
.sources { border-top: 1px solid var(--line); padding-top: 1.4rem; max-width: 72ch; }
.sources h2 { font-size: var(--step-1); }
.sources ul { padding-left: 1.2rem; }
.sources li { margin-bottom: .4rem; font-size: .98rem; }
.sources p { font-size: .88rem; color: var(--ink-soft); }

/* Byline */
.byline { display: flex; gap: 16px; align-items: flex-start; max-width: 820px; margin: 0 auto; background: rgba(0,0,0,.03); border: 1px solid rgba(0,0,0,.10); border-left: 4px solid var(--lake); border-radius: 8px; padding: 18px 22px; }
.byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.byline p { font-size: .9rem; line-height: 1.55; margin: 0; opacity: .92; max-width: none; }
.byline .rev { display: block; margin-top: 5px; font-size: .82rem; opacity: .72; }
@media (max-width: 600px) { .byline { flex-direction: column; gap: 10px; } }

/* Calculators */
.calc { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--lake); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.5rem; margin: 1.4rem 0; box-shadow: var(--shadow-sm); }
.calc h3 { margin-top: 0; }
.calc .field { max-width: 420px; }
.calc__result { margin-top: 1rem; padding: 1rem 1.1rem; background: var(--lake-tint); border: 1px solid #c8d9e4; border-radius: var(--radius-sm); }
.calc__result:empty { display: none; }
.calc__result p { margin: 0 0 .4rem; }
.calc__fine { font-size: .82rem; color: var(--ink-soft); }
