/* ════���══════════════════════════════════════════════════════════════════════
   ASOMATE — Public Landing
   Premium atmospheric design system. Dark-first, glass-forward, fluid.
   ═══��═════════════════════════���══════════════════════════��══════════════════ */


/* ── 1. RESET ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.65;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
select { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::marker { content: ""; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ── 2. DESIGN TOKENS ──────────────────────────────���──────────────────── */

:root {
  /* Palette */
  --bg:             #080c16;
  --bg-raised:      #0d1224;
  --bg-surface:     #111830;
  --bg-hover:       #161e3a;

  /* Glass */
  --glass:          rgba(14, 20, 42, 0.75);
  --glass-border:   rgba(100, 140, 255, 0.10);
  --glass-border-h: rgba(100, 140, 255, 0.20);
  --glass-blur:     16px;

  /* Text */
  --text:           #d8e2f8;
  --text-bright:    #f0f4ff;
  --text-soft:      rgba(180, 200, 240, 0.65);
  --text-faint:     rgba(160, 180, 220, 0.40);

  /* Accent */
  --accent:         #6e8eff;
  --accent-glow:    rgba(110, 142, 255, 0.25);
  --gold:           #f0c040;
  --gold-soft:      rgba(240, 192, 64, 0.15);

  /* Alerts */
  --alert-orange:   #f4a83d;
  --alert-blue:     #5b8af5;
  --alert-green:    #4cd9a0;
  --alert-red:      #f05050;

  /* Map */
  --map-bg:         #0f1d38;
  --map-province:   #1a3055;

  /* Layout */
  --container:      100%;
  --gutter:         clamp(1.25rem, 5vw, 4rem);
  --section-gap:    clamp(5rem, 12vw, 9rem);

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  28px;

  /* Transitions */
  --ease:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px var(--accent-glow);
}


/* ── 3. UTILITY & A11Y ────────────────────────────────────────────────── */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  padding: 0.5rem 1rem; background: var(--accent);
  color: #fff; border-radius: var(--r-sm); font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

.noscript-banner {
  background: var(--gold-soft); color: var(--gold);
  text-align: center; padding: 0.75rem var(--gutter);
  font-size: 0.85rem;
}


/* ── 4. SHARED COMPONENTS ──────────────────��──────────────────────────── */

/* Chip / eyebrow label */
.chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(110, 142, 255, 0.15);
  border-radius: 100px;
}

/* Glass card */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.glass-card:hover {
  border-color: var(--glass-border-h);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem; font-weight: 600;
  border-radius: var(--r-md);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn--primary:hover {
  background: #5a7aef;
  box-shadow: 0 0 36px var(--accent-glow);
  transform: translateY(-1px);
}
.btn--glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-bright);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--glass:hover {
  background: var(--bg-hover);
  border-color: var(--glass-border-h);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── 5. LAYOUT ─────────���──────────────────────────────────────────────── */

.page-shell {
  position: relative;
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section__header {
  padding-inline: var(--gutter);
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section__header h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-bright);
  margin-top: 0.75rem;
}
.section__lead {
  color: var(--text-soft);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  margin-top: 1rem;
  max-width: 52ch;
  margin-inline: auto;
}
.section__footnote {
  padding-inline: var(--gutter);
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: 2rem;
}


/* ── 6. TOPBAR ──────��──────────────────────────────��──────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 22, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}

.topbar__inner {
  padding: 0 var(--gutter);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Brand */
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  flex-shrink: 0;
}
.brand__mark img { border-radius: 8px; }
.brand__text {
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.brand__name {
  font-size: 1rem; font-weight: 700;
  color: var(--text-bright);
}
.brand__tagline {
  font-size: 0.65rem; font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Navigation */
.topnav {
  display: flex; gap: 0.25rem;
  margin-left: auto;
}
.topnav a {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.topnav a:hover {
  color: var(--text-bright);
  background: var(--bg-hover);
}

/* Actions */
.topbar__actions {
  display: flex; align-items: center; gap: 0.75rem;
  margin-left: 0.5rem;
}

.locale-switcher {
  appearance: none; -webkit-appearance: none;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  padding: 0.3rem 1.8rem 0.3rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236e8eff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: border-color 0.2s;
}
.locale-switcher:hover { border-color: var(--glass-border-h); }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem;
}
.theme-toggle__track {
  width: 34px; height: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  position: relative;
  transition: background 0.3s;
}
.theme-toggle__thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s var(--ease-spring);
}
[data-theme="light"] .theme-toggle__thumb { transform: translateX(16px); }

.theme-toggle__status {
  font-size: 0.72rem; font-weight: 500;
  color: var(--text-faint);
  min-width: 2.5em;
}


/* ── 7. HERO ─────────────���─────────────────────────��──────────────────── */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem) 0;
  overflow: hidden;
}

/* Animated background orbs */
.hero__bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: orb-float 20s ease-in-out infinite;
}
.hero__orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(110, 142, 255, 0.4), transparent 70%);
  top: -10%; left: 15%;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(140, 80, 255, 0.3), transparent 70%);
  top: 30%; right: -5%;
  animation-delay: -7s;
  animation-duration: 25s;
}
.hero__orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(240, 192, 64, 0.2), transparent 70%);
  bottom: 0; left: 40%;
  animation-delay: -13s;
  animation-duration: 22s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -25px) scale(1.05); }
  66%      { transform: translate(-20px, 15px) scale(0.95); }
}

.hero__inner {
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Copy */
.hero__copy { max-width: 580px; }
.hero__copy .chip { margin-bottom: 1.25rem; }

.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.025em;
  line-height: 1.08;
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  margin-top: 1.25rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-soft);
  line-height: 1.7;
}

.hero__cta {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}

.hero__platforms {
  margin-top: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap;
}
.hero__platforms-label {
  font-size: 0.78rem; color: var(--text-faint);
}
.platform-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-soft);
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
}
.platform-link:hover {
  color: var(--text-bright);
  border-color: var(--glass-border-h);
}

/* Phone mockup */
.hero__visual {
  display: flex;
  justify-content: center;
}

.phone {
  width: 280px;
  background: linear-gradient(160deg, #101a38 0%, #0a0f20 100%);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 1.25rem;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px var(--accent-glow);
}

.phone__notch {
  width: 80px; height: 22px;
  background: var(--bg);
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
}

.phone__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-top: 0.75rem;
}
.phone__kicker {
  font-size: 0.65rem; font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.phone__place {
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-bright);
}
.phone__chip {
  font-size: 0.6rem; font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent);
}

.phone__hero {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1.25rem;
}
.phone__icon {
  position: relative; width: 48px; height: 48px; flex-shrink: 0;
}
.phone__icon-sun {
  position: absolute; inset: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(240, 192, 64, 0.6);
}
.phone__icon-halo {
  position: absolute; inset: 0;
  border: 2px solid rgba(240, 192, 64, 0.2);
  border-radius: 50%;
  animation: halo-pulse 3s ease-in-out infinite;
}
@keyframes halo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.15); opacity: 0.2; }
}

.phone__temp {
  font-size: 2rem; font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
.phone__mood {
  font-size: 0.72rem; color: var(--text-soft);
  line-height: 1.4;
}
.phone__meta {
  font-size: 0.6rem; color: var(--text-faint);
  margin-top: 0.2rem;
}

/* Metric strip */
.phone__metrics {
  display: flex; gap: 0; margin-top: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.phone__metrics article {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.15rem;
  padding: 0.6rem 0.3rem;
  font-size: 0.62rem;
  color: var(--text-soft);
}
.phone__metrics article + article { border-left: 1px solid var(--glass-border); }
.phone__metrics strong {
  font-size: 0.82rem; color: var(--text-bright);
}

/* Forecast */
.phone__forecast {
  margin-top: 0.75rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.phone__forecast-header {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0.75rem;
  font-size: 0.65rem;
  color: var(--text-faint);
}
.phone__forecast-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  color: var(--text-soft);
  border-top: 1px solid var(--glass-border);
}
.phone__forecast-row strong { color: var(--text-bright); font-size: 0.72rem; }
.phone__forecast-row--now { background: rgba(110, 142, 255, 0.06); }
.phone__forecast-row div { display: flex; gap: 0.5rem; align-items: baseline; }

/* Forecast icons (pure CSS) */
.phone__forecast-icon {
  display: inline-block; width: 16px; height: 16px;
  border-radius: 50%; flex-shrink: 0;
}
.phone__forecast-icon--sun {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(240, 192, 64, 0.5);
}
.phone__forecast-icon--cloud {
  background: linear-gradient(135deg, #8899bb, #667799);
}
.phone__forecast-icon--rain {
  background: linear-gradient(135deg, #5b8af5, #4070dd);
}

/* Summary cards */
.hero__summary {
  padding-inline: var(--gutter);
  margin-top: auto;
  padding-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.summary-card {
  padding: 1.25rem 1.5rem;
}
.summary-card__label {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.summary-card strong {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}


/* ── 8. MAP WIDGET ─��──────────────────────────────────────────────────── */

.map-widget {
  margin-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto 1fr;
  background: #0a1020;
  border: 1px solid rgba(100,140,220,0.12);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.4),
    0 0 0 1px rgba(80,120,200,0.06),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Controls bar */
.map-widget__controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
  background: rgba(0,0,0,0.15);
}

.map-control { position: relative; }
.map-control--right { margin-left: auto; }

.map-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
.map-toggle:hover {
  color: var(--text-bright);
  border-color: var(--glass-border-h);
  background: var(--bg-hover);
}
.map-toggle--active,
.map-toggle.is-active {
  color: var(--accent);
  border-color: rgba(110, 142, 255, 0.25);
  background: rgba(110, 142, 255, 0.08);
}
.map-toggle--icon {
  padding: 0.35rem;
}
.map-toggle__icon { width: 18px; height: 18px; }
.map-toggle__glyph {
  font-size: 0.75rem; font-weight: 700;
  line-height: 1; opacity: 0.7;
}
.map-toggle__caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 0.15rem;
  opacity: 0.5;
}

/* Map menus */
.map-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: var(--bg-raised);
  border: 1px solid var(--glass-border-h);
  border-radius: var(--r-md);
  padding: 0.35rem;
  box-shadow: var(--shadow-lg);
  z-index: 20;
  animation: menu-in 0.15s var(--ease);
}
.map-menu--places {
  min-width: 200px;
  right: 0; left: auto;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.map-menu__option {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.map-menu__option:hover { background: var(--bg-hover); }
.map-menu__option.is-active {
  color: var(--accent);
  background: rgba(110, 142, 255, 0.08);
}
.map-menu__option-main { font-weight: 500; }
.map-menu__option-meta {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-faint);
}

/* Map surface */
.map-surface {
  position: relative;
  background: linear-gradient(180deg, #1a4068 0%, #0e2844 100%);
}
.map-canvas {
  width: 100%;
}

/* Forecast strip */
.map-forecast-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(8, 12, 22, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  padding: 0.5rem 0.85rem;
}
.map-forecast-strip__header {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.map-forecast-strip__slots {
  display: flex; gap: 0.25rem;
  overflow-x: auto;
}

/* Forecast slot (created by JS) */
.map-forecast-slot {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.7rem;
  color: var(--text-soft);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.map-forecast-slot:hover { background: var(--bg-hover); }
.map-forecast-slot.is-active {
  color: var(--accent);
  border-color: rgba(110, 142, 255, 0.25);
  background: rgba(110, 142, 255, 0.08);
}
.map-forecast-slot__time { font-size: 0.65rem; }
.map-forecast-slot__icon { width: 18px; height: 18px; }
.map-forecast-slot__value { font-weight: 600; color: var(--text-bright); }

/* Map inspector */
/* Map inspector — active place card */
.map-inspector {
  padding: 1.5rem;
  border-left: 1px solid var(--glass-border);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(110, 142, 255, 0.06), transparent 60%),
    rgba(6, 10, 20, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.map-inspector__eyebrow {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.map-inspector__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.6rem;
}
.map-inspector__title {
  display: flex; flex-direction: column; gap: 0.15rem;
}
.map-inspector__title strong {
  font-size: 1.4rem; font-weight: 800; color: var(--text-bright);
  letter-spacing: -0.01em;
}
.map-inspector__title span {
  font-size: 0.82rem; color: var(--text-soft);
}
.map-inspector__layer {
  font-size: 0.68rem; font-weight: 700;
  padding: 0.25rem 0.7rem;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 100px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.map-inspector__body {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* Stats grid */
.map-inspector__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
}
.map-inspector__stats > div {
  padding: 0.85rem 0.75rem;
}
.map-inspector__stats > div:nth-child(odd) {
  border-right: 1px solid var(--glass-border);
}
.map-inspector__stats > div:nth-child(n+3) {
  border-top: 1px solid var(--glass-border);
}
.map-inspector__stats dt {
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.map-inspector__stats dd {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-top: 0.25rem;
}

/* Node panel */
.map-node-panel {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(110, 142, 255, 0.05);
  border: 1px solid rgba(110, 142, 255, 0.12);
  border-radius: var(--r-md);
}
.map-node-panel__eyebrow {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.map-node-panel__top { margin-bottom: 0.5rem; }
.map-node-panel__title strong {
  font-size: 1.05rem; font-weight: 700; color: var(--text-bright);
}
.map-node-panel__title span {
  display: block;
  font-size: 0.78rem; color: var(--text-soft);
  margin-top: 0.1rem;
}
.map-node-panel__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
}
.map-node-panel__stats div {
  display: flex; flex-direction: column; gap: 0.15rem;
}
.map-node-panel__stats dt {
  font-size: 0.6rem; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.map-node-panel__stats dd {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-bright);
}


/* ── 9. SIGNALS ──────��────────────────────────────────────────────────── */

.signals-grid {
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.signals-panel {
  padding: clamp(1.5rem, 3vw, 2rem);
}
.signals-panel__head .chip { margin-bottom: 0.75rem; }
.signals-panel__head h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text-bright);
}
.signals-panel__lead {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.signal-stack {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.signal-row {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.85rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s;
}
.signal-row:hover { border-color: var(--glass-border-h); }
.signal-tag {
  flex-shrink: 0;
  font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 100px;
  margin-top: 0.1rem;
}
.signal-row strong {
  font-size: 0.85rem;
  color: var(--text-bright);
  display: block;
}
.signal-row p {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

/* Alerts demo */
.alerts-demo {
  padding: clamp(1.5rem, 3vw, 2rem);
}
.alerts-demo__head .chip { margin-bottom: 0.75rem; }
.alerts-demo__head h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--text-bright);
}
.alerts-demo__lead {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.alerts-feed {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.alert-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s;
}
.alert-item:hover { border-color: var(--glass-border-h); }
.alert-item__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
}
.alert-item--official .alert-item__icon { background: rgba(244, 168, 61, 0.12); }
.alert-item--signal .alert-item__icon { background: var(--accent-glow); }
.alert-item--air .alert-item__icon { background: rgba(76, 217, 160, 0.1); }
.alert-item strong {
  font-size: 0.82rem; color: var(--text-bright);
  display: block;
}
.alert-item p {
  font-size: 0.78rem; color: var(--text-soft);
  margin-top: 0.15rem;
}


/* ─��� 10. PRODUCT / FEATURES ───���───────────────────────────────────────── */

.feature-grid {
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-3px);
}
.feature-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--r-md);
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* Capability panels */
.capability-panels {
  padding-inline: var(--gutter);
  margin-top: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}

.capability-panel {
  padding: clamp(1.5rem, 3vw, 2rem);
}
.capability-panel__head .chip { margin-bottom: 0.75rem; }
.capability-panel__head h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--text-bright);
}
.capability-panel__copy {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

/* Places demo */
.places-demo__chips {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.place-chip {
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  transition: all 0.2s;
}
.place-chip:hover { color: var(--text-bright); border-color: var(--glass-border-h); }
.place-chip--active {
  color: var(--accent);
  background: rgba(110, 142, 255, 0.08);
  border-color: rgba(110, 142, 255, 0.25);
}

.places-demo__scene {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 1rem;
}
.places-demo__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.75rem;
}
.places-demo__eyebrow {
  font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent);
}
.places-demo__header strong {
  font-size: 1rem; color: var(--text-bright);
  display: block; margin-top: 0.15rem;
}
.places-demo__temp {
  font-size: 1.75rem; font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.places-demo__metrics {
  display: flex; gap: 1.25rem; margin-bottom: 0.75rem;
}
.places-demo__metrics article {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--text-soft);
}
.places-demo__metrics strong {
  font-size: 0.78rem; color: var(--text-bright);
}

.forecast-strip {
  display: flex; gap: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.forecast-strip > div {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0.3rem;
  font-size: 0.72rem;
  color: var(--text-soft);
}
.forecast-strip > div + div { border-left: 1px solid var(--glass-border); }
.forecast-strip strong { font-size: 0.78rem; color: var(--text-bright); }

/* Utility grid */
.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.utility-card {
  padding: 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  transition: border-color 0.2s;
}
.utility-card:hover { border-color: var(--glass-border-h); }
.utility-card__icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--r-sm);
  margin-bottom: 0.75rem;
}
.utility-card strong {
  display: block;
  font-size: 0.85rem; color: var(--text-bright);
  margin-bottom: 0.3rem;
}
.utility-card p {
  font-size: 0.78rem; color: var(--text-soft);
  line-height: 1.5;
}


/* ── 11. DOWNLOAD ─────��───────────────────────────────���───────────────── */

.download-overview {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-left: var(--gutter);
  margin-right: var(--gutter);
  max-width: calc(var(--container) - var(--gutter) * 2);
  margin-inline: auto;
}
.download-overview__copy .chip { margin-bottom: 0.75rem; }
.download-overview__copy h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--text-bright);
}
.download-overview__copy p {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}
.download-overview__list {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.download-overview__list li {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; color: var(--text);
}
.download-overview__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--r-sm);
}

.platform-grid {
  padding-inline: var(--gutter);
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.platform-card {
  padding: clamp(1.5rem, 3vw, 2rem);
}
.platform-card__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1rem;
}
.platform-pill {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.6rem;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.platform-card__meta {
  display: block;
  font-size: 0.72rem; color: var(--text-faint);
  margin-top: 0.25rem;
}
.platform-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
}
.platform-card h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}
.platform-card > p {
  font-size: 0.85rem; color: var(--text-soft);
  margin-bottom: 1rem;
}
.platform-card__features {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.platform-card__features li {
  font-size: 0.82rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
}
.platform-card__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.platform-card__action {
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.store-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem; font-weight: 600;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  margin-bottom: 0.5rem;
}
.platform-card__action > p {
  font-size: 0.75rem; color: var(--text-faint);
}


/* ── 12. FAQ ──────────────────────────────────────────────────────────── */

.faq-list {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; flex-direction: column; gap: 0.6rem;
}

.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 1.15rem 1.35rem;
  transition: border-color 0.2s, background 0.2s;
}
.faq-item:hover {
  border-color: var(--glass-border-h);
}
.faq-item summary {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-bright);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-faint);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-item[open] {
  border-color: var(--accent);
  border-left-width: 3px;
  background: rgba(110, 142, 255, 0.03);
}
.faq-item p {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.65;
}


/* ── 13. FOOTER ───────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--glass-border);
  margin-top: var(--section-gap);
  padding: 2.5rem 0;
}
.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-footer strong {
  font-size: 0.9rem; color: var(--text-bright);
}
.site-footer p {
  font-size: 0.78rem; color: var(--text-faint);
  margin-top: 0.25rem;
}
.site-footer__nav {
  display: flex; gap: 1.25rem;
}
.site-footer__nav a {
  font-size: 0.8rem; color: var(--text-soft);
  transition: color 0.2s;
}
.site-footer__nav a:hover { color: var(--text-bright); }


/* ── 14. MAP SVG INTERNALS ────────────────────────────────────────────── */

.map-widget {
  --map-fill:         rgba(127, 161, 255, 0.14);
  --map-fill-strong:  rgba(127, 161, 255, 0.32);
  --map-stroke:       rgba(192, 214, 255, 0.18);
  --map-stroke-strong:rgba(214, 231, 255, 0.42);
  --map-marker-glow:  rgba(127, 161, 255, 0.28);
  --map-marker-ring:  rgba(214, 229, 255, 0.92);
  --map-marker-core:  #cddfff;
  --map-pane-fill:    rgba(255, 255, 255, 0.04);
  --map-chip-fill:    rgba(6, 11, 24, 0.44);
  --map-chip-stroke:  rgba(255, 255, 255, 0.08);
}
.map-widget[data-map-layer-surface="forecast"] {
  --map-fill: rgba(127,161,255,0.2); --map-fill-strong: rgba(127,161,255,0.42);
  --map-stroke: rgba(192,214,255,0.22); --map-stroke-strong: rgba(214,231,255,0.52);
  --map-marker-glow: rgba(127,161,255,0.28); --map-marker-ring: rgba(201,216,255,0.96);
  --map-marker-core: #dce7ff;
}
.map-widget[data-map-layer-surface="alerts"] {
  --map-fill: rgba(244,200,75,0.15); --map-fill-strong: rgba(244,139,75,0.4);
  --map-stroke: rgba(255,207,130,0.2); --map-stroke-strong: rgba(255,215,160,0.42);
  --map-marker-glow: rgba(244,158,75,0.3); --map-marker-ring: rgba(255,220,172,0.96);
  --map-marker-core: #ffd487;
}
.map-widget[data-map-layer-surface="airQuality"] {
  --map-fill: rgba(111,223,189,0.16); --map-fill-strong: rgba(111,223,189,0.36);
  --map-stroke: rgba(162,255,233,0.2); --map-stroke-strong: rgba(162,255,233,0.4);
  --map-marker-glow: rgba(111,223,189,0.28); --map-marker-ring: rgba(215,255,244,0.96);
  --map-marker-core: #9ef0d7;
}
.map-widget[data-map-layer-surface="fire"] {
  --map-fill: rgba(255,160,103,0.12); --map-fill-strong: rgba(255,128,72,0.28);
  --map-stroke: rgba(255,177,127,0.18); --map-stroke-strong: rgba(255,177,127,0.38);
  --map-marker-glow: rgba(255,145,88,0.3); --map-marker-ring: rgba(255,214,183,0.92);
  --map-marker-core: #ffb778;
}

.map-widget svg, .map-canvas svg { width: 100%; height: auto; display: block; }

.map-surface-outline { fill: none; stroke: none; }
.map-pane__frame { fill: none; stroke: none; }
.map-pane__vignette { pointer-events: none; opacity: 0; }

.map-pane__label-bg, .map-place-chip__bg { fill: var(--map-chip-fill); stroke: var(--map-chip-stroke); stroke-width: 1; }
.map-node-chip__bg { fill: rgba(16,26,58,0.92); stroke: rgba(129,182,255,0.32); stroke-width: 1; }
.map-pane__label, .map-place-chip__label {
  fill: var(--text-bright); font-family: inherit; font-size: 10px;
  font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.map-node-chip__label {
  fill: rgba(246,250,255,0.98); font-family: inherit; font-size: 10px;
  font-weight: 800; letter-spacing: 0.04em;
  paint-order: stroke; stroke: rgba(9,15,30,0.52); stroke-width: 4px; stroke-linejoin: round;
}

.map-province-label__bg { fill: var(--map-chip-fill); stroke: var(--map-chip-stroke); stroke-width: 0.8; }
.map-province-label__text { fill: var(--text-bright); font-family: inherit; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; }

.map-feature {
  stroke: rgba(255,255,255,0.25); stroke-width: 0.6;
  stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke;
  transition: fill 200ms ease, stroke 200ms ease;
}
.map-feature__shadow { pointer-events: none; opacity: 0.2; }
.map-feature__relief { pointer-events: none; opacity: 0.35; }
.map-feature.is-context { opacity: 1; }
.map-feature.is-highlighted, .map-feature.is-selected {
  stroke: rgba(255,255,255,0.4); stroke-width: 1;
}
.map-feature.is-linked, .map-node.is-interactive { cursor: pointer; }
.map-feature.is-linked:hover, .map-feature.is-linked:focus-visible {
  stroke: rgba(255,255,255,0.5); stroke-width: 1.2;
}

.map-place-reticle__range {
  fill: rgba(80,140,255,0.04); stroke: rgba(120,175,255,0.18);
  stroke-width: 1; stroke-dasharray: 4 3;
}
.map-place-reticle__halo {
  fill: rgba(80,140,255,0.08); stroke: rgba(110,165,255,0.28); stroke-width: 1.2;
}

.map-node__halo { fill: var(--map-marker-glow); opacity: 0.3; }
.map-node--selected .map-node__halo { opacity: 0.6; }
.map-node--overview .map-node__halo { opacity: 0; }
.map-node--overview.map-node--selected .map-node__halo { opacity: 0.3; }

.map-node__core {
  fill: rgba(8,14,28,0.5); stroke: var(--map-marker-ring, rgba(255,255,255,0.9));
  stroke-width: 1.4;
}
.map-node--selected .map-node__core { stroke-width: 2; }
.map-node--overview .map-node__core { fill: none; stroke: none; }
.map-node__plate {
  fill: rgba(255,255,255,0.08); stroke: rgba(255,255,255,0.15); stroke-width: 0.6;
}
.map-node--overview .map-node__plate { fill: none; stroke: none; }
.map-node__overview-pill { fill: none; stroke: none; }
.map-node__dot { fill: var(--map-marker-core, #f4c84b); }

.map-node__glyph {
  fill: #fff; font-family: inherit; font-size: 10px; font-weight: 800;
  text-anchor: middle; dominant-baseline: middle;
}
.map-node__glyph--air { font-size: 9px; letter-spacing: -0.02em; }
.map-node__glyph--alerts, .map-node__glyph--fire { font-size: 11px; }
.map-node__glyph-image { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }
.map-node--overview .map-node__glyph-image { filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }

.map-node__badge { fill: rgba(7,12,24,0.94); stroke: rgba(255,255,255,0.22); stroke-width: 1.1; }
.map-node__badge-text { fill: #fff; font-family: inherit; font-size: 8px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; }

.map-node__label {
  fill: var(--text-bright); font-family: inherit; font-size: 11px; font-weight: 800;
  letter-spacing: 0.02em; paint-order: stroke; stroke: rgba(6,10,22,0.75);
  stroke-width: 5px; stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.map-overview-inset { filter: drop-shadow(0 18px 26px rgba(4,9,22,0.22)); }

/* Light theme map */
[data-theme="light"] .map-widget {
  --map-fill: rgba(111,141,255,0.12); --map-fill-strong: rgba(111,141,255,0.24);
  --map-stroke: rgba(88,116,246,0.14); --map-stroke-strong: rgba(88,116,246,0.34);
  --map-marker-glow: rgba(111,141,255,0.2); --map-marker-ring: rgba(88,116,246,0.88);
  --map-marker-core: #f5fbff; --map-pane-fill: rgba(255,255,255,0.58);
  --map-chip-fill: rgba(255,255,255,0.82); --map-chip-stroke: rgba(88,116,246,0.14);
}
[data-theme="light"] .map-surface-outline { stroke: rgba(88,116,246,0.14); }
[data-theme="light"] .map-pane__frame { stroke: rgba(88,116,246,0.16); }
[data-theme="light"] .map-feature.is-linked:hover { stroke: rgba(88,116,246,0.44); }
[data-theme="light"] .map-place-reticle__range { fill: rgba(111,141,255,0.04); stroke: rgba(88,116,246,0.28); }
[data-theme="light"] .map-node__core, [data-theme="light"] .map-node__plate { fill: rgba(255,255,255,0.92); }
[data-theme="light"] .map-node__overview-pill { fill: rgba(255,255,255,0.97); stroke: rgba(88,116,246,0.18); }
[data-theme="light"] .map-node__badge { fill: rgba(255,255,255,0.98); stroke: rgba(88,116,246,0.18); }
[data-theme="light"] .map-node__badge-text { fill: rgba(45,63,128,0.92); }
[data-theme="light"] .map-node__label { stroke: rgba(255,255,255,0.92); }
[data-theme="light"] .map-node-chip__bg { fill: rgba(255,255,255,0.98); stroke: rgba(88,116,246,0.18); }
[data-theme="light"] .map-node-chip__label { fill: rgba(45,63,128,0.94); stroke: rgba(255,255,255,0.96); }


/* ── 15. KEYFRAMES ───────────────────────────────────────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════════════════════════════════
   15. RESPONSIVE — TABLET (641–1024)
   ═══════════════════════════════��══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__copy { max-width: 100%; margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__platforms { justify-content: center; }
  .hero__visual { margin-top: 1rem; }

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

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

  .download-overview { grid-template-columns: 1fr; }

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


/* ════════���═══════════════════════════���═════════════════════════════════════
   16. RESPONSIVE — MOBILE (max 640)
   ══════════��══════════════════════════════════════════════��════════════════ */

@media (max-width: 640px) {
  .topnav { display: none; }
  .topbar__actions { margin-left: auto; }

  .hero { min-height: auto; padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
  .hero__inner { text-align: center; }
  .hero__title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero__summary { margin-top: clamp(2rem, 4vw, 3rem); }

  .phone { width: 250px; }

  .hero__summary { grid-template-columns: 1fr; gap: 0.75rem; }

  .map-widget { grid-template-columns: 1fr; }
  .map-inspector { border-left: none; border-top: 1px solid var(--glass-border); }

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

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

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

  .places-demo__metrics { flex-direction: column; gap: 0.5rem; }

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

  .download-overview { grid-template-columns: 1fr; }

  .site-footer__inner { flex-direction: column; text-align: center; }
  .site-footer__nav { justify-content: center; flex-wrap: wrap; }

  .map-inspector__stats {
    flex-wrap: wrap;
  }
  .map-inspector__stats > div {
    flex: 1 1 45%;
  }
  .map-inspector__stats > div + div {
    border-left: none;
  }
  .map-inspector__stats > div:nth-child(odd) + div {
    border-left: 1px solid var(--glass-border);
  }
  .map-inspector__stats > div:nth-child(n+3) {
    border-top: 1px solid var(--glass-border);
  }
}


/* ══════════════════════════��═════════════════════════════��═════════════════
   17. RESPONSIVE — LARGE (1441+)
   ═══════════════════════════════════════════════════════��══════════════════ */

@media (min-width: 1441px) {
  .hero__orb--1 { width: 700px; height: 700px; }
  .hero__orb--2 { width: 550px; height: 550px; }
}


/* ══��═══════════════════════════════════���═══════════════��═══════════════════
   18. LIGHT THEME
   ═══════��══════════════════════════��════════════════════════���══════════════ */

[data-theme="light"] {
  --bg:             #f4f6fb;
  --bg-raised:      #ffffff;
  --bg-surface:     #ebeef6;
  --bg-hover:       #e2e6f0;

  --glass:          rgba(255, 255, 255, 0.8);
  --glass-border:   rgba(0, 20, 80, 0.08);
  --glass-border-h: rgba(0, 20, 80, 0.16);

  --text:           #2a3350;
  --text-bright:    #111830;
  --text-soft:      rgba(42, 51, 80, 0.6);
  --text-faint:     rgba(42, 51, 80, 0.35);

  --accent:         #4a6ae8;
  --accent-glow:    rgba(74, 106, 232, 0.12);

  --gold:           #d4a020;
  --gold-soft:      rgba(212, 160, 32, 0.1);

  --map-bg:         #dfe5f0;
  --map-province:   #c8d2e5;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(74, 106, 232, 0.1);
}

[data-theme="light"] .topbar {
  background: rgba(244, 246, 251, 0.85);
}

[data-theme="light"] .hero__orb--1 { background: radial-gradient(circle, rgba(74, 106, 232, 0.15), transparent 70%); }
[data-theme="light"] .hero__orb--2 { background: radial-gradient(circle, rgba(140, 80, 255, 0.1), transparent 70%); }
[data-theme="light"] .hero__orb--3 { background: radial-gradient(circle, rgba(240, 192, 64, 0.12), transparent 70%); }

[data-theme="light"] .hero__title {
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .phone {
  background: linear-gradient(160deg, #e8ecf5 0%, #f5f7fc 100%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 20px 60px rgba(0,0,0,0.12),
    0 0 60px rgba(74, 106, 232, 0.08);
}
[data-theme="light"] .phone__notch { background: var(--bg); }

[data-theme="light"] .map-surface {
  background: linear-gradient(170deg, var(--map-bg) 0%, #d0d8ea 100%);
}

[data-theme="light"] .map-forecast-strip {
  background: rgba(244, 246, 251, 0.92);
}

[data-theme="light"] .map-widget__controls {
  background: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .map-inspector {
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .btn--primary {
  box-shadow: 0 0 20px rgba(74, 106, 232, 0.15);
}

[data-theme="light"] .store-badge {
  background: var(--accent);
}


/* ════���════════════════════════════��════════════════════════════════════════
   19. PRINT
   ═════════════════════════════════���════════════════════════════════════════ */

@media print {
  .topbar, .hero__bg, .map-widget, .map-forecast-strip,
  .theme-toggle, .locale-switcher, .skip-link { display: none; }

  body {
    color: #000; background: #fff;
    font-size: 11pt; line-height: 1.5;
  }

  .glass-card, .faq-item {
    background: transparent;
    border: 1px solid #ccc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero__title {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #000;
  }

  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
