/* Movimento compartilhado das capturas reais do produto.
   O HTML continua totalmente legivel se este arquivo nao carregar. */
.pf-product-visual {
  --pf-visual-accent: 12, 100, 244;
  position: relative;
  isolation: isolate;
  perspective: 1200px;
}

.pf-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
}

.pf-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.pf-hero-copy h1 {
  font-size: clamp(40px, 4vw, 54px) !important;
}

.pf-ai-agent-hero {
  z-index: 1;
  width: min(100%, 440px);
  max-width: 100%;
  margin: -18px 0 -34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  justify-self: end;
  overflow: visible;
}

.pf-ai-agent-hero::before {
  inset: 18% 10% 9%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(12, 100, 244, 0.11),
    rgba(12, 100, 244, 0) 70%
  );
  filter: blur(32px);
}

.pf-ai-agent-hero .pf-product-frame {
  overflow: visible;
}

.pf-ai-agent-hero .pf-product-frame::after {
  display: none;
}

.pf-ai-agent-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 28px 28px rgba(15, 23, 42, 0.16));
}

@media (max-width: 900px) {
  .pf-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .pf-hero-copy {
    order: 0;
  }

  .pf-hero-copy h1 {
    font-size: clamp(30px, 8.4vw, 42px) !important;
    line-height: 1.08 !important;
  }

  .pf-hero-layout .pf-ai-agent-hero {
    order: 1;
    width: min(64vw, 250px);
    margin: 12px auto -26px;
    justify-self: center;
  }

  .pf-hero-layout .pf-ai-agent-hero img {
    max-height: 375px;
    object-position: center;
  }

  /* No celular, mostra a conversa em vez da tela inteira do produto. */
  .pf-conversation-visual .pf-product-frame {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: rgb(255, 255, 255);
  }

  .pf-conversation-visual .pf-product-frame > :not(img) {
    display: none !important;
  }

  .pf-conversation-visual img.pf-product-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    object-position: 82% 52%;
  }
}

.pf-product-visual::before {
  position: absolute;
  z-index: -1;
  inset: 12% 5% -2%;
  border-radius: 32px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--pf-visual-accent), 0.18),
    rgba(var(--pf-visual-accent), 0) 68%
  );
  content: "";
  opacity: 0;
  filter: blur(30px);
  transform: translate3d(0, 14px, 0) scale(0.92);
  transition:
    opacity 900ms ease,
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pf-product-frame {
  --pf-tilt-x: 0deg;
  --pf-tilt-y: 0deg;
  position: relative;
  overflow: hidden;
  opacity: 0.01;
  transform: translate3d(0, 26px, 0) scale(0.975)
    rotateX(var(--pf-tilt-x)) rotateY(var(--pf-tilt-y));
  transform-style: preserve-3d;
  transform-origin: center center;
  transition:
    opacity 700ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 450ms ease;
  will-change: transform;
}

.pf-product-frame::after {
  position: absolute;
  z-index: 3;
  inset: -55% -80%;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.08) 46%,
    rgba(255, 255, 255, 0.52) 50%,
    rgba(255, 255, 255, 0.08) 54%,
    transparent 58%
  );
  content: "";
  opacity: 0;
  transform: translate3d(-38%, 0, 0);
  pointer-events: none;
}

.pf-product-image {
  transform: translateZ(0);
  transition: filter 600ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-product-visual.pf-in-view::before {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.pf-product-visual.pf-in-view .pf-product-frame {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1)
    rotateX(var(--pf-tilt-x)) rotateY(var(--pf-tilt-y));
}

.pf-product-visual.pf-in-view .pf-product-frame::after {
  animation: pf-visual-sheen 1350ms 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (hover: hover) and (pointer: fine) {
  .pf-product-visual.pf-in-view:hover .pf-product-frame {
    box-shadow: rgba(15, 23, 42, 0.42) 0 46px 90px -52px !important;
  }

  .pf-product-visual.pf-in-view:hover .pf-product-image {
    filter: saturate(1.035) contrast(1.015);
    transform: translateZ(14px) scale(1.006);
  }

  .pf-product-visual.pf-ai-agent-hero.pf-in-view:hover .pf-product-frame {
    box-shadow: none !important;
  }

  .pf-product-visual.pf-ai-agent-hero.pf-in-view:hover .pf-product-image {
    filter: drop-shadow(0 30px 30px rgba(15, 23, 42, 0.18)) saturate(1.035);
  }
}

@keyframes pf-visual-sheen {
  0% {
    opacity: 0;
    transform: translate3d(-38%, 0, 0);
  }
  16% {
    opacity: 0.75;
  }
  72% {
    opacity: 0.38;
  }
  100% {
    opacity: 0;
    transform: translate3d(38%, 0, 0);
  }
}

@media (max-width: 720px) {
  .pf-ai-agent-hero {
    padding: 0;
    border-radius: 0;
  }

  .pf-product-visual::before {
    inset: 16% 4% 1%;
    filter: blur(22px);
  }

  .pf-product-frame {
    transform: translate3d(0, 18px, 0) scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-product-visual::before,
  .pf-product-frame,
  .pf-product-image {
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }

  .pf-product-frame::after {
    display: none;
    animation: none !important;
  }
}
