:root {
  color-scheme: light dark;
  --bg: #f6f8fc;
  --bg-elevated: #ffffff;
  --bg-subtle: #eef3fb;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #dbe3f0;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-contrast: #ffffff;
  --accent-red: #dc2626;
  --accent-red-hover: #b91c1c;
  --badge-bg: #e0eaff;
  --badge-text: #1e3a8a;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080f1e;
    --bg-elevated: #111b2e;
    --bg-subtle: #16233b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #23324d;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-contrast: #ffffff;
    --accent-red: #ef4444;
    --accent-red-hover: #dc2626;
    --badge-bg: rgba(59, 130, 246, 0.16);
    --badge-text: #93c5fd;
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  }
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, background-color 0.15s ease;
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-emergency {
  background-color: var(--accent-red);
  color: #ffffff !important;
}

.btn-emergency:hover {
  background-color: var(--accent-red-hover);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-contrast) !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-outline {
  background-color: var(--bg-elevated);
  color: var(--text) !important;
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
}

/* Hero */
.hero {
  padding: 56px 0 44px;
  text-align: center;
}

.hero-logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 auto 14px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 780px;
}

.hero p.lead {
  margin: 0 auto 28px;
  max-width: 680px;
  font-size: 1.12rem;
  color: var(--text-muted);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

/* Stats Strip */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 40px 0;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.015em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Two-column info cards */
.info-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.detail-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.detail-val {
  font-weight: 600;
  text-align: right;
}

.coverage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Legal / Policy pages */
.legal-wrapper {
  padding: 44px 0 60px;
}

.legal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto;
}

.legal-card h1 {
  margin-top: 0;
  font-size: 2rem;
}

.legal-card h2 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

/* Footer */
.site-footer {
  margin-top: 44px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-legal {
  max-width: 620px;
}

.footer-legal strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

@media (max-width: 640px) {
  .header-nav .hide-mobile {
    display: none;
  }
  .detail-list li {
    flex-direction: column;
    gap: 2px;
  }
  .detail-val {
    text-align: left;
  }
  .legal-card {
    padding: 22px;
  }
}
