/* =====================================================================
 * Velocity Capital — Explainer Shell Components
 *   - Top bar (wordmark + mode badge + persona pill)
 *   - Pipeline ribbon (6 stops)
 *   - Two-column narrative+demo layout
 *   - Hotspot dots + legend
 *   - Persona narrative slots
 *   - Footer
 * ===================================================================== */

/* ---------- TOP BAR ---------- */
.vc-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: var(--vc-bg);
  border-bottom: 1px solid var(--vc-line);
}
.vc-topbar-mode {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vc-ink-mute);
}
.vc-topbar-mode strong {
  color: var(--vc-accent);
  font-weight: 700;
}
.vc-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Persona pill */
.vc-persona {
  display: inline-flex;
  border: 1px solid var(--vc-line);
  background: var(--vc-bg);
}
.vc-persona button {
  font-family: var(--vc-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 12px;
  background: var(--vc-bg);
  color: var(--vc-ink-mute);
  border: 0;
  border-right: 1px solid var(--vc-line);
  cursor: pointer;
}
.vc-persona button:last-child { border-right: 0; }
.vc-persona button[aria-pressed="true"] {
  background: var(--vc-accent);
  color: var(--vc-bg);
}

/* ---------- PIPELINE RIBBON ---------- */
.vc-ribbon {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  padding: 18px 28px;
  background: var(--vc-bg-soft);
  border-bottom: 1px solid var(--vc-line);
}
.vc-stop {
  position: relative;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vc-ink-mute);
}
.vc-stop .vc-stop-dot {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 8px;
  background: var(--vc-bg);
  border: 1px solid var(--vc-ink-mute);
}
.vc-stop[data-current="true"] {
  color: var(--vc-ink);
  font-weight: 700;
}
.vc-stop[data-current="true"] .vc-stop-dot {
  background: var(--vc-accent);
  border-color: var(--vc-accent);
}
.vc-stop:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  right: -50%;
  width: 100%;
  height: 1px;
  background: var(--vc-line);
  z-index: 0;
}

/* ---------- TWO-COLUMN BODY ---------- */
.vc-body {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 0;
  min-height: calc(100vh - 200px);
}
@media (max-width: 1100px) {
  .vc-body { grid-template-columns: 1fr; }
}

/* Narrative panel */
.vc-narrative {
  padding: 36px 32px;
  border-right: 1px solid var(--vc-line);
  background: var(--vc-bg);
  overflow-y: auto;
}
.vc-narrative h1 {
  font-size: 26px;
  margin-bottom: 6px;
}
.vc-narrative .vc-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--vc-line-soft);
}
.vc-narrative .vc-section:first-of-type { border-top: 0; margin-top: 18px; padding-top: 0; }
.vc-narrative h2 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vc-accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.vc-narrative p, .vc-narrative li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--vc-ink);
}
.vc-narrative ul { margin: 0 0 10px; padding-left: 18px; }
.vc-narrative li { margin-bottom: 6px; }

/* Regulatory citation block */
.vc-cite {
  border-left: 3px solid var(--vc-accent);
  background: var(--vc-accent-lo);
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--vc-ink);
}
.vc-cite strong {
  font-family: var(--vc-font-disp);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vc-accent-hi);
  display: block;
  margin-bottom: 4px;
}

/* Audit-trail JSON snippet */
.vc-audit {
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 12px;
  background: var(--vc-ink);
  color: #F8F8F8;
  padding: 14px 16px;
  margin: 12px 0;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.5;
}
.vc-audit .k { color: #FFB3BB; }
.vc-audit .v { color: #B8E0D2; }

/* Persona-scoped narrative slots */
.vc-by-persona [data-persona] { display: none; }
.vc-by-persona[data-active-persona="client"] [data-persona="client"],
.vc-by-persona[data-active-persona="compliance"] [data-persona="compliance"],
.vc-by-persona[data-active-persona="system"] [data-persona="system"] {
  display: block;
}

/* ---------- DEMO PANEL ---------- */
.vc-demo {
  position: relative;
  background: var(--vc-bg-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.vc-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.vc-demo-bar .vc-demo-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vc-ink-mute);
}
.vc-demo-bar .vc-demo-actions {
  display: inline-flex;
  gap: 8px;
}
.vc-iframe-wrap {
  flex: 1;
  position: relative;
  border: 2px solid var(--vc-accent);
  background: var(--vc-bg);
  min-height: 600px;
  overflow: hidden;
}
.vc-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Hotspot overlay */
.vc-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  display: none;
}
.vc-iframe-wrap[data-hotspots="on"] .vc-hotspots { display: block; }
.vc-hotspot {
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--vc-accent);
  color: var(--vc-bg);
  font-family: var(--vc-font-disp);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--vc-bg);
  box-shadow: 0 0 0 1px var(--vc-accent);
  pointer-events: auto;
  cursor: help;
}

/* Hotspot legend */
.vc-legend {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--vc-bg);
  border: 1px solid var(--vc-line);
  display: none;
}
.vc-demo[data-hotspots="on"] .vc-legend { display: block; }
.vc-legend h4 {
  font-family: var(--vc-font-disp);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vc-accent);
  margin: 0 0 8px;
}
.vc-legend ol {
  margin: 0;
  padding-left: 22px;
  font-size: 12px;
  color: var(--vc-ink);
}
.vc-legend li { margin-bottom: 4px; }

/* Hotspot toggle */
.vc-hotspot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vc-ink-mute);
  cursor: pointer;
}
.vc-hotspot-toggle input { accent-color: var(--vc-accent); }

/* ---------- FOOTER ---------- */
.vc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-top: 1px solid var(--vc-line);
  background: var(--vc-bg);
  font-size: 11px;
  color: var(--vc-ink-mute);
}
.vc-footer .vc-footer-right {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

/* ---------- LOBBY (index) ---------- */
.vc-lobby-hero {
  padding: 64px 32px 40px;
  border-bottom: 1px solid var(--vc-line);
  max-width: 1100px;
  margin: 0 auto;
}
.vc-lobby-hero h1 {
  font-size: 42px;
  line-height: 1.05;
  max-width: 760px;
  margin-bottom: 18px;
}
.vc-lobby-hero p.vc-lead {
  font-size: 17px;
  color: var(--vc-ink-mute);
  max-width: 720px;
  line-height: 1.6;
}
.vc-lobby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--vc-line);
  max-width: 1100px;
  margin: 32px auto;
  border: 1px solid var(--vc-line);
}
@media (max-width: 800px) { .vc-lobby-grid { grid-template-columns: 1fr; } }
.vc-card {
  background: var(--vc-bg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--vc-ink);
  border: 2px solid transparent;
  transition: border-color 0.12s, background 0.12s;
}
.vc-card:hover {
  border-color: var(--vc-accent);
  background: var(--vc-bg);
  text-decoration: none;
}
.vc-card .vc-card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vc-accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.vc-card h2 {
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--vc-ink);
}
.vc-card p {
  font-size: 13px;
  color: var(--vc-ink-mute);
  flex: 1;
  margin: 0 0 16px;
}
.vc-card .vc-card-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--vc-ink-soft);
  text-transform: uppercase;
}

/* Stats row */
.vc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--vc-line);
  max-width: 1100px;
  margin: 0 auto 64px;
  border: 1px solid var(--vc-line);
}
@media (max-width: 800px) { .vc-stats { grid-template-columns: 1fr; } }
.vc-stat {
  background: var(--vc-bg);
  padding: 22px 24px;
}
.vc-stat .vc-stat-num {
  font-family: var(--vc-font-disp);
  font-size: 36px;
  font-weight: 700;
  color: var(--vc-accent);
  line-height: 1;
}
.vc-stat .vc-stat-lbl {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vc-ink-mute);
}

/* ---------- EXPLAINER LONG-SCROLL ---------- */
.vc-explainer {
  max-width: 940px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}
.vc-explainer h1 {
  font-size: 38px;
  margin-bottom: 8px;
}
.vc-explainer .vc-lead {
  font-size: 17px;
  color: var(--vc-ink-mute);
  margin-bottom: 28px;
}
.vc-section-major {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 2px solid var(--vc-ink);
}
.vc-section-major .vc-section-num {
  display: inline-block;
  font-family: var(--vc-font-disp);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--vc-accent);
  margin-bottom: 8px;
}
.vc-section-major h2 {
  font-size: 28px;
  margin-bottom: 14px;
}
.vc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0;
}
@media (max-width: 800px) { .vc-grid-3 { grid-template-columns: 1fr; } }
.vc-tile {
  border: 1px solid var(--vc-line);
  padding: 18px 20px;
}
.vc-tile h3 {
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.vc-tile p { font-size: 13px; color: var(--vc-ink-mute); margin: 0; }

/* Accordion */
.vc-acc {
  border-top: 1px solid var(--vc-line);
}
.vc-acc details {
  border-bottom: 1px solid var(--vc-line);
}
.vc-acc summary {
  cursor: pointer;
  padding: 14px 4px;
  font-family: var(--vc-font-disp);
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vc-acc summary::-webkit-details-marker { display: none; }
.vc-acc summary::after {
  content: "+";
  color: var(--vc-accent);
  font-size: 20px;
  line-height: 1;
}
.vc-acc details[open] summary::after { content: "−"; }
.vc-acc .vc-acc-body {
  padding: 4px 4px 18px;
  font-size: 13px;
  color: var(--vc-ink);
  line-height: 1.65;
}
.vc-acc .vc-acc-body code {
  background: var(--vc-bg-soft);
  padding: 1px 6px;
  border: 1px solid var(--vc-line);
  font-size: 12px;
}

/* Reg map table */
.vc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.vc-table th, .vc-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--vc-line);
  vertical-align: top;
}
.vc-table th {
  font-family: var(--vc-font-disp);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vc-ink-mute);
  background: var(--vc-bg-soft);
  border-bottom: 1px solid var(--vc-line-strong);
}
.vc-table td code {
  font-size: 12px;
  background: var(--vc-bg-soft);
  padding: 1px 6px;
  border: 1px solid var(--vc-line);
}

/* Print stylesheet for /print */
@media print {
  .vc-topbar, .vc-ribbon, .vc-footer, .vc-no-print { display: none !important; }
  .vc-explainer { max-width: none; padding: 24px; }
  .vc-section-major { page-break-inside: avoid; margin-top: 32px; }
  .vc-cite, .vc-audit, .vc-tile, details { page-break-inside: avoid; }
  body { font-size: 11pt; }
}
