/* SignalSpider public storefront — design tokens (refero.design 6f9452a4)
   Canvas #0a0a0a · surfaces #141414/#1e1e1e · hairlines #313131/#454545
   Text #ffffff primary, #a7a7a7 secondary · accent #6798ff ONLY chromatic
   Inter (UI) · JetBrains Mono (technical labels/IDs/eyebrows only)
   Radius 8px cards/buttons/inputs, 4px small tags · no shadows, no gradients */

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1e1e1e;
  --hairline: #313131;
  --hairline-2: #454545;
  --text: #ffffff;
  --text-2: #a7a7a7;
  --accent: #6798ff;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { background: var(--bg); }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand .sig { color: var(--accent); }
.brand .domain { font-family: var(--mono); font-size: 11px; color: var(--text-2); font-weight: 400; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a.active { color: var(--text); background: var(--surface-2); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 96px; padding: 40px 0 56px;
  color: var(--text-2); font-size: 13px;
}
.site-footer .cols { display: flex; gap: 48px; flex-wrap: wrap; }
.site-footer h4 { font-size: 11px; font-family: var(--mono); color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; font-weight: 500; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); font-family: var(--mono); font-size: 11px; color: var(--text-2); }

/* ── Type helpers ────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow.dim { color: var(--text-2); }
h1 { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 17px; font-weight: 600; }
.lede { color: var(--text-2); font-size: 18px; line-height: 1.5; max-width: 640px; }
.section { padding: 72px 0 0; }
.section-head { margin-bottom: 32px; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 11px 20px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { background: #8db0ff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--hairline-2); }
.btn-ghost:hover { border-color: var(--text-2); background: var(--surface-2); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── Tags ──────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  color: var(--text-2);
  padding: 3px 7px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  letter-spacing: 0.02em; white-space: nowrap;
}
.tag.accent { color: var(--accent); border-color: rgba(103, 152, 255, 0.35); }
.tag.plain { background: transparent; }

/* ── Replacement Guarantee (2026-09-19) ────────────── */
/* Green-accent exchange pill on cards + purchase surfaces. Same tokens as
 * .tag / .chip; no gradients. Used for "1 REPLACEMENT CREDIT" / "INCLUDES
 * 3 REPLACEMENT CREDITS" indicators. */
.tag.guarantee {
  color: #7fd6a4; border-color: rgba(127, 214, 164, 0.4);
  background: rgba(127, 214, 164, 0.05);
  font-weight: 600; letter-spacing: 0.05em;
}
/* Compact guarantee block beside price/purchase controls on record.php +
 * pack.php unlock cards; also wraps the homepage backstop card. */
.guarantee-note {
  border: 1px solid rgba(127, 214, 164, 0.28);
  border-radius: 8px;
  background: rgba(127, 214, 164, 0.04);
  padding: 12px 14px;
  font-size: 12.5px; color: var(--text-2); line-height: 1.6;
}
.guarantee-note b { color: #7fd6a4; font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; display: block; margin-bottom: 4px; }
.guarantee-note a { color: var(--accent); }
/* Checklist variant for checkout-adjacent "YOUR PURCHASE INCLUDES" block. */
.guarantee-note ul { list-style: none; margin: 8px 0 0; }
.guarantee-note li { padding: 3px 0 3px 20px; position: relative; color: var(--text-2); }
.guarantee-note li::before {
  content: "✓"; position: absolute; left: 2px; top: 3px;
  font-family: var(--mono); color: #7fd6a4; font-size: 12px;
}
/* FAQ page q/a pairs */
.faq-item { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 8px; letter-spacing: 0.02em; }
.faq-a { font-size: 13.5px; color: var(--text-2); line-height: 1.7; margin: 0; }
.faq-a b { color: var(--text); }

/* ── Rarity language (two stacking dimensions) ──────── */
/* class dimension: STANDARD/FLEET/MAJOR via .tag.accent + SPECIAL PRICE! tag at top.
 * timing dimension: .chip-* — purple LAPSED, orange SIGNAL GAP (reserved),
 * amber PRE-LAPSE, neutral MID-CYCLE. Office-tech cards heavier stroke, white on hover. */
.tag.special-price {
  color: #ffb454; border-color: rgba(255, 180, 84, 0.55);
  background: rgba(255, 180, 84, 0.05);
  font-weight: 700; letter-spacing: 0.05em;
}
/* Price first in the lower-left foot block; evidence-depth tag beneath it. */
.price-row { display: inline-flex; align-items: baseline; gap: 9px; }
.price-row .price { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--text); }
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  padding: 4px 8px; border-radius: 4px;
  border: 1px solid var(--hairline);
  letter-spacing: 0.05em; white-space: nowrap;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-mid-cycle { color: var(--text-2); background: var(--surface-2); }
.chip-pre-lapse {
  color: var(--accent); border-color: rgba(103, 152, 255, 0.45);
  background: rgba(103, 152, 255, 0.07);
}
.chip-lapsed {
  color: #c39bff; border-color: rgba(195, 155, 255, 0.4);
  background: rgba(195, 155, 255, 0.05);
}
.chip-signal-gap {
  color: #ff8000; border-color: rgba(255, 128, 0, 0.55);
  background: rgba(255, 128, 0, 0.09);
}

/* ── Card rarity system (timing dimension) ────────────
 * The whole card surface participates — recognizable at a glance:
 *   LAPSED      → purple perimeter + faint purple atmosphere on charcoal
 *   SIGNAL GAP  → orange perimeter + restrained orange atmosphere (stronger than purple)
 * Hover: atmosphere remains (stronger for signal gap), structural perimeter → white.
 * Mobile: no hover needed — rarity is fully visible at rest. */
.rec-card { transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }

/* Office-tech cards: heavier structural stroke; white stroke on hover */
.rec-card.rec-office { border-width: 2px; }
.rec-card.rec-office.card.hover:hover { border-color: var(--text); }

/* LAPSED — purple rarity treatment (whole card) */
.rec-card.rec-lapsed {
  border-color: rgba(169, 112, 255, 0.62);
  background:
    radial-gradient(circle at 88% 8%, rgba(169, 112, 255, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(169, 112, 255, 0.07), var(--surface) 72%);
}
.rec-card.rec-lapsed.card.hover:hover {
  border-color: var(--text);
  background:
    radial-gradient(circle at 88% 8%, rgba(169, 112, 255, 0.19), transparent 38%),
    linear-gradient(135deg, rgba(169, 112, 255, 0.09), var(--surface) 72%);
}

/* SIGNAL GAP — orange rarity treatment (top tier, stronger than purple) */
.rec-card.rec-signal-gap {
  border-color: rgba(255, 128, 0, 0.75);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 128, 0, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(255, 128, 0, 0.10), var(--surface) 70%);
}
.rec-card.rec-signal-gap.card.hover:hover {
  border-color: var(--text);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 128, 0, 0.28), transparent 35%),
    linear-gradient(135deg, rgba(255, 128, 0, 0.17), var(--surface) 70%);
  box-shadow: inset 0 0 32px rgba(255, 128, 0, 0.11);
}
/* Lapsed cards that are ALSO office cards keep the 2px office stroke weight */
.rec-card.rec-lapsed.rec-office,
.rec-card.rec-signal-gap.rec-office { border-width: 2px; }

/* ── Cards / surfaces ───────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 20px;
}
.card.hover { transition: border-color 120ms ease; }
.card.hover:hover { border-color: var(--hairline-2); }

.grid { display: grid; gap: 12px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 88px 0 8px; }
.hero h1 { max-width: 780px; margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block; font-family: var(--mono); font-size: 26px; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
}
.hero-stats .stat span {
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── Product cards ──────────────────────────────────── */
.product-card { display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.product-card p { color: var(--text-2); font-size: 14px; flex: 1; }
.product-card .code { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }

/* ── Inventory workbench (faceted filter engine) ───── */
/* Dark panel language; card design frozen — this styles ONLY filters. */
.workbench {
  border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--surface);
  padding: 18px 20px 16px;
  margin-bottom: 20px;
}
.wb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.wb-title {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--text); text-transform: uppercase; letter-spacing: 0.1em;
}
.wb-sub { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.wb-head-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wb-count { font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.wb-search {
  width: 100%; margin-top: 14px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 8px; color: var(--text);
  font-family: var(--sans); font-size: 14px; padding: 10px 14px;
}
.wb-search::placeholder { color: var(--text-2); }
.wb-search:focus { outline: none; border-color: var(--hairline-2); }
.wb-facet { margin-top: 14px; }
.wb-facet-label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.wb-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-btn {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 6px; color: var(--text);
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  padding: 6px 11px; cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}
.wb-btn:hover { border-color: var(--hairline-2); }
.wb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wb-btn[aria-pressed="true"] {
  border-color: var(--accent); color: var(--accent);
  background: rgba(103, 152, 255, 0.06);
}
.wb-btn .wb-btn-label { white-space: nowrap; }
.wb-btn .wb-btn-n {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-2);
}
.wb-btn[aria-pressed="true"] .wb-btn-n { color: var(--accent); }
/* Timing accent — restricted to the count + selected border, matching the
 * rarity palette (blue/purple/orange) without full-card washes. */
.wb-btn.wb-t-pre { border-left: 3px solid rgba(103, 152, 255, 0.55); }
.wb-btn.wb-t-pre[aria-pressed="true"] { border-color: var(--accent); }
.wb-btn.wb-t-lapsed { border-left: 3px solid rgba(169, 112, 255, 0.55); }
.wb-btn.wb-t-lapsed[aria-pressed="true"] { border-color: #c39bff; color: #c39bff; background: rgba(195, 155, 255, 0.06); }
.wb-btn.wb-t-lapsed[aria-pressed="true"] .wb-btn-n { color: #c39bff; }
.wb-btn.wb-t-gap { border-left: 3px solid rgba(255, 128, 0, 0.55); }
.wb-btn.wb-t-gap[aria-pressed="true"] { border-color: #ff8000; color: #ff8000; background: rgba(255, 128, 0, 0.07); }
.wb-btn.wb-t-gap[aria-pressed="true"] .wb-btn-n { color: #ff8000; }
.wb-more {
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-2);
  padding: 12px 0 0; letter-spacing: 0.05em;
}
.wb-more:hover { color: var(--text); }
.wb-more-panel { margin-top: 4px; }
.wb-active {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.wb-active-label {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.wb-active-list { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--accent); border-radius: 6px;
  color: var(--accent); font-family: var(--mono); font-size: 11px;
  padding: 4px 6px 4px 10px; letter-spacing: 0.04em;
}
.wb-chip-x {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-size: 13px; line-height: 1; padding: 2px 4px;
}
.wb-chip-x:hover { color: var(--text); }
.wb-empty-facet { font-size: 12px; color: var(--text-2); font-style: italic; }
@media (max-width: 620px) {
  .wb-head { flex-direction: column; }
  .wb-head-right { width: 100%; justify-content: space-between; }
  .wb-btn { font-size: 12px; padding: 6px 9px; }
}

/* ── Inventory grid / record cards ───────────────────── */
.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1000px) { .inv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .inv-grid { grid-template-columns: 1fr; } }

.rec-card { display: flex; flex-direction: column; gap: 12px; }
.rec-card .rid { display: flex; align-items: center; justify-content: space-between; }
.rec-card .rid a { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.rec-card .rid a:hover { text-decoration: underline; }
.rec-card h3 { font-size: 15.5px; }
.rec-card .facts { display: flex; flex-direction: column; gap: 6px; }
.rec-card .fact { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.rec-card .fact .k { color: var(--text-2); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; white-space: nowrap; }
.rec-card .fact .v { text-align: right; }
/* Foot: left block stacks $99 above the evidence-depth tag; View record stays right. */
.rec-card .foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 4px; }
.rec-card .foot .foot-left { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.rec-card .foot .foot-left .price { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--text); }

.empty-state {
  border: 1px dashed var(--hairline-2); border-radius: 8px;
  padding: 56px 24px; text-align: center; color: var(--text-2);
  font-size: 14px;
}

/* ── Detail page ────────────────────────────────────── */
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--text-2); padding-top: 36px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }
.detail-head { padding: 22px 0 8px; }
.detail-head .pid { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: 0.05em; }
.detail-head h1 { font-size: 34px; margin: 10px 0 6px; }
.detail-head .sub { color: var(--text-2); font-size: 15px; }

.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 12px; margin-top: 28px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.spec-list { display: flex; flex-direction: column; }
.spec-list .row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.spec-list .row:last-child { border-bottom: none; }
.spec-list .k { color: var(--text-2); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; white-space: nowrap; }
.spec-list .v { text-align: right; }

.unlock-card h3 { font-size: 15px; margin-bottom: 12px; }
.unlock-card ul { list-style: none; margin-bottom: 16px; }
.unlock-card li { font-size: 13.5px; color: var(--text-2); padding: 6px 0 6px 22px; position: relative; }
.unlock-card li::before {
  content: "+"; position: absolute; left: 2px; top: 5px;
  font-family: var(--mono); color: var(--accent); font-size: 13px;
}

.disclaimer {
  border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--surface); padding: 16px 20px;
  font-size: 13px; color: var(--text-2); line-height: 1.6;
}
.disclaimer b { color: var(--text); font-weight: 600; }

/* ── Commercial Interpretation (deterministic engine, no LLM) ──
 * Dark panel language reused from .card/.disclaimer. Subheads are small
 * technical uppercase; timing-related subheads inherit the existing rarity
 * chip palette. The limitation block renders quieter than primary prose.
 * The RECORD stays the hero — no full-panel color washes. */
.interp {
  border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--surface); padding: 18px 20px 16px;
  margin-top: 16px;
}
.interp-title {
  font-size: 14px; margin-bottom: 14px;
  font-family: var(--mono); color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.interp-block { padding: 10px 0; border-top: 1px solid var(--hairline); }
.interp-block:first-of-type { border-top: 0; padding-top: 0; }
.interp-block p {
  margin: 6px 0 0; font-size: 13px; color: var(--text-2);
  line-height: 1.65; max-width: 68ch;
}
.interp-sub {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.07em;
}
/* Timing accents — same palette as the rarity chips, subhead-only. */
.interp-sub.accent-pre-lapse  { color: #6798ff; }
.interp-sub.accent-lapsed     { color: #c39bff; }
.interp-sub.accent-signal-gap { color: #ff8000; }
/* Limitation block: visually quieter. */
.interp-limit { opacity: 0.75; }
.interp-limit .interp-sub { color: var(--text-2); }

/* ── Interpretation signal language (non-numeric visual hierarchy) ──
 * Muted signal colors communicate the TYPE of observation:
 *   green  = evidence richness (we know something specific)
 *   blue   = commercial/account context (useful intelligence)
 *   purple = elevated timing/discontinuity (deserves investigation)
 *   orange = SIGNAL GAP ONLY (strongest unresolved condition, reserved)
 * Color lives on the subhead + a short left marker. Body prose stays
 * ordinary text; no washes, no glow, no rainbow chips, no scores. */
.interp-sub.sig-green  { color: #9fd6a8; }
.interp-sub.sig-blue   { color: #8fb4ff; }
.interp-sub.sig-purple { color: #c39bff; }
.interp-sub.sig-orange { color: #ff8000; }

.interp-block.sig-green  { border-left: 3px solid rgba(159, 214, 168, 0.55); }
.interp-block.sig-blue   { border-left: 3px solid rgba(143, 180, 255, 0.5); }
.interp-block.sig-purple { border-left: 3px solid rgba(195, 155, 255, 0.55); }
.interp-block.sig-orange {
  border-left: 3px solid rgba(255, 128, 0, 0.75);
  background: rgba(255, 128, 0, 0.045);
}

/* CATEGORY GAP "why this may matter" aside: same body tone, slight offset. */
.interp-why { padding-left: 10px; border-left: 2px solid var(--hairline); }

/* SIGNAL PROFILE strip: compact visual synopsis. Neutral panel row of
 * colored markers; the markers carry the signal colors, not the strip. */
.interp-profile {
  border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--surface-2);
  padding: 12px 14px; margin-bottom: 14px;
}
.interp-profile-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 9px;
}
.interp-profile-items {
  display: flex; flex-wrap: wrap; gap: 7px 16px;
}
.interp-marker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--text-2);
}
.interp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hairline-2); display: inline-block;
}
.interp-dot.sig-green  { background: #9fd6a8; }
.interp-dot.sig-blue   { background: #8fb4ff; }
.interp-dot.sig-purple { background: #c39bff; }
.interp-dot.sig-orange { background: #ff8000; }
.interp-marker.sig-green  { color: #9fd6a8; }
.interp-marker.sig-blue   { color: #8fb4ff; }
.interp-marker.sig-purple { color: #c39bff; }
.interp-marker.sig-orange { color: #ff8000; }

/* ── Packs ──────────────────────────────────────────── */
.pack-card { display: flex; flex-direction: column; gap: 12px; }
.pack-card .pk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pack-card h3 { font-size: 16px; }
.pack-card .n { font-family: var(--mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.pack-card p { color: var(--text-2); font-size: 13.5px; }
.pack-card .mini-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

/* ── Forms ──────────────────────────────────────────── */
.form-card { padding: 28px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px;
}
.field label .opt { color: var(--text-2); font-weight: 400; font-size: 12px; }
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 8px; color: var(--text); font-family: var(--sans);
  font-size: 14px; padding: 10px 14px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--hairline-2); }
.field .hint { font-size: 12px; color: var(--text-2); margin-top: 5px; }
.form-note { font-size: 12.5px; color: var(--text-2); margin-top: 14px; }
.form-ok {
  border: 1px solid rgba(103, 152, 255, 0.35); border-radius: 8px;
  background: rgba(103, 152, 255, 0.08); color: var(--text);
  padding: 18px 20px; font-size: 14px;
}
.form-ok b { color: var(--accent); }

/* ── Misc ───────────────────────────────────────────── */
.mono { font-family: var(--mono); }
.dim { color: var(--text-2); }
.small { font-size: 13px; }
hr.rule { border: none; border-top: 1px solid var(--hairline); margin: 8px 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { padding: 18px; }
.step .num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 10px; }
.step h3 { font-size: 14.5px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-2); }
/* ── Staging preview banner (admin-only preview mode) ── */
.staging-banner {
  position: sticky; top: 0; z-index: 999;
  background: #7c3aed; color: #fff;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-align: center; padding: 7px 12px;
}
.staging-banner a { color: #fff; text-decoration: underline; }

/* ── Curated Intelligence Packs ────────────────────── */
/* Pack cards: merchandised products. Same card language; never touch record-card design. */
.pack-family { margin-bottom: 28px; }
.pack-family-head {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--text); text-transform: uppercase; letter-spacing: 0.12em;
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--hairline);
}
.pack-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.pack-card:hover { border-color: var(--hairline-2); }
.pack-card:hover h3 { color: var(--accent); }
.pack-card .pk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pack-card .pk-family {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em;
}
.pack-card .n { font-family: var(--mono); font-size: 11px; color: var(--accent); white-space: nowrap; }
.pack-card h3 { font-size: 16px; }
.pack-card .pk-sub {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pack-card p { color: var(--text-2); font-size: 13px; line-height: 1.55; margin: 0; }
.pack-card .pk-foot { margin-top: auto; padding-top: 6px; }
.pack-card .pk-view {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.06em;
}
/* timing tags on pack cards — restrained rarity colors on tag text */
.tag-gap { color: #ff8000; border-color: rgba(255, 128, 0, 0.45); }
.tag-lapsed { color: #c39bff; border-color: rgba(195, 155, 255, 0.4); }
.tag-pre { color: var(--accent); border-color: rgba(103, 152, 255, 0.35); }

/* Custom Intelligence Pack infographic — information diagram, not a product card */
.custom-pack {
  border: 1px solid var(--hairline-2); border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(103,152,255,0.045), rgba(103,152,255,0) 40%),
    var(--surface);
  padding: 34px 30px 30px;
  text-align: center;
}
.cp-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.14em;
}
.cp-title { font-size: 30px; margin: 10px 0 26px; letter-spacing: 0.01em; }
.cp-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
  text-align: left; margin-bottom: 18px;
}
@media (max-width: 760px) { .cp-grid { grid-template-columns: 1fr; } }
.cp-col {
  border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--surface-2); padding: 16px 18px;
}
.cp-dim {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline);
}
.cp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.cp-list li { font-size: 13px; color: var(--text); }
.cp-list li::before { content: "·"; color: var(--text-2); margin-right: 8px; }
.cp-arrow {
  font-family: var(--mono); font-size: 18px; color: var(--text-2);
  text-align: center; margin: 4px 0;
}
.cp-corpus {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--text); text-transform: uppercase; letter-spacing: 0.14em;
  border: 1px dashed var(--hairline-2); border-radius: 6px;
  padding: 9px 22px; margin: 6px 0;
}
.cp-result {
  display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em;
  border: 1px solid rgba(103, 152, 255, 0.45); border-radius: 6px;
  background: rgba(103, 152, 255, 0.07);
  padding: 10px 24px; margin: 6px 0 12px;
}
.cp-specs {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.08em; line-height: 2; margin-bottom: 18px;
}
.cp-cta-row { display: flex; justify-content: center; }

/* Pack detail page */
.pack-health-warning {
  font-family: var(--mono); font-size: 12px; color: #ffb087;
  border: 1px solid rgba(255, 128, 0, 0.5); border-radius: 6px;
  background: rgba(255, 128, 0, 0.07);
  padding: 10px 14px; margin-top: 14px; letter-spacing: 0.03em;
}
.member-head {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin: 26px 0 14px; color: var(--text);
}
.pack-members { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .pack-members { grid-template-columns: 1fr; } }
.pack-member {
  border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--surface); padding: 16px 18px;
}
.pack-member .pm-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pack-member .pid { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; letter-spacing: 0.04em; }
.pack-member .pid:hover { text-decoration: underline; }
.pack-member .pm-state {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em;
}
.pack-member.member-unavailable { border-color: rgba(255, 128, 0, 0.5); opacity: 0.75; }
.pack-member.member-unavailable .pm-state { color: #ffb087; }
.pack-member .pm-facts { display: flex; flex-direction: column; gap: 6px; }
.pack-member .fact { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.pack-member .fact .k { color: var(--text-2); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; white-space: nowrap; }
.pack-member .fact .v { text-align: right; }

/* Admin pack cards */
.pack-admin-card { margin-bottom: 20px; padding: 22px; }
.pack-admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.pack-admin-state {
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: #9fd6a8;
  border: 1px solid rgba(120, 200, 130, 0.4); border-radius: 6px;
  padding: 7px 12px; white-space: nowrap;
}
.pack-admin-state.needs-attention {
  color: #ffb087; border-color: rgba(255, 128, 0, 0.5); background: rgba(255, 128, 0, 0.07);
}
.pa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .pa-grid { grid-template-columns: 1fr; } }
.pa-grid label, .pa-full { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.pa-grid input, .pa-full input, .pa-full textarea {
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 6px;
  color: var(--text); font-family: var(--sans); font-size: 13px; padding: 8px 10px;
}
.pa-full { margin-top: 12px; }
.pa-checks { flex-direction: row !important; gap: 18px !important; align-items: center; }
.pa-checks span { display: flex; gap: 6px; align-items: center; text-transform: none; font-family: var(--sans); }
.pa-actions { display: flex; gap: 10px; margin-top: 14px; }
.pa-members { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.pa-member {
  display: flex; gap: 14px; align-items: center; font-size: 12.5px;
  border: 1px solid var(--hairline); border-radius: 6px; padding: 8px 12px;
}
.pa-member span { color: var(--text-2); }
.pa-member .mono { color: var(--text); }
.pa-member.member-unavailable { border-color: rgba(255, 128, 0, 0.5); }
.pa-member.member-unavailable .mono { color: #ffb087; }
.pa-delete { margin-top: 10px; }

/* ── Whop checkout overlay (mounted by assets/checkout.js) ──
 * openWhopOverlay() appends #whop-overlay-wrap (backdrop + body) to <body>.
 * Without these rules the checkout iframe renders as plain document flow
 * below the fold — the click appears to do nothing. Fixed-position modal,
 * same tokens as the rest of the store. No shadows, no gradients. */
#whop-overlay-wrap { position: fixed; inset: 0; z-index: 200; display: flex; }
#whop-overlay-backdrop {
  position: absolute; inset: 0; background: rgba(10, 10, 10, 0.78);
  cursor: pointer;
}
#whop-overlay-close {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--hairline-2);
  font-size: 17px; line-height: 1; font-family: var(--sans);
}
#whop-overlay-close:hover { border-color: var(--text-2); }
#whop-overlay-body {
  position: relative; z-index: 1; margin: auto;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); overflow: auto;
  border: 1px solid var(--hairline); border-radius: 8px;
  background: #141414;
}
#whop-overlay-body iframe { display: block; width: 100%; border: 0; }
/* Pre-checkout confidence strip above the Whop iframe (checkout.js mounts it). */
#whop-overlay-body .overlay-includes {
  padding: 14px 16px 12px; border-bottom: 1px solid var(--hairline);
}
#whop-overlay-body .overlay-includes b {
  display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  color: #7fd6a4; letter-spacing: 0.07em; margin-bottom: 6px;
}
#whop-overlay-body .overlay-includes ul { list-style: none; margin: 0; }
#whop-overlay-body .overlay-includes li {
  font-size: 12.5px; color: var(--text-2); padding: 2px 0 2px 18px; position: relative;
}
#whop-overlay-body .overlay-includes li::before {
  content: "✓"; position: absolute; left: 0; font-family: var(--mono);
  color: #7fd6a4; font-size: 11px;
}
