/* GW2 Raid Bingo - the public "add the bot" landing site.
   Self-contained: system fonts, same-origin assets, no inline styles/scripts, no
   JavaScript at all (so nginx can serve it under a strict same-origin CSP). Served
   as static files under its own low-priv user - it shares nothing with the app. */

:root {
  --bg:        #0e1116;
  --bg-soft:   #161b22;
  --panel:     #1b222c;
  --border:    #2a3340;
  --ink:       #e6e8ec;
  --ink-soft:  #a9b1bd;
  --ink-dim:   #929aa6;
  --gold:      #d9b96a;
  --gold-soft: #b9974a;
  --green:     #3fb56b;
  --blurple:   #5865F2;
  --shadow:    0 10px 30px rgba(0, 0, 0, 0.45);
  --radius:    14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(217, 185, 106, 0.10), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 960px; margin-inline: auto; padding: 0 20px; }

/* ---- header / nav ---- */
.site-header { border-bottom: 1px solid var(--border); background: rgba(14, 17, 22, 0.7); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: inherit; }
.brand .crest { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
.brand .name { font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.svg-defs { position: absolute; }
.inline-ico { width: 1em; height: 1em; vertical-align: -0.14em; margin-right: 0.4em; fill: currentColor; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); font-size: 0.95rem; }
.nav a:hover { color: var(--gold); text-decoration: none; }

/* ---- hero ---- */
.hero { text-align: center; padding: 40px 0 0; }
.hero-banner {
  width: 100%; max-width: 720px; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); margin-bottom: 28px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 14px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--ink-soft);
  max-width: 660px; margin: 0 auto 28px;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 1.02rem;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--blurple); box-shadow: 0 8px 22px rgba(88, 101, 242, 0.35); }
.btn-primary:hover { background: #4752c4; }
.btn-ghost { color: var(--ink); background: var(--panel); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { color: var(--ink-dim); font-size: 0.85rem; margin-top: 14px; }

/* ---- sections ---- */
main > section + section { margin-top: 72px; }
h2 { font-size: 1.5rem; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
h2 .pip { color: var(--gold); margin-right: 8px; }

/* ---- feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card h3 .ic { margin-right: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
code {
  background: var(--bg-soft); color: var(--gold);
  border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 0.88em;
}

/* ---- bingo card preview ---- */
.mock {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); max-width: 460px; margin: 0 auto;
}
.mock-head { font-weight: 700; color: #fff; margin-bottom: 12px; text-align: center; }
.bingo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.bingo .bh { text-align: center; font-weight: 800; color: var(--gold); padding-bottom: 4px; }
.bingo .sq {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 3px; font-size: 0.52rem; line-height: 1.15;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px;
  color: var(--ink-soft); overflow: hidden;
}
.bingo .sq.mark { background: rgba(63, 181, 107, 0.22); border-color: var(--green); color: #d6f5e2; font-weight: 600; }
.bingo .sq.free { background: rgba(217, 185, 106, 0.22); border-color: var(--gold-soft); color: var(--gold); font-weight: 800; }
.mock-actions { text-align: center; margin-top: 12px; }
.dbtn { display: inline-block; border-radius: 8px; padding: 8px 16px; font-weight: 700; font-size: 0.9rem; }
.dbtn.green { background: #248046; color: #fff; }

/* ---- steps ---- */
.steps { display: grid; gap: 14px; }
.step { display: flex; align-items: flex-start; gap: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.step .num {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #1a1a1a; font-weight: 800;
}
.step p { margin: 0; color: var(--ink-soft); }
.step strong { color: var(--ink); }

/* ---- commands list ---- */
.cmd-group { margin: 26px 0 10px; font-size: 1.1rem; }
.cmd-group .cmd-who { font-size: 0.75rem; font-weight: 600; color: var(--ink-dim); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; margin-left: 8px; vertical-align: middle; }
.cmd { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); align-items: baseline; flex-wrap: wrap; }
.cmd:last-of-type { border-bottom: 0; }
.cmd code { background: var(--bg-soft); color: var(--gold); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; white-space: nowrap; font-size: 0.9rem; }
.cmd span { color: var(--ink-soft); flex: 1; min-width: 200px; }
.cmd-note { margin-top: 14px; }

/* ---- legal pages ---- */
.legal { padding-top: 32px; padding-bottom: 48px; }
.legal h1 { font-size: 2rem; margin: 0 0 6px; }
.legal .updated { color: var(--ink-dim); font-size: 0.9rem; margin: 0 0 24px; }
.legal h2 { font-size: 1.25rem; margin-top: 30px; }
.legal ul { color: var(--ink-soft); }
.legal li { margin: 6px 0; }
.legal p { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal a { color: var(--gold); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 26px 0 40px; color: var(--ink-dim); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-footer .disclaimer { max-width: 560px; }

/* ---- responsive ---- */
@media (max-width: 560px) {
  .hero { padding-top: 28px; }
  .bingo .sq { font-size: 0.44rem; }
}
