/* Floating CTA trial. Remove this stylesheet's link from both landing pages
   to restore the original 72px brand mark. The satellites keep their hidden
   attributes and the extra wrapper is visually neutral without this file. */
.cta-illustration {
  --cta-mark-size: 176px;
  --cta-chat-fill: #d6e8b9;
  --cta-chat-shadow: #b7ce99;
  --cta-bolt-shadow: #e9bf68;
  position: relative;
  isolation: isolate;
  width: min(520px, calc(100% - 46px));
  height: 240px;
  margin: 0 auto 30px;
  pointer-events: none;
  user-select: none;
}

html[data-brand="fencing"] .cta-illustration {
  --cta-bolt-shadow: #ceb58e;
}

.cta-illustration .contact-mark {
  --cta-duration: 6.4s;
  --cta-phase: -1.1s;
  --cta-drift: -11px;
  position: absolute;
  z-index: 2;
  top: 30px;
  left: calc((100% - var(--cta-mark-size)) / 2);
  width: var(--cta-mark-size);
  height: var(--cta-mark-size);
  margin: 0;
}

.cta-illustration .contact-mark > span,
.cta-illustration .contact-mark .brand-icon,
.cta-illustration .contact-mark .brand-fencing img {
  width: 100%;
  height: 100%;
}

.cta-illustration > .cta-satellite[hidden] {
  display: block;
}

.cta-illustration .cta-satellite {
  position: absolute;
  z-index: 1;
}

.cta-illustration .cta-satellite svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cta-browser {
  --cta-duration: 7.2s;
  --cta-phase: -2.4s;
  --cta-drift: -13px;
  top: 30px;
  left: 18px;
  width: 104px;
  height: 96px;
}

.cta-chat {
  --cta-duration: 7.8s;
  --cta-phase: -4.2s;
  --cta-drift: -10px;
  top: 132px;
  right: 10px;
  width: 94px;
  height: 94px;
}

.cta-lightning {
  --cta-duration: 6.8s;
  --cta-phase: -.7s;
  --cta-drift: -11px;
  top: 0;
  left: calc(50% + 65px);
  width: 80px;
  height: 80px;
}

.cta-growth {
  --cta-duration: 7.5s;
  --cta-phase: -3.1s;
  --cta-drift: -10px;
  top: 142px;
  left: 54px;
  width: 110px;
  height: 102px;
}

@media (prefers-reduced-motion: no-preference) {
  .cta-illustration .contact-mark,
  .cta-illustration .cta-satellite {
    animation: cta-icon-drift var(--cta-duration) ease-in-out infinite;
    animation-delay: var(--cta-phase);
    animation-play-state: paused;
  }

  .cta-illustration.is-in-view .contact-mark,
  .cta-illustration.is-in-view .cta-satellite {
    animation-play-state: running;
  }
}

@keyframes cta-icon-drift {
  0%, 100% { transform: translateY(0) rotate(-.7deg); }
  50% { transform: translateY(var(--cta-drift)) rotate(.9deg); }
}

@media (max-width: 600px) {
  .cta-illustration {
    --cta-mark-size: 136px;
    width: min(340px, calc(100% - 46px));
    height: 224px;
    margin-bottom: 28px;
  }

  .cta-illustration .contact-mark { top: 30px; }
  .cta-browser { top: 30px; left: 0; width: 80px; height: 74px; }
  .cta-chat { top: 120px; right: 0; width: 74px; height: 74px; }
  .cta-lightning { top: 0; left: calc(50% + 68px); width: 60px; height: 60px; }
  .cta-growth { top: 138px; left: 14px; width: 86px; height: 80px; }
}

@media (max-width: 360px) {
  .cta-illustration { --cta-mark-size: 124px; }
}
