/* StuntCopter website. The look follows the game: a sky that fades toward the
   horizon, content on white panels, and the grass and dirt road at the bottom. */

:root {
  --ink: #1c2410;
  --ink-soft: #4c5640;
  --sky-top: #a5ddee;
  --sky-low: #e9f7fb;
  --panel: #ffffff;
  --panel-edge: #cfe6ee;
  --lime: #a6cf1f;
  --lime-dark: #8fba1f;
  --road: #fbd85a;
  --accent: #3d6a00;
  --accent-dark: #2b4d00;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(40, 90, 110, 0.18);
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  background: linear-gradient(var(--sky-top), var(--sky-low) 900px) var(--sky-low);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; }

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

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

h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0 0 0.45em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 4vw, 1.8rem); }
h3 { font-size: 1.15rem; }

/* Only side padding here, so sections can set their own top and bottom */
.wrap { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Hero */

.hero { padding-top: 48px; padding-bottom: 32px; text-align: center; }
.hero .icon {
  width: 112px; height: 112px; margin: 0 auto 20px;
  border-radius: 24px; box-shadow: var(--shadow);
}
.hero h1 { margin: 0 auto 0.3em; max-width: min(520px, 90%); }
.hero h1 img { width: 100%; }
.hero .tagline {
  font-size: clamp(1.15rem, 3.2vw, 1.4rem); font-weight: 600;
  margin: 0 auto 22px; max-width: 36em;
}
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; }
.badge { display: inline-block; }
.badge img { height: 60px; width: auto; }
.facts {
  display: inline-block; margin: 18px 0 0; padding: 6px 14px;
  background: rgba(255, 255, 255, 0.7); border-radius: 999px; font-size: 0.95rem;
}

/* Panels */

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px clamp(18px, 4vw, 40px);
  margin: 0 0 28px;
}
.panel > p:first-of-type { margin-top: 0; }
.lead { font-size: 1.1rem; }

/* Screenshots */

.shots { display: grid; gap: 20px; margin-top: 8px; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; box-shadow: 0 3px 12px rgba(40, 90, 110, 0.25); width: 100%; }
.shots figcaption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 8px; text-align: center; }

/* How to play */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; min-height: 38px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; margin-top: 18px; }
.levels h3 { margin-bottom: 0.3em; }
.levels ol { margin: 0; padding-left: 1.4em; }

/* Questions */

.faq h3 { margin-top: 1.2em; }
.faq h2 + h3 { margin-top: 0.3em; }
.faq p { margin: 0; }

/* Call to action */

.cta { text-align: center; }
.cta p { margin: 0 0 16px; }

/* Long-form pages (privacy, support) */

.doc h2 { margin-top: 1.4em; font-size: 1.35rem; }
.doc h2:first-of-type { margin-top: 0.6em; }
.doc .updated { color: var(--ink-soft); font-style: italic; }
.back { display: inline-block; margin: 28px 0 16px; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.back:hover { text-decoration: underline; }

/* Footer: the grass and the dirt road from the game */

footer {
  margin-top: 24px;
  background: linear-gradient(var(--lime) 0 14px, var(--road) 14px 34px, var(--lime-dark) 34px);
  color: var(--ink);
  text-align: center; font-size: 0.95rem;
  padding: 52px 16px calc(40px + env(safe-area-inset-bottom));
}
footer a { color: var(--ink); }
footer a:hover { color: var(--accent-dark); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 12px; font-size: 1.05rem; font-weight: 600; }
footer p { margin: 0.3em auto; max-width: 44em; }
footer .fine { font-size: 0.85rem; }
