:root {
  color-scheme: light;
  --bg: #eef2f4;
  --surface: #ffffff;
  --surface-soft: #f6f8fa;
  --ink: #16232c;
  --muted: #5b6a75;
  --line: #d8e1e7;
  --brand: #0a638d;
  --brand-dark: #073f5f;
  --accent: #b82532;
  --accent-dark: #8f1d27;
  --focus: #0e7fb4;
  --shadow: 0 18px 54px rgba(21, 35, 45, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 225, 231, 0.9);
  backdrop-filter: blur(12px);
}

.site-header.compact {
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
}

.brand img {
  display: block;
  width: 42px;
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #344754;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.nav-button,
.button-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nav-button:hover,
.button-link:hover,
button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button-link.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.46);
}

.button-link.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.64);
}

button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.home-hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 96px max(18px, calc((100vw - 1180px) / 2)) 76px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(10, 29, 43, 0.92) 0%, rgba(10, 29, 43, 0.72) 43%, rgba(10, 29, 43, 0.28) 100%),
    url("/assets/fire-district-map.jpg") center / cover no-repeat,
    #122c3d;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero .eyebrow,
.get-intro .eyebrow {
  color: #ff6f7a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-status {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 900px;
  margin-top: 70px;
}

.hero-status span,
.trust-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-status span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.section,
.split-section,
.app-section,
.get-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 74px 0 40px;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.form-panel,
.next-panel,
.deployment-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(21, 35, 45, 0.08);
}

.feature-card {
  padding: 22px;
}

.feature-card p,
.split-section p,
.app-section p,
.next-panel li,
.get-intro p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 32px;
  align-items: start;
  padding: 52px 0;
  border-top: 1px solid rgba(216, 225, 231, 0.8);
}

.deployment-list {
  display: grid;
}

.deployment-list div {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.deployment-list div:last-child {
  border-bottom: 0;
}

.deployment-list strong {
  font-size: 0.98rem;
}

.deployment-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.app-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  margin-bottom: 62px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-section h2 {
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.app-section p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 26px 18px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer span {
  color: var(--ink);
  font-weight: 800;
}

.site-footer a {
  text-decoration: none;
}

.get-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
  gap: 28px;
  padding: 44px 0 70px;
}

.get-intro {
  min-height: 560px;
  padding: 38px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(9, 38, 57, 0.92), rgba(9, 38, 57, 0.78)),
    url("/assets/fire-district-map.jpg") center / cover no-repeat,
    var(--brand-dark);
  border-radius: 8px;
}

.get-intro h1 {
  max-width: 6ch;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
}

.get-intro p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.trust-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.trust-list span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.form-panel {
  padding: 28px;
}

.request-form {
  display: grid;
  gap: 18px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label span {
  display: block;
  margin-bottom: 7px;
  color: #2b3d49;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cbd7df;
  border-radius: 8px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(14, 127, 180, 0.25);
  outline-offset: 2px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice {
  display: flex;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.choice.compact {
  min-height: 62px;
  align-items: center;
}

.choice input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  accent-color: var(--brand);
}

.choice strong {
  display: block;
  font-size: 0.92rem;
}

.choice:has(input:checked) {
  background: #e8f3f8;
  border-color: #83bbd5;
  box-shadow: inset 0 0 0 1px #83bbd5;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.terms input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.form-actions {
  display: grid;
  gap: 10px;
  align-items: start;
}

#formMessage {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

#formMessage.success {
  color: #116329;
  font-weight: 800;
}

#formMessage.error {
  color: #a31824;
  font-weight: 800;
}

.next-panel {
  margin-top: 22px;
  padding: 20px;
  background: var(--surface-soft);
  box-shadow: none;
}

.next-panel h2 {
  margin-bottom: 12px;
  font-size: 1.12rem;
}

.next-panel ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.screen-reader-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .feature-grid,
  .split-section,
  .app-section,
  .get-shell {
    grid-template-columns: 1fr;
  }

  .get-intro {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.88rem;
  }

  .nav-button {
    min-height: 40px;
    padding: 0 12px;
  }

  .home-hero {
    min-height: 610px;
    padding: 72px 18px 42px;
  }

  h1 {
    font-size: 4rem;
  }

  .hero-status,
  .choice-grid,
  .choice-grid.three {
    grid-template-columns: 1fr;
  }

  .hero-status {
    display: grid;
    margin-top: 42px;
  }

  .section,
  .split-section {
    padding: 42px 0 24px;
  }

  .app-section,
  .form-panel,
  .get-intro {
    padding: 20px;
  }
}
