:root {
  --ink: #17342f;
  --muted: #5e706c;
  --paper: #f7f9f5;
  --white: #ffffff;
  --green: #0b5d55;
  --green-dark: #073f3a;
  --green-soft: #dcebe5;
  --line: #d8e2dd;
  --amber: #e89424;
  --amber-soft: #fff2d8;
  --red: #c74337;
  --red-soft: #fde7e3;
  --safe: #258163;
  --safe-soft: #e3f1e9;
  --shadow: 0 22px 60px rgba(16, 55, 48, 0.12);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-dark);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(11, 93, 85, 0.12);
  background: rgba(247, 249, 245, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner,
.prototype-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  color: var(--white);
}

.brand__mark svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.74rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 17px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.language-option:focus-visible,
.state-button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #79b9ff;
  outline-offset: 3px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.button--quiet {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-dark);
}

.button--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 7px 18px rgba(11, 93, 85, 0.2);
}

.button--outline {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
}

.button--dark {
  flex: 0 0 auto;
  background: var(--green-dark);
  color: var(--white);
}

.button--wide {
  width: 100%;
}

.prototype-strip {
  background: var(--green-dark);
  color: #d7f0e9;
}

.prototype-strip__inner {
  min-height: 38px;
  justify-content: center;
  font-size: 0.77rem;
  text-align: center;
}

.prototype-strip strong {
  flex: 0 0 auto;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.hero-section {
  padding-block: 70px 62px;
}

.location-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

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

h1,
h2,
h3 {
  line-height: 1.13;
  text-wrap: balance;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}

.update-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.update-time strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 28px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.status-card--normal {
  border-color: #c6e0d3;
  background: var(--safe-soft);
}

.status-card--warning {
  border-color: #f2cf95;
  background: var(--amber-soft);
}

.status-card--danger {
  border-color: #eab5ad;
  background: var(--red-soft);
}

.status-card__summary {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 34px;
}

.status-card__summary h2 {
  max-width: 710px;
  margin-bottom: 12px;
}

.status-card__summary p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: #40534f;
  font-size: 1.03rem;
}

.status-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--amber);
  font-size: 1.65rem;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(26, 58, 51, 0.1);
}

.status-card--normal .status-icon {
  color: var(--safe);
}

.status-card--danger .status-icon {
  color: var(--red);
}

.status-kicker {
  margin-bottom: 8px;
  color: #8c5814;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.status-card--normal .status-kicker {
  color: #25674f;
}

.status-card--danger .status-kicker {
  color: #9f3028;
}

.water-reading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.68);
}

.water-reading__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.water-reading > strong {
  display: block;
  margin: 10px 0 1px;
  font-size: 3.7rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.water-reading > strong small {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.demo-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(139, 84, 8, 0.12);
  color: #80500f;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-pill--neutral {
  background: var(--green-soft);
  color: var(--green-dark);
  text-transform: none;
}

.trend {
  font-size: 0.82rem;
  font-weight: 800;
}

.trend--up {
  color: #a56309;
}

.status-card--danger .trend--up {
  color: var(--red);
}

.trend--stable {
  color: var(--safe);
}

.primary-actions {
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 50px;
}

.primary-actions h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.action-list {
  margin: 0;
  padding: 0;
  counter-reset: actions;
  list-style: none;
}

.action-list li {
  position: relative;
  min-height: 50px;
  padding: 13px 0 16px 58px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

.action-list li::before {
  position: absolute;
  top: 8px;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  content: counter(actions);
  counter-increment: actions;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(15, 61, 53, 0.09);
}

.official-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 22px;
  background: var(--green-soft);
}

.official-callout p {
  margin: 3px 0 0;
  color: #405d57;
}

.section-nav {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.section-nav__inner {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 58px);
  overflow-x: auto;
  padding-block: 15px;
}

.section-nav a {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.content-section {
  padding-block: 88px;
}

.content-section--tint {
  background: #eaf1ed;
}

.content-section--dark {
  background: var(--green-dark);
  color: var(--white);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading--compact {
  max-width: 510px;
}

.section-heading--light .eyebrow {
  color: #9bd9c9;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.info-card {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 25px;
  background: var(--white);
}

.card-number {
  display: block;
  margin-bottom: 44px;
  color: #8aa19b;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.info-card h3 {
  margin-bottom: 10px;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.evacuation-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px 60px;
}

.route-card {
  display: flex;
  gap: 20px;
  grid-row: span 2;
  align-items: flex-start;
  border-radius: var(--radius-lg);
  padding: 30px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(21, 65, 56, 0.08);
}

.route-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 900;
}

.route-card h3 {
  margin: 4px 0 10px;
  font-size: 1.35rem;
}

.route-card p {
  color: var(--muted);
}

.safety-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.safety-list > div {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 700;
}

.safety-list span {
  color: var(--green);
  font-size: 1rem;
  font-weight: 900;
}

.safety-list p {
  margin: 0;
}

.sms-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(350px, 0.65fr);
  gap: 80px;
  align-items: center;
}

.phone-preview {
  border: 8px solid var(--ink);
  border-radius: 34px;
  padding: 18px;
  background: #f2f3f5;
  box-shadow: var(--shadow);
}

.phone-preview__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 26px;
  color: #6d7775;
  font-size: 0.72rem;
  font-weight: 700;
}

.message-bubble {
  border-radius: 18px 18px 18px 4px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(20, 45, 40, 0.08);
}

.message-bubble strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.message-bubble p {
  margin-bottom: 0;
  color: #263b37;
  font-size: 0.9rem;
}

.sms-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.copy-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--green);
  font-size: 0.75rem;
  text-align: center;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.help-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 25px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.help-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.13);
}

.help-card--urgent {
  background: #a93630;
}

.help-card span,
.help-card small {
  color: #cce1dc;
}

.help-card--urgent span,
.help-card--urgent small {
  color: #ffe0dc;
}

.help-card strong {
  font-size: 2.25rem;
  line-height: 1;
}

.prototype-controls {
  padding-block: 38px 70px;
}

.prototype-controls details {
  border: 1px dashed #99aaa5;
  border-radius: var(--radius-sm);
  background: #eef2ef;
}

.prototype-controls summary {
  cursor: pointer;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.control-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px dashed #aebcb8;
  padding: 20px;
}

.control-panel p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.state-buttons {
  display: flex;
  gap: 7px;
}

.state-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.state-button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 24px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.language-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 30px 18px;
  background:
    radial-gradient(circle at 14% 20%, rgba(159, 218, 201, 0.35), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(243, 199, 115, 0.22), transparent 30%),
    #eef3ef;
}

.language-gate.is-hidden {
  display: none;
}

.language-panel {
  width: min(720px, 100%);
  border: 1px solid rgba(11, 93, 85, 0.11);
  border-radius: 30px;
  padding: clamp(26px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.brand--gate {
  margin-bottom: 46px;
}

.gate-copy {
  margin-bottom: 26px;
}

.gate-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.gate-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.language-option:hover {
  border-color: #88ada4;
  background: #f4f8f5;
}

.language-option.is-selected {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  background: #edf6f2;
}

.language-option strong,
.language-option small {
  display: block;
}

.language-option small {
  margin-top: 2px;
  color: var(--muted);
}

.language-option__check {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: 0.76rem;
}

.language-option.is-selected .language-option__check {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.privacy-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 900px) {
  .status-card {
    grid-template-columns: 1fr;
  }

  .water-reading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px 20px;
    border-top: 1px solid rgba(24, 54, 48, 0.1);
  }

  .water-reading__top {
    grid-column: 1 / -1;
  }

  .water-reading > strong {
    font-size: 3rem;
  }

  .checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .evacuation-layout,
  .sms-layout {
    grid-template-columns: 1fr;
  }

  .route-card {
    grid-row: auto;
  }

  .sms-layout {
    gap: 10px;
  }

  .phone-preview {
    width: min(520px, 100%);
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand small,
  .button--quiet span:not(:first-child) {
    display: none;
  }

  .button--quiet {
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .prototype-strip__inner {
    display: block;
    padding-block: 8px;
    line-height: 1.35;
  }

  .prototype-strip strong {
    display: block;
    margin-bottom: 2px;
  }

  .hero-section {
    padding-block: 46px 50px;
  }

  .location-row {
    display: block;
  }

  .update-time {
    align-items: flex-start;
    margin-top: 14px;
  }

  .status-card__summary {
    display: block;
    padding: 24px;
  }

  .status-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
  }

  .status-card__summary h2 {
    font-size: 1.7rem;
  }

  .water-reading {
    padding: 22px 24px;
  }

  .primary-actions {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 38px;
  }

  .official-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .section-nav__inner {
    justify-content: flex-start;
  }

  .content-section {
    padding-block: 64px;
  }

  .checklist-grid,
  .help-grid,
  .safety-list {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 0;
  }

  .card-number {
    margin-bottom: 28px;
  }

  .evacuation-layout {
    gap: 18px;
  }

  .route-card {
    display: block;
    padding: 24px;
  }

  .route-card__icon {
    margin-bottom: 18px;
  }

  .sms-buttons {
    grid-template-columns: 1fr;
  }

  .control-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .state-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .state-button {
    padding-inline: 8px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-grid {
    grid-template-columns: 1fr;
  }

  .brand--gate {
    margin-bottom: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
