/* NUKEEZ website. Plain CSS, no build step.
   Colours are the game's own (ui/UiKit.gd); the font is the game's (Fredoka, SIL OFL 1.1). */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #291f38;
  --ink-soft: #544868;
  --cream: #fff7e6;
  --paper: #fffbf0;
  --sun: #ffd147;
  --red: #ff544d;
  --sky: #73c7ff;
  --mint: #80e68c;
  --tangerine: #ff9947;
  --grape: #bd8cff;
  --bubblegum: #ff80ad;
  --dough: #edad61;

  --tint-sky: #e3f4ff;
  --tint-mint: #e4f9e6;
  --tint-sun: #fff3cc;
  --tint-gum: #ffe6ef;
  --tint-grape: #f1e8ff;
  --tint-tan: #ffead6;

  --radius: 28px;
  --line: 4px;
  --drop: 0 7px 0 rgba(41, 31, 56, 0.16);
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

/* the top of every page is the title screen's sky, fading into cream */
body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 80% 420px at 50% 0, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #b9e4ff 0, #dff3ff 360px, var(--cream) 720px);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-weight: 700;
  text-wrap: balance;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--bubblegum);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--ink); background: var(--tint-sun); }

:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 10;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 18px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--narrow { max-width: 780px; }

/* ── header ─────────────────────────────────────────────────────────── */
.site-header { position: relative; z-index: 2; }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 16px;
}
.brand:hover { background: none; }
.brand img {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 3px solid var(--ink);
}
.brand .wordmark { font-size: 1.6rem; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
}
.site-nav a:hover { background: var(--sun); }
.site-nav a[aria-current="page"] { background: var(--sky); }

/* ── the logo: the title screen's candy letters with a thick ink outline ── */
.logo {
  display: inline-flex;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  filter: drop-shadow(0 0.06em 0 rgba(26, 15, 36, 0.4));
}
.logo span {
  display: inline-block;
  -webkit-text-stroke: 0.17em var(--ink);
  paint-order: stroke fill;
}
.logo span:nth-child(1) { color: var(--sun); }
.logo span:nth-child(2) { color: var(--bubblegum); }
.logo span:nth-child(3) { color: var(--sky); }
.logo span:nth-child(4) { color: var(--mint); }
.logo span:nth-child(5) { color: var(--tangerine); }
.logo span:nth-child(6) { color: var(--grape); }
.logo span:nth-child(7) { color: var(--sun); }
.wordmark { font-size: 1.6rem; }
.wordmark span { -webkit-text-stroke-width: 0.2em; }

.logo--bounce span { animation: bob 2.4s ease-in-out infinite; }
.logo--bounce span:nth-child(2) { animation-delay: -0.21s; }
.logo--bounce span:nth-child(3) { animation-delay: -0.42s; }
.logo--bounce span:nth-child(4) { animation-delay: -0.63s; }
.logo--bounce span:nth-child(5) { animation-delay: -0.84s; }
.logo--bounce span:nth-child(6) { animation-delay: -1.05s; }
.logo--bounce span:nth-child(7) { animation-delay: -1.26s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-0.07em) rotate(-2deg); }
  50% { transform: translateY(0) rotate(0deg) scale(1.03, 0.95); }
  75% { transform: translateY(-0.04em) rotate(2deg); }
}

/* ── buttons: chunky, like the game's ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 26px;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--sun);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { background: var(--sun); transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn--sky { background: var(--sky); }
.btn--sky:hover { background: var(--sky); }
.btn--gum { background: var(--bubblegum); }
.btn--gum:hover { background: var(--bubblegum); }
.btn--mint { background: var(--mint); }
.btn--mint:hover { background: var(--mint); }
.btn--small { min-height: 44px; padding: 6px 18px; font-size: 0.95rem; box-shadow: 0 4px 0 var(--ink); }

/* The App Store badge's slot. Until the real Apple badge goes in, it's a plain
   "coming soon" pill that doesn't imitate Apple's artwork. See README.md. */
.store-slot {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 22px 8px 12px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}
.store-slot img { width: 40px; height: 40px; border-radius: 10px; }
.store-slot small { display: block; font-weight: 400; font-size: 0.85rem; opacity: 0.85; }
.store-slot strong { font-size: 1.1rem; }
/* the real badge, once it's in: Apple asks for clear space of a quarter of its height */
.store-badge { display: inline-block; padding: 0; line-height: 0; border-radius: 10px; }
.store-badge:hover { background: none; }
.store-badge img { height: 54px; width: auto; }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
  padding-top: 8px;
  text-align: center;
}
.hero h1 { margin: 0.1em 0 0.25em; }
.hero .logo { font-size: clamp(2.5rem, 19vw, 9.5rem); }
.tagline {
  font-size: clamp(1.5rem, 5.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 22em;
  margin: 0 auto 0.5em;
}
.tagline span { display: block; text-wrap: balance; }
.lede {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  max-width: 36em;
  margin: 0 auto 1.4em;
  color: var(--ink-soft);
}
.lede strong { color: var(--ink); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  margin: 0 0 12px;
}
.price-note { font-weight: 600; margin: 0; }
.price-note span { color: var(--ink-soft); font-weight: 400; }

.hero-art {
  margin: 36px auto 0;
  max-width: 980px;
  position: relative;
}
.hero-art picture,
.hero-art > img {
  border: 5px solid var(--ink);
  border-radius: clamp(22px, 4vw, 40px);
  overflow: hidden;
  box-shadow: 0 10px 0 rgba(41, 31, 56, 0.18);
  background: #cfeaff;
}
.hero-art img { width: 100%; aspect-ratio: 2064 / 1128; object-fit: cover; }
.hero-art figcaption {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* ── sections ───────────────────────────────────────────────────────── */
.section { padding: clamp(48px, 9vw, 96px) 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto clamp(28px, 5vw, 48px); }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; margin: 0; }
.band {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0 18px, rgba(255, 255, 255, 0) 18px 36px),
    #ffe3bd;
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
}

/* ── feature cards ──────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.card {
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--drop);
  padding: 24px;
  margin: 0;
}
.feature {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 4px 18px;
  align-items: start;
}
.feature h3 { margin-top: 6px; }
.feature p { margin: 0; grid-column: 1 / -1; }
@media (min-width: 480px) {
  .feature p { grid-column: 2; }
}
.feature .sticker {
  width: 84px; height: 84px;
  grid-row: span 2;
}
.feature--sky { background: var(--tint-sky); }
.feature--mint { background: var(--tint-mint); }
.feature--sun { background: var(--tint-sun); }
.feature--gum { background: var(--tint-gum); }

.sticker {
  border: var(--line) solid var(--ink);
  border-radius: 26%;
  overflow: hidden;
  transform: rotate(-4deg);
  box-shadow: 0 5px 0 rgba(41, 31, 56, 0.18);
  background: var(--paper);
  flex: none;
}
.sticker img { width: 100%; height: 100%; object-fit: cover; }
.sticker--tilt { transform: rotate(4deg); }

.big-number {
  font-weight: 700;
  font-size: 1.05em;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 0 8px;
  white-space: nowrap;
}

/* ── screenshot strip ───────────────────────────────────────────────── */
.strip {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 8px var(--gutter) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.strip:focus-visible { outline-offset: -6px; border-radius: 20px; }
.strip li { margin: 0; flex: none; scroll-snap-align: start; }
@media (min-width: 1140px) {
  .strip { justify-content: safe center; }
}
.shot { margin: 0; width: clamp(196px, 58vw, 250px); }
.shot picture,
.phone {
  border: 6px solid var(--ink);
  border-radius: 34px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 8px 0 rgba(41, 31, 56, 0.18);
}
.shot img { width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; }
.shot figcaption {
  font-weight: 600;
  text-align: center;
  margin-top: 14px;
  line-height: 1.3;
}
.strip-hint { text-align: center; color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ── the closing call ───────────────────────────────────────────────── */
.closer {
  display: grid;
  gap: 22px;
  align-items: center;
  justify-items: center;
  text-align: center;
  background: var(--tint-grape);
  padding: clamp(28px, 5vw, 48px);
}
.closer .app-icon {
  width: 120px; height: 120px;
  border-radius: 28px;
  border: var(--line) solid var(--ink);
  box-shadow: var(--drop);
}
.closer h2 { margin-bottom: 0.25em; }
.closer p { margin: 0 auto; max-width: 32em; }
@media (min-width: 760px) {
  .closer { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; }
  .closer p { margin: 0; }
}

.promise {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.promise li {
  margin: 0;
  padding: 4px 14px;
  font-weight: 600;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
}

/* ── document pages (privacy, support, press) ───────────────────────── */
.page-hero {
  padding: 24px 0 36px;
}
.page-hero h1 { font-size: clamp(2.25rem, 8vw, 3.5rem); margin-bottom: 0.2em; }
.page-hero p { font-size: 1.2rem; color: var(--ink-soft); margin: 0; max-width: 34em; }
.page-hero .meta { font-size: 1rem; margin-top: 12px; color: var(--ink); }
.page-hero-row { display: flex; align-items: center; gap: 22px; }
.page-hero-row .sticker { width: 96px; height: 96px; }
@media (max-width: 520px) {
  .page-hero-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-hero-row .sticker { width: 76px; height: 76px; }
}

.doc { padding: 12px 0 72px; }
.doc h2 {
  font-size: clamp(1.45rem, 4.4vw, 1.85rem);
  margin-top: 1.8em;
  scroll-margin-top: 16px;
}
.doc .wrap > h2:first-child { margin-top: 0.4em; }
.doc h3 { font-size: 1.2rem; margin-top: 1.4em; }
.doc p, .doc li { max-width: 40em; }

.summary {
  background: var(--tint-mint);
  margin: 8px 0 12px;
}
.summary h2 { margin-top: 0; }
.summary ul { list-style: none; padding: 0; margin: 0; }
.summary li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 10px;
  font-weight: 500;
}
.summary li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em;
  width: 24px; height: 24px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset 0 -4px 0 rgba(41, 31, 56, 0.15);
}
.summary li:last-child { margin-bottom: 0; }

.toc {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 16px 22px;
  margin: 24px 0 8px;
}
.toc h2 { font-size: 1.1rem; margin: 0 0 8px; }
.toc ol { margin: 0; columns: 2 14em; column-gap: 28px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }

.note {
  background: var(--tint-sun);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 14px 20px;
  margin: 1.2em 0;
}
.note p:last-child { margin-bottom: 0; }

.path {
  font-weight: 600;
  white-space: nowrap;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 6px;
}
.ui {
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── support: contact + FAQ ─────────────────────────────────────────── */
.contact-card {
  display: grid;
  gap: 18px;
  background: var(--tint-sky);
  margin: 8px 0 8px;
}
.contact-card h2 { margin: 0; }
.contact-card p { margin: 0; }
.contact-card .email { font-size: clamp(1.25rem, 5vw, 1.6rem); font-weight: 700; word-break: break-all; }
@media (min-width: 700px) {
  .contact-card { grid-template-columns: 1fr auto; align-items: center; }
}

.faq-group { margin-top: 2.2em; }
.faq-group > h2 { margin-bottom: 0.6em; }
.faq details {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 0 rgba(41, 31, 56, 0.12);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 56px 14px 20px;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
  position: relative;
  border-radius: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 14px; top: 50%;
  width: 32px; height: 32px;
  margin-top: -16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.faq details[open] summary::after { content: "\2013"; background: var(--sky); }
.faq summary:hover { background: var(--tint-sun); }
.faq .answer { padding: 0 20px 6px; }
.faq .answer > :first-child { margin-top: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 12px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.dial {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
}
.dial li {
  margin: 0;
  padding: 10px 16px;
  border: 3px solid var(--ink);
  border-radius: 16px;
}
.dial li:nth-child(1) { background: var(--tint-mint); }
.dial li:nth-child(2) { background: var(--tint-sun); }
.dial li:nth-child(3) { background: var(--tint-gum); }
.dial strong { display: block; font-weight: 700; }

/* ── press ──────────────────────────────────────────────────────────── */
.facts {
  display: grid;
  grid-template-columns: minmax(7em, auto) 1fr;
  gap: 0;
  margin: 0;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
}
.facts dt, .facts dd {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 2px solid rgba(41, 31, 56, 0.14);
}
.facts dt { font-weight: 700; background: var(--tint-sun); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }

.todo {
  background: #fff0a8;
  border: 2px dashed var(--ink);
  border-radius: 8px;
  padding: 0 6px;
  font-weight: 600;
}

.quote-block {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 18px 22px;
  margin: 0 0 1em;
}
.quote-block p:last-child { margin-bottom: 0; }

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
}
.downloads li { margin: 0; }
.download {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 14px 16px;
  text-decoration: none;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 4px 0 rgba(41, 31, 56, 0.14);
}
.download:hover { background: var(--tint-sun); }
.download img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; flex: none; }
.download strong { display: block; font-weight: 700; }
.download span { display: block; font-weight: 400; font-size: 0.95rem; color: var(--ink-soft); }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 22px;
  list-style: none;
  padding: 0;
}
.shot-grid li { margin: 0; }
.shot-grid .shot { width: auto; }
.shot-grid .shot picture { border-width: 5px; border-radius: 26px; }
.shot-grid figcaption { font-size: 1rem; margin-top: 10px; }
.shot-links { display: flex; justify-content: center; gap: 8px; margin-top: 8px; font-size: 0.95rem; }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 40px 0 48px;
  margin-top: 0;
}
.site-footer a { color: var(--cream); text-decoration-color: var(--sun); }
.site-footer a:hover { background: rgba(255, 255, 255, 0.12); text-decoration-color: var(--cream); }
.site-footer :focus-visible { outline-color: var(--sun); }
.site-footer .wrap { display: grid; gap: 18px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin: 0; }
.site-footer .wordmark { font-size: 1.8rem; }
.site-footer .wordmark span { -webkit-text-stroke-color: #120b1c; }
.site-footer p { margin: 0; font-size: 0.95rem; color: #e9e1f2; }

/* ── 404 ────────────────────────────────────────────────────────────── */
.lost { text-align: center; padding: 40px 0 80px; min-height: 62vh; }
.lost .sticker { width: 140px; height: 140px; margin: 0 auto 24px; }
.lost p { max-width: 30em; margin: 0 auto 1.4em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .skip-link, .strip-hint { display: none; }
  body { background: #fff; }
  .faq details { break-inside: avoid; }
}
