/* ─────────────────────────────────────────────────────────────────
   ThePayoutGuy — shared base
   This file is loaded by every page (index/about/how-we-test/contact).
   Page-specific styles live inside a small <style> block in each .html.
   ───────────────────────────────────────────────────────────────── */

[data-palette="green"] {
  --bg:        #06080A;
  --bg-2:      #0B0E12;
  --surface:   #11161C;
  --surface-2: #161C24;
  --ink:       #F2F5F2;
  --ink-2:     #B4BCB6;
  --muted:     #6B7570;
  --line:      #1E2630;
  --line-2:    #161C24;
  --accent:    oklch(0.86 0.24 142);     /* neon green */
  --accent-2:  oklch(0.72 0.22 142);
  --accent-ink:#06080A;
  --accent-glow: 0 0 0 1px color-mix(in oklch, var(--accent), transparent 70%), 0 0 28px -2px color-mix(in oklch, var(--accent), transparent 55%);
  --warn:      oklch(0.78 0.22 30);
  --gold:      oklch(0.85 0.18 85);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { background: var(--bg); }
body {
  font-family: "Geist", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -10%, color-mix(in oklch, var(--accent), transparent 88%), transparent 60%),
    radial-gradient(700px 500px at 95% 10%, color-mix(in oklch, var(--accent), transparent 92%), transparent 60%),
    linear-gradient(180deg, transparent 0, color-mix(in oklch, var(--bg-2), transparent 50%) 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--ink), transparent 96%) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--ink), transparent 96%) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: 0.6;
}
#root { position: relative; z-index: 1; }
a { color: inherit; }

.serif { font-family: "Instrument Serif", serif; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.upper { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; font-weight: 600; }
em.accent {
  font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: -0.01em;
  text-shadow: 0 0 32px color-mix(in oklch, var(--accent), transparent 55%);
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ───── NAV ───── */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklch, var(--bg), transparent 30%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: "Instrument Serif", serif; font-style: italic; font-size: 19px; line-height: 1;
  padding-bottom: 2px;
  box-shadow: var(--accent-glow);
}
.brand-name { font-size: 15px; }
.brand-name b { font-weight: 700; letter-spacing: -0.02em; }
.brand-name span { color: var(--accent); font-weight: 500; }
.nav-links { display: flex; gap: 22px; margin-left: 22px; font-size: 13px; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 12px; font-size: 12px; color: var(--ink-2);
  cursor: pointer; font-family: "JetBrains Mono", monospace; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pill:hover { color: var(--ink); border-color: color-mix(in oklch, var(--accent) 40%, var(--line)); }
.pill svg { width: 12px; height: 12px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 8px; padding: 10px 14px;
  font: 700 13px/1 "Geist", sans-serif; cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease;
  box-shadow: var(--accent-glow);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary svg, .btn-ghost svg { width: 14px; height: 14px; flex: none; }

.btn-ghost {
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  border-radius: 8px; padding: 10px 14px; font: 600 13px/1 "Geist", sans-serif; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.02em;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); }

/* ───── Page header pattern (used on About / Contact / How-we-test) ───── */
.page-head { padding: 56px 0 36px; position: relative; }
.page-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 24px;
  font-family: "JetBrains Mono", monospace; font-weight: 500;
}
.page-head .eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); position: relative;
  box-shadow: 0 0 8px var(--accent);
}
.page-head .eyebrow .dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: var(--accent); opacity: 0.4; animation: pulse 1.6s ease-out infinite;
}
.page-head h1 {
  font-family: "Geist", sans-serif; font-weight: 800;
  font-size: clamp(40px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 22px; text-wrap: balance;
}
.page-head h1 em.accent { text-shadow: 0 0 18px color-mix(in oklch, var(--accent), transparent 70%); }
.page-head .lede {
  font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 620px; text-wrap: pretty;
}
.page-head .lede b { color: var(--ink); }

/* ───── Generic section title ───── */
.section { padding: 56px 0 32px; position: relative; }
.section-head { margin-bottom: 28px; }
.section-head .kicker {
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--accent);
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: "Geist", sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 8px; letter-spacing: -0.025em; line-height: 1;
}
.section-head h2 em {
  font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--accent);
}
.section-head .sub { color: var(--muted); margin: 0; font-size: 14px; max-width: 560px; line-height: 1.55; }

/* ───── FOOTER ───── */
footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--bg-2); position: relative; z-index: 2; }
.foot { padding: 44px 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h5 { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 700; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { text-decoration: none; color: var(--ink-2); font-size: 13px; }
.foot a:hover { color: var(--accent); }
.foot p { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 0 0 14px; max-width: 360px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 4px; padding: 5px 8px; font-size: 10px; color: var(--ink-2);
  font-family: "JetBrains Mono", monospace; font-weight: 600;
  letter-spacing: 0.08em;
}
.legal {
  border-top: 1px solid var(--line); padding: 18px 0;
  font-size: 11px; color: var(--muted); line-height: 1.7;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.legal b { color: var(--ink-2); }

/* ───── Reusable cards ───── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 22px;
}
.card.glow { position: relative; overflow: hidden; }
.card.glow::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
  box-shadow: var(--accent-glow);
}
.card .kicker {
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--accent);
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 10px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.005em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Definition list pattern */
.kv {
  display: grid; grid-template-columns: 160px 1fr; gap: 4px 18px;
  font-size: 14px; line-height: 1.5;
}
.kv dt {
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; padding-top: 2px;
}
.kv dd { margin: 0; color: var(--ink-2); }
.kv dd b { color: var(--ink); }

/* Mono table */
.data-table {
  width: 100%; border-collapse: collapse;
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.data-table th {
  text-align: left; padding: 12px 14px;
  background: var(--bg-2); color: var(--muted);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }
.data-table b { color: var(--ink); }
.data-table .ok { color: var(--accent); }
.data-table .warn { color: var(--warn); }
.data-table .sm { font-size: 11px; color: var(--muted); }

/* Form */
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
}
.form-row input, .form-row textarea, .form-row select {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 12px 14px;
  font: 500 14px/1.4 "Geist", sans-serif;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  resize: vertical;
}
.form-row textarea { min-height: 140px; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent), transparent 80%);
}
.form-row .hint { font-size: 11px; color: var(--muted); font-family: "JetBrains Mono", monospace; }

/* Responsive */
@media (max-width: 980px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { padding-top: 10px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   Reusable patterns — used by multiple pages
   ───────────────────────────────────────────────────────────── */

/* "Principles" / numbered card grid */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; position: relative; overflow: hidden;
}
.principle::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); box-shadow: var(--accent-glow);
}
.principle .n {
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--accent);
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 14px;
}
.principle h4 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
.principle p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* FAQ accordion */
.faq { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: transparent; border: none; cursor: pointer;
  color: var(--ink); text-align: left;
  font-family: "Geist", sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
}
.faq-q:hover { color: var(--accent); }
.faq-q .plus {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--accent); font-family: "JetBrains Mono", monospace; font-weight: 600;
  flex: none; transition: transform 200ms ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px; max-height: 0; overflow: hidden;
  transition: max-height 320ms ease, padding 320ms ease;
  color: var(--ink-2); font-size: 14px; line-height: 1.65;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 22px 20px; }
.faq-a b { color: var(--ink); }

/* Policy / legal page body */
.policy-body { max-width: 720px; }
.policy-section { padding: 0 0 36px; border-bottom: 1px dashed var(--line); margin-bottom: 36px; }
.policy-section:last-child { border-bottom: none; }
.policy-section a { color: var(--accent); }
.policy-section ul li b { color: var(--ink); }

@media (max-width: 980px) {
  .principles { grid-template-columns: 1fr; }
}

/* ── NAV DROPDOWN ────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-caret { font-size: 10px; opacity: 0.6; margin-left: 2px; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px; min-width: 220px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  z-index: 100; display: flex; flex-direction: column; gap: 2px; margin-top: 0; padding-top: 20px;
}
.nav-drop-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2); text-decoration: none;
  transition: background 150ms, color 150ms;
}
.nav-drop-menu a:hover { background: var(--surface-2); color: var(--accent); }
.nav-drop-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.drop-divider { height: 1px; background: var(--line); margin: 4px 0; }

/* ── HOMEPAGE CATEGORY CARDS ─────────────────────────────────── */
.categories { padding: 64px 0 48px; }
.cat-head { margin-bottom: 32px; }
.cat-head h2 {
  font-family: "Geist", sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.025em;
  margin: 0 0 10px; line-height: 1;
}
.cat-head h2 em {
  font-family: "Instrument Serif", serif; font-style: italic;
  font-weight: 400; color: var(--accent);
}
.cat-head p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 520px; margin: 0; }
.section-kicker {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 12px;
}
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px; text-decoration: none;
  transition: border-color 180ms, transform 180ms;
  overflow: hidden;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-card.hot { border-color: color-mix(in oklch, var(--accent) 30%, var(--line)); }
.cat-card.hot::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent); box-shadow: var(--accent-glow);
}
.cat-hot {
  position: absolute; top: 12px; right: 12px;
  font-family: "JetBrains Mono", monospace; font-size: 9px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 3px 7px; border-radius: 4px;
}
.cat-flag { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.cat-label { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.cat-sub {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
}
.cat-arrow { margin-top: 8px; color: var(--accent); width: 16px; height: 16px; }

/* ── TRUST STRIP ─────────────────────────────────────────────── */
.trust-strip { padding: 64px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip h2 {
  font-family: "Geist", sans-serif; font-weight: 800;
  font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.025em;
  margin: 0 0 28px; line-height: 1.05;
}
.trust-strip h2 em {
  font-family: "Instrument Serif", serif; font-style: italic;
  font-weight: 400; color: var(--accent);
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 22px;
}
.trust-icon { font-size: 28px; margin-bottom: 12px; }
.trust-card h4 { font-size: 15px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.005em; }
.trust-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ── CASINOS INDEX PAGE ──────────────────────────────────────── */
.casinos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; margin-top: 28px;
}
.casino-index-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px; text-decoration: none;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 180ms;
}
.casino-index-card:hover { border-color: var(--accent); }
.cic-head { display: flex; align-items: center; gap: 12px; }
.cic-logo {
  width: 40px; height: 40px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  font-family: "Instrument Serif", serif; font-size: 20px;
  color: var(--ink); border: 1px solid var(--line);
}
.cic-name { display: flex; flex-direction: column; gap: 3px; }
.cic-name b { font-size: 15px; font-weight: 600; color: var(--ink); }
.cic-name span { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cic-time { font-family: "JetBrains Mono", monospace; font-size: 24px; font-weight: 700; color: var(--accent); }
.cic-meta { font-size: 12px; color: var(--muted); }
.cic-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
  margin-top: auto;
}

@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ── Contact page topic buttons ──────────────────────────────── */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.topic {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px; cursor: pointer;
  transition: border-color 160ms, background 160ms;
  text-align: left; color: var(--ink);
}
.topic:hover { border-color: var(--accent); }
.topic.active { border-color: var(--accent); background: var(--accent); color: #ffffff !important; }
.topic.active .ic svg, .topic.active .ttl, .topic.active .sub { color: #ffffff !important; }
.topic .ic { margin-bottom: 8px; width: 20px; height: 20px; color: var(--accent); }
.topic.active .ic { color: #ffffff; }
.topic .ttl { font-size: 13px; font-weight: 700; line-height: 1.2; margin-bottom: 2px; }
.topic .sub { font-family: "JetBrains Mono", monospace; font-size: 9px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.topic.active .sub { color: rgba(255,255,255,0.7); }

/* ── Compliance badge links ─────────────────────────────────── */
.badges a.badge { text-decoration: none; color: inherit; }
.badges a.badge:hover { background: var(--accent); color: #000; border-color: var(--accent); }
