/* EloStack website — shared styles for index.html and privacy.html */
:root {
  --bg: #121317;
  --bg-2: #16171b;
  --surface: #1f2126;
  --surface-2: #2a2d33;
  --border: #33363d;
  --text: #f2f2f2;
  --muted: #9aa0a8;
  --accent: #ff5500;
  --accent-hover: #ff6a1f;
  --accent-soft: rgba(255, 85, 0, 0.12);
  --win: #32d35a;
  --loss: #ff4b4b;
  --gold: #f5c542;
  --ice: #8fd8ff;
  --radius: 12px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* System fonts only: no third-party font requests (keeps the privacy policy simple). */
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px;
}
.skip:focus { left: 8px; z-index: 100; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 19, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand b { font-weight: inherit; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: 0.2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .nav-hide { display: none; }
@media (min-width: 720px) { .nav .nav-hide { display: inline; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ---- Hero ---- */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(255, 85, 0, 0.18), transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
.hero .mock { max-width: 560px; width: 100%; margin: 0; }
.mock-head { flex-wrap: wrap; gap: 8px; }
@media (min-width: 1080px) {
  .hero { padding: 96px 0 112px; }
  .hero .wrap { grid-template-columns: 1fr 1fr; }
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 20px;
}
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -1.2px; margin: 0 0 20px; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 32px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Hero mock: match-room stat strips */
.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); overflow: hidden;
}
.mock-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted);
}
.mock-head strong { color: var(--text); font-size: 14px; }
.forecast { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.forecast .bar { width: 90px; height: 6px; border-radius: 3px; background: var(--loss); overflow: hidden; }
.forecast .bar i { display: block; height: 100%; width: 58%; background: var(--win); }
.mock-row {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
}
.mock-row:last-child { border-bottom: 0; }
.lvl {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #fff; background: var(--surface-2);
  box-shadow: inset 0 0 0 2px var(--c, var(--accent));
}
.lvl.ext { box-shadow: inset 0 0 0 2px var(--c), 0 0 10px var(--c); }
.who { min-width: 0; }
.who .name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px; padding: 2px 6px; border-radius: 4px;
  background: var(--surface-2); color: var(--muted);
}
.tag.awp { color: #c9a6ff; background: rgba(160, 110, 255, 0.15); }
.tag.entry { color: #ffb37a; background: rgba(255, 140, 60, 0.15); }
.tag.watch { color: #fff; background: var(--loss); }
.tag.sup { color: #1a1300; background: var(--gold); }
.stats { display: flex; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; }
.stats b { color: var(--text); font-weight: 600; }
.rating { font-weight: 800; font-size: 17px; text-align: right; }
.rating small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.4px; }
.up { color: var(--win); } .down { color: var(--loss); }
@media (max-width: 420px) { .stats span:nth-child(n+3) { display: none; } }

/* ---- Sections ---- */
section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.6px; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* Features */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.card h3 { margin: 14px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

/* Levels strip */
.levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.levels .lvl { width: 38px; height: 38px; font-size: 14px; }

/* Pricing / compare */
.compare { display: grid; gap: 16px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.plan.plus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 20px 60px rgba(255, 85, 0, 0.08); }
.plan h3 { margin: 0 0 4px; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.plan .price { font-size: 15px; color: var(--muted); margin: 0 0 20px; }
.plan .price b { color: var(--text); font-size: 28px; font-weight: 800; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--win); }
.plan.plus li svg { color: var(--accent); }
.plan .note { font-size: 13px; color: var(--muted); margin-top: 20px; }

.tiers { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.tier .t-name { font-weight: 700; font-size: 15px; }
.tier .t-price { font-size: 26px; font-weight: 800; margin: 6px 0 2px; }
.tier .t-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.tier p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  padding: 2px 7px; border-radius: 4px; vertical-align: middle;
}
.badge.supporter { background: var(--gold); color: #1a1300; }
.badge.founder { background: #8b5cf6; color: #fff; }
.badge.friend { background: var(--ice); color: #06202e; }
.badge.custom { background: linear-gradient(90deg, #ff5500, #f5c542, #32d35a, #4ab3ff, #a06eff); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.pill { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* CTA band */
.band { text-align: center; }
.band h2 { margin-bottom: 12px; }
.band p { color: var(--muted); margin: 0 auto 28px; max-width: 34em; }
.band .cta-row { justify-content: center; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 20px; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.disclaimer { margin: 8px 0 0; max-width: 46em; font-size: 13px; }

/* ---- Legal page ---- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.2px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: #d6d8dc; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .summary { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 18px 22px; }
.legal .summary p { margin: 0 0 8px; }
.legal .summary ul { margin: 0; }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 8px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.legal th, .legal td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--surface); color: var(--text); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.legal code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
