/* ADU funnel — zero-dep stylesheet. Card 9DVsFvYk; design language card J2dqJZxy.
   Light/dark aware, mobile-first, no framework.

   DESIGN LANGUAGE (card J2dqJZxy; provenance on the card, not in served
   files): warm cream ground, near-black ink, one clay accent, a display serif
   with an italic emphasis line over a tight grotesque body, uppercase
   letter-spaced pill buttons, and very generous vertical rhythm.
   ⚠️ TOKENS ONLY. No third-party copy, imagery, logo or claims live here or
   anywhere on this site — it presents as an OpsAgents product, never as a
   builder (board hard guard).

   Every text/ground pair below was contrast-checked (WCAG 2.x) before commit;
   the lowest is accent on --accent-soft at 4.61:1 (light). Re-check if you move
   a token: this page asks for a phone number under a TCPA consent line, and a
   consent line nobody can read is not consent anybody gave. */

/* Self-hosted, OFL-licensed (Fraunces, Inter Tight — Google Fonts; licence in
   fonts/OFL.txt). Self-hosting
   keeps visitor IPs off a third-party font CDN before consent. `swap` so text is
   never invisible while a face loads. */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/Fraunces-roman.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/Fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/InterTight-var.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f5f2ed;
  --surface: #fbf9f5;
  --ink: #141412;
  --ink-2: #5e5850;
  --line: #ddd6ca;
  --accent: #8f5a2b;
  --accent-ink: #fbf9f5;
  --accent-soft: #efe5d9;
  --warn: #9b3b1e;

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;
  --maxw: 760px;         /* the funnel stays narrow: it is a form, not a layout */
  --maxw-wide: 1200px;   /* header, hero and state blocks breathe */
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(56px, 9vw, 128px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141412;
    --surface: #1d1c19;
    --ink: #f5f2ed;
    --ink-2: #b8b1a6;
    --line: #34302a;
    --accent: #d39a63;
    --accent-ink: #141412;
    --accent-soft: #2b231b;
    --warn: #e7a07a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); }

/* Card OnJYAkOw: staging-only test-site banner, toggled by app.js off the
   existing analytics.js staging verdict. Never shown on prod. */
.staging-banner {
  background: var(--warn);
  color: var(--accent-ink);
  font: 600 14px/1.5 var(--font-body);
  text-align: center;
  padding: 10px var(--gutter);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--maxw-wide); }

/* shared type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); }
h1 em, h2 em { font-style: italic; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2); margin: 0 0 18px;
}

/* header */
.hdr {
  background: var(--bg);
  padding-top: env(safe-area-inset-top, 0px);
}
.hdr-in { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding-block: 22px; flex-wrap: wrap; }
.brand {
  font-family: var(--font-display); font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px;
  min-height: 44px; padding-block: 7px; /* 44px tap target (WVFE6YVy) */
}
.brand::after { /* the accent dot — a design mark, not a logo */
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px);
}
.brand-sub { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--ink-2); }
.hdr-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.hdr-link {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px; /* 44px tap target */
}
.hdr-link:hover { color: var(--accent); }
.hdr-note { color: var(--ink-2); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 560px) {
  .hdr-link.hide-sm { display: none; }
  .hdr-in { flex-wrap: nowrap; gap: 10px; }
  .brand { font-size: 16px; gap: 7px; letter-spacing: 0.06em; }
  .brand-sub { letter-spacing: 0.12em; }
  .hdr .btn { min-height: 44px; padding: 0 16px; font-size: 12px; letter-spacing: 0.1em; }
}
@media (max-width: 370px) {
  .brand { font-size: 14px; }
  /* visually hidden, not display:none, so the link's accessible name stays "OpsAgents ADU" (card kWvfe1Zz) */
  .brand-sub { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .hdr .btn { padding: 0 12px; font-size: 12px; letter-spacing: 0.08em; }
}

/* hero */
.hero { padding-block: var(--section-y) clamp(28px, 5vw, 56px); }
h1 {
  font-size: clamp(44px, 8.4vw, 104px); line-height: 0.98; letter-spacing: -0.01em;
  margin: 0 0 clamp(20px, 3vw, 32px); max-width: 20ch;
}
/* The emphasis phrase gets its own line — the two-line display rhythm this
   design language is built on. */
h1 em { display: block; }
.lede { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; margin: 0 0 28px; max-width: 46ch; }

/* state summary */
.states {
  display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: 1fr;
  margin-bottom: clamp(8px, 2vw, 16px); padding-block: clamp(8px, 2vw, 16px);
  /* margin-bottom, not a `margin` shorthand: the shorthand zeroed .wrap's auto
     side margins and pulled the grid out of the hero's column. */
}
@media (min-width: 620px) { .states { grid-template-columns: 1fr 1fr; } }
.st { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.st h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.st p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* funnel card */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px); margin: clamp(24px, 4vw, 48px) 0 var(--section-y);
  scroll-margin-top: 24px;
}
.progress { color: var(--ink-2); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; margin: 0 0 20px; letter-spacing: -0.005em; }
/* hub claim list (card ILerlWci): the .states grid held one <ul> in a 2-column
   track, so claims sat in a 317px column. The list now spans the grid and, from
   1024px, flows as a real 2-column grid on the wide measure. */
.states > .claims-list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: 1fr; }
.claims-list .claim { min-width: 0; }
@media (min-width: 1024px) {
  main.wrap:has(.claims-list) { max-width: var(--maxw-wide); }
  .states > .claims-list { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 56px); align-items: start; }
}
h2.claim-q { font-size: clamp(18px, 2vw, 22px); line-height: 1.25; margin: 0 0 8px; } /* visible FAQ question (card 243rU7Tn) */

.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr 1fr; } }

.tile {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent;
  padding: 16px 18px; cursor: pointer; color: inherit; font: inherit; min-height: 48px;
  transition: border-color .15s, background .15s;
}
.tile:hover { border-color: var(--accent); }
.tile.selected { border-color: var(--accent); background: var(--accent-soft); }
.tile-t { font-weight: 500; }
.tile-s { color: var(--ink-2); font-size: 14px; }

/* fields */
.fld { display: block; margin: 0 0 16px; }
.fld > span { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.fld input {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
/* Designed focus ring (WVFE6YVy): 3px --accent, which is >=3:1 against --bg in
   both themes (light #8f5a2b on #f5f2ed, dark #d39a63 on #141412). */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.own { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 14px; }
.own legend { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); padding: 0 6px; }
/* Hub CTA: 44px tap target (card ZMlUMmY2) */
a[data-hub-cta] { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }
.own label { display: inline-flex; align-items: center; gap: 8px; margin-right: 20px; min-height: 44px; }

/* The consent line keeps body size and full ink-2 contrast on purpose — see the
   header note. Never shrink it to "fine print". */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); margin: 8px 0 16px; }
.consent input { margin-top: 4px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--accent); }

.disclaimer { font-size: 14px; color: var(--ink-2); border-left: 3px solid var(--warn); padding-left: 14px; margin: 12px 0 0; }
.note { font-size: 14px; color: var(--warn); margin: 10px 0 0; }

/* state fact card */
.statecard, .countycard { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; background: var(--bg); }
.statecard h3, .countycard h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; }
.facts { margin: 14px 0; padding-left: 20px; }
.facts li { margin-bottom: 12px; font-size: 15px; }
.src { display: inline-block; font-size: 13px; color: var(--accent); padding-block: 4px; /* ~28px hit area */ }
.src-missing { color: var(--ink-2); font-style: italic; }
.unknown { font-size: 14px; color: var(--ink-2); margin: 12px 0 0; }

/* actions + buttons — uppercase, letter-spaced pills */
.actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  min-height: 48px; padding: 0 28px; border-radius: var(--pill); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: filter .15s, transform .15s;
}
.btn-wrap { white-space: normal; text-align: center; max-width: 100%; padding-block: 10px; line-height: 1.35; } /* long CTA labels wrap instead of overflowing 320px (card EBJhiq3f) */
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); filter: none; }

/* FAQ — generated from data.js by scripts/gen-seo.js; see index.html markers */
.faq { padding-block: 0 var(--section-y); }
.faq h2 { margin-bottom: clamp(20px, 3vw, 36px); }
.faq details { border-top: 1px solid var(--line); padding-block: 4px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; padding-block: 18px; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 22px; color: var(--accent); flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { color: var(--ink-2); font-size: 16px; margin: 0 0 20px; max-width: 64ch; }
.faq .faq-a p { margin: 0 0 10px; }

/* footer */
.ftr { border-top: 1px solid var(--line); background: var(--bg); padding-block: 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.ftr p { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }
/* Card 7M3Lg7P7: the OpsAgents AI mark beside the attribution. The on-light mark
   (teal #0E7C96, 4.33:1 on --bg #f5f2ed) is used in light mode and the on-dark
   mark (teal #5BE1F6, 11.9:1 on #141412) in dark mode, switched by <picture>.
   The mark is decorative (alt=""); the wordmark text carries the name.

   Card 7M3Lg7P7, CTO review at 60c225d. This rule used to pin BOTH axes
   (width: 22px; height: 18px), an aspect ratio of 1.2222:1. The source SVGs'
   viewBox is "11 29 175 140" -> 175/140 = 1.25:1 exactly, so the mark was
   squeezed ~2.3% vertically on every page that renders it. Pinning the height
   and letting the width follow the intrinsic ratio renders it at 22.5x18,
   which is what the artwork actually is. The <img> width/height ATTRIBUTES
   carry the same ratio (175x140) so the browser reserves the right box before
   the SVG loads -- attributes that disagreed with the CSS would just move the
   distortion into the pre-load reflow. */
.ftr .oa-attrib { display: flex; align-items: center; gap: 8px; }
.oa-mark { display: inline-flex; flex: none; }
.oa-mark img { height: 18px; width: auto; display: block; }
.small { font-size: 13px; }

/* ---------- ADU EXAMPLE SHOTS ---------- */
.shots { padding-block: clamp(8px, 2vw, 20px) clamp(20px, 3vw, 36px); }
.shots h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.shot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.shot { margin: 0; }
.shot-frame { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.shot-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.ai-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(20,20,18,.78); color: #fbf9f5;
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px; border-radius: 3px; }
.shot figcaption { padding-top: 10px; }
.shot figcaption b { display: block; font-size: 16px; }
.shot figcaption span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 720px) { .shot-row { grid-template-columns: 1fr; } }

/* ---------- ADU MOTION REEL ---------- */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.reel { padding-block: clamp(8px, 2vw, 18px); }
.reel-frame { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; }
.reel-v { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-still { display: none; width: 100%; height: 100%; object-fit: cover; }
/* Respect reduced motion: swap the loop for the still frame. */
@media (prefers-reduced-motion: reduce) {
  .reel-v { display: none; }
  .reel-still { display: block; }
}

/* Card 4I4GLvfx — the California notice at collection and the privacy link,
   both rendered at the consent step. The notice is quieter than the consent
   copy but must stay legible: it is a required disclosure, not fine print to
   be hidden, so it does not go below the body's minimum readable size. */
.notice-collect { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 12px 0 8px; }
/* Card OnJYAkOw: the contact-step restatement of the staging banner, right
   above the fields that would carry a real name/email/phone. */
.staging-notice { font-size: 14px; font-weight: 600; color: var(--warn); margin: 0 0 12px; }
.privacy-link { font-size: 14px; color: var(--ink-2); margin: 6px 0 12px; }
.privacy-link a { text-decoration: underline; }
.countycard .scope { font-size: 14px; margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--ink-2); background: var(--bg); }
