/* Slipup's colors, the same as the app's Palette. */
:root {
  --sunny: #FFD23F;
  --sunny-ink: #2A1F00;
  --ultra: #6B4EFF;
  --buzz: #FF3D3D;
  --buzz-ink: #B3141A;
  --paper: #FFF8EC;
  --muted: #6B6558;
  --ink: #15130F;
  --display: "Anton", "Impact", sans-serif;
  --body: ui-rounded, "Nunito", system-ui, sans-serif;
  --page: min(1120px, 100% - 32px);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.page { width: var(--page); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
}

/* Header: a pill that floats over every section. */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  width: var(--page);
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(21, 19, 15, 0.08);
}
.wordmark {
  font-family: var(--display);
  font-size: 26px;
  text-decoration: none;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark img { width: 30px; height: 30px; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}
.site-header nav a:hover { background: rgba(21, 19, 15, 0.06); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--sunny);
  font-weight: 800;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .site-header nav { display: none; }
}
@media (max-width: 420px) {
  .site-header .pill { display: none; }
}

/* Phones: a dark bezel around a screenshot. */
.phone {
  aspect-ratio: 1206 / 2622;
  border: 9px solid var(--ink);
  border-radius: 46px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 60px rgba(21, 19, 15, 0.22);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero {
  background: var(--sunny);
  color: var(--sunny-ink);
  margin-top: -84px;
  padding: 140px 0 72px;
  overflow: hidden;
}
.hero .page {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(56px, 7.4vw, 100px);
  color: var(--ink);
}
.hero p { font-size: 21px; max-width: 36ch; margin: 24px 0 32px; }
.hero .pill { font-size: 17px; padding: 14px 24px; }
.hero-art { position: relative; height: 600px; }
.hero-art .phone { position: absolute; width: 250px; }
.hero-art .front { left: 40%; top: 20px; transform: rotate(5deg); z-index: 2; }
.hero-art .back { left: 0; top: 70px; transform: rotate(-7deg); }
.word-card {
  position: absolute;
  z-index: 3;
  left: -12%;
  bottom: 24px;
  width: 170px;
  padding: 18px 0 14px;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(21, 19, 15, 0.18);
  text-align: center;
  transform: rotate(-4deg);
}
.word-card strong { font-family: var(--display); font-weight: 400; font-size: 40px; display: block; line-height: 1.1; }
.word-card hr { border: 0; height: 1.5px; background: rgba(21, 19, 15, 0.12); margin: 8px 22px 6px; }
.word-card span { display: block; color: var(--muted); font-size: 16px; line-height: 1.45; }
@media (max-width: 900px) {
  .hero .page { grid-template-columns: 1fr; }
  .hero-art { height: 520px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-art .phone { width: 210px; }
}
@media (max-width: 420px) {
  .hero-art { height: 450px; }
  .hero-art .phone { width: 180px; }
  .word-card { width: 140px; }
  .word-card strong { font-size: 32px; }
  .word-card span { font-size: 14px; }
}

/* Section basics */
section { padding: 96px 0; }
.eyebrow {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.section-title { font-size: clamp(48px, 7vw, 84px); max-width: 14ch; }

/* The story: captions scroll past a phone that stays put and changes screens. */
.story .page { display: grid; grid-template-columns: 1fr 320px; gap: 64px; }
.story .intro { grid-column: 1 / -1; margin-bottom: 24px; }
.beats { display: grid; gap: 0; }
.beat { min-height: min(72vh, 620px); display: flex; flex-direction: column; justify-content: center; }
.beat h3 { font-size: clamp(40px, 5vw, 60px); }
.beat p { color: var(--muted); font-size: 20px; max-width: 32ch; margin: 16px 0 0; }
.beat .phone { display: none; }
.story-phone { position: sticky; top: clamp(96px, calc(50vh - 330px), 200px); height: 660px; align-self: start; }
.story-phone .phone { position: relative; width: 300px; }
.story-phone img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease; }
.story-phone img.on { opacity: 1; }
@media (max-width: 900px) {
  .story .page { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .beat { min-height: 0; padding: 40px 0; }
  .beat .phone { display: block; width: min(280px, 72vw); margin: 28px auto 0; }
}

/* How to play: the doodles from the app. */
.steps { background: #fff; }
.step-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 48px; margin-top: 56px; }
.step img { aspect-ratio: 2 / 1; object-fit: contain; width: 100%; }
.step h3 { font-size: 38px; margin-top: 20px; }
.step p { color: var(--muted); margin: 10px 0 0; max-width: 34ch; }
@media (max-width: 720px) { .step-grid { grid-template-columns: 1fr; } }

/* Twists: black, like the twist card in the game. */
.twists { background: var(--ink); color: #fff; }
.twists .eyebrow { color: var(--sunny); }
.twists p.lead { color: rgba(255, 255, 255, 0.72); font-size: 20px; max-width: 40ch; margin: 20px 0 0; }
.twist-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.twist-list span {
  font-family: var(--display);
  font-size: 28px;
  padding: 10px 22px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}
.twist-list span:nth-child(3n + 1) { transform: rotate(-2deg); }
.twist-list span:nth-child(3n + 2) { transform: rotate(1.5deg); }

/* Privacy */
.privacy-band { background: var(--ultra); color: #fff; }
.privacy-band .page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.privacy-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; font-size: 20px; }
.privacy-band li { display: flex; gap: 14px; align-items: flex-start; }
.privacy-band li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--sunny);
}
.privacy-band a { font-weight: 800; }
@media (max-width: 800px) { .privacy-band .page { grid-template-columns: 1fr; } }

/* Closing call */
.closing { background: var(--sunny); text-align: center; color: var(--sunny-ink); }
.closing img { width: 112px; margin: 0 auto 28px; }
.closing h2 { font-size: clamp(72px, 12vw, 150px); color: var(--ink); }
.closing p { font-size: 21px; margin: 18px auto 32px; max-width: 30ch; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer .page { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer .brand { font-family: var(--display); font-size: 22px; color: var(--ink); margin-right: auto; }
footer a { text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--ink); }

/* Gentle entrances as things scroll in. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .story-phone img { transition: none; }
}

/* Policy and support pages */
.doc { width: min(720px, 100% - 32px); margin: 0 auto; padding: 72px 0 40px; }
.doc h1 { font-size: clamp(56px, 10vw, 88px); }
.doc .updated { color: var(--muted); margin: 12px 0 40px; }
.doc h2 { font-family: var(--body); font-weight: 800; font-size: 22px; line-height: 1.3; margin: 36px 0 8px; }
.doc p { color: var(--muted); margin: 0 0 12px; }
.doc p.lead { color: var(--ink); }
