:root {
  --color-primary: #001d44;
  --color-primary-light: #3a8fd4;
  --color-on-primary: #ffffff;
  --color-bg: #f9f9f9;
  --color-surface: #ffffff;
  --color-text: #333333;
  --color-muted: #666666;

  --font-family: 'Arial', sans-serif;
  --heading-font-size: clamp(1.75rem, 5vw, 2.5rem);
  --tagline-font-size: clamp(1rem, 2.5vw, 1.3rem);
  --body-font-size: 1em;

  --max-content-width: 900px;
  --logo-width: 120px;
  --store-button-width: 200px;

  --button-hover-scale: 1.05;
}

/* Global Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--body-font-size);
  line-height: 1.5;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Hero */
.hero {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-on-primary);
  padding: 2.5rem 1rem;
}
.hero-content {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.hero-logo {
  width: var(--logo-width);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: var(--heading-font-size);
  margin: 0.5rem 0;
}
.hero-tagline {
  font-size: var(--tagline-font-size);
}

/* Store Section */
.store-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}
.store-section a {
  background-color: var(--color-surface);
  padding: 0.75rem;
  border-radius: 8px;
  transition: transform 0.2s;
}
.store-section a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
.store-section img {
  display: block;
  width: var(--store-button-width);
  height: auto;
}
.store-section a:hover img {
  transform: scale(var(--button-hover-scale));
}

/* Screenshots Carousel */
.screenshots {
  background-color: var(--color-surface);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem 1rem;
}
.screenshots h2 {
  margin-bottom: 1rem;
}
.carousel {
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
}
.carousel-track img {
  min-width: 80%;
  margin-right: 1rem;
  border-radius: 8px;
}
.carousel-dots {
  margin-top: 0.75rem;
}
.dot {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}
.dot.active {
  background-color: var(--color-primary);
}
.dot:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Features */
.features {
  background-color: var(--color-surface);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2.5rem 1rem;
}
.features h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}
.feature {
  background-color: #fdfdfd;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  text-align: center;
}
.feature h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.feature p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* Footer */
.footer {
  background-color: var(--color-surface);
  color: var(--color-muted);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}
.footer a {
  color: var(--color-text);
  text-decoration: none;
}
.footer a:hover,
.footer a:focus {
  text-decoration: underline;
}

/* Release layout and policy readability. */
main, .legal { max-width: 960px; margin: 0 auto; }
.legal { padding: 32px 24px; }
.policy-copy { white-space: pre-wrap; }
.launch-note { text-align: center; max-width: 700px; padding: 0 16px; }
.carousel { max-width: 360px; margin: 0 auto; }
.carousel-track img { flex: 0 0 100%; width: 100%; min-width: 100%; height: auto; object-fit: contain; align-self: flex-start; }

/* Google Play badge */
.launch-note .play-badge {
  display: inline-block;
  margin: 0.25rem 0 0.75rem;
}
.launch-note .play-badge img {
  transition: transform 0.2s;
}
