/* Snipe Club - shared stylesheet. Dark "night match / trading floor" look.
   Palette: pitch-green ink, turf accent, brass/gold highlight, chalk text. No purple, no gradients-as-decoration. */
:root {
  --bg: #0a100e;
  --bg-2: #0f1713;
  --panel: #131d18;
  --panel-2: #182520;
  --line: #243529;
  --chalk: #e8eee9;
  --muted: #93a498;
  --turf: #34d27b;
  --turf-dim: #1f8d52;
  --gold: #d6a847;
  --danger: #ef6a5b;
  --warn-bg: #2a2111;
  --warn-line: #7a5f22;
  --radius: 10px;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--chalk); font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--turf); text-underline-offset: 3px; }
a:hover { color: #6ff0a6; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: 1.6rem; margin-top: 2.2rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .92em; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 5px; padding: .08em .4em; }
pre { font-family: var(--mono); font-size: .88rem; background: #070c0a; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

/* ---- status banner (sandbox / EA disclaimer) ---- */
.banner { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); color: #f0dba8; font-size: .86rem; }
.banner .wrap { padding: 8px 0; }
.banner strong { color: var(--gold); letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }

/* ---- header / nav ---- */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(10, 16, 14, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 22px; min-height: 60px; flex-wrap: wrap; padding: 6px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; font-weight: 700; }
.brand:hover { color: var(--chalk); }
.brand .mark { width: 28px; height: 28px; border: 2px solid var(--turf); border-radius: 50%; position: relative; flex: none; }
.brand .mark::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--turf); transform: translateX(-1px); }
.brand .mark::after { content: ""; position: absolute; inset: 7px; border: 2px solid var(--gold); border-radius: 50%; }
.brand small { color: var(--gold); font-family: var(--mono); font-weight: 600; font-size: .72rem; border: 1px solid var(--gold);
  border-radius: 4px; padding: 0 5px; margin-left: 2px; }
nav.main { display: flex; gap: 4px 16px; flex-wrap: wrap; margin-left: auto; align-items: center; }
nav.main a { color: var(--muted); text-decoration: none; font-size: .93rem; padding: 4px 2px; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--chalk); border-bottom-color: var(--turf); }

/* ---- hero with pitch markings ---- */
.hero { position: relative; padding: 72px 0 56px; border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.hero::before { /* halfway line + centre circle, purely decorative */
  content: ""; position: absolute; right: -90px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%);
  border: 2px solid rgba(52, 210, 123, .16); border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(52, 210, 123, .04); pointer-events: none;
}
.hero::after { content: ""; position: absolute; right: 139px; top: 0; bottom: 0; width: 2px; background: rgba(52, 210, 123, .16); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 640px; }
.eyebrow { font-family: var(--mono); color: var(--turf); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 14px; }
.page-head { padding: 44px 0 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head p { color: var(--muted); max-width: 680px; margin: 0; }

/* ---- buttons ---- */
.btn { display: inline-block; font: 600 .95rem var(--sans); padding: 10px 18px; border-radius: 8px; border: 1px solid var(--turf);
  background: var(--turf); color: #04150b; text-decoration: none; cursor: pointer; }
.btn:hover { background: #5be698; color: #04150b; }
.btn.ghost { background: transparent; color: var(--turf); }
.btn.ghost:hover { background: rgba(52, 210, 123, .1); color: #6ff0a6; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---- layout blocks ---- */
section.block { padding: 44px 0; border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card.accent { border-top: 3px solid var(--turf); }
.card.gold { border-top: 3px solid var(--gold); }
.muted { color: var(--muted); }
.tag { display: inline-block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; color: var(--muted); }
.tag.warn { color: var(--gold); border-color: var(--warn-line); background: var(--warn-bg); }
.tag.ok { color: var(--turf); border-color: var(--turf-dim); }

.notice { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: var(--radius); padding: 16px 20px; color: #efdcae; margin: 22px 0; }
.notice strong { color: var(--gold); }
.notice.danger { border-color: #7a3027; background: #2a1411; color: #f0c4bd; }
.notice.danger strong { color: var(--danger); }
.notice p:last-child { margin-bottom: 0; }

/* ---- price table ---- */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 24px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan .price { font-family: var(--mono); font-size: 2.4rem; font-weight: 700; color: var(--chalk); margin: 6px 0 2px; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 400; }
.plan ul { padding-left: 1.1em; color: var(--muted); }
.plan li { margin-bottom: .35em; }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; background: var(--panel); }
td.num, th.num { text-align: right; font-family: var(--mono); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---- forms ---- */
form.panel, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
label { display: block; font-size: .88rem; color: var(--muted); margin: 14px 0 5px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; background: #0a110e; color: var(--chalk); border: 1px solid #2f4637; border-radius: 8px; padding: 10px 12px; font: inherit; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--turf); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-top: 16px; }
.check input { margin-top: 4px; }
.form-msg { margin-top: 14px; min-height: 1.4em; font-size: .92rem; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--turf); }
.auth-shell { max-width: 460px; margin: 48px auto; }

/* ---- metric tiles ---- */
.metrics { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.metric .v { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; }
.metric .k { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---- FAQ / docs ---- */
details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 34px 0 60px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: .92rem; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--chalk); border-left-color: var(--turf); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { color: var(--chalk); padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.legal-draft { font-family: var(--mono); font-size: .8rem; }
@media (max-width: 820px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; } .hero::before, .hero::after { display: none; } }

/* ---- footer ---- */
footer.site { padding: 36px 0 56px; color: var(--muted); font-size: .88rem; background: var(--bg-2); border-top: 1px solid var(--line); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--chalk); }
.ea-disclaimer { border-left: 3px solid var(--gold); padding-left: 14px; max-width: 860px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
