/* Aspen Acres Fire — public situational awareness.
 * "Dawn over the Sangres" identity: light dawn-to-sand body with the real
 * Pueblo skyline, plus a deep slate-blue hero that matches the story/3D
 * topbars so the product family reads as one system.
 * Calm command-center rules: status colors are reserved for status;
 * everything else stays quiet. Motion is subtle and honors
 * prefers-reduced-motion. */
:root {
  --bg: #EAE5D9; --card: #ffffff; --ink: #1c1c1e; --muted: #5f6368;
  --border: #DCD5C8; --radius: 16px;
  --shadow: 0 1px 3px rgba(93,74,44,.10), 0 4px 14px rgba(93,74,44,.06);
  --shadow-lift: 0 2px 6px rgba(93,74,44,.12), 0 10px 26px rgba(93,74,44,.10);
  --accent: #1E4B8F; --accent-ink: #163a70;
  --hero-a: #17263C; --hero-b: #1E4B8F;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 14px; --sp-4: 20px; --sp-5: 32px;
  --sp-6: 52px;
  --font: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
}
#wf-scene { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,#D8E4F0 0%,#EAE5D9 55%,#E3D4BC 100%); }
#wf-scene svg { position: absolute; bottom: 0; left: 0; width: 100%;
  height: 17vh; opacity: .2; }

/* ---------------------------------------------------------------- header */
header.top {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px; display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
header.top h1 { font-size: 1rem; margin: 0; font-weight: 800;
  letter-spacing: -.01em; }
.pill { font-size: .72rem; font-weight: 700; border-radius: 999px;
  padding: 3px 11px; border: 1px solid var(--border); background: #fff;
  color: var(--muted); white-space: nowrap; }
.pill.fresh { background: #E8F5E9; color: #1B5E20; border-color: #A5D6A7; }
.pill.aging { background: #FFF8E1; color: #6d4c00; border-color: #FFE082; }
.pill.stale { background: #FFEBEE; color: #B71C1C; border-color: #EF9A9A; }

.banner { max-width: 1160px; margin: 10px auto 0; padding: 12px 16px;
  border-radius: 12px; font-weight: 600; font-size: .95rem; }
.banner-red { background: #B71C1C; color: #fff; }
.banner-amber { background: #FFF3E0; color: #7a4b00;
  border: 1px solid #FFB74D; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 1160px; margin: 0 auto; padding: var(--sp-4) 16px 60px; }
.sec { margin-top: var(--sp-6); }
#landing { margin-top: var(--sp-5); }
.sec-head { max-width: 720px; margin-bottom: var(--sp-4); }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.eyebrow-inv { color: #A9C3E8; }
.sec-head h2 { font-size: 1.5rem; margin: 0 0 6px; letter-spacing: -.02em;
  line-height: 1.2; }
.sec-sub { margin: 0; color: var(--muted); font-size: .95rem; }
.anchor { position: relative; top: -70px; display: block; height: 0; }

.duo, .trio { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .duo  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .duo > .card, .trio > .card { margin: 0; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  background: linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 100%);
  color: #F2F6FB; border-radius: 22px; padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 8px 30px rgba(23,38,60,.25);
}
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin: 4px 0 10px;
  letter-spacing: -.02em; line-height: 1.12; }
.hero-sub { margin: 0 0 var(--sp-4); max-width: 640px; font-size: 1rem;
  color: #C9D7EA; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-bottom: var(--sp-4); }
@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat { background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); border-radius: 13px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-v { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em;
  line-height: 1.2; }
.stat-l { font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #A9C3E8; }
.hero-cta { margin-bottom: var(--sp-3); }
.hero .btn-hero { background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.32); }
.hero .btn-hero-quiet { background: transparent; color: #C9D7EA;
  border-color: transparent; }
.hero-note { margin: 0; font-size: .78rem; color: #A9C3E8; }
@media (max-width: 700px) {
  .hero { padding: 20px 18px; border-radius: 18px; }
  .hero h1 { font-size: 1.45rem; margin-bottom: 6px; }
  .hero-sub { font-size: .88rem; margin-bottom: 14px; }
  .stats { gap: 8px; margin-bottom: 14px; }
  .stat { padding: 8px 11px; }
  .stat-v { font-size: 1rem; }
  .stat-l { font-size: .62rem; }
  .hero-cta { margin: 0 0 10px; gap: 8px; }
  .hero-cta .btn { min-height: 44px; padding: 8px 14px; font-size: .88rem; }
}

/* ---------------------------------------------------------------- cards */
.card { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 20px 18px; }
.card + .card { margin-top: var(--sp-3); }
.card h2 { font-size: .8rem; letter-spacing: .1em; margin: 0 0 12px;
  color: var(--muted); text-transform: uppercase; font-weight: 800; }
.card h3 { font-size: .95rem; margin: 14px 0 6px; }
.note { font-size: .82rem; color: var(--muted); background: #F6F3EC;
  border-radius: 10px; padding: 10px 13px; margin-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.trust-card { margin-top: var(--sp-5); background: #FBF9F4; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card { transition: transform .16s ease, box-shadow .16s ease; }
  .duo .card:hover, .trio .card:hover, .explore-card:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-lift); }
}

/* explore cards (links) */
.explore-card { display: flex; gap: 14px; align-items: center;
  text-decoration: none; color: var(--ink); }
.x-icon { font-size: 1.7rem; flex-shrink: 0; }
.x-body { display: flex; flex-direction: column; gap: 3px; }
.x-body strong { font-size: 1.02rem; }
.x-arrow { margin-left: auto; font-size: 1.3rem; color: var(--accent);
  flex-shrink: 0; }

/* status chip + big numbers */
.chip { display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; color: #fff;
  font-size: 1.12rem; font-weight: 800; margin: 2px 0 8px; }
.risk-headline { font-size: 1.02rem; margin: 6px 0; }
.bigrow { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.big { font-size: 2.1rem; font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em; }
.big small { font-size: .82rem; font-weight: 600; color: var(--muted);
  display: block; letter-spacing: 0; }

/* ---------------------------------------------------------------- forms */
.lbl { display: block; font-weight: 700; font-size: .88rem; margin: 12px 0 6px; }
input[type=text], input[type=number], select, textarea {
  width: 100%; min-height: 48px; font-size: 1rem; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 12px;
  font-family: var(--font); background: #fff; color: var(--ink);
}
textarea { resize: vertical; line-height: 1.5; }
select { appearance: auto; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible, .chips button:focus-visible {
  outline: 3px solid #9EC1E8; outline-offset: 1px;
  border-color: var(--accent); }
.field-row { display: flex; gap: 10px; margin-top: 8px; }
.field-row input { flex: 1; min-width: 0; }
details.adv { margin-top: 12px; font-size: .9rem; }
details.adv summary { cursor: pointer; min-height: 44px; display: flex;
  align-items: center; font-weight: 600; color: var(--muted); }
.err { color: #B71C1C; font-weight: 600; font-size: .9rem; margin-top: 8px;
  min-height: 1.2em; }
.fb-status { font-weight: 600; font-size: .9rem; min-height: 1.3em;
  margin: 8px 0 0; }
.fb-status.ok { color: #1B5E20; }
.fb-status.bad { color: #B71C1C; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 1px;
  width: 1px; opacity: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 12px;
  border: 1.5px solid var(--border); background: #fff; color: var(--ink);
  font-size: .95rem; font-weight: 700; cursor: pointer;
  text-decoration: none; font-family: var(--font); }
.btn-primary { background: var(--accent); border-color: var(--accent);
  color: #fff; }
.btn-quiet { border-color: transparent; background: transparent;
  color: var(--accent); }
.btn-mini { min-height: 34px; padding: 4px 10px; font-size: .82rem; }
.btn[disabled] { opacity: .55; cursor: default; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .12s ease, box-shadow .12s ease,
    background .12s ease; }
  .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
  .btn-primary:hover { background: var(--accent-ink); }
}
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* chips (demo locations) + segmented layer toggles */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chips button { min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; font-size: .88rem;
  font-weight: 600; cursor: pointer; color: var(--ink);
  font-family: var(--font); }
.chips button:hover { border-color: var(--accent); color: var(--accent); }
.chips.seg { margin: 0 0 12px; }
.chips.seg button[aria-pressed="true"] { background: var(--accent);
  border-color: var(--accent); color: #fff; }
.chips.seg button[aria-pressed="false"] { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .chips button { transition: background .12s ease, color .12s ease,
    border-color .12s ease; }
}

/* checklist */
label.chk { display: flex; gap: 12px; align-items: flex-start;
  padding: 9px 4px; min-height: 44px; font-size: .95rem; cursor: pointer; }
label.chk input { width: 22px; height: 22px; margin-top: 1px;
  accent-color: var(--accent); flex-shrink: 0; }
.chk-inline { padding: 0; min-height: auto; align-items: center; }

/* lists + kv + tables */
ul.tidy { margin: 6px 0 0; padding-left: 20px; }
ul.tidy li { margin-bottom: 7px; }
.kv { list-style: none; margin: 4px 0 0; padding: 0; }
.kv li { padding: 9px 0; border-bottom: 1px solid #F0EBE1;
  display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; }
.kv li:last-child { border-bottom: none; }
.kv li b { color: var(--muted); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .06em; align-self: center; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: 8px 8px 8px 0; vertical-align: top;
  border-bottom: 1px solid #F0EBE1; }
th { color: var(--muted); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; }

/* ---------------------------------------------------------------- map */
#map { height: 56vh; min-height: 340px; border-radius: 12px;
  border: 1px solid var(--border); position: relative; z-index: 1; }
#map-cover { position: absolute; inset: 0; z-index: 500; display: flex;
  align-items: flex-end; justify-content: center; padding: 14px;
  background: transparent; border-radius: 12px; pointer-events: none; }
#map-cover button { pointer-events: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 2px 0;
  font-size: .76rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; }
.swatch { width: 14px; height: 10px; display: inline-block;
  border-radius: 2px; }

/* ---------------------------------------------------------------- family */
body.family .wrap > :not(#family-view),
body.family header.top .pill { display: none; }
#family-view { display: none; }
body.family #family-view { display: block; font-size: 1.15rem;
  margin-top: var(--sp-4); }
#family-view .chip { font-size: 1.4rem; padding: 14px 26px; }
#family-view h2 { font-size: .9rem; }

.hidden { display: none !important; }
footer { max-width: 1160px; margin: 10px auto 36px; padding: 0 16px;
  font-size: .74rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
