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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0A0A0A;
  background: #F5F0EB;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Screen reader only - visible to crawlers and assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Page ===== */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) {
  .page { padding: 6rem 1.5rem 4rem; }
}

/* ===== Logo ===== */
.logo-img {
  width: 260px;
  height: auto;
}
@media (min-width: 640px) {
  .logo-img { width: 340px; }
}

/* ===== Tagline ===== */
.tagline {
  font-family: 'Caveat', cursive;
  font-size: 1.75rem;
  color: #525252;
  margin-top: -1.5rem;
}
@media (min-width: 640px) {
  .tagline { font-size: 2.25rem; }
}

/* ===== Body ===== */
.body {
  margin-top: -1rem;
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  font-weight: 600;
  color: #525252;
  max-width: 30rem;
  line-height: 1.2;
  padding: 0 1.5rem;
}
@media (min-width: 640px) {
  .body { white-space: nowrap; max-width: none; }
  .body br { display: none; }
}

/* ===== App Store Badge ===== */
.app-store-link {
  display: inline-block;
  margin-top: 1.25rem;
  transition: opacity 0.2s;
}
.app-store-link:hover { opacity: 0.8; }
.app-store-link img {
  height: 54px;
  width: auto;
}

/* ===== Sub ===== */
.sub {
  margin-top: 1rem;
  font-size: 1rem;
  color: #6B7280;
  max-width: 28rem;
  padding: 0 1.5rem;
}

/* ===== Screenshots ===== */
.screenshots {
  position: relative;
  z-index: 1;
  padding: 2rem 0 3rem;
  overflow: hidden;
}
.section-header {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #525252;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.screenshots-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.5rem;
  scrollbar-width: none;
}
.screenshots-track::-webkit-scrollbar { display: none; }

.screenshot-card {
  flex-shrink: 0;
  width: 380px;
  scroll-snap-align: center;
}
.screenshot-card img {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #D5D0CB;
}
.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 1rem;
  border: 1px solid #D5D0CB;
  background: #EDE8E3;
}
.screenshot-card .caption {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0A0A0A;
  text-align: center;
}
.screenshot-card .caption-sub {
  font-size: 0.75rem;
  color: #9CA3AF;
  text-align: center;
  margin-top: 0.125rem;
}

/* ===== FAQ ===== */
.faq {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.faq h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #525252;
  text-align: center;
  margin-bottom: 1.5rem;
}
.faq-item {
  margin-bottom: 1.25rem;
}
.faq-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0A0A0A;
  margin-bottom: 0.25rem;
}
.faq-item p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #6B7280;
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: #9CA3AF;
}
.footer a { transition: color 0.2s; }
.footer a:hover { color: #0A0A0A; }

/* ===== Legal pages ===== */
.legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) {
  .legal { padding: 4rem 2rem 3rem; }
}
.legal h1 {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  font-weight: 600;
  color: #525252;
  margin-bottom: 0.25rem;
}
.legal-updated {
  font-size: 0.8125rem;
  color: #9CA3AF;
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
}
.legal p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 0.75rem;
}
.legal ul {
  margin: 0.5rem 0 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #374151;
}
.legal li { margin-bottom: 0.25rem; }

/* ===== Email link ===== */
.email-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}
.email-link:hover { opacity: 0.7; }
