/* DBBet Indonesia — Design System
   Brand-consistent with the rest of the DBBet fleet (Kenya/Tanzania/Somalia):
   same core palette (#121212 base, #ff335c accent, Montserrat) and the same
   real logo.svg wordmark, reused as-is — this is one brand across GEOs, and
   should read as recognizably "DBBet" everywhere, not a one-off redesign.
   Differentiation from local Indonesian competitors (the hijacked-domain
   spam network, sbo.net's blue-corporate look) comes from layout/component
   choices and a small secondary teal accent, not from a different brand
   palette — see the fleet's real, shared design tokens below. */

:root {
  --bg: #121212;
  --surface: #1a1a1a;
  --surface-2: #242424;
  --border: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(255, 51, 92, 0.35);
  --text: #ffffff;
  --text-dim: #b3b3b3;
  --accent: #ff335c;
  --accent-hover: #ff4d72;
  --accent-soft: rgba(255, 51, 92, 0.14);
  --accent-2: #2dd4bf;
  --danger: #ffb020;
  --radius: 10px;
  --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; max-width: 65ch; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
/* FIXED (real PageSpeed Insights/Lighthouse finding, 2026-08-25): "Links rely on color to be
   distinguishable" -- inline links inside real prose (paragraphs, list items, the disclosure
   box) were only distinguished from body text by color, failing WCAG 1.4.1 for colorblind/
   low-vision users. Nav/footer-grid/card-heading/breadcrumb links are unaffected -- they're
   not prose, they're already visually distinct by position/weight/component. */
p a, li a, .disclosure-box a { text-decoration: underline; text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

/* Header / primary nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.logo { display: inline-flex; align-items: center; }
.primary-nav { display: flex; gap: 1.5rem; align-items: center; }
.primary-nav a { color: var(--text-dim); font-weight: 600; font-size: 0.95rem; }
.primary-nav a:hover { color: var(--text); text-decoration: none; }
/* FIXED: .primary-nav a (class+type, specificity 0,1,1) was silently beating .nav-cta
   (class only, 0,1,0), so the button rendered with --text-dim gray text on the pink
   background instead of the intended dark text -- ~1.7:1 contrast, effectively invisible. */
.primary-nav a.nav-cta {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
}
.primary-nav a.nav-cta:hover { background: var(--accent-hover); color: var(--bg); text-decoration: none; }
.lang-toggle { color: var(--text-dim); font-size: 0.85rem; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; }
.header-actions { display: none; align-items: center; gap: 0.5rem; margin-left: auto; }
.lang-switch {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  line-height: 1;
}
.lang-switch:hover { color: var(--text); border-color: var(--accent-2); text-decoration: none; }

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .mobile-menu-btn { display: block; order: 3; }
  .primary-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
  .header-actions { display: flex; order: 2; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--text-dim); padding: 1rem 0 0; }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs .sep { margin: 0 0.4rem; }
.breadcrumbs .current { color: var(--text); }

/* Hero */
.hero { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.hero-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.hero-grid { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.hero-content { width: 100%; }
.hero-media { width: 100%; max-width: 420px; order: -1; }
.hero-media img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) {
  .hero-grid { flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; }
  .hero-content { flex: 1 1 52%; }
  .hero-media { flex: 0 0 38%; max-width: 380px; order: 0; }
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent-2); text-decoration: none; }

/* Card grid (pillar teasers, help articles) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card h3, .card h3 a { color: var(--accent); }

/* Data tables (bonus tiers, payment methods) */
.data-table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table { width: 100%; border-collapse: collapse; min-width: 480px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th { color: var(--accent); font-family: var(--font-display); font-weight: 600; }

/* Sections */
section { padding: 2.5rem 0; }
section.alt { background: var(--surface); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 700; }

/* Trust / disclosure box */
.disclosure-box {
  background: var(--surface-2);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 1.5rem 0;
}

/* Placeholder marker — visually obvious in any local/staging review,
   never meant to reach production (see technical/testing-and-qa.md) */
.placeholder-fact {
  background: rgba(229, 72, 77, 0.15);
  border: 1px dashed var(--danger);
  color: var(--danger);
  padding: 0 0.35rem;
  border-radius: 4px;
  font-weight: 700;
}

/* Promo code display */
.promo-code-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.promo-code-chip {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px dashed var(--border-accent);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
}

/* Author box */
.author-box { display: flex; gap: 1rem; align-items: center; padding: 1rem; background: var(--surface); border-radius: var(--radius); margin: 1.5rem 0; }
.author-box img { width: 56px; height: 56px; border-radius: 50%; }

/* APK install-step illustrations */
.step-grid .card { text-align: center; }
.step-shot { max-width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 0.75rem; background: #fff; }
.step-grid .card h3 { color: var(--text); font-size: 1rem; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.foot-grid h3 { color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.foot-grid a { display: block; color: var(--text-dim); font-size: 0.9rem; padding: 0.15rem 0; }
.foot-legal { border-top: 1px solid var(--border); padding-top: 1.25rem; font-size: 0.8rem; color: var(--text-dim); }
.foot-disclosure { font-size: 0.8rem; color: var(--text-dim); max-width: 70ch; margin-bottom: 1rem; }

/* Sticky mobile CTA */
.sticky-mobile-cta { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: 4.25rem; }
  .sticky-mobile-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 0.55rem 0.75rem; align-items: center; gap: 0.5rem;
  }
  .sticky-mobile-cta-bonus {
    color: var(--text-dim);
    font-size: 0.72rem;
    line-height: 1.15;
    flex: 1 1 auto;
    min-width: 0;
  }
  .sticky-mobile-cta .btn {
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .sticky-mobile-cta-bonus { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
