/* BuildWatch design system
   Brand kit: Primary Green #22C55E (alerts), Deep Forest #0F1F17 (background),
   Stone #E5E7EB (surfaces/text), Slate #64748B (secondary). Typeface: Inter. */

:root {
  --forest: #0f1f17;
  --forest-2: #132820;
  --forest-3: #193428;
  --forest-4: #214234;
  --line: rgba(229, 231, 235, 0.1);
  --line-strong: rgba(229, 231, 235, 0.18);
  --stone: #e5e7eb;
  --text: #e5e7eb;
  --muted: #a3b0bd;
  --slate: #64748b;
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);
  --green-line: rgba(34, 197, 94, 0.35);
  --on-green: #0b1a12;
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1160px;
  color-scheme: dark;
}

*, *::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(--forest);
  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); text-underline-offset: 3px; }
a:hover { color: #4ade80; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; color: #fff; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; font-weight: 700; }
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(64px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }
.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(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.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: 10px; 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;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: #3dd271; color: var(--on-green); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--green-line); color: #fff; }
.btn-quiet { background: var(--forest-3); color: var(--text); }
.btn-quiet:hover { background: var(--forest-4); color: #fff; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(248, 113, 113, 0.35); }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.875rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 31, 23, 0.82); 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: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; }
.brand span span { color: var(--green); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: #fff; background: var(--forest-3); }
.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: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }
@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--forest); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-actions .signin { display: none; }
}
@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(48px, 8vw, 96px) clamp(56px, 8vw, 104px); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(34, 197, 94, 0.14), transparent 70%),
    linear-gradient(rgba(229, 231, 235, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(229, 231, 235, 0.035) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero-copy .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.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; }
.coverage-line { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.coverage-line b { color: var(--green); font-weight: 700; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Hero visual: map + notification */
.hero-visual { position: relative; }
.map-card {
  position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-left: auto; width: 100%;
  border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong);
  background: #11261b; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.map-card svg { width: 100%; height: 100%; }
.notif {
  position: absolute; left: -8px; bottom: 28px; width: min(360px, 88%);
  background: rgba(241, 243, 245, 0.96); color: #0f1f17; border-radius: 22px; padding: 14px 16px;
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55);
  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: 11px; background: var(--forest); display: grid; place-items: center; }
.notif .icon img { width: 30px; height: 30px; }
.notif .top { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; }
.notif .top span { color: #64748b; 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: #64748b; margin-top: 4px; }
@keyframes notif-in { from { opacity: 0.001; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.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); } }
@media (max-width: 960px) { .map-card { margin: 0 auto; } .notif { left: 50%; transform: translateX(-50%); animation: none; } }

/* Recent filings ticker */
.recent { border-block: 1px solid var(--line); background: var(--forest-2); }
.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; }
.recent a:hover { border-color: var(--green-line); }
.recent a b { color: var(--green); 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(--forest-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.icon-tile { width: 42px; height: 42px; border-radius: 10px; background: var(--green-soft); color: var(--green); 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: #fff; }
.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='%2322C55E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

.alert-sample { background: var(--forest-2); border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; }
.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: #fff; font-variant-numeric: tabular-nums; }
.alert-sample .foot { padding: 14px 22px; font-size: 0.85rem; color: var(--muted); }
@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; }
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-red { background: var(--red-soft); color: var(--red); }
.chip-gray { background: var(--forest-3); color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; background: var(--forest-2); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--green-line); color: var(--green); font-weight: 700; margin-bottom: 18px; }
.step p { color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* 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(--forest-2); }
.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(--forest-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(--forest-4); color: #fff; }
.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(--forest-2); }
.plan.featured { border-color: var(--green-line); background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), var(--forest-2) 45%); }
.plan .name { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: #fff; }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; 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='%2322C55E' 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(--text); }
.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(--forest); border: 1px solid var(--line-strong); color: #fff; font: 400 1rem var(--font);
}
textarea.input { min-height: 110px; resize: vertical; }
.input::placeholder { color: #6b7c8c; }
.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: #86efac; }
.form-msg.err { background: var(--red-soft); color: #fecaca; }
.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-strong); background: var(--stone); color: var(--forest); padding: 26px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.report-preview h4 { color: var(--forest); 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; }
.report-preview .ri { padding: 10px 0; border-bottom: 1px solid #d1d5db; display: grid; gap: 2px; }
.report-preview .ri span { font-size: 0.75rem; color: #475569; 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: #fff; 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: #0c1a13; }
.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); }
.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; }
.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.4rem); }
.panel { background: var(--forest-2); border: 1px solid var(--line); border-radius: var(--radius); }
.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 { height: 320px; border-radius: 10px; overflow: hidden; background: var(--forest-3); 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: #fff; text-decoration: none; }
.feed-item h3 a:hover { color: var(--green); }
.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; }
.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(--forest-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; 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: #fff; 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; } }
.auth-card { max-width: 440px; margin: 6vh auto 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; background: #fff; color: var(--forest); padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 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(--muted); margin-bottom: 12px; }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--amber-soft); color: #fde68a; 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(--forest); }
.plan-row.current { border-color: var(--green-line); }
.plan-row .plan-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-row .plan-top b { color: #fff; }
.plan-row .plan-price { font-variant-numeric: tabular-nums; color: #fff; 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-strong); border-radius: 10px; background: var(--forest); font-size: 0.82rem; color: var(--muted); }
.consent-box .check { font-size: 0.85rem; color: var(--text); }
.consent-box p b { color: var(--text); 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: #fff; }
.legal .emroniq-credit, p .emroniq-credit { margin-top: 0; }
.app-footer { border-top: 1px solid var(--line); padding-block: 18px; text-align: center; }
.app-footer .emroniq-credit { margin-top: 0; }

/* Leaflet dark tweaks */
.leaflet-container { background: #16271e; font-family: var(--font); }
.leaflet-tile-pane { filter: saturate(0.6) brightness(0.8) contrast(1.05); }
.leaflet-control-attribution { background: rgba(15, 31, 23, 0.8) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--green) !important; }
