:root {
  color-scheme: light;
  --background: #fbf3e6;
  --background-soft: #fff8ee;
  --surface: #fffaf4;
  --surface-strong: #ffffff;
  --text: #2f241d;
  --muted: #6c5a4d;
  --accent: #9a5734;
  --accent-dark: #6d3b23;
  --border: #ead8c2;
  --shadow: 0 18px 45px rgba(75, 48, 31, 0.12);
  --focus: #4f8d78;
  --section-card-gap: clamp(24px, 3vw, 32px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 250, 244, 0.95), transparent 36rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-dark);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7.2vw, 5.35rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 6vw, 3.3rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

p {
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.site-header,
.site-footer,
.section,
.page-main {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img,
.hero-icon {
  border-radius: 22%;
  box-shadow: 0 8px 22px rgba(75, 48, 31, 0.16);
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-nav a,
.site-footer a {
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.section {
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  min-height: calc(100vh - 88px);
  padding-top: 40px;
}

.hero-copy {
  max-width: 720px;
}

.hero-icon {
  width: 78px;
  margin-bottom: 24px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-subheadline {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(1.12rem, 2.5vw, 1.35rem);
}

.app-store-link {
  display: inline-block;
  width: 180px;
  border-radius: 10px;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.device-shot {
  filter: drop-shadow(0 18px 32px rgba(75, 48, 31, 0.16));
}

.ipad-shot {
  width: min(78%, 520px);
  margin-left: auto;
}

.iphone-shot {
  position: absolute;
  right: min(62%, 360px);
  bottom: 16px;
  width: min(34%, 210px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.game-card,
.safety-section,
.final-cta,
.legal-page {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.82);
  box-shadow: 0 12px 30px rgba(75, 48, 31, 0.08);
}

.card {
  padding: 24px;
}

.card p,
.safety-section p,
.final-cta p {
  margin-bottom: 0;
}

.card p {
  font-size: 1.02rem;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  align-items: start;
  gap: 28px;
}

.split-section > div:first-child {
  max-width: 560px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
}

.screenshot-grid figure {
  min-width: 180px;
  margin: 0;
  scroll-snap-align: start;
}

.screenshot-grid img {
  filter: drop-shadow(0 12px 20px rgba(75, 48, 31, 0.11));
}

.screenshot-grid figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  overflow: hidden;
  background: var(--surface-strong);
}

.game-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3e7d8;
}

.game-media video,
.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.motion-poster {
  display: none;
}

.game-card-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.game-card-copy h3 {
  margin-bottom: 0;
}

.game-card-copy span {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 7px 10px;
  text-transform: uppercase;
}

.safety-section {
  padding: 34px;
}

.safety-section p {
  max-width: 780px;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: var(--section-card-gap);
  margin-bottom: 72px;
  padding: 34px;
  background: var(--surface);
}

.final-cta h2 {
  margin-bottom: 10px;
}

.final-cta .app-store-link {
  width: 198px;
  flex: 0 0 auto;
}

.page-main {
  padding: 52px 0 88px;
}

.legal-page {
  max-width: 760px;
  padding: clamp(28px, 5vw, 48px);
}

.legal-page h1 {
  margin-top: 18px;
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 8vw, 4rem);
}

.legal-page h2 {
  margin: 34px 0 10px;
  font-size: 1.28rem;
}

.legal-page p {
  margin-bottom: 0;
}

.updated,
.back-link {
  font-size: 0.96rem;
}

.updated {
  margin-bottom: 24px;
}

.back-link {
  display: inline-block;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
}

.site-footer p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.footer-brand {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 0;
  }

  .ipad-shot {
    width: min(82%, 560px);
    margin-inline: auto;
  }

  .iphone-shot {
    right: auto;
    left: 6%;
    bottom: -22px;
    width: min(30%, 190px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 54px 0;
  }

  .site-nav {
    gap: 10px 14px;
  }

  .hero-icon {
    width: 64px;
  }

  .hero-subheadline {
    font-size: 1.08rem;
  }

  .ipad-shot {
    width: 100%;
  }

  .iphone-shot {
    display: none;
  }

  .safety-section,
  .final-cta {
    padding: 24px;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) and (min-width: 641px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .game-media video {
    display: none;
  }

  .game-media .motion-poster {
    display: block;
  }
}
