/* /v2 landing — Carrd-style animations (PR 119 Fix #2).
   Pure CSS keyframes, no vendor lib. Disabled when the user has set
   prefers-reduced-motion: reduce. */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero CTA "rise-in" on initial paint — kicked by JS adding
   .is-visible after a tiny defer. */
[data-animate="rise-in"] {
  transform: translateY(36px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1);
}

/* Carousel cross-fade for the auto-rotating template strip. */
.v2-carousel {
  position: relative;
  margin: 56px auto;
  max-width: 1100px;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10, 5, 24, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.v2-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease;
  pointer-events: none;
}

.v2-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.v2-carousel-slide iframe {
  width: 250%;
  height: 250%;
  border: 0;
  transform: scale(0.4);
  transform-origin: top left;
}

.v2-carousel-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(10, 5, 24, 0.7);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 2;
  pointer-events: none;
}

/* Responsive demo — phone mockup that toggles between "desktop" and
   "mobile" layout to signal "your site adapts". */
.v2-responsive-demo {
  margin: 56px auto;
  max-width: 480px;
  text-align: center;
}

.v2-phone-frame {
  display: inline-block;
  width: 280px;
  height: 560px;
  border: 12px solid #1f1838;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 24px 60px rgba(192, 38, 211, 0.22);
  transition: width 600ms ease, height 600ms ease;
}

.v2-phone-frame.is-desktop {
  width: 460px;
  height: 280px;
  border-radius: 16px;
}

.v2-phone-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate],
  [data-animate].is-visible,
  .v2-carousel-slide,
  .v2-carousel-slide.is-active,
  .v2-phone-frame {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
