/* ============================================================
   NetRisk.io — Secure Vendor Portal (slide 4)
   AI-to-AI assessment: two agents exchange controls & evidence,
   NetRisk cross-checks against live scan, human gates verdicts.
   ============================================================ */

.portal { max-width: 1080px; width: 100%; margin-inline: auto; overflow: hidden; }
.portal .ui-titlebar { gap: 12px; }
.portal .pt-lock { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--ai-12); border: 1px solid var(--ai-20); color: var(--ai); }
.portal .pt-token {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border: 1px solid var(--border-2); border-radius: var(--r-pill); background: rgba(255,255,255,.02);
}
.portal .pt-token .lk { width: 5px; height: 5px; border-radius: 50%; background: var(--evidence); box-shadow: 0 0 7px var(--evidence); }

/* the two-agent header lanes */
.portal-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--border); }
.portal-lane { display: flex; align-items: center; gap: 11px; padding: 13px 18px; }
.portal-lane.buyer { background: linear-gradient(90deg, var(--verified-12), transparent); }
.portal-lane.vendor { background: linear-gradient(270deg, var(--observed-12), transparent); justify-content: flex-end; text-align: right; flex-direction: row-reverse; border-left: 1px solid var(--border); }
.portal-lane .pl-av {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.portal-lane.buyer .pl-av { background: var(--verified-12); border: 1px solid var(--verified-20); color: var(--brand); }
.portal-lane.vendor .pl-av { background: var(--observed-12); border: 1px solid var(--observed-20); color: var(--observed); }
.portal-lane .pl-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.portal-lane .pl-role { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-top: 1px; display: inline-flex; align-items: center; gap: 6px; }
.portal-lane.vendor .pl-role { justify-content: flex-end; }
.portal-lane .pl-live { width: 6px; height: 6px; border-radius: 50%; background: var(--ai); box-shadow: 0 0 8px var(--ai); animation: ag-blink 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){ .portal-lane .pl-live { animation: none; } }

/* the exchange thread */
.portal-thread { padding: 16px 18px; display: grid; gap: 11px; min-height: 286px; align-content: start; position: relative; }
.exch { display: flex; gap: 10px; max-width: 78%; opacity: 0; transform: translateY(10px); animation: exch-in .5s var(--ease-out) forwards; }
.exch.buyer { align-self: flex-start; }
.exch.vendor { align-self: flex-end; flex-direction: row-reverse; text-align: right; }
.exch.cross { align-self: center; max-width: 92%; }
body.cine-static .exch { opacity: 1; transform: none; animation: none; }
@keyframes exch-in { to { opacity: 1; transform: none; } }
.exch-av { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 10px; }
.exch.buyer .exch-av { background: var(--verified-12); border: 1px solid var(--verified-20); color: var(--brand); }
.exch.vendor .exch-av { background: var(--observed-12); border: 1px solid var(--observed-20); color: var(--observed); }
.exch-bubble {
  border-radius: 13px; padding: 9px 13px; font-size: 13px; line-height: 1.42; color: var(--text);
  border: 1px solid var(--border-2);
}
.exch.buyer .exch-bubble { background: rgba(224,145,46,.07); border-top-left-radius: 4px; }
.exch.vendor .exch-bubble { background: rgba(116,169,204,.08); border-top-right-radius: 4px; }
.exch-ctrl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
/* evidence chip attached to a vendor answer */
.exch-ev { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 5px 9px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: rgba(255,255,255,.03); font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.exch-ev .ev-doc { width: 15px; height: 15px; border-radius: 3px; background: #fff; color: #111; display: grid; place-items: center; font-size: 8px; font-weight: 700; }

/* NetRisk cross-check verdict line */
.exch.cross .exch-bubble {
  display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.025);
  border-style: dashed; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2);
}
.exch.cross .xc-ico { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.exch-verdict { font-family: var(--font-mono); font-size: 10px; padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap; border: 1px solid currentColor; }
.exch-verdict.ver { color: var(--evidence); background: var(--evidence-12); }
.exch-verdict.rev { color: var(--ai); background: var(--ai-12); }
.exch-verdict.con { color: var(--missing); background: var(--missing-12); }
.exch-verdict.gap { color: var(--critical); background: var(--critical-12); }

/* portal footer: progress + tally + principle */
.portal-foot { display: flex; align-items: center; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.portal-prog { flex: 1; min-width: 180px; }
.portal-prog .pp-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); margin-bottom: 6px; }
.portal-prog .pp-bar { height: 6px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); overflow: hidden; }
.portal-prog .pp-bar i { display: block; height: 100%; width: 66%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--brand), var(--evidence)); }
.portal-tally { display: flex; gap: 7px; flex-wrap: wrap; }
.portal-principle { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.portal-principle b { color: var(--brand); font-weight: 500; }

@media (max-width: 760px) {
  .portal-lanes { grid-template-columns: 1fr; }
  .portal-lane.vendor { border-left: 0; border-top: 1px solid var(--border); }
  .exch { max-width: 92%; }
  .portal-foot { gap: 10px; }
}

/* ============================================================
   NetRisk.io — Provenance Trace (slide 5) — rebuilt
   "Every conclusion traces to a source." A claim resolves into
   an audit-grade chain with an animated drawing beam.
   ============================================================ */
.vtrace { max-width: 1080px; width: 100%; margin-inline: auto; }

/* the claim hero on top */
.vt-claim {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--evidence-12), transparent), var(--elevated);
  border: 1px solid var(--evidence-20); box-shadow: 0 20px 60px -34px var(--evidence);
}
.vt-claim .vc-seal {
  width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: var(--evidence); border: 1.5px solid var(--evidence-20); background: var(--evidence-12);
  box-shadow: 0 0 26px -6px var(--evidence);
}
.vt-claim .vc-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--evidence); }
.vt-claim .vc-t { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px,2.1vw,22px); margin-top: 3px; line-height: 1.18; }
.vt-claim .vc-lvl { margin-left: auto; text-align: right; flex: none; }
.vt-claim .vc-lvl .vl-badge { font-family: var(--font-mono); font-size: 10.5px; color: var(--evidence); padding: 5px 11px; border-radius: var(--r-pill); border: 1px solid var(--evidence-20); background: var(--evidence-12); display: inline-flex; align-items: center; gap: 7px; }
.vt-claim .vc-lvl .vl-sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-top: 6px; }

/* the trace chain */
.vt-chain { position: relative; margin-top: 22px; }
.vt-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.vt-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; z-index: 2; }
.vt-node {
  position: relative; padding: 16px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border-2); background: var(--surface);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.vt-node:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.vt-node .vn-step { position: absolute; top: 12px; right: 13px; font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }
.vt-node .vn-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border-2); margin-bottom: 13px; color: var(--tc); background: var(--tc-12); }
.vt-node .vn-k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.vt-node .vn-t { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; margin-top: 5px; line-height: 1.22; }
.vt-node .vn-s { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); margin-top: 7px; line-height: 1.35; }
.vt-node .vn-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--tc); padding: 3px 8px; border-radius: var(--r-pill); border: 1px solid var(--tc-20); background: var(--tc-12); }

/* the drawing beam */
.vt-beam { fill: none; stroke: var(--evidence); stroke-width: 2; opacity: .9; filter: drop-shadow(0 0 6px var(--evidence-20)); }
.vt-pulse { fill: var(--evidence); filter: drop-shadow(0 0 6px var(--evidence)); }
@media (prefers-reduced-motion: reduce){ .vt-pulse { display: none; } }

@media (max-width: 760px) {
  .vt-cols { grid-template-columns: 1fr; gap: 10px; }
  .vt-svg { display: none; }
  .vt-claim { flex-wrap: wrap; }
  .vt-claim .vc-lvl { margin-left: 0; text-align: left; }
}

/* ============================================================
   EVIDENCE CHAIN — claim → source → scope → reviewer → trust
   ============================================================ */
.evchain { margin-top: 44px; }
.evchain-claim {
  text-align: center; max-width: 680px; margin: 0 auto 32px; padding: 22px 26px;
  border-radius: var(--r-lg); border: 1px solid var(--ai-20);
  background: radial-gradient(circle at 50% 0%, var(--ai-12), transparent 70%), var(--elevated);
}
.evchain-claim .ec-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ai); }
.evchain-claim .ec-q { display: block; font-family: var(--font-editorial); font-style: italic; font-size: clamp(20px,2.6vw,28px); color: var(--text); margin-top: 10px; line-height: 1.2; }
.evchain-claim .ec-meta { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-top: 12px; }

.evchain-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap: 6px; align-items: stretch; }
.ec-node {
  position: relative; padding: 18px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border-2); background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.ec-node:hover { transform: translateY(-4px); border-color: var(--ec); box-shadow: 0 16px 40px -22px var(--ec); }
.ec-node .ecn-step { position: absolute; top: 12px; right: 13px; font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }
.ec-node .ecn-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ec); background: var(--ec-12); border: 1px solid var(--ec-20); margin-bottom: 14px; }
.ec-node .ecn-k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ec); }
.ec-node .ecn-t { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; margin-top: 6px; line-height: 1.25; }
.ec-node .ecn-s { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); margin-top: 7px; }
.ec-arrow { display: grid; place-items: center; color: var(--text-faint); }

.evchain-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; justify-content: center; }
.evchain-foot .ecf-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); width: 100%; text-align: center; margin-top: 6px; }

@media (max-width: 860px) {
  .evchain-flow { grid-template-columns: 1fr; gap: 8px; }
  .ec-arrow { transform: rotate(90deg); padding: 2px 0; }
}
