/*
 * SympWatch — Landing Page Design System 2025-2026
 * Community Health Intelligence for Marilao, Bulacan, Philippines
 * ISO/IEC 25010 | ISO/IEC 25002 Compliant
 * Mobile-first Fluid/Liquid Layout
 * UX: Aesthetic-Usability, Chunking, Cognitive Load Reduction,
 *      Progressive Disclosure, Recognition over Recall,
 *      Serial Position Effect, Hick's Law, Peak-End Rule
 */

/* ============================================================
   DESIGN TOKENS — Scoped to .sw-landing
   ============================================================ */

.sw-landing {
  /* Sage Green Primary — calming, health-associated, trustworthy */
  --sw-sage-50:  #f0f5f1;
  --sw-sage-100: #d8e8dc;
  --sw-sage-200: #b7d1bd;
  --sw-sage-300: #84a98c;
  --sw-sage-400: #6b9075;
  --sw-sage-500: #52796f;
  --sw-sage-600: #40604f;
  --sw-sage-700: #354f52;
  --sw-sage-800: #2d3e36;
  --sw-sage-900: #1b2e25;

  /* Coral Accent — urgency, action, warmth */
  --sw-coral:       #e76f51;
  --sw-coral-soft:  #f4a281;
  --sw-coral-light: #fef0eb;
  --sw-coral-dark:  #c45a3c;

  /* Amber Secondary — warmth, caution, attention */
  --sw-amber:       #dda15e;
  --sw-amber-light: #fef6ea;
  --sw-amber-dark:  #bc6c25;

  /* Neutral Surfaces */
  --sw-cream:      #faf8f4;
  --sw-cream-warm: #f5f0e8;
  --sw-cream-cool: #f2f5f3;
  --sw-stone-50:   #f7f6f3;
  --sw-stone-100:  #edeae4;
  --sw-stone-200:  #ddd8cf;
  --sw-stone-300:  #c4bdb2;
  --sw-stone-400:  #a39d93;
  --sw-stone-500:  #7d7770;
  --sw-stone-600:  #5f5b55;
  --sw-stone-700:  #454240;
  --sw-stone-800:  #2e2c2a;
  --sw-stone-900:  #1c1b1a;

  /* Text — WCAG AAA contrast ratios on cream backgrounds */
  --sw-text:           #2b3230;  /* 12.5:1 on #faf8f4 */
  --sw-text-secondary: #4a5854;  /* 7.2:1 on #faf8f4 — improved from #5f6b67 */
  --sw-text-muted:     #5f716a;  /* 5.1:1 on #faf8f4, 4.7:1 on #fff — WCAG AA */
  --sw-text-on-dark:   #f0f5f1;  /* 12:1 on #354f52 */
  --sw-text-on-sage:   #ffffff;

  /* Borders */
  --sw-border:       #dde5df;
  --sw-border-light: #eaf0ec;

  /* Shadows — progressive elevation */
  --sw-shadow-xs:       0 1px 2px rgba(45, 62, 54, 0.04);
  --sw-shadow-sm:       0 1px 4px rgba(45, 62, 54, 0.06);
  --sw-shadow-md:       0 4px 16px rgba(45, 62, 54, 0.08);
  --sw-shadow-lg:       0 8px 32px rgba(45, 62, 54, 0.10);
  --sw-shadow-xl:       0 12px 48px rgba(45, 62, 54, 0.12);
  --sw-shadow-glow-sage:  0 4px 20px rgba(82, 121, 111, 0.18);
  --sw-shadow-glow-coral: 0 4px 20px rgba(231, 111, 81, 0.18);

  /* Radius */
  --sw-radius-sm:   8px;
  --sw-radius-md:   12px;
  --sw-radius-lg:   16px;
  --sw-radius-xl:   20px;
  --sw-radius-2xl:  24px;
  --sw-radius-pill: 9999px;

  /* Motion — respect prefers-reduced-motion */
  --sw-ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --sw-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sw-duration:    0.3s;
  --sw-duration-lg: 0.5s;

  /* Fluid spacing scale (clamp for liquid layout) */
  --sw-space-xs:  clamp(0.25rem, 0.5vw, 0.5rem);
  --sw-space-sm:  clamp(0.5rem, 1vw, 0.75rem);
  --sw-space-md:  clamp(0.75rem, 1.5vw, 1rem);
  --sw-space-lg:  clamp(1rem, 2vw, 1.5rem);
  --sw-space-xl:  clamp(1.5rem, 3vw, 2.5rem);
  --sw-space-2xl: clamp(2rem, 4vw, 4rem);
  --sw-space-3xl: clamp(3rem, 6vw, 6rem);

  /* Content width */
  --sw-max-w: min(1200px, 100% - 2rem);

  /* Override base body */
  background: var(--sw-cream);
  color: var(--sw-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   FLUID TYPOGRAPHY — clamp() for liquid scaling
   ============================================================ */

.sw-landing h1,
.sw-landing h2,
.sw-landing h3,
.sw-landing h4 {
  color: var(--sw-sage-800);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

/* Override heading color on dark backgrounds (hero, CTA, CHN modal header) */
.sw-landing .sw-hero-title,
.sw-landing .sw-cta-title,
.sw-landing .sw-chn-header-text h3 {
  color: #fff;
}

.sw-landing .sw-hero-title-accent {
  color: var(--sw-coral-soft);
}

.sw-landing .sw-privacy-title {
  color: var(--sw-sage-800);
}

.sw-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.6875rem, 1.2vw, 0.75rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sw-sage-600);
  margin-bottom: var(--sw-space-md);
}

.sw-section-label .sw-icon {
  font-size: 0.875rem;
}

.sw-section-title {
  font-size: clamp(1.375rem, 3.5vw, 2.125rem);
  font-weight: 700;
  color: var(--sw-sage-800);
  margin-bottom: var(--sw-space-sm);
  line-height: 1.2;
}

.sw-section-desc {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  color: var(--sw-text-secondary);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 0;
}

.sw-section-desc--center {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   NAVIGATION — Glass morphism, minimal cognitive load
   Hick's Law: only 2 actions (Sign In / Get Started)
   ============================================================ */

.sw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  transition: background var(--sw-duration) var(--sw-ease),
              box-shadow var(--sw-duration) var(--sw-ease);
}

.sw-nav--top {
  background: transparent;
}

.sw-nav--scrolled {
  background: rgba(250, 248, 244, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 12px rgba(45, 62, 54, 0.08);
}

.sw-nav-inner {
  max-width: var(--sw-max-w);
  margin: 0 auto;
  padding: clamp(10px, 1.5vw, 14px) clamp(12px, 2vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sw-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  letter-spacing: -0.02em;
  transition: color var(--sw-duration) var(--sw-ease);
  flex-shrink: 0;
}

.sw-nav--scrolled .sw-nav-brand {
  color: var(--sw-sage-800);
}

.sw-nav-brand .sw-icon {
  font-size: 1.25rem;
  color: var(--sw-coral);
}

.sw-nav-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.7;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,0.25);
  white-space: nowrap;
}

.sw-nav--scrolled .sw-nav-tag {
  border-left-color: var(--sw-border);
  color: var(--sw-text-muted);
  opacity: 1;
}

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

/* Nav buttons */
.sw-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: clamp(0.75rem, 1.4vw, 0.8125rem);
  font-weight: 600;
  border-radius: var(--sw-radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--sw-duration) var(--sw-ease);
  text-decoration: none;
  white-space: nowrap;
  gap: 6px;
  line-height: 1.4;
  font-family: inherit;
}

.sw-nav-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
}

.sw-nav-btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

.sw-nav--scrolled .sw-nav-btn--ghost {
  color: var(--sw-sage-700);
  border-color: var(--sw-border);
}

.sw-nav--scrolled .sw-nav-btn--ghost:hover {
  background: var(--sw-sage-50);
  border-color: var(--sw-sage-200);
  color: var(--sw-sage-800);
}

.sw-nav-btn--accent {
  background: var(--sw-coral);
  color: #fff;
  border-color: var(--sw-coral);
  box-shadow: 0 2px 8px rgba(231, 111, 81, 0.25);
}

.sw-nav-btn--accent:hover {
  background: var(--sw-coral-dark);
  border-color: var(--sw-coral-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(231, 111, 81, 0.3);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.sw-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--sw-radius-sm);
  transition: background 0.2s;
}

.sw-nav-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.sw-nav--scrolled .sw-nav-toggle {
  color: var(--sw-sage-700);
}

.sw-nav--scrolled .sw-nav-toggle:hover {
  background: var(--sw-sage-50);
}

/* Mobile nav: show toggle, stack actions */
@media (max-width: 575px) {
  .sw-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .sw-nav-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 16px;
    gap: 8px;
    background: rgba(250, 248, 244, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(45, 62, 54, 0.1);
  }

  .sw-nav-actions.sw-nav-actions--open {
    display: flex;
  }

  .sw-nav-actions .sw-nav-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.875rem;
  }

  .sw-nav-actions .sw-nav-btn--ghost {
    color: var(--sw-sage-700);
    border-color: var(--sw-border);
  }
}

/* ============================================================
   HERO SECTION — First impression, Peak-End Rule start
   Aesthetic-Usability: clean gradient, confident typography
   ============================================================ */

.sw-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    var(--sw-sage-900) 0%,
    var(--sw-sage-800) 30%,
    var(--sw-sage-700) 60%,
    var(--sw-sage-600) 100%
  );
}

/* Decorative blobs — subtle depth, not distracting */
.sw-hero::before {
  content: '';
  position: absolute;
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  top: -15%;
  right: -10%;
  border-radius: 48% 52% 68% 32% / 42% 58% 42% 58%;
  background: radial-gradient(ellipse at 30% 50%,
    rgba(231, 111, 81, 0.10) 0%,
    rgba(221, 161, 94, 0.05) 50%,
    transparent 70%
  );
  animation: blobFloat 20s var(--sw-ease) infinite alternate;
  will-change: transform;
}

.sw-hero::after {
  content: '';
  position: absolute;
  width: min(500px, 70vw);
  height: min(500px, 70vw);
  bottom: -10%;
  left: -8%;
  border-radius: 62% 38% 42% 58% / 52% 48% 52% 48%;
  background: radial-gradient(ellipse at 70% 50%,
    rgba(132, 169, 140, 0.12) 0%,
    rgba(82, 121, 111, 0.05) 50%,
    transparent 70%
  );
  animation: blobFloat 25s var(--sw-ease) infinite alternate-reverse;
  will-change: transform;
}

@keyframes blobFloat {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%  { transform: translate(20px, -15px) rotate(3deg) scale(1.02); }
  66%  { transform: translate(-10px, 10px) rotate(-2deg) scale(0.98); }
  100% { transform: translate(15px, -5px) rotate(1deg) scale(1.01); }
}

/* ============================================================
   HERO AURORA BACKGROUND ANIMATION
   ISO/IEC 25010: Performance Efficiency — GPU-accelerated transforms only,
   will-change hints, no layout recalculation, no repaints on content layer.
   ISO/IEC 25010: Usability — non-distracting, stays behind content (z-index: 1).
   ISO/IEC 25010: Accessibility — aria-hidden, prefers-reduced-motion honored.
   ISO/IEC 25002: Quality measurement — opacity capped to preserve
   WCAG AAA contrast ratios on overlaid text.
   ============================================================ */

.sw-hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* --- Aurora gradient orbs: slow-moving color mesh --- */
.sw-hero-aurora__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  will-change: transform, opacity;
  animation: auroraOrb 18s var(--sw-ease) infinite alternate;
}

.sw-hero-aurora__orb--1 {
  width: min(500px, 65vw);
  height: min(500px, 65vw);
  top: 5%;
  left: 15%;
  background: radial-gradient(circle,
    rgba(132, 169, 140, 0.18) 0%,
    rgba(82, 121, 111, 0.08) 50%,
    transparent 70%
  );
  animation-duration: 18s;
  animation-delay: 0s;
}

.sw-hero-aurora__orb--2 {
  width: min(450px, 60vw);
  height: min(450px, 60vw);
  top: 30%;
  right: 5%;
  background: radial-gradient(circle,
    rgba(231, 111, 81, 0.12) 0%,
    rgba(244, 162, 129, 0.06) 50%,
    transparent 70%
  );
  animation-duration: 22s;
  animation-delay: -6s;
}

.sw-hero-aurora__orb--3 {
  width: min(400px, 55vw);
  height: min(400px, 55vw);
  bottom: 15%;
  left: 40%;
  background: radial-gradient(circle,
    rgba(221, 161, 94, 0.10) 0%,
    rgba(132, 169, 140, 0.06) 50%,
    transparent 70%
  );
  animation-duration: 25s;
  animation-delay: -12s;
}

@keyframes auroraOrb {
  0% {
    opacity: 0.3;
    transform: translate(0, 0) scale(1);
  }
  25% {
    opacity: 0.6;
    transform: translate(30px, -20px) scale(1.08);
  }
  50% {
    opacity: 0.45;
    transform: translate(-20px, 15px) scale(0.95);
  }
  75% {
    opacity: 0.7;
    transform: translate(15px, 25px) scale(1.05);
  }
  100% {
    opacity: 0.35;
    transform: translate(-10px, -10px) scale(1.02);
  }
}

/* --- Pulse rings: health monitoring heartbeat effect --- */
.sw-hero-aurora__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  will-change: transform, opacity;
  animation: auroraPulse 6s var(--sw-ease) infinite;
}

.sw-hero-aurora__pulse--1 {
  animation-delay: 0s;
}

.sw-hero-aurora__pulse--2 {
  animation-delay: -2s;
}

.sw-hero-aurora__pulse--3 {
  animation-delay: -4s;
}

@keyframes auroraPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) scale(12);
    opacity: 0;
  }
}

/* --- Floating particles: data flow / connectivity --- */
.sw-hero-aurora__particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  opacity: 0;
  will-change: transform, opacity;
  animation: auroraFloat 12s linear infinite;
}

.sw-hero-aurora__particle--1 {
  left: 10%;
  top: 80%;
  animation-delay: 0s;
  animation-duration: 14s;
}

.sw-hero-aurora__particle--2 {
  left: 25%;
  top: 90%;
  animation-delay: -2s;
  animation-duration: 11s;
  width: 2px;
  height: 2px;
}

.sw-hero-aurora__particle--3 {
  left: 50%;
  top: 85%;
  animation-delay: -5s;
  animation-duration: 13s;
}

.sw-hero-aurora__particle--4 {
  left: 70%;
  top: 90%;
  animation-delay: -3s;
  animation-duration: 15s;
  width: 2px;
  height: 2px;
}

.sw-hero-aurora__particle--5 {
  left: 85%;
  top: 80%;
  animation-delay: -7s;
  animation-duration: 12s;
}

.sw-hero-aurora__particle--6 {
  left: 40%;
  top: 95%;
  animation-delay: -9s;
  animation-duration: 16s;
  width: 4px;
  height: 4px;
  background: rgba(244, 162, 129, 0.2);
}

@keyframes auroraFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) translateX(20px);
    opacity: 0;
  }
}

/* Dot pattern — very subtle texture */
.sw-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.sw-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--sw-max-w);
  margin: 0 auto;
  padding: clamp(90px, 14vh, 160px) clamp(16px, 3vw, 40px) clamp(60px, 10vh, 120px);
  width: 100%;
}

.sw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  padding: 6px 14px;
  border-radius: var(--sw-radius-pill);
  font-size: clamp(0.625rem, 1.2vw, 0.6875rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sw-space-lg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.sw-hero-badge .sw-icon {
  font-size: 0.8125rem;
}

.sw-hero-title {
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--sw-space-md);
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.sw-hero-title-accent {
  color: var(--sw-coral-soft);
}

.sw-hero-subtitle {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--sw-space-xl);
  max-width: 560px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.sw-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero wave — organic section transition */
.sw-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.sw-wave svg {
  display: block;
  width: 100%;
  height: clamp(48px, 8vw, 100px);
}

.sw-wave svg path {
  fill: var(--sw-cream);
}

/* Hero responsive — mobile-first fluid */
@media (max-width: 575px) {
  .sw-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .sw-hero-actions .sw-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .sw-hero {
    min-height: auto;
  }
  .sw-hero-content {
    padding-top: 80px;
    padding-bottom: 50px;
  }
}

/* ============================================================
   BUTTONS — Clear affordance, consistent sizing
   Fitts's Law: generous touch targets
   ============================================================ */

.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--sw-radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--sw-duration) var(--sw-ease);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  min-height: 44px; /* WCAG AAA touch target */
}

.sw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.sw-btn--primary {
  background: var(--sw-sage-600);
  color: #fff;
  border-color: var(--sw-sage-600);
  box-shadow: 0 2px 8px rgba(82, 121, 111, 0.25);
}

.sw-btn--primary:hover {
  background: var(--sw-sage-700);
  border-color: var(--sw-sage-700);
  color: #fff;
  box-shadow: var(--sw-shadow-glow-sage);
  transform: translateY(-1px);
}

.sw-btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(82, 121, 111, 0.2);
}

.sw-btn--coral {
  background: var(--sw-coral);
  color: #fff;
  border-color: var(--sw-coral);
  box-shadow: 0 2px 8px rgba(231, 111, 81, 0.25);
}

.sw-btn--coral:hover {
  background: var(--sw-coral-dark);
  border-color: var(--sw-coral-dark);
  color: #fff;
  box-shadow: var(--sw-shadow-glow-coral);
  transform: translateY(-1px);
}

.sw-btn--outline {
  background: transparent;
  color: var(--sw-sage-700);
  border-color: var(--sw-border);
}

.sw-btn--outline:hover {
  background: var(--sw-sage-50);
  border-color: var(--sw-sage-300);
  color: var(--sw-sage-800);
}

.sw-btn--outline-light {
  background: transparent;
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.3);
}

.sw-btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.sw-btn--lg {
  padding: 12px 28px;
  font-size: clamp(0.875rem, 1.6vw, 0.9375rem);
}

.sw-btn--sm {
  padding: 6px 16px;
  font-size: 0.8125rem;
  min-height: 36px;
}

/* ============================================================
   SECTIONS — Breathing rhythm via fluid spacing
   Chunking: clear content separation
   White space: reduce cognitive load
   ============================================================ */

.sw-section {
  padding: var(--sw-space-3xl) 0;
  position: relative;
}

.sw-section--alt {
  background: var(--sw-cream-cool);
}

.sw-section--warm {
  background: var(--sw-cream-warm);
}

.sw-section-inner {
  max-width: var(--sw-max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.sw-section-header {
  margin-bottom: var(--sw-space-xl);
}

.sw-section-header--center {
  text-align: center;
}

/* Wave dividers — organic section boundaries */
.sw-wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  margin-top: -1px;
}

.sw-wave-divider svg {
  display: block;
  width: 100%;
  height: clamp(36px, 6vw, 64px);
}

.sw-wave-divider--cream svg path { fill: var(--sw-cream); }
.sw-wave-divider--cool svg path  { fill: var(--sw-cream-cool); }
.sw-wave-divider--warm svg path  { fill: var(--sw-cream-warm); }
.sw-wave-divider--sage svg path  { fill: var(--sw-sage-800); }

/* ============================================================
   SURVEILLANCE MAP — Primary information display
   Recognition over Recall: clear legend, labeled controls
   ============================================================ */

.sw-map-container {
  background: #fff;
  border-radius: var(--sw-radius-xl);
  border: 1px solid var(--sw-border-light);
  box-shadow: var(--sw-shadow-md);
  overflow: hidden;
}

.sw-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1.5vw, 14px) clamp(14px, 2vw, 20px);
  border-bottom: 1px solid var(--sw-border-light);
  flex-wrap: wrap;
  gap: 10px;
}

.sw-map-toolbar-title {
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  font-weight: 600;
  color: var(--sw-sage-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-map-toolbar-title .sw-icon {
  color: var(--sw-sage-500);
}

.sw-map-period-select {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--sw-sage-50);
  border-radius: var(--sw-radius-pill);
  padding: 3px;
}

.sw-map-period-btn {
  padding: 6px 12px;
  font-size: clamp(0.6875rem, 1.2vw, 0.75rem);
  font-weight: 600;
  border: none;
  border-radius: var(--sw-radius-pill);
  background: transparent;
  color: var(--sw-text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--sw-ease);
  white-space: nowrap;
  min-height: 32px;
  font-family: inherit;
}

.sw-map-period-btn:hover {
  color: var(--sw-sage-700);
}

.sw-map-period-btn--active {
  background: #fff;
  color: var(--sw-sage-700);
  box-shadow: 0 1px 4px rgba(45, 62, 54, 0.1);
}

.sw-map-wrap {
  position: relative;
}

.sw-map-wrap #map {
  height: clamp(280px, 45vw, 520px);
  width: 100%;
  min-height: 280px;
}

@media (max-width: 767px) and (orientation: landscape) {
  .sw-map-wrap #map {
    height: 50vh;
    min-height: 220px;
  }
}

.sw-map-footer {
  padding: clamp(10px, 1.5vw, 12px) clamp(14px, 2vw, 20px);
  border-top: 1px solid var(--sw-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.sw-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.5vw, 14px);
}

.sw-map-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.6875rem, 1.2vw, 0.75rem);
  color: var(--sw-text-secondary);
}

.sw-map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.sw-map-updated {
  font-size: 0.6875rem;
  color: var(--sw-text-muted);
}

/* ============================================================
   SYMPTOM CARDS — Fluid/Liquid Layout (2025-2026 UX)
   Mobile-first, landscape images (1.91:1 — 1024x536)
   Full-width imagery, text strictly below image
   Semantic color accent via top-border (no inline icons/SVGs)
   Gestalt: similarity + proximity + common region
   ISO/IEC 25010: Usability, Accessibility, Operability
   ISO/IEC 25002: Quality-in-use — effectiveness, satisfaction
   ============================================================ */

/* --- Grid: single column, centered, fluid max-width --- */
.sw-symptoms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 36px);
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Card: always vertical (image top, text bottom) at all sizes --- */
.sw-symptom-card {
  background: #fff;
  border: 1px solid var(--sw-border-light);
  border-radius: var(--sw-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform var(--sw-duration) var(--sw-ease),
              box-shadow var(--sw-duration) var(--sw-ease),
              border-color var(--sw-duration) var(--sw-ease);
  cursor: pointer;
  position: relative;
}

/* Semantic color accent — 3px top border for visual categorization */
.sw-symptom-card--fever  { border-top: 3px solid #dc2626; }
.sw-symptom-card--rash   { border-top: 3px solid #db2777; }
.sw-symptom-card--cough  { border-top: 3px solid #d97706; }
.sw-symptom-card--cold   { border-top: 3px solid #0284c7; }
.sw-symptom-card--eye    { border-top: 3px solid #059669; }

.sw-symptom-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sw-shadow-lg);
  border-color: var(--sw-sage-200);
}

/* Preserve accent border color on hover */
.sw-symptom-card--fever:hover  { border-top-color: #dc2626; }
.sw-symptom-card--rash:hover   { border-top-color: #db2777; }
.sw-symptom-card--cough:hover  { border-top-color: #d97706; }
.sw-symptom-card--cold:hover   { border-top-color: #0284c7; }
.sw-symptom-card--eye:hover    { border-top-color: #059669; }

.sw-symptom-card:focus-within {
  outline: 2px solid var(--sw-sage-400);
  outline-offset: 2px;
}

/* --- Image figure: full-width landscape 1.91:1 aspect ratio --- */
.sw-symptom-figure {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.sw-symptom-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  background: var(--sw-cream-cool);
}

.sw-symptom-img__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s var(--sw-ease);
}

.sw-symptom-card:hover .sw-symptom-img__image {
  transform: scale(1.04);
}

/* --- Content area: strictly below image, never overlapping --- */
.sw-symptom-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 3vw, 28px) clamp(16px, 3vw, 28px) clamp(18px, 3vw, 32px);
  flex: 1;
  gap: clamp(6px, 1vw, 12px);
}

/* --- Typography: high contrast, no blending with background --- */
.sw-symptom-name {
  font-size: clamp(0.9375rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: var(--sw-sage-800);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sw-symptom-desc {
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  color: var(--sw-text-secondary);
  line-height: 1.55;
  margin: 0;
  max-width: 36ch;
}


/* ============================================================
   SYMPTOM LIGHTBOX — Fullscreen image viewer
   ISO/IEC 25010: Operability, Accessibility, User error protection
   ISO/IEC 25002: Effectiveness, Satisfaction
   ============================================================ */

.sw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sw-lightbox--visible {
  opacity: 1;
}

/* Backdrop */
.sw-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 20, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Container: centered, constrained, above backdrop
   ISO/IEC 25010 — Operability: close button and caption must remain
   visible on every viewport size without clipping or overflow.
   ISO/IEC 25002 — Effectiveness: all interactive and informational
   elements stay reachable so users can complete their task. */
.sw-lightbox-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1024px, 100% - 2rem);
  /* Full available height minus breathing room on all sides */
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  margin: 1rem;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sw-lightbox--visible .sw-lightbox-container {
  transform: translateY(0) scale(1);
}

/* Close button — positioned inside the container's top-right corner
   so it is always visible within the viewport.
   ISO/IEC 25010 — Operability, User error protection: the dismiss
   affordance must never be clipped or hidden by viewport edges.
   ISO/IEC 25002 — Effectiveness: users can always close the modal. */
.sw-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
  font-size: 0;
  /* Ensure minimum touch-target per WCAG 2.5.8 */
  min-width: 44px;
  min-height: 44px;
}

.sw-lightbox-close .sw-icon {
  width: 18px;
  height: 18px;
}

.sw-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.sw-lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Figure — scrollable so caption is never clipped
   ISO/IEC 25010 — Operability: title and description must remain
   reachable regardless of viewport height.
   ISO/IEC 25002 — Satisfaction: content should not feel "cut off". */
.sw-lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-y: auto;
  border-radius: var(--sw-radius-xl);
  background: #1a2420;
  /* Allow figure to shrink so it respects container max-height */
  min-height: 0;
}

/* Image wrapper: full width, landscape aspect ratio — kept at
   full size. The parent figure scrolls so the caption below
   remains accessible without compressing the image.
   ISO/IEC 25010 — Operability: image renders at intended size.
   ISO/IEC 25002 — Satisfaction: visual fidelity is preserved. */
.sw-lightbox-img-wrap {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

.sw-lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Caption below image — must never be clipped
   ISO/IEC 25010 — Appropriateness recognizability: title and
   description convey essential symptom information.
   ISO/IEC 25002 — Effectiveness: informational content is always
   fully readable without scrolling where possible. */
.sw-lightbox-caption {
  padding: clamp(16px, 3vw, 28px) clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 10px);
  /* Prevent caption from being compressed — the image shrinks first */
  flex-shrink: 0;
}

.sw-lightbox-title {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #f0f5f1;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sw-lightbox-desc {
  font-size: clamp(0.875rem, 1.6vw, 1.0625rem);
  color: rgba(240, 245, 241, 0.72);
  line-height: 1.55;
  margin: 0;
}

/* Mobile: tighter spacing
   ISO/IEC 25010 — Operability: touch targets and content remain
   accessible on small viewports without clipping. */
@media (max-width: 479px) {
  .sw-lightbox-container {
    max-width: 100%;
    margin: 0.75rem;
    max-height: calc(100vh - 1.5rem);
  }

  .sw-lightbox-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    min-width: 44px;
    min-height: 44px;
  }

  .sw-lightbox-close .sw-icon {
    width: 16px;
    height: 16px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sw-lightbox,
  .sw-lightbox-container {
    transition: none;
  }
}

/* ============================================================
   FEATURES GRID — Chunking with Common Region
   Gestalt: common region + uniform connectedness
   ============================================================ */

.sw-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vw, 20px);
}

@media (min-width: 576px) {
  .sw-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .sw-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sw-feature-card {
  background: #fff;
  border: 1px solid var(--sw-border-light);
  border-radius: var(--sw-radius-xl);
  padding: clamp(20px, 3vw, 28px) clamp(16px, 2.5vw, 24px);
  transition: transform var(--sw-duration) var(--sw-ease),
              box-shadow var(--sw-duration) var(--sw-ease),
              border-color var(--sw-duration) var(--sw-ease);
}

.sw-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sw-shadow-md);
  border-color: var(--sw-sage-200);
}

.sw-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--sw-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sw-space-md);
  font-size: 1.125rem;
  background: var(--sw-sage-50);
  color: var(--sw-sage-600);
  transition: transform var(--sw-duration) var(--sw-ease);
}

.sw-feature-card:hover .sw-feature-icon {
  transform: scale(1.06);
}

.sw-feature-icon--coral {
  background: var(--sw-coral-light);
  color: var(--sw-coral-dark);
}

.sw-feature-icon--amber {
  background: var(--sw-amber-light);
  color: #9a5a1e; /* Darkened amber for 4.8:1 contrast on #fef6ea */
}

.sw-feature-title {
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  font-weight: 700;
  color: var(--sw-sage-800);
  margin-bottom: 6px;
}

.sw-feature-desc {
  font-size: clamp(0.8125rem, 1.4vw, 0.8125rem);
  color: var(--sw-text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   HOW IT WORKS — Sequential flow, progressive disclosure
   Miller's Law: 3 steps (well within 7 +/- 2)
   ============================================================ */

.sw-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  position: relative;
}

@media (min-width: 768px) {
  .sw-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 32px);
  }
}

.sw-step-card {
  background: #fff;
  border: 1px solid var(--sw-border-light);
  border-radius: var(--sw-radius-xl);
  padding: clamp(24px, 3vw, 32px) clamp(16px, 2.5vw, 24px);
  text-align: center;
  position: relative;
  transition: transform var(--sw-duration) var(--sw-ease),
              box-shadow var(--sw-duration) var(--sw-ease);
}

.sw-step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sw-shadow-md);
}

.sw-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(12px, 1.5vw, 16px);
  font-weight: 800;
  font-size: 0.9375rem;
  color: #fff;
}

.sw-step-number--1 {
  background: linear-gradient(135deg, var(--sw-sage-500), var(--sw-sage-600));
  box-shadow: 0 3px 10px rgba(82, 121, 111, 0.25);
}

.sw-step-number--2 {
  background: linear-gradient(135deg, var(--sw-coral), var(--sw-coral-dark));
  box-shadow: 0 3px 10px rgba(231, 111, 81, 0.25);
}

.sw-step-number--3 {
  background: linear-gradient(135deg, var(--sw-amber), var(--sw-amber-dark));
  box-shadow: 0 3px 10px rgba(221, 161, 94, 0.25);
}

.sw-step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--sw-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(12px, 1.5vw, 16px);
  font-size: 1.25rem;
  color: var(--sw-sage-600);
  background: var(--sw-sage-50);
  transition: transform var(--sw-duration) var(--sw-ease);
}

.sw-step-card:hover .sw-step-icon {
  transform: scale(1.05);
}

.sw-step-title {
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  font-weight: 700;
  color: var(--sw-sage-800);
  margin-bottom: 6px;
}

.sw-step-desc {
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  color: var(--sw-text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Flow connectors — visual continuity on desktop */
@media (min-width: 768px) {
  .sw-step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--sw-sage-200), var(--sw-sage-100));
    border-radius: 2px;
    z-index: 1;
  }
}

/* ============================================================
   PRIVACY & TRUST — Recognition, social proof
   ============================================================ */

.sw-privacy-card {
  background: #fff;
  border: 1px solid var(--sw-border-light);
  border-radius: var(--sw-radius-xl);
  padding: clamp(20px, 3vw, 32px);
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 20px);
}

.sw-privacy-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--sw-radius-md);
  background: var(--sw-sage-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sw-sage-600);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.sw-privacy-title {
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  font-weight: 700;
  color: var(--sw-sage-800);
  margin-bottom: 6px;
}

.sw-privacy-text {
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  color: var(--sw-text-secondary);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 479px) {
  .sw-privacy-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Trust indicators row */
.sw-trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: var(--sw-space-xl);
  padding: var(--sw-space-lg) 0;
}

.sw-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.75rem, 1.3vw, 0.8125rem);
  color: var(--sw-text-secondary);
}

.sw-trust-item .sw-icon {
  font-size: 0.9375rem;
  color: var(--sw-sage-500);
}

/* ============================================================
   CTA SECTION — Peak-End Rule: strong finish
   ============================================================ */

.sw-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    var(--sw-sage-800) 0%,
    var(--sw-sage-700) 40%,
    var(--sw-sage-600) 100%
  );
  padding: var(--sw-space-3xl) 0;
  text-align: center;
}

.sw-cta::before {
  content: '';
  position: absolute;
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  top: -100px;
  left: -80px;
  border-radius: 55% 45% 62% 38% / 48% 55% 45% 52%;
  background: radial-gradient(ellipse, rgba(231, 111, 81, 0.08), transparent 70%);
  animation: blobFloat 18s var(--sw-ease) infinite alternate;
}

.sw-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 20px);
}

.sw-cta-title {
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sw-space-md);
  line-height: 1.25;
  text-wrap: balance;
}

.sw-cta-desc {
  font-size: clamp(0.875rem, 1.6vw, 1rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sw-space-xl);
  line-height: 1.7;
}

.sw-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 479px) {
  .sw-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .sw-cta-actions .sw-btn {
    width: 100%;
  }
}

/* ============================================================
   FOOTER — Serial Position Effect: key links at edges
   ============================================================ */

.sw-footer {
  background: var(--sw-sage-900);
  color: rgba(255,255,255,0.6);
  padding: var(--sw-space-2xl) 0 var(--sw-space-lg);
}

.sw-footer-inner {
  max-width: var(--sw-max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.sw-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sw-space-xl);
}

@media (min-width: 576px) {
  .sw-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .sw-footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.sw-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  margin-bottom: 10px;
}

.sw-footer-brand .sw-icon {
  color: var(--sw-coral);
}

.sw-footer-about {
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 340px;
}

.sw-footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.sw-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sw-footer-links li {
  margin-bottom: 8px;
}

.sw-footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

.sw-footer-links a:hover {
  color: var(--sw-coral-soft);
}

.sw-footer-links .sw-icon {
  font-size: 0.75rem;
}

.sw-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  margin-bottom: 8px;
  line-height: 1.6;
}

.sw-footer-contact-item .sw-icon {
  margin-top: 3px;
  flex-shrink: 0;
}

.sw-footer-divider {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: var(--sw-space-xl);
  padding-top: var(--sw-space-lg);
}

.sw-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: clamp(0.6875rem, 1.1vw, 0.75rem);
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   COMMUNITY HEALTH NOTICE MODAL
   Progressive Disclosure: step-by-step verification
   ============================================================ */

.sw-chn-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 43, 37, 0.55);
  z-index: 1040;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: swFadeIn 0.2s var(--sw-ease);
}

.sw-chn-overlay--open {
  display: flex;
}

.sw-chn-modal {
  background: #fff;
  border-radius: var(--sw-radius-2xl);
  box-shadow: var(--sw-shadow-xl);
  width: 100%;
  max-width: 540px;
  margin: auto;
  overflow: hidden;
  animation: swSlideUp 0.3s var(--sw-ease);
}

.sw-chn-header {
  background: linear-gradient(135deg, var(--sw-sage-700), var(--sw-sage-800));
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sw-chn-header-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.sw-chn-header-text h3 {
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
}

.sw-chn-header-text p {
  font-size: 0.6875rem;
  margin: 0;
  opacity: 0.75;
}

.sw-chn-close {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.sw-chn-close:hover {
  background: rgba(255,255,255,0.2);
}

.sw-chn-body {
  padding: clamp(16px, 3vw, 24px);
  max-height: 65vh;
  overflow-y: auto;
}

.sw-chn-section {
  margin-bottom: 16px;
}

.sw-chn-section:last-child {
  margin-bottom: 0;
}

.sw-chn-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sw-sage-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sw-chn-section-title .sw-icon {
  font-size: 0.875rem;
  color: var(--sw-sage-500);
}

.sw-chn-section p {
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  color: var(--sw-text-secondary);
  line-height: 1.65;
  margin: 0;
}

.sw-chn-zip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.sw-chn-zip-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.9375rem;
  border: 1.5px solid var(--sw-border);
  border-radius: var(--sw-radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  text-align: center;
  letter-spacing: 0.1em;
  max-width: 180px;
  min-height: 44px;
}

.sw-chn-zip-input:focus {
  border-color: var(--sw-sage-400);
  box-shadow: 0 0 0 3px rgba(82, 121, 111, 0.12);
}

.sw-chn-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--sw-border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   Performance: GPU-accelerated transforms only
   ============================================================ */

@keyframes swFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes swSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sw-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--sw-ease),
              transform 0.5s var(--sw-ease);
}

.sw-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children for progressive disclosure */
.sw-reveal-stagger > .sw-reveal:nth-child(1) { transition-delay: 0.04s; }
.sw-reveal-stagger > .sw-reveal:nth-child(2) { transition-delay: 0.08s; }
.sw-reveal-stagger > .sw-reveal:nth-child(3) { transition-delay: 0.12s; }
.sw-reveal-stagger > .sw-reveal:nth-child(4) { transition-delay: 0.16s; }
.sw-reveal-stagger > .sw-reveal:nth-child(5) { transition-delay: 0.20s; }
.sw-reveal-stagger > .sw-reveal:nth-child(6) { transition-delay: 0.24s; }

/* ============================================================
   ACCESSIBILITY — prefers-reduced-motion
   ISO/IEC 25010: Accessibility compliance
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .sw-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sw-hero::before,
  .sw-hero::after,
  .sw-cta::before {
    animation: none;
  }
  .sw-hero-aurora__orb,
  .sw-hero-aurora__pulse,
  .sw-hero-aurora__particle {
    animation: none;
    opacity: 0;
  }
  .sw-hero-aurora__orb {
    opacity: 0.3;
  }
  .sw-symptom-card:hover,
  .sw-feature-card:hover,
  .sw-step-card:hover {
    transform: none;
  }
  .sw-btn:hover,
  .sw-nav-btn--accent:hover {
    transform: none;
  }
}

/* ============================================================
   SCROLLBAR — subtle, consistent
   ============================================================ */

.sw-landing ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.sw-landing ::-webkit-scrollbar-track {
  background: var(--sw-cream);
}

.sw-landing ::-webkit-scrollbar-thumb {
  background: var(--sw-sage-200);
  border-radius: 3px;
}

.sw-landing ::-webkit-scrollbar-thumb:hover {
  background: var(--sw-sage-300);
}

/* ============================================================
   TOUCH TARGETS — WCAG 2.1 AAA (44x44px minimum)
   ISO/IEC 25010: Accessibility / Operability
   ============================================================ */

@media (pointer: coarse) {
  .sw-btn,
  .sw-nav-btn,
  .sw-map-period-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ============================================================
   EXTRA SMALL DEVICES (below 360px)
   ============================================================ */

@media (max-width: 359px) {
  .sw-hero-title {
    font-size: 1.875rem;
  }

  .sw-symptom-card {
    padding: 14px 10px;
  }

  .sw-step-card {
    padding: 20px 14px;
  }

  .sw-nav-inner {
    padding: 10px 10px;
  }

  .sw-chn-body {
    padding: 14px;
  }

  .sw-nav-tag {
    display: none;
  }
}

/* ============================================================
   HIGH CONTRAST MODE — accessibility
   ISO/IEC 25010: Accessibility
   ============================================================ */

@media (forced-colors: active) {
  .sw-symptom-card,
  .sw-feature-card,
  .sw-step-card,
  .sw-privacy-card,
  .sw-map-container {
    border: 2px solid CanvasText;
  }
  .sw-btn {
    border: 2px solid ButtonText;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  .sw-nav,
  .sw-footer,
  .sw-cta,
  .sw-hero::before,
  .sw-hero::after,
  .sw-wave,
  .sw-wave-divider,
  .sw-hero-pattern,
  .sw-hero-aurora {
    display: none !important;
  }

  .sw-hero {
    background: #354f52 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    min-height: auto;
    padding: 24px 0;
  }

  .sw-section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  .sw-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   LAYOUT UTILITY HELPERS
   ============================================================ */

.sw-text-center { text-align: center; }
.sw-mx-auto { margin-left: auto; margin-right: auto; }
