/* ============================================================
   Bomba — Legal / Domain Site
   Shared stylesheet. English, LTR. Static site (no framework).
   Brand tokens lifted from the Bomba app/logo system.
   ============================================================ */

:root {
  /* Dark theme — lifted from the Bomba app (src/constants/theme.ts "stadium"). */
  --ink:     #0A0B0F;   /* brand near-black; kept as the dark base behind lime chips */
  --lime:    #C4FF3E;   /* single accent — app "points" / accent color */

  /* Surfaces */
  --paper:   #0A0B0F;   /* page background (app bg) */
  --paper-2: #15171C;   /* cards / subtle fills (app surface) */
  --surface-2: #1E2128; /* elevated fills (app surface2) */

  --text:    #FFFFFF;
  --muted:   rgba(255, 255, 255, 0.60);
  --muted-2: rgba(255, 255, 255, 0.40);
  --line:    rgba(255, 255, 255, 0.10);
  --line-2:  rgba(255, 255, 255, 0.06);

  /* on dark frame (footer + dark chips) */
  --on-dark:        rgba(255, 255, 255, 0.92);
  --on-dark-muted:  rgba(255, 255, 255, 0.52);
  --on-dark-line:   rgba(255, 255, 255, 0.10);

  --sans: 'Heebo', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --maxw-doc:  720px;   /* legal + support reading column */
  --maxw-wide: 1040px;  /* landing bands */
  --radius:    16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection { background: var(--lime); color: var(--ink); }

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

/* ── Layout helpers ───────────────────────────────────────── */
.wrap      { width: 100%; max-width: var(--maxw-wide); margin-inline: auto; padding-inline: 24px; }
.wrap-doc  { width: 100%; max-width: var(--maxw-doc);  margin-inline: auto; padding-inline: 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Brand lockup ─────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}
.logo .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lime);
  margin-inline-start: 4px;
  align-self: flex-end;
  margin-bottom: 3px;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--text); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--text); }

/* ── Buttons / store badges ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--on-dark);
  text-decoration: none;
  transition: transform .12s ease, opacity .15s ease;
}
.store-badge:hover { opacity: 0.92; }
.store-badge:active { transform: translateY(1px); }
.store-badge .glyph {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--lime);
  flex: none;
}
.store-badge .glyph svg { width: 100%; height: 100%; display: block; }
.store-badge .label { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .label .top {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.store-badge .label .name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 84px 0 64px; }
.hero .wordmark {
  font-weight: 900;
  font-size: clamp(56px, 12vw, 116px);
  letter-spacing: -0.05em;
  line-height: 0.92;
  display: inline-flex;
  align-items: flex-end;
  margin: 0 0 28px;
}
.hero .wordmark .dot {
  width: 0.12em; height: 0.12em;
  border-radius: 999px;
  background: var(--lime);
  margin-inline-start: 0.07em;
  margin-bottom: 0.13em;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero .lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero .fineprint {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.hero .fineprint b { color: var(--text); font-weight: 700; }

/* ── Section scaffolding ──────────────────────────────────── */
.band { padding: 64px 0; border-top: 1px solid var(--line); }
.band-head { margin-bottom: 36px; }
.band-head h2 {
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}
.step .num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
}
.step .num::after {
  content: "";
  display: block;
  width: 24px; height: 3px;
  background: var(--lime);
  margin-top: 10px;
}
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 18px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* trust list */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.trust { padding: 0; margin: 0; }
.trust .check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--lime);
  display: grid; place-items: center;
  margin-top: 1px;
}
.trust .check svg { width: 13px; height: 13px; color: var(--ink); }
.trust b { font-weight: 700; display: block; font-size: 16px; }
.trust span.t { color: var(--muted); font-size: 14.5px; }

/* ── Page links grid (landing → other pages) ──────────────── */
.page-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.page-link:hover { border-color: rgba(255,255,255,0.22); background: var(--paper-2); }
.page-link:active { transform: translateY(1px); }
.page-link .pl-title { display: block; font-weight: 700; font-size: 17px; }
.page-link .pl-sub { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.page-link .arrow { color: var(--muted-2); flex: none; }

/* ── Document (legal) pages ───────────────────────────────── */
.doc { padding-block: 56px 24px; }
.doc-header { margin-bottom: 36px; }
.doc-header h1 {
  font-weight: 800;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 12px 0 14px;
}
.doc-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.doc-rule { height: 1px; background: var(--line); border: 0; margin: 28px 0 0; }

/* table of contents (optional, long docs) */
.toc {
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}
.toc .eyebrow { margin-bottom: 10px; display: block; }
.toc ol { margin: 0; padding-inline-start: 1.2em; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }

/* prose body — paste finalized legal copy here, it auto-styles */
.prose { margin-top: 36px; }
.prose h2 {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 44px 0 12px;
  scroll-margin-top: 84px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 700; font-size: 17px; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; max-width: 70ch; color: rgba(255,255,255,0.86); }
.prose ul, .prose ol { margin: 0 0 16px; padding-inline-start: 1.4em; max-width: 70ch; }
.prose li { margin: 7px 0; color: rgba(255,255,255,0.86); }
.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose strong { font-weight: 700; }
.prose small { color: var(--muted); font-size: 13.5px; }

/* numbered steps block (account deletion) */
.steps-list { counter-reset: step; margin: 24px 0; padding: 0; list-style: none; max-width: 70ch; }
.steps-list li {
  position: relative;
  padding: 0 0 18px 52px;
  margin: 0;
}
.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  display: grid; place-items: center;
}
.steps-list li b { display: block; font-weight: 700; margin-bottom: 3px; }
.steps-list li span { color: var(--muted); }

/* placeholder note (remove when real copy is added) */
.placeholder-note {
  margin: 0 0 32px;
  padding: 14px 18px;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 10px;
  background: rgba(196,255,62,0.10);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

/* ── Contact block (legal + support) ──────────────────────── */
.contact-block {
  margin-top: 48px;
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.contact-block h2 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.contact-block p { margin: 0; color: var(--muted); font-size: 15px; }
.contact-block a.email {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ── Support-specific ─────────────────────────────────────── */
.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 22px; color: var(--muted); max-width: 64ch; }
.faq .answer p { margin: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  margin-top: 80px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  color: var(--on-dark);
}
.site-footer .inner { padding-block: 56px 40px; }
.site-footer .logo { color: #fff; }
.site-footer .tagline { color: var(--on-dark-muted); font-size: 14.5px; margin: 14px 0 0; max-width: 40ch; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--on-dark);
  text-decoration: none;
  font-size: 14.5px;
  padding: 7px 0;
  min-height: 24px;
}
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--on-dark-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .points {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--on-dark-muted);
}
.footer-bottom .points b { color: var(--lime); font-weight: 700; }
.footer-bottom .copy { font-size: 12.5px; color: var(--on-dark-muted); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  .band { padding: 48px 0; }
  .steps, .trust, .page-links { grid-template-columns: 1fr; }
  .site-header .bar { height: 58px; }
  .nav a { padding: 8px 9px; }
  .doc { padding-block: 40px 16px; }
  /* Footer scales down on smaller screens */
  .site-footer { margin-top: 56px; }
  .site-footer .inner { padding-block: 40px 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 32px; }
  .footer-bottom { margin-top: 32px; flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; }
  .store-badges { flex-direction: column; }
  .store-badge { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
