/* QuestSchool marketing site.
   Deliberately its own stylesheet, not an extension of the app's style.css:
   the two surfaces share a container but should not share a cascade, or a
   change to a game screen restyles the pricing page.
   Palette is placeholder - the Quest Books brand system (SOW 2.1) lands in
   Phase 4 and re-skins this file. */

:root {
  --ink: #1c2233;
  --muted: #5a6478;
  --accent: #3559c7;
  --accent-ink: #ffffff;
  --bg: #ffffff;
  --band: #f4f6fb;
  --line: #dfe4ef;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

main { max-width: var(--max); margin: 0 auto; padding: 0 20px 64px; }

h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; margin: 32px 0 16px; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 40px 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }
a { color: var(--accent); }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Header / footer */
.site-header, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; color: var(--muted); }
.site-header nav, .site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav { margin-right: auto; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.site-header nav a, .site-footer nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }

.cta, .cta-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.cta-primary { padding: 14px 26px; font-size: 1.05rem; }

/* Sections */
.hero { padding: 48px 0 24px; }
.steps ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.steps li {
  background: var(--band);
  border-radius: var(--radius);
  padding: 20px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.character-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.character-grid li { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.character-grid .book { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.character-grid .strength { margin: 0 0 8px; }
.character-grid .catchphrase { color: var(--accent); font-style: italic; margin: 0; }

.safety-band { background: var(--band); border-radius: var(--radius); padding: 24px; margin-top: 40px; }
.safety-band ul, .claims { list-style: none; padding: 0; }
.safety-band li { margin-bottom: 10px; }
.claims li { border-left: 3px solid var(--accent); padding-left: 16px; margin-bottom: 22px; }
.claims h2 { margin-top: 0; }

.price { font-size: 1.5rem; font-weight: 700; }

.faq dt { font-weight: 600; margin-top: 20px; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

.notice { background: var(--band); border-radius: var(--radius); padding: 14px 18px; }

form { display: grid; gap: 14px; max-width: 520px; }
label { display: grid; gap: 6px; font-weight: 600; }
input, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
}
button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  padding: 12px 22px;
  border-radius: var(--radius);
  justify-self: start;
}

.error-page main, .game-gate main { text-align: center; padding-top: 80px; }
.error-page .ref { color: var(--muted); font-size: 0.9rem; }
.game-gate .emoji { font-size: 3rem; margin: 0; }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f7;
    --muted: #a3adc2;
    --bg: #12151d;
    --band: #1b202b;
    --line: #2a3140;
    --accent: #7fa0ff;
    --accent-ink: #10131a;
  }
  input, textarea { background: var(--band); }
}
