/* YN motion layer: UI structure stays untouched; only motion is added. */

html:not(.motion-ready) .reveal,
html:not(.motion-ready) .motion-item {
  opacity: 1 !important;
  transform: none !important;
}

.hero::before {
  animation: ynAuraDrift 9s ease-in-out infinite alternate;
}

.eyebrow {
  position: relative;
  overflow: hidden;
}

.eyebrow::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: skewX(-18deg);
  animation: ynChipShine 3.4s ease-in-out infinite;
}

.btn-primary,
.btn-phone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn-primary::before,
.btn-phone::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% -50%;
  z-index: 0;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  animation: ynButtonSweep 2.8s ease-in-out infinite;
}

.btn-phone::after {
  z-index: 0;
  pointer-events: none;
}

.btn:hover {
  animation: ynButtonLift 0.34s ease both;
}

.cta-arrow,
.card-link {
  animation: ynArrowCue 1.28s ease-in-out infinite;
}

.proof-item,
.hc-row,
.pain,
.card,
.check,
.lead-card {
  will-change: transform, opacity;
}

.motion-ready .reveal,
.motion-ready .motion-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--motion-delay, 0ms);
}

.motion-ready .reveal.in,
.motion-ready .motion-item.in {
  opacity: 1;
  transform: none;
}

.motion-ready .proof-item.in,
.motion-ready .hc-row.in,
.motion-ready .check.in {
  animation: ynSoftPop 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-ready .card.in,
.motion-ready .pain.in,
.motion-ready .lead-card.in {
  animation: ynPanelSettle 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.check .ck,
.hc-row .ic,
.pain .n {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.check:hover .ck,
.hc-row:hover .ic,
.pain:hover .n {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.14);
}

@keyframes ynAuraDrift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.025);
  }
}

@keyframes ynChipShine {
  0%,
  52% {
    left: -48%;
  }

  100% {
    left: 118%;
  }
}

@keyframes ynButtonSweep {
  0%,
  48% {
    left: -50%;
  }

  100% {
    left: 118%;
  }
}

@keyframes ynButtonLift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-2px);
  }
}

@keyframes ynArrowCue {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.78;
  }

  50% {
    transform: translateX(8px);
    opacity: 1;
  }
}

@keyframes ynSoftPop {
  0% {
    transform: translateY(12px) scale(0.98);
  }

  100% {
    transform: none;
  }
}

@keyframes ynPanelSettle {
  0% {
    transform: translateY(18px);
    box-shadow: none;
  }

  100% {
    transform: none;
  }
}

@media (max-width: 760px) {
  .motion-ready .reveal,
  .motion-ready .motion-item {
    transform: translateY(12px);
    transition-duration: 0.5s;
  }

  .hero::before {
    animation-duration: 11s;
  }

  .cta-arrow,
  .card-link {
    animation-duration: 1.15s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .motion-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
