@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Premium Light Theme (Stripe/Linear/Notion style) */
  --bg-primary: #F7F9FC;     /* Mist White */
  --bg-secondary: #FFFFFF;   /* Pure White */
  --bg-card: #FFFFFF;        /* Card White */
  --border-color: rgba(11, 31, 58, 0.08); /* Super subtle dark navy border */
  
  --text-primary: #0B1F3A;   /* Deep Navy */
  --text-secondary: #334155; /* Slate */
  --text-muted: #64748B;     /* Muted Grey */
  
  /* Brand/Interactive Accents */
  --accent-primary: #4DA3FF;     /* Sky Blue */
  --accent-primary-glow: rgba(77, 163, 255, 0.15);
  --accent-teal: #16B8A6;        /* Teal (AI/Clari Element) */
  --accent-teal-glow: rgba(22, 184, 166, 0.15);
  
  /* ClariScore Scale Colors (Restricted to score widgets) */
  --score-safe: #22C55E;     /* Green */
  --score-safe-glow: rgba(34, 197, 94, 0.1);
  
  --score-watch: #F59E0B;    /* Amber */
  --score-watch-glow: rgba(245, 158, 11, 0.1);
  
  --score-elevated: #F97316; /* Orange */
  --score-elevated-glow: rgba(249, 115, 22, 0.1);
  
  --score-severe: #DC2626;   /* Red */
  --score-severe-glow: rgba(220, 38, 38, 0.1);
  
  /* Font Families */
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Subtle Shadows */
  --card-shadow: 0 12px 30px rgba(11, 31, 58, 0.04), 0 1px 3px rgba(11, 31, 58, 0.02);
  --hover-shadow: 0 20px 40px rgba(11, 31, 58, 0.08), 0 1px 5px rgba(11, 31, 58, 0.03);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(77, 163, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(22, 184, 166, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Radar Sweep / Signal Wave V2 background effect */
body::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(22, 184, 166, 0.015) 0%, rgba(77, 163, 255, 0.015) 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: radarPulse 12s infinite alternate ease-in-out;
}

@keyframes radarPulse {
  0% { opacity: 0.6; transform: translateX(-50%) scale(0.95); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* Solutions Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-trigger .chevron {
  font-size: 0.55rem;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.dropdown:hover .dropdown-trigger .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  padding: 0.5rem;
  min-width: 180px;
  z-index: 200;
}

/* Transparent bridge to connect nav link and dropdown menu (eliminates mouseout gap) */
.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px; /* Bridges the 8px visual gap */
  background: transparent;
  display: none;
}

.dropdown:hover::after {
  display: block;
}

.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 8px; /* Safe margin offset */
  animation: dropdownFadeIn 0.15s ease forwards;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translate(-50%, 4px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: var(--text-secondary) !important;
  text-decoration: none;
  font-size: 0.85rem !important;
  font-weight: 500;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(11, 31, 58, 0.04);
  color: var(--text-primary) !important;
}

header {
  background: #FFFFFF;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(11, 31, 58, 0.02);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links .btn-outline {
  border: 1px solid rgba(11, 31, 58, 0.15);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-primary);
}

.nav-links .btn-outline:hover {
  background: rgba(11, 31, 58, 0.04);
  border-color: var(--text-primary);
}

/* Hero Section */
.hero {
  max-width: 800px;
  margin: 4.5rem auto 2.5rem auto;
  text-align: center;
  padding: 0 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  background: rgba(11, 31, 58, 0.04);
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 9999px;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.25px;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
}

/* V2.0 Clean Single Search Box */
.search-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  border-radius: 9999px; /* Huge round pill */
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 16px 32px rgba(11, 31, 58, 0.03), 0 1px 2px rgba(11, 31, 58, 0.02);
  position: relative;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-container:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(11, 31, 58, 0.06), 0 0 0 4px var(--accent-primary-glow);
  transform: translateY(-1px);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.input-group svg {
  position: absolute;
  left: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none !important;
  padding: 0.9rem 1rem 0.9rem 2.65rem;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 400;
}

.search-input:focus {
  outline: none;
  box-shadow: none !important;
  background: transparent;
}

.btn-primary {
  background: var(--text-primary); /* Deep Navy button for high-end look */
  color: #FFFFFF;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 9999px; /* Pill button to match container */
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-display);
  white-space: nowrap;
}

.btn-primary:hover {
  background: #143561;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(11, 31, 58, 0.15);
}

/* V2.0 Sleek Demo Badge */
.demo-badge-container {
  margin: 1.5rem auto 0 auto;
  text-align: center;
  z-index: 10;
  position: relative;
  max-width: 580px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.02);
  transition: all 0.2s ease;
  text-decoration: none;
}

.demo-badge:hover {
  border-color: rgba(11, 31, 58, 0.15);
  transform: translateY(-1px);
}

.demo-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Featured / Quick Links */
.quick-links {
  max-width: 800px;
  margin: 3rem auto 4.5rem auto;
  text-align: center;
  padding: 0 2rem;
}

.quick-links p {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.85rem;
}

.links-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(11, 31, 58, 0.02);
  transition: all 0.2s ease;
}

.link-card:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: #FFFFFF;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(11, 31, 58, 0.05);
}

/* Main Dashboard Panel */
.dashboard-container {
  max-width: 880px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: var(--card-shadow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.district-title h1,
.district-title h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.district-title p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.badge-status {
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Status variants matching colors specified in Section XIV */
.badge-status.status-low {
  background: var(--score-safe-glow);
  color: var(--score-safe);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-status.status-mod {
  background: var(--score-watch-glow);
  color: var(--score-watch);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-status.status-high {
  background: var(--score-severe-glow);
  color: var(--score-severe);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Dashboard Core Stats */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Circular Score Visual */
.score-circle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: 14px;
}

.circular-progress {
  position: relative;
  height: 165px;
  width: 165px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 0deg, var(--accent-teal) var(--progress-deg, 0deg), rgba(11, 31, 58, 0.04) var(--progress-deg, 0deg));
  box-shadow: inset 0 0 0 1px rgba(11, 31, 58, 0.05);
}

/* Radar scanning line effect overlay */
.circular-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(22, 184, 166, 0.1) 0deg, transparent 90deg);
  pointer-events: none;
  animation: radarSweep 4s linear infinite;
  z-index: 1;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.circular-progress::before {
  content: "";
  position: absolute;
  height: 135px;
  width: 135px;
  border-radius: 50%;
  background-color: #FFFFFF;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(11, 31, 58, 0.02);
}

.score-value {
  position: relative;
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  z-index: 3;
}

.score-value span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

.score-label {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Tooltip V2.0 Styles */
.tooltip-trigger {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--text-muted);
  display: inline-block;
}

.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #0B1F3A;
  color: #FFFFFF;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(11, 31, 58, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.tooltip-trigger:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Color Rhythm V2.0 Styles */
.color-amber {
  color: #F59E0B !important;
}
.color-green {
  color: #22C55E !important;
}
.color-blue {
  color: #3B82F6 !important;
}
.color-purple {
  color: #8B5CF6 !important;
}

.bg-amber-light {
  background: rgba(245, 158, 11, 0.08) !important;
}
.bg-green-light {
  background: rgba(34, 197, 94, 0.08) !important;
}
.bg-blue-light {
  background: rgba(59, 130, 246, 0.08) !important;
}
.bg-purple-light {
  background: rgba(139, 92, 246, 0.08) !important;
}

/* Recommended Action Box */
.action-box {
  background: rgba(77, 163, 255, 0.06);
  border-left: 3px solid var(--accent-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.75rem;
}

.action-box h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Stats Info List */
.stats-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

.info-item:last-child {
  border: none;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.info-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.info-value.countdown {
  color: var(--score-severe); /* Coral red/severe for remaining timer */
}

/* Score Breakdown "Why" Section */
.breakdown-section {
  margin-top: 2.25rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.75rem;
}

.breakdown-section h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
}

.breakdown-name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breakdown-name svg {
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.breakdown-score {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

/* Subscribe Section */
.subscribe-section {
  max-width: 880px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.subscribe-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.subscribe-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.subscribe-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 1.75rem auto;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.subscribe-input {
  flex: 1;
  padding: 0.9rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(11, 31, 58, 0.12);
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.subscribe-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

/* Estimator Tools Grid */
.tools-section {
  max-width: 1100px;
  margin: 3.5rem auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.tool-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.tool-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
  border-color: var(--text-primary);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.tool-icon {
  font-size: 1.85rem;
  line-height: 1;
}

.tool-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tool-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.tool-btn {
  border: 1px solid var(--border-color);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

/* Calculator Slider Controls */
.calculator-container {
  max-width: 840px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.calculator-sliders {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.slider-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

.styled-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(11, 31, 58, 0.06);
  outline: none;
}

.styled-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(11, 31, 58, 0.15);
  transition: transform 0.1s;
}

.styled-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Blog Content Styles */
.blog-container {
  max-width: 780px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}

.blog-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.85rem;
}

.blog-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.blog-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 2.25rem 0 1rem 0;
  color: var(--text-primary);
}

.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.blog-content li {
  margin-bottom: 0.45rem;
}

/* Footer styling */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  text-align: center;
  background: #FFFFFF;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Pricing Page V2.0 Styles */
.pricing-section {
  max-width: 1040px;
  margin: 3.5rem auto 5rem auto;
  padding: 0 1.5rem;
}

.price-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.price-toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.price-toggle-label.active {
  color: var(--text-primary);
}

.price-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.price-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.price-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(11, 31, 58, 0.08);
  transition: .3s;
  border-radius: 34px;
}

.price-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: #FFFFFF;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(11, 31, 58, 0.15);
}

input:checked + .price-slider {
  background-color: var(--text-primary);
}

input:checked + .price-slider:before {
  transform: translateX(22px);
}

.price-save-badge {
  background: rgba(34, 197, 94, 0.08);
  color: #22C55E;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 5rem;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.price-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}

.price-card.popular {
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(77, 163, 255, 0.04), var(--card-shadow);
}

.price-card.popular::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  z-index: 10;
}

.price-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.price-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
}

.price-amount span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.25rem;
}

.price-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
  font-family: var(--font-display);
}

.price-btn.btn-secondary {
  background: rgba(11, 31, 58, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.price-btn.btn-secondary:hover {
  background: rgba(11, 31, 58, 0.08);
}

.price-btn.btn-primary-card {
  background: var(--text-primary);
  color: #FFFFFF;
}

.price-btn.btn-primary-card:hover {
  background: #143561;
}

.price-features-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.price-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.price-features svg {
  color: var(--accent-teal);
  flex-shrink: 0;
}

/* Paywall Modals & Blur Locking V2.0 */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 31, 58, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(11, 31, 58, 0.15);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: rgba(11, 31, 58, 0.04);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(11, 31, 58, 0.08);
  color: var(--text-primary);
}

.modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.modal-icon.icon-teal {
  background: rgba(22, 184, 166, 0.08);
  color: var(--accent-teal);
}

.modal-icon.icon-blue {
  background: rgba(77, 163, 255, 0.08);
  color: var(--accent-primary);
}

.modal-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.modal-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* Time Horizon Blur Overlay styles */
.blur-lock-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.blur-locked {
  filter: blur(8px) grayscale(15%);
  pointer-events: none;
  user-select: none;
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.lock-overlay-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  background: rgba(247, 249, 252, 0.3);
  padding: 1.5rem;
  text-align: center;
}

.lock-badge {
  background: #FFFFFF;
  border: 1px solid rgba(11, 31, 58, 0.06);
  box-shadow: 0 10px 25px rgba(11, 31, 58, 0.08);
  border-radius: 9999px;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lock-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(11, 31, 58, 0.12);
}

.lock-badge svg {
  color: var(--accent-primary);
}

/* Google SSO & Auth Modal Styles */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #FFFFFF;
  border: 1px solid rgba(11, 31, 58, 0.15);
  color: var(--text-primary);
  padding: 0.75rem 1.4rem;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-google:hover {
  background: #F9FAFB;
  border-color: rgba(11, 31, 58, 0.25);
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.04);
}

.google-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0.85rem 0;
  width: 100%;
}

.google-divider::before,
.google-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.google-divider:not(:empty)::before {
  margin-right: .5em;
}

.google-divider:not(:empty)::after {
  margin-left: .5em;
}

.google-account-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  margin-top: 1.25rem;
}

.google-account-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 58, 0.08);
  background: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  text-align: left;
}

.google-account-item:hover {
  background: rgba(22, 184, 166, 0.02);
  border-color: rgba(22, 184, 166, 0.25);
}

.google-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-teal);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(22, 184, 166, 0.2);
}

/* ==========================================
   Mobile Responsive Adjustments
   ========================================== */
@media (max-width: 768px) {
  /* Navigation Container & Hamburger */
  .nav-container {
    padding: 0.75rem 1.25rem;
    position: relative;
    width: 100%;
  }

  /* Hamburger Menu Button */
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 150;
  }

  .hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Navigation Drawer */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(11, 31, 58, 0.08);
    box-shadow: 0 15px 30px rgba(11, 31, 58, 0.08);
    z-index: 140;
  }

  .nav-links.active {
    display: flex;
    animation: slideDownMenu 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideDownMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links a {
    width: 100%;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(11, 31, 58, 0.04);
  }

  .nav-links a:hover {
    padding-left: 0.25rem;
  }

  .nav-links .btn-outline {
    text-align: center;
    border: 1px solid var(--text-primary);
    background: var(--text-primary);
    color: #FFFFFF !important;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
  }

  .nav-links .btn-outline:hover {
    background: #143561;
  }

  /* Solutions Dropdown Menu in Mobile */
  .nav-links .dropdown {
    width: 100%;
    border-bottom: 1px solid rgba(11, 31, 58, 0.04);
  }

  .nav-links .dropdown-trigger {
    justify-content: space-between;
    padding: 0.5rem 0;
    width: 100%;
  }

  .nav-links .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(11, 31, 58, 0.02);
    margin-top: 0.25rem;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    display: none;
  }

  .nav-links .dropdown:hover .dropdown-menu {
    display: none; /* Disable hover menu trigger on mobile */
  }

  .nav-links .dropdown.active .dropdown-menu {
    display: block;
  }

  .nav-links .dropdown-menu a {
    border-bottom: none;
    padding: 0.5rem 0.75rem;
  }

  /* Header login indicator on mobile */
  #dynamicHeaderLogin {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(11, 31, 58, 0.04);
  }

  #dynamicHeaderLogin a.btn-google-trigger {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 8px;
  }

  /* Hero Section Typography */
  h1 {
    font-size: 2.25rem !important; /* Override large viewport inline size */
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
  }

  .hero {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0 1.25rem !important;
  }

  .hero p {
    font-size: 1.05rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-emotion {
    margin-bottom: 1.75rem !important;
  }

  /* Search & Forms stack vertically */
  .search-container {
    padding: 0.4rem;
    border-radius: 14px;
    margin: 0 0.5rem;
  }

  .search-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .input-group {
    width: 100%;
  }

  .search-input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 1rem;
  }

  .btn-primary {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
  }

  /* Demo Badge Wrap */
  .demo-badge-container {
    padding: 0 0.5rem;
  }

  .demo-badge {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    gap: 0.4rem 0.6rem;
  }

  /* Footer Layout - Long links stack, Privacy/Terms stay side-by-side */
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    justify-content: center;
    align-items: center;
  }

  .footer-links a:nth-child(1),
  .footer-links a:nth-child(2) {
    grid-column: span 2;
    text-align: center;
  }

  .footer-links a:nth-child(3) {
    justify-self: end;
  }

  .footer-links a:nth-child(4) {
    justify-self: start;
  }

  /* Subscribe Form Stack on Mobile */
  .subscribe-form {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .subscribe-input {
    width: 100%;
    padding: 0.85rem 1.25rem !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(11, 31, 58, 0.1) !important;
    text-align: center;
  }

  /* Quick Links 2x2 Grid on Mobile */
  .quick-links {
    margin-top: 2rem !important;
    margin-bottom: 3.5rem !important;
    padding: 0 1.25rem !important;
  }

  .links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    width: 100%;
  }

  .link-card {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
  }

  /* Section Title Single Line on Mobile */
  .section-title {
    font-size: 1.3rem !important;
    letter-spacing: -0.25px !important;
    margin-bottom: 1.75rem !important;
    white-space: nowrap;
  }

  /* District Card Mobile Fixes */
  .card {
    padding: 1.5rem !important;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem !important;
  }

  .district-title h2 {
    font-size: 1.45rem !important;
    line-height: 1.25;
  }

  .badge-status {
    align-self: flex-start;
    white-space: nowrap;
    padding: 0.35rem 0.85rem !important;
    font-size: 0.75rem !important;
  }

  /* Subscribe Card Heading Mobile Optimization */
  .subscribe-card h3 {
    font-size: 1.2rem !important;
    white-space: nowrap;
    letter-spacing: -0.25px !important;
  }
}

/* Hide Hamburger Menu on Desktop */
@media (min-width: 769px) {
  .hamburger-btn {
    display: none;
  }
}


