/* Pocket Steps site: the app's night palette and pixel type (src/ui.tsx C). */
:root {
  --bg: #0d0b1e;
  --bar: #26244f;
  --paper: #f1e6c8;
  --paper2: #d9c99f;
  --white: #fffaf0;
  --ink: #10101e;
  --mute: #a99fb5;
  --red: #e43b44;
  --yellow: #feae34;
  --green: #3e8948;
  --lime: #63c74d;
  --sky: #8fd3ff;
  --purple: #6a3fa0;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font: 17px/1.65 'Pixelify Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--sky); }
img { max-width: 100%; display: block; image-rendering: pixelated; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.px { font-family: 'Press Start 2P', monospace; letter-spacing: 0.02em; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; gap: 12px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font: 14px/1 'Press Start 2P', monospace; }
.logo img { width: 40px; height: 40px; border-radius: 10px; }

/* Hard-shadow retro button, like Btn in the app. */
.btn {
  display: inline-block; position: relative; padding: 16px 22px; background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); text-decoration: none;
  font: 12px/1 'Press Start 2P', monospace; transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn.soon { background: var(--paper2); cursor: default; }

/* Hero: night sky with stars, Fumi on stage. */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font: clamp(24px, 4.4vw, 40px)/1.35 'Press Start 2P', monospace; color: var(--white); margin: 0 0 22px; }
.hero h1 span { color: var(--yellow); }
.hero p.lead { font-size: 20px; color: var(--paper); margin: 0 0 30px; max-width: 34ch; }
.stage { position: relative; display: flex; flex-direction: column; align-items: center; padding: 30px 0; }
.stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(2px 2px at 12% 18%, var(--yellow) 99%, transparent),
    radial-gradient(2px 2px at 84% 10%, var(--yellow) 99%, transparent),
    radial-gradient(2px 2px at 90% 62%, var(--yellow) 99%, transparent),
    radial-gradient(2px 2px at 6% 74%, var(--yellow) 99%, transparent),
    radial-gradient(ellipse 55% 45% at 50% 50%, #26244f 0%, transparent 70%);
}
.stage img.main { width: min(300px, 70%); animation: bob 1.6s steps(2) infinite; }
.stage .shadow { width: min(220px, 50%); height: 12px; background: #3a386e; margin-top: 6px; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .stage img.main { animation: none; } }
.meta { font-size: 15px; color: var(--mute); margin-top: 16px; }

section { padding: 56px 0; }
section h2 { font: clamp(17px, 2.8vw, 24px)/1.4 'Press Start 2P', monospace; color: var(--white); margin: 0 0 14px; }
section p.intro { color: var(--paper); max-width: 58ch; margin: 0 0 30px; }

/* Boxes with a hard ink shadow, like Box in the app. */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.box { background: var(--white); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 #000; padding: 20px; }
.box .k { font: 10px/1 'Press Start 2P', monospace; color: var(--red); margin-bottom: 12px; }
.box h3 { font: 13px/1.5 'Press Start 2P', monospace; margin: 0 0 10px; }
.box p { margin: 0; font-size: 16px; color: #3a3346; }

/* Growth: LV1 -> LV2 -> LV3. */
.grow { display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 4vw, 44px); padding: 26px; background: var(--bar); border: 3px solid var(--ink); box-shadow: 6px 6px 0 #000; }
.grow figure { margin: 0; text-align: center; }
.grow img { margin: 0 auto 10px; }
.grow figcaption { font: 10px/1 'Press Start 2P', monospace; color: var(--yellow); }
.grow .arrow { font: 16px/1 'Press Start 2P', monospace; color: var(--paper2); padding-bottom: 40px; }

/* Roster strip. */
.roster { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.roster figure { margin: 0; background: var(--bar); border: 3px solid var(--ink); padding: 14px 8px 10px; text-align: center; }
.roster img { height: 84px; width: auto; margin: 0 auto 8px; object-fit: contain; }
.roster figcaption { font: 9px/1 'Press Start 2P', monospace; color: var(--paper); }

.note { background: var(--bar); border-left: 6px solid var(--lime); padding: 18px 20px; max-width: 64ch; }

/* Docs (privacy, support). */
.doc { max-width: 720px; padding: 24px 0 64px; }
.doc h1 { font: clamp(20px, 3.4vw, 28px)/1.4 'Press Start 2P', monospace; color: var(--white); margin: 8px 0 22px; }
.doc h2 { font: 13px/1.5 'Press Start 2P', monospace; color: var(--yellow); margin: 34px 0 10px; }
.doc p, .doc li { color: var(--paper); }
.doc .updated { color: var(--mute); font-size: 15px; }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px 0 40px; border-top: 3px solid var(--bar); color: var(--mute); font-size: 15px; }
footer a { margin-right: 18px; color: var(--paper); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero .stage { order: -1; }
  .grid3 { grid-template-columns: 1fr; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .grow .arrow { display: none; }
}
