/* ============================================================
   PROJECT VISUALS — bespoke per-project right-panel mockups
   Replaces the homepage showcase terminal with a visual that
   reflects each project's actual product surface.
   ============================================================ */

.proj-visual {
  position: relative;
  z-index: 1;
  height: 390px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05), 0 16px 56px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
}

.pv-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light, var(--border));
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.pv-bar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2D9D6F;
  box-shadow: 0 0 0 3px rgba(45, 157, 111, 0.15);
}

.pv-bar-dot.amber { background: #C49E5F; box-shadow: 0 0 0 3px rgba(196, 158, 95, 0.18); }
.pv-bar-title { color: var(--text-primary); font-weight: 600; font-size: 12px; }
.pv-bar-spacer { flex: 1; }
.pv-bar-meta { font-size: 11px; color: var(--text-muted); }

.pv-body {
  flex: 1;
  padding: 16px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---- Stagger entrance ---- */
@keyframes pvEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pvSlideIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pvBubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pvFillBar {
  from { width: 0; }
}
@keyframes pvScan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  10%      { opacity: 0.7; }
  50%      { transform: translateY(180px); opacity: 0.7; }
  60%      { opacity: 0; }
}
@keyframes pvDot {
  0%, 80%, 100% { transform: scale(1); opacity: 0.4; }
  40%           { transform: scale(1.3); opacity: 1; }
}

.pv-anim {
  opacity: 0;
  animation: pvEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards;
}
.pv-slide {
  opacity: 0;
  animation: pvSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards;
}
.pv-bubble {
  opacity: 0;
  animation: pvBubbleIn 0.45s cubic-bezier(0.34, 1.5, 0.64, 1) var(--d, 0s) forwards;
}

/* ---- Typing dots ---- */
.pv-typing {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.pv-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: pvDot 1.2s ease-in-out infinite;
}
.pv-typing span:nth-child(2) { animation-delay: 0.15s; }
.pv-typing span:nth-child(3) { animation-delay: 0.3s; }

/* ============================================================
   1. funding — Streamed conversation transcript
   No header / no footer / no bubbles — just text streaming
   ============================================================ */
.proj-visual:has(.pv-stream-host) {
  /* When the visual is the funding stream, drop the default
     card frame so the conversation can use its own surface. */
  background: transparent;
  border: none;
  box-shadow: none;
  height: auto;
  overflow: visible;
}

.pv-stream-host {
  position: relative;
  height: clamp(420px, 62vh, 580px);
  padding: 36px 40px;
  border-radius: 20px;
  background:
    linear-gradient(180deg,
      #ffffff 0%,
      #fcfaf5 100%);
  border: 1.5px solid rgba(20, 16, 8, 0.12);
  box-shadow:
    0 18px 48px rgba(60, 40, 20, 0.10),
    0 4px 12px rgba(60, 40, 20, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

/* Soft top/bottom fade so streaming lines flow gracefully */
.pv-stream-host::before,
.pv-stream-host::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  pointer-events: none;
  z-index: 1;
}
.pv-stream-host::before {
  top: 0;
  background: linear-gradient(180deg,
    rgba(255, 253, 248, 0.95) 0%,
    rgba(255, 253, 248, 0) 100%);
}
.pv-stream-host::after {
  bottom: 0;
  background: linear-gradient(0deg,
    rgba(248, 244, 235, 0.95) 0%,
    rgba(248, 244, 235, 0) 100%);
}

.pv-stream-host {
  /* Container is the scrollable region */
  overflow-y: auto;
  scroll-behavior: smooth;
}
.pv-stream-host::-webkit-scrollbar { width: 0; }
.pv-stream-host { scrollbar-width: none; }

/* ---- Pixel-mosaic reveal effect ----
   A grid of colored tiles overlays the card on entry. Each tile
   fades out at a random delay so the card resolves out of pixels
   into the actual content. */
.pv-pixel-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  pointer-events: none;
  z-index: 6;
  border-radius: inherit;
  overflow: hidden;
}

.pv-pixel-overlay .pv-pixel {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.92;
  animation: pvPixelFade 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform, filter;
}

@keyframes pvPixelFade {
  0%   { opacity: 0.92; transform: scale(1); filter: blur(0); }
  60%  { opacity: 0.5;  transform: scale(0.96); filter: blur(2px); }
  100% { opacity: 0;    transform: scale(0.88); filter: blur(4px); }
}

/* ---- Centered ring loader ----
   Lives inside .pv-stream-host (which is position: relative) and centers
   itself with absolute positioning. A subtle brand-warm spinning ring with
   a soft glow halo. Fades cleanly just before content starts streaming. */
.pv-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  animation: pvLoaderIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pv-loader.is-leaving {
  animation: pvLoaderOut 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pv-loader-ring {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid rgba(20, 16, 8, 0.08);
  border-top-color: #8B6B3E;          /* brand warm brown */
  border-right-color: #C49E5F;         /* brand tan */
  animation: pvLoaderSpin 0.85s linear infinite;
}

/* Soft halo behind the ring */
.pv-loader-ring::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 158, 95, 0.18), transparent 70%);
  z-index: -1;
  animation: pvLoaderHalo 1.6s ease-in-out infinite;
}

@keyframes pvLoaderIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pvLoaderOut {
  to { opacity: 0; transform: scale(0.92); }
}

@keyframes pvLoaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes pvLoaderHalo {
  0%, 100% { transform: scale(1);    opacity: 0.5; }
  50%      { transform: scale(1.15); opacity: 1;   }
}

.pv-stream {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-primary);
  padding-bottom: 4px;
}

.pv-stream-line {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  letter-spacing: -0.1px;
  word-wrap: break-word;
  min-height: 1.6em;
}

/* Subtle distinction without explicit user/bot labels:
   - User: slightly bolder + primary color
   - Bot:  regular weight + secondary tone */
.pv-stream-user {
  font-weight: 600;
  color: var(--text-primary);
}
.pv-stream-bot {
  font-weight: 400;
  color: var(--text-secondary);
}

/* SMS variant — left/right alignment for sender / receiver */
.pv-stream-sms .pv-stream-line {
  max-width: 80%;
}

/* User side: styled chat bubble (iMessage-feel pill) */
.pv-stream-sms .pv-stream-user {
  align-self: flex-end;
  display: inline-block;
  width: auto;
  text-align: left;
  background: var(--text-primary);
  color: #F5F1E8;
  padding: 10px 16px;
  border-radius: 18px;
  border-bottom-right-radius: 6px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* Bot side: plain transcript text (no bubble) */
.pv-stream-sms .pv-stream-bot {
  align-self: flex-start;
  text-align: left;
  padding: 0 4px;
}

/* Cursor inside the dark user bubble should be light to remain visible */
.pv-stream-sms .pv-stream-user .pv-stream-cursor {
  background: #F5F1E8;
}

/* Slide-in-from-bottom entry animation per message — applies in SMS view */
.pv-stream-sms .pv-stream-line {
  animation: pvLineSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes pvLineSlide {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Blinking caret while a message types in */
.pv-stream-cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: var(--text-primary);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: pvStreamCursor 0.85s steps(2) infinite;
}

@keyframes pvStreamCursor {
  to { opacity: 0; }
}

/* ============================================================
   1b. (legacy) Investor Match Cards — still used elsewhere
   ============================================================ */
.pv-chat-tight { gap: 6px; }
.pv-chat-tight .pv-chat-bubble { font-size: 12px; padding: 8px 12px; }
.pv-chat-tight .pv-investors { margin-top: 4px; }

.pv-investors-compact .pv-investor-card {
  padding: 9px 11px;
  border-radius: 10px;
}
.pv-investors-compact .pv-investor-logo { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
.pv-investors-compact .pv-investor-name { font-size: 12.5px; }
.pv-investors-compact .pv-investor-meta { font-size: 10.5px; }
.pv-investors-compact .pv-match-pct { font-size: 18px; }
.pv-investors-compact .pv-match-bar { width: 48px; }

.pv-investors { display: flex; flex-direction: column; gap: 8px; }
.pv-investors-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-muted); margin-bottom: 4px;
}
.pv-investors-count { color: var(--text-primary); font-weight: 600; }
.pv-investor-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pv-investor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.pv-investor-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--text-primary);
  color: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.pv-investor-logo.amber { background: #C49E5F; }
.pv-investor-logo.slate { background: #4A6178; }
.pv-investor-info { flex: 1; min-width: 0; }
.pv-investor-name { font-size: 13.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.pv-investor-meta { font-size: 11px; color: var(--text-muted); }
.pv-match-block { text-align: right; min-width: 56px; }
.pv-match-pct {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: 22px;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.pv-match-bar {
  margin-top: 4px;
  height: 3px; width: 56px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.pv-match-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #C49E5F, #8B7355);
  border-radius: 2px;
  width: var(--w, 90%);
  animation: pvFillBar 1s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) backwards;
}

/* ============================================================
   2. heartbeat — Patient Chat Thread
   ============================================================ */
.pv-chat { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.pv-chat-bubble {
  max-width: 75%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.45;
  word-wrap: break-word;
}
.pv-bubble-user {
  background: var(--text-primary);
  color: var(--bg-card);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.pv-bubble-bot {
  background: var(--bg-page);
  color: var(--text-primary);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.pv-bubble-warn {
  background: rgba(196, 158, 95, 0.12);
  border-color: rgba(196, 158, 95, 0.4);
  color: #8B6914;
}
.pv-confirm-card {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(45, 157, 111, 0.06);
  border: 1px solid rgba(45, 157, 111, 0.25);
  border-radius: 12px;
}
.pv-confirm-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #2D9D6F;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.pv-confirm-info { flex: 1; }
.pv-confirm-title { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.pv-confirm-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   3. chat — Microsoft Teams Thread
   ============================================================ */
.pv-teams { display: flex; flex-direction: column; gap: 14px; }
.pv-teams-channel {
  font-size: 11.5px;
  font-weight: 600;
  color: #4B53BC;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light, var(--border));
}
.pv-teams-msg { display: flex; gap: 10px; }
.pv-teams-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  flex-shrink: 0;
}
.pv-avatar-user { background: #B5651D; color: white; }
.pv-avatar-bot { background: #4B53BC; color: white; font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif; font-size: 14px; }
.pv-teams-content { flex: 1; min-width: 0; }
.pv-teams-meta {
  display: flex; gap: 8px; align-items: baseline;
  margin-bottom: 4px;
}
.pv-teams-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.pv-teams-time { font-size: 10.5px; color: var(--text-muted); }
.pv-teams-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-primary);
}
.pv-teams-text ol { margin: 6px 0 0; padding-left: 18px; }
.pv-teams-text li { margin: 2px 0; }
.pv-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   4. docs — SMS Conversation
   ============================================================ */
.pv-sms { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.pv-sms-header {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light, var(--border));
  margin-bottom: 4px;
}
.pv-sms-bubble {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.4;
}
.pv-sms-bubble.pv-bubble-user {
  background: #007AFF;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.pv-sms-bubble.pv-bubble-bot {
  background: #E9E9EB;
  color: #1C1C1E;
  border: none;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.pv-doc-link {
  margin-top: 6px;
  display: flex; gap: 11px; align-items: center;
  padding: 11px 13px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 12px;
  align-self: flex-start;
  max-width: 80%;
}
.pv-doc-icon {
  width: 36px; height: 44px;
  border-radius: 6px;
  background: linear-gradient(160deg, #DC2626 0%, #991B1B 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.pv-doc-info { flex: 1; min-width: 0; }
.pv-doc-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.pv-doc-meta { font-size: 11px; color: #2D9D6F; margin-top: 2px; }

/* ============================================================
   5. rag — Live Metric Dashboard
   ============================================================ */
.pv-dash { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.pv-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pv-stat {
  padding: 12px 13px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 11px;
}
.pv-stat-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.pv-stat-row { display: flex; align-items: baseline; gap: 8px; }
.pv-stat-value {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: 24px;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.pv-stat-trend {
  font-size: 10.5px;
  font-weight: 600;
}
.pv-stat-trend.up { color: #2D9D6F; }
.pv-stat-trend.down { color: #2D9D6F; }
.pv-spark {
  margin-top: 4px;
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 11px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pv-spark-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pv-spark-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.pv-spark-meta { font-size: 11px; color: #2D9D6F; font-weight: 600; }
.pv-spark-svg { flex: 1; width: 100%; }
.pv-spark-svg path.line {
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: pvSparkDraw 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
@keyframes pvSparkDraw { to { stroke-dashoffset: 0; } }
.pv-spark-svg path.area { fill: rgba(139, 115, 85, 0.08); opacity: 0; animation: pvFadeIn 0.6s ease 1.4s forwards; }
@keyframes pvFadeIn { to { opacity: 1; } }

/* ============================================================
   6. grid — Annotated PDF
   ============================================================ */
.pv-pdf { display: grid; grid-template-columns: 1fr 100px; gap: 12px; height: 100%; }
.pv-pdf-page {
  position: relative;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pv-pdf-line {
  height: 5px;
  background: var(--border);
  border-radius: 2px;
}
.pv-pdf-line.short { width: 60%; }
.pv-pdf-line.med { width: 80%; }
.pv-pdf-highlight {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  background: rgba(196, 158, 95, 0.18);
  border-left: 2px solid #C49E5F;
  font-size: 10.5px;
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 0 4px 4px 0;
}
.pv-pdf-highlight::after {
  content: attr(data-note);
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  font-style: italic;
}
.pv-pdf-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 28px;
  background: linear-gradient(180deg,
    rgba(139, 115, 85, 0) 0%,
    rgba(139, 115, 85, 0.12) 50%,
    rgba(139, 115, 85, 0) 100%);
  pointer-events: none;
  animation: pvScan 3.2s ease-in-out infinite;
}
.pv-pdf-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pv-pdf-stat {
  padding: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 9px;
  text-align: center;
}
.pv-pdf-stat-val {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: 22px;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.pv-pdf-stat-lbl {
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.3;
}

/* ============================================================
   7. shield — Regulatory Q&A Card
   ============================================================ */
.pv-qa { display: flex; flex-direction: column; gap: 14px; }
.pv-qa-query {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}
.pv-qa-q-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
}
.pv-qa-q-text { color: var(--text-primary); font-weight: 500; }
.pv-qa-answer {
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--bg-page) 0%, rgba(196, 158, 95, 0.06) 100%);
  border: 1px solid rgba(196, 158, 95, 0.25);
  border-radius: 12px;
}
.pv-qa-verdict {
  font-family: 'Utendo', 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  font-size: 19px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.pv-qa-detail {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.pv-qa-conf {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.pv-qa-conf-bar {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.pv-qa-conf-fill {
  display: block;
  height: 100%;
  width: 97%;
  background: linear-gradient(90deg, #C49E5F, #2D9D6F);
  border-radius: 3px;
  animation: pvFillBar 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s backwards;
}
.pv-qa-conf-val { color: var(--text-primary); font-weight: 600; }
.pv-qa-cites {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pv-qa-cite {
  font-size: 10.5px;
  padding: 4px 9px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
}

/* ============================================================
   8. timeline — Docket Timeline
   ============================================================ */
.pv-tl { display: flex; flex-direction: column; height: 100%; }
.pv-tl-list {
  position: relative;
  padding-left: 26px;
  flex: 1;
}
.pv-tl-list::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.pv-tl-item {
  position: relative;
  padding: 9px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pv-tl-dot {
  position: absolute;
  left: -22px;
  top: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
}
.pv-tl-dot.done {
  background: #2D9D6F;
  border-color: #2D9D6F;
}
.pv-tl-dot.active {
  background: var(--bg-card);
  border-color: #C49E5F;
  box-shadow: 0 0 0 4px rgba(196, 158, 95, 0.18);
}
.pv-tl-content { flex: 1; }
.pv-tl-date {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.pv-tl-event {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}
.pv-tl-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.pv-tl-current .pv-tl-event {
  color: #8B6914;
}
.pv-tl-current .pv-tl-meta {
  color: #8B6914;
  opacity: 0.8;
}

/* ============================================================
   Responsive — keep visuals legible on narrower viewports
   ============================================================ */
@media (max-width: 900px) {
  .proj-visual { height: 360px; }
  .pv-body { padding: 14px; }
  .pv-pdf { grid-template-columns: 1fr 90px; }
  /* Mobile: tighten the stream-host padding to a uniform 12px so the
     conversation copy doesn't sit too close to the card edges. */
  .pv-stream-host { padding: 12px; }
}

@media (max-width: 600px) {
  .proj-visual { height: 340px; }
  .pv-investor-card { padding: 10px 12px; }
  .pv-investor-logo { width: 34px; height: 34px; font-size: 13px; }
  .pv-match-pct { font-size: 19px; }
  .pv-stat-value { font-size: 21px; }
  .pv-qa-verdict { font-size: 16px; }
  .pv-stream-host { padding: 12px; }
}
