/* ============================================
   MAIN.CSS - Base & Shared Styles
   ============================================ */

/* --- Site variables & base styles --- */
:root {
  --bg: #121212;
  --card-bg: #ffffff;
  --section-bg: #ffffff;
  --benefit-card-bg: #f8f9fa;
  --product-card-bg: #f8f9fa;
  --news-card-bg: #eeeeee;
  --text: #222;
  --muted: #444;
  --brand: #4285f4;
  --surface: #f5f5f5;
  --radius: 8px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  --font-size-base: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --card-bg: #1e1e1e;
    --section-bg: #1e1e1e;
    --benefit-card-bg: rgba(255, 255, 255, 0.08);
    --product-card-bg: rgba(255, 255, 255, 0.08);
    --news-card-bg: #2a2a2a;
    --text: #f5f5f5;
    --muted: #d0d0d0;
    --surface: #121212;
  }
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--surface);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

html {
  font-size: var(--font-size-base);
}

html.text-larger {
  --font-size-base: 18px;
}

html.text-largest {
  --font-size-base: 20px;
}

html.theme-light {
  --card-bg: #ffffff !important;
  --section-bg: #ffffff !important;
  --benefit-card-bg: #f8f9fa !important;
  --product-card-bg: #f8f9fa !important;
  --news-card-bg: #eeeeee !important;
  --text: #222 !important;
  --muted: #444 !important;
  --surface: #f5f5f5 !important;
}

html.theme-dark {
  --card-bg: #1e1e1e !important;
  --section-bg: #1e1e1e !important;
  --benefit-card-bg: rgba(255, 255, 255, 0.08) !important;
  --product-card-bg: rgba(255, 255, 255, 0.08) !important;
  --news-card-bg: #2a2a2a !important;
  --text: #f5f5f5 !important;
  --muted: #d0d0d0 !important;
  --surface: #121212 !important;
}

/* High Contrast Mode */
html.high-contrast {
  --card-bg: #000000 !important;
  --text: #ffffff !important;
  --muted: #ffffff !important;
  --surface: #000000 !important;
  --brand: #00ff00 !important;
  --shadow: 0 0 0 2px #ffffff !important;
}

/* High Contrast Mode with Light Theme - White background, black text */
html.high-contrast.theme-light {
  --card-bg: #ffffff !important;
  --section-bg: #ffffff !important;
  --benefit-card-bg: #ffffff !important;
  --product-card-bg: #ffffff !important;
  --news-card-bg: #ffffff !important;
  --text: #000000 !important;
  --muted: #000000 !important;
  --surface: #ffffff !important;
  --brand: #0000ff !important;
  --shadow: 0 0 0 2px #000000 !important;
}

html.high-contrast * {
  border-color: #ffffff !important;
}

html.high-contrast.theme-light * {
  border-color: #000000 !important;
}

html.high-contrast .section,
html.high-contrast .card,
html.high-contrast .news-card,
html.high-contrast .product-card {
  border: 2px solid #ffffff !important;
}

html.high-contrast.theme-light .section,
html.high-contrast.theme-light .card,
html.high-contrast.theme-light .news-card,
html.high-contrast.theme-light .product-card {
  border: 2px solid #000000 !important;
  outline: 2px solid #000000 !important;
  outline-offset: -2px !important; /* Place outline inside to match border */
}

html.high-contrast a {
  color: #00ff00 !important;
  text-decoration: underline !important;
}

html.high-contrast.theme-light a {
  color: #0000ff !important;
  text-decoration: underline !important;
}

/* Override for social media icons - they should be white, not blue */
html.high-contrast.theme-light .footer-section .social-links a,
html.high-contrast.theme-light .footer-section .social-links a:link,
html.high-contrast.theme-light .footer-section .social-links a:visited,
html.high-contrast.theme-light .footer-section .social-links a:active,
html.high-contrast.theme-light .footer-section .social-links a:hover,
html.high-contrast.theme-light footer .footer-section .social-links a,
html.high-contrast.theme-light footer .footer-section .social-links a:link,
html.high-contrast.theme-light footer .footer-section .social-links a:visited,
html.high-contrast.theme-light footer .footer-section .social-links a:active,
html.high-contrast.theme-light footer .footer-section .social-links a:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

html.high-contrast.theme-light .footer-section .social-links a i,
html.high-contrast.theme-light .footer-section .social-links a:link i,
html.high-contrast.theme-light .footer-section .social-links a:visited i,
html.high-contrast.theme-light .footer-section .social-links a:active i,
html.high-contrast.theme-light .footer-section .social-links a:hover i,
html.high-contrast.theme-light footer .footer-section .social-links a i,
html.high-contrast.theme-light footer .footer-section .social-links a:link i,
html.high-contrast.theme-light footer .footer-section .social-links a:visited i,
html.high-contrast.theme-light footer .footer-section .social-links a:active i,
html.high-contrast.theme-light footer .footer-section .social-links a:hover i {
  color: #ffffff !important;
  filter: brightness(0) invert(1) !important;
}

/* Base Link Styles - Better Contrast */
a {
  color: #1a73e8; /* Darker blue for better contrast */
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: #1557b0; /* Even darker on hover */
  text-decoration: underline;
}

/* News cards should never have underlines */
.news-card:hover,
.news-card:hover * {
  text-decoration: none !important;
}

a:visited {
  color: #4a5568; /* Dark gray-blue instead of purple to avoid clash with purple banners */
}

a:focus {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Links on dark backgrounds */
@media (prefers-color-scheme: dark) {
  a {
    color: #8ab4f8; /* Lighter blue for dark mode */
  }
  
  a:hover {
    color: #aecbfa; /* Even lighter on hover */
  }
  
  a:visited {
    color: #9ca3af; /* Light gray for dark mode instead of purple */
  }
}

/* Links in dark theme */
html.theme-dark a {
  color: #8ab4f8 !important;
}

html.theme-dark a:hover {
  color: #aecbfa !important;
}

html.theme-dark a:visited {
  color: #9ca3af !important; /* Light gray for dark mode */
}

/* Links in light theme */
html.theme-light a {
  color: #1a73e8 !important;
}

html.theme-light a:hover {
  color: #1557b0 !important;
}

html.theme-light a:visited {
  color: #4a5568 !important; /* Dark gray-blue for light mode */
}

/* Links on colored backgrounds - ensure visibility */
.hero a,
[style*="background"] a {
  color: #fff !important;
  text-decoration: underline;
}

/* Footer links should match header style - no underlines, no visited color change */
footer a,
footer a#cookieSettings {
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none !important;
}

footer a:hover,
footer a#cookieSettings:hover {
  opacity: 0.8;
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none !important;
}

footer a:visited,
footer a#cookieSettings:visited,
footer a:active,
footer a#cookieSettings:active {
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none !important;
}

/* Override dark/light mode link colors for footer navigation */
@media (prefers-color-scheme: dark) {
  footer a,
  footer a:visited,
  footer a:hover,
  footer a:active {
    color: rgba(255,255,255,0.8) !important;
  }
}

html.theme-dark footer a,
html.theme-dark footer a:visited,
html.theme-dark footer a:hover,
html.theme-dark footer a:active {
  color: rgba(255,255,255,0.8) !important;
}

html.theme-light footer a,
html.theme-light footer a:visited,
html.theme-light footer a:hover,
html.theme-light footer a:active {
  color: rgba(255,255,255,0.8) !important;
}

/* Navigation links should never have underlines and should be pure white */
header nav a,
header .header-content nav a,
nav a {
  text-decoration: none !important;
  color: rgb(255, 255, 255) !important;
}

header nav a:hover,
header .header-content nav a:hover,
nav a:hover {
  text-decoration: none !important;
}

header nav a:visited,
header .header-content nav a:visited,
nav a:visited {
  color: rgb(255, 255, 255) !important;
}

.hero a:hover,
[style*="background"] a:hover {
  color: #e8f0fe !important;
  text-decoration: underline;
}

/* Buttons in hero section - override hero link color */
.hero .btn-primary {
  color: #4c51bf !important;
  text-decoration: none !important;
}

.hero .btn-primary:hover {
  background: #ffffff !important;
  color: #2d1b69 !important;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.hero .btn-secondary {
  color: #667eea !important;
  text-decoration: none !important;
}

.hero .btn-secondary:hover {
  color: #4c51bf !important;
  text-decoration: none !important;
}

/* Buttons and CTAs - ensure text is always visible */
.btn-primary,
.nav-cta,
button[style*="background"] {
  color: white !important;
}

/* Reduce 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;
  }
}

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

html.reduce-motion .fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

html.reduce-motion .btn,
html.reduce-motion .btn-primary,
html.reduce-motion .btn-secondary,
html.reduce-motion .product-card a,
html.reduce-motion .product-card .coming-soon-btn,
html.reduce-motion .nav-cta,
html.reduce-motion .cta,
html.reduce-motion .store-btn {
  transform: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

html.reduce-motion .btn:hover,
html.reduce-motion .btn-primary:hover,
html.reduce-motion .btn-secondary:hover,
html.reduce-motion .product-card a:hover,
html.reduce-motion .product-card .coming-soon-btn:hover,
html.reduce-motion .nav-cta:hover,
html.reduce-motion .cta:hover,
html.reduce-motion .store-btn:hover {
  transform: none !important;
}

html.reduce-motion .btn:active,
html.reduce-motion .btn-primary:active,
html.reduce-motion .btn-secondary:active,
html.reduce-motion .product-card a:active,
html.reduce-motion .product-card .coming-soon-btn:active,
html.reduce-motion .nav-cta:active,
html.reduce-motion .cta:active,
html.reduce-motion .store-btn:active {
  transform: none !important;
}

/* Base Layout */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section {
  background: var(--section-bg);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  overflow: visible !important; /* Ensure pagination dots are visible */
  min-height: auto !important; /* Don't restrict height */
  max-height: none !important; /* Don't restrict height */
  height: auto !important; /* Allow section to grow */
}


/* Scroll offset for anchor links to account for sticky header */
#about,
#mission,
#news,
#contact,
#products,
#q1-2027 {
  scroll-margin-top: 70px;
}

h2 {
  margin-top: 0;
  font-weight: 600;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

/* Buttons */
.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
  background: var(--brand);
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
  background: #3367d6;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}

.btn:visited {
  color: white !important;
}

.btn-primary {
  background: white;
  color: #4c51bf;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #4338ca;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary:visited {
  color: #4c51bf !important;
}

.btn-secondary {
  background: rgba(255,255,255,0.95);
  color: #667eea;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 600;
}

.btn-secondary:hover {
  background: white;
  color: #4c51bf;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-secondary:visited {
  color: #667eea !important;
}

/* Products Grid */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.product-card {
  background: var(--product-card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  .product-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

html.theme-dark .product-card {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html.theme-light .product-card {
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.product-card img {
  width: auto;
  max-width: 120px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #ddd;
}

.product-card h3 {
  margin: 10px 0 5px;
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
}

/* Product card text scaling with accessibility widget */
html.text-larger .product-card p {
  font-size: 15.4px !important; /* 14px * 1.1 */
}

html.text-largest .product-card p {
  font-size: 17.5px !important; /* 14px * 1.25 */
}

.product-card a {
  margin-top: auto;
  display: inline-block;
  padding: 10px 18px;
  background: var(--brand);
  color: #ffffff !important;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: 600;
}

.product-card a:hover {
  background: #3367d6;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.product-card a:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.product-card a:visited {
  color: #ffffff !important;
}

/* Dark mode adjustments for product card button */
@media (prefers-color-scheme: dark) {
  .product-card a {
    background: #5a9af7; /* Slightly lighter blue for better visibility on dark background */
    color: #ffffff !important;
  }
  
  .product-card a:hover {
    background: #6ba5f8; /* Lighter hover state for dark mode */
    color: #ffffff !important;
  }
}

/* Theme class overrides for product card button */
html.theme-dark .product-card a {
  background: #5a9af7 !important;
  color: #ffffff !important;
}

html.theme-dark .product-card a:hover {
  background: #6ba5f8 !important;
  color: #ffffff !important;
}

html.theme-light .product-card a {
  background: var(--brand) !important;
  color: #ffffff !important;
}

html.theme-light .product-card a:hover {
  background: #3367d6 !important;
  color: #ffffff !important;
}

/* High Contrast Mode - Product Card Learn More Button */
html.high-contrast .product-card a {
  background: #00ff00 !important;
  background-color: #00ff00 !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

html.high-contrast .product-card a:hover {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  transform: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

html.high-contrast .product-card a:visited {
  color: #000000 !important;
}

html.high-contrast.theme-light .product-card a {
  background: #0000ff !important;
  background-color: #0000ff !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

html.high-contrast.theme-light .product-card a:hover {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  transform: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

html.high-contrast.theme-light .product-card a:visited {
  color: #ffffff !important;
}

html.high-contrast.theme-light .product-card a:hover:visited {
  color: #000000 !important;
}

/* Coming Soon button for product cards */
.product-card .coming-soon-btn {
  margin-top: auto;
  display: inline-block;
  padding: 10px 18px;
  background: var(--muted);
  color: #ffffff !important;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  border: none;
  font-size: 16px;
  font-weight: 600;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.product-card .coming-soon-btn:hover {
  background: #555;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.product-card .coming-soon-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Dark mode adjustments for coming soon button */
@media (prefers-color-scheme: dark) {
  .product-card .coming-soon-btn {
    background: #666;
    color: #ffffff !important;
  }
  
  .product-card .coming-soon-btn:hover {
    background: #777;
    color: #ffffff !important;
  }
}

html.theme-dark .product-card .coming-soon-btn {
  background: #666 !important;
  color: #ffffff !important;
}

html.theme-dark .product-card .coming-soon-btn:hover {
  background: #777 !important;
  color: #ffffff !important;
}

html.theme-light .product-card .coming-soon-btn {
  background: var(--muted) !important;
  color: #ffffff !important;
}

html.theme-light .product-card .coming-soon-btn:hover {
  background: #333 !important;
  color: #ffffff !important;
}

/* High Contrast Mode - Coming Soon Button */
html.high-contrast .product-card .coming-soon-btn {
  background: #666666 !important;
  background-color: #666666 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}

html.high-contrast.theme-light .product-card .coming-soon-btn {
  background: #666666 !important;
  background-color: #666666 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

/* Grids */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.benefit-card {
  text-align: center;
  padding: 24px;
  background: var(--benefit-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  .benefit-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

html.theme-dark .benefit-card {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html.theme-light .benefit-card {
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.benefit-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--brand);
}

.benefit-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
}

.benefit-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Benefit card text scaling with accessibility widget */
html.text-larger .benefit-card h3 {
  font-size: 19.8px !important; /* 18px * 1.1 */
}

html.text-larger .benefit-card p {
  font-size: 15.4px !important; /* 14px * 1.1 */
}

html.text-largest .benefit-card h3 {
  font-size: 22.5px !important; /* 18px * 1.25 */
}

html.text-largest .benefit-card p {
  font-size: 17.5px !important; /* 14px * 1.25 */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature-card {
  padding: 24px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brand);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  border-color: #667eea;
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--brand);
  display: inline-block;
}

.feature-card h3 {
  font-size: 18px;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--text);
}

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

.differentiators {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 12px;
}

@media (prefers-color-scheme: dark) {
  .differentiators {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  }
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.diff-item i {
  color: var(--brand);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.diff-item span {
  color: var(--text);
}

.diff-item strong {
  color: var(--text);
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 24px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .features-grid,
  .diff-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 36px;
  }
}

/* Form Styles */
.contact-form {
  max-width: 600px;
  margin: 24px auto 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}

/* Contact form text scaling with accessibility widget */
html.text-larger .form-group label {
  font-size: 15.4px !important; /* 14px * 1.1 */
}

html.text-largest .form-group label {
  font-size: 17.5px !important; /* 14px * 1.25 */
}

.form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  background: var(--card-bg);
  color: var(--text);
  transition: border-color 0.2s;
}

/* Contact form input/textarea text scaling with accessibility widget */
html.text-larger .form-group input,
html.text-larger .form-group textarea {
  font-size: 16.5px !important; /* 15px * 1.1 */
}

html.text-largest .form-group input,
html.text-largest .form-group textarea {
  font-size: 18.75px !important; /* 15px * 1.25 */
}

/* Contact form submit button text scaling with accessibility widget */
html.text-larger .form-submit {
  font-size: 17.6px !important; /* 16px * 1.1 */
}

html.text-largest .form-submit {
  font-size: 20px !important; /* 16px * 1.25 */
}

@media (prefers-color-scheme: dark) {
  .form-group input,
  .form-group textarea {
    border-color: #444;
  }
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  background: var(--brand);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.form-submit:hover {
  background: #3367d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.form-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
  display: block;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
  display: block;
}

.contact-info {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #ddd;
}

@media (prefers-color-scheme: dark) {
  .contact-info {
    border-top-color: #444;
  }
}

.contact-info p {
  margin: 8px 0;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}

.social-links a {
  font-size: 24px;
  color: var(--muted);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--brand);
}

/* Keyboard Navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10001; /* Higher than header (100) to appear on top when focused */
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Screen Reader Only - Hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Enhanced Focus Indicators */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

html.high-contrast a:focus,
html.high-contrast button:focus {
  outline: 3px solid #00ff00;
  outline-offset: 3px;
}

html.high-contrast.theme-light a:focus,
html.high-contrast.theme-light button:focus {
  outline: 3px solid #0000ff !important;
  outline-offset: 3px !important;
}

/* Enhanced keyboard navigation - ensure all interactive elements are focusable */
button:not(:disabled),
a[href],
input:not([disabled]),
select:not([disabled]),
textarea:not([disabled]),
[tabindex]:not([tabindex="-1"]) {
  cursor: pointer;
}

/* Improved focus-visible for better keyboard navigation */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}


html.high-contrast *:focus-visible {
  outline: 3px solid #00ff00;
  outline-offset: 3px;
}

html.high-contrast.theme-light *:focus-visible {
  outline: 3px solid #0000ff !important;
  outline-offset: 3px !important;
}
