/* Hover and demo-step motion. Brand marks are Simple Icons (CC0). */

svg.brand-icon,
.feature-icon svg.brand-icon,
.channel-icon svg.brand-icon,
.gmap-search svg.brand-icon,
.gmap-agent-badge svg.brand-icon,
.confirm-foot .chip-check svg.brand-icon {
  fill: #4285F4;
  stroke: none;
  stroke-width: 0;
}

.feature-icon svg:not(.brand-icon),
.eyebrow-icon svg,
.booking-chip .chip-check svg {
  stroke: currentColor;
}

.feature-icon svg.brand-icon,
.channel-icon svg.brand-icon {
  width: 26px;
  height: 26px;
}

.gmap-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gmap-search svg.brand-icon {
  width: 14px;
  height: 14px;
  flex: none;
}

.gmap-agent-badge svg.brand-icon {
  width: 16px;
  height: 16px;
}

.confirm-foot .chip-check svg.brand-icon {
  width: 15px;
  height: 15px;
}

svg.motion {
  transform-box: fill-box;
  transform-origin: center;
  overflow: visible;
}

.feature-icon,
.channel-icon,
.industry-icon,
.price-icon,
.ledger-icon,
.connect-icon,
.note-icon,
.eyebrow-icon,
.modal-icon,
.confirm-check,
.play-icon {
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.feature-card:hover .feature-icon,
.channel-card:hover .channel-icon,
.industry-card:hover .industry-icon,
.price-step:hover .price-icon,
.ledger-row:hover .ledger-icon,
.connect-card:hover .connect-icon,
.image-note:hover .note-icon,
.booking-chip:hover .chip-check,
.text-button:hover .play-icon {
  transform: translateY(-2px);
}

.button svg,
.inline-link svg,
.header-cta svg,
.announcement a svg,
.feature-card a svg,
.industry-card a svg {
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

a.button:hover svg:not(.motion),
.inline-link:hover svg,
.header-cta:hover svg,
.announcement a:hover svg,
.feature-card a:hover svg,
.industry-card a:hover svg {
  transform: translateX(3px);
}

.feature-card:hover svg.motion,
.channel-card:hover svg.motion,
.industry-card:hover svg.motion,
.price-step:hover svg.motion,
.ledger-row:hover svg.motion,
.connect-card:hover svg.motion,
.image-note:hover svg.motion,
.booking-chip:hover svg.motion,
.eyebrow:hover svg.motion,
.modal.open .modal-icon svg.motion,
.rating:hover svg.motion,
.ticker span:hover svg.motion,
.play-icon:hover svg.motion,
#demo-play:hover svg.motion,
.gmap-btn:hover svg.motion,
.demo-panel.is-replay svg.motion {
  animation-name: var(--ai-motion, ai-pop);
  animation-duration: .72s;
  animation-timing-function: cubic-bezier(.2, .75, .2, 1);
  animation-fill-mode: both;
}

.demo-panel.is-replay .gmap-pin svg {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: ai-bounce .8s cubic-bezier(.2, .8, .2, 1);
}

.demo-panel.is-replay .call-screen-avatar {
  animation: ai-avatar 1s ease;
}

.demo-panel.is-replay .confirm-check {
  animation: ai-pop .5s cubic-bezier(.2, .8, .2, 1);
}

.demo-panel.is-replay .confirm-row {
  animation: ai-line .4s ease both;
}

.demo-panel.is-replay .confirm-row:nth-child(2) { animation-delay: .05s; }
.demo-panel.is-replay .confirm-row:nth-child(3) { animation-delay: .1s; }
.demo-panel.is-replay .confirm-row:nth-child(4) { animation-delay: .15s; }
.demo-panel.is-replay .confirm-row:nth-child(5) { animation-delay: .2s; }
.demo-panel.is-replay .confirm-row:nth-child(6) { animation-delay: .25s; }

.t-line {
  animation: ai-line .45s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes ai-ring {
  0% { transform: rotate(0); }
  18% { transform: rotate(-16deg); }
  36% { transform: rotate(14deg); }
  54% { transform: rotate(-8deg); }
  72% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}

@keyframes ai-pop {
  0% { transform: scale(.62); opacity: .4; }
  58% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes ai-bounce {
  0%, 100% { transform: translateY(0); }
  38% { transform: translateY(-6px); }
  68% { transform: translateY(2px); }
}

@keyframes ai-flip {
  0% { transform: rotateX(72deg) scale(.94); }
  100% { transform: rotateX(0) scale(1); }
}

@keyframes ai-twinkle {
  0%, 100% { transform: rotate(0) scale(1); }
  42% { transform: rotate(-16deg) scale(1.14); }
  72% { transform: rotate(10deg) scale(1.04); }
}

@keyframes ai-nudge {
  0%, 100% { transform: translateX(0); }
  45% { transform: translateX(3px); }
}

@keyframes ai-spin {
  0% { transform: rotate(-10deg) scale(.94); }
  46% { transform: rotate(12deg) scale(1.08); }
  100% { transform: rotate(0) scale(1); }
}

@keyframes ai-nod {
  0%, 100% { transform: translateY(0); }
  42% { transform: translateY(-3px); }
}

@keyframes ai-pulse {
  0%, 100% { transform: scale(1); }
  46% { transform: scale(1.14); }
}

@keyframes ai-draw {
  0% { stroke-dasharray: 32; stroke-dashoffset: 32; }
  100% { stroke-dasharray: 32; stroke-dashoffset: 0; }
}

@keyframes ai-line {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes ai-avatar {
  0% { transform: scale(.88); box-shadow: 0 0 0 0 rgba(84, 208, 170, .45); }
  55% { transform: scale(1); box-shadow: 0 0 0 12px rgba(84, 208, 170, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(84, 208, 170, 0); }
}

@media (prefers-reduced-motion: reduce) {
  svg.motion,
  .t-line,
  .demo-panel.is-replay .gmap-pin svg,
  .demo-panel.is-replay .call-screen-avatar,
  .demo-panel.is-replay .confirm-check,
  .demo-panel.is-replay .confirm-row,
  .button svg,
  .inline-link svg,
  .header-cta svg,
  .announcement a svg,
  .feature-card a svg,
  .industry-card a svg,
  .feature-icon,
  .channel-icon,
  .industry-icon,
  .price-icon,
  .ledger-icon,
  .connect-icon,
  .note-icon,
  .play-icon {
    animation: none !important;
    transition: none !important;
  }
}
