/* Slappy Nerds — marketing site */
:root {
  --sky: #bdeaff;
  --sky-deep: #8fd6ff;
  --paper: #fbf3d9;
  --ink: #2c2b3a;
  --ink-soft: #5d5576;
  --pink: #ff5d8f;
  --pink-d: #e23e74;
  --gold: #ffce3a;
  --gold-d: #e0a800;
  --blue: #3da9fc;
  --blue-d: #2b7fd1;
  --green: #27c98f;
  --purple: #a25bff;
  --white: #fff;
  --shadow: rgba(44, 43, 58, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--sky);
  /* notebook paper: faint ruled lines + red margin */
  background-image:
    linear-gradient(90deg, transparent 46px, rgba(255, 93, 120, 0.18) 46px, rgba(255, 93, 120, 0.18) 48px, transparent 48px),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(80, 130, 170, 0.13) 33px 34px);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; letter-spacing: 0.5px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---- nav ---- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(189, 234, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--blue-d);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-right a { color: var(--ink); text-decoration: none; font-weight: 600; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--white); text-decoration: none;
  background: var(--pink); border: none; border-radius: 18px;
  padding: 14px 26px; border-bottom: 6px solid var(--pink-d);
  cursor: pointer; transition: transform 0.05s, border-width 0.05s;
}
.btn:active { transform: translateY(3px); border-bottom-width: 3px; }
.btn.play { background: var(--ink); border-bottom-color: #000; }
.btn.small { font-size: 15px; padding: 9px 16px; border-bottom-width: 4px; }
.btn .tri { font-size: 14px; }
.btn .sub { font-weight: 400; font-size: 11px; opacity: 0.8; display: block; line-height: 1; }
.btn .col { display: flex; flex-direction: column; align-items: flex-start; }

/* ---- hero ---- */
.hero { padding: 60px 0 30px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(42px, 8vw, 84px); line-height: 0.95; color: var(--ink); text-shadow: 0 4px 0 var(--white); }
.hero h1 .pink { color: var(--pink); }
.hero .tag { font-family: 'Fredoka', sans-serif; font-size: clamp(20px, 3.5vw, 30px); font-weight: 600; color: var(--blue-d); margin: 8px 0 14px; }
.hero p.lead { font-size: 18px; color: var(--ink-soft); max-width: 460px; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img { width: min(360px, 80%); filter: drop-shadow(0 18px 24px var(--shadow)); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-10px) rotate(-3deg); } 50% { transform: translateY(10px) rotate(3deg); } }

.burst {
  position: absolute; font-family: 'Fredoka', sans-serif; font-weight: 700; color: var(--white);
  background: var(--gold); border: 3px solid var(--ink); border-radius: 50% 50% 50% 0;
  padding: 10px 14px; font-size: 18px; transform: rotate(-12deg); box-shadow: 0 4px 0 var(--shadow);
  -webkit-text-stroke: 0;
}
.burst.b1 { top: 6%; right: 4%; background: var(--pink); }
.burst.b2 { bottom: 8%; left: 0%; background: var(--blue); transform: rotate(10deg); }

/* ---- quote band ---- */
.quote { background: var(--ink); color: var(--white); padding: 46px 0; text-align: center; border-top: 5px solid var(--gold); border-bottom: 5px solid var(--gold); }
.quote blockquote { font-family: 'Fredoka', sans-serif; font-size: clamp(24px, 4.5vw, 40px); font-weight: 600; max-width: 760px; margin: 0 auto; }
.quote .who { margin-top: 16px; color: var(--gold); font-weight: 700; font-size: 18px; letter-spacing: 1px; }

/* ---- sections ---- */
section.pad { padding: 64px 0; }
.section-title { text-align: center; font-size: clamp(30px, 5vw, 46px); color: var(--ink); margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--ink-soft); font-size: 18px; margin-bottom: 38px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--white); border: 3px solid #ece9f5; border-radius: 22px; padding: 26px; box-shadow: 0 6px 0 var(--shadow); }
.card .emoji { font-size: 46px; }
.card h3 { font-size: 22px; margin: 10px 0 6px; }
.card p { color: var(--ink-soft); }

/* meet the nerds */
.nerds { background: var(--paper); border-top: 3px solid var(--gold-d); border-bottom: 3px solid var(--gold-d); }
.nerd-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 820px; margin: 0 auto; }
.nerd-chip { background: var(--white); border: 3px solid #ece9f5; border-radius: 16px; width: 86px; height: 86px; display: flex; align-items: center; justify-content: center; font-size: 44px; box-shadow: 0 4px 0 var(--shadow); }

/* how to play */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { text-align: center; }
.step .num { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--pink); color: var(--white); font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 26px; display: flex; align-items: center; justify-content: center; border-bottom: 5px solid var(--pink-d); }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); }

/* final cta */
.final { text-align: center; padding: 70px 0; }
.final h2 { font-size: clamp(32px, 6vw, 56px); color: var(--ink); }
.final .nerd-mini { font-size: 64px; }

/* footer */
footer { background: var(--ink); color: #c9c6db; padding: 34px 0; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
footer .links { display: flex; gap: 20px; }

/* legal pages */
.legal { background: var(--white); max-width: 760px; margin: 40px auto; padding: 40px; border-radius: 22px; border: 3px solid #ece9f5; box-shadow: 0 6px 0 var(--shadow); }
.legal h1 { font-size: 38px; margin-bottom: 6px; }
.legal h2 { font-size: 22px; margin: 26px 0 8px; color: var(--pink-d); }
.legal p, .legal li { color: var(--ink); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal .muted { color: var(--ink-soft); font-size: 14px; }
.legal a { color: var(--blue-d); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .features, .steps { grid-template-columns: 1fr; }
  .nav-right .hide-sm { display: none; }
}
