/* Zoning Alerts — MVP styling. Single stylesheet, system fonts, no build step. */

:root {
  --bg: #f7f5f0;
  --bg-card: #ffffff;
  --bg-soft: #f1ede4;
  --ink: #1a1f2c;
  --ink-soft: #4a5163;
  --muted: #6b7383;
  --line: #e5e0d2;
  --accent: #1f6f5c;        /* deep green — civic / planning vibe */
  --accent-ink: #ffffff;
  --accent-soft: #e6f1ec;
  --warn: #b35900;
  --error: #b8002a;
  --shadow-sm: 0 1px 2px rgba(20, 24, 35, 0.04), 0 1px 3px rgba(20, 24, 35, 0.06);
  --shadow-lg: 0 8px 24px rgba(20, 24, 35, 0.08), 0 2px 6px rgba(20, 24, 35, 0.04);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --max-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand__mark {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.site-nav a { color: var(--ink-soft); }

/* --- Hero --- */
.hero {
  padding: 56px 0 80px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 32px 0 48px; }
}
.hero__copy { padding-top: 8px; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 48ch;
}
.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.hero__bullets li {
  padding: 6px 0 6px 24px;
  position: relative;
}
.hero__bullets li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* --- Card --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.card__title {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.card__sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.card--confirm {
  text-align: left;
}
.confirm__check {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}
.confirm__lede {
  margin: 0 0 24px;
  color: var(--ink-soft);
}
.confirm__sample-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 12px;
}
.confirm__alert-mount { margin-bottom: 24px; }

/* --- Form --- */
.field { margin-bottom: 18px; position: relative; }
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field--error input {
  border-color: var(--error);
}
.field--error input:focus {
  box-shadow: 0 0 0 3px rgba(184, 0, 42, 0.12);
}
.field__error {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--error);
  min-height: 1em;
}
.field__legal {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}

.field__autocomplete { position: relative; }

.autocomplete-dropdown {
  list-style: none;
  margin: 4px 0 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
  z-index: 20;
}
.autocomplete-dropdown li {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
}
.autocomplete-dropdown li:hover,
.autocomplete-dropdown li.highlighted {
  background: var(--accent-soft);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, transform 60ms ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  width: 100%;
}
.btn--primary:hover { background: #195a4a; }
.btn--secondary {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--line);
}
.btn--secondary:hover { background: var(--line); }

/* --- How it works --- */
.how {
  background: var(--bg-soft);
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__title {
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.section__sub {
  margin: 0 0 28px;
  color: var(--ink-soft);
  max-width: 60ch;
}
.how__steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) {
  .how__steps { grid-template-columns: 1fr; }
}
.how__steps li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.how__steps h3 {
  margin: 12px 0 6px;
  font-size: 17px;
}
.how__steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.how__num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* --- Sample alert section --- */
.sample {
  padding: 64px 0;
}

/* --- Alert card (used both in /sample and inline post-signup) --- */
.alert-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  max-width: 720px;
}
.alert-card--sample { margin-top: 8px; }
.alert-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.alert-card__badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.alert-card__case {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.alert-card__title {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.alert-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 0 0 14px;
  padding: 0;
}
@media (max-width: 540px) {
  .alert-card__grid { grid-template-columns: 1fr; }
}
.alert-card__grid div { margin: 0; }
.alert-card__grid dt {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.alert-card__grid dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.alert-card__summary {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-soft);
}
.alert-card__disclaimer {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* --- Subscriptions list --- */
.subs {
  padding: 0 0 64px;
}
.subs__heading {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--ink-soft);
}
.subs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.subs__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.subs__item-text { display: flex; flex-direction: column; gap: 2px; }
.subs__item-text strong { font-size: 14px; }
.subs__item-text span { font-size: 13px; color: var(--muted); }
.subs__remove {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.subs__remove:hover { background: var(--bg-soft); color: var(--error); border-color: var(--error); }

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: #d8dbe4;
  padding: 40px 0;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer p { margin: 0; font-size: 14px; }
.site-footer__small { color: #8a90a0; font-size: 13px; }
