/* Logic NHD. One stylesheet, no build step. Brand red #BC2030 on white. */

:root {
  --red: #BC2030;
  --red-600: #9E1A28;
  --red-50: #FBEDEE;
  --ink: #17191E;
  --ink-2: #3D424B;
  --ink-3: #686D76;
  --paper: #FFFFFF;
  --sand: #F7F3EC;
  --sand-2: #EDE6D9;
  --line: #E4DCCD;

  --flood: #2F6DB5;
  --dam: #4C8DC4;
  --fire: #E0542A;
  --sra: #4F8A3F;
  --fault: #6D4AA8;
  --seismic: #9A6B34;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 25, 30, .05), 0 10px 30px -12px rgba(23, 25, 30, .14);
  --gutter: 20px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-stretch: 88%; line-height: 1.08; letter-spacing: -.015em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 760; }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 94%; letter-spacing: -.005em; line-height: 1.25; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.mono, .eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow { color: var(--red); margin: 0 0 14px; }
.eyebrow-light { color: #FF8E99; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: 650 1rem/1.2 var(--font); font-stretch: 96%;
  text-decoration: none; border-radius: 10px; border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.06rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline { background: #fff; color: var(--red); border-color: rgba(188, 32, 48, .35); }
.btn-outline:hover { border-color: var(--red); background: var(--red-50); }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--red-50); }

/* ---------- notice + header ---------- */
.notice { background: var(--ink); color: #E9E6E0; font-size: .88rem; }
.notice p { margin: 0; padding: 9px var(--gutter); text-align: center; line-height: 1.45; }
.notice strong { color: #fff; font-weight: 650; }
.notice a { color: #fff; font-weight: 600; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); white-space: nowrap; }
@media (max-width: 719px) { .notice-more { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; display: block; }
.wordmark { font-weight: 800; font-stretch: 86%; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.wordmark b { color: var(--red); font-weight: 800; }
.nav { display: none; gap: 26px; margin-left: 8px; }
.nav a, .signin { text-decoration: none; font-weight: 550; font-size: .97rem; color: var(--ink-2); }
.nav a:hover, .signin:hover { color: var(--red); }
.header-cta { display: none; align-items: center; gap: 20px; margin-left: auto; }
.menu-toggle {
  margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; display: grid; place-items: center; cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; transition: transform .2s; }
.menu-bars::before { position: absolute; top: -6px; }
.menu-bars::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px var(--gutter) 18px; background: #fff; }
.mobile-nav a { display: block; padding: 12px 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--sand-2); }
.mobile-nav a:last-child { border-bottom: 0; color: var(--red); }
@media (min-width: 980px) {
  .nav { display: flex; }
  .header-cta { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff 100%),
    linear-gradient(var(--sand-2) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--sand-2) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--sand);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.08fr; gap: 56px; } }
.hero h1 em { font-style: normal; color: var(--red); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--ink-2); max-width: 34em; margin: 22px 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-size: .97rem; }
.hero-points li { display: flex; gap: 10px; align-items: baseline; }
.hero-points li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--red); transform: translateY(-1px) rotate(45deg); }

.map-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(23,25,30,.04), 0 40px 80px -40px rgba(23, 25, 30, .38);
}
.map-frame { position: relative; aspect-ratio: 4 / 3; background: #FBF8F2; }
.map-frame .hzmap { display: block; width: 100%; height: 100%; }
.map-tag {
  position: absolute; left: 12px; top: 12px;
  font: 500 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .92); color: var(--ink-3); padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line);
}
.hzmap [data-layer] { transition: opacity .35s ease; }
.hzmap.is-focus [data-layer] { opacity: .1; }
.hzmap.is-focus [data-layer].is-on { opacity: 1; }
.hzmap .pin { animation: pin-drop .7s cubic-bezier(.2, .9, .3, 1.3) .3s both; }
@keyframes pin-drop { from { transform: translateY(-36px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hzmap .pin { animation: none; } .hzmap [data-layer] { transition: none; } }

.summary { padding: 16px 16px 14px; border-top: 1px solid var(--line); }
.summary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px 10px; }
.summary-head .mono { color: var(--ink-3); }
.summary-count { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.det-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (min-width: 520px) { .det-list { grid-template-columns: 1fr 1fr; } }
.det-list button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  font: 550 .92rem/1.2 var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-height: 44px; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.det-list button:hover { border-color: #CFC4B1; }
.det-list button[aria-pressed="true"] { border-color: var(--ink); background: var(--sand); }
.det-name { flex: 1; }
.det { font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; white-space: nowrap; }
.det-in { background: var(--ink); color: #fff; }
.det-out { color: var(--ink-3); border: 1px solid var(--line); }
.det-explain { margin: 12px 4px 2px; font-size: .9rem; color: var(--ink-2); min-height: 3em; line-height: 1.5; }

/* hazard swatches, shared by the summary and the coverage cards */
.sw { flex: none; width: 16px; height: 16px; border-radius: 4px; }
.sw-flood { background: rgba(47, 109, 181, .35); box-shadow: inset 0 0 0 1.5px var(--flood); }
.sw-dam { background: repeating-linear-gradient(45deg, rgba(76,141,196,.7) 0 1.6px, rgba(76,141,196,.12) 1.6px 5px); box-shadow: inset 0 0 0 1.2px var(--dam); }
.sw-fire { background: linear-gradient(135deg, rgba(242,166,90,.7) 50%, rgba(224,84,42,.75) 50%); box-shadow: inset 0 0 0 1.2px #C9451F; }
.sw-sra { background: repeating-linear-gradient(-45deg, rgba(79,138,63,.6) 0 1.4px, rgba(79,138,63,.1) 1.4px 6px); box-shadow: inset 0 0 0 1.2px var(--sra); }
.sw-fault { background: linear-gradient(transparent 44%, var(--fault) 44% 56%, transparent 56%), rgba(109, 74, 168, .14); box-shadow: inset 0 0 0 1.2px rgba(109,74,168,.6); }
.sw-seismic { background: radial-gradient(circle, rgba(154,107,52,.75) 1.1px, transparent 1.4px) 0 0 / 5px 5px, rgba(154, 107, 52, .12); box-shadow: inset 0 0 0 1.2px rgba(154,107,52,.6); }

/* ---------- proof strip ---------- */
.proof { border-block: 1px solid var(--line); background: #fff; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; }
.proof-item { padding: 26px 18px 22px 0; }
.proof-item p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.proof-item .proof-k { font-weight: 800; font-stretch: 86%; font-size: 1.7rem; color: var(--ink); letter-spacing: -.02em; margin-bottom: 4px; }
@media (min-width: 900px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
  .proof-item { padding: 34px 28px 30px; border-left: 1px solid var(--line); }
  .proof-item:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head > p:last-child { color: var(--ink-2); font-size: 1.08rem; margin: 18px 0 0; }
.section-head-left { text-align: left; margin-left: 0; }
.fineprint { max-width: 760px; margin: 32px auto 0; text-align: center; color: var(--ink-3); font-size: .9rem; }

/* coverage */
.cov-grid { display: grid; gap: 16px; }
@media (min-width: 680px) { .cov-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cov-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.cov { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cov-sw { display: block; width: 44px; height: 44px; border-radius: 10px; margin-bottom: 18px; }
.cov h3 { margin-bottom: 10px; }
.cov p { color: var(--ink-2); font-size: .98rem; }
.cov .cov-src { font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: auto 0 14px; padding-top: 6px; }
.show-on-map {
  align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 .95rem/1.4 var(--font); color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(188,32,48,.35);
}
.show-on-map:hover { text-decoration-color: var(--red); }
.show-on-map::after { content: " \2191"; }

/* reports */
.rep-grid { display: grid; gap: 16px; }
@media (min-width: 680px) { .rep-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .rep-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.rep {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow);
}
.rep-featured { border: 2px solid var(--red); padding: 25px 23px 23px; }
.rep-kind { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tag { font-family: var(--mono); font-size: .64rem; padding: 4px 6px; border-radius: 4px; background: var(--red); color: #fff; }
.tag-new { background: var(--ink); }
.rep h3 { font-size: 1.3rem; margin-bottom: 10px; }
.rep > p { color: var(--ink-2); font-size: .98rem; }
.rep .btn { margin-top: auto; align-self: stretch; }
.checks { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 8px; font-size: .95rem; }
.checks li { position: relative; padding-left: 26px; line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23BC2030' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* how it works */
.how-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .how-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font: 500 1.05rem/1.3 var(--mono); color: var(--red); }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); }
.returning { background: var(--sand); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.returning-k { color: var(--red); margin-bottom: 10px; }
.returning h3 { font-size: 1.45rem; margin-bottom: 10px; }
.returning > p { color: var(--ink-2); }

/* wildfire */
.section-ink { background: var(--ink); color: #EDEAE4; }
.section-ink h2 { color: #fff; margin-bottom: 20px; }
.section-ink p { color: #C9C5BD; font-size: 1.05rem; max-width: 36em; }
.section-ink .btn { margin-top: 10px; }
.fire-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1000px) { .fire-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.fire-visual { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 5 / 4; background: #FBF8F2; }
.fire-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; transform: scale(2.3); transform-origin: 98% 78%; }
.fire-chip {
  position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: max-content;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem; line-height: 1.35;
  padding: 11px 14px; border-radius: 10px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
}
.fire-chip .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 0 4px rgba(224, 84, 42, .2); }

/* resources */
.res-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .res-grid { grid-template-columns: repeat(3, 1fr); } }
.res { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.res h3 { margin-bottom: 4px; }
.res > p { color: var(--ink-3); font-size: .92rem; margin-bottom: 14px; }
.res ul { list-style: none; padding: 0; margin: 0; }
.res li + li { border-top: 1px solid var(--sand-2); }
.res a {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
  text-decoration: none; font-weight: 550; font-size: .96rem; line-height: 1.35; color: var(--ink);
}
.res a:hover { color: var(--red); }
.res a::after { content: "\2197"; flex: none; color: var(--ink-3); font-weight: 400; }
.res a:hover::after { color: var(--red); }
.res .res-src { display: block; font: 500 .66rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

/* faq */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.faq-grid .section-head { margin-bottom: 0; }
.faq-grid .section-head a { color: var(--red); font-weight: 600; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 650; font-size: 1.04rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); }
.faq details a { color: var(--red); font-weight: 600; }

/* cta band + contact */
.cta-band { background: var(--red); color: #fff; padding: clamp(44px, 6vw, 72px) 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 18em; color: #fff; }
.contact { background: var(--sand); padding: clamp(44px, 6vw, 64px) 0; border-bottom: 1px solid var(--line); }
.contact-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; } }
.contact-h { font-size: 1.7rem; }
.contact-item .mono { color: var(--ink-3); margin-bottom: 6px; }
.contact-item a, .contact-item p { font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 0; }
.contact-item a { text-decoration-color: rgba(23,25,30,.3); text-underline-offset: 3px; }
.contact-item a:hover { color: var(--red); }

/* footer */
.site-footer { background: var(--ink); color: #BDB8AF; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.seal { width: 112px; height: 112px; color: #fff; display: block; margin-bottom: 14px; }
.seal-text { font: 700 15.5px var(--font); font-stretch: 90%; letter-spacing: .12em; fill: #fff; }
.footer-tag { color: #fff; font-weight: 600; margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav .mono { color: #8D887F; margin: 0 0 4px; }
.footer-nav a { color: #E7E3DC; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-nav p { margin: 0; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid #2E3139; }
.footer-legal p { margin: 0; font-size: .84rem; color: #8D887F; max-width: 70em; }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 10px 0 16px; }
.nf p { color: var(--ink-2); }
.nf .actions { justify-content: center; margin-top: 26px; }

/* SVG sprite holder */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.res-sub { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 18px 0 4px; }
.res a > span { display: block; }
