/* Colours from the game's Palette (Assets/Game/Scripts/Core/Palette.cs, Docs/GDD.md §11). Light pages
   look like its paper sheets and cards with night-ink text; dark pages like the night nursery with
   lamp-warm text. The orange accent is the game's Play button. */
:root {
  --bg: #F6F1E7;                       /* Palette.Paper, the settings and win sheets */
  --glow: rgba(255, 196, 107, 0.28);   /* Palette.LampGlow, the nightlight behind the hero */
  --card: #FFFDF8;                     /* Palette.Card */
  --ink: #1E1A2B;                      /* Palette.Night, text on the game's sheets */
  --ink2: #4A4456;                     /* between Night and SoftInk, for body text */
  --ink3: #6B6478;                     /* Palette.SoftInk */
  --line: rgba(30, 26, 43, 0.12);
  --link: #A85F12;                     /* Palette.AccentPress, a shade darker for contrast on paper */
  --link-hover: #1E1A2B;
  --logo: #1E1A2B;                     /* the menu title, night on paper */
  --logo-edge: #F2A23C;                /* Palette.Accent */
  --button: #F2A23C;                   /* Palette.Accent, the Play button */
  --on-button: #1E1A2B;                /* Palette.Night, its label */
  --quiet: #FFFDF8;                    /* Palette.Card, the quiet buttons */
  --shadow: rgba(30, 26, 43, 0.22);
  --shot-bg: #1E1A2B;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1A2B;                     /* Palette.Night */
    --glow: rgba(255, 196, 107, 0.16); /* Palette.LampGlow in the dark room */
    --card: #2A2540;
    --ink: #F6F1E7;                    /* Palette.Paper, the menu title */
    --ink2: rgba(246, 241, 231, 0.85);
    --ink3: #FFF1C9;                   /* Palette.LampCap, the menu tagline */
    --line: rgba(246, 241, 231, 0.12);
    --link: #F2A23C;                   /* Palette.Accent */
    --link-hover: #FFF1C9;
    --logo: #F6F1E7;
    --logo-edge: #A8784F;              /* Palette.Wood, the floor */
    --quiet: #2A2540;
    --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: var(--shot-bg);
}

.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; }
}
