.chat-demo {
  display: grid;
  gap: 8px;
  max-width: 23rem;
  margin-top: 1.25rem;
  font-size: .875rem;
  line-height: 1.45;
}
.chat-question, .chat-answer, .chat-typing {
  padding: .6rem .85rem;
  border-radius: 14px;
}
.chat-question { justify-self: end; background: #eeede8; color: #292d34; border-bottom-right-radius: 4px; }
.chat-response { display: grid; justify-items: start; }
.chat-response > * { grid-area: 1 / 1; align-self: start; }
.chat-answer, .chat-typing { background: #f6d5cd; color: #292d34; border-bottom-left-radius: 4px; }
.chat-answer { max-width: 90%; }
.chat-typing { display: none; align-items: center; height: 2.4rem; gap: 4px; }
.chat-typing i { width: 4px; height: 4px; border-radius: 50%; background: #65514f; }
.step { position: relative; }
.step:not(:last-child)::before {
  content: ''; position: absolute; left: 16px; top: 58px; bottom: -24px;
  width: 1px; background: #f48376; opacity: .55; pointer-events: none; transform-origin: top;
}
@media (max-width: 760px) {
  .step:not(:last-child)::before { left: -9px; top: 42px; bottom: -41px; }
}
@keyframes vixa-rise { from { opacity: 0; transform: translateY(7px); } }
@keyframes vixa-slide { from { opacity: 0; transform: translateX(-7px); } }
@keyframes vixa-line { from { transform: scaleY(0); } }
@keyframes vixa-typing { 0%, 100% { opacity: 0; } 15%, 85% { opacity: 1; } }
@keyframes vixa-dot { 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: no-preference) {
  h1.motion-seen, h2.motion-seen, .step.motion-seen, .chat-demo.motion-seen .chat-question {
    animation: vixa-rise 420ms ease-out backwards;
  }
  .step.motion-seen:nth-child(2) { animation-delay: 75ms; }
  .step.motion-seen:nth-child(3) { animation-delay: 150ms; }
  .step.motion-seen::before { animation: vixa-line 570ms 90ms ease-out backwards; }
  .dashboard.motion-seen .lead-row { animation: vixa-slide 380ms ease-out backwards; }
  .dashboard.motion-seen .lead-row + .lead-row { animation-delay: 90ms; }
  .dashboard.motion-seen .lead-row + .lead-row + .lead-row { animation-delay: 180ms; }
  .dashboard.motion-seen .lead-row + .lead-row + .lead-row + .lead-row { animation-delay: 270ms; }
  .chat-demo.motion-seen .chat-typing { display: flex; opacity: 0; animation: vixa-typing 1s .45s both; }
  .chat-demo.motion-seen .chat-typing i { animation: vixa-dot 420ms .5s 2; }
  .chat-demo.motion-seen .chat-typing i:nth-child(2) { animation-delay: .58s; }
  .chat-demo.motion-seen .chat-typing i:nth-child(3) { animation-delay: .66s; }
  .chat-demo.motion-seen .chat-answer { animation: vixa-rise 300ms 1.45s backwards; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn, .link-arrow, .chip-btn, .tab, .link-arrow::after, .chip-btn::after { transition: transform 160ms ease-out, background-color 160ms ease-out; }
  .btn:hover, .link-arrow:hover, .chip-btn:hover, .tab:hover { transform: translateY(-2px); }
  .link-arrow:hover::after, .chip-btn:hover::after { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .link-arrow:hover, .chip-btn:hover, .tab:hover, .link-arrow:hover::after, .chip-btn:hover::after { transform: none; }
}
.chip-btn::after { display: inline-block; }
