/* Product-page polish overrides for ABH Assistant. */

.eyebrow .eyebrow-icon {
  display: grid !important;
  place-items: center;
  align-items: center;
  justify-items: center;
  padding-bottom: 0;
  line-height: 1;
}

.eyebrow-icon img {
  margin: auto;
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 8px rgba(255, 48, 72, 0.32));
}

@media (width <= 760px) {
  .eyebrow-icon img {
    width: 30px;
    height: 30px;
  }
}

.cta-primary {
  background: linear-gradient(
    100deg,
    #5660df 0%,
    #9550d6 48%,
    #df3a54 100%
  ) !important;
  box-shadow:
    0 12px 28px rgba(223, 58, 84, 0.18),
    0 8px 22px rgba(86, 96, 223, 0.16) !important;
}

.cta-primary:hover {
  filter: brightness(1.04) saturate(1.02) !important;
}

.app-wrap:has(.abh-intro-frame) .app-glow {
  inset: -7% -5%;
  opacity: 0.86;
  filter: blur(46px);
  background: conic-gradient(
    from 205deg,
    rgba(94, 69, 255, 0.58),
    rgba(188, 75, 255, 0.46),
    rgba(255, 70, 96, 0.58),
    rgba(94, 69, 255, 0.58)
  );
}

.abh-intro-frame {
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid transparent !important;
  background:
    linear-gradient(#02050d, #02050d) padding-box,
    var(
        --abh-global-gradient,
        linear-gradient(90deg, #5e45ff 0%, #bc4bff 44%, #ff4660 100%)
      )
      border-box !important;
  border-radius: 28px;
  box-shadow:
    0 0 24px rgba(94, 69, 255, 0.38),
    0 0 44px rgba(188, 75, 255, 0.24),
    0 0 64px rgba(255, 70, 96, 0.24) !important;
}

.abh-intro-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #02050d;
}

.abh-intro-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 2rem;
  color: #d4d7df;
  background: #02050d;
  font-size: 0.95rem;
  text-align: center;
}

.abh-intro-frame[data-video-error="true"] .abh-intro-video {
  display: none;
}

.abh-intro-frame[data-video-error="true"] .abh-intro-fallback {
  display: grid;
}

html[data-abh-theme="light"] body .app.abh-intro-frame {
  border: 0 !important;
  background: #f8fafc !important;
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.12),
    -12px 0 42px rgba(94, 69, 255, 0.14),
    12px 0 42px rgba(255, 70, 96, 0.14) !important;
}

html[data-abh-theme="light"] .app-wrap:has(.abh-intro-frame) .app-glow {
  opacity: 0.42;
}

@media (prefers-reduced-motion: reduce) {
  .abh-intro-video {
    visibility: hidden;
  }

  .abh-intro-frame {
    background:
      url("/brand/assistant/page-v2/intro/assistant-intro-poster.webp") center /
        contain no-repeat padding-box,
      var(
          --abh-global-gradient,
          linear-gradient(90deg, #5e45ff 0%, #bc4bff 44%, #ff4660 100%)
        )
        border-box !important;
  }

  html[data-abh-theme="light"] body .app.abh-intro-frame {
    background: #f8fafc
      url("/brand/assistant/page-v2/intro/assistant-intro-light-poster.webp")
      center / contain no-repeat !important;
  }
}

@media (width <= 760px) {
  .app-wrap:has(.abh-intro-frame) .app-glow {
    inset: -5% -3%;
    filter: blur(30px);
  }
}

.control-card h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.control-card p {
  font-size: 0.81rem;
  line-height: 1.46;
}

.section__inner {
  width: min(1180px, calc(100% - 32px));
  align-items: start;
}

.section {
  min-height: auto;
  padding: clamp(42px, 5vw, 62px) 0 clamp(76px, 8vw, 112px) !important;
  overflow: visible;
}

.section__copy {
  align-self: start !important;
  padding-top: 0 !important;
  position: relative !important;
  top: auto !important;
  will-change: transform;
}

.section__visual {
  align-self: start;
}

.interactive-stage {
  place-items: start center;
  padding: 0 !important;
}

.section__copy h1 {
  max-width: 11.5ch;
  color: #f8f8fb;
  letter-spacing: -0.05em;
  text-align: left;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: clamp(2rem, 3.45vw, 3.7rem);
  font-weight: 780;
  line-height: 1.02;
}

.section__copy h1 .accent {
  color: transparent;
  background: linear-gradient(90deg, #5e45ff 0%, #bc4bff 44%, #ff4660 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.section__copy .subhead {
  color: #b7bbc5;
  max-width: 31rem;
  font-size: clamp(0.86rem, 1vw, 1rem);
  line-height: 1.65;
}

@media (width <= 1050px) {
  .section__copy h1,
  .section__copy .subhead {
    text-align: center;
    max-width: 100%;
    margin-inline: auto;
  }
}

.abh-assistant-core {
  top: 33.6%;
  left: 40.56%;
  display: grid;
  place-items: center;
}

.abh-assistant-icon {
  margin: auto;
  width: 78%;
  height: 78%;
  display: block;
  object-fit: contain;
  object-position: center;
  place-self: center;
  background: transparent !important;
}

.abh-platform-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
  object-position: center;
}

.pricing-note strong {
  color: inherit;
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  .abh-playing .abh-outer-orbit {
    animation:
      0.5s ease-out 0.14s both abhOrbitReveal,
      26s linear 0.64s infinite abhPolishOrbitClockwise;
  }

  .abh-playing .abh-middle-orbit {
    animation:
      0.5s ease-out 0.22s both abhOrbitReveal,
      21s linear 0.72s infinite abhPolishOrbitCounterClockwise;
  }

  .abh-playing .abh-main-ring {
    animation:
      0.46s ease-out 0.1s both abhRingReveal,
      4.8s ease-in-out 0.62s infinite abhPolishRingPulse;
  }

  .abh-playing .abh-assistant-core {
    animation:
      0.46s cubic-bezier(0.16, 1, 0.3, 1) 0.03s both abhAssistantReveal,
      4.2s ease-in-out 0.55s infinite abhPolishAssistantFloat;
  }

  .abh-playing .abh-flow-pulse {
    animation: 3.4s ease-in-out calc(var(--delay) + 0.9s) infinite
      abhPolishSignalFlow;
  }

  .abh-playing .abh-platform-card {
    animation:
      abhCardReveal var(--card-reveal-duration) cubic-bezier(0.16, 1, 0.3, 1)
        var(--delay) both,
      4.6s ease-in-out calc(var(--delay) + 0.45s) infinite alternate
        abhPolishCardFloat;
  }
}

@keyframes abhPolishOrbitClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes abhPolishOrbitCounterClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes abhPolishRingPulse {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes abhPolishAssistantFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2.5%) scale(1.018);
  }
}

@keyframes abhPolishSignalFlow {
  0%,
  18%,
  100% {
    opacity: 0;
    stroke-dashoffset: 1px;
  }
  28% {
    opacity: 0.95;
  }
  72% {
    opacity: 0.95;
  }
  84% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes abhPolishCardFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-2.5%);
  }
}

@media (width <= 640px) {
  .hotspot {
    margin: -7px 0 0 -7px;
    transform: none !important;
  }

  .hotspot__card {
    box-sizing: border-box !important;
    width: calc(100vw - 24px) !important;
    min-width: calc(100vw - 24px) !important;
    max-width: none !important;
    inset: auto auto 12px 12px !important;
    margin: 0 !important;
  }
}
