/* ==========================================================================
   NaijaAlert — Homepage Styles
   Nigerian safety & incident-reporting platform
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0B1F33;
  --navy-2: #122B47;
  --blue: #1264A3;
  --blue-bright: #2C8BD6;
  --green: #0B8F55;
  --green-bright: #18B96F;
  --red: #D92D20;
  --red-dark: #B42318;
  --amber: #F59E0B;
  --white: #FFFFFF;
  --bg: #F5F9FC;
  --text: #102A43;
  --muted: #627D98;
  --border: #E1EAF3;

  --grad-main: linear-gradient(135deg, #1264A3, #0B8F55);
  --grad-dark: linear-gradient(135deg, #0B1F33, #10304F);
  --grad-cta: linear-gradient(120deg, #1264A3 0%, #0B8F55 100%);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.06), 0 1px 3px rgba(11, 31, 51, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 31, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, 0.16);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

section[id], div[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Accessibility helpers ---------- */
.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: -60px; left: 16px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

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

/* ---------- Layout utilities ---------- */
.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.section { padding: 88px 0; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-head p {
  margin-top: 14px;
  font-size: 1.06rem;
  color: var(--muted);
}
.section-head-light h2 { color: #fff; }
.section-head-light p { color: #A9C0D6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--grad-main);
  box-shadow: 0 0 0 4px rgba(18, 100, 163, 0.12);
}

.text-gradient {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-sm { padding: 9px 18px; font-size: 0.92rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 8px 22px rgba(11, 143, 85, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 143, 85, 0.36);
}

.btn-danger {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(217, 45, 32, 0.30);
}
.btn-danger:hover {
  transform: translateY(-2px);
  background: var(--red-dark);
  box-shadow: 0 14px 30px rgba(217, 45, 32, 0.38);
}

.btn-danger-outline {
  border-color: rgba(217, 45, 32, 0.45);
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.6);
}
.btn-danger-outline:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(217, 45, 32, 0.30);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  color: var(--blue);
  background: transparent;
}
.btn-ghost:hover { background: rgba(18, 100, 163, 0.08); }

.btn-ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.btn-ghost-light:hover {
  background: #fff;
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 10px 26px rgba(5, 25, 45, 0.28);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(5, 25, 45, 0.34);
}

.btn .icon { flex: 0 0 auto; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue);
  transition: gap 0.18s ease, color 0.18s ease;
}
.link-arrow:hover { gap: 12px; color: var(--green); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(225, 234, 243, 0.6);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(11, 31, 51, 0.10);
  border-bottom-color: var(--border);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-text span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover { color: var(--blue); background: rgba(18, 100, 163, 0.07); }
.nav-links a.active { color: var(--green); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 180px;
  background:
    radial-gradient(52% 60% at 88% 8%, rgba(24, 185, 111, 0.10), transparent 60%),
    radial-gradient(45% 55% at 6% 30%, rgba(18, 100, 163, 0.12), transparent 60%),
    linear-gradient(180deg, #F3F9FC 0%, #F5F9FC 55%, #EAF4FB 100%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-glow-1 { width: 420px; height: 420px; top: -140px; right: -100px; background: rgba(24, 185, 111, 0.22); }
.hero-glow-2 { width: 380px; height: 380px; bottom: -120px; left: -120px; background: rgba(18, 100, 163, 0.20); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  margin-top: 20px;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-sub {
  margin-top: 22px;
  max-width: 520px;
  font-size: 1.14rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  color: var(--muted);
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-trust .icon { color: var(--green); }

/* Hero visual */
.hero-visual { position: relative; }

.hero-visual-card {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 28px;
  overflow: visible;
}
.hero-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(24, 185, 111, 0.07), rgba(18, 100, 163, 0.07));
  pointer-events: none;
}

.nigeria-map { width: 100%; height: auto; }

.ng-outline { animation: ngDraw 1.6s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes ngDraw {
  from { stroke-dasharray: 1200; stroke-dashoffset: 1200; opacity: 0.6; }
  to { stroke-dasharray: 1200; stroke-dashoffset: 0; opacity: 1; }
}

.ng-marker { transform-origin: center; transform-box: fill-box; animation: markerIn 0.6s ease both; }
.ng-marker:nth-child(1) { animation-delay: 0.5s; }
.ng-marker:nth-child(2) { animation-delay: 0.7s; }
.ng-marker:nth-child(3) { animation-delay: 0.9s; }
.ng-marker:nth-child(4) { animation-delay: 1.1s; }
@keyframes markerIn { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

.ng-pulse {
  fill: none;
  stroke-width: 2;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0% { opacity: 0.55; r: 5; }
  70% { opacity: 0; r: 22; }
  100% { opacity: 0; r: 22; }
}

.glass-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(225, 234, 243, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: chipFloat 5s ease-in-out infinite;
}
.glass-chip strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); line-height: 1.25; }
.glass-chip small { font-size: 0.72rem; color: var(--muted); }
.glass-chip > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 10px;
  color: #fff;
  flex: 0 0 auto;
}
.chip-ok { background: var(--green-bright); }
.chip-bell { background: var(--blue); }
.chip-users { background: var(--navy); }

.glass-chip-a { top: 6px; left: -14px; }
.glass-chip-b { bottom: 86px; right: -18px; animation-delay: 1.4s; }
.glass-chip-c { bottom: -18px; left: 18px; animation-delay: 2.6s; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Emergency card ---------- */
.emergency-section { position: relative; z-index: 5; }
.emergency-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  background: #fff;
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px 34px;
  overflow: hidden;
}
.emergency-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--red), #F97066);
}
.emergency-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 18px;
  background: rgba(217, 45, 32, 0.10);
  color: var(--red);
}
.emergency-body h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; }
.emergency-body p { margin-top: 6px; color: var(--muted); font-size: 0.98rem; }
.emergency-note { font-size: 0.86rem !important; color: var(--red-dark) !important; font-weight: 600; }
.emergency-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Incident categories ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 100, 163, 0.35);
}
.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--blue);
}
.category-card:nth-child(2n) .category-icon { color: var(--green); background: rgba(11, 143, 85, 0.08); }
.category-card:nth-child(3n) .category-icon { color: var(--navy); background: rgba(11, 31, 51, 0.06); }
.category-card h3 { font-size: 1.06rem; font-weight: 700; line-height: 1.3; }
.category-card p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.category-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  align-self: flex-end;
  border-radius: 50%;
  background: var(--bg);
  color: var(--blue);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.category-card:hover .category-arrow {
  background: var(--grad-main);
  color: #fff;
  transform: translateX(3px);
}

/* ---------- How it works ---------- */
.how-section { background: #fff; }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 8%;
  right: 8%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: 0.22;
}
.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--grad-main);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px rgba(11, 143, 85, 0.30);
}
.step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Report tracking ---------- */
.tracker-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 36px;
  max-width: 720px;
  margin-inline: auto;
}
.tracker-form { display: flex; gap: 14px; }
.tracker-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.tracker-input-wrap .icon {
  position: absolute;
  left: 18px;
  color: var(--muted);
  pointer-events: none;
}
.tracker-input-wrap input {
  width: 100%;
  padding: 15px 18px 15px 48px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.tracker-input-wrap input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 100, 163, 0.14);
}
.tracker-input-wrap input::placeholder { color: var(--muted); font-weight: 500; letter-spacing: 0; }

.status-timeline {
  position: relative;
  margin-top: 36px;
  padding-left: 0;
}
.status-timeline li {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 26px;
}
.status-timeline li:last-child { padding-bottom: 0; }
.status-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px; top: 36px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.status-timeline li.done:not(:last-child)::before {
  background: linear-gradient(180deg, var(--green-bright), var(--green-bright) 60%, var(--border) 60%);
}
.status-dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.status-timeline li.done .status-dot {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 143, 85, 0.30);
}
.status-timeline li.pending .status-dot {
  border: 2px dashed #C7D6E2;
  background: #fff;
}
.status-label { padding-top: 2px; }
.status-label strong { display: block; font-size: 1rem; font-weight: 700; }
.status-label small { color: var(--muted); font-size: 0.85rem; }

.tracker-note {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Safety map ---------- */
.map-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 34px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 34px;
}
.map-canvas { position: relative; }
.map-canvas svg { width: 100%; height: auto; }
.map-city { transform-origin: center; transform-box: fill-box; animation: markerIn 0.6s ease both; }
.map-city:nth-of-type(1) { animation-delay: 0.2s; }
.map-city:nth-of-type(2) { animation-delay: 0.4s; }
.map-city:nth-of-type(3) { animation-delay: 0.6s; }
.map-city:nth-of-type(4) { animation-delay: 0.8s; }

.demo-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
}

.map-stats { display: grid; gap: 12px; }
.map-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.map-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(18, 100, 163, 0.3); }
.map-stat-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(18, 100, 163, 0.10);
  color: var(--blue);
}
.map-stat:nth-child(2n) .map-stat-pin { background: rgba(11, 143, 85, 0.10); color: var(--green); }
.map-stat-text { flex: 1; }
.map-stat-text strong { display: block; font-weight: 700; }
.map-stat-text small { color: var(--muted); font-size: 0.85rem; }
.map-stat-count {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.map-stat-count small { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

.map-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}
.map-cta p { font-size: 0.88rem; color: var(--muted); max-width: 460px; }

/* ---------- Safety alerts ---------- */
.alerts-section { background: #fff; }
.alert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.alert-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.alert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.alert-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
}
.alert-card.urgent::before { background: var(--red); }
.alert-card.warning::before { background: var(--amber); }
.alert-card.resolved::before { background: var(--green); }

.alert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.alert-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.alert-card.urgent .alert-level { color: var(--red-dark); background: rgba(217, 45, 32, 0.10); }
.alert-card.warning .alert-level { color: #B45309; background: rgba(245, 158, 11, 0.14); }
.alert-card.resolved .alert-level { color: var(--green); background: rgba(11, 143, 85, 0.10); }
.alert-level-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.alert-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.alert-badge.verified { color: var(--blue); border-color: rgba(18, 100, 163, 0.4); }
.alert-badge.resolved { color: var(--green); border-color: rgba(11, 143, 85, 0.4); }

.alert-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.alert-card p { font-size: 0.93rem; color: var(--muted); }
.alert-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted);
}
.alert-meta .icon { color: var(--muted); }

.alerts-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.alerts-foot p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Trust section ---------- */
.trust-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(24, 185, 111, 0.14), transparent 55%),
    radial-gradient(50% 70% at 0% 100%, rgba(18, 100, 163, 0.18), transparent 55%),
    var(--grad-dark);
}
.trust-glow {
  position: absolute;
  width: 520px; height: 520px;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 100, 163, 0.25), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}
.trust-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(24, 185, 111, 0.35);
}
.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(24, 185, 111, 0.16);
  color: var(--green-bright);
}
.trust-card h3 { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.trust-card p { color: #A9C0D6; font-size: 0.93rem; }

/* ---------- Trusted contacts ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.contacts-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }
.contacts-copy > p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.contact-points { margin: 26px 0 30px; display: grid; gap: 14px; }
.contact-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.98rem; }
.contact-points .icon { color: var(--green); flex: 0 0 auto; }

.contacts-mock { display: flex; justify-content: center; }

/* Phone frame */
.phone-frame {
  position: relative;
  width: 300px;
  background: var(--navy);
  border: 6px solid #0B1F33;
  border-radius: 44px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  aspect-ratio: 9 / 19.2;
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  background: var(--navy);
  border-radius: 14px;
  z-index: 3;
}
.phone-tilted { transform: rotate(3deg); }
.phone-upright { transform: rotate(0); }

.mock-contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 20px 16px;
}
.mock-logo { font-size: 0.95rem; font-weight: 800; color: #fff; }
.mock-logo span { color: var(--green-bright); }
.mock-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #B9CFE2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 10px;
  border-radius: 999px;
}

.mock-contacts { padding: 8px 18px; display: grid; gap: 12px; }
.mock-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
}
.mock-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  flex: 0 0 auto;
}
.avatar-1 { background: linear-gradient(135deg, #1264A3, #2C8BD6); }
.avatar-2 { background: linear-gradient(135deg, #0B8F55, #18B96F); }
.avatar-3 { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.mock-contact-text { flex: 1; }
.mock-contact-text strong { display: block; color: #fff; font-size: 0.92rem; }
.mock-contact-text small { color: #9FB6CB; font-size: 0.75rem; }
.mock-contact-bell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(24, 185, 111, 0.16);
  color: var(--green-bright);
}
.mock-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 18px 22px;
  padding: 13px;
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  color: #B9CFE2;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Mobile preview ---------- */
.mobile-section { background: #fff; }
.mobile-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.mobile-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; margin: 14px 0; }
.mobile-copy > p { color: var(--muted); font-size: 1.05rem; }
.mobile-features { margin-top: 26px; display: grid; gap: 12px; }
.mobile-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.97rem;
}
.mobile-features li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-main);
  flex: 0 0 auto;
}

.mock-app { display: flex; flex-direction: column; height: 100%; padding: 44px 18px 18px; gap: 14px; }
.mock-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  padding: 0 4px;
}
.mock-sos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px auto;
  width: 176px; height: 176px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #F97066, var(--red) 60%);
  color: #fff;
  box-shadow: 0 0 0 12px rgba(217, 45, 32, 0.18), 0 18px 40px rgba(217, 45, 32, 0.45);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease;
}
.mock-sos:active { transform: scale(0.96); }
.mock-sos svg { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); }

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
}
.mock-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: rgba(18, 100, 163, 0.30);
  color: #7CC2F0;
}
.mock-row-text { flex: 1; }
.mock-row-text small { display: block; color: #9FB6CB; font-size: 0.7rem; }
.mock-row-text strong { color: #fff; font-size: 0.9rem; }

/* ---------- Resources ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.resource-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 143, 85, 0.35);
}
.resource-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(18, 100, 163, 0.08);
  color: var(--blue);
  flex: 0 0 auto;
}
.resource-card:nth-child(2n) .resource-icon { background: rgba(11, 143, 85, 0.08); color: var(--green); }
.resource-card h3 { font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
.resources-foot { margin-top: 32px; text-align: center; }

/* ---------- Mission ---------- */
.mission-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: linear-gradient(180deg, #EAF4FB, #F5F9FC 40%);
}
.mission-visual {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
}
.mission-visual svg { width: 100%; height: 100%; }
.mission-inner { position: relative; text-align: center; }
.mission-inner .section-head { margin-inline: auto; max-width: 660px; }
.mission-values {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}
.mission-value {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: left;
  max-width: 340px;
}
.mission-value .icon { color: var(--green); flex: 0 0 auto; }
.mission-value strong { display: block; font-weight: 700; }
.mission-value small { color: var(--muted); font-size: 0.84rem; line-height: 1.4; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background:
    radial-gradient(55% 90% at 12% 0%, rgba(44, 139, 214, 0.30), transparent 60%),
    radial-gradient(50% 90% at 90% 100%, rgba(24, 185, 111, 0.32), transparent 60%),
    var(--grad-cta);
}
.final-cta-inner {
  text-align: center;
  max-width: 700px;
}
.final-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.final-cta p { margin-top: 16px; color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; }
.final-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #A9C0D6; padding-top: 72px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-footer { color: #fff; }
.footer-brand > p { margin-top: 14px; font-size: 0.95rem; max-width: 260px; }
.footer-tag { color: #6F8CA6; font-size: 0.85rem !important; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #A9C0D6;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-3px);
}
.footer-col h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a {
  font-size: 0.92rem;
  color: #A9C0D6;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--green-bright); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 30px;
  font-size: 0.85rem;
}
.footer-demo {
  color: #6F8CA6;
  text-shadow:
    0 0 6px rgba(24, 185, 111, 0.9),
    0 0 12px rgba(24, 185, 111, 0.7),
    0 0 22px rgba(24, 185, 111, 0.5),
    0 0 44px rgba(24, 185, 111, 0.3);
  animation: neonPulse 1.8s ease-in-out infinite alternate;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.footer-demo a {
  color: #18B96F;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow:
    0 0 6px rgba(24, 185, 111, 0.9),
    0 0 12px rgba(24, 185, 111, 0.7),
    0 0 22px rgba(24, 185, 111, 0.5),
    0 0 44px rgba(24, 185, 111, 0.3);
}
@keyframes neonPulse {
  from {
    text-shadow:
      0 0 4px rgba(24, 185, 111, 0.8),
      0 0 10px rgba(24, 185, 111, 0.6),
      0 0 18px rgba(24, 185, 111, 0.4),
      0 0 36px rgba(24, 185, 111, 0.2);
  }
  to {
    text-shadow:
      0 0 8px rgba(24, 185, 111, 1),
      0 0 18px rgba(24, 185, 111, 0.9),
      0 0 28px rgba(24, 185, 111, 0.7),
      0 0 52px rgba(24, 185, 111, 0.4);
  }
}

/* ---------- Mobile sticky action bar ---------- */
.mobile-action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(11, 31, 51, 0.10);
  display: none;
}
.mab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--blue);
  border: 1.5px solid var(--border);
}
.mab-danger { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  z-index: 85;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 10px 28px rgba(11, 143, 85, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 36px rgba(11, 143, 85, 0.45);
}
.back-to-top:active { transform: translateY(-1px) scale(0.97); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open a { padding: 13px 14px; font-size: 1rem; }

  .hero { padding-bottom: 200px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .glass-chip-a { left: 0; }
  .glass-chip-b { right: 0; }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps::before { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
  .alert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .emergency-card { grid-template-columns: 1fr; gap: 18px; padding: 28px 24px; }
  .map-card { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; gap: 44px; }
  .mobile-grid { grid-template-columns: 1fr; gap: 44px; }
  .tracker-form { flex-direction: column; }
  .map-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .container { width: min(1180px, 100% - 32px); }
  .hero { padding: calc(var(--header-h) + 48px) 0 160px; }

  .category-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .final-cta { padding: 80px 0; }

  body { padding-bottom: 76px; }
  .mobile-action-bar {
    display: flex;
    gap: 10px;
  }
  .back-to-top { bottom: 92px; right: 20px; width: 44px; height: 44px; }
}

@media (max-width: 520px) {
  .nav-actions .btn-primary { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-ghost { padding: 8px 12px; font-size: 0.85rem; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .glass-chip { animation: none; }
  .ng-pulse { animation: none; opacity: 0.35; }
  .phone-tilted { transform: none; }
}

/* ==========================================================================
   Emergency page
   ========================================================================== */
.emergency-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 72px;
  background:
    radial-gradient(50% 60% at 90% 10%, rgba(24, 185, 111, 0.14), transparent 60%),
    radial-gradient(45% 55% at 5% 25%, rgba(18, 100, 163, 0.16), transparent 60%),
    linear-gradient(180deg, #0B1F33 0%, #122B47 55%, #0F2A45 100%);
  color: #fff;
}
.emergency-hero-inner { max-width: 760px; }
.emergency-hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.emergency-hero-copy p {
  margin-top: 16px;
  color: #A9C0D6;
  font-size: 1.08rem;
  max-width: 620px;
}
.emergency-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.emergency-hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #7A9BBF;
  font-weight: 600;
}

.btn-call {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 10px 28px rgba(5, 25, 45, 0.35);
}
.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(5, 25, 45, 0.45);
}
.btn-xl { padding: 18px 32px; font-size: 1.12rem; }

.call-card {
  position: relative;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 28px;
  box-shadow: var(--shadow-lg);
}
.call-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-dark);
  background: rgba(217, 45, 32, 0.10);
  border: 1px solid rgba(217, 45, 32, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.call-card-number {
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.call-card-text {
  margin-top: 14px;
  color: var(--muted);
  max-width: 420px;
  margin-inline: auto;
  font-size: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 100, 163, 0.35);
}
.service-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--blue);
}
.service-card h3 { font-size: 1.02rem; font-weight: 700; }
.service-card p { font-size: 0.88rem; color: var(--muted); flex: 1; line-height: 1.5; }
.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(18, 100, 163, 0.08);
  border: 1px solid rgba(18, 100, 163, 0.25);
  padding: 5px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.services-disclaimer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--muted);
}
.services-disclaimer .icon { color: var(--blue); flex: 0 0 auto; }

.alert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.alert-location, .alert-contacts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.alert-location-label, .alert-contacts-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}
.alert-location-status {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}
.alert-contact-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.alert-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}
.alert-divider {
  height: 1px;
  background: var(--border);
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.guidance-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.guidance-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(18, 100, 163, 0.08);
  color: var(--blue);
  flex: 0 0 auto;
}
.guidance-card h3 { font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
.guidance-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

.situations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.situation-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.situation-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 100, 163, 0.35);
}
.situation-icon {
  font-size: 1.4rem;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 12px;
  flex: 0 0 auto;
}
.situation-body { flex: 1; }
.situation-body h3 { font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.situation-body p { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.situation-arrow { color: var(--muted); }

.report-cta-card {
  text-align: center;
  background: var(--grad-main);
  border-radius: 24px;
  padding: 44px 28px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.report-cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.report-cta-card p { margin-top: 10px; color: rgba(255, 255, 255, 0.88); max-width: 520px; margin-inline: auto; }
.report-cta-card .btn { margin-top: 22px; }

.privacy-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.privacy-card .icon { color: var(--blue); flex: 0 0 auto; margin-top: 2px; }
.privacy-card h3 { font-size: 1rem; font-weight: 700; }
.privacy-card p { margin-top: 4px; color: var(--muted); font-size: 0.92rem; }
.privacy-card a { color: var(--blue); font-weight: 700; }

/* Emergency mobile bar overrides */
.emergency-mobile-bar { display: none; }
.emergency-mobile-bar .mab-call { background: #fff; color: var(--blue); border-color: var(--border); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 31, 51, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: #fff;
  border-radius: 24px;
  padding: 30px 26px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.modal-close:hover {
  color: var(--red);
  border-color: rgba(217, 45, 32, 0.4);
  background: rgba(217, 45, 32, 0.04);
}
.modal-card h2 { font-size: 1.4rem; font-weight: 800; }
.modal-card p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.modal-summary {
  text-align: left;
  margin: 18px 0;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
  display: grid;
  gap: 10px;
}
.modal-summary li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}
.modal-summary strong { color: var(--text); font-weight: 700; }
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.modal-success .success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(11, 143, 85, 0.10);
  color: var(--green);
  margin-bottom: 16px;
}
.success-timeline {
  margin: 18px 0;
  padding-left: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}
.success-timeline li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}
.success-timeline .status-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  flex: 0 0 auto;
}
.success-timeline strong { color: var(--text); }
.tracker-alt {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ==========================================================================
   Responsive — emergency page
   ========================================================================== */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .guidance-grid { grid-template-columns: 1fr; }
  .situations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .emergency-hero { padding: calc(var(--header-h) + 44px) 0 56px; }
  body { padding-bottom: 84px; }
  .mobile-action-bar.emergency-mobile-bar { display: flex; }
}

@media (max-width: 520px) {
  .call-card { padding: 32px 20px; }
  .call-card-number { font-size: 3.2rem; }
  .modal-card { padding: 24px 18px; }
}


/* ==========================================================================
   Report page
   ========================================================================== */
.report-hero {
  padding: calc(var(--header-h) + 36px) 0 28px;
  background: linear-gradient(180deg, #EAF4FB 0%, #F5F9FC 100%);
}
.report-hero-inner { max-width: 760px; }
.report-hero-copy h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.report-hero-copy p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}
.report-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(11, 143, 85, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 143, 85, 0.18);
}

.emergency-warning {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.emergency-warning::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--red), #F97066);
}
.emergency-warning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(217, 45, 32, 0.10);
  color: var(--red);
}
.emergency-warning-body h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.emergency-warning-body p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}
.emergency-warning-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.report-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: start;
}

.report-main { min-width: 0; }

.report-progress {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.report-progress-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.report-progress-fill {
  height: 100%;
  width: 16.66%;
  background: var(--grad-main);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.report-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
#progress-title { color: var(--text); }

.step-panel { animation: fadeIn 0.35s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.step-panel h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.step-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
}

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}
.step-nav span { flex: 1; }

/* Incident cards */
.incident-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.incident-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.incident-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 100, 163, 0.35);
}
.incident-card.selected {
  border-color: var(--green);
  background: rgba(11, 143, 85, 0.04);
  box-shadow: 0 0 0 4px rgba(11, 143, 85, 0.10);
}
.incident-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.incident-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--blue);
}
.incident-card h3 { font-size: 0.98rem; font-weight: 700; }
.incident-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.incident-check {
  position: absolute;
  top: 14px; right: 14px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.incident-card.selected .incident-check {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* Form elements */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.form-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.form-divider::before, .form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.field:last-child { margin-bottom: 0; }
.field-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.field-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}
.field-error {
  font-size: 0.85rem;
  color: var(--red);
  margin-top: 8px;
  font-weight: 600;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-input-wrap {
  position: relative;
}
.field-input-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.field-input-wrap input,
.field input[type="text"],
.field input[type="date"],
.field input[type="time"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 100, 163, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: #9FB6CB; }

/* Segmented control */
.segmented { display: flex; gap: 10px; flex-wrap: wrap; }
.seg-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.seg-option input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.seg-option span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 2px solid var(--border);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.seg-option input:checked + span {
  border-color: var(--blue);
  background: rgba(18, 100, 163, 0.06);
  color: var(--blue);
}
.seg-option input:focus + span {
  box-shadow: 0 0 0 3px rgba(18, 100, 163, 0.18);
}
.seg-option-block span {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px;
  min-width: 220px;
}
.seg-option-block strong { font-weight: 700; }
.seg-option-block small { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.seg-option input:checked + small { color: var(--blue); }

/* Severity */
.severity-options { display: grid; gap: 10px; margin-top: 10px; }
.severity-option input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.severity-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.severity-card strong { display: block; font-weight: 700; }
.severity-card small { font-size: 0.82rem; color: var(--muted); }
.severity-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.severity-critical .severity-dot { background: var(--red); }
.severity-urgent .severity-dot { background: var(--amber); }
.severity-concern .severity-dot { background: var(--green); }
.severity-option input:checked + .severity-critical { border-color: var(--red); background: rgba(217, 45, 32, 0.04); }
.severity-option input:checked + .severity-urgent { border-color: var(--amber); background: rgba(245, 158, 11, 0.04); }
.severity-option input:checked + .severity-concern { border-color: var(--green); background: rgba(11, 143, 85, 0.04); }

/* Checkbox */
.checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
}
.checkbox-wrap input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.checkbox-box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.checkbox-wrap input:checked + .checkbox-box {
  background: var(--green);
  border-color: var(--green);
}
.checkbox-wrap input:checked + .checkbox-box::after {
  content: "";
  width: 6px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}
.checkbox-wrap input:focus + .checkbox-box {
  box-shadow: 0 0 0 3px rgba(11, 143, 85, 0.18);
}
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* Upload */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--blue);
  background: rgba(18, 100, 163, 0.04);
  color: var(--blue);
}
.file-list { margin-top: 16px; display: grid; gap: 10px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.file-preview {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  overflow: hidden;
}
.file-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-info { flex: 1; min-width: 0; }
.file-info strong { display: block; font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-info small { color: var(--muted); font-size: 0.78rem; }
.file-remove {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.file-remove:hover {
  color: var(--red);
  border-color: rgba(217, 45, 32, 0.4);
  background: rgba(217, 45, 32, 0.04);
}

/* Review */
.review-list { display: grid; gap: 14px; }
.review-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.review-header strong { font-size: 0.92rem; }
.review-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Success */
.success-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 28px;
  box-shadow: var(--shadow-md);
}
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(11, 143, 85, 0.10);
  color: var(--green);
  margin-bottom: 18px;
}
.success-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}
.success-card > p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
  font-size: 1rem;
}
.report-id-card {
  margin: 24px auto 0;
  max-width: 420px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}
.report-id-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.report-id-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.report-id-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Safety panel */
.report-side { position: sticky; top: calc(var(--header-h) + 24px); }
.safety-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.safety-panel h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.safety-panel ul { display: grid; gap: 16px; }
.safety-panel li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.safety-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad-main);
  margin-top: 6px;
  flex: 0 0 auto;
}
.safety-panel strong { display: block; font-size: 0.92rem; }
.safety-panel small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

/* Inline helpers */
.safety-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.safety-text .icon { color: var(--green); flex: 0 0 auto; }
.emergency-inline-warning {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(217, 45, 32, 0.06);
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: var(--radius-sm);
  color: var(--red-dark);
  font-weight: 600;
  font-size: 0.92rem;
}
.location-privacy {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}
.location-privacy strong { display: block; font-weight: 700; }
.location-privacy p { color: var(--muted); margin-top: 2px; }
.map-preview {
  margin-top: 14px;
  height: 180px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}
.map-preview-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
}
.map-preview-placeholder strong { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.map-preview-placeholder small { font-size: 0.78rem; }

/* Mobile bar overrides on report page */
.report-mobile-bar { display: none; }
.report-mobile-bar #mab-continue { background: var(--grad-main); color: #fff; border-color: transparent; }

/* ==========================================================================
   Responsive — report page
   ========================================================================== */
@media (max-width: 860px) {
  .report-layout { grid-template-columns: 1fr; }
  .report-side { position: static; }
  .safety-panel { display: none; }
  .emergency-warning { grid-template-columns: 1fr; gap: 16px; }
  .emergency-warning-actions { width: 100%; }
  .emergency-warning-actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 720px) {
  .report-hero { padding: calc(var(--header-h) + 24px) 0 20px; }
  .incident-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .seg-option-block { min-width: 100%; }

  body { padding-bottom: 84px; }
  .mobile-action-bar.report-mobile-bar { display: flex; }
  .report-progress { margin-bottom: 18px; }
}

@media (max-width: 520px) {
  .emergency-warning { padding: 20px; }
  .step-nav .btn-lg { padding: 14px 18px; font-size: 1rem; }
}

/* ==========================================================================
   Safety Map page
   ========================================================================== */
.map-hero {
  padding: calc(var(--header-h) + 28px) 0 22px;
  background: linear-gradient(180deg, #EAF4FB 0%, #F5F9FC 100%);
}
.map-hero-inner { max-width: 760px; }
.map-hero-copy h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.map-hero-copy > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.05rem;
}
.map-hero-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.map-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(11, 143, 85, 0.08);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 143, 85, 0.18);
}
.map-status .status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(24, 185, 111, 0.20);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.map-hero-disclaimer {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.map-section { padding: 0; }
.map-section > .container { padding-top: 0; }

.map-stats-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.map-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.map-stat-item strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.map-stat-item small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.demo-badge-sm {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 5px 12px;
  border-radius: 999px;
}

.map-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.map-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.map-search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.map-search input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.map-search input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 100, 163, 0.12);
}
.map-search input::placeholder { color: var(--muted); }
.map-toolbar-actions {
  display: flex;
  gap: 8px;
}

.map-wrapper {
  position: relative;
  display: flex;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: #fff;
  min-height: 70vh;
}

.map-sidebar {
  width: 340px;
  background: #fff;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px;
  display: none;
}
.sidebar-section {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-section:last-child { border-bottom: none; }
.sidebar-section h3 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  user-select: none;
}
.filter-check input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.filter-check .check-box {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  flex: 0 0 auto;
}
.filter-check input:checked + .check-box {
  background: var(--green);
  border-color: var(--green);
}
.filter-check input:checked + .check-box::after {
  content: "";
  width: 6px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}
.filter-check input:focus + .check-box {
  box-shadow: 0 0 0 3px rgba(11, 143, 85, 0.18);
}
.legend-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.map-container {
  flex: 1;
  position: relative;
  background: #EAF4FB;
}
#map {
  width: 100%;
  height: 100%;
  min-height: 70vh;
}

/* List View */
.list-view {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #fff;
}
.list-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin-inline: auto;
}
.list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 100, 163, 0.35);
}
.list-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.list-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: 0 0 auto;
}
.list-card h3 { font-size: 1rem; font-weight: 700; }
.list-card p { font-size: 0.88rem; color: var(--muted); }
.list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.list-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.list-badge.urgent { color: var(--red-dark); background: rgba(217, 45, 32, 0.10); }
.list-badge.concern { color: #B45309; background: rgba(245, 158, 11, 0.14); }
.list-badge.verified { color: var(--green); background: rgba(11, 143, 85, 0.10); }
.list-badge.resolved { color: var(--green); background: rgba(11, 143, 85, 0.10); }
.list-badge.review { color: var(--muted); background: var(--bg); }

/* Floating buttons */
.map-fab {
  position: fixed;
  z-index: 800;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.map-fab:hover { transform: translateY(-3px) scale(1.05); }
.map-fab-emergency {
  bottom: 200px; right: 20px;
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 8px 22px rgba(217, 45, 32, 0.35);
}
.map-fab-report {
  bottom: 144px; right: 20px;
  background: #fff;
  color: var(--blue);
  border-color: var(--border);
}
.map-fab-report:hover { border-color: var(--blue); }

/* Custom popup */
.naija-popup {
  font-family: var(--font);
  min-width: 240px;
}
.naija-popup h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.naija-popup p {
  margin: 4px 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.naija-popup .popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.naija-popup .popup-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.naija-popup .popup-badge.urgent { color: var(--red-dark); background: rgba(217, 45, 32, 0.10); }
.naija-popup .popup-badge.concern { color: #B45309; background: rgba(245, 158, 11, 0.14); }
.naija-popup .popup-badge.verified { color: var(--green); background: rgba(11, 143, 85, 0.10); }
.naija-popup .popup-badge.resolved { color: var(--green); background: rgba(11, 143, 85, 0.10); }
.naija-popup .popup-badge.review { color: var(--muted); background: var(--bg); }
.naija-popup .popup-demo {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 8px;
}
.naija-popup .popup-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Marker cluster custom */
.marker-cluster-small {
  background: rgba(18, 100, 163, 0.2) !important;
}
.marker-cluster-small div {
  background: rgba(18, 100, 163, 0.6) !important;
  color: #fff !important;
  font-weight: 700;
}
.marker-cluster-medium {
  background: rgba(11, 143, 85, 0.2) !important;
}
.marker-cluster-medium div {
  background: rgba(11, 143, 85, 0.6) !important;
  color: #fff !important;
  font-weight: 700;
}
.marker-cluster-large {
  background: rgba(11, 31, 51, 0.2) !important;
}
.marker-cluster-large div {
  background: rgba(11, 31, 51, 0.6) !important;
  color: #fff !important;
  font-weight: 700;
}

/* Custom map markers */
.map-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(11, 31, 51, 0.18);
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}
.map-marker:hover { transform: scale(1.15); }
.map-marker.emergency { border-color: #D92D20; color: #D92D20; }
.map-marker.urgent { border-color: #F59E0B; color: #F59E0B; }
.map-marker.concern { border-color: #F59E0B; color: #D97706; }
.map-marker.verified { border-color: #18B96F; color: #0B8F55; }
.map-marker.resolved { border-color: #18B96F; color: #0B8F55; }
.map-marker.review { border-color: #627D98; color: #627D98; }
.map-marker-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0;
  animation: markerPulse 2s ease-out infinite;
}
.map-marker.emergency .map-marker-pulse { border-color: #D92D20; }
@keyframes markerPulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Mobile bottom sheet */
.mobile-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(11, 31, 51, 0.18);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1000;
  max-height: 65vh;
  overflow-y: auto;
}
.mobile-bottom-sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: #D1D5DB;
  margin: 10px auto 0;
}
.sheet-content { padding: 16px 20px 24px; }
.sheet-content .naija-popup { min-width: auto; }

/* Safety info */
.safety-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.safety-info-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.safety-info-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.safety-disclaimer {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* CTA */
.map-cta-card {
  text-align: center;
  background: var(--grad-main);
  border-radius: 24px;
  padding: 44px 28px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.map-cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.map-cta-card p { margin-top: 10px; color: rgba(255, 255, 255, 0.88); max-width: 520px; margin-inline: auto; }
.map-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

/* ==========================================================================
   Responsive — safety map page
   ========================================================================== */
@media (min-width: 1024px) {
  .map-sidebar { display: block; }
  .map-wrapper { gap: 0; }
}

@media (max-width: 860px) {
  .map-stats-bar { gap: 14px; padding: 14px 18px; }
  .map-stat-item strong { font-size: 1.1rem; }
}

@media (max-width: 720px) {
  .map-hero { padding: calc(var(--header-h) + 20px) 0 16px; }
  .map-stats-bar { gap: 10px; padding: 12px 14px; }
  .map-stat-item strong { font-size: 1rem; }
  .map-stat-item small { font-size: 0.7rem; }
  .map-toolbar { gap: 8px; }
  .map-search { min-width: 160px; }
  .map-fab-emergency { bottom: 180px; right: 14px; width: 44px; height: 44px; }
  .map-fab-report { bottom: 128px; right: 14px; width: 44px; height: 44px; }
  .map-cta-card { padding: 32px 20px; }
}

@media (max-width: 520px) {
  .map-search { min-width: 100%; }
  .map-toolbar-actions { width: 100%; }
  .map-toolbar-actions .btn { flex: 1; justify-content: center; }
  .map-wrapper { min-height: 60vh; }
  #map { min-height: 60vh; }
}

/* ==========================================================================
   Resources page
   ========================================================================== */
.resources-hero {
  padding: calc(var(--header-h) + 36px) 0 28px;
  background: linear-gradient(180deg, #EAF4FB 0%, #F5F9FC 100%);
}
.resources-hero-inner { max-width: 760px; }
.resources-hero-copy h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.resources-hero-copy > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.05rem;
}
.resources-hero-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.search-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.search-card h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.search-wrap {
  position: relative;
  margin-bottom: 18px;
}
.search-wrap .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 100, 163, 0.12);
}
.search-wrap input::placeholder { color: var(--muted); }

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.filter-pill:hover { border-color: var(--blue); color: var(--blue); }
.filter-pill.active {
  background: var(--grad-main);
  border-color: transparent;
  color: #fff;
}

/* Resource grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 100, 163, 0.35);
}
.resource-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--blue);
  flex: 0 0 auto;
}
.resource-card-body { flex: 1; min-width: 0; }
.resource-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.resource-card p { font-size: 0.88rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.resource-arrow { color: var(--muted); flex: 0 0 auto; }

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 1rem;
}
.no-results .link-arrow {
  display: inline-flex;
  margin-top: 10px;
}

/* Articles */
.article-view { padding: 28px 0 64px; }
.article-back { margin-bottom: 18px; }
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
}
.article-card h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.article-intro {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.article-card h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.article-card ul, .article-card ol {
  padding-left: 24px;
}
.article-card li {
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.6;
}
.article-card ul { list-style: disc; }
.article-card ol { list-style: decimal; }

.emergency-box {
  background: rgba(217, 45, 32, 0.06);
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.emergency-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--red-dark);
}
.emergency-box p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.dont-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 18px;
}
.dont-box h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--red-dark);
}
.dont-box ul { list-style: none; padding-left: 0; }
.dont-box li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
}
.dont-box li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.do-list {
  background: rgba(11, 143, 85, 0.04);
  border: 1px solid rgba(11, 143, 85, 0.18);
  border-radius: var(--radius-md);
  padding: 20px 20px 20px 48px;
}
.do-list li {
  position: relative;
}
.do-list li::before {
  content: "✓";
  position: absolute;
  left: -28px;
  color: var(--green);
  font-weight: 800;
}

.article-cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* CTA */
.map-cta-card {
  text-align: center;
  background: var(--grad-main);
  border-radius: 24px;
  padding: 44px 28px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.map-cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.map-cta-card p { margin-top: 10px; color: rgba(255, 255, 255, 0.88); max-width: 520px; margin-inline: auto; }
.map-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

/* Mobile bar overrides */
.resources-mobile-bar { display: none; }
.resources-mobile-bar .mab-danger { background: var(--red); border-color: var(--red); color: #fff; }

/* ==========================================================================
   Responsive — resources page
   ========================================================================== */
@media (max-width: 860px) {
  .resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .resources-hero { padding: calc(var(--header-h) + 20px) 0 16px; }
  .article-card { padding: 22px; }
  .article-card h1 { font-size: 1.5rem; }
  body { padding-bottom: 76px; }
  .mobile-action-bar.resources-mobile-bar { display: flex; }
}

@media (max-width: 520px) {
  .search-card { padding: 18px; }
  .resource-card { padding: 16px; }
}

/* ==========================================================================
   About page
   ========================================================================== */
.about-hero {
  padding: calc(var(--header-h) + 48px) 0 44px;
  background: linear-gradient(180deg, #EAF4FB 0%, #F5F9FC 100%);
}
.about-hero-inner { max-width: 760px; }
.about-hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.about-hero-copy p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 640px;
}
.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.about-section { padding: 72px 0; }
.about-section:first-of-type { padding-top: 0; }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.principle-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.principle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.principle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--bg);
  color: var(--blue);
  margin-bottom: 16px;
}
.principle-card:nth-child(2n) .principle-icon { color: var(--green); background: rgba(11, 143, 85, 0.08); }
.principle-card:nth-child(3n) .principle-icon { color: var(--navy); background: rgba(11, 31, 51, 0.06); }
.principle-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.principle-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.about-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.about-list {
  margin-top: 14px;
  padding-left: 24px;
  list-style: disc;
  display: grid;
  gap: 8px;
}
.about-list li {
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-flow-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 260px;
}
.about-flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.02rem;
}
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  flex: 0 0 auto;
}
.about-flow-line {
  width: 2px;
  height: 24px;
  background: var(--border);
  margin-left: 19px;
}

.about-note {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--bg);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.help-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.help-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 100, 163, 0.35);
}
.help-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--blue);
}
.help-card:nth-child(2n) .help-icon { color: var(--green); background: rgba(11, 143, 85, 0.08); }
.help-card:nth-child(3n) .help-icon { color: var(--navy); background: rgba(11, 31, 51, 0.06); }
.help-card h3 { font-size: 1.02rem; font-weight: 700; }
.help-card p { font-size: 0.88rem; color: var(--muted); flex: 1; }
.help-card .link-arrow { margin-top: auto; }

.principles-section { background: #fff; }

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.community-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.community-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.community-card h3 { font-size: 1.12rem; font-weight: 700; }
.community-card p { color: var(--muted); font-size: 0.95rem; }

.reporting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}
.reporting-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.reporting-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.do-card h3 { color: var(--green); }
.dont-card h3 { color: var(--red); }
.reporting-card ul { padding-left: 24px; display: grid; gap: 10px; }
.do-card ul { list-style: disc; }
.dont-card ul { list-style: none; padding-left: 0; }
.dont-card li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
}
.dont-card li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-hero {
  padding: calc(var(--header-h) + 36px) 0 24px;
  background: linear-gradient(180deg, #EAF4FB 0%, #F5F9FC 100%);
}
.contact-hero-inner { max-width: 640px; }
.contact-hero-copy h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.contact-hero-copy > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.05rem;
}
.contact-hero-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--red-dark);
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.contact-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.contact-author-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-bottom: 24px;
}
.contact-author-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.contact-author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--blue);
  margin-bottom: 14px;
}
.contact-author-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 2px;
}
.contact-author-role {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-author-company {
  font-size: 0.82rem;
  color: #9FB6CB;
  margin-bottom: 0;
}
.contact-author-info p { margin: 0; }

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.contact-form-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 22px;
}
.contact-form-card .field {
  margin-bottom: 18px;
}
.contact-form-card label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 100, 163, 0.12);
}
.contact-form-card textarea { resize: vertical; min-height: 140px; }
.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder { color: #9FB6CB; }
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--red);
  font-weight: 600;
}
.field-error[hidden] { display: none; }

.contact-success {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.contact-success .success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(11, 143, 85, 0.10);
  color: var(--green);
  margin-bottom: 18px;
}
.contact-success h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.contact-success > p {
  color: var(--muted);
  max-width: 440px;
  margin-inline: auto;
  font-size: 1rem;
}
.contact-success-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.contact-info-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 22px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.contact-info-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--blue);
  flex: 0 0 auto;
}
.contact-info-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-info-item p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.contact-info-item small {
  display: block;
  color: #9FB6CB;
  font-size: 0.78rem;
  margin-top: 4px;
}
.contact-info-item .link-arrow {
  display: inline-flex;
  margin-top: 8px;
  font-size: 0.88rem;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  max-width: 760px;
  margin-inline: auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  transition: background-color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
  flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item p {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.reporting-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.reporting-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.reporting-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ==========================================================================
   Responsive — about and contact pages
   ========================================================================== */
@media (max-width: 860px) {
  .principles-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .help-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .reporting-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .about-hero { padding: calc(var(--header-h) + 24px) 0 20px; }
  .about-section { padding: 56px 0; }
  .contact-hero { padding: calc(var(--header-h) + 20px) 0 16px; }
  .contact-form-card { padding: 22px; }
}

@media (max-width: 520px) {
  .about-hero-actions { flex-direction: column; }
  .about-hero-actions .btn { width: 100%; justify-content: center; }
  .contact-success-actions { flex-direction: column; }
  .contact-success-actions .btn { width: 100%; justify-content: center; }
}




