/* Axolotl Siege website. Same look as the game's menus (App/Sources/Style.swift, DESIGN_RULES.md):
   cute characters, grown-up interface. Rose = the one action colour, lilac = Hard, gold = stars only.
   Layout: one calm column; the hero pairs the icon and pitch with a fan of three phones; pages scroll down only. */
:root {
  --bg: #f9ece1;          /* warm pond-side sand */
  --bg-2: #f3dfe3;        /* rose-tinted lower band */
  --paper: #fbf6ee;       /* panels */
  --glass: rgba(251, 246, 238, 0.82);
  --ink: #2b1d2a;         /* text, plum */
  --muted: #6a5a66;
  --line: rgba(43, 29, 42, 0.12);
  --rose: #e2557a;        /* action */
  --rose-ink: #ffffff;
  --rose-dark: #b8375c;
  --lilac: #7c6cf0;       /* Hard */
  --gold: #f2b53a;        /* stars only */
  --water: #3f78c9;
  --badge: #111014;
  --badge-ink: #ffffff;
  --font: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.2rem, 5vw + 1rem, 3.6rem);
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1320; --bg-2: #241828; --paper: #2a1e2c; --glass: rgba(42, 30, 44, 0.84);
    --ink: #fbf2ec; --muted: #c9b6c4; --line: rgba(251, 242, 236, 0.14);
    --rose: #f06a8f; --rose-ink: #2b1d2a; --rose-dark: #ff9bb6; --lilac: #a99dff; --gold: #f6c45a;
    --water: #7fb0f0; --badge: #fbf2ec; --badge-ink: #1c1320;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1320; --bg-2: #241828; --paper: #2a1e2c; --glass: rgba(42, 30, 44, 0.84);
  --ink: #fbf2ec; --muted: #c9b6c4; --line: rgba(251, 242, 236, 0.14);
  --rose: #f06a8f; --rose-ink: #2b1d2a; --rose-dark: #ff9bb6; --lilac: #a99dff; --gold: #f6c45a;
  --water: #7fb0f0; --badge: #fbf2ec; --badge-ink: #1c1320;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 55%, var(--bg-2) 100%);
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }   /* the tilted phones never widen the page */
a { color: var(--rose-dark); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--step--1); font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(24px, 6vw, 72px) clamp(32px, 6vw, 64px); }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--rose-dark); font-weight: 600; }
.hero h1 { font-size: var(--step-3); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 34ch; font-weight: 400; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta-note { font-size: var(--step--1); color: var(--muted); }

/* App Store button. Swap for Apple's official badge (developer.apple.com/app-store/marketing/guidelines) once live. */
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--badge); color: var(--badge-ink); text-decoration: none; border-radius: 12px; padding: 10px 18px 10px 14px; min-height: 54px; }
.store-badge svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store-badge span { display: grid; line-height: 1.1; }
.store-badge small { font-size: 0.72rem; font-weight: 500; opacity: 0.85; }
.store-badge strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.store-badge[aria-disabled="true"] { cursor: default; }

.phones { position: relative; height: clamp(360px, 46vw, 540px); min-width: 0; }
.phones img { position: absolute; top: 0; width: 46%; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(43, 29, 42, 0.18); background: var(--paper); }
.phones img:nth-child(1) { left: 0; top: 9%; transform: rotate(-6deg); }
.phones img:nth-child(2) { left: 27%; z-index: 2; }
.phones img:nth-child(3) { right: 0; top: 9%; transform: rotate(6deg); }

/* Sections */
section { padding-block: clamp(40px, 7vw, 80px); }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 60ch; }
.section-head h2 { font-size: var(--step-2); }
.section-head p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.feature img { width: 72px; height: 68px; object-fit: contain; }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--muted); font-size: 1rem; }

/* Screenshot strip: scrolls inside its own track, never the page */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; overscroll-behavior-x: contain; }
.strip img { border-radius: 18px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--paper); }

.roster { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: end; }
.roster figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.roster img { width: 84px; height: 80px; object-fit: contain; }
.roster figcaption { font-weight: 600; font-size: 0.95rem; }
.roster figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; text-align: center; }

.fair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; padding: 0; margin: 0; list-style: none; }
.fair li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.fair li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--rose); justify-self: center; }

.cause { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); display: grid; gap: 10px; }
.cause p { color: var(--muted); max-width: 62ch; }

/* Legal and help pages */
.doc { padding-block: clamp(24px, 5vw, 56px) clamp(48px, 8vw, 96px); display: grid; gap: 22px; }
.doc h1 { font-size: var(--step-2); }
.doc h2 { font-size: var(--step-1); margin-top: 10px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.updated { color: var(--muted); font-size: var(--step--1); }
.contact { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.contact code { font-family: var(--font); font-weight: 600; font-size: 1.05rem; user-select: all; overflow-wrap: anywhere; }
.copy { font: inherit; font-size: 0.9rem; font-weight: 600; border: 0; border-radius: 10px; padding: 6px 12px; background: var(--rose); color: var(--rose-ink); cursor: pointer; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
details + details { margin-top: -10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 8px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: var(--step--1); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .phones { height: clamp(300px, 92vw, 460px); max-width: 520px; width: 100%; margin: 0 auto; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .fair { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .phones img { transition: transform 0.4s ease; }
  .phones:hover img:nth-child(1) { transform: rotate(-8deg) translateX(-6px); }
  .phones:hover img:nth-child(3) { transform: rotate(8deg) translateX(6px); }
}
