/* ────────────────────────
   Global Styles and Layout
   ──────────────────────── */
html {
  scroll-behavior: smooth;           /* Smooth scroll for anchor links */
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1D1D1F;                    /* Apple default text color (near-black) */
  background: #FFFFFF;
  line-height: 1.6;
}

/* Typography */
h1, h2 {
  font-weight: 700;
  margin: 0 0 0.6rem;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; margin-top: 2rem; }
.hero-title {
  font-size: 2.8rem;                /* Larger hero title on desktop */
  font-weight: 700;
}
.hero-tag {
  font-size: 1.2rem;
  font-weight: 400;
  color: #555555;                   /* Subdued secondary text for tagline */
  margin: 0 0 0.5rem;
}

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 0.5rem 1rem;
}
.site-header nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}
.site-header nav a {
  position: relative;
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  color: #1D1D1F;
}
.site-header nav a:hover {
  color: #000000;
}
.site-header nav a.active {
  color: #0071E3 !important;        /* Apple blue highlight for active section */
}
.site-header nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: #0071E3;
  border-radius: 1px;
}

/* Section Wrapper */
section {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1rem;
  scroll-margin-top: 70px;         /* offset scroll position for sticky header */
}
/* Center certain section content for symmetry */
#how, #screens {
  text-align: center;
}

/* Footer */
.site-footer {
  background: #F5F5F7;
  color: #666666;
  text-align: center;
  padding: 1.3rem 1rem;
  font-size: 0.9rem;
}
.site-footer nav {
  margin: 0.5rem 0;
}
.site-footer a {
  color: #666666;
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover {
  color: #000000;
  text-decoration: underline;
}
/* Social icons list in footer */
.site-footer .social-links {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  gap: 0.75rem;
}
.site-footer .social-links i {
  font-size: 20px;
}

/* ────────────────────────
   Hero Section
   ──────────────────────── */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}
.hero-logo {
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto 1.5rem;
}
.beta-badge img, .app-badge img {
  display: block;
  margin: 1.5rem auto 0;
  max-width: 180px;
  height: auto;
}

/* ────────────────────────
   How It Works Section
   ──────────────────────── */
.how-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}
.how-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;                    /* equal card width */
}
.how-grid img {
  width: 100px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 0.5rem;
}
.how-grid h3 {
  margin: 0.2rem 0 0.4rem;
}
.how-grid p {
  margin: 0;
  line-height: 1.4;
}

/* Who/Why/Origin Sections (default styles from section) */
/* We keep text left-aligned for readability in these sections */

/* ────────────────────────
   Screenshots Carousel
   ──────────────────────── */
.swiper {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  overflow: visible;
}
.swiper-wrapper {
  overflow: visible !important;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}
.swiper-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Swiper navigation buttons & pagination */
.swiper-button-prev, .swiper-button-next {
  color: #0071E3;
  width: 32px;
  height: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.swiper-button-prev::after, .swiper-button-next::after {
  font-size: 24px;
}
.swiper-pagination {
  bottom: 10px;
}

/* Call-to-Action (CTA) Section */
.cta {
  text-align: center;
  margin: 4rem auto 0;
}
.cta h2 {
  margin-bottom: 1rem;
}

/* ────────────────────────
   Responsive Design Tweaks
   ──────────────────────── */
/* Small screens (phones) */
@media (max-width: 480px) {
  .hero-title { font-size: 2.0rem; }
  .hero-tag { font-size: 1.1rem; }
  .site-header nav ul {
    flex-wrap: wrap;               /* allow nav items to wrap on very small screens */
    gap: 1rem;
  }
  .swiper {
    max-width: 240px;
  }
  .swiper-button-prev { left: -18px; }
  .swiper-button-next { right: -18px; }
}
/* Medium screens (tablets) */
@media (min-width: 481px) and (max-width: 1023px) {
  .hero-title { font-size: 2.4rem; }
  .hero-video { width: 220px; height: 480px; }  /* if a phone video were used in hero */
}
/* Wider screens: adjust carousel width for more slides */
@media (min-width: 600px) {
  .swiper { max-width: 480px; }
}
@media (min-width: 900px) {
  .swiper { max-width: 820px; }
}
