/* Scripted conversation playback, built on the partner site's existing tokens. */
.partner-conversation-intro { max-width: 710px; margin-bottom: 30px; }
.partner-conversation-intro .partner-button { margin-top: 15px; }
.partner-demo { max-width: 840px; margin: 0 auto; }
.partner-ai-demo { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.demo-screen-chrome { display: flex; align-items: center; gap: 18px; min-height: 43px; padding: 0 18px;
  background: var(--surface-soft); border-bottom: 1px solid var(--line-soft); color: var(--fg-2); font-size: 10px; }
.demo-window-dots { display: flex; gap: 5px; }
.demo-window-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--marker); }
.demo-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.demo-toolbar .demo-scenarios { margin: 0; flex: 1; }
.demo-screen-body { height: 550px; padding: 23px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.demo-screen-body:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.demo-scenarios { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.demo-scenarios button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
  border: 0; border-radius: 7px; color: var(--fg-2); background: var(--surface-soft); padding: 8px 11px; font: 11px/1.5 var(--sans); }
.demo-scenarios button:hover { background: var(--surface-hover); color: var(--fg); }
.demo-scenarios button[aria-pressed=true] { background: var(--surface); color: var(--fg); font-weight: 550; }
.demo-screen-body .partner-chat-brand { margin-bottom: 24px; }
.demo-question { padding: 16px 20px; background: var(--surface); border-radius: 10px 10px 3px 10px; font-size: 15px;
  max-width: 78%; margin-left: auto; min-height: 58px; line-height: 1.7; }
.demo-question-caret { display: none; width: 2px; height: 1em; margin-left: 3px; background: currentColor; vertical-align: -.1em; }
.partner-demo[data-typing=true] .demo-question-caret { display: inline-block; animation: demo-pulse .6s ease-in-out infinite; }
.demo-progress { padding: 25px 0 10px; font-size: 12px; color: var(--fg-2); }
.demo-progress-heading { display: flex; align-items: center; gap: 10px; min-height: 22px; }
.demo-stage-steps { display: flex; gap: 7px; margin-top: 13px; flex-wrap: wrap; }
.demo-stage-steps span { font-size: 10px; padding: 5px 9px; border-radius: 5px; background: var(--surface-soft); }
.demo-stage-steps span::before { content: '○'; margin-right: 6px; }
.demo-stage-steps [data-state=active] { color: var(--fg); background: var(--surface); }
.demo-stage-steps [data-state=active]::before { content: '◉'; }
.demo-stage-steps [data-state=done]::before { content: '✓'; }
.demo-progress[hidden], .demo-widget-grid[hidden] { display: none; }
.demo-progress-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-2); animation: demo-pulse 1.2s ease-in-out infinite; }
.demo-response { min-height: 125px; padding-top: 24px; }
.demo-response > p { font-size: 14px; line-height: 1.85; color: var(--fg-2); max-width: 800px; }
.demo-widget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.demo-card { background: var(--surface-soft); border-radius: 9px; padding: 20px; min-width: 0; }
.demo-widget-grid:not([hidden]) .demo-card { animation: demo-reveal .3s ease both; }
.demo-widget-grid:not([hidden]) .demo-card:nth-child(2) { animation-delay: .08s; }
.demo-widget-grid:not([hidden]) .demo-card:nth-child(3) { animation-delay: .16s; }
.demo-widget-grid:not([hidden]) .demo-card:nth-child(4) { animation-delay: .24s; }
.demo-card:first-child:nth-last-child(4) { grid-column: 1 / -1; }
.demo-card:last-child:nth-child(3), .demo-card:first-child:nth-last-child(4) ~ .demo-card:last-child { grid-column: 1 / -1; }
.demo-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.demo-card-heading h4 { margin: 0; font-size: 12px; font-weight: 550; }
.demo-card-heading a { font-size: 10px; color: var(--fg-2); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.demo-card p { font-size: 11px; line-height: 1.8; color: var(--fg-2); margin: 12px 0 0; }
.demo-inline-link { display: inline-block; font-size: 10px; margin-top: 10px; text-decoration: underline !important; text-underline-offset: 3px; }
.demo-metric { display: block; font: 550 27px/1.3 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.demo-bar-row { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-variant-numeric: tabular-nums; }
.demo-bar-row > span:first-child { min-width: 55px; font-size: 10px; color: var(--fg-2); }
.demo-bar-row strong { font-size: 11px; font-weight: 500; min-width: 50px; text-align: right; }
.demo-bar-track { flex: 1; height: 6px; background: var(--surface-active); border-radius: 3px; overflow: hidden; }
.demo-bar-fill { display: block; height: 100%; border-radius: 3px; background: var(--bar-neutral); }
.demo-price-rail { height: 2px; background: var(--line); position: relative; margin: 26px 0; }
.demo-price-point { position: absolute; width: 8px; height: 8px; border-radius: 50%; top: -3px; background: var(--fg-2); transform: translateX(-50%); }
.demo-level-labels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.demo-level-labels span { display: block; font-size: 10px; color: var(--fg-2); margin-bottom: 4px; }
.demo-level-labels strong { font-size: 15px; font-weight: 550; font-variant-numeric: tabular-nums; }
.demo-thesis { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.demo-thesis strong { font-size: 12px; font-weight: 550; }
.demo-thesis > div:first-child strong { color: var(--pos); }
.demo-thesis > div:last-child strong { color: var(--neg); }
.demo-catalyst-row { margin-bottom: 17px; }
.demo-catalyst-row strong { font-size: 11px; font-weight: 550; }
.demo-catalyst-row p { margin-top: 4px; }
.demo-card .demo-shock-label { font-size: 10px; margin-top: -7px; margin-bottom: 20px; }
.demo-a11y-pause:focus { position: static; width: auto; height: auto; clip: auto; overflow: visible; padding: 8px 12px;
  margin: 18px 0 0; border: 0; border-radius: 6px; color: var(--fg); background: var(--surface); }
@keyframes demo-pulse { 50% { opacity: .3; } }
@keyframes demo-reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .demo-widget-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .demo-screen-body { height: 510px; padding: 18px; }
  .demo-screen-chrome { padding: 0 14px; gap: 12px; }
  .partner-ai-demo .partner-chat-brand { flex-wrap: wrap; }
  .partner-ai-demo .partner-chat-brand span { font-size: 9px; }
  .demo-scenarios { gap: 6px; }
  .demo-scenarios button { font-size: 10px; padding: 8px 9px; }
  .demo-question { max-width: 95%; font-size: 13px; padding: 13px 15px; }
  .demo-response > p { font-size: 12px; }
  .demo-thesis { grid-template-columns: 1fr; gap: 20px; }
  .demo-card { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .partner-demo[data-typing=true] .demo-question-caret { animation: none; }
  .demo-progress-dot { animation: none; }
  .demo-widget-grid:not([hidden]) .demo-card { animation: none; }
}
