:root {
  --primary: #2563eb;
  --dark: #0f172a;
  --light: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--dark);
  background: var(--light);
}

header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #111827;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  z-index: 1000;
}

.container {
  width: min(90%, 1200px);
  margin: 0 auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--dark);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background-color: #edf2ff;
  color: var(--primary);
  outline: none;
}

.hero {
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  color: #fff;
  text-align: center;
  padding: 6rem 0;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  outline: none;
}

.features .grid,
.gallery .grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.about,
.features,
.gallery,
.safety,
.accessibility {
  padding: 4rem 0;
}

.card {
  background: #fff;
  padding: 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gallery img {
  width: 100%;
  border-radius: 0.375rem;
  display: block;
}



table {
  width: 100%;
  border-collapse: collapse;
}

.download {
  text-align: center;
  padding: 4rem 0;
}

.footer {
  background: var(--dark);
  color: #fff;
  padding: 2rem 0;
}

.footer ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.apple-disclaimer {
  font-size: 0.875rem;
  margin-top: 1rem;
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-consent button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

.hidden {
  display: none;
}

.legal {
  padding: 2rem 0 4rem;
}

.legal h1 {
  margin-top: 0;
}

/* Mobile menu button styles */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  background-color: #edf2ff;
  outline: none;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

/* Subtle base typography improvements */
h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  line-height: 1.7;
}

/* Smooth scrolling and anchor offset for sticky header */
html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

:target {
  scroll-margin-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .nav-links a {
    transition: none;
  }
}

.cookie-consent {
  z-index: 1000;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #60a5fa;
    --dark: #e5e7eb;
    --light: #0b1220;
  }

  body {
    color: var(--dark);
    background: var(--light);
  }

  header {
    background: #0f172a;
    border-bottom-color: #1f2937;
  }

  .hero {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
  }

  .card {
    background: #0f172a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background-color: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
  }

  .footer {
    background: #0b1220;
  }

  .mobile-menu-btn span {
    background-color: var(--dark);
  }

  .mobile-menu-btn:hover,
  .mobile-menu-btn:focus-visible {
    background-color: rgba(96, 165, 250, 0.15);
  }
}
