/*
 * Black Bar: components
 * Every value comes from tokens.css. Load tokens.css first.
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bb-black);
  color: var(--bb-paper);
  font-family: var(--bb-sans);
  font-size: var(--bb-text-body);
  line-height: 1.6;
  overflow-x: clip;
}
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--bb-lime); color: var(--bb-lime-ink); }

/* Layout */
.bb-wrap { max-width: var(--bb-max); margin: 0 auto; padding: 0 var(--bb-gutter); }
.bb-section { padding: var(--bb-space-9) 0; border-top: var(--bb-hair); }
.bb-section--tight { padding: var(--bb-space-8) 0; }
.bb-measure { max-width: var(--bb-measure); }

/* Type */
.bb-hero-title, .bb-h2, .bb-h3 {
  font-family: var(--bb-display);
  font-weight: var(--bb-weight-display);
  margin: 0;
  text-wrap: balance;
}
.bb-hero-title { font-size: var(--bb-text-hero); letter-spacing: var(--bb-tracking-hero); line-height: var(--bb-leading-hero); }
.bb-h2 { font-size: var(--bb-text-h2); letter-spacing: var(--bb-tracking-h2); line-height: 1.06; }
.bb-h3 { font-size: var(--bb-text-h3); font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.bb-lead { font-size: var(--bb-text-lead); color: var(--bb-mute); line-height: 1.55; margin: var(--bb-space-5) 0 0; max-width: 600px; }
.bb-label {
  font-family: var(--bb-mono);
  font-size: var(--bb-text-label);
  letter-spacing: var(--bb-tracking-label);
  text-transform: uppercase;
  color: var(--bb-mute);
  font-weight: 400;
}
.bb-label--lime { color: var(--bb-lime); }
.bb-label a { text-decoration: underline; text-underline-offset: 3px; }

/* Signature 1: the skewed marker swipe behind one word */
.bb-mark { position: relative; display: inline-block; color: var(--bb-lime-ink); padding: 0 .12em; z-index: 0; white-space: nowrap; }
.bb-mark::before {
  content: "";
  position: absolute;
  inset: .1em -.04em .02em;
  background: var(--bb-lime);
  transform: skewX(var(--bb-skew));
  z-index: -1;
}

/* Signature 2: redaction bars that reveal on hover or focus */
.bb-redact {
  background: var(--bb-paper);
  color: transparent;
  border-radius: var(--bb-radius-sm);
  padding: 0 .2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  cursor: help;
  transition: background .2s, color .2s;
}
.bb-redact:hover, .bb-redact:focus { background: var(--bb-lime-wash); color: var(--bb-lime); outline: none; }
.bb-sheet .bb-redact { background: var(--bb-sheet-ink); }
.bb-sheet .bb-redact:hover, .bb-sheet .bb-redact:focus { background: var(--bb-lime); color: var(--bb-lime-ink); }

/* Announcement strip */
.bb-strip { border-bottom: var(--bb-hair); text-align: center; padding: var(--bb-space-2) var(--bb-gutter); }

/* Nav */
.bb-nav { border-bottom: var(--bb-hair); }
.bb-nav-row { display: flex; align-items: center; justify-content: space-between; gap: var(--bb-space-4); padding-block: var(--bb-space-4); }
.bb-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--bb-display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; }
.bb-logo-mark { width: 30px; height: 18px; background: var(--bb-lime); transform: skewX(var(--bb-skew)); position: relative; flex: 0 0 auto; }
.bb-logo-mark::after { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 4px; background: var(--bb-black); }
.bb-nav-links { display: flex; gap: var(--bb-space-5); list-style: none; margin: 0; padding: 0; }
.bb-nav-links a { text-decoration: none; font-family: var(--bb-mono); font-size: var(--bb-text-label); letter-spacing: var(--bb-tracking-label); text-transform: uppercase; color: var(--bb-mute); }
.bb-nav-links a:hover, .bb-nav-links a[aria-current] { color: var(--bb-paper); }
.bb-nav-actions { display: flex; align-items: center; gap: var(--bb-space-4); }
.bb-subnav { border-bottom: var(--bb-hair); overflow-x: auto; scrollbar-width: none; }
.bb-subnav ul { display: flex; gap: var(--bb-space-5); list-style: none; margin: 0; padding: var(--bb-space-3) 0; white-space: nowrap; }

/* Buttons */
.bb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--bb-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 18px; border: 1px solid transparent; border-radius: var(--bb-radius);
  text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.bb-btn--lime { background: var(--bb-lime); color: var(--bb-lime-ink); }
.bb-btn--lime:hover { background: var(--bb-lime-deep); }
.bb-btn--ghost { background: transparent; color: var(--bb-paper); border-color: var(--bb-rule-bright); }
.bb-btn--ghost:hover { border-color: var(--bb-paper); }
.bb-btn--ink { background: var(--bb-lime-ink); color: var(--bb-lime); }
.bb-btn--text { background: none; padding: 0; color: var(--bb-mute); text-decoration: underline; text-underline-offset: 4px; }
.bb-btn--text:hover { color: var(--bb-paper); }
.bb-btn--lg { padding: 16px 24px; font-size: 14px; }
.bb-btn--block { width: 100%; }

/* Hero */
.bb-hero { padding: var(--bb-space-8) 0 var(--bb-space-9); }
.bb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--bb-space-8); align-items: center; }
.bb-hero-actions { display: flex; flex-wrap: wrap; gap: var(--bb-space-3); margin-top: var(--bb-space-6); }
.bb-byline { display: flex; align-items: center; flex-wrap: wrap; gap: var(--bb-space-3); margin-top: var(--bb-space-5); }
.bb-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--bb-coal-2); border: var(--bb-hair-bright); display: inline-grid; place-items: center; font-family: var(--bb-mono); font-size: 11px; color: var(--bb-paper); flex: 0 0 auto; }

/* Evidence card: a boxed, ruled frame with a dashed tear line */
.bb-evidence { border: var(--bb-hair-bright); background: var(--bb-coal); }
.bb-evidence-head { display: flex; justify-content: space-between; gap: var(--bb-space-3); padding: var(--bb-space-3) var(--bb-space-4); border-bottom: var(--bb-tear); }
.bb-evidence-body { padding: var(--bb-space-5) var(--bb-space-4); }

/* Printed lab sheet: the one light surface */
.bb-sheet { background: var(--bb-sheet); color: var(--bb-sheet-ink); padding: var(--bb-space-5); position: relative; }
.bb-sheet .bb-label { color: #55554E; }
.bb-sheet-row { display: flex; justify-content: space-between; gap: var(--bb-space-3); padding: var(--bb-space-2) 0; border-bottom: 1px solid var(--bb-sheet-rule); font-size: var(--bb-text-small); }
.bb-sheet-row:last-child { border-bottom: 0; }

/* Stamps and badges */
.bb-stamp {
  display: inline-block; font-family: var(--bb-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; border: 1.5px solid currentColor; transform: rotate(-3deg); white-space: nowrap;
}
.bb-stamp--pass { color: var(--bb-lime); }
.bb-stamp--fail { color: var(--bb-alarm); }
.bb-stamp--warn { color: var(--bb-caution); }
.bb-sheet .bb-stamp--pass { color: #4F6B00; }
.bb-tag { display: inline-block; font-family: var(--bb-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border: var(--bb-hair-bright); color: var(--bb-mute); white-space: nowrap; }
.bb-tag--lime { border-color: var(--bb-lime); color: var(--bb-lime); }

/* Story cards */
.bb-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--bb-hair); border-left: var(--bb-hair); }
.bb-card { border-right: var(--bb-hair); border-bottom: var(--bb-hair); padding: var(--bb-space-5); display: flex; flex-direction: column; gap: var(--bb-space-3); text-decoration: none; transition: background .15s; }
.bb-card:hover { background: var(--bb-coal); }
.bb-card-art { aspect-ratio: 16 / 10; border: var(--bb-hair); background: var(--bb-coal-2); position: relative; overflow: hidden; }
.bb-card-title { font-family: var(--bb-display); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; margin: 0; }
.bb-card-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--bb-space-3); margin-top: auto; }

/* Numbered steps */
.bb-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: var(--bb-hair); }
.bb-step { counter-increment: step; padding: var(--bb-space-5) var(--bb-space-4) 0 0; border-right: var(--bb-hair); margin-right: var(--bb-space-4); }
.bb-step:last-child { border-right: 0; margin-right: 0; }
.bb-step::before { content: "0" counter(step); display: block; font-family: var(--bb-mono); color: var(--bb-lime); font-size: var(--bb-text-label); letter-spacing: var(--bb-tracking-label); margin-bottom: var(--bb-space-4); }
.bb-step p { color: var(--bb-mute); font-size: var(--bb-text-small); margin: var(--bb-space-2) 0 0; }

/* Lime band: one per page, max */
.bb-band { background: var(--bb-lime); color: var(--bb-lime-ink); }
.bb-band .bb-label { color: var(--bb-lime-ink); }
.bb-band-row { display: flex; justify-content: space-between; align-items: center; gap: var(--bb-space-6); padding-block: var(--bb-space-8); flex-wrap: wrap; }

/* Pull quote */
.bb-quote { margin: 0; padding-left: var(--bb-space-5); border-left: 3px solid var(--bb-lime); font-family: var(--bb-display); font-weight: var(--bb-weight-display); font-size: clamp(24px, 3vw, 34px); line-height: 1.25; letter-spacing: -.015em; }
.bb-quote cite { display: block; margin-top: var(--bb-space-3); font-style: normal; }

/* Pricing */
.bb-toggle { display: inline-flex; border: var(--bb-hair-bright); }
.bb-toggle button { font-family: var(--bb-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px; background: none; border: 0; color: var(--bb-mute); cursor: pointer; white-space: nowrap; }
.bb-toggle button[aria-pressed="true"] { background: var(--bb-paper); color: var(--bb-black); }
.bb-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--bb-hair); border-left: var(--bb-hair); }
.bb-plan { border-right: var(--bb-hair); border-bottom: var(--bb-hair); padding: var(--bb-space-6) var(--bb-space-5); display: flex; flex-direction: column; gap: var(--bb-space-4); position: relative; }
.bb-plan--pick { background: var(--bb-coal); box-shadow: inset 0 3px 0 var(--bb-lime); }
.bb-price { font-family: var(--bb-display); font-weight: var(--bb-weight-display); font-size: 60px; letter-spacing: -.04em; line-height: 1; }
.bb-price small { font-family: var(--bb-mono); font-size: 13px; letter-spacing: .06em; color: var(--bb-mute); margin-left: 6px; }
.bb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--bb-space-2); font-size: var(--bb-text-small); }
.bb-list li { display: grid; grid-template-columns: 18px 1fr; gap: var(--bb-space-2); }
.bb-list li::before { content: "+"; font-family: var(--bb-mono); color: var(--bb-lime); }
.bb-list li.bb-no { color: var(--bb-faint); }
.bb-list li.bb-no::before { content: "-"; color: var(--bb-faint); }

/* Ledger table: where the money goes, test results */
.bb-table { width: 100%; border-collapse: collapse; font-size: var(--bb-text-small); }
.bb-table th { text-align: left; font-family: var(--bb-mono); font-weight: 400; font-size: var(--bb-text-label); letter-spacing: var(--bb-tracking-label); text-transform: uppercase; color: var(--bb-mute); padding: var(--bb-space-3) var(--bb-space-2); border-bottom: var(--bb-hair-bright); }
.bb-table td { padding: var(--bb-space-3) var(--bb-space-2); border-bottom: var(--bb-hair); vertical-align: top; }
.bb-table-scroll { overflow-x: auto; }

/* FAQ */
.bb-faq details { border-bottom: var(--bb-hair); padding: var(--bb-space-4) 0; }
.bb-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--bb-space-4); font-family: var(--bb-display); font-size: 20px; }
.bb-faq summary::-webkit-details-marker { display: none; }
.bb-faq summary::after { content: "+"; font-family: var(--bb-mono); color: var(--bb-lime); }
.bb-faq details[open] summary::after { content: "-"; }
.bb-faq p { color: var(--bb-mute); margin: var(--bb-space-3) 0 0; max-width: var(--bb-measure); }

/* Article */
.bb-article-head { padding: var(--bb-space-8) 0 var(--bb-space-6); max-width: 900px; }
.bb-article-title { font-family: var(--bb-display); font-weight: var(--bb-weight-display); font-size: clamp(38px, 5.4vw, 72px); letter-spacing: var(--bb-tracking-hero); line-height: 1.04; margin: var(--bb-space-4) 0 0; text-wrap: balance; }
.bb-dek { font-size: 21px; color: var(--bb-mute); line-height: 1.5; margin: var(--bb-space-5) 0 0; }
.bb-prose { max-width: var(--bb-measure); font-size: 18px; line-height: 1.75; }
.bb-prose p { margin: 0 0 var(--bb-space-5); }
.bb-prose h2 { font-family: var(--bb-display); font-weight: 400; font-size: 30px; letter-spacing: -.02em; line-height: 1.2; margin: var(--bb-space-7) 0 var(--bb-space-4); }
.bb-prose a { color: var(--bb-lime); text-underline-offset: 3px; }
.bb-prose > p:first-of-type::first-letter { font-family: var(--bb-display); font-weight: 300; float: left; font-size: 74px; line-height: .9; padding: 6px 10px 0 0; color: var(--bb-lime); }
.bb-note { border: var(--bb-tear); padding: var(--bb-space-4); font-size: var(--bb-text-small); color: var(--bb-mute); margin: var(--bb-space-6) 0; }
.bb-note strong { color: var(--bb-paper); font-weight: 600; }
.bb-figure { margin: var(--bb-space-6) 0; }
.bb-figure figcaption { margin-top: var(--bb-space-2); }

/* Ad-free slot: the honest stand-in for an ad box */
.bb-slot { border: var(--bb-hair); text-align: center; padding: var(--bb-space-5) var(--bb-space-4); }
.bb-slot p { margin: var(--bb-space-2) 0 0; color: var(--bb-mute); font-size: var(--bb-text-small); }

/* Forms */
.bb-form { display: grid; gap: var(--bb-space-4); }
.bb-field { display: grid; gap: var(--bb-space-2); }
.bb-field label { font-family: var(--bb-mono); font-size: var(--bb-text-label); letter-spacing: var(--bb-tracking-label); text-transform: uppercase; color: var(--bb-mute); }
.bb-input, .bb-select {
  width: 100%; font: inherit; color: var(--bb-paper); background: var(--bb-coal);
  border: var(--bb-hair-bright); border-radius: var(--bb-radius); padding: 13px 14px; outline: none;
}
.bb-input::placeholder { color: var(--bb-faint); }
.bb-input:focus, .bb-select:focus { border-color: var(--bb-lime); box-shadow: 0 0 0 3px var(--bb-lime-wash); }
.bb-hint { font-size: 13px; color: var(--bb-faint); }
.bb-check { display: grid; grid-template-columns: 20px 1fr; gap: var(--bb-space-3); align-items: start; font-size: var(--bb-text-small); color: var(--bb-mute); }
.bb-check input { appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border: var(--bb-hair-bright); background: var(--bb-coal); cursor: pointer; }
.bb-check input:checked { background: var(--bb-lime); border-color: var(--bb-lime); box-shadow: inset 0 0 0 3px var(--bb-coal); }
.bb-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bb-space-2); }
.bb-choice label { border: var(--bb-hair-bright); padding: var(--bb-space-3); cursor: pointer; display: grid; gap: 2px; text-transform: none; letter-spacing: 0; font-family: var(--bb-sans); font-size: var(--bb-text-small); color: var(--bb-paper); }
.bb-choice input { position: absolute; opacity: 0; pointer-events: none; }
.bb-choice label:has(input:checked) { border-color: var(--bb-lime); box-shadow: var(--bb-shadow-stamp); }
.bb-subscribe { display: flex; gap: var(--bb-space-2); max-width: 460px; }
.bb-subscribe .bb-input { flex: 1; min-width: 0; }

/* Footer */
.bb-footer { border-top: var(--bb-hair); padding: var(--bb-space-8) 0 var(--bb-space-6); }
.bb-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--bb-space-6); }
.bb-footer h4 { margin: 0 0 var(--bb-space-3); }
.bb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--bb-space-2); font-size: var(--bb-text-small); color: var(--bb-mute); }
.bb-footer a { text-decoration: none; }
.bb-footer a:hover { color: var(--bb-paper); }
.bb-footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--bb-space-3); margin-top: var(--bb-space-7); padding-top: var(--bb-space-4); border-top: var(--bb-hair); }
.bb-footer--slim { padding: var(--bb-space-5) 0; }
.bb-footer--slim .bb-footer-base { margin-top: 0; padding-top: 0; border-top: 0; }

/* Phone */
@media (max-width: 900px) {
  .bb-hero-grid, .bb-footer-grid { grid-template-columns: 1fr; }
  .bb-grid-3, .bb-plans { grid-template-columns: 1fr; }
  .bb-steps { grid-template-columns: 1fr 1fr; row-gap: var(--bb-space-5); }
  .bb-step:nth-child(2n) { border-right: 0; margin-right: 0; }
  .bb-nav-links { display: none; }
  .bb-section { padding: var(--bb-space-8) 0; }
}
@media (max-width: 520px) {
  .bb-steps { grid-template-columns: 1fr; }
  .bb-step { border-right: 0; margin-right: 0; }
  .bb-choice { grid-template-columns: 1fr; }
  .bb-subscribe { flex-direction: column; }
  .bb-nav-actions .bb-btn--text { display: none; }
}
