/* Jayant Games — one stylesheet for the studio site.
   Layout: a single centred column (max 1080px); each game gets a full-width
   band in its own colours; game and policy pages reuse the same parts. */
:root {
  --paper: #fbf6ef;
  --surface: #ffffff;
  --ink: #1d1830;
  --muted: #6b6480;
  --line: #e9dfd2;
  --coral: #e23d63;
  --mint: #148f77;
  --gold: #f4b321;

  /* Zip Out's band */
  --zo-top: #fff4e6;
  --zo-bottom: #ffd9c4;
  --zo-ink: #2b2140;
  --zo-accent: #e23d63;

  /* Hard Deck's band (dark in both themes: it is a night sky) */
  --hd-top: #0a1530;
  --hd-bottom: #3a2246;
  --hd-ink: #f4f1ea;
  --hd-muted: #b8b6c8;
  --hd-gold: #ffc94a;

  --display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --jet: "Archivo", "Arial Black", system-ui, sans-serif;
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141022;
    --surface: #1e1832;
    --ink: #f4efff;
    --muted: #b1a8c8;
    --line: #2f2749;
    --coral: #ff7a98;
    --mint: #4fe0c2;
    --gold: #ffc94a;
    --zo-top: #2a1f3f;
    --zo-bottom: #432542;
    --zo-ink: #fff1f4;
    --zo-accent: #ff8fab;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--coral); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ── header ─────────────────────────────────────────────── */
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 21px var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--coral); }

/* ── hero ───────────────────────────────────────────────── */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 40px 64px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero p.lede { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 18px 0 26px; }
.promises { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.promises li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; }
.hero-art { position: relative; min-height: 440px; }
.hero-art .phone { position: absolute; width: 46%; }
.hero-art .phone:first-child { left: 6%; top: 0; transform: rotate(-6deg); z-index: 2; }
.hero-art .phone:last-child { right: 4%; top: 40px; transform: rotate(5deg); }

/* A capture in a dark device frame. */
.phone { background: #111018; padding: 7px; border-radius: 34px; box-shadow: 0 24px 50px -18px rgba(20, 10, 40, 0.45); }
.phone img { border-radius: 27px; width: 100%; height: auto; aspect-ratio: 1320 / 2868; object-fit: cover; }

/* ── game bands ─────────────────────────────────────────── */
.game { padding-block: 72px; }
.game .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; align-items: center; }
.game-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.game-head img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.4); }
.game h2 { font-size: clamp(34px, 5vw, 48px); }
.game .tagline { margin: 4px 0 0; font-weight: 700; }
.game ul.features { padding: 0; margin: 18px 0 24px; list-style: none; display: grid; gap: 10px; }
.game ul.features li { padding-left: 30px; position: relative; }
.game ul.features li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px; transform: rotate(45deg); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shots .phone:nth-child(2) { transform: translateY(-22px); }

.game.zip-out { background: linear-gradient(180deg, var(--zo-top), var(--zo-bottom)); color: var(--zo-ink); }
.game.zip-out .tagline { color: var(--zo-accent); }
.game.zip-out ul.features li::before { background: var(--zo-accent); }

.game.hard-deck { background: linear-gradient(180deg, var(--hd-top), var(--hd-bottom)); color: var(--hd-ink); }
.game.hard-deck h2 { font-family: var(--jet); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; }
.game.hard-deck .tagline { color: var(--hd-gold); font-family: var(--jet); font-style: italic; text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px; }
.game.hard-deck p { color: var(--hd-muted); }
.game.hard-deck ul.features li::before { background: var(--hd-gold); }
.game.hard-deck a.more { color: var(--hd-gold); }
.game.hard-deck .wrap > :first-child { order: 2; }

/* ── store buttons ──────────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: #111018; color: #fff; border-radius: 14px; padding: 9px 16px; min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; letter-spacing: 0.04em; opacity: 0.8; }
.store b { font-size: 17px; }
.store.soon { opacity: 0.55; cursor: default; }
.more-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-weight: 700; font-size: 15px; }

/* ── studio + contact ───────────────────────────────────── */
.section { padding-block: 72px; }
.section h2 { font-size: clamp(30px, 4.4vw, 42px); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card h3 { font-size: 21px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 24px; }
.contact-box p { margin: 0; color: var(--muted); max-width: 52ch; }
.email { font: 700 20px var(--display); color: var(--coral); text-decoration: none; overflow-wrap: anywhere; }

/* ── game and policy pages ──────────────────────────────── */
.page-hero { padding-block: 40px 56px; }
.page-hero .feature { border-radius: var(--radius); width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; margin-bottom: 28px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 56px); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 26px; margin: 40px 0 10px; }
.prose h3 { font-size: 19px; margin: 24px 0 4px; font-family: var(--body); font-weight: 800; letter-spacing: 0; }
.prose p, .prose li { color: var(--ink); }
.prose .meta { color: var(--muted); }
.faq { display: grid; gap: 12px; margin-top: 16px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.policy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px clamp(20px, 4vw, 44px); margin-block: 32px 64px; }
.policy h1 { font-size: clamp(30px, 5vw, 42px); }
.policy h2 { font-family: var(--body); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin: 30px 0 6px; }

body.hard-deck-page { --coral: #b07a00; }
@media (prefers-color-scheme: dark) { body.hard-deck-page { --coral: #ffc94a; } }
body.hard-deck-page .page-hero h1 { font-family: var(--jet); font-style: italic; font-weight: 900; text-transform: uppercase; }

/* ── footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); }

/* ── narrow screens ─────────────────────────────────────── */
@media (max-width: 820px) {
  .hero .wrap, .game .wrap { grid-template-columns: minmax(0, 1fr); }
  .game.hard-deck .wrap > :first-child { order: 0; }
  .hero-art { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hero-art .phone { position: static; width: auto; transform: none !important; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .shots .phone:nth-child(2) { transform: none; }
  .game, .section { padding-block: 52px; }
}
