@font-face {
  font-family: 'Fredoka';
  src: url('assets/fonts/Fredoka.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Colors: written by `npm run site:sync` from PALETTE in src/ui/theme.ts (don't edit by hand; use these vars below). */
  --void: #0a0c1e;
  --panel: #191d40;
  --panel-2: #252b57;
  --line: #394184;
  --text: #ffffff;
  --dim: #b3bbe3;
  --muted: #7b85b6;
  --cyan: #4fc3f7;
  --blue: #42a5f5;
  --purple: #b388ff;
  --gold: #ffd54f;
  --primary: #4a5fe0;
  --green: #2f9a45;
  --star: #b3bbe3;
  --display: 'Fredoka', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Starfield: a few layers of tiny dots, plus a soft glow at the top. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 70%),
    radial-gradient(1.5px 1.5px at 12% 18%, var(--text) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, var(--text) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 34%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, var(--text) 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 58%, var(--text) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 26%, var(--star) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 88%, var(--text) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 92%, var(--text) 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 84%, var(--star) 50%, transparent 51%);
  background-size: 100% 100%, 420px 420px, 380px 380px, 460px 460px, 340px 340px, 520px 520px, 400px 400px, 360px 360px, 440px 440px, 500px 500px;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  text-align: center;
}

/* ---------- Hero */

.hero { position: relative; }

.planet {
  position: absolute;
  z-index: -1;
  opacity: 0.85;
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--purple) 35%, transparent));
  animation: float 9s ease-in-out infinite;
}
.planet.p1 { width: 120px; left: -40px; top: 40px; }
.planet.p2 { width: 84px; right: -20px; top: 0; animation-delay: -3s; }
.planet.p3 { width: 64px; left: -10px; top: 470px; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

.hero-dog {
  width: min(280px, 70vw);
  display: block;
  margin: 0 auto -8px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}

.wordmark {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 12vw, 104px);
  line-height: 1;
  white-space: nowrap;
}

.wordmark .name {
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--cyan) 15%, var(--blue) 50%, var(--purple) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 3px var(--panel);
  paint-order: stroke fill;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.45));
}

.wordmark .paw {
  width: 0.42em;
  height: 0.42em;
  flex: none;
  fill: var(--text);
  stroke: var(--panel); /* same dark outline as the letters */
  stroke-width: 4.5px;
  paint-order: stroke fill;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45));
}
.wordmark .paw.left { transform: rotate(-18deg) translateY(0.08em); }
.wordmark .paw.right { transform: rotate(18deg) translateY(0.08em); }

.tagline {
  margin: 14px auto 6px;
  max-width: 520px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 4.6vw, 26px);
  color: var(--text);
}

.about {
  margin: 0 auto 14px;
  max-width: 560px;
  color: var(--dim);
  font-size: 17px;
}

.promise {
  margin: 0 0 32px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Buttons */

.stores, .socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 210px;
  padding: 12px 26px;
  border-radius: 16px;
  background: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35); }
.store:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.store small { font-size: 13px; opacity: 0.85; }
.store strong { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.1; }

.store.soon {
  background: var(--panel-2);
  cursor: default;
  pointer-events: none;
}
.store.soon small { color: var(--gold); opacity: 1; font-weight: 700; }

section { margin-top: 56px; }

h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
}

.social {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.12s ease, transform 0.12s ease;
}
.social:hover { background: var(--panel-2); transform: translateY(-2px); }
.social.soon { color: var(--muted); border-style: dashed; }

/* ---------- What's inside */

.pack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.pack-caption { margin: 8px auto 28px; max-width: 520px; color: var(--dim); }
.pack-caption strong, .feature h3 { color: var(--text); }

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}
.feature {
  padding: 20px 18px 18px;
  border-radius: 20px;
  background: var(--panel);
  border: 2px solid var(--line);
}
.feature .art {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.feature .art img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}
.feature h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: 22px; }
.feature p { margin: 0; color: var(--dim); font-size: 15px; }
.pack img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  transition: transform 0.15s ease;
}
.pack img:hover { transform: translateY(-6px) rotate(-4deg); }

/* ---------- Support */

.support-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 20px;
  background: var(--panel);
  border: 2px solid var(--line);
}
.support-card p { margin: 0 0 18px; color: var(--dim); }

.button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 14px;
  background: var(--green);
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35); }
.button:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }

.hint { margin: 16px 0 0 !important; font-size: 14px; color: var(--muted) !important; }

/* ---------- Footer */

footer {
  margin-top: 64px;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
footer a { color: var(--dim); }

/* ---------- Privacy page */

.doc {
  max-width: 680px;
  text-align: left;
}
.doc h1 { font-family: var(--display); font-weight: 600; font-size: 36px; margin: 0 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc p { color: var(--dim); }
.doc strong { color: var(--text); }
.doc a { color: var(--cyan); }
.back { display: inline-block; margin-bottom: 28px; color: var(--dim); text-decoration: none; font-weight: 700; }

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

@media (max-width: 520px) {
  main { padding-top: 32px; }
  .planet.p1 { width: 80px; left: -24px; }
  .planet.p2 { width: 60px; }
  .planet.p3 { display: none; }
  .store { min-width: 0; width: 100%; align-items: center; }
  .pack img { width: 64px; height: 64px; }
  .features { grid-template-columns: 1fr; }
  .wordmark { font-size: 11vw; }
}
