:root {
  --bg: #08121d;
  --surface: #0e1c2b;
  --surface-2: #122335;
  --border: #1f3549;
  --grid: rgba(120, 160, 200, 0.05);
  --text: #e7eef6;
  --muted: #8ea3b8;
  /* Denim accent (product decisions, 2026-09-16). Links are 5.2:1 on cards. */
  --accent: #3d8bff;
  --accent-deep: #2a6fe0;   /* button fill: white text at 4.7:1 */
  --amber: #e5a33b;         /* warnings only */
  --green: #3ecf8e;
  --radius: 10px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font: 16px/1.6 var(--sans);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.label {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 18, 29, 0.92);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.mark { width: 22px; height: 22px; color: var(--text); flex: none; }
.mark .mark-accent { fill: var(--accent); }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--muted); font-size: 15px; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); text-decoration: none; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
/* White text needs a deeper blue than the link colour to stay readable. */
.btn-primary { background: var(--accent-deep); color: #ffffff; }
.btn-primary:hover { background: #2563d6; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: 72px 20px 48px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); background: rgba(62, 207, 142, 0.1); border: 1px solid rgba(62, 207, 142, 0.25);
  padding: 7px 10px; border-radius: 6px;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ── Sections and cards ───────────────────────────────── */
section.block { padding: 40px 0; }
section.block h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 8px; letter-spacing: -0.01em; }
section.block > .wrap > p.intro { color: var(--muted); max-width: 680px; margin: 0 0 24px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.card .label { margin-bottom: 12px; }
.num { font: 500 30px/1.1 var(--mono); color: var(--text); }
.num .unit { font-size: 15px; color: var(--muted); }

/* ── Pricing ──────────────────────────────────────────── */
.rates .card { text-align: left; }
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.field { margin-bottom: 22px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.field-head strong { font: 500 15px var(--mono); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button {
  background: transparent; color: var(--muted); border: 0; padding: 8px 14px; font: 500 14px var(--sans); cursor: pointer;
}
.seg button[aria-pressed=true] { background: var(--surface-2); color: var(--text); }
.help { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.total { font: 500 44px/1 var(--mono); margin: 4px 0 6px; }
.total small { font-size: 16px; color: var(--muted); }
.lines { list-style: none; padding: 0; margin: 18px 0 0; font: 14px/1.9 var(--mono); color: var(--muted); }
.lines li { display: flex; justify-content: space-between; border-top: 1px dashed var(--border); }
.lines li span:last-child { color: var(--text); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font: 500 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table-scroll table th, .table-scroll table td { white-space: nowrap; }
td.money { font-family: var(--mono); }

.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

.callout {
  border: 1px solid rgba(61, 139, 255, 0.35); background: rgba(61, 139, 255, 0.07);
  border-radius: var(--radius); padding: 16px 18px; color: var(--text);
}

/* ── Legal ────────────────────────────────────────────── */
.legal-layout { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 48px 20px 64px; }
.legal-nav { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 8px; }
.legal-nav a { color: var(--muted); font-size: 15px; }
.legal-nav a[aria-current] { color: var(--text); font-weight: 600; }
.prose { max-width: 720px; min-width: 0; }
.prose h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 6px; letter-spacing: -0.01em; }
.prose .meta { font: 13px var(--mono); color: var(--muted); margin: 0 0 32px; }
.prose h2 { font-size: 21px; margin: 36px 0 10px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { color: #c9d6e3; }
.prose strong { color: var(--text); }
.prose table { display: block; overflow-x: auto; margin: 16px 0; }
.prose code { font: 14px var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 40px 0 28px; background: rgba(8, 18, 29, 0.9); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: 6px 0; }
ul.plain a { color: var(--muted); }
ul.plain a:hover { color: var(--text); }
.disclaimer { font: 11px/1.6 var(--mono); color: var(--muted); letter-spacing: 0.03em; margin: 28px 0 8px; border-top: 1px solid var(--border); padding-top: 18px; }

/* ── Small screens ────────────────────────────────────── */
@media (max-width: 820px) {
  .grid-3, .grid-2, .calc, .foot-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .hero { padding: 48px 20px 32px; }
}
@media (max-width: 480px) {
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 14px; }
  .brand { font-size: 16px; }
}

/* ── Games ────────────────────────────────────────────── */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.game { display: flex; flex-direction: column; color: var(--text); }
.game:hover { text-decoration: none; border-color: var(--accent); }
.game h3 { font-size: 20px; }
.game .from { margin-top: auto; padding-top: 16px; font: 14px var(--mono); color: var(--muted); }
.game .from strong { color: var(--text); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.tags li { font: 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 5px 7px; }
select { width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: 15px var(--sans); }
.warn { color: var(--amber); }
.game-icon { display: block; width: 44px; height: 44px; margin-bottom: 14px; }
.hero-icon { width: 56px; height: 56px; margin-bottom: 18px; }
