/* ============================================================
   Hubbub World — Site-wide Styles
   Nav, footer, marketing layouts.
   ============================================================ */

:root {
  --bg-card: #FFFFFF;
  --border-card: rgba(0,0,0,0.08);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --card-radius: 12px;
  --card-padding: 24px;
  --card-gap: 16px;
  --page-max-width: 860px;
  --page-padding: 20px;
  --accent-primary: #0046BE;
  --accent-teal: #34D1B6;
  --text-primary: #1A1D26;
  --text-secondary: #5A5F72;
  --text-tertiary: #9098A9;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  line-height: 1.5;
}

/* --- Site Nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 120px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  height: 100%;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo:hover { text-decoration: none; color: var(--text-primary); }
.nav-logo-img {
  height: 54px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links > a,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  padding: 8px 48px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 1px solid rgba(0,0,0,0.08);
  background: none;
  border-top: none;
  border-bottom: none;
  border-right: none;
  cursor: pointer;
  font-family: var(--font-family);
}
.nav-links > a:hover,
.nav-dropdown-trigger:hover {
  color: var(--accent-primary);
  text-decoration: none;
}
.nav-links > a.active {
  color: var(--text-primary);
  font-weight: 600;
}
.nav-links > *:last-child {
  border-right: 1px solid rgba(0,0,0,0.08);
}

/* CSS-only dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}
.nav-dropdown-menu a:hover {
  background: rgba(0,0,0,0.03);
  color: var(--accent-primary);
  text-decoration: none;
}

/* Mobile hamburger — CSS-only with checkbox */
.nav-toggle { display: none; }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* --- Site Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--accent-secondary, #0046BE);
  color: rgba(255,255,255,0.85);
  padding: 48px 24px 24px;
  margin-top: 0;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-logo {
  flex: 0 0 180px;
}
.footer-logo .nav-logo { color: #fff; }
.footer-logo .nav-logo .sub { color: rgba(255,255,255,0.7); }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.75rem;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
}
.footer-columns {
  display: flex;
  gap: 48px;
  flex: 1;
}
.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font-family);
  padding: 0;
}
.footer-bottom button:hover { color: #fff; }

/* --- Homepage Section Backgrounds --- */
.home-page {
  background: #f0f0f0;
}
.home-page .hub-mesh-bg { display: none; }
.home-page .site-hero-text { text-align: center; }
.home-page .site-hero-text h1 {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.home-page .store-badges { justify-content: center; }

.hero-bub-logo {
  height: 100px;
  width: auto;
  display: block;
  margin: 0 auto 4px;
}

.section-hero {
  background:
    radial-gradient(circle at 71.5% 10.5%, rgba(166, 208, 200, 0.5) 0%, rgba(166, 208, 200, 0) 30%),
    radial-gradient(circle at 89% 81.3%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 65%),
    radial-gradient(circle at 58.8% 11.1%, rgba(229, 248, 244, 0.5) 0%, rgba(229, 248, 244, 0) 60%),
    radial-gradient(circle at 38.8% 96.9%, rgba(248, 248, 248, 0.5) 0%, rgba(248, 248, 248, 0) 30%),
    radial-gradient(circle at 17% 58.4%, rgba(240, 228, 208, 0.5) 0%, rgba(240, 228, 208, 0) 50%),
    radial-gradient(circle at 48.9% 49.5%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%),
    #fff;
  padding: 0;
}
.section-hero-tagline {
  text-align: center;
  padding: 0 0 48px;
}
.hero-tagline {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}
.hero-tagline .tm {
  font-size: 0.5em;
  vertical-align: super;
}
/* --- National Health Risks Overview (Homepage Hero) --- */
.hero-national {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
  max-width: 990px;
  margin: 0 auto;
}
.hero-national-map {
  min-width: 0;
}
.hero-national-map img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-national-summary {
  align-self: start;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
}
.hero-national-summary h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant: small-caps;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.hero-national-summary p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}
.hero-national-summary p:last-of-type {
  margin-bottom: 0;
}
.hero-national-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
}
.hero-national-link:hover {
  text-decoration: underline;
}

.section-funnel {
  background: linear-gradient(#EBF0FA, #FFFFFF);
  padding: 32px 0;
}
.section-trusted .trusted-grid {
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
  gap: 48px;
}
.trusted-bub-logo {
  height: 88px;
  display: block;
  margin: 12px auto 8px;
}
.section-trusted {
  background: #F8F8F8;
  padding: 32px 0 0;
}
.section-news {
  background: radial-gradient(circle at 30% 40%, rgba(217, 255, 248, 0.5) 0%, rgba(217, 255, 248, 0) 60%), #f8f8f8;
  padding: 32px 0 48px;
}

/* --- Marketing Page Layout --- */
.site-page {
  position: relative;
  z-index: 1;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: var(--page-padding);
}
.site-page-wide {
  --page-max-width: 1100px;
}

/* --- Hero Section (Homepage/Bub) --- */
.site-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 0;
  min-height: 400px;
}
.site-hero-text { flex: 1; }
.site-hero-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 36px;
}
.site-hero-text .tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.site-hero-mockup {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.site-hero-mockup img {
  width: 540px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
}

/* App store badges */
.store-badges {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}
.store-badges img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}
.store-badges img[alt*="Google Play"] {
  height: 54px;
  margin: -11px 0;
}

/* --- Dual Funnel Cards (Homepage) --- */
.funnel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
  margin: 32px 0;
}
.funnel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
}
.funnel-card:first-child {
  border-top-color: var(--accent-teal, #34D1B6);
}
.funnel-card:last-child {
  border-top-color: var(--accent-primary, #0046BE);
}
.funnel-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.funnel-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.funnel-card p {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.funnel-card .funnel-link {
  display: inline-block;
  font-size: 1em;
  font-weight: 600;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  align-self: flex-start;
}
.funnel-card:first-child .funnel-link {
  background: var(--accent-teal, #34D1B6);
}
.funnel-card:last-child .funnel-link {
  background: var(--accent-primary, #0046BE);
}

/* --- Feature Grid (Bub/Homepage) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--card-gap);
  margin: 32px 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.feature-card-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #f8f8f8;
}
.feature-card-body {
  padding: var(--card-padding);
}
.feature-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.feature-card-body .subtitle {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 8px;
}
.feature-card-body p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Trusted By (Homepage) --- */
.trusted-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.trusted-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: calc(var(--card-radius) * 2);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.trusted-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.trusted-item a {
  display: block;
}
.trusted-item img {
  width: 100%;
  height: auto;
  display: block;
}
.trusted-item p {
  font-size: 1em;
  color: var(--text-primary);
  line-height: 1.6;
  padding: 12px var(--card-padding) var(--card-padding);
}

/* --- Section Titles (Marketing) --- */
.site-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin: 40px 0 32px;
  letter-spacing: -0.02em;
}
.site-section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

/* --- Hub Portal: State Navigation Grid --- */
.region-section {
  margin-bottom: 24px;
}
.region-title {
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-card);
}

/* --- Hub Portal Page --- */
.hub-portal-hero {
  background: radial-gradient(circle at 30% 40%, rgba(217, 255, 248, 0.5) 0%, rgba(217, 255, 248, 0) 60%), #f8f8f8;
  padding: 0;
}
.hub-portal-heading {
  text-align: center;
  margin-bottom: 40px;
}
.hub-portal-heading .site-section-label {
  color: var(--accent-teal);
}
.hub-portal-heading h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.hub-portal-directory {
  background: #F8F8F8;
  padding: 48px 0;
}
.hub-portal-region {
  margin-bottom: 40px;
}
.hub-portal-region:last-child {
  margin-bottom: 0;
}
.hub-portal-region h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-teal);
  display: inline-block;
}
.hub-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.hub-portal-card {
  display: block;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.15s ease;
}
.hub-portal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-teal);
  color: var(--text-primary);
  text-decoration: none;
}
.hub-portal-cta {
  background: linear-gradient(#FFFFFF, #EBF0FA);
  padding: 64px 0;
  text-align: center;
}
.hub-portal-cta p.hub-portal-cta-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-primary);
  margin-bottom: 8px;
}
.hub-portal-cta-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hub-portal-cta .hero-bub-logo {
  height: 120px;
  margin: 24px auto 16px;
}
.hub-portal-cta h2:last-of-type {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hub-portal-cta .store-badges {
  justify-content: center;
}

/* --- News Section --- */
.news-title-link {
  color: var(--accent-primary, #0046BE);
  text-decoration: none;
}
.news-title-link:hover { text-decoration: underline; }
.news-title-link .tm {
  font-size: 0.6em;
  vertical-align: super;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin: 24px 0 32px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.news-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.news-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  background: #f5f5f5;
}
.news-card-body {
  padding: var(--card-padding);
}
.news-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary, #0046BE);
  margin-bottom: 8px;
  line-height: 1.3;
}
.news-card-body p {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Download CTA Section --- */
.download-section {
  text-align: center;
  padding: 48px 0;
}
.download-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.download-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.download-section .store-badges {
  justify-content: center;
}

/* --- Section Label (two-level heading pattern) --- */
.site-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-primary);
  text-align: center;
  margin: 0 0 8px;
}
.site-section-label + .site-section-title,
.site-section-label ~ .site-section-title {
  margin-top: 0;
}

/* --- Hero Carousel (CSS auto-fade with iPhone frame) --- */
.hero-carousel {
  position: relative;
  flex: 0 0 auto;
  height: 600px;
  background: #1d1d1f;
  border-radius: 44px;
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.08);
}
.hero-carousel::before {
  /* Dynamic Island */
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}
.hero-carousel::after {
  /* Neutral screen background visible during image transitions */
  content: '';
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  background: #f0f0f0;
  border-radius: 34px;
  z-index: 0;
}
.hero-carousel img {
  position: absolute;
  top: 10px;
  left: 10px;
  height: calc(100% - 20px);
  width: auto;
  opacity: 0;
  animation: heroFade 12s ease-in-out infinite;
  border-radius: 34px;
  z-index: 1;
}
/* Image 1 stays relative for container sizing, but animates like the others */
.hero-carousel img:first-child {
  position: relative;
  top: 0; left: 0;
  height: 100%;
}
/* All 3 images crossfade: 12s cycle, ~4s per image with smooth overlap */
.hero-carousel img:nth-child(1) { animation-delay: 0s; }
.hero-carousel img:nth-child(2) { animation-delay: 4s; }
.hero-carousel img:nth-child(3) { animation-delay: 8s; }

@keyframes heroFade {
  0%   { opacity: 1; }
  25%  { opacity: 1; }
  33%  { opacity: 0; }
  92%  { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel img { animation: none; opacity: 0; }
  .hero-carousel img:first-child { opacity: 1; }
}

/* --- Bub Page Sections --- */
.section-bub-hero {
  background: linear-gradient(#EBF0FA, #FFFFFF);
  padding: 0;
}
.section-bub-hero .site-hero {
  justify-content: center;
  gap: 144px;
}
.section-bub-hero .site-hero-text {
  flex: 0 1 auto;
  text-align: center;
}
.section-bub-hero .store-badges {
  justify-content: center;
}
.section-bub-hero .site-hero-text h1 {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 32px;
}
.section-bub-features {
  background: #F8F8F8;
  padding: 64px 0 72px;
}
.section-bub-features .trusted-grid {
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
  gap: 48px;
}
.section-bub-benefits {
  background:
    radial-gradient(circle at 71.5% 10.5%, rgba(166, 208, 200, 0.5) 0%, rgba(166, 208, 200, 0) 30%),
    radial-gradient(circle at 89% 81.3%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 65%),
    radial-gradient(circle at 58.8% 11.1%, rgba(229, 248, 244, 0.5) 0%, rgba(229, 248, 244, 0) 60%),
    radial-gradient(circle at 38.8% 96.9%, rgba(248, 248, 248, 0.5) 0%, rgba(248, 248, 248, 0) 30%),
    radial-gradient(circle at 17% 58.4%, rgba(240, 228, 208, 0.5) 0%, rgba(240, 228, 208, 0) 50%),
    radial-gradient(circle at 48.9% 49.5%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%),
    #fff;
  padding: 64px 0 72px;
}
.section-bub-data {
  background: linear-gradient(#EBF0FA, #FFFFFF);
  padding: 72px 0;
  text-align: center;
}
.section-bub-cta {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 220, 160, 0.3) 0%, transparent 60%),
    linear-gradient(#FFF6E8, #F0F0F0);
  padding: 80px 0;
  text-align: center;
}
.section-bub-cta .download-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-bub-cta .download-section p {
  font-size: 1.0625rem;
  margin-bottom: 32px;
}
.section-bub-crosssell {
  background: #F8F8F8;
  padding: 32px 0 0;
}
.section-bub-faq {
  background: #F8F8F8;
  padding: 48px 0 72px;
}

/* --- Benefit Cards --- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 32px 0;
}
.benefit-card {
  padding: 24px;
  border-top: 3px solid var(--accent-teal, #34D1B6);
  background: var(--bg-card);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.benefit-card:nth-child(1) { border-top-color: #FF4040; }
.benefit-card:nth-child(2) { border-top-color: #34D1B6; }
.benefit-card:nth-child(3) { border-top-color: #300060; }
.benefit-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Stats Row (Data Credibility) --- */
.stats-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 24px 0;
}
.stats-row .stat {
  padding: 0 32px;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.12);
}
.stats-row .stat:first-child { padding-left: 0; }
.stats-row .stat:last-child { border-right: none; padding-right: 0; }
.stats-row .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.01em;
}
.stats-row .stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.data-sources {
  font-size: 1.3125rem;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 48px;
}

/* --- Schools Cross-sell --- */
.schools-crosssell {
  text-align: center;
  padding: 24px 0;
}
.schools-crosssell p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}
.schools-crosssell a {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.schools-crosssell a:hover { text-decoration: underline; }

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 700px;
  margin: 24px auto 0;
}
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}
.faq-item summary:hover { color: var(--accent-primary); }
.faq-item[open] summary { color: var(--accent-primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p {
  padding: 0 0 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
  .site-hero {
    flex-direction: column-reverse;
    gap: 24px;
    padding: 24px 0;
    min-height: 0;
  }
  .section-bub-hero .site-hero { gap: 24px; }
  .site-hero-mockup {
    flex: none;
    width: 100%;
  }
  .site-hero-mockup img { width: 100%; max-width: 360px; }
  .site-hero-text h1 { font-size: 1.75rem; }
  .home-page .site-hero-text h1 { font-size: 1rem; }
  .section-bub-hero .site-hero-text h1 { font-size: 0.9rem; }
  .funnel-grid { grid-template-columns: 1fr; gap: 32px; }
  .trusted-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .hero-carousel { height: 420px; }
  /* carousel animates at all sizes */
  .stats-row { flex-direction: column; gap: 16px; }
  .stats-row .stat { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.08); padding: 0 0 16px; }
  .stats-row .stat:last-child { border-bottom: none; padding-bottom: 0; }
  .section-bub-features .trusted-grid,
  .section-trusted .trusted-grid { max-width: 100%; }
  .section-bub-cta .download-section h2 { font-size: 1.75rem; }
  .section-bub-features { padding: 40px 0 48px; }
  .section-bub-benefits { padding: 40px 0 48px; }
  .section-bub-data { padding: 48px 0; }
  .section-bub-cta { padding: 48px 0; }
  .hero-national {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
    max-width: 100%;
  }
  .section-hero-tagline { padding: 0 0 48px; }
  .footer-columns { gap: 32px; }
  .footer-top { gap: 32px; }
}

@media (max-width: 480px) {
  .site-nav { height: 80px; }
  .site-nav-inner { padding: 0 16px; }
  .nav-logo-img { height: 36px; }
  .site-page { padding-left: 16px; padding-right: 16px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-toggle:checked ~ .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 12px 0;
  }
  .nav-toggle:checked ~ .nav-links > a,
  .nav-toggle:checked ~ .nav-links .nav-dropdown-trigger {
    border-left: none;
    padding: 12px 24px;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 24px;
  }
  .site-hero-text h1 { font-size: 1.5rem; }
  .home-page .site-hero-text h1 { font-size: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .trusted-grid { grid-template-columns: 1fr; }
  .trusted-item { max-width: 75%; margin-left: auto; margin-right: auto; }
  .hero-carousel {
    height: 280px;
    border-radius: 20px;
    padding: 6px;
  }
  .hero-carousel::before { width: 34px; height: 10px; top: 8px; }
  .hero-carousel::after { top: 6px; left: 6px; right: 6px; bottom: 6px; border-radius: 16px; }
  .hero-carousel img { top: 6px; left: 6px; height: calc(100% - 12px); border-radius: 16px; }
  .hero-carousel img:first-child { top: 0; left: 0; height: 100%; border-radius: 16px; }
  .hero-bub-logo { height: 88px; }
  .hero-tagline { font-size: 1.21rem; color: var(--text-secondary); }
  .site-section-title { font-size: 1.25rem; margin: 24px 0 32px; }
  .hub-portal-cta-title { font-size: 1.125rem; }
  .hub-portal-cta .hero-bub-logo { height: 80px; }
  .hub-portal-cta h2:last-of-type { font-size: 1.125rem; }
  .section-bub-cta .download-section h2 { font-size: 1.5rem; }
  .data-sources { font-size: 0.9375rem; margin-top: 32px; }
  .stats-row .stat-value { font-size: 1.35rem; }
  .schools-crosssell p { font-size: 1rem; }
  .store-badges img { height: 32px; }
  .store-badges img[alt*="Google Play"] { height: 46px; margin: -8px 0; }
  .footer-columns { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
