/* Queen City Soccer Lab — site styles */
:root {
  --purple: #1F0F36;
  --purple-2: #2B1A46;
  --purple-line: #3A2757;
  --gold: #C9A227;
  --gold-deep: #80661A;
  --cream: #F7F2E8;
  --surface: #FFFDF8;
  --sand: #EFE7D6;
  --line: #E4DACB;
  --line-2: #D6CBB8;
  --ink: #1A1320;
  --muted: #5A5068;
  --lilac: #D9D0E4;
  --lilac-2: #B9AFC6;
  --error: #A3261B;
  --radius: 16px;
  --font: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-wide: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--purple); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .container { padding-inline: 16px; } }

/* ---------- Labels ---------- */
.eyebrow { font-family: var(--font-wide); font-stretch: 125%; font-size: 13px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold); }
.mono { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.sample-chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; background: var(--sand); font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.on-dark .sample-chip { background: var(--purple-line); color: var(--lilac); }

/* ---------- Lockup ---------- */
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup svg { width: 37px; height: 38px; flex: none; }
.lockup-words { display: inline-flex; flex-direction: column; gap: 4px; width: max-content; }
.lockup-qc { display: flex; justify-content: space-between; font-family: var(--font-wide); font-stretch: 125%; font-size: 10px; font-weight: 600; line-height: 0.8; color: var(--gold); }
.lockup-qc .sp { width: 0.3em; }
.lockup-sl { font-size: 22px; font-weight: 700; line-height: 0.8; letter-spacing: -0.02em; color: var(--cream); }
.lockup.lg svg { width: 52px; height: 53px; }
.lockup.lg .lockup-qc { font-size: 14px; }
.lockup.lg .lockup-sl { font-size: 31px; }
.lockup.lg .lockup-words { gap: 5px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--purple); border-bottom: 1px solid var(--purple-line); }
.site-header .container { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 16px; font-weight: 600; }
.nav a { color: var(--cream); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.nav a.btn { border-bottom: none; padding: 0 20px; min-height: 44px; }
.nav a.btn-gold, .nav a.btn-gold:hover { color: var(--purple); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--purple-line); background: transparent; color: var(--cream); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--purple); border-bottom: 1px solid var(--purple-line); padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--purple-line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--purple-line); }
  .nav .btn { margin-top: 12px; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-primary { background: var(--purple); color: var(--cream); }
.btn-primary:hover { background: var(--purple-2); }
.btn-gold { background: var(--gold); color: var(--purple); }
.btn-gold:hover { background: #D7B23C; }
.btn-outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-outline:hover { background: var(--sand); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.link { font-weight: 700; color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.on-dark .link { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); padding: 28px; }
.band-dark { background: var(--purple); color: var(--cream); }
.band-sand { background: var(--sand); }
.section { padding-block: 88px; }
@media (max-width: 700px) { .section { padding-block: 56px; } }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }

/* ---------- Periodic tile ---------- */
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; border-radius: 14px; border: 3px solid var(--purple); background: var(--surface); padding: 12px 14px; min-height: 150px; color: var(--purple); }
.tile .num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--gold-deep); }
.tile .sym { font-size: 52px; font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; }
.tile .name { font-size: 15px; font-weight: 700; }
.tile .hint { font-size: 12px; line-height: 1.3; color: var(--muted); }
.tile.dark { background: var(--purple); border-color: var(--purple); color: var(--gold); }
.tile.dark .num { color: var(--gold); }
.tile.dark .name { color: var(--cream); }
.tile.outline-gold { background: transparent; border-color: var(--gold); color: var(--gold); }
.tile.outline-gold .num { color: var(--gold); }
.tile.outline-gold .name { color: var(--cream); }
.tile.solid-gold { background: var(--gold); border-color: var(--gold); color: var(--purple); }
.tile.solid-gold .num, .tile.solid-gold .name { color: var(--purple); }
.mini-tile { display: inline-flex; flex-direction: column; justify-content: space-between; width: 64px; height: 64px; flex: none; border-radius: 10px; background: var(--purple); color: var(--gold); padding: 5px 7px; }
.mini-tile .num { font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.mini-tile .sym { font-size: 26px; font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; }
.mini-tile.gold { background: var(--gold); color: var(--purple); }
.chip-tile { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border: 2px solid var(--purple); border-radius: 6px; font-size: 13px; font-weight: 700; letter-spacing: -0.04em; color: var(--purple); }

/* ---------- Meter ---------- */
.meter { display: inline-flex; gap: 3px; }
.meter i { display: block; width: 10px; height: 8px; border-radius: 2px; background: var(--line); }
.meter i.on { background: var(--gold); }
.meter.lg i { width: 16px; height: 12px; border-radius: 3px; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--gold); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 10px; }
.field label, .field legend, .label { font-size: 16px; font-weight: 700; color: var(--purple); }
.field .help { font-size: 14px; color: var(--muted); }
.input, .select, .textarea { width: 100%; max-width: 420px; min-height: 52px; padding: 0 14px; border: 2px solid var(--purple); border-radius: 12px; background: #fff; font-family: inherit; font-size: 17px; color: var(--ink); }
.textarea { max-width: none; padding: 14px; line-height: 1.5; resize: vertical; min-height: 110px; }
.input.zip { max-width: 240px; font-size: 22px; font-weight: 600; letter-spacing: 0.06em; }
.input[aria-invalid="true"] { border-color: var(--error); }
.error { font-size: 15px; font-weight: 600; color: var(--error); }
fieldset { border: none; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--purple); background: #fff; color: var(--purple); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pill[aria-pressed="true"], .pill[aria-checked="true"] { background: var(--purple); color: var(--cream); }
.scale { display: flex; flex-wrap: wrap; gap: 6px; }
.scale button { width: 46px; height: 46px; border-radius: 10px; border: 2px solid var(--purple); background: #fff; color: var(--purple); font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.scale button[aria-checked="true"] { background: var(--purple); color: var(--gold); }
.scale .ns { width: auto; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); border-color: var(--line-2); }
.scale .ns[aria-checked="true"] { background: var(--purple); color: var(--cream); border-color: var(--purple); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--purple); flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple); color: var(--cream); padding-block: 56px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand p { font-size: 15px; color: var(--lilac); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 64px; font-size: 15px; }
.footer-nav div { display: flex; flex-direction: column; gap: 12px; }
.footer-nav .mono { font-size: 11px; color: var(--gold); }
.footer-nav a { color: var(--cream); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { width: 100%; font-size: 13px; color: var(--lilac-2); }

/* ---------- Notices ---------- */
.notice { padding: 14px 18px; border-radius: 12px; background: var(--sand); font-size: 15px; line-height: 1.5; color: var(--ink); }
.notice.preview { border: 1px dashed var(--gold-deep); }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Shared bits used by several pages ---------- */
.best-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--gold); font-size: 12px; font-weight: 700; color: var(--purple); }
.divider { height: 1px; background: var(--line); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
