/* Step Quest palette, from step-quest/lib/ui/theme.dart (Palette, Panel.radius = 18) */
:root {
  --space900: #0b0e1f;
  --panel900: #18183a;
  --panel800: #23285b;
  --purple: #6c5ce7;
  --purple-light: #a78bfa;
  --cyan: #22d3ee;
  --gold: #fdc93e;
  --text: #f1f3ff;
  --muted: #9aa3c7;
  --grid: #2a3366;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--space900); color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 17px/1.6 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text);
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 42%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 66%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 74%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 88%, #fff5 50%, transparent 51%),
    linear-gradient(180deg, #2b1f66 0%, #15123a 45%, var(--space900) 100%) fixed;
}
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--text); }

/* Landing */
.hero { flex: 1; display: grid; place-items: center; padding: 4rem 1.5rem; text-align: center; }
.hero img { image-rendering: pixelated; width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 0 0 2px var(--panel800), 0 16px 50px rgba(108, 92, 231, .45); }
.title { margin: 1.75rem 0 0; font-size: clamp(2.8rem, 11vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.title span { color: var(--gold); }
.tagline { max-width: 28rem; margin: 1.25rem auto 0; color: var(--muted); }
.chip {
  display: inline-block; margin-top: 2rem; padding: .65rem 1.2rem; border-radius: 999px;
  background: var(--panel800); border: 1px solid var(--purple); color: var(--text); font-weight: 800; font-size: .95rem;
}

/* Policy page */
.bar { display: flex; align-items: center; padding: 1rem 1.5rem; }
.bar a { display: flex; align-items: center; gap: .75rem; color: var(--text); font-weight: 800; text-decoration: none; }
.bar img { image-rendering: pixelated; width: 36px; height: 36px; border-radius: 10px; }
main.doc {
  flex: 1; width: calc(100% - 2rem); max-width: 44rem; margin: 1rem auto 3rem; padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  background: rgba(24, 24, 58, .92); border: 1px solid var(--panel800); border-radius: var(--radius);
}
.doc h1 { margin: 0 0 .25rem; font-size: clamp(1.8rem, 5vw, 2.3rem); font-weight: 800; line-height: 1.15; }
.doc h2 { margin: 2.25rem 0 .6rem; font-size: 1.2rem; font-weight: 800; color: var(--gold); }
.doc p, .doc li { color: #d5d9f0; }
.doc strong { color: var(--text); font-weight: 700; }
.doc code { font-size: .85em; background: var(--panel800); color: var(--cyan); padding: .1em .4em; border-radius: 6px; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: .4rem 0; }
.doc li::marker { color: var(--purple-light); }

footer { padding: 1.5rem; text-align: center; color: var(--muted); font-size: .9rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* At a glance */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-width: 40rem; margin: 3rem auto 0; text-align: left; }
.facts div { padding: .85rem 1rem; background: rgba(24, 24, 58, .85); border: 1px solid var(--panel800); border-radius: 14px; }
.facts dt { margin-bottom: .3rem; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--text); }
.hero > div { width: 100%; max-width: 40rem; }
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Support form */
.support-form { display: grid; gap: 1rem; margin-top: 1rem; }
.support-form label { display: grid; gap: .4rem; font-weight: 800; font-size: .95rem; color: var(--text); }
.support-form label span { font-weight: 400; font-size: .85rem; color: var(--muted); }
.support-form input, .support-form select, .support-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--grid); border-radius: 12px; background: var(--space900);
  font: 400 1rem/1.4 Roboto, system-ui, -apple-system, sans-serif; color: var(--text);
}
.support-form input:focus, .support-form select:focus, .support-form textarea:focus { outline: 2px solid var(--purple-light); outline-offset: 1px; border-color: transparent; }
.support-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; }
.support-form button {
  justify-self: start; padding: .85rem 1.5rem; border: 0; border-radius: var(--radius); background: var(--purple); cursor: pointer;
  font: 800 1rem/1 Roboto, system-ui, -apple-system, sans-serif; color: var(--text);
}
.support-form button:hover { background: var(--purple-light); color: var(--space900); }
.support-note { margin: 0; font-size: .92rem; color: var(--muted); }
