/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #eef1f5;
  --border: #dde1e7;
  --text: #1c2230;
  --text-muted: #5b6472;
  --text-faint: #8892a0;
  --brand: #29508a;       /* steel blue — deliberately distinct from JazzCash's own red/orange branding */
  --brand-dark: #1c3960;
  --accent: #2f7ddb;      /* CTA blue */
  --accent-hover: #2465b3;
  --hero-bg: #12182b;
  --hero-bg-2: #1b2440;
  --warning-bg: #fff4e5;
  --warning-border: #f0c36d;
  --confirm-bg: #fef2f2;
  --confirm-border: #f3b4b4;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 4px 10px rgba(16, 24, 40, 0.10);
  --max-width: 780px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.wide-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.logo-sub {
  font-weight: 500;
  color: var(--text-faint);
  font-size: 12px;
  margin-left: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.main-nav a:hover { background: var(--surface-alt); text-decoration: none; color: var(--text); }
.main-nav a.active { color: var(--brand); background: #e5eefb; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex: none;
}
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }

/* Checkbox-hack mobile menu — no JS. The checkbox is visually hidden; the label
   is the visible hamburger button; CSS alone toggles .main-nav via :checked. */
.nav-toggle-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: radial-gradient(1200px 400px at 20% -10%, var(--hero-bg-2), var(--hero-bg));
  color: #f2f4f8;
  padding: 44px 0 40px;
}
.hero .container { max-width: 860px; }
.breadcrumb {
  font-size: 13px;
  color: #9aa3b8;
  margin-bottom: 14px;
}
.breadcrumb a { color: #b9c2d6; }
h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.22;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero-dek {
  font-size: 17px;
  color: #c4cbdc;
  max-width: 640px;
  margin: 0 0 20px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.hero-cta-note {
  font-size: 12.5px;
  color: #9aa3b8;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 13.5px;
  color: #9aa3b8;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
}
.byline strong { color: #d7dcea; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #d7dcea;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ============================================================
   Disclaimer / notice callouts
   ============================================================ */
.callout {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14.5px;
  margin: 18px 0;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-muted);
}
.callout strong { color: var(--text); }
.callout.warning { background: var(--warning-bg); border-color: var(--warning-border); color: #7a5a12; }
.callout.warning strong { color: #5c4409; }
.callout.age {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #101623;
  color: #e4e8f2;
  border: none;
}
.callout.age strong, .callout.age a { color: #ffffff; }
.age-badge {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eab308;
  color: #101623;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Table of contents
   ============================================================ */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.toc summary {
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "▾";
  color: var(--text-faint);
  transition: transform 0.15s ease;
}
.toc[open] summary::after { transform: rotate(180deg); }
.toc-list {
  padding: 0 16px 14px;
  margin: 0;
  columns: 2;
  column-gap: 24px;
  list-style: none;
}
.toc-list li { break-inside: avoid; margin-bottom: 8px; font-size: 14px; }
.toc-list a { color: var(--text-muted); }
.toc-list a:hover { color: var(--brand); }

/* ============================================================
   Article body
   ============================================================ */
.article { padding: 8px 0 8px; }
.article h2 {
  font-size: 1.4rem;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
  scroll-margin-top: 76px;
}
.article h3 {
  font-size: 1.12rem;
  margin: 26px 0 10px;
  scroll-margin-top: 76px;
}
.article p { margin: 0 0 16px; color: var(--text); }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14.5px;
}
.article th, .article td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.article th { background: var(--surface-alt); font-weight: 700; }
.table-scroll { overflow-x: auto; margin: 0 0 20px; border-radius: var(--radius-sm); }
.table-scroll table { margin: 0; }

/* ============================================================
   Platform / CTA cards
   ============================================================ */
.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 18px 0 28px;
  box-shadow: var(--shadow);
}
.platform-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.platform-card-head h3.platform-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  margin: 0;
  scroll-margin-top: 0;
}
.platform-badge {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--brand);
  flex: none;
}
.tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.platform-card p:last-of-type { margin-bottom: 14px; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
  transition: background 0.15s ease, transform 0.05s ease;
}
.cta-button:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }
.cta-button:active { transform: translateY(1px); }
.cta-button.secondary {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.cta-button.secondary:hover { background: #e5eefb; }
.cta-meta {
  font-size: 12.5px;
  color: var(--text-faint);
}
.cta-meta strong { color: var(--text-muted); }

/* ============================================================
   Steps list
   ============================================================ */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 20px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -1px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   Pros / cons + tip grid
   ============================================================ */
.tip-list { list-style: none; margin: 0 0 20px; padding: 0; }
.tip-list li {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14.5px;
}
.tip-list li strong { color: var(--text); }

/* ============================================================
   Responsible gambling block
   ============================================================ */
.rg-block {
  background: var(--hero-bg);
  color: #e4e8f2;
  border-radius: var(--radius);
  padding: 22px;
  margin: 26px 0;
}
.rg-block h2 { color: #fff; margin-top: 0; }
.rg-block p { color: #c4cbdc; }
.rg-block a { color: #8fb8f0; }

/* ============================================================
   FAQ accordion
   ============================================================ */
/* .faq-item is a native <details> element — open/close needs no JS. */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  padding: 16px 4px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-faint);
  flex: none;
  transition: transform 0.15s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a-inner {
  padding: 0 4px 16px;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ============================================================
   Related guides
   ============================================================ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 18px 0 30px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-weight: 700;
  color: var(--text);
}
.related-card:hover { border-color: var(--brand); text-decoration: none; }
.related-card span {
  display: block;
  font-weight: 500;
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 4px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--hero-bg);
  color: #aab1c4;
  margin-top: 56px;
  padding: 44px 0 24px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid .footer-heading {
  color: #e4e8f2;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-grid a { color: #aab1c4; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-disclaimer {
  padding-top: 22px;
  line-height: 1.7;
  color: #8790a3;
}
.footer-disclaimer strong { color: #c4cbdc; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  color: #6d7690;
  font-size: 12.5px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items:center; justify-content:center; }
  .logo-sub { display: none; }
  .nav-right { gap: 10px; }
  .nav-cta { padding: 8px 12px; font-size: 13px; }
  .nav-toggle-checkbox:checked ~ .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle span { background: transparent; }
  .nav-toggle-checkbox:checked ~ .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle-checkbox:checked ~ .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
  .toc-list { columns: 1; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-button { justify-content: center; }
}
