:root {
  --ink: #0d2f4f;
  --muted: #60768a;
  --line: #757575;
  --panel: #ffffff;
  --soft: #e3f0fa;
  --blue: #0e355a;
  --blue-2: #78b8df;
  --alert: #ff9fa8;
  --green: #8aa64c;
  --bg: #ffffff;
  --shadow: 0 18px 55px rgba(13, 47, 79, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Onest", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: block;
  background: white;
}

.side-nav {
  position: fixed;
  left: 50%;
  bottom: 48px;
  top: auto;
  transform: translateX(-50%);
  z-index: 400;
  width: max-content;
  min-width: 0;
  max-width: calc(100vw - 96px);
  height: 62px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.96), transparent 38%),
    radial-gradient(circle at 75% 120%, rgba(182, 216, 242, 0.38), transparent 44%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(117, 117, 117, 0.14),
    0 22px 70px rgba(13, 47, 79, 0.18);
  backdrop-filter: blur(30px) saturate(1.9);
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  box-sizing: border-box;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
  overflow: visible;
}

.side-nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.76), transparent 24% 72%, rgba(255,255,255,0.36)),
    radial-gradient(circle at 42% 0%, rgba(255,255,255,0.72), transparent 32%);
  mix-blend-mode: screen;
  opacity: 0.68;
}

.nav-liquid-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 0;
  width: var(--nav-indicator-width, 58px);
  height: 42px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.48)),
    radial-gradient(circle at 35% 20%, rgba(255,255,255,1), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.96),
    inset 0 -1px 0 rgba(13,47,79,0.08),
    0 12px 26px rgba(13,47,79,0.1);
  transform: translate3d(var(--nav-indicator-x, 130px), -50%, 0);
  transition:
    transform 520ms cubic-bezier(0.18, 0.9, 0.22, 1),
    width 520ms cubic-bezier(0.18, 0.9, 0.22, 1),
    opacity 220ms ease;
}

.side-nav:hover {
  transform: translateX(-50%) translateY(-2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.52)),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 1), transparent 38%),
    radial-gradient(circle at 75% 120%, rgba(182, 216, 242, 0.48), transparent 44%);
}

.brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 0;
}

.brand-logo {
  display: block;
  width: 82px;
  height: auto;
  flex: 0 0 auto;
}

.nav-toggle,
.nav-footer {
  display: none;
}

.nav-toggle {
  margin-left: auto;
}

.side-nav.collapsed .brand-logo,
.side-nav.collapsed .nav-item b,
.side-nav.collapsed .nav-footer {
  display: none;
}

.side-nav.collapsed .nav-toggle {
  transform: rotate(180deg);
}

nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}

.nav-item {
  position: relative;
  width: auto;
  min-height: 38px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-item img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-item b {
  display: inline-block;
  font-weight: 400;
  transition: font-weight 180ms ease, letter-spacing 180ms ease;
}

.nav-item b::after {
  content: attr(data-label);
  display: block;
  height: 0;
  overflow: hidden;
  font-weight: 600;
  visibility: hidden;
}

.nav-item.active b,
.nav-item:focus-visible b {
  font-weight: 600;
}

.nav-item.active,
.nav-item:hover {
  background: transparent;
  transform: translateY(-1px);
}

.nav-item:active {
  transform: translateY(0) scale(0.97);
}

.nav-search {
  position: relative;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72);
  overflow: hidden;
  transition:
    width 520ms cubic-bezier(0.18, 0.9, 0.22, 1),
    background 240ms ease,
    box-shadow 240ms ease;
}

.nav-search.open {
  width: 260px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.56)),
    radial-gradient(circle at 20% 0%, rgba(255,255,255,1), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.96),
    0 14px 36px rgba(13,47,79,0.12);
}

.nav-search-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  background: transparent;
  line-height: 1;
}

.nav-search-toggle svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.nav-search input {
  width: 0;
  max-width: 0;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  opacity: 0;
  font-size: 14px;
  pointer-events: none;
  transition: width 420ms cubic-bezier(0.18, 0.9, 0.22, 1), max-width 420ms cubic-bezier(0.18, 0.9, 0.22, 1), opacity 180ms ease;
}

.nav-search.open input {
  width: 190px;
  max-width: 190px;
  padding-right: 14px;
  opacity: 1;
  pointer-events: auto;
}

.nav-search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  gap: 6px;
  max-height: min(320px, 46vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 18px 46px rgba(13,47,79,0.16);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease;
}

.nav-search.open.has-suggestions .nav-search-suggestions {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-suggestion {
  width: 100%;
  min-height: 44px;
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-size: 12px;
  line-height: 1.25;
}

.nav-suggestion:hover {
  background: rgba(227,240,250,0.82);
}

.nav-suggestion.empty {
  cursor: default;
}

.nav-suggestion.empty:hover {
  background: transparent;
}

.nav-suggestion strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.nav-suggestion span {
  color: var(--muted);
}

.content {
  min-width: 0;
  padding: 0 100px;
  background: white;
  overflow-x: clip;
}

.app-topbar,
.welcome-header,
.search-results {
  display: none;
}

/* legacy topbar retained for secondary pages */
/* .app-topbar {
  display: grid;
  grid-template-columns: minmax(0, 798px) 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 12px;
} */

.mobile-menu {
  display: none !important;
}

.global-search {
  width: 100%;
  max-width: 100%;
  position: relative;
  display: block;
}

.global-search span {
  position: absolute;
  left: calc(50% - 128px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: #c9c9c9;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.global-search input,
select,
.chat-form input {
  width: 100%;
  height: 50px;
  min-height: 50px;
  border: 1px solid #757575;
  border-radius: 8px;
  padding: 0 24px;
  color: var(--ink);
  background: white;
  outline: none;
}

.chat-form input {
  font-size: 14px;
  border-radius: 58px;
}

.global-search input {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
}

.global-search input::placeholder {
  color: #c9c9c9;
}

.global-search input:focus,
select:focus,
.chat-form input:focus {
  border-color: #757575;
  box-shadow: 0 0 0 3px rgba(100, 158, 206, 0.18);
}

.icon-button,
.secondary-button,
.primary-button,
.ghost-button,
.feedback-button,
.chat-form button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 8px;
  height: 50px;
  min-height: 50px;
  font-weight: 500;
}

.icon-button {
  width: 50px;
  display: grid;
  place-items: center;
}

.side-nav .nav-toggle {
  display: none;
}

.secondary-button,
.primary-button,
.ghost-button,
.feedback-button,
.chat-form button {
  padding: 0 14px;
}

.primary-button,
.chat-form button,
.feedback-button {
  background: var(--blue);
  border-color: #757575;
  color: white;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
}

.feedback-button {
  width: 154px;
  grid-column: 3;
  justify-self: end;
}

.chat-form button {
  position: relative;
  width: 50px;
  padding: 0;
  border-radius: 47px;
  color: transparent;
  font-size: 0;
}

.chat-form button::before {
  content: "↑";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.ghost-button {
  color: var(--blue);
  border-color: #757575;
  background: transparent;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
}

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

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.welcome-header {
  margin-bottom: 26px;
}

.welcome-header h1 {
  margin: 0 0 6px;
  color: #000;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.welcome-header p {
  margin: 0;
  color: #000;
  font-size: 13px;
  font-weight: 400;
}

.app-page {
  display: none;
}

.app-page.active-page {
  display: block;
}

.alert-marquee {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 36px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #d9e2b9;
  color: #0d3b66;
  font-size: 13px;
  font-weight: 400;
  line-height: 32px;
  white-space: nowrap;
}

.alert-marquee[hidden] {
  display: none;
}

.alert-marquee:focus,
.alert-marquee:focus-visible,
.alert-marquee span:focus,
.alert-marquee span:focus-visible {
  outline: 0;
  box-shadow: none;
}

.alert-marquee span {
  display: inline-block;
  min-width: 200%;
  animation: marqueeDrift 88s linear infinite;
}

.marquee-separator {
  width: 15px;
  height: 15px;
  margin: 0 16px;
  vertical-align: -2px;
}

.alert-marquee:hover span {
  animation-play-state: paused;
}

@keyframes marqueeDrift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.landing-hero {
  padding-top: 84px;
  text-align: center;
}

.weather-pill {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 26px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: #000;
  font-size: 12px;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.weather-pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 99, 111, 0.16) 0 14%, rgba(120, 184, 223, 0.34) 25%, rgba(14, 53, 90, 0.16) 38%, transparent 50%, rgba(255, 99, 111, 0.16) 64%, rgba(120, 184, 223, 0.34) 75%, rgba(14, 53, 90, 0.16) 88%, transparent 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  opacity: 0;
  will-change: transform;
}

.weather-pill:hover {
  border-color: rgba(14, 53, 90, 0.78);
  box-shadow: 0 10px 28px rgba(13, 47, 79, 0.08);
}

.weather-pill:hover::before {
  opacity: 1;
  animation: weatherPillFlow 3.2s linear infinite;
}

.weather-pill span,
.weather-pill i {
  position: relative;
  z-index: 1;
}

.weather-pill i {
  color: var(--blue);
  font-style: normal;
}

@keyframes weatherPillFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

.landing-hero h1 {
  margin: 0;
  color: #000;
  font-size: clamp(38px, 3.2vw, 46px);
  line-height: 1.32;
  font-weight: 400;
}

.hero-type-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 1.32em;
  flex-wrap: wrap;
}

#typewriterText {
  display: inline-block;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

#typewriterText.is-cleared {
  opacity: 0;
  transform: translateY(4px);
}

.hero-wordmark {
  width: auto;
  height: 1.18em;
  transform: translateY(0.03em);
}

#typewriterText::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 6px;
  vertical-align: -0.08em;
  background: #0d2f4f;
  animation: caretBlink 900ms steps(1) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.weather-intake {
  position: relative;
  z-index: 3;
  width: min(1418px, calc(100% - 32px));
  min-height: 620px;
  margin: 76px auto 0;
  display: grid;
  grid-template-columns: minmax(190px, 262px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.weather-intake-copy {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 12px 0 0;
}

.active-page .weather-intake-copy > div {
  opacity: 0;
  transform: translateY(18px);
  animation: intakeCopyReveal 720ms cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
}

.active-page .weather-intake-copy > div:nth-child(2) {
  animation-delay: 120ms;
}

.active-page .weather-intake-copy > div:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes intakeCopyReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.weather-intake-copy h2 {
  margin: 0 0 12px;
  color: #111;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 500;
}

.weather-intake-copy .eyebrow {
  color: #8a9bab;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.weather-intake-copy > div > p:not(.eyebrow) {
  margin: 0;
  color: #334b61;
  font-size: 14px;
  line-height: 1.55;
}

.weather-mode-controls {
  display: flex;
  gap: 10px;
}

.weather-mode-controls button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(117, 117, 117, 0.4);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.weather-mode-controls button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 20;
  width: max-content;
  max-width: 150px;
  padding: 6px 9px;
  border: 1px solid rgba(117, 117, 117, 0.24);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(13, 47, 79, 0.1);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.weather-mode-controls button:hover::after,
.weather-mode-controls button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.weather-mode-controls button:hover,
.weather-mode-controls button.active {
  transform: translateY(-2px);
  background: rgba(227, 240, 250, 0.66);
  box-shadow: 0 8px 22px rgba(13, 47, 79, 0.08);
}

.weather-mode-controls button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.weather-partner {
  display: grid;
  gap: 10px;
  margin-top: auto;
  align-self: start;
  width: 180px;
  justify-items: start;
}

.weather-partner span {
  width: 100%;
  color: #8797a6;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.weather-partner img {
  width: 132px;
  height: auto;
  display: block;
  margin-left: -7px;
}

.weather-intake-scene {
  position: relative;
  height: 620px;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(390px, 470px) minmax(300px, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 42px;
  border: 1px solid #d8e8f3;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(238, 248, 255, 0.96), rgba(220, 239, 251, 0.86)),
    #e7f5fd;
  box-shadow: none;
  transition: background 1800ms ease, box-shadow 1800ms ease;
}

.weather-intake-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(7,24,42,0.3));
  opacity: 0;
  transition: opacity 1600ms ease 300ms;
}

.weather-intake-form {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  min-height: 0;
  display: grid;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  border: 1px solid #d4e2ec;
  border-radius: 22px;
  background: #f8fbfd;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.weather-intake-form::after {
  content: none;
}

.weather-intake-form label,
.weather-intake-form legend {
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
}

.weather-intake-form label {
  gap: 6px;
}

.weather-intake-form select {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 60px 0 16px;
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  border: 1px solid rgba(117, 117, 117, 0.58);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.82);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2f4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
  font-size: 13px;
}

.weather-intake-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.weather-intake-form legend {
  margin-bottom: 7px;
  color: #6f8293;
  font-weight: 400;
}

.affected-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.affected-options label {
  display: block;
}

.affected-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.affected-options span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(117, 117, 117, 0.4);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 400;
}

.affected-options input:checked + span {
  color: #26384a;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(13, 47, 79, 0.08);
  transform: translateY(-1px);
}

.affected-options label:nth-child(1) input:checked + span {
  background: #cfe8f8;
}

.affected-options label:nth-child(2) input:checked + span {
  background: #f8d9e7;
}

.affected-options label:nth-child(3) input:checked + span {
  background: #dcd8f5;
}

.affected-options label:nth-child(4) input:checked + span {
  background: #d9efdc;
}

.affected-options span {
  transition:
    transform 220ms cubic-bezier(0.2, 0.85, 0.25, 1),
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .active-page .weather-intake-copy > div {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .weather-intake-scene[data-weather-mode="sun"] .scene-sun {
    animation: none;
  }
}

.weather-intake-form .risk-actions {
  justify-content: flex-start;
  margin-top: 2px;
}

.weather-intake-form .primary-button {
  width: auto;
  min-width: 190px;
  height: 46px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(13, 47, 79, 0.18);
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: 13px;
  font-weight: 500;
}

.weather-intake-answer {
  max-height: 410px;
  overflow: auto;
  padding-right: 4px;
}

.weather-intake-answer .action-item {
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.55;
}

.weather-intake-result {
  position: relative;
  z-index: 5;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #d4e2ec;
  border-radius: 22px;
  color: var(--ink);
  background: #f8fbfd;
}

.weather-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dce8f0;
}

.weather-result-head p {
  margin: 0 0 5px;
  color: #8797a6;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
}

.weather-result-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
}

.copy-recommendation {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #c9d8e3;
  border-radius: 50%;
  color: var(--ink);
  background: white;
}

.copy-recommendation svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.copy-recommendation.copied {
  color: white;
  background: var(--blue);
}

.weather-intake-result .weather-intake-answer {
  flex: 1;
  margin-top: 22px;
}

.weather-intake-result small {
  margin-top: 18px;
  color: #7b8d9c;
  font-size: 11px;
  line-height: 1.4;
}

.recommendation-loading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #536b7e;
}

.recommendation-loading span {
  margin-right: 5px;
}

.recommendation-loading i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8eb6d3;
  animation: typingPulse 900ms ease-in-out infinite;
}

.recommendation-loading i:nth-of-type(2) {
  animation-delay: 140ms;
}

.recommendation-loading i:nth-of-type(3) {
  animation-delay: 280ms;
}

.scene-sun,
.scene-clouds,
.weather-intake-scene .weather-canvas {
  position: absolute;
  pointer-events: none;
}

.scene-sun {
  top: -108px;
  right: -92px;
  z-index: 2;
  width: 238px;
  height: 238px;
  border-radius: 50%;
  opacity: 0;
  transform: translate(34px, -28px) scale(0.82);
  background:
    radial-gradient(circle at 42% 48%, #fffef1 0 16%, #fff0a8 38%, #ffc95f 70%, #f3a72f 100%);
  box-shadow:
    0 0 0 34px rgba(255, 235, 166, 0.16),
    0 0 110px 45px rgba(255, 205, 92, 0.42),
    0 0 220px 90px rgba(255, 225, 144, 0.2);
  mix-blend-mode: normal;
  transition: opacity 1400ms ease 350ms, transform 1800ms cubic-bezier(0.18, 0.9, 0.22, 1) 350ms;
}

.scene-sun::before,
.scene-sun::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.scene-sun::before {
  top: 54%;
  right: 58%;
  width: 560px;
  height: 310px;
  transform: rotate(-18deg);
  transform-origin: right center;
  background:
    linear-gradient(101deg, transparent 0 18%, rgba(255, 245, 202, 0.28) 38%, transparent 58%),
    linear-gradient(96deg, transparent 0 42%, rgba(255, 231, 152, 0.2) 56%, transparent 72%);
  filter: blur(10px);
}

.scene-sun::after {
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset -18px -22px 35px rgba(230, 151, 31, 0.18);
}

.scene-clouds {
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: translateX(10%);
  transition: opacity 900ms ease, transform 1800ms cubic-bezier(0.18, 0.9, 0.22, 1);
}

.scene-clouds i {
  position: absolute;
  display: block;
  width: 260px;
  height: 92px;
  border-radius: 999px;
  background: rgba(92, 112, 132, 0.42);
  filter: blur(2px);
}

.scene-clouds i::before,
.scene-clouds i::after {
  content: "";
  position: absolute;
  bottom: 14px;
  border-radius: 50%;
  background: inherit;
}

.scene-clouds i::before {
  left: 42px;
  width: 106px;
  height: 106px;
}

.scene-clouds i::after {
  right: 32px;
  width: 136px;
  height: 136px;
}

.scene-clouds i:nth-child(1) { top: 45px; right: -45px; }
.scene-clouds i:nth-child(2) { top: 165px; right: 115px; transform: scale(0.72); opacity: 0.72; }
.scene-clouds i:nth-child(3) { top: 275px; right: -30px; transform: scale(0.9); opacity: 0.48; }

.weather-intake-scene .weather-canvas {
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 1200ms ease 1100ms;
}

.weather-intake-scene[data-weather-mode="rain"] {
  background:
    linear-gradient(180deg, rgba(105, 128, 151, 0.98), rgba(24, 47, 72, 0.94)),
    #6f879d;
}

.weather-intake-scene[data-weather-mode="rain"]::after {
  opacity: 0.55;
}

.weather-intake-scene[data-weather-mode="rain"] .scene-clouds,
.weather-intake-scene[data-weather-mode="snow"] .scene-clouds {
  opacity: 1;
  transform: translateX(0);
}

.weather-intake-scene[data-weather-mode="rain"] .rain-canvas,
.weather-intake-scene[data-weather-mode="snow"] .snow-canvas {
  opacity: 0.78;
}

.weather-intake-scene[data-weather-mode="snow"] {
  background:
    linear-gradient(180deg, rgba(218, 234, 246, 0.98), rgba(151, 177, 197, 0.94)),
    #dcebf5;
}

.weather-intake-scene[data-weather-mode="snow"] .scene-clouds i {
  background: rgba(231, 240, 247, 0.72);
}

.weather-intake-scene[data-weather-mode="sun"] {
  background:
    linear-gradient(180deg, rgba(167, 220, 251, 0.98), rgba(234, 248, 255, 0.94)),
    #b9e3fa;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    0 28px 90px rgba(85, 166, 214, 0.18);
}

.weather-intake-scene[data-weather-mode="sun"] .scene-sun {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  animation: sunCornerDrift 24s ease-in-out 1800ms infinite alternate;
}

@keyframes sunCornerDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-18px, 12px) scale(1.025);
  }
  100% {
    transform: translate(-34px, 4px) scale(1.01);
  }
}

.home-hero {
  display: none;
}

.today-weather {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.today-weather span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.today-weather strong {
  font-size: 40px;
  line-height: 0.95;
  font-weight: 700;
}

.hero-card-window {
  position: absolute;
  inset: 20px 96px 20px 395px;
  overflow: hidden;
}

.alert-strip {
  height: 100%;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.alert-strip::-webkit-scrollbar {
  display: none;
}

.alert-card {
  width: 169px;
  flex: 0 0 169px;
  height: 216px;
  min-height: 216px;
  display: grid;
  grid-template-rows: 16px 42px 28px minmax(42px, 1fr) 30px;
  gap: 6px;
  padding: 14px;
  color: #07131e;
  background: #bee1f6;
  border-radius: 16px;
}

.alert-card.danger {
  background: var(--alert);
}

.still-active {
  justify-self: end;
  position: relative;
  font-size: 7px;
  color: #23313c;
}

.still-active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--green);
}

.alert-card h3 {
  align-self: end;
  margin: 0;
  font-size: 12px;
  line-height: 1.1;
}

.alert-card p {
  margin: 0;
  font-size: 9px;
  line-height: 1.18;
}

.alert-card small {
  font-size: 7px;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.alert-card button {
  width: 35px;
  height: 30px;
  align-self: end;
  margin-top: 0;
  justify-self: center;
  border-radius: 8px;
  border: 1px solid #757575;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
}

.hero-next,
.risk-next {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  color: white;
  font-size: 32px;
  font-weight: 500;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 18px;
  display: none;
}

.home-risk-panel {
  margin-top: 112px;
}

.home-intelligence,
.home-brief {
  max-width: 1418px;
  margin: 34px auto 0;
}

.home-intelligence {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr 0.88fr;
  gap: 18px;
}

.home-brief {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) repeat(2, minmax(220px, 0.95fr));
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

.glass-panel {
  position: relative;
  overflow: hidden;
  min-height: 182px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.68);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(239,247,253,0.5)),
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.94), transparent 38%),
    radial-gradient(circle at 100% 110%, rgba(120,184,223,0.2), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.94),
    0 22px 70px rgba(13,47,79,0.1);
  backdrop-filter: blur(26px) saturate(1.65);
  -webkit-backdrop-filter: blur(26px) saturate(1.65);
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.42), transparent 34% 72%, rgba(255,255,255,0.24));
}

.glass-panel p,
.brief-copy p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.glass-panel h2,
.brief-copy h2 {
  margin: 0;
  color: #07131e;
  font-size: 26px;
  line-height: 1.08;
}

.priority-list,
.mini-metrics,
.contact-stack {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.priority-list {
  display: grid;
  gap: 12px;
}

.priority-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #123d63;
  font-size: 15px;
}

.priority-list b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 12px;
}

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

.mini-metrics span {
  min-height: 76px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.48);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62);
}

.mini-metrics strong {
  font-size: 22px;
  color: var(--blue);
}

.mini-metrics small {
  color: var(--muted);
  font-size: 11px;
}

.contact-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-stack span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255,255,255,0.56);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.66);
  font-size: 13px;
}

.brief-copy {
  display: grid;
  align-content: center;
  padding: 10px 0;
}

.brief-copy h2 {
  max-width: 560px;
  font-size: 34px;
  font-weight: 500;
}

.brief-card {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.brief-card strong {
  position: relative;
  z-index: 1;
  color: var(--blue);
  font-size: 18px;
}

.brief-card span {
  position: relative;
  z-index: 1;
  color: #38556d;
  line-height: 1.45;
}

.weather-panel,
.status-panel,
.emergency-panel,
.shop-panel,
.search-results {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.compact {
  box-shadow: none;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.weather-metrics {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) repeat(3, minmax(110px, 1fr));
  gap: 12px;
}

.temp-block,
.metric {
  min-height: 116px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: #fbfdff;
}

.temp-block {
  background: linear-gradient(135deg, var(--blue), #5f9dca);
  color: white;
}

.temp-block span {
  font-size: 3rem;
  font-weight: 900;
}

.temp-block small,
.metric span {
  color: var(--muted);
}

.temp-block small {
  color: rgba(255, 255, 255, 0.82);
}

.metric b {
  font-size: 1.45rem;
}

.risk-strip {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #eef6fc;
  color: #244967;
  line-height: 1.45;
}

.risk-score {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #eaf6f0;
  color: #2f9c6a;
  font-weight: 900;
  margin: 10px 0 14px;
}

.risk-score.high {
  color: #8a5a00;
  background: #fff6d8;
}

.risk-score.critical {
  color: #9f2126;
  background: #ffe3e4;
}

.source-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.risk-action-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 748px) minmax(220px, 303px) minmax(220px, 303px);
  gap: 32px;
  align-items: stretch;
  min-height: 567px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  max-width: 1418px;
  margin-left: auto;
  margin-right: auto;
}

.risk-form {
  min-height: 567px;
  display: grid;
  align-content: start;
  gap: 26px;
  padding: 40px 52px 16px;
  color: white;
  border-radius: 22px;
  background:
    linear-gradient(rgba(13, 47, 79, 0.18), rgba(13, 47, 79, 0.28)),
    radial-gradient(circle at 40% 10%, rgba(255,255,255,0.32), transparent 26%),
    linear-gradient(155deg, #193f72 0%, #314f7f 45%, #958375 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.risk-form h2 {
  color: white;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}

label {
  display: grid;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
}

.risk-action-panel select {
  width: 100%;
  min-height: 66px;
  height: 66px;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: rgba(255,255,255,0.82);
  font-size: 18px;
  appearance: auto;
}

.risk-actions {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 46px;
}

.risk-action-panel .primary-button {
  width: min(467px, 100%);
  min-width: 0;
  height: 68px;
  min-height: 68px;
  border-radius: 999px;
  background: rgba(30, 47, 78, 0.58);
  border-color: rgba(255,255,255,0.46);
  color: white;
  font-size: 22px;
  white-space: nowrap;
}

.risk-action-panel .primary-button::after {
  content: "→";
  margin-left: 16px;
  font-size: 30px;
  vertical-align: -2px;
}

.recommendation-card,
.weather-card {
  position: relative;
  min-height: 567px;
  display: block;
  padding: 0;
  color: white;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(180deg, rgba(18, 44, 73, 0.36), rgba(4, 12, 22, 0.72)),
    linear-gradient(135deg, #6f849c, #243a55 58%, #111925);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
}

.recommendation-card > :not(.weather-canvas) {
  display: none !important;
}

.weather-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.recommendation-card::before,
.weather-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.recommendation-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 32%),
    radial-gradient(circle at 50% 78%, rgba(91, 123, 153, 0.48), transparent 34%);
}

.risk-action-panel::after {
  content: none;
}

.weather-card {
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.86), transparent 30%),
    linear-gradient(180deg, #dce9f4, #a9bfce 56%, #8099ab);
}

.weather-card::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), transparent 34%),
    radial-gradient(circle at 50% 84%, rgba(255,255,255,0.22), transparent 34%);
}

.risk-form::after {
  content: "we might be wrong, we can only suggest what to do. Incase of emergency call 911";
  align-self: end;
  justify-self: center;
  margin-top: auto;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 400;
}

.recommendation-card h3 {
  margin-bottom: 2px;
  font-size: 14px;
}

.recommendation-card p,
.recommendation-card small {
  margin: 0;
  color: #050505;
  font-size: 10px;
}

.action-list {
  display: grid;
  gap: 12px;
}

.action-item {
  line-height: 1.25;
  white-space: pre-wrap;
}

.ai-answer {
  display: grid;
  gap: 12px;
  white-space: normal;
}

.ai-answer p {
  margin: 0;
}

.ai-answer ul {
  margin: 0;
  padding-left: 1.15rem;
}

.ai-answer li {
  margin: 0 0 8px;
}

.recommendation-card .action-item {
  font-size: 24px;
}

.action-item strong {
  display: block;
  margin-bottom: 4px;
}

.link-list,
.search-list,
.shop-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.link-card,
.search-hit,
.shop-grid article {
  display: block;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: #fbfdff;
}

.search-hit {
  width: 100%;
  text-align: left;
}

.link-card span,
.search-hit span,
.shop-grid span,
.page-copy {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

.compact-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.alerts-infographic {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #f5fbff, #ffffff);
}

.info-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.info-stat strong {
  color: var(--blue);
  font-size: 2.4rem;
  line-height: 1;
}

.info-stat span,
.info-legend {
  color: var(--muted);
}

.alert-bars {
  min-height: 180px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: end;
  padding-top: 12px;
}

.alert-bars span {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  height: 150px;
  border-radius: 8px 8px 4px 4px;
  background: #e8f3fb;
  overflow: hidden;
}

.alert-bars span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--value);
  background: linear-gradient(180deg, #ff9fa8, #0e355a);
}

.alert-bars b {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  color: white;
  font-size: 0.8rem;
}

.info-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.86rem;
}

.info-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
}

.legend-blue {
  background: var(--blue);
}

.legend-red {
  background: var(--alert);
}

.search-results {
  margin-bottom: 18px;
}

.chat-launcher {
  position: fixed;
  right: 32px;
  left: auto;
  bottom: 48px;
  z-index: 401;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.96), transparent 38%),
    radial-gradient(circle at 75% 120%, rgba(182, 216, 242, 0.38), transparent 44%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(117, 117, 117, 0.14),
    0 22px 70px rgba(13, 47, 79, 0.18);
  backdrop-filter: blur(30px) saturate(1.9);
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  overflow: hidden;
}

.chat-launcher::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.76), transparent 24% 72%, rgba(255,255,255,0.36)),
    radial-gradient(circle at 42% 0%, rgba(255,255,255,0.72), transparent 32%);
  mix-blend-mode: screen;
  opacity: 0.68;
}

.chat-launcher svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: block;
  color: #8f9daa;
  fill: currentColor;
}

.chat-launcher svg path {
  fill: #8f9daa;
}

.chat-dock {
  position: fixed;
  right: 32px;
  left: auto;
  bottom: 112px;
  z-index: 45;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 247, 255, 0.78)),
    radial-gradient(circle at 12% 18%, rgba(232, 244, 255, 0.92), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(255, 239, 244, 0.76), transparent 38%),
    rgba(246, 250, 255, 0.78);
  border: 1px solid rgba(117, 117, 117, 0.36);
  border-radius: 22px;
  box-shadow: 0 26px 80px rgba(13, 47, 79, 0.22);
  overscroll-behavior: contain;
  touch-action: pan-y;
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
}

.chat-dock::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: rgba(240, 247, 255, 0.86);
  border-right: 1px solid rgba(117, 117, 117, 0.28);
  border-bottom: 1px solid rgba(117, 117, 117, 0.28);
  transform: rotate(45deg);
}

.chat-dock.minimized {
  display: none;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 16px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.56), rgba(243,249,255,0.28));
  border-bottom: 1px solid rgba(146, 172, 196, 0.22);
}

.chat-head h2 {
  font-size: 16px;
  font-weight: 600;
}

.chat-head .eyebrow {
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}

#chatToggle {
  width: 50px;
  height: 50px;
  min-height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
}

.chat-body {
  height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(232, 244, 255, 0.3), rgba(255, 247, 250, 0.22)),
    rgba(255, 255, 255, 0.12);
}

.message {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 16px;
  line-height: 1.42;
  box-shadow: 0 8px 22px rgba(13, 47, 79, 0.08);
}

.message p {
  margin: 0;
}

.message p + p,
.message p + ul,
.message ul + p {
  margin-top: 10px;
}

.message ul {
  margin: 9px 0 0;
  padding-left: 18px;
}

.message li {
  margin: 6px 0;
  padding-left: 2px;
}

.message strong {
  font-weight: 700;
}

.message[data-typing="true"] {
  width: max-content;
  min-width: 58px;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
}

.typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #79a9d6;
  animation: typingPulse 900ms ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
  animation-delay: 140ms;
}

.typing-dots i:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes typingPulse {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.88);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px) scale(1);
  }
}

.message.assistant {
  background: rgba(226, 241, 255, 0.86);
  color: #123a5f;
}

.message.user {
  justify-self: end;
  color: #4a2d4f;
  background: linear-gradient(180deg, rgba(255, 234, 241, 0.96), rgba(244, 224, 252, 0.9));
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(146, 172, 196, 0.24);
}

.chat-form input::placeholder {
  font-size: 12px;
}

.chat-disclaimer {
  grid-column: 1 / -1;
  margin: -2px 4px 0;
  color: rgba(96, 118, 138, 0.82);
  font-size: 11px;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .home-hero,
  .risk-action-panel,
  .home-intelligence,
  .home-brief {
    grid-template-columns: 1fr;
  }

  .alert-strip,
  .summary-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .hero-card-window {
    position: relative;
    inset: auto;
    min-width: 0;
  }

  .hero-next,
  .risk-next {
    justify-self: end;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    width: 247px;
  }

  .side-nav.open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: grid !important;
    flex: 0 0 auto;
  }

  .app-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .feedback-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .weather-metrics,
  .compact-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .content {
    padding: 0 14px;
  }

  .landing-hero {
    padding-top: 92px;
  }

  .landing-hero h1 {
    font-size: 39px;
    line-height: 1.28;
  }

  #typewriterText {
    min-width: 0;
    text-align: center;
  }

  .global-search span {
    left: 16px;
  }

  .global-search input {
    text-align: left;
    padding-left: 44px;
    font-size: 1rem;
  }

  .home-hero,
  .risk-action-panel,
  .home-intelligence,
  .home-brief,
  .weather-panel,
  .status-panel,
  .emergency-panel,
  .shop-panel,
  .search-results {
    padding: 18px;
  }

  .alert-strip,
  .weather-metrics,
  .compact-links {
    grid-template-columns: 1fr;
  }

  .chat-dock {
    left: auto;
    right: 14px;
    bottom: 132px;
    width: calc(100vw - 20px);
  }

  .chat-launcher {
    left: auto;
    right: 14px;
    bottom: 78px;
  }

  .glass-panel {
    min-height: 160px;
    padding: 20px;
  }

  .brief-copy h2 {
    font-size: 28px;
  }

  .mini-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .side-nav,
  .side-nav.open {
    position: fixed;
    left: 50%;
    bottom: 20px;
    top: auto;
    width: auto;
    min-width: 0;
    max-width: 92vw;
    transform: translateX(-50%);
  }

  .mobile-menu {
    display: none !important;
  }

  .chat-launcher {
    left: auto;
    right: 18px;
    bottom: 20px;
  }

  .chat-dock {
    left: auto;
    right: 18px;
    bottom: 84px;
  }
}

@media (min-width: 621px) and (max-width: 980px) {
  .side-nav,
  .side-nav.open {
    width: calc(100vw - 48px);
    max-width: 760px;
    padding: 7px 10px;
    gap: 8px;
    overflow: visible;
  }

  .brand-logo {
    width: 92px;
  }

  nav {
    flex: 1 1 auto;
    justify-content: center;
    gap: 0;
    min-width: 0;
  }

  .nav-item {
    width: 38px;
    min-width: 38px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }

  .nav-item b {
    display: none;
  }

  .nav-liquid-indicator {
    height: 42px;
    width: var(--nav-indicator-width, 42px);
  }

  .nav-search {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .nav-search-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .nav-search.open {
    position: absolute;
    left: 10px;
    right: 10px;
    width: auto;
    height: 46px;
    z-index: 6;
  }

  .nav-search.open input {
    width: calc(100% - 58px);
    max-width: none;
    height: 46px;
    font-size: 15px;
  }

  .nav-search.open .nav-search-suggestions {
    left: 0;
    right: 0;
  }
}

@media (max-width: 620px) {
  .weather-pill {
    padding: 0 14px;
    gap: 9px;
    font-size: 12px;
    background: transparent;
  }

  .landing-hero h1 {
    max-width: min(100%, 430px);
    margin-inline: auto;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.16;
  }

  .hero-type-line {
    display: grid;
    grid-template-rows: 1.16em 3.48em;
    justify-items: center;
    align-items: start;
    gap: 7px;
    width: 100%;
    min-height: calc(4.64em + 7px);
    line-height: 1.16;
  }

  .hero-wordmark {
    height: 1.08em;
    transform: translateY(0.06em);
  }

  #typewriterText {
    display: block;
    min-height: 3.48em;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .risk-action-panel,
  .risk-form,
  .recommendation-card,
  .weather-card {
    min-width: 0;
  }

  .risk-form {
    padding: 40px 28px 16px;
    overflow: hidden;
  }

  .risk-form h2 {
    font-size: 30px;
  }

  .risk-action-panel select {
    height: 58px;
    min-height: 58px;
    padding: 0 18px;
    font-size: 16px;
  }

  .risk-action-panel .primary-button {
    width: 100%;
    height: 62px;
    min-height: 62px;
    font-size: 18px;
    line-height: 1.15;
    white-space: normal;
  }

  .risk-action-panel .primary-button::after {
    margin-left: 10px;
    font-size: 24px;
  }

  .side-nav,
  .side-nav.open {
    width: calc(100vw - 28px);
    max-width: 430px;
    padding: 6px 8px;
    gap: 4px;
    overflow: visible;
  }

  .brand-logo {
    width: 120px;
    max-width: 27vw;
  }

  nav {
    flex: 1 1 auto;
    justify-content: center;
    gap: 2px;
    min-width: 0;
  }

  .nav-item {
    width: clamp(32px, 8vw, 38px);
    min-width: clamp(32px, 8vw, 38px);
    height: clamp(32px, 8vw, 38px);
    min-height: clamp(32px, 8vw, 38px);
    padding: 0;
    justify-content: center;
  }

  .nav-item img {
    width: 14px;
    height: 14px;
  }

  .nav-liquid-indicator {
    height: clamp(32px, 8vw, 38px);
    width: var(--nav-indicator-width, 32px);
  }

  .nav-item b {
    display: none;
  }

  .nav-search {
    width: clamp(32px, 8vw, 38px);
    height: clamp(32px, 8vw, 38px);
    flex: 0 0 clamp(32px, 8vw, 38px);
    margin-left: 4px;
  }

  .nav-search-toggle {
    width: clamp(32px, 8vw, 38px);
    height: clamp(32px, 8vw, 38px);
    flex-basis: clamp(32px, 8vw, 38px);
  }

  .nav-search-toggle svg {
    width: 17px;
    height: 17px;
  }

  .nav-search.open {
    position: absolute;
    right: 8px;
    left: 8px;
    width: auto;
    height: 46px;
    z-index: 6;
  }

  .nav-search.open input {
    width: calc(100% - 54px);
    max-width: none;
    height: 46px;
    font-size: 15px;
  }

  .nav-search.open .nav-search-suggestions {
    right: 0;
    left: 0;
  }

  .chat-launcher {
    left: auto;
    right: 14px;
    bottom: 26px;
    width: 50px;
    height: 50px;
  }

  .chat-launcher svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 1180px) {
  .risk-action-panel {
    grid-template-columns: 1fr;
  }

  .recommendation-card,
  .weather-card {
    min-height: 280px;
  }
}

@media (max-width: 980px) {
  .weather-intake {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 58px;
  }

  .weather-intake-copy {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding: 0;
  }

  .weather-mode-controls {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .weather-partner {
    grid-column: 1 / -1;
    grid-template-columns: auto 110px;
    align-items: center;
    justify-content: start;
  }

  .weather-partner img {
    width: 110px;
  }

  .weather-intake-scene {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .weather-intake-form {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .weather-intake-result {
    min-height: 360px;
    height: auto;
  }
}

@media (max-width: 620px) {
  .weather-intake {
    width: 100%;
    margin-top: 44px;
  }

  .weather-intake-copy {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 4px;
  }

  .weather-intake-copy h2 {
    font-size: 22px;
  }

  .weather-mode-controls {
    grid-column: 1;
    grid-row: auto;
  }

  .weather-partner {
    grid-column: 1;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .weather-partner span {
    white-space: nowrap;
  }

  .weather-partner img {
    width: 118px;
    margin-left: -6px;
  }

  .weather-intake-scene {
    min-height: 0;
    padding: 18px;
    border-radius: 22px;
    align-items: flex-start;
  }

  .weather-intake-form {
    width: 100%;
    min-height: 0;
    gap: 13px;
    padding: 20px 16px;
    overflow: visible;
  }

  .weather-intake-result {
    min-height: 340px;
    padding: 22px 18px;
  }

  .weather-intake-form label,
  .weather-intake-form legend {
    font-size: 12px;
  }

  .weather-intake-form select {
    height: 44px;
    min-height: 44px;
    padding: 0 56px 0 14px;
    font-size: 13px;
  }

  .weather-intake-form .primary-button {
    width: 100%;
    height: 50px;
    min-height: 50px;
    font-size: 14px;
  }

  .scene-sun {
    top: -78px;
    right: -68px;
    bottom: auto;
    width: 176px;
    height: 176px;
  }

  .scene-clouds i:nth-child(1) { top: 530px; right: -95px; }
  .scene-clouds i:nth-child(2) { top: 620px; right: 40px; }
  .scene-clouds i:nth-child(3) { top: 690px; right: -75px; }
}

.weather-intake-form::after {
  content: none !important;
}

.weather-intake .weather-intake-form {
  min-height: 0;
  padding: 24px;
  color: var(--ink);
  border: 1px solid #d4e2ec;
  background: #f8fbfd;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.weather-intake .weather-intake-form label,
.weather-intake .weather-intake-form legend {
  color: var(--ink);
}

.weather-intake .weather-intake-form select {
  height: 40px;
  min-height: 40px;
  padding-right: 60px;
  border: 1px solid rgba(117, 117, 117, 0.58);
  background-color: white;
  font-size: 13px;
}

.weather-intake .weather-intake-form .primary-button {
  width: auto;
  min-width: 190px;
  height: 46px;
  min-height: 46px;
  font-size: 13px;
}

.why-exist {
  --why-progress: 0;
  --why-parallax: 0px;
  --why-heading-shift: 0px;
  --why-body-shift: 0px;
  --why-points-shift: 0px;
  --why-sun-shift: 360px;
  position: relative;
  z-index: 1;
  width: calc(100% + 200px);
  min-height: 760px;
  margin-top: -92px;
  margin-left: -100px;
  margin-right: -100px;
  padding-top: 188px;
  overflow: visible;
  color: #000;
  background: transparent;
  isolation: isolate;
}

.why-exist-inner {
  position: relative;
  z-index: 2;
  width: min(1418px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  column-gap: 82px;
  transform: translateY(var(--why-parallax));
  will-change: transform;
}

.why-exist-heading {
  max-width: 680px;
  opacity: 1;
  transform: translateY(var(--why-heading-shift));
  will-change: transform;
}

.why-exist-heading .eyebrow {
  margin-bottom: 14px;
  color: #000;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.why-exist-heading h2 {
  margin: 0;
  max-width: 650px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.why-exist-body {
  width: 100%;
  max-width: 590px;
  margin: 16px 0 0;
  color: #000;
  font-size: 18px;
  line-height: 1.65;
  opacity: 1;
  transform: translateY(var(--why-body-shift));
  will-change: transform;
}

.why-exist-body p {
  margin: 0;
}

.why-exist-body p + p {
  margin-top: 24px;
}

.why-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 104px;
  border-top: 1px solid rgba(88, 61, 66, 0.22);
  transform: translateY(var(--why-points-shift));
  will-change: transform;
}

.why-points article {
  min-height: 230px;
  padding: 30px 34px 12px 0;
  opacity: 1;
  transform: none;
}

.why-points article + article {
  padding-left: 34px;
  border-left: 1px solid rgba(88, 61, 66, 0.22);
}

.why-points span {
  display: block;
  margin-bottom: 42px;
  color: #000;
  font-size: 12px;
}

.why-points h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
}

.why-points p {
  margin: 0;
  max-width: 330px;
  color: #000;
  font-size: 15px;
  line-height: 1.55;
}

.why-sunrise {
  position: absolute;
  left: 50%;
  top: -220px;
  bottom: 0;
  z-index: 1;
  width: max(132vw, 1800px);
  height: calc(100% + 220px);
  pointer-events: none;
  transform: translate(-50%, var(--why-sun-shift));
  will-change: transform;
}

.why-arc {
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.why-arc-outer {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 58% 58% 0 0;
  background: #fff9f9;
  box-shadow: 0 20px 110px rgba(235, 169, 180, 0.1);
}

.why-arc-outer::before,
.why-arc-outer::after {
  content: none;
}

.why-arc-middle {
  display: none;
}

.why-arc-inner {
  display: none;
}

@media (max-width: 860px) {
  .why-exist {
    width: calc(100% + 28px);
    min-height: 0;
    margin-top: -48px;
    margin-left: -14px;
    margin-right: -14px;
    padding-top: 112px;
  }

  .why-exist-inner {
    width: min(100% - 36px, 720px);
    padding: 82px 0 110px;
    display: block;
  }

  .why-exist-heading h2 {
    font-size: 22px;
  }

  .why-exist-body {
    width: 100%;
    margin-top: 42px;
    font-size: 17px;
  }

  .why-points {
    grid-template-columns: 1fr;
    margin-top: 72px;
  }

  .why-points article {
    min-height: 0;
    padding: 26px 0 32px;
  }

  .why-points article + article {
    padding-left: 0;
    border-top: 1px solid rgba(88, 61, 66, 0.22);
    border-left: 0;
  }

  .why-points span {
    margin-bottom: 22px;
  }

  .why-sunrise {
    top: -120px;
    bottom: 0;
    width: 190vw;
    height: calc(100% + 120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-exist-inner,
  .why-exist-heading,
  .why-exist-body,
  .why-points,
  .why-points article,
  .why-sunrise {
    transform: none;
  }

}

/* Full page system */
.content-band,
.page-hero,
.active-feed-section,
.source-directory,
.faq-shell,
.history-dashboard,
.history-note,
.shop-feature,
.shop-catalogue,
.site-footer {
  width: min(1418px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.band-heading {
  max-width: 760px;
}

.band-heading h2,
.page-hero h1,
.section-heading-row h2 {
  margin: 0;
  color: #07131e;
  letter-spacing: 0;
}

.band-heading h2 {
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.02;
  font-weight: 500;
}

.band-heading > p:last-child {
  max-width: 650px;
  margin: 22px 0 0;
  color: #40586d;
  font-size: 17px;
  line-height: 1.55;
}

.home-actions {
  padding: 116px 0 74px;
}

.scenario-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 52px;
}

.scenario-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d6e1e8;
  border-radius: 8px;
  background: white;
}

.scenario-art {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #dcecf6;
}

.scenario-art::before,
.scenario-art::after,
.scenario-art span {
  content: "";
  position: absolute;
  display: block;
}

.scenario-smoke .scenario-art {
  background: #dce4e7;
}

.scenario-smoke .scenario-art::before {
  inset: 28px -15% auto;
  height: 62px;
  border-radius: 50%;
  background: rgba(113, 133, 141, 0.34);
  box-shadow: 60px 52px 0 rgba(101, 122, 130, 0.24), -70px 112px 0 rgba(140, 156, 162, 0.3);
  filter: blur(12px);
}

.scenario-smoke .scenario-art span {
  left: 0;
  right: 0;
  bottom: 0;
  height: 82px;
  background: #385b58;
  clip-path: polygon(0 42%, 24% 28%, 44% 50%, 66% 12%, 100% 44%, 100% 100%, 0 100%);
}

.scenario-storm .scenario-art {
  background: #233f5b;
}

.scenario-storm .scenario-art::before {
  top: 28px;
  left: 10%;
  width: 82%;
  height: 88px;
  border-radius: 50%;
  background: #7891a5;
  box-shadow: 40px 24px 0 #5b758d, -26px 34px 0 #657f96;
  filter: blur(5px);
}

.scenario-storm .scenario-art::after {
  left: 48%;
  top: 98px;
  width: 18px;
  height: 94px;
  background: #f4d974;
  clip-path: polygon(38% 0, 100% 0, 62% 43%, 100% 43%, 0 100%, 28% 55%, 0 55%);
}

.scenario-winter .scenario-art {
  background: #b7d0df;
}

.scenario-winter .scenario-art::before {
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.94) 0 3px, transparent 4px);
  background-size: 34px 44px;
  transform: rotate(8deg) scale(1.2);
}

.scenario-winter .scenario-art span {
  left: -5%;
  right: -5%;
  bottom: -26px;
  height: 98px;
  border-radius: 50% 50% 0 0;
  background: #f8fbfd;
}

.scenario-water .scenario-art {
  background: #a8d4df;
}

.scenario-water .scenario-art::before {
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 128px;
  background: repeating-radial-gradient(ellipse at 50% 100%, #4f9aaa 0 10px, #77b9c7 11px 22px);
}

.scenario-water .scenario-art span {
  left: 12%;
  bottom: 72px;
  width: 66px;
  height: 78px;
  border-radius: 4px 4px 0 0;
  background: #f3c29e;
  box-shadow: 88px 18px 0 #e8a682, 176px -4px 0 #f1d09d;
}

.scenario-card > p,
.scenario-card > h3,
.scenario-card > span,
.scenario-card > button {
  margin-left: 22px;
  margin-right: 22px;
}

.scenario-card > p {
  margin-top: 22px;
  margin-bottom: 7px;
  color: #61758a;
  font-size: 12px;
  text-transform: uppercase;
}

.scenario-card > h3 {
  margin-top: 0;
  margin-bottom: 11px;
  color: #07131e;
  font-size: 25px;
  line-height: 1.06;
  font-weight: 600;
}

.scenario-card > span {
  min-height: 70px;
  display: block;
  color: #40586d;
  font-size: 14px;
  line-height: 1.45;
}

.scenario-card > button {
  width: calc(100% - 44px);
  height: 48px;
  margin-top: 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-top: 1px solid #d6e1e8;
  color: #0e355a;
  background: transparent;
  font-size: 13px;
}

.home-live {
  min-height: 540px;
  margin-top: 44px;
  padding: 72px;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  gap: 80px;
  align-items: center;
  border-radius: 8px;
  color: white;
  background: #10263a;
}

.home-live-copy .eyebrow {
  color: #a9c7da;
}

.home-live-copy h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 66px);
  line-height: 1;
  font-weight: 500;
}

.home-live-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px 0;
  color: #cad8e3;
  font-size: 17px;
  line-height: 1.55;
}

.text-link {
  min-height: 50px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 0;
  color: white;
  background: transparent;
  font-weight: 600;
}

.home-live-board {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.live-board-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.status-pulse {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #b8d66a;
  box-shadow: 0 0 0 8px rgba(184,214,106,0.12);
  animation: statusPulse 2.4s ease-in-out infinite;
}

.status-pulse.calm {
  background: #8eb8d4;
  box-shadow: 0 0 0 8px rgba(142,184,212,0.12);
}

@keyframes statusPulse {
  50% { box-shadow: 0 0 0 13px rgba(184,214,106,0.03); }
}

.live-board-status small,
.live-board-status strong {
  display: block;
}

.live-board-status small {
  margin-bottom: 4px;
  color: #9fb4c4;
}

.official-source-rows {
  display: grid;
}

.official-source-rows .link-card {
  min-height: 72px;
  padding: 16px 4px;
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) 1fr;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid rgba(120,146,166,0.22);
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

.official-source-rows .link-card strong {
  color: inherit;
}

.official-source-rows .link-card span {
  color: #91a7b8;
  line-height: 1.4;
}

.home-toolkit {
  padding: 116px 0;
}

.compact-heading h2 {
  max-width: 720px;
}

.toolkit-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #cdd8e0;
}

.toolkit-grid article {
  min-height: 260px;
  padding: 30px 38px 20px 0;
}

.toolkit-grid article + article {
  padding-left: 38px;
  border-left: 1px solid #cdd8e0;
}

.toolkit-grid span {
  color: #8799a8;
  font-size: 12px;
}

.toolkit-grid h3 {
  margin: 62px 0 12px;
  color: #07131e;
  font-size: 27px;
  font-weight: 500;
}

.toolkit-grid p {
  max-width: 340px;
  color: #40586d;
  line-height: 1.55;
}

.page-hero {
  padding: 130px 0 66px;
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(46px, 6vw, 88px);
  line-height: 0.98;
  font-weight: 500;
}

.page-hero > p:last-child {
  max-width: 700px;
  margin: 26px 0 0;
  color: #40586d;
  font-size: 18px;
  line-height: 1.55;
}

.active-weather-panel {
  width: min(1418px, calc(100% - 32px));
  margin: 0 auto 30px;
  padding: 28px;
  border-color: #d7e1e8;
  box-shadow: none;
}

.active-feed-section {
  margin-top: 86px;
}

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

.section-heading-row h2 {
  font-size: 38px;
  font-weight: 500;
}

.section-heading-row > span {
  color: #60768a;
  font-size: 13px;
}

.active-incident-list {
  border-top: 1px solid #cdd8e0;
}

.incident-row {
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 54px;
  border-bottom: 1px solid #cdd8e0;
}

.incident-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #60768a;
  font-size: 12px;
}

.incident-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #713746;
  background: #ffe4e8;
}

.incident-summary h3 {
  max-width: 760px;
  margin: 22px 0 12px;
  color: #07131e;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 500;
}

.incident-summary > p {
  max-width: 760px;
  color: #40586d;
  line-height: 1.55;
}

.incident-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
}

.incident-actions ul {
  margin: 0;
  padding-left: 18px;
  color: #28465f;
  line-height: 1.55;
}

.incident-summary > a {
  margin-top: 26px;
  display: inline-flex;
  gap: 10px;
  color: #0e355a;
  font-weight: 600;
  text-decoration: none;
}

.incident-map {
  min-height: 310px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid #cdd8e0;
  border-radius: 8px;
  background: #e6eff4;
}

.incident-map iframe {
  width: 100%;
  height: 250px;
  border: 0;
  filter: saturate(0.55) contrast(0.94);
}

.incident-map > div {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: white;
}

.incident-map span {
  color: #60768a;
}

.incident-loading,
.incident-empty {
  min-height: 180px;
  padding: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #cdd8e0;
  color: #40586d;
}

.incident-empty h3 {
  margin: 0 0 8px;
  color: #07131e;
  font-size: 24px;
}

.source-directory {
  margin-top: 98px;
  margin-bottom: 120px;
  padding: 58px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
  border-radius: 8px;
  color: white;
  background: #10263a;
}

.source-directory h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 500;
}

.source-directory .eyebrow {
  color: #a9c7da;
}

.faq-shell {
  margin-bottom: 126px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 70px;
}

.faq-controls {
  position: sticky;
  top: 70px;
  align-self: start;
}

.faq-controls label span {
  display: block;
  margin-bottom: 10px;
  color: #60768a;
  font-size: 12px;
}

.faq-controls input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #aebcc7;
  border-radius: 8px;
  font-size: 14px;
}

.faq-categories {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-categories button,
.history-tabs button,
.shop-filters button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #c4d0d9;
  border-radius: 999px;
  color: #25435c;
  background: white;
  font-size: 13px;
}

.faq-categories button.active,
.history-tabs button.active,
.shop-filters button.active {
  border-color: #0e355a;
  color: white;
  background: #0e355a;
}

.faq-list {
  border-top: 1px solid #cdd8e0;
}

.faq-item {
  border-bottom: 1px solid #cdd8e0;
}

.faq-item > button {
  width: 100%;
  min-height: 86px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border: 0;
  color: #07131e;
  background: transparent;
  text-align: left;
  font-size: 20px;
  font-weight: 500;
}

.faq-item > button i {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #c4d0d9;
  border-radius: 50%;
  font-style: normal;
  transition: transform 260ms ease;
}

.faq-item > div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms ease;
}

.faq-item > div p {
  min-height: 0;
  overflow: hidden;
  max-width: 820px;
  margin: 0;
  color: #40586d;
  line-height: 1.65;
}

.faq-item.open > div {
  grid-template-rows: 1fr;
}

.faq-item.open > div p {
  padding: 0 0 30px;
}

.faq-item.open > button i {
  transform: rotate(45deg);
}

.faq-empty {
  padding: 44px 0;
}

.faq-empty strong {
  color: #07131e;
  font-size: 22px;
}

.faq-empty p {
  color: #60768a;
}

.history-dashboard {
  margin-bottom: 40px;
}

.history-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.history-chart-panel {
  min-height: 590px;
  padding: 54px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 70px;
  border: 1px solid #d0dce4;
  border-radius: 8px;
  background: #f3f8fb;
}

.history-chart-copy h2 {
  margin: 0;
  color: #07131e;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 500;
}

.history-chart-copy > p:not(.eyebrow) {
  color: #60768a;
  line-height: 1.55;
}

.history-stat {
  margin-top: 70px;
}

.history-stat strong {
  display: block;
  color: #07131e;
  font-size: 72px;
  line-height: 1;
  font-weight: 500;
}

.history-stat span {
  color: #60768a;
}

.history-chart {
  --chart-color: #0e355a;
  min-height: 430px;
  padding: 26px 16px 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: end;
  border-bottom: 1px solid #9eacb7;
  background-image: linear-gradient(to bottom, rgba(158,172,183,0.18) 1px, transparent 1px);
  background-size: 100% 25%;
}

.history-bar {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  justify-items: center;
}

.history-bar > span {
  width: min(58px, 80%);
  height: var(--bar-height);
  min-height: 18px;
  position: relative;
  display: block;
  border-radius: 6px 6px 0 0;
  background: var(--chart-color);
  transition: height 520ms cubic-bezier(.2,.8,.2,1);
}

.history-bar b {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: #07131e;
  font-size: 13px;
}

.history-bar small {
  padding: 14px 0;
  color: #60768a;
}

.history-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #cdd8e0;
}

.history-insights article {
  min-height: 190px;
  padding: 30px 34px 24px 0;
}

.history-insights article + article {
  padding-left: 34px;
  border-left: 1px solid #cdd8e0;
}

.history-insights span {
  color: #60768a;
  font-size: 12px;
  text-transform: uppercase;
}

.history-insights strong {
  display: block;
  margin-top: 28px;
  color: #07131e;
  font-size: 28px;
  font-weight: 500;
}

.history-insights p,
.history-note p {
  color: #60768a;
  line-height: 1.5;
}

.history-note {
  margin-bottom: 120px;
  padding: 22px 0;
  display: flex;
  gap: 24px;
  border-top: 1px solid #cdd8e0;
  border-bottom: 1px solid #cdd8e0;
}

.history-note p {
  margin: 0;
}

.shop-feature {
  min-height: 540px;
  padding: 54px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 68px;
  align-items: center;
  border-radius: 8px;
  background: #d8f35a;
}

.shop-feature-art {
  position: relative;
  height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: #9fc3d8;
}

.shop-feature-art::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 270px;
  height: 300px;
  transform: translateX(-50%);
  border-radius: 38px 38px 18px 18px;
  background: #ef796f;
  box-shadow: inset 0 -30px 0 rgba(89,34,38,0.16);
}

.shop-feature-art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54px;
  width: 112px;
  height: 56px;
  transform: translateX(-50%);
  border: 18px solid #0e355a;
  border-bottom: 0;
  border-radius: 70px 70px 0 0;
}

.shop-feature-art span {
  position: absolute;
  left: calc(50% - 88px);
  bottom: 82px;
  z-index: 1;
  width: 176px;
  height: 92px;
  border-radius: 8px;
  background: #fff7e9;
}

.shop-feature-art i {
  position: absolute;
  left: 50%;
  bottom: 112px;
  z-index: 2;
  width: 84px;
  height: 24px;
  transform: translateX(-50%);
  border-top: 4px solid #0e355a;
  border-bottom: 4px solid #0e355a;
}

.shop-feature h2 {
  margin: 0;
  color: #07131e;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  font-weight: 500;
}

.shop-feature p:not(.eyebrow) {
  margin: 22px 0;
  color: #283721;
  line-height: 1.55;
}

.shop-feature strong {
  display: block;
  margin: 22px 0;
  color: #07131e;
  font-size: 30px;
}

.shop-feature button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #07131e;
  border-radius: 999px;
  color: #07131e;
  background: transparent;
}

.shop-catalogue {
  padding: 110px 0 126px;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid #d0dce4;
  border-radius: 8px;
  background: white;
}

.product-art {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #e7eef2;
}

.product-art::before,
.product-art::after,
.product-art span,
.product-art i {
  content: "";
  position: absolute;
  display: block;
}

.product-art::before {
  left: 50%;
  top: 55px;
  width: 150px;
  height: 165px;
  transform: translateX(-50%);
  border-radius: 22px;
  background: #ef796f;
  box-shadow: 0 20px 0 rgba(14,53,90,0.12);
}

.product-art::after {
  left: 50%;
  top: 36px;
  width: 65px;
  height: 45px;
  transform: translateX(-50%);
  border: 12px solid #0e355a;
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
}

.product-winter { background: #bbd7e5; }
.product-winter::before { background: #0e355a; }
.product-air { background: #f7cad0; }
.product-air::before { border-radius: 50%; background: #f8fbfd; box-shadow: inset 0 0 0 24px #78b8df; }
.product-air::after { display: none; }
.product-bag { background: #d9f27b; }
.product-bag::before { background: #725b91; }
.product-pet { background: #f4d4a5; }
.product-pet::before { border-radius: 50% 50% 24px 24px; background: #da7f68; }
.product-radio { background: #a8d4df; }
.product-radio::before { width: 180px; height: 120px; top: 92px; border-radius: 8px; background: #fff7e9; box-shadow: inset 0 0 0 6px #0e355a; }
.product-radio::after { width: 3px; height: 90px; top: 28px; border: 0; border-radius: 0; background: #0e355a; transform: translateX(60px) rotate(18deg); transform-origin: bottom; }

.product-info {
  padding: 22px;
}

.product-info > p {
  margin-bottom: 7px;
  color: #60768a;
  font-size: 11px;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 0;
  color: #07131e;
  font-size: 24px;
  font-weight: 500;
}

.product-info > span {
  min-height: 70px;
  margin-top: 12px;
  display: block;
  color: #40586d;
  line-height: 1.45;
}

.product-info > div {
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #d0dce4;
}

.product-info button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #0e355a;
  border-radius: 50%;
  color: #0e355a;
  background: transparent;
}

.site-footer {
  width: calc(100% + 200px);
  max-width: none;
  margin-left: -100px;
  margin-right: -100px;
  padding: 72px max(100px, calc((100vw - 1418px) / 2)) 116px;
  color: #f6fbff;
  background: #15201f;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

.footer-top img {
  width: 110px;
  filter: brightness(0) invert(1);
}

.footer-top p {
  max-width: 360px;
  color: #b9c7c4;
}

.footer-newsletter {
  width: min(440px, 100%);
}

.footer-newsletter label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-newsletter > div {
  display: grid;
  grid-template-columns: 1fr 50px;
  border-bottom: 1px solid #83908e;
}

.footer-newsletter input,
.footer-newsletter button {
  height: 50px;
  border: 0;
  color: white;
  background: transparent;
}

.footer-newsletter input::placeholder {
  color: #8c9a97;
}

.footer-newsletter button {
  font-size: 22px;
}

.footer-links {
  margin-top: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 5px;
  color: #8da09b;
  font-size: 11px;
  text-transform: uppercase;
}

.footer-links a,
.footer-links button {
  width: max-content;
  padding: 0;
  border: 0;
  color: #f6fbff;
  background: transparent;
  text-decoration: none;
  font-size: 14px;
}

.footer-wordmark {
  margin-top: 72px;
  overflow: hidden;
  color: #f5f4df;
  font-size: clamp(140px, 22vw, 360px);
  line-height: 0.72;
  letter-spacing: -0.055em;
}

.footer-base {
  margin-top: 42px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #3c4745;
  color: #92a19e;
  font-size: 12px;
}

/* Make the Why We Exist continuation concise and readable. */
.why-exist-body p,
.why-points p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1100px) {
  .scenario-rail,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-live,
  .source-directory,
  .faq-shell,
  .history-chart-panel {
    grid-template-columns: 1fr;
  }

  .incident-row {
    grid-template-columns: 1fr 360px;
  }

  .faq-controls {
    position: static;
  }

  .shop-feature {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .content-band,
  .page-hero,
  .active-feed-section,
  .source-directory,
  .faq-shell,
  .history-dashboard,
  .history-note,
  .shop-feature,
  .shop-catalogue {
    width: 100%;
  }

  .home-actions,
  .home-toolkit {
    padding: 78px 0;
  }

  .scenario-rail,
  .toolkit-grid,
  .product-grid,
  .history-insights {
    grid-template-columns: 1fr;
  }

  .scenario-art {
    height: 260px;
  }

  .home-live {
    min-height: 0;
    padding: 34px 24px;
    gap: 38px;
  }

  .official-source-rows .link-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .toolkit-grid article,
  .toolkit-grid article + article {
    min-height: 0;
    padding: 26px 0 34px;
    border-left: 0;
    border-bottom: 1px solid #cdd8e0;
  }

  .toolkit-grid h3 {
    margin-top: 30px;
  }

  .page-hero {
    padding: 104px 0 48px;
  }

  .page-hero h1 {
    font-size: 48px;
  }

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

  .incident-row {
    grid-template-columns: 1fr;
  }

  .incident-actions {
    grid-template-columns: 1fr;
  }

  .source-directory {
    padding: 34px 24px;
    gap: 34px;
  }

  .history-chart-panel {
    padding: 28px 20px;
    gap: 30px;
  }

  .history-chart {
    min-height: 330px;
    gap: 6px;
  }

  .history-insights article,
  .history-insights article + article {
    min-height: 0;
    padding: 26px 0;
    border-left: 0;
    border-bottom: 1px solid #cdd8e0;
  }

  .history-note {
    display: block;
  }

  .shop-feature {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .shop-feature-art {
    height: 340px;
  }

  .section-heading-row {
    display: block;
  }

  .shop-filters {
    margin-top: 20px;
  }

  .site-footer {
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    padding: 54px 28px 120px;
  }

  .footer-top,
  .footer-base {
    display: block;
  }

  .footer-newsletter {
    margin-top: 40px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-wordmark {
    font-size: 30vw;
  }

  .footer-base span {
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .scenario-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .scenario-card {
    min-width: 86%;
    scroll-snap-align: start;
  }

  .page-hero h1 {
    font-size: 42px;
  }

  .weather-metrics {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
