/* Landing-page styles. Layered on top of style.css (design tokens + nav). */

.landing {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px;
}

/* ----- Hero ----- */

.hero {
  text-align: center;
  padding: 24px 0 32px;
}

.hero-title {
  font-size: 2rem;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: 0.5px;
}

.hero-tagline {
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 1.5;
}

/* ----- Store badges ----- */

.store-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.store-badges a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  transition: transform 120ms ease, filter 120ms ease;
}

.store-badges a:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.store-badges a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.store-badges img {
  height: 48px;
  width: auto;
  display: block;
}

/* ----- Screenshots showcase ----- */

.screenshots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0;
  margin: 0;
  list-style: none;
}

.screenshots figure {
  margin: 0;
  text-align: center;
}

.screenshots picture {
  display: block;
}

.screenshots img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.02);
}

.screenshots figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Constrain phone-aspect shots so they don't dominate vertically on narrow viewports */
.screenshots figure {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Bottom CTA ----- */

.cta-bottom {
  text-align: center;
  padding: 32px 0 48px;
}

.cta-bottom h2 {
  font-size: 1.4rem;
  margin: 0 0 20px;
  color: var(--text);
}

/* ----- Tablet (≥600px) ----- */
@media (min-width: 600px) {
  .landing {
    padding: 24px;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-tagline {
    font-size: 1.15rem;
    margin-bottom: 32px;
  }

  .store-badges {
    gap: 18px;
  }

  .store-badges img {
    height: 56px;
  }

  .screenshots {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 32px 0;
  }

  .screenshots figure {
    max-width: none;
  }

  .cta-bottom {
    padding: 48px 0 64px;
  }

  .cta-bottom h2 {
    font-size: 1.7rem;
  }
}

/* ----- Desktop (≥960px) ----- */
@media (min-width: 960px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .screenshots {
    grid-template-columns: repeat(3, 1fr);
  }
}
