/* BUMP! landing page (aviral.lol). Same palette and font as the game (src/ui/styles.css). */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #2b2150;
  --ink-soft: #4a3f7a;
  --paper: #fffaf0;
  --sky: #9edbff;
  --sky-deep: #58b8ff;
  --yellow: #ffd23d;
  --pink: #ff5f8f;
  --blue: #56c8ff;
  --mint: #3ddc84;
  --display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
code { font-size: 0.92em; }

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

/* ── Hero ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--sky-deep), #d6f1ff 72%, #ffd9ee);
  border-bottom: 5px solid var(--ink);
  padding: 44px 0 40px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-icon { width: 120px; height: 120px; border-radius: 32px; border: 6px solid var(--ink); box-shadow: 0 8px 0 var(--ink); }
.logo {
  margin: 18px 0 6px;
  font: 700 clamp(84px, 20vw, 168px)/0.95 var(--display);
  letter-spacing: -2px;
  -webkit-text-stroke: clamp(7px, 1.6vw, 13px) var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 clamp(6px, 1.4vw, 11px) 0 var(--ink);
}
.logo span { display: inline-block; }
.logo span:nth-child(1) { color: var(--yellow); transform: rotate(-5deg); }
.logo span:nth-child(2) { color: var(--pink); transform: rotate(4deg) translateY(6px); }
.logo span:nth-child(3) { color: var(--blue); transform: rotate(-5deg); }
.logo span:nth-child(4) { color: var(--mint); transform: rotate(4deg) translateY(6px); }
.logo span:nth-child(5) { color: var(--yellow); transform: rotate(-5deg); }
.tagline { margin: 10px 0 24px; font: 600 clamp(20px, 3.4vw, 26px)/1.3 var(--display); max-width: 30ch; }
.hero-note { margin: 18px 0 0; font-size: 15px; color: var(--ink-soft); }

.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 260px; min-height: 76px; padding: 12px 26px;
  border: 5px solid var(--ink); border-radius: 999px; box-shadow: 0 7px 0 var(--ink);
  color: var(--ink); text-decoration: none; font-family: var(--display);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.btn:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.btn-main { font-weight: 700; font-size: 26px; line-height: 1.05; }
.btn-sub { font-weight: 600; font-size: 15px; opacity: 0.8; }
.btn.play { background: var(--yellow); }
.btn.android { background: var(--mint); }
.btn.soon { background: #e9e4f7; box-shadow: 0 7px 0 rgba(43, 33, 80, 0.4); cursor: default; }
.btn.soon:hover { transform: none; box-shadow: 0 7px 0 rgba(43, 33, 80, 0.4); }

/* ── Screenshots: a swipeable strip on phones, a grid on wide screens ── */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-top: 32px; padding-bottom: 12px;
}
.shots figure { margin: 0; scroll-snap-align: center; }
.shots img { border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 rgba(43, 33, 80, 0.35); }
.shots figcaption { margin-top: 8px; text-align: center; font: 600 17px/1.2 var(--display); }
@media (min-width: 760px) {
  .shots { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; }
}

/* ── Feature cards ── */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 28px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { border: 4px solid var(--ink); border-radius: 24px; padding: 18px 20px; box-shadow: 0 6px 0 var(--ink); }
.card h2 { margin: 0 0 6px; font: 700 23px/1.2 var(--display); }
.card p { margin: 0; }
.card.yellow { background: #fff3b8; }
.card.pink { background: #ffd6e3; }
.card.blue { background: #d4f0ff; }
.card.mint { background: #d4f8e3; }

/* ── Parents + install ── */
.parents, .install { padding-top: 36px; }
.parents h2, .install h2 { font: 700 30px/1.2 var(--display); margin: 0 0 12px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 38px; max-width: 70ch; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232b2150' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 3px solid var(--ink);
}
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; min-height: 34px; max-width: 70ch; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pink); color: #fff; border: 3px solid var(--ink);
  font: 700 17px/1 var(--display);
}
.small { font-size: 14px; color: var(--ink-soft); max-width: 75ch; margin-top: 16px; }
.hash { word-break: break-all; }

/* ── Footer ── */
.foot { margin-top: 48px; padding-top: 22px; padding-bottom: 36px; border-top: 2px solid rgba(43, 33, 80, 0.12); text-align: center; color: var(--ink-soft); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
.foot a { color: var(--ink); font-weight: 600; }
.foot p { margin: 0; }
