/* 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-clock-shadow: #e9bf68;
  position: relative;
  isolation: isolate;
  width: min(480px, calc(100% - 46px));
  height: 206px;
  margin: 0 auto 30px;
  pointer-events: none;
  user-select: none;
}

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

.cta-illustration .contact-mark {
  --cta-duration: 6.4s;
  --cta-phase: -1.1s;
  --cta-drift: -11px;
  position: absolute;
  z-index: 2;
  top: 20px;
  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: 50px;
  left: 14px;
  width: 104px;
  height: 96px;
}

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

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

@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: 182px;
    margin-bottom: 28px;
  }

  .cta-illustration .contact-mark { top: 24px; }
  .cta-browser { top: 48px; left: 0; width: 80px; height: 74px; }
  .cta-chat { top: 92px; right: 0; width: 74px; height: 74px; }
  .cta-clock { top: 0; left: calc(50% + 68px); width: 60px; height: 60px; }
}

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