/* ==========================================================================
   What's Next - shared stylesheet
   Plain CSS. No build step, no JavaScript. Dark canvas, full-colour blocks.
   ========================================================================== */

:root {
  --paper:     #FAF4E9;
  --ink:       #241F1A;
  --white:     #FFFFFF;
  --softfill:  #F0E7D8;

  --coral:     #FF6B4A;
  --on-coral:  #3A1408;
  --mint:      #7FD1AE;
  --on-mint:   #0F3B2C;
  --butter:    #FFC85C;
  --on-butter: #3E2A00;
  --lilac:     #B9A8F0;
  --on-lilac:  #241338;

  /* flat ink tint used to keep hero type legible on the photo */
  --scrim:     rgba(36, 31, 26, 0.66);

  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-pill: 999px;

  --gap: 16px;
  --page-pad: 16px;
  /* display face, matching the wordmark in the app icon */
  --display: "Nunito", "Trebuchet MS", system-ui, sans-serif;

  --max: 1180px;
}

/* --------------------------------------------------------------- reset -- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------------------------------------------------------- typography -- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

h1 { font-size: clamp(2.6rem, 11vw, 5.8rem); }
h2 { font-size: clamp(2.6rem, 10.5vw, 5rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; line-height: 1.1; letter-spacing: -0.025em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 4px; }

a:focus-visible,
button:focus-visible {
  outline: 4px solid currentColor;
  outline-offset: 4px;
  border-radius: 6px;
}

strong { font-weight: 600; }

.lead {
  font-size: clamp(1.2rem, 4.6vw, 1.7rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 20ch;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 14px;
  line-height: 1.2;
}

.note {
  max-width: 40ch;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}

/* --------------------------------------------------------------- layout -- */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.panel {
  border-radius: var(--radius-lg);
  padding: 48px 24px;
}

.panel--coral  { background: var(--coral);  color: var(--on-coral); }
.panel--mint   { background: var(--mint);   color: var(--on-mint); }
.panel--butter { background: var(--butter); color: var(--on-butter); }
.panel--lilac  { background: var(--lilac);  color: var(--on-lilac); }
.panel--paper  { background: var(--paper);  color: var(--ink); }
.panel--soft   { background: var(--softfill); color: var(--ink); }

/* ----------------------------------------------------------------- hero -- */

/* Full-bleed: the hero lives outside .page and spans the whole viewport.
   Its inner column is aligned with the padded panels below. */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  z-index: -1;
}

.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 80vh;
  padding: 40px 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
}

.hero__logo {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.hero__tag {
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--butter);
  margin: 0 0 14px;
}

/* Title case, like the wordmark: only the W and the N are capitals.
   Nunito 900 plus a hairline stroke in the same colour gives the fat,
   rounded weight of the app icon. */
.hero h1 {
  margin-bottom: 20px;
  color: var(--paper);
  font-weight: 900;
  letter-spacing: -0.045em;
  -webkit-text-stroke: 0.022em var(--paper);
}

/* Perfectly round full stop, like the one in the app icon. */
.dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--coral);
  vertical-align: baseline;
}

.hero .lead { color: var(--paper); }

.hero__facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__facts li {
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero__facts li:nth-child(1) { background: var(--coral);  color: var(--on-coral); }
.hero__facts li:nth-child(2) { background: var(--mint);   color: var(--on-mint); }
.hero__facts li:nth-child(3) { background: var(--butter); color: var(--on-butter); }
.hero__facts li:nth-child(4) { background: var(--lilac);  color: var(--on-lilac); }

/* -------------------------------------------------------------- buttons -- */

.actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  padding: 22px 38px;
  border-radius: var(--radius-pill);
  border: 4px solid currentColor;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.btn--solid {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn[disabled],
.btn--disabled {
  cursor: not-allowed;
  background: transparent;
  color: inherit;
  border-style: dashed;
}

.btn-note {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------------------------------------------------------------- steps -- */

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 30px;
}

.step__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 4rem;
  line-height: 0.85;
  letter-spacing: -0.05em;
  display: block;
  margin-bottom: 12px;
}

.step h3 { margin-bottom: 6px; }
.step p { font-size: 1rem; margin: 0; max-width: 26ch; }

/* ---------------------------------------------------------------- games -- */

.games-head { padding: 0; }

.games-grid {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.game {
  border-radius: var(--radius-md);
  padding: 20px 18px;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Fixed pair per game: background plus its own text colour. */
.game--coral  { background: var(--coral);  color: var(--on-coral); }
.game--mint   { background: var(--mint);   color: var(--on-mint); }
.game--butter { background: var(--butter); color: var(--on-butter); }
.game--lilac  { background: var(--lilac);  color: var(--on-lilac); }
.game--ink    { background: var(--ink);    color: var(--paper); }

.game h3 { margin: 0; }

.game__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.players { opacity: 0.75; }

/* Ink is set explicitly: on the dark cards the label would otherwise
   inherit paper text on a white pill. */
.tag--free {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
}

/* ---------------------------------------------------------------- icons -- */

.sprite { display: none; }

/* The sprite symbols carry their own stroke, width and caps, all in
   currentColor, so each icon inherits the dark text colour of its card. */
.ico {
  width: 38px;
  height: 38px;
  display: block;
  color: inherit;
}

/* ------------------------------------------------------------- versions -- */

.versions {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.version {
  border-radius: var(--radius-md);
  padding: 30px 26px;
  background: var(--paper);
  color: var(--ink);
}

.version--full {
  background: var(--ink);
  color: var(--paper);
}

.version h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.version__price {
  font-family: var(--display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
}

.version__price-note {
  font-size: 0.88rem;
  margin: 0 0 22px;
  font-weight: 500;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 1rem;
}

.ticks li {
  padding-left: 26px;
  position: relative;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

.ticks--outline li::before {
  background: transparent;
  border: 4px solid currentColor;
}

/* ------------------------------------------------------------ languages -- */

.langs {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.langs li {
  border: 3px solid currentColor;
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------ cta strip -- */

.cta { text-align: center; }
.cta h2 { margin-bottom: 14px; }
.cta .note { margin: 0 auto; }
.cta .actions { justify-content: center; }

.cta__logo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  margin: 0 auto 24px;
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
  border-radius: var(--radius-lg);
  padding: 48px 24px 34px;
  color: var(--paper);
}

.site-footer__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.site-footer__logo {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  flex: none;
}

.site-footer__brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
}

.site-footer__links {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-weight: 600;
}

.site-footer__small {
  margin-top: 26px;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.7;
}

/* --------------------------------------------------------- privacy page -- */

.doc { max-width: 68ch; }

.doc h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  text-transform: none;
}

.doc h3 {
  margin-top: 42px;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.doc ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.doc li { margin-bottom: 6px; }

.doc p { font-weight: 400; }

.updated {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.callout {
  background: var(--butter);
  color: var(--on-butter);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  margin: 44px 0 0;
}

.callout h3 { margin-top: 0; }

.back-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.doc-header__logo {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  margin-bottom: 22px;
}

/* ----------------------------------------------------------- responsive -- */

@media (min-width: 600px) {
  :root { --page-pad: 24px; --gap: 20px; }

  .panel { padding: 72px 48px; }

  .site-footer { padding: 72px 48px 48px; }

  .hero__inner { min-height: 76vh; padding: 48px 72px 56px; }
  .hero__logo { width: 84px; height: 84px; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .versions { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  :root { --page-pad: 32px; }

  body { font-size: 18px; }

  .panel { padding: 100px 68px; }

  .site-footer { padding: 88px 68px 60px; }

  .hero__inner { min-height: 660px; padding: 64px 100px 76px; }
  .hero__logo { width: 100px; height: 100px; margin-bottom: 24px; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .games-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .game { min-height: 182px; padding: 24px 22px; }

}
