/* ================================================
   SavvyKids Landing Page - Premium Styles
   Performance optimized, SEO-friendly, stunning UI
   ================================================ */

/* Fonts with optimized loading */
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Regular.woff2') format('woff2'),
    url('assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-SemiBold.woff2') format('woff2'),
    url('assets/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Bold.woff2') format('woff2'),
    url('assets/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ================================================
   Design System - CSS Custom Properties
   ================================================ */
:root {
  /* Primary Colors */
  --primary: #5264BF;
  --primary-dark: #3C4CA1;
  --primary-light: #7085E0;
  --primary-gradient: linear-gradient(135deg, #5264BF 0%, #7B8CE8 50%, #A0ABE1 100%);

  /* Secondary Colors */
  --secondary: #5DBDD1;
  --secondary-light: #81DDEB;
  --secondary-dark: #3AA3B8;
  --secondary-gradient: linear-gradient(135deg, #5DBDD1 0%, #81DDEB 100%);

  /* Accent Colors */
  --accent: #FF6B9D;
  --accent-light: #FFB3D1;
  --purple: #8B5CF6;
  --purple-light: #A78BFA;
  --green: #10B981;
  --orange: #F59E0B;

  /* Neutral Colors */
  --text: #1B1E2B;
  --text-secondary: #4B5563;
  --muted: #6B7280;
  --light: #9CA3AF;

  /* Backgrounds */
  --background: #F8FAFC;
  --background-alt: #F1F5F9;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;

  /* Borders & Shadows */
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-primary: 0 10px 40px -10px rgba(82, 100, 191, 0.4);
  --shadow-glow: 0 0 60px rgba(82, 100, 191, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: blur(20px);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
}

/* ================================================
   Reset & Base Styles
   ================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(82, 100, 191, 0.15), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(93, 189, 209, 0.12), transparent 40%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(139, 92, 246, 0.08), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

p {
  margin: 0 0 var(--space-md);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
}

/* ================================================
   Layout
   ================================================ */
.container {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

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

.section-header {
  max-width: 680px;
  margin-bottom: var(--space-2xl);
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ================================================
   Accessibility
   ================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-md);
  background: var(--text);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  left: var(--space-md);
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

/* ================================================
   Header
   ================================================ */
.site-header {
  padding: var(--space-md) 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all var(--transition-slow);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
  z-index: -1;
}

.site-header.scrolled::before {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  z-index: 101;
}

.brand img {
  width: 40px;
  height: 40px;
  transition: transform var(--transition-bounce);
}

.brand:hover img {
  transform: rotate(-10deg) scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 101;
  position: relative;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  bottom: -7px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav a {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  color: var(--muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.nav a:hover,
.nav a:focus {
  color: var(--primary);
  background: rgba(82, 100, 191, 0.08);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width var(--transition-fast);
}

.nav a:hover::after {
  width: 60%;
}

.header-cta {
  font-size: 0.875rem;
}

/* ================================================
   Buttons
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  /* Larger padding */
  font-family: inherit;
  font-size: 1rem;
  /* Slightly larger text */
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  /* Refined border */
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

.btn svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  /* Icon depth */
}

.btn.primary {
  background: var(--primary-gradient);
  /* Reverted to original gradient */
  color: white;
  box-shadow: 0 10px 20px -5px rgba(82, 100, 191, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn.primary:hover {
  box-shadow: 0 20px 30px -10px rgba(82, 100, 191, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  background: linear-gradient(135deg, #4338CA 0%, #6D28D9 100%);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.01);
}

.btn.secondary:hover {
  background: white;
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 15px 25px -5px rgba(82, 100, 191, 0.15);
}

.btn.ghost {
  background: transparent;
  color: var(--primary);
  border-color: rgba(82, 100, 191, 0.2);
}

.btn.ghost:hover {
  background: rgba(82, 100, 191, 0.08);
  border-color: var(--primary);
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: var(--shadow-primary);
  }

  50% {
    box-shadow: 0 15px 50px -10px rgba(82, 100, 191, 0.6), 0 0 30px rgba(82, 100, 191, 0.3);
  }
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
  padding-top: 140px;
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--secondary-dark);
  font-weight: 700;
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: rgba(93, 189, 209, 0.12);
  border-radius: var(--radius-full);
  width: fit-content;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--text);
}

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

.hero .lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-xl) 0 var(--space-lg);
}

.hero-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--green), #34D399);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.trust-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(82, 100, 191, 0.2) 0%, transparent 60%);
  filter: blur(60px);
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.hero-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: float 6s ease-in-out infinite;
}

.hero-card img {
  width: 100%;
  max-width: 460px;
  height: auto;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--surface);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  animation: float-badge 5s ease-in-out infinite;
}

.hero-pill {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.badge-2 {
  top: 20%;
  right: -10%;
  animation-delay: -2.5s;
}

@keyframes float-badge {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

.badge-2 {
  animation-name: float-badge-2;
}

@keyframes float-badge-2 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.pill-icon {
  font-size: 1rem;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ================================================
   Feature Cards
   ================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-card:hover .card-glow {
  opacity: 1;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: transform var(--transition-bounce);
}

.feature-card:hover .icon-badge {
  transform: scale(1.1) rotate(-5deg);
}

.icon-badge.secondary {
  background: var(--secondary-gradient);
}

.icon-badge.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.icon-badge.purple {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ================================================
   Steps Section
   ================================================ */
.steps-container {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

.step-card {
  flex: 1;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
}

.step-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.step-card:hover::before {
  opacity: 1;
}

.step-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
}

.step-icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-primary);
  transition: transform var(--transition-bounce);
}

.step-card:hover .step-icon-bg {
  transform: scale(1.1) rotate(-5deg);
}

.step-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.step-content {
  text-align: center;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.step-content p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
}

.step-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(82, 100, 191, 0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(82, 100, 191, 0.15);
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  align-self: center;
}

.step-arrow svg {
  width: 32px;
  height: 32px;
  padding: 6px;
  background: rgba(82, 100, 191, 0.1);
  border-radius: 50%;
  color: var(--primary);
  transition: all var(--transition-base);
  box-shadow: 0 0 0 4px white;
  /* Creates a gap effect */
}

.step-card:hover+.step-arrow svg {
  transform: translateX(8px);
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md), 0 0 0 4px white;
}

/* ================================================
   Family Section
   ================================================ */
.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.family-content {
  max-width: 500px;
}

.family-lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: var(--space-xl);
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  color: var(--text-secondary);
}

.check-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(20px);
}

.glass-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.info-icon {
  font-size: 1.5rem;
}

.info-card-header strong {
  font-size: 1.125rem;
  color: var(--primary);
}

.info-card p {
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: rgba(82, 100, 191, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pill:hover {
  background: rgba(82, 100, 191, 0.2);
  transform: scale(1.05);
}

.info-card-stats {
  display: flex;
  gap: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ================================================
   Testimonials
   ================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  transition: all var(--transition-slow);
  opacity: 0;
  transform: translateY(20px);
}

.testimonial-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

.testimonial-card.featured {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  transform: scale(1.02);
}

.testimonial-card.featured.in-view {
  transform: scale(1.02);
}

.testimonial-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.testimonial-card.featured p,
.testimonial-card.featured span {
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-card.featured strong {
  color: white;
}

.testimonial-rating {
  color: var(--orange);
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-card.featured .testimonial-rating {
  color: #FFD700;
}

.testimonial-card blockquote {
  margin: 0 0 var(--space-lg);
}

.testimonial-card blockquote p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.testimonial-card.featured .author-avatar {
  background: rgba(255, 255, 255, 0.2);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-info strong {
  font-size: 0.9375rem;
  color: var(--text);
}

.author-info span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ================================================
   FAQ Section
   ================================================ */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-slow);
  opacity: 0;
  transform: translateY(10px);
}

.faq-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(82, 100, 191, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  font-weight: 400;
  transition: all var(--transition-fast);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

/* ================================================
   Download Section
   ================================================ */
.download {
  padding-bottom: var(--space-4xl);
}

.download-card {
  position: relative;
  background: var(--primary-gradient);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(82, 100, 191, 0.4);
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-card .eyebrow {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
}

.download-card h2 {
  color: white;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--space-md);
}

.download-card p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  font-size: 1.1rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  transition: all var(--transition-base);
}

.store-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.store-button img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.store-button span {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.3;
}

.store-button strong {
  font-size: 1rem;
}

.download-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
}

.decoration-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.decoration-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 30%;
}

.decoration-circle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 20%;
  transform: translateY(-50%);
}

/* ================================================
   Contact Section
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(82, 100, 191, 0.1);
}

.form-input::placeholder {
  color: var(--light);
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.6;
}

.form-message {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  display: none;
  animation: slide-in 0.3s ease;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spinner {
  animation: rotate 1s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.contact-card:hover::before {
  opacity: 0.03;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 16px -4px rgba(82, 100, 191, 0.3);
}

.contact-icon.secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  box-shadow: 0 8px 16px -4px rgba(93, 189, 209, 0.3);
}

.contact-icon.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 8px 16px -4px rgba(255, 107, 157, 0.3);
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--text);
  position: relative;
  z-index: 1;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap var(--transition-fast);
  position: relative;
  z-index: 1;
}

.contact-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.contact-link:hover {
  gap: var(--space-sm);
}

.contact-link:hover::after {
  transform: translateX(3px);
}

/* Contact Hours Card */
.contact-hours {
  padding: var(--space-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.hours-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: var(--radius-full);
  position: relative;
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: inherit;
  border-radius: inherit;
  opacity: 0.3;
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.hours-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.hours-time {
  font-weight: 600;
  color: var(--text);
}

.hours-note {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* ================================================
   Footer
   ================================================ */
footer {
  padding: var(--space-xl) 0 var(--space-2xl);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--text);
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

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

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition-fast);
}

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

/* ================================================
   Animations
   ================================================ */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    gap: var(--space-2xl);
  }

  .steps-container {
    flex-direction: column;
    max-width: 500px;
  }

  .step-arrow {
    display: none;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .testimonial-card.featured {
    transform: none;
  }

  .testimonial-card.featured.in-view {
    transform: none;
  }

  .testimonial-card.featured:hover {
    transform: translateY(-4px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-list {
    align-items: center;
  }

  .trust-badges {
    justify-content: center;
  }

  .hero-visual {
    display: none;
    /* Hide primary image on mobile */
  }

  .badge-2 {
    right: 0;
  }

  .family-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .download-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .store-buttons {
    justify-content: center;
  }

  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    font-size: 1.25rem;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 120px;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-badges {
    flex-wrap: wrap;
    justify-content: center;
  }

  .trust-divider {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .download-card {
    padding: var(--space-xl);
  }

  .store-button {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .info-card-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* ================================================
   Reduced Motion
   ================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-card,
  .floating-badge,
  .hero-glow {
    animation: none;
  }
}

/* ================================================
   Print Styles
   ================================================ */
@media print {

  .site-header,
  .skip-link,
  .cta-row,
  .store-buttons,
  .download {
    display: none;
  }

  body::before {
    display: none;
  }

  .hero {
    padding-top: 0;
  }
}