/* Google Fonts - Work Sans */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

/* CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables */
:root {
  --primary-blue: #0A84FF;
  --bg-light: #FFFFFF;
  --bg-offwhite: #F8FAFF;
  --text-dark: #1C1C1E;
  --text-muted: #8E8E93;
}

/* Base Styles */
html {
  font-size: 16px;
}

body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-offwhite);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 3rem 1rem 2rem; /* extra space from top */
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-offwhite) 100%);
}

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

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.hero .description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-screenshot {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Carousel styles */
.carousel {
  overflow: hidden;
  display: block;
  width: 100%;
  max-width: 240px;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background: rgba(28,28,30,0.25);
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.carousel-dot.active,
.carousel-dot:focus,
.carousel-dot:hover {
  background: var(--primary-blue);
  outline: none;
}

/* Store Badges */
.store-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  width: 100%;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  min-width: 135px;
  height: 40px;
  background-color: var(--text-dark);
  color: var(--bg-light);
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
  opacity: 0.85;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.store-badge:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-small {
  font-size: 0.5rem;
  opacity: 0.9;
}

.badge-large {
  font-size: 0.875rem;
  font-weight: 600;
}

.screenshot-placeholder {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 2;
  background-color: #E5E5EA;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Features Section */
.features {
  background-color: #F5F5F7;
  padding: 3rem 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.feature {
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.feature-icon {
  display: block;
  margin: 0 0 1rem;
  color: #1C1C1E;
  width: 48px;
  height: 48px;
}
.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--bg-light);
  padding: 1.5rem 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--bg-light);
}

.footer-nav a:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--bg-light);
}

.footer-social a:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.footer-social svg {
  display: block;
}

/* Content Pages (Terms, Privacy) */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.content-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.content-page .back-link:hover {
  text-decoration: underline;
}

.content-page .back-link:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.content-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.content-page .last-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.content-page .alert {
  background-color: #FFF3CD;
  border: 1px solid #FFECB5;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: #664D03;
}

.content-page h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.content-page section {
  margin-bottom: 1.5rem;
}

.content-page h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-page ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.content-page ul li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Responsive Breakpoints */
/* Mobile-first approach */
/* Tablet: 768px */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero .tagline {
    font-size: 1.5rem;
  }

  .hero .description {
    font-size: 1.125rem;
    color:#444;
  }

  .screenshot-placeholder {
    max-width: 280px;
  }

  .carousel {
    max-width: 280px;
  }

  .store-badges {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

  .features {
    padding: 3rem 2rem;
  }
}

/* Desktop: 1024px */
@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 3.5rem 3rem 2rem; /* slightly larger top padding on desktop */
    min-height: auto;
  }

  .hero-content {
    text-align: left;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-screenshot {
    margin-top: 0;
  }

  .screenshot-placeholder {
    max-width: 300px;
  }

  .carousel {
    max-width: 300px;
  }

  .store-badges {
    justify-content: flex-start;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .feature-title {
    font-size: 1.125rem;
  }

  .feature-description {
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 2rem;
  }
  .features {
    padding: 2.5rem 2rem;
  }
}
