@font-face {
  font-family: 'Fredoka';
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/fredoka-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito-latin.woff2') format('woff2');
}

:root {
  --cream: #FFFBF5;
  --ink: #1B1A33;
  --muted: #4A4866;
  --soft: #5C5A78;
  --line: #ECE4D8;
  --red: #E5484D;
  --orange: #F5803E;
  --yellow: #FFC53D;
  --green: #46A758;
  --blue: #3E8EF7;
  --purple: #8E4EC6;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 Nunito, system-ui, sans-serif;
  overflow-x: hidden;
}

/* Soft concentric ripple behind the page, echoing the logo */
.ripples {
  position: fixed;
  top: -30vmax;
  right: -30vmax;
  width: 80vmax;
  height: 80vmax;
  z-index: -1;
  opacity: .14;
  pointer-events: none;
}
.ripples span {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  animation: breathe 9s ease-in-out infinite;
}
.ripples span:nth-child(1) { width: 100%; height: 100%; background: var(--red); }
.ripples span:nth-child(2) { width: 84%; height: 84%; background: var(--orange); animation-delay: .3s; }
.ripples span:nth-child(3) { width: 68%; height: 68%; background: var(--yellow); animation-delay: .6s; }
.ripples span:nth-child(4) { width: 52%; height: 52%; background: var(--green); animation-delay: .9s; }
.ripples span:nth-child(5) { width: 36%; height: 36%; background: var(--blue); animation-delay: 1.2s; }
.ripples span:nth-child(6) { width: 20%; height: 20%; background: var(--purple); animation-delay: 1.5s; }
@keyframes breathe { 50% { transform: scale(1.04); } }

.top { padding: 24px clamp(20px, 5vw, 56px); }
.wordmark {
  display: inline-flex;
  align-items: center;
  font: 600 24px/1 Fredoka, sans-serif;
  color: var(--ink);
  text-decoration: none;
}
.wordmark img { margin: 5px 1px 0; }

main {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 56px) 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero .logo {
  width: min(300px, 70vw);
  height: auto;
  display: block;
  margin-bottom: 28px;
  animation: rise .8s cubic-bezier(.2,.8,.2,1) both;
}
h1, h2 { font-family: Fredoka, sans-serif; font-weight: 600; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.01em; }
.lede { font-size: 19px; color: var(--muted); max-width: 30ch; margin: 18px 0 0; }

.game {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 20px 50px -30px rgba(27, 26, 51, .35);
  animation: rise .8s .15s cubic-bezier(.2,.8,.2,1) both;
}
.game-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.app-icon { flex: none; border-radius: 18px; }
.eyebrow {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--soft);
}
h2 { font-size: 28px; line-height: 1.1; }
.dev {
  display: flex; align-items: center; gap: 6px;
  margin: 4px 0 0;
  font-size: 14px; font-weight: 700; color: #3E5BD8;
}
.game > p { color: var(--muted); margin: 0 0 22px; }

.signup { display: flex; flex-direction: column; gap: 12px; }
.signup input[type=email] {
  font: inherit;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
}
.signup input[type=email]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(62, 142, 247, .18); }
.signup button {
  font: 800 16px Nunito, sans-serif;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.signup button:hover { transform: translateY(-1px); background: #2b2950; }
.signup button:disabled { opacity: .6; cursor: wait; }
.signup.done { display: none; }
.status { margin: 12px 0 0; font-weight: 700; color: var(--green); }
.status:empty { display: none; }

footer { text-align: center; font-size: 14px; color: var(--soft); padding-bottom: 28px; }
footer p { margin: 0; }
.stripe { display: flex; height: 6px; margin-bottom: 24px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--red); }
.stripe i:nth-child(2) { background: var(--orange); }
.stripe i:nth-child(3) { background: var(--yellow); }
.stripe i:nth-child(4) { background: var(--green); }
.stripe i:nth-child(5) { background: var(--blue); }
.stripe i:nth-child(6) { background: var(--purple); }

.hidden, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 820px) {
  main { grid-template-columns: 1fr; text-align: center; }
  .hero .logo { margin-left: auto; margin-right: auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .game { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
