/* Fonts are self-hosted: no third-party request on first paint, and the site
   renders the same offline. The two files are the latin variable cuts copied out
   of @fontsource-variable/* — see README for the copy command. */
@font-face {
  font-family: Fredoka;
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/fredoka-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* Hide and Paint — site styles.
   Two surfaces only: cream paper and navy ink. Everything sits on one of them.
   The sticker treatment (3px navy border + hard offset shadow) is the whole
   visual system; if a box needs emphasis it becomes a sticker, not a gradient. */

:root {
  --ink: #131a2b;
  --ink-2: #1d273f;
  --ink-3: #2a3552;
  --paper: #fff9f0;
  --paper-2: #f5ebda;
  --paper-3: #ece0cb;

  --on-paper: #131a2b;
  --on-paper-dim: #5d6479;
  --on-ink: #fff9f0;
  --on-ink-dim: #a3adc9;

  --red: #e8323c;
  --orange: #ff8a2b;
  --yellow: #ffc42e;
  --green: #4ade50;
  --blue: #2fa8f5;
  --purple: #8b5cf6;
  --pink: #ec4899;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --bd: 3px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
  --pop-sm: 4px 4px 0 var(--ink);
  --gut: clamp(20px, 5vw, 40px);
  --wide: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--on-paper);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}
h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.45rem);
}
h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 16px;
  border: var(--bd);
  border-radius: var(--r-sm);
  font-weight: 700;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.band {
  padding-block: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: clip;
}
.band--ink {
  background: var(--ink);
  color: var(--on-ink);
}
.band--tint {
  background: var(--paper-2);
}
.band--ink + .band--ink {
  padding-top: 0;
}

/* Dot field. Sits behind ink bands so a flat navy never reads as an empty div. */
.band--ink::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 249, 240, 0.09) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  pointer-events: none;
}
.band > .wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-paper-dim);
  margin: 0 0 14px;
}
.band--ink .eyebrow {
  color: var(--yellow);
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--on-paper-dim);
  max-width: 44ch;
}
.band--ink .lede {
  color: var(--on-ink-dim);
}

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.section-head .lede {
  margin-top: 16px;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.brand img {
  width: 40px;
  height: 40px;
  flex: none;
}

.nav-wide {
  display: flex;
  gap: 26px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-wide a {
  text-decoration: none;
  color: var(--on-paper-dim);
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.nav-wide a:hover,
.nav-wide a.on {
  color: var(--ink);
  border-bottom-color: var(--yellow);
}

.menu-btn,
.menu {
  display: none;
}

@media (max-width: 860px) {
  .nav-wide {
    display: none;
  }
  .menu-btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: var(--bd);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--pop-sm);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
  }
  .menu-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
  }
  .menu-btn:active,
  .top.is-open .menu-btn {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
    background: var(--yellow);
  }
  .menu-btn__bars {
    display: grid;
    gap: 5px;
    width: 18px;
  }
  .menu-btn__bars span {
    display: block;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
    transition:
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.2s ease;
  }
  .top.is-open .menu-btn__bars span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .top.is-open .menu-btn__bars span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .top.is-open .menu-btn__bars span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .menu {
    display: grid;
    grid-template-rows: 0fr;
    background: var(--paper-2);
    border-bottom: 2px solid var(--ink);
    transition: grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .top.is-open .menu {
    grid-template-rows: 1fr;
  }
  .menu__clip {
    overflow: hidden;
    min-height: 0;
  }
  .menu__nav {
    display: flex;
    flex-direction: column;
    padding-block: 8px 18px;
  }
  .menu__nav a {
    display: block;
    font-family: Fredoka, sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--ink);
    padding: 14px 0;
    border-bottom: 2px solid var(--paper-3);
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 0.28s ease,
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.15s ease;
  }
  .menu__nav a:last-child {
    border-bottom: none;
  }
  .menu__nav a.on,
  .menu__nav a:hover {
    color: var(--ink);
  }
  .menu__nav a.on {
    box-shadow: inset 0 -6px 0 var(--yellow);
  }
  .top.is-open .menu__nav a {
    opacity: 1;
    transform: none;
  }
  .top.is-open .menu__nav a:nth-child(1) { transition-delay: 0.06s; }
  .top.is-open .menu__nav a:nth-child(2) { transition-delay: 0.1s; }
  .top.is-open .menu__nav a:nth-child(3) { transition-delay: 0.14s; }
  .top.is-open .menu__nav a:nth-child(4) { transition-delay: 0.18s; }
}
/* The header row is brand + CTA only by this width; keep both on one line on a
   360px phone rather than letting the button wrap under the wordmark. */
@media (max-width: 480px) {
  .top__in {
    gap: 12px;
    min-height: 64px;
  }
  .brand {
    font-size: 0.95rem;
    gap: 8px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .btn--sm {
    padding: 9px 14px;
    font-size: 0.82rem;
  }
  .strip__in {
    gap: 10px 26px;
  }
  .strip dt {
    font-size: 1.45rem;
  }
  .strip dd {
    font-size: 0.72rem;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 14px 24px;
  border: var(--bd);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--pop-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn--paper {
  background: var(--paper);
}
.btn--sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* Store chips. Deliberately not Google/Apple official badges — the game is not
   listed yet, so a real badge would be both wrong and a trademark problem. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 16px;
  border: var(--bd);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--pop-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.store:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
/* Not a link until the listings exist — hold it still so it does not invite a click. */
.store--soon,
.store--soon:hover {
  transform: none;
  box-shadow: var(--pop-sm);
  cursor: default;
  background: var(--paper-2);
}
.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store__text b {
  display: block;
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}
.store__text > span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-paper-dim);
}

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--on-ink);
  position: relative;
  overflow: clip;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding-block: clamp(16px, 2.4vh, 36px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 249, 240, 0.09) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
}
.hero__in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  margin: 4px 0 clamp(12px, 2vh, 22px);
  max-width: 16ch;
}
.hero .lede {
  color: var(--on-ink-dim);
  max-width: 36ch;
  margin: clamp(12px, 1.8vh, 20px) 0 18px;
}
.hero .stores {
  justify-content: center;
  margin-bottom: 14px;
}
.hero__note {
  font-size: 0.9rem;
  color: var(--on-ink-dim);
  margin: 0;
}

/* Frame PNG overlays a screenshot clipped to the real screen hole (rounded
   glass + Dynamic Island) so pixels cannot leak past the chassis. */
.phone {
  position: relative;
  margin: 0;
  width: min(100%, 720px);
  aspect-ratio: 3068 / 1520;
  flex: none;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.48));
}
.hero .phone {
  width: min(100%, 720px, calc(34svh * 3068 / 1520));
}
.phone__screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  -webkit-mask-image: url('/art/iphone-17-pro-max-landscape-mask.png');
  mask-image: url('/art/iphone-17-pro-max-landscape-mask.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.phone__screen img {
  position: absolute;
  left: calc(100 / 3068 * 100%);
  top: calc(100 / 1520 * 100%);
  width: calc(2868 / 3068 * 100%);
  height: calc(1320 / 1520 * 100%);
  object-fit: contain;
  object-position: center;
  display: block;
}
.phone__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 860px) {
  .phone {
    width: 100%;
  }
}
/* A screenshot inside a normal band, captioned underneath. */
.shot {
  margin: clamp(28px, 4vw, 40px) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.shot .phone {
  width: 100%;
}
.shot figcaption {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--on-paper-dim);
  font-size: 0.98rem;
}

/* Splats scattered behind the hero. Decorative only, hidden from a11y. */
.hero__deco {
  position: absolute;
  inset: 0;
  overflow: clip;
  z-index: 1;
}
.splat {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.splat--1 {
  width: 160px;
  top: 6%;
  right: -48px;
  transform: rotate(14deg);
}
.splat--2 {
  width: 150px;
  bottom: -40px;
  left: -46px;
  transform: rotate(-22deg);
}
@media (max-width: 860px) {
  .splat--1 {
    width: 110px;
    top: 2%;
  }
}


/* ---------- stat strip ---------- */

.strip {
  background: var(--yellow);
  border-block: 3px solid var(--ink);
  padding-block: 16px;
}
.strip__in {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  align-items: baseline;
  justify-content: center;
  text-align: center;
}
.strip dl {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
}
.strip dt {
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1;
}
.strip dd {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  counter-reset: step;
}
.step {
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r-lg);
  box-shadow: var(--pop);
  padding: 24px 22px 22px;
  position: relative;
}
.step__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}
.step h3 {
  margin-bottom: 10px;
}
.step p {
  color: var(--on-paper-dim);
  font-size: 0.98rem;
}
.step::after {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
}

/* ---------- levels ---------- */

.levels {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.level {
  border: var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--pop);
  display: flex;
  flex-direction: column;
}
.level img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: var(--bd);
}
.level__body {
  padding: 16px 18px 20px;
  flex: 1;
}
.level h3 {
  margin-bottom: 8px;
}
.level p {
  color: var(--on-paper-dim);
  font-size: 0.98rem;
}
.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 12px;
  background: var(--paper-2);
}
.chip--yellow {
  background: var(--yellow);
}
.chip--blue {
  background: var(--blue);
  color: var(--paper);
}
.chip--green {
  background: var(--green);
}

/* ---------- feature grid ---------- */

.feats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r-md);
  box-shadow: var(--pop-sm);
  padding: 16px 18px;
}
.feat img {
  width: 52px;
  height: 52px;
  flex: none;
}
.feat h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.feat p {
  font-size: 0.94rem;
  color: var(--on-paper-dim);
  margin: 0;
}

/* ---------- faq ---------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 780px;
}
.faq details {
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r-md);
  box-shadow: var(--pop-sm);
  padding: 14px 18px;
}
.faq summary {
  cursor: pointer;
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after {
  content: '\2013';
}
.faq details p {
  margin: 14px 0 0;
  color: var(--on-paper-dim);
  font-size: 0.98rem;
}

/* ---------- closing call ---------- */

.call {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.call .stores {
  justify-content: center;
}

/* ---------- footer ---------- */

footer {
  background: var(--ink);
  color: var(--on-ink-dim);
  border-top: 3px solid var(--ink);
  padding-block: 36px 32px;
  font-size: 0.92rem;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-ink);
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  text-decoration: none;
}
.foot__brand img {
  width: 40px;
  height: 40px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  color: var(--on-ink);
  text-decoration: underline;
}
.foot__legal {
  width: 100%;
  border-top: 1px solid var(--ink-3);
  padding-top: 22px;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------- prose pages ---------- */

.page-head {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(48px, 7vw, 84px);
  position: relative;
  overflow: clip;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 249, 240, 0.09) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
}
.page-head .wrap {
  position: relative;
  z-index: 1;
}
.page-head .eyebrow {
  color: var(--yellow);
}
.page-head .lede {
  color: var(--on-ink-dim);
  margin-top: 16px;
  max-width: 56ch;
}

.prose {
  max-width: 720px;
  padding-block: clamp(48px, 7vw, 80px);
}
.prose h2 {
  font-size: 1.55rem;
  margin: 2.4em 0 0.6em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 1.15rem;
  margin: 1.8em 0 0.5em;
}
.prose p,
.prose li {
  color: #3d445a;
}
.prose a {
  color: #0b6bb8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose ul {
  padding-left: 1.1em;
  display: grid;
  gap: 8px;
}
.prose strong {
  color: var(--on-paper);
}
.prose hr {
  border: none;
  border-top: 2px solid var(--paper-3);
  margin: 2.4em 0;
}

.paste {
  white-space: pre-wrap;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  padding: 22px 24px;
  font-family: ui-monospace, 'Cascadia Code', Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  overflow-x: auto;
}

.notice {
  background: var(--paper-2);
  border-left: 6px solid var(--yellow);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
}

/* ---------- 404 ---------- */

.oops {
  min-height: 66vh;
  display: grid;
  align-items: center;
  text-align: center;
  padding-block: clamp(70px, 12vw, 130px);
}
.oops .wrap {
  max-width: 660px;
}
.oops img {
  width: 150px;
  margin: 0 auto 26px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
