/* Custom overrides beyond Tailwind CDN */

html { scroll-behavior: smooth; }

.prose h2 { margin-top: 1.5rem; }

/* Chat widget animations */
#michael-chat-panel {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#michael-chat-panel.hidden-state {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
}

.chat-bubble-assistant {
  background: #f0e6da;
  color: #3d2814;
  border-radius: 16px 16px 16px 4px;
}
.chat-bubble-user {
  background: #8a5f30;
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
}

.typing-dot {
  animation: typingBlink 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBlink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

#chat-fab {
  box-shadow: 0 8px 24px rgba(196, 154, 74, 0.5);
}

/* "Shark sees blood" pulse effect for the primary conversion CTAs */
.cta-pulse {
  position: relative;
  animation: ctaPulseScale 2.2s ease-in-out infinite;
}
.cta-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(196, 154, 74, 0.55);
  animation: ctaPulseRing 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes ctaPulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@keyframes ctaPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(196, 154, 74, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(196, 154, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 154, 74, 0); }
}

/* Floating CTA (chat-fab) entrance animation, plays once after scroll */
.fab-enter {
  animation: fabEnter 0.5s ease-out;
}
@keyframes fabEnter {
  0% { opacity: 0; transform: translateY(16px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.quick-reply-btn:hover {
  background: #8a5f30;
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #dfc9ab; border-radius: 3px; }
