/* BuildWatch design system, light theme
   Paper #FAFCFA (page), White (surfaces), Ink #131813 (text), Green #1F8F42 (actions),
   Brand Green #22C55E (marks). Headings: Space Grotesk. Body: Inter. */

:root {
  --paper: #fafcfa;
  --surface: #ffffff;
  --surface-2: #f4f6f4;
  --surface-3: #ecefec;
  --line: #e2e6e2;
  --line-strong: #d2d8d2;
  --ink: #131813;
  --text: #2a332b;
  --muted: #5c665c;
  --slate: #64748b;
  --green: #1f8f42;
  --green-bright: #22c55e;
  --green-ink: #15803d;
  --green-soft: #e9f7ed;
  --green-line: #b9e3c6;
  --on-green: #ffffff;
  --amber: #a15c07;
  --amber-soft: #fdf5e3;
  --amber-line: #f2ddb0;
  --red: #b42318;
  --red-soft: #fdeceb;
  --shadow-sm: 0 1px 2px rgba(19, 24, 19, 0.05);
  --shadow: 0 18px 40px -28px rgba(19, 24, 19, 0.45);
  --shadow-lg: 0 40px 70px -40px rgba(19, 24, 19, 0.5);
  --radius: 14px;
  --radius-sm: 9px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 3.9rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.accent { color: var(--green); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tabular { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--line); }
.section:nth-of-type(even) { background: var(--surface-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-ink);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px var(--green-soft); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 0.97rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--on-green); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #17753a; color: var(--on-green); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--green-line); color: var(--green-ink); }
.btn-quiet { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface-3); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--red); border-color: #f0c4c0; }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.875rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250, 252, 250, 0.85); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.brand span span { color: var(--green); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions .signin { color: var(--text); text-decoration: none; font-weight: 500; padding: 8px 10px; }
.menu-toggle { display: none; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); border-radius: 9px; width: 42px; height: 42px; cursor: pointer; }
/* Desktop keeps account links in the header, so the in-menu copy stays hidden there. */
.nav-account { display: none; }
@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; z-index: 210; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; margin: 0; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .header-actions .signin { display: inline-block; padding: 8px 2px; font-size: 0.92rem; white-space: nowrap; }
  .menu-toggle { display: inline-grid; place-items: center; }
  /* Account links repeated inside the menu panel, because that is the first place people
     look once a header collapses. */
  .nav-account { display: grid; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav-account .btn { width: 100%; }
  .nav-account .btn-primary { color: #fff; }
  .nav-account a:not(.btn) { padding: 4px 8px; font-weight: 600; }
}
@media (max-width: 480px) { .header-actions .btn-primary { display: none; } .header-actions .btn-ghost { padding: 0 10px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(44px, 7vw, 84px) clamp(40px, 6vw, 72px); background: var(--paper); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 44% at 78% 12%, rgba(34, 197, 94, 0.10), transparent 70%),
    linear-gradient(rgba(19, 24, 19, 0.028) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(19, 24, 19, 0.028) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, #000 45%, transparent);
}
.hero .wrap { position: relative; display: grid; gap: 40px; }
.hero-copy { display: grid; gap: 22px; max-width: 760px; }
.hero-copy .lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 12px; }
/* On a phone the two buttons would wrap to different widths, one per line. Stack them
   as a matched pair instead: same width, same height, text centered. */
@media (max-width: 560px) {
  .cta-pair { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .cta-pair .btn { width: 100%; min-height: 52px; justify-content: center; text-align: center; }
}
.hero-note { font-size: 0.9rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.hero-note svg { width: 16px; height: 16px; color: var(--green); flex: none; }
/* "Midlands, SC" is the region; the three names after it are the counties it covers. The
   size difference is what makes that relationship readable at a glance, so the region is
   set noticeably larger and a rule separates it from the list. */
.coverage-line { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.coverage-line b { font-size: 1.15rem; letter-spacing: 0.04em; color: var(--green-ink); font-weight: 800; padding-right: 14px; border-right: 1px solid var(--green-line); }
@media (max-width: 520px) { .coverage-line { gap: 6px 10px; } .coverage-line b { flex-basis: 100%; padding-right: 0; border-right: 0; } }

/* Hero photo with the sample alert on top */
.hero-figure { position: relative; }
.photo-card {
  position: relative; width: 100%; aspect-ratio: 16 / 8; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  /* Drop your own photo at assets/hero.jpg and it replaces the illustration underneath. */
  background: url("../assets/hero.jpg") center / cover no-repeat, url("../assets/hero-placeholder.svg") center / cover no-repeat, var(--surface-3);
  box-shadow: var(--shadow-lg);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .photo-card { aspect-ratio: 4 / 3; } }
.notif {
  position: absolute; left: 24px; bottom: 24px; width: min(370px, calc(100% - 48px));
  background: rgba(255, 255, 255, 0.97); color: var(--ink); border-radius: 18px; padding: 14px 16px;
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start;
  box-shadow: 0 24px 50px -18px rgba(19, 24, 19, 0.45); border: 1px solid rgba(255, 255, 255, 0.6);
  animation: notif-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}
.notif .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; }
.notif .icon img { width: 28px; height: 28px; }
.notif .top { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; }
.notif .top span { color: var(--muted); font-weight: 500; }
.notif .msg { font-size: 1rem; line-height: 1.35; font-weight: 500; margin-top: 2px; }
.notif .meta { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
@keyframes notif-in { from { opacity: 0.001; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .notif { left: 12px; bottom: 12px; width: calc(100% - 24px); } }

/* Map illustration */
.map-card {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 480px;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow);
}
.map-card svg { width: 100%; height: 100%; }
.pulse { transform-origin: center; transform-box: fill-box; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { opacity: 0.7; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.8); } }

/* Recent filings ticker */
.recent { border-block: 1px solid var(--line); background: var(--surface); }
.recent .wrap { display: flex; gap: 20px; align-items: center; padding-block: 16px; overflow-x: auto; scrollbar-width: none; }
.recent .label { flex: none; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.recent a { flex: none; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--text); font-size: 0.92rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.recent a:hover { border-color: var(--green-line); color: var(--ink); }
.recent a b { color: var(--green-ink); font-weight: 600; }

/* Grids and cards */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.icon-tile { width: 42px; height: 42px; border-radius: 11px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; margin-bottom: 16px; }
.icon-tile svg { width: 22px; height: 22px; }

/* Pros section */
.pros-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 960px) { .pros-layout { grid-template-columns: 1fr; } }
.audience { display: grid; gap: 0; border-top: 1px solid var(--line); }
.audience div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.audience dt { font-weight: 700; color: var(--ink); }
.audience dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .audience div { grid-template-columns: 1fr; gap: 4px; } }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text); }
.checklist li::before { content: ''; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231F8F42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

.alert-sample { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.alert-sample .head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.alert-sample .head h3 { font-size: 1.25rem; }
.alert-sample .tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts div { padding: 14px 22px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.alert-sample .foot { padding: 14px 22px; font-size: 0.85rem; color: var(--muted); background: var(--surface-2); }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } .facts div:nth-child(odd) { border-right: 0; } }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; border: 1px solid transparent; }
.chip-green { background: var(--green-soft); color: var(--green-ink); border-color: var(--green-line); }
.chip-amber { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.chip-red { background: var(--red-soft); color: var(--red); border-color: #f0c4c0; }
.chip-gray { background: var(--surface-2); color: var(--muted); border-color: var(--line); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--display); font-size: 1.5rem; color: var(--green-line); font-weight: 700; display: block; margin-bottom: 12px; }
.step p { color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.how-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.how-layout .steps { grid-template-columns: 1fr; gap: 0; }
.how-layout .step { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 20px 0; display: grid; grid-template-columns: 56px 1fr; gap: 10px 18px; align-items: start; }
.how-layout .step::before { margin: 0; grid-row: span 2; font-size: 1.7rem; }
.how-layout .step p { margin-top: 4px; }
.how-layout .map-card { margin-left: auto; }
@media (max-width: 900px) { .how-layout { grid-template-columns: 1fr; } .how-layout .map-card { margin: 0 auto; } }

/* Coverage */
.county-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.county { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.county h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.county ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 860px) { .county-list { grid-template-columns: 1fr; } }

/* Pricing */
.segmented { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; gap: 4px; }
.segmented button { border: 0; background: transparent; color: var(--muted); font: 600 0.95rem var(--font); padding: 10px 18px; border-radius: 9px; cursor: pointer; }
.segmented button[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; align-items: stretch; }
.price-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }
@media (max-width: 900px) { .price-grid, .price-grid.two { grid-template-columns: 1fr; max-width: 520px; } }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.plan.featured { border-color: var(--green-line); box-shadow: var(--shadow); }
.plan .name { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.plan .price { font-family: var(--display); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); font-size: 0.95rem; min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.plan ul li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan ul li::before { content: ''; width: 16px; height: 16px; margin-top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%231F8F42' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan .btn { margin-top: auto; }

/* Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font: 400 1rem var(--font);
}
textarea.input { min-height: 110px; resize: vertical; }
.input::placeholder { color: #93a093; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 0.85rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.form-msg { font-size: 0.9rem; padding: 10px 14px; border-radius: 10px; }
.form-msg.ok { background: var(--green-soft); color: var(--green-ink); }
.form-msg.err { background: var(--red-soft); color: var(--red); }
.hp { position: absolute; left: -9999px; }

/* Report + contact band */
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } }
.report-preview { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 26px; box-shadow: var(--shadow); }
.report-preview h4 { color: var(--ink); font-size: 1.25rem; }
.report-preview .county-h { margin-top: 18px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 2px solid var(--green); padding-bottom: 4px; color: var(--ink); }
.report-preview .ri { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.report-preview .ri span { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.report-preview .ri b { font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.08rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 70ch; }

/* CTA */
.cta { text-align: center; display: grid; gap: 20px; justify-items: center; }
.cta p { color: var(--muted); max-width: 52ch; font-size: 1.1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--green-ink); }
.tagline { margin-top: 14px; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* App shell (dashboard, admin, sign-in, alert pages) */
.app-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface-2); }
.app-main { flex: 1; padding-block: 32px 64px; }
.page-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.page-title h1 { font-size: clamp(1.8rem, 3.5vw, 2.3rem); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.05rem; letter-spacing: -0.01em; }
.panel-body { padding: 20px; }
.dash { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .dash { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 20px; }
.map { position: relative; z-index: 0; isolation: isolate; height: 320px; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.watch-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.watch-row .addr { font-size: 0.85rem; color: var(--muted); }
.feed-item { display: grid; gap: 6px; }
.feed-item .top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--muted); }
.feed-item h3 { font-size: 1.05rem; }
.feed-item h3 a { color: var(--ink); text-decoration: none; }
.feed-item h3 a:hover { color: var(--green-ink); }
.feed-item p { color: var(--muted); font-size: 0.93rem; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty b { color: var(--ink); }
.plan-badge { display: inline-flex; gap: 8px; align-items: center; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.8rem; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 12px 14px; font: 600 0.95rem var(--font); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--green); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.review { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .review { grid-template-columns: 1fr; } }
/* Numbered explainer above the comment drafter, so the button is never a mystery.
   Reuses the .step cards from the home page at a tighter size, rather than redefining
   .steps and fighting that rule. */
.steps-compact { gap: 12px; list-style: none; padding: 0; margin: 0; }
.steps-compact .step { padding: 18px 18px 16px; box-shadow: none; background: var(--surface-2); }
.steps-compact .step::before { font-size: 1.1rem; margin-bottom: 8px; color: var(--green); }
.steps-compact .step h3 { font-size: 0.95rem; line-height: 1.35; }
.steps-compact .step p { font-size: 0.87rem; margin-top: 6px; line-height: 1.5; }
@media (max-width: 860px) { .steps-compact .step { padding: 16px; } }
/* The planning office to send the finished letter to. */
.office-card { padding: 16px; border: 1px solid var(--green-line); border-radius: 12px; background: var(--green-soft); display: grid; gap: 10px; }
.office-card b { color: var(--ink); }
.office-card .facts { margin: 0; }
.office-card .facts dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.office-card .facts dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }
.office-card p { margin: 0; }

/* Stance picker on the comment drafter. Radios styled as pills, so the choice is one tap
   and it is obvious which way the letter will read. */
.stance-group { display: flex; flex-wrap: wrap; gap: 8px; }
.stance { position: relative; }
.stance input { position: absolute; opacity: 0; width: 0; height: 0; }
.stance span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.9rem; font-weight: 500; cursor: pointer; }
.stance span:hover { border-color: var(--green-line); }
.stance input:checked + span { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); font-weight: 600; }
.stance input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
textarea.input { resize: vertical; min-height: 84px; font: inherit; line-height: 1.55; }

/* Dashboard upgrade nudge. Green enough to notice, quiet enough to live beside the
   alert feed every day without becoming wallpaper. */
.panel-upsell { border-color: var(--green-line); background: linear-gradient(180deg, var(--green-soft), var(--surface) 46%); }
.panel-upsell .panel-head { border-bottom-color: var(--green-line); }
.panel-upsell.is-urgent { box-shadow: 0 0 0 3px var(--green-soft); }
.report-status { font-size: 0.92rem; color: var(--text); padding: 12px 14px; border-radius: 10px; background: var(--green-soft); border: 1px solid var(--green-line); }
.report-status b { color: var(--ink); }
#report-on[hidden], #report-form[hidden], #report-locked[hidden] { display: none !important; }
.upsell-for { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
#upsell-note[hidden] { display: none; }
.business-box { display: grid; gap: 6px; justify-items: start; padding: 14px 16px; border: 1px solid var(--green-line); border-radius: 12px; background: var(--green-soft); max-width: 65ch; }
.business-name { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.business-lock { color: var(--text); }
.business-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.business-line a { font-weight: 500; }
#e-bizleak[hidden] { display: none; }
.case-history { display: grid; gap: 6px; padding: 10px 12px; border-left: 2px solid var(--green-line); background: var(--surface-2, transparent); font-size: 0.88rem; }
.case-history ol { margin: 0; padding-left: 18px; display: grid; gap: 3px; color: var(--text); }
.case-history b { color: var(--ink); font-weight: 600; }
.outcome-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.case-box { display: grid; gap: 10px; justify-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); max-width: 65ch; }
.case-timeline { margin: 0; padding-left: 20px; display: grid; gap: 8px; width: 100%; }
.case-timeline li { display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 12px; }
.case-timeline li > :nth-child(n+3) { grid-column: 2; }
.case-timeline b { color: var(--ink); }
@media (max-width: 480px) { .case-timeline li { grid-template-columns: 1fr; } .case-timeline li > :nth-child(n+3) { grid-column: 1; } }
.outcome-form { display: grid; grid-template-columns: minmax(150px, 1.2fr) 90px minmax(140px, 1.4fr) auto; gap: 6px; align-items: center; min-width: 520px; }
.outcome-form .input { min-height: 34px; padding: 4px 8px; font-size: 0.85rem; }
.promo-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 14px; font-size: 0.9rem; }
.promo-row label { font-weight: 600; color: var(--ink); }
.promo-row .input { flex: 1 1 220px; max-width: 300px; min-height: 40px; text-transform: uppercase; }
.county-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.county-filter .is-on { background: var(--green-soft); border-color: var(--green-line); color: var(--green-ink); }
.gain-list { display: grid; gap: 9px; list-style: none; padding: 0; margin: 0; font-size: 0.92rem; color: var(--text); }
.gain-list li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; }
.gain-list li::before { content: ""; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' stroke='%231f8f42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Settings page: one readable column rather than the dashboard's two. */
.settings-layout { display: grid; gap: 20px; max-width: 760px; }
.panel-danger { border-color: var(--red-soft); }
.panel-danger .panel-head h2 { color: var(--red); }
/* Say which page you are on, so the nav reads as two places instead of two buttons. */
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--green-soft); }
.auth-card { max-width: 440px; margin: 6vh auto 0; }
.auth-head { display: grid; gap: 8px; }
.auth-head h1 { font-size: 1.8rem; line-height: 1.15; }
.auth-eyebrow { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--green-ink); }
/* The strip that sends someone to the other door. Set apart from the form so it reads as
   a way out rather than one more thing to fill in. */
.auth-alt { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 14px 14px; text-align: center; font-size: 0.9rem; color: var(--muted); }
.auth-alt a { font-weight: 600; color: var(--green-ink); }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--green-ink); cursor: pointer; text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 20px 40px -14px rgba(19, 24, 19, 0.5); max-width: calc(100% - 32px); }
.toast.err { background: #fee2e2; color: #7f1d1d; }
.code-input { font: 700 1.6rem var(--mono); letter-spacing: 0.4em; text-align: center; }
.divider { height: 1px; background: var(--line); margin-block: 20px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--text); margin-bottom: 12px; }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber); font-size: 0.92rem; }

/* Plan picker rows in the dashboard */
.plan-list { display: grid; gap: 10px; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.plan-row.current { border-color: var(--green-line); background: var(--green-soft); }
.plan-row .plan-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-row .plan-top b { color: var(--ink); }
.plan-row .plan-price { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 700; white-space: nowrap; }
.plan-row .plan-price span { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.plan-row p { color: var(--muted); font-size: 0.875rem; margin-top: 2px; }
.plan-row .plan-action { justify-self: end; }
@media (max-width: 520px) { .plan-row { grid-template-columns: 1fr; } .plan-row .plan-action { justify-self: stretch; } .plan-row .plan-action .btn { width: 100%; } }

/* Text message consent (sign-in) */
.consent-box { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 0.82rem; color: var(--muted); }
.consent-box .check { font-size: 0.85rem; color: var(--text); }
.consent-box p b { color: var(--ink); font-weight: 600; }

/* EMRONIQ credit */
.emroniq-credit { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 14px; font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.emroniq-credit span { font-weight: 700; letter-spacing: 0.14em; color: var(--text); }
.emroniq-credit:hover, .emroniq-credit:hover span { color: var(--green-ink); }
.legal .emroniq-credit, p .emroniq-credit { margin-top: 0; }
.app-footer { border-top: 1px solid var(--line); padding-block: 18px; text-align: center; background: var(--surface); }
.app-footer .emroniq-credit { margin-top: 0; }

/* Leaflet */
.leaflet-container { background: var(--surface-2); font-family: var(--font); }
.leaflet-control-attribution { background: rgba(255, 255, 255, 0.85) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--green-ink) !important; }

/* Fade-in on scroll. The .reveal-on class is added by JavaScript, so without it
   everything is visible as usual. Motion is skipped for anyone who asks for less of it. */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); }
.reveal-on [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.65s cubic-bezier(0.22, 0.75, 0.3, 1) var(--reveal-delay, 0ms),
              transform 0.65s cubic-bezier(0.22, 0.75, 0.3, 1) var(--reveal-delay, 0ms);
}
.hero-copy > * { animation: hero-in 0.7s cubic-bezier(0.22, 0.75, 0.3, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.02s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.34s; }
.hero-figure { animation: hero-in 0.8s cubic-bezier(0.22, 0.75, 0.3, 1) 0.3s both; }
@keyframes hero-in { from { opacity: 0.001; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
  .hero-copy > *, .hero-figure, .notif { animation: none; }
}
.notice-ok { background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green-ink); }
