*, *::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: 10;
}

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

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

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

/* ===== 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: 0.5rem;
  font-size: 1rem;
  color: #525252;
  max-width: 24rem;
  line-height: 1.6;
}

/* ===== Waitlist Form ===== */
.waitlist-form {
  margin-top: 1.25rem;
  width: 100%;
  max-width: 24rem;
}
.waitlist-input-row {
  display: flex;
  gap: 0;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid #D5D0CB;
  background: #fff;
}
.waitlist-input-row input {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1.25rem;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.9375rem;
  background: transparent;
  color: #0A0A0A;
}
.waitlist-input-row input::placeholder { color: #9CA3AF; }
.waitlist-input-row button {
  padding: 0.875rem 1.5rem;
  background: #0A0A0A;
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.waitlist-input-row button:hover { opacity: 0.8; }
.waitlist-input-row button:disabled { opacity: 0.5; cursor: not-allowed; }
.waitlist-msg {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  min-height: 1.25rem;
}
.waitlist-msg.success { color: #16a34a; }
.waitlist-msg.error { color: #dc2626; }

/* ===== Sub ===== */
.sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #9CA3AF;
}

/* ===== Screenshots ===== */
.screenshots {
  position: relative;
  z-index: 1;
  padding: 2rem 0 3rem;
  overflow: hidden;
}
.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;
}

/* ===== 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; }
