/* "A Game About Blocks" — cream + pink, chalkboard-ish vibe.
   Self-contained. Does not depend on Tailwind. */

:root {
  --cream: #FFF5E0;
  --cream-deep: #FFE9C2;
  --ink: #423858;
  --ink-soft: #6B5E7F;
  --pink: #FF5E7E;
  --pink-deep: #F0436A;
  --mint: #00C58C;
  --mint-deep: #00A876;
  --gold: #FFB327;
  --blue: #4CC9F0;
  --yellow: #FFD166;
  --violet: #B388FF;
  --orange: #FF923D;

  --font-cute: "Chalkboard SE", "Comic Sans MS", "Marker Felt", "Comic Neue", system-ui, cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-cute);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--mint-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  max-width: 1180px; margin: 0 auto;
  gap: 12px;
}
.nav-mark {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: bold; font-size: 18px;
  min-width: 0;
}
.nav-mark span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 2.5px solid var(--ink);
  flex-shrink: 0;
}
.nav-cta {
  background: var(--mint);
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .nav-inner { padding: 10px 14px; gap: 8px; }
  .nav-mark { font-size: 15px; gap: 8px; }
  .nav-icon { width: 26px; height: 26px; }
  .nav-cta { padding: 6px 12px; font-size: 13px; }
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  background: var(--pink);
  padding: 64px 20px 48px;
  text-align: center;
  color: white;
  border-bottom: 4px solid var(--ink);
  position: relative;
  overflow: hidden;
}
@media (max-width: 480px) {
  .hero { padding: 44px 18px 36px; }
}

.hero-title {
  font-size: clamp(44px, 11vw, 112px);
  line-height: 1;
  font-weight: bold;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  text-shadow: 3px 3px 0 var(--ink);
  word-break: break-word;
}
@media (min-width: 600px) {
  .hero-title { text-shadow: 4px 4px 0 var(--ink); }
}
.hero-title span:nth-child(1) { display: inline-block; transform: rotate(-2deg); }
.hero-title span:nth-child(2) { display: inline-block; transform: rotate(1.5deg); margin-top: 4px; }

.hero-sub {
  font-size: clamp(18px, 3vw, 24px);
  margin: 0 auto 36px;
  max-width: 540px;
  line-height: 1.4;
  color: white;
}

.app-icon-big {
  width: clamp(100px, 22vw, 132px);
  height: clamp(100px, 22vw, 132px);
  border-radius: 26px;
  border: 4px solid var(--ink);
  margin: 0 auto 24px;
  box-shadow: 5px 5px 0 var(--ink);
}

.cta-pill {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  font-weight: bold;
  font-size: 18px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.cta-pill:hover {
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.cta-pill-mint {
  display: inline-block;
  background: var(--mint);
  color: white;
  font-weight: bold;
  font-size: 20px;
  padding: 16px 36px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.cta-pill-mint:hover { text-decoration: none; transform: rotate(-1.5deg) translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

/* Decorative confetti dots scattered behind hero */
.hero-confetti { position: absolute; inset: 0; pointer-events: none; opacity: 0.55; }
.hero-confetti span {
  position: absolute; display: block; border-radius: 4px;
  border: 2px solid var(--ink);
}

/* ── Screen strip ────────────────────────────────────────────── */

.strip {
  background: var(--cream);
  padding: 56px 0 32px;
}
@media (max-width: 520px) {
  .strip { padding: 40px 0 16px; }
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: end;
}
@media (max-width: 900px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 520px) {
  .strip-grid { grid-template-columns: 1fr; }
}

.strip-cell { text-align: center; }
.strip-cell img {
  margin: 0 auto;
  border-radius: 18px;
  filter: drop-shadow(6px 6px 0 var(--ink));
}
.strip-caption {
  margin-top: 14px;
  font-size: 18px;
  color: var(--ink);
  font-weight: bold;
}
.strip-cell:nth-child(1) .strip-caption { transform: rotate(-1deg); }
.strip-cell:nth-child(2) .strip-caption { transform: rotate(1deg); }
.strip-cell:nth-child(3) .strip-caption { transform: rotate(-1.2deg); }
.strip-cell:nth-child(4) .strip-caption { transform: rotate(0.8deg); }

/* ── How it works ───────────────────────────────────────────── */

.how {
  background: var(--cream-deep);
  padding: 80px 0;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}
@media (max-width: 520px) {
  .how, .why, .nope, .finish { padding: 56px 0; }
}
.how h2, .why h2, .nope h2, .finish h2 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  margin: 0 0 48px;
  text-align: center;
  color: var(--ink);
}

.how-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 760px) { .how-row { grid-template-columns: 1fr; } }

.how-step {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 5px 5px 0 var(--ink);
}
.how-step:nth-child(1) { transform: rotate(-1deg); }
.how-step:nth-child(2) { transform: rotate(0.5deg); }
.how-step:nth-child(3) { transform: rotate(-0.5deg); }

.how-blocks {
  display: flex; justify-content: center; gap: 6px; margin-bottom: 16px;
}
.how-blocks i {
  display: block; width: 28px; height: 28px;
  border-radius: 6px; border: 2.5px solid var(--ink);
}
.how-step h3 {
  font-size: 26px; margin: 0 0 10px; color: var(--ink);
}
.how-step p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.5; }

/* ── Why play / lazy bullets ────────────────────────────────── */

.why { background: var(--cream); padding: 80px 0; }
.why-list { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; }
.why-list li {
  font-size: clamp(22px, 3.5vw, 32px);
  padding: 18px 0;
  border-bottom: 2px dashed var(--ink);
  color: var(--ink);
}
.why-list li:last-child { border-bottom: 0; }
.why-list li small {
  display: block; font-size: 16px; color: var(--ink-soft); margin-top: 4px; font-weight: normal;
}

/* ── What it isn't ──────────────────────────────────────────── */

.nope {
  background: var(--violet);
  padding: 80px 0;
  color: var(--ink);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}
.nope h2 { color: var(--ink); }
.nope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 640px) { .nope-grid { grid-template-columns: 1fr; } }
.nope-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 4px 4px 0 var(--ink);
}
.nope-card h4 { margin: 0 0 6px; font-size: 22px; color: var(--ink); }
.nope-card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ── Final CTA ──────────────────────────────────────────────── */

.finish {
  background: var(--pink);
  padding: 96px 0 80px;
  text-align: center;
  color: white;
  border-top: 4px solid var(--ink);
}
.finish h2 {
  color: white;
  text-shadow: 3px 3px 0 var(--ink);
  font-size: clamp(48px, 9vw, 84px);
}
.finish p {
  max-width: 480px; margin: 0 auto 36px; font-size: 20px; color: white;
}

/* ── Footer ─────────────────────────────────────────────────── */

.foot {
  background: var(--ink);
  color: var(--cream);
  padding: 36px 24px;
  text-align: center;
  font-size: 14px;
}
.foot a { color: var(--cream); }
.foot-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.foot-copy { color: rgba(255, 245, 224, 0.65); }

/* ── Privacy / legal page ──────────────────────────────────── */

.legal {
  padding: 64px 24px 96px;
  background: var(--cream);
}
.legal h1 {
  font-size: clamp(36px, 6vw, 56px);
  margin: 0 0 8px;
  color: var(--ink);
  transform: rotate(-1deg);
  display: inline-block;
}
.legal-date {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 26px;
  margin: 40px 0 12px;
  color: var(--ink);
}
.legal h3 {
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--ink);
}
.legal p, .legal li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal-back {
  display: inline-block;
  margin-top: 40px;
  font-size: 14px;
  font-weight: bold;
}
