/* ── BBBRadar shared styles ─────────────────────────────────────────────────── */
:root {
  --bg:          #060d0a;
  --surface:     #0d1f14;
  --surface-2:   #0a1810;
  --accent:      #78ff78;
  --accent-dim:  rgba(120,255,120,0.15);
  --accent-glow: rgba(120,255,120,0.4);
  --grid:        rgba(120,255,120,0.12);
  --border:      rgba(120,255,120,0.16);
  --text:        #e0f8e8;
  --text-muted:  #8fb89e;
  --radius:      8px;
  --maxw:        1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

.mono { font-family: 'Space Mono', monospace; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ── Nav ─────────────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,13,10,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 1.15rem;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
/* One wrapper so the whole name is a single flex item — otherwise .brand's gap
   falls between BBB and Radar and sets the name as two words. */
.brand-name { letter-spacing: -0.02em; }
.brand-name span { color: var(--accent); }
.brand svg { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.nav-link {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; padding: 0.5rem 0.75rem; border-radius: 6px;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color 150ms ease, background 150ms ease;
}
.nav-link:hover { color: var(--text); text-decoration: none; background: var(--accent-dim); }
.nav-link[aria-current="page"] { color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 0.9rem;
  padding: 0.8rem 1.4rem; border-radius: var(--radius);
  min-height: 44px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; transition: opacity 150ms ease, background 150ms ease, transform 100ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #04140a; }
.btn-primary:hover { opacity: 0.88; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-dim); }
.btn-block { width: 100%; }

/* ── Headings & eyebrow ──────────────────────────────────────────────────────── */
.eyebrow {
  font-family: 'Space Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
h1 { font-family: 'Space Mono', monospace; font-weight: 700; line-height: 1.1;
     font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-family: 'Space Mono', monospace; font-weight: 700; line-height: 1.15;
     font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 46ch; }

/* ── Product hero ────────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  padding: 3.5rem 0;
}
.hero-media img {
  width: 100%; height: auto; display: block;
  border-radius: 14px; border: 1px solid var(--border);
  box-shadow: 0 0 40px var(--accent-dim);
}
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.gallery-item {
  padding: 0; border: 0; background: none; cursor: pointer; display: block;
  border-radius: 10px; overflow: hidden; line-height: 0;
}
.gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: 10px; border: 1px solid var(--border); box-shadow: none;
  transition: transform 200ms ease;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item--video { position: relative; grid-column: 1 / -1; }
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(3,8,5,0.72); border: 1px solid var(--border);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  padding-left: 3px; pointer-events: none; transition: background 150ms ease;
}
.gallery-item--video:hover .play-badge { background: var(--accent); color: #04140a; }

/* ── Lightbox ────────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3,8,5,0.92); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
  opacity: 0; transition: opacity 200ms ease;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lb-img, .lb-video {
  max-width: min(90vw, 760px); max-height: 86vh; width: auto; height: auto;
  border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 10px 60px rgba(0,0,0,0.6);
}
.lb-img[hidden], .lb-video[hidden] { display: none; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(13,31,20,0.9); color: var(--text);
  border: 1px solid var(--border); border-radius: 50%; width: 48px; height: 48px;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 150ms ease, color 150ms ease;
}
.lb-close:hover, .lb-nav:hover { background: var(--accent); color: #04140a; }
.lb-close { top: 3vh; right: 3vw; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 3vw; }
.lb-next { right: 3vw; }
@media (max-width: 640px) {
  .lb-nav { top: auto; bottom: 3vh; transform: none; }
  .lb-prev { left: 26vw; }
  .lb-next { right: 26vw; }
}

/* ── Feature grid ────────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.feature .ico {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem;
  color: var(--accent);
}
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Steps ───────────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 3.2rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid var(--accent);
  color: var(--accent); font-family: 'Space Mono', monospace; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Specs ───────────────────────────────────────────────────────────────────── */
.specs { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.specs dl { display: grid; grid-template-columns: 200px 1fr; }
.specs dt, .specs dd { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--border); }
.specs dt { font-family: 'Space Mono', monospace; font-size: 0.85rem; color: var(--accent);
            background: var(--surface-2); }
.specs dd { color: var(--text); }
.specs dl > :nth-last-child(1), .specs dl > :nth-last-child(2) { border-bottom: none; }

/* ── Buy card ────────────────────────────────────────────────────────────────── */
.buy-card {
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 14px; padding: 1.75rem; max-width: 460px;
  box-shadow: 0 0 40px var(--accent-dim);
}
.stock {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--accent);
  background: var(--accent-dim); padding: 0.35rem 0.7rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.stock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
              box-shadow: 0 0 8px var(--accent); }
.stock.out { color: var(--text-muted); background: rgba(143,184,158,0.12); }
.stock.out .dot { background: var(--text-muted); box-shadow: none; }
.price { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 2.4rem; line-height: 1; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-intro { color: var(--accent); }
.dispatch { color: var(--text-muted); font-size: 0.9rem; margin: 0.75rem 0 1.25rem; }
.paypal-slot { margin-bottom: 0.75rem; }
.ship-note { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.9rem; }
.ship-note strong { color: var(--text); }

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */
.faq-group { margin-bottom: 2.5rem; }
.faq-group h2 { margin-bottom: 1.25rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 0.75rem; background: var(--surface); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: 'Space Mono', monospace; font-size: 1.3rem;
  color: var(--accent); transition: transform 200ms ease; flex-shrink: 0;
}
.faq-item[open] summary::after { content: '\2013'; }
.faq-item .answer { padding: 0 1.25rem 1.1rem; color: var(--text-muted); }
.faq-item .answer a { color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 3rem;
  padding: 2rem 0; color: var(--text-muted); font-size: 0.85rem;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* ── Notify form ─────────────────────────────────────────────────────────────── */
.notify-label { font-size: 0.9rem; color: var(--text-muted); margin: 0.5rem 0 0.6rem; }
.notify-form { display: flex; gap: 0.5rem; }
.notify-form input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9rem; font-family: inherit;
  min-height: 44px; outline: none; transition: border-color 150ms ease;
}
.notify-form input::placeholder { color: var(--text-muted); }
.notify-form input:focus { border-color: var(--accent); }
.notify-form button {
  background: var(--accent); color: #04140a; border: none; padding: 0.75rem 1.25rem;
  border-radius: var(--radius); font-family: 'Space Mono', monospace; font-size: 0.8rem;
  font-weight: 700; cursor: pointer; white-space: nowrap; min-height: 44px; transition: opacity 150ms ease;
}
.notify-form button:hover { opacity: 0.88; }
.success-msg {
  display: none; font-family: 'Space Mono', monospace; font-size: 0.9rem; color: var(--accent);
  margin-top: 0.75rem; align-items: center;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Variant picker & referral code ──────────────────────────────────────────── */
.variant-group { border: 0; display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0 0; }
.variant {
  display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.85rem 1rem; min-height: 44px; transition: border-color 150ms ease, background 150ms ease;
}
.variant:hover { border-color: var(--accent); }
.variant--disabled { opacity: 0.5; cursor: not-allowed; }
.variant--disabled:hover { border-color: var(--border); }
.variant--disabled .variant-note { color: var(--text-muted); }
.variant:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); }
.variant:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.variant input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.variant-body { display: flex; flex-direction: column; gap: 0.1rem; }
.variant-title { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 0.95rem; }
.variant-sub { font-size: 0.9rem; color: var(--text-muted); }
.variant-note { font-size: 0.85rem; color: var(--accent); }

.code-row { margin-top: 1rem; }
.code-row label { display: block; font-size: 0.9rem; margin-bottom: 0.4rem; }
.code-optional { color: var(--text-muted); }
.code-row input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9rem; font-family: inherit;
  min-height: 44px; outline: none; text-transform: uppercase; transition: border-color 150ms ease;
}
.code-row input::placeholder { color: var(--text-muted); text-transform: none; }
.code-row input:focus { border-color: var(--accent); }
.code-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; }

.order-total { font-family: 'Space Mono', monospace; font-size: 1.05rem; margin-top: 1rem; }
.order-total strong { color: var(--accent); }

/* #d78a8a rather than a saturated red: 6.6:1 on --surface, where #ff5c5c only
   reaches 4.2:1 and fails AA for body text on this dark ground. */
.checkout-error {
  margin-top: 0.75rem; font-size: 0.9rem; color: #d78a8a;
  border-left: 2px solid #d78a8a; padding-left: 0.75rem;
}

/* ── Motion ──────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
  .hero-media { order: -1; }
  .features, .steps { grid-template-columns: 1fr; }
  .specs dl { grid-template-columns: 130px 1fr; }
}
@media (max-width: 520px) {
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .nav-links { width: 100%; }
  .buy-card { padding: 1.35rem; }
  .price { font-size: 2rem; }
  .notify-form { flex-direction: column; }
  .notify-form button { width: 100%; }
}
