/* Colours from the app's Theme (SlurpOut/UI/Theme.swift). Light pages look like the game's cream
   cards with brown text; dark pages like its indigo screens with cream text. Red and gold accents. */
:root {
  --bg: #FFF6E6;                       /* Theme.cream */
  --glow: rgba(243, 180, 80, 0.22);    /* Theme.gold, a warm broth glow behind the hero */
  --card: #FFFBF4;
  --ink: #2A1D10;                      /* text on the game's cream cards */
  --ink2: #6A4F32;                     /* Theme.quietText */
  --ink3: #7A6448;                     /* the app's #8A7458 link brown, a shade darker for contrast */
  --line: rgba(42, 29, 16, 0.12);
  --link: #C7331F;                     /* the classic bowl's rim */
  --link-hover: #8E1B10;               /* the tier badge on red */
  --logo: #E8452C;                     /* Theme.red */
  --logo-edge: #8E1B10;
  --button: #E8452C;                   /* Theme.red, the chunky Play button */
  --on-button: #FFFFFF;
  --quiet: #EADBC0;                    /* Theme.quietButton */
  --shadow: rgba(42, 29, 16, 0.18);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1D1838;                     /* Theme.indigo */
    --glow: #2C2558;                   /* Theme.indigoLift */
    --card: #2C2558;
    --ink: #FFF6E6;                    /* Theme.cream */
    --ink2: rgba(255, 246, 230, 0.85); /* body text at the app's 0.85 opacity */
    --ink3: #B9B2DA;                   /* Theme.muted */
    --line: rgba(255, 246, 230, 0.12);
    --link: #F3B450;                   /* Theme.gold */
    --link-hover: #FFF6E6;
    --logo: #FFF6E6;
    --logo-edge: #E8452C;
    --quiet: #2C2558;
    --shadow: rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 90% 520px at 50% 0, var(--glow), transparent);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 17px/1.55 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 800; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.hero { text-align: center; padding: 72px 0 40px; }
.hero-icon { width: 128px; height: 128px; border-radius: 22.37%; box-shadow: 0 12px 32px var(--shadow); }
.hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  margin: 24px 0 8px;
  letter-spacing: -0.01em;
  color: var(--logo);
  text-shadow: 0 3px 0 var(--logo-edge);
}
.hero-tagline { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.hero-lead { max-width: 560px; margin: 0 auto 12px; color: var(--ink2); }
.hero-facts { margin: 0 auto 28px; color: var(--ink3); font-size: 15px; font-weight: 600; }

/* The app's chunky button: a flat colour on a hard shadow that it presses down into. */
.store-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 18px;
  background: var(--button);
  color: var(--on-button);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
}
.store-button:hover { color: var(--on-button); filter: brightness(1.06); }
.store-button:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.store-button.is-soon {
  background: var(--quiet);
  color: var(--ink2);
  font-size: 17px;
  font-weight: 700;
  box-shadow: none;
  border: 1px solid var(--line);
}

/* Scrolls sideways inside its own box on a phone; the page itself never scrolls sideways. */
.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 24px;
  justify-content: safe center;
}
.shot {
  flex: 0 0 auto;
  width: 220px;
  height: auto;
  aspect-ratio: 390 / 848;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  scroll-snap-align: center;
  background: #1D1838;
}

.features { padding: 40px 0 24px; }
.features h2, .pricing h2 { text-align: center; font-size: 30px; margin: 0 0 28px; }
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--ink2); }

.pricing { max-width: 680px; margin: 0 auto; padding: 32px 0 56px; text-align: center; }
.pricing h2 { font-size: 24px; margin-bottom: 12px; }
.pricing p { margin: 0; color: var(--ink2); }

.prose { max-width: 680px; padding-top: 56px; padding-bottom: 56px; overflow-wrap: break-word; hyphens: auto; }
.prose h1 { font-size: 34px; margin: 0 0 4px; }
.muted { color: var(--ink3); margin-top: 0; }
.prose h2 { font-size: 21px; line-height: 1.3; margin: 36px 0 8px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 12px 0; }
.prose summary { cursor: pointer; font-weight: 700; }
.prose details p { margin: 10px 0 0; color: var(--ink2); }
.contact { margin-top: 28px; }

.footer { border-top: 1px solid var(--line); padding: 28px 16px 40px; text-align: center; color: var(--ink3); font-size: 15px; }
.footer a { color: var(--ink2); text-decoration: none; }
.footer-links a { margin: 0 10px; display: inline-block; padding: 6px 0; }
.footer a:hover, .footer a[aria-current="page"] { color: var(--link); }
.footer-note { margin: 16px 0 0; }

@media (max-width: 520px) {
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 40px; }
  .hero-tagline { font-size: 19px; }
  .shots { justify-content: flex-start; }
  .shot { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .store-button:active { transform: none; }
}
