/* Clip horizontal decoration without creating a scrolling ancestor for sticky. */
html, body { max-width: 100%; overflow-x: clip; }
body { margin: 0; }
section { overflow-x: clip; }
.container, .ia-grid > *, .footer-grid > *, .metrics-row > *, .process-steps > * { min-width: 0; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.metrics-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ia-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.btn-primary, .btn-secondary { max-width: 100%; overflow-wrap: anywhere; }
.footer-col a { overflow-wrap: anywhere; }
#scroll-video-section { height: 500svh !important; }
#scroll-video-sticky { height: 100dvh !important; }
#hero-content-overlay { box-sizing: border-box; width: 100%; padding-bottom: max(76px, env(safe-area-inset-bottom)) !important; }
.chat-input { font-size: 16px; }
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .ia-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 768px) {
  .metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  #cta-band, footer { padding-left: 18px; padding-right: 18px; }
  .metric-card { padding: 24px 12px; }
  .metric-num { font-size: clamp(1.3rem, 6vw, 2rem); }
  .section-title, .cta-title { font-size: clamp(1.4rem, 6.5vw, 2rem); overflow-wrap: anywhere; }
  .whatsapp-float { bottom: max(12px, env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); }
}
.hero-title .line1 { display: block; }
.hero-badge { margin: 18px 0 8px; max-width: 100%; box-sizing: border-box; }
.chat-input { min-width: 0; }
.quick-replies { flex-wrap: wrap; }
.msg { white-space: pre-line; overflow-wrap: anywhere; }
.handoff-panel { padding: 14px; border: 1px solid rgba(255,215,0,.3); border-radius: 12px; font-size: 13px; }
.handoff-panel textarea { display: block; width: 100%; box-sizing: border-box; margin: 10px 0; padding: 10px; background: #15151e; color: white; border: 1px solid #777; border-radius: 8px; font: inherit; }
.handoff-panel p { margin-top: 10px; font-size: 12px; line-height: 1.5; }
.whatsapp-transfer { display: inline-block; color: #76e99e; text-decoration: none; }
.qr-btn:focus-visible, .chat-send:focus-visible, .chat-input:focus-visible { outline: 2px solid #FFD700; outline-offset: 3px; }
@media (max-width: 600px) {
  #hero-content-overlay { padding: 88px 18px 76px !important; }
  .hero-title { width: 100%; font-size: clamp(1.6rem, 7.4vw, 2.8rem); line-height: 1.16; letter-spacing: -.5px; }
  .hero-title .line1 { white-space: normal; overflow-wrap: normal; }
  .hero-title .line2 { display: block; font-size: clamp(.85rem, 4vw, 1.4rem); margin-top: 12px; }
  .hero-badge { font-size: 9px; letter-spacing: 1.2px; line-height: 1.6; padding: 7px 12px; }
  .hero-sub { font-size: .9rem; line-height: 1.55; margin: 16px auto 22px; }
  .hero-buttons { gap: 10px; }
  .hero-buttons a { padding: 12px 18px; font-size: 11px; }
  .hero-stats { gap: 16px; margin-top: 22px; }
  .chat-body { max-height: 420px; padding: 14px; }
  .chat-input-row { padding: 12px; }
  .qr-btn { min-height: 44px; }
}
@media (max-height: 650px) and (max-width: 600px) {
  .hero-stats { display: none; }
  .hero-sub { margin: 10px auto 14px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  nav { padding: 8px 18px; }
  .nav-logo img { height: 38px; }
  .nav-links { display: none; }
  #hero-content-overlay { padding: 68px 24px 50px !important; }
  .hero-title { font-size: clamp(1.6rem, 5vw, 2.5rem); line-height: 1.1; margin-bottom: 0; }
  .hero-title .line2 { font-size: 1rem; }
  .hero-title .line1 br { display: none; }
  .hero-title .line2 { margin-top: 6px; }
  .hero-badge { font-size: 9px; letter-spacing: 1px; margin: 8px 0; padding: 5px 12px; }
  .hero-sub { font-size: .8rem; line-height: 1.4; margin: 4px auto 12px; }
  .hero-buttons a { padding: 10px 18px; font-size: 11px; }
  .hero-stats, #scroll-hint { display: none !important; }
  .whatsapp-float { padding: 10px; bottom: 10px; right: 10px; }
}
@media (max-height: 520px) and (orientation: portrait) {
  .hero-badge { margin: 8px 0; }
  .hero-sub { font-size: .8rem; line-height: 1.4; margin: 8px auto 12px; }
  .hero-buttons a { padding: 10px 16px; }
  #scroll-hint { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-title, .hero-badge, .hero-sub, .whatsapp-float { animation: none; transition: none; }
}
