/* ═══════════════════════════════════════════════════════════════
   CUSTOM STYLES — Animations, overrides, components
   ═══════════════════════════════════════════════════════════════ */

/* Cookie banner */
#cookie-banner {
  display: none;
}

#cookie-banner.show {
  display: block;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Infinite logo carousel */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
}

/* JS-dependent hidden elements */
.js-hide {
  opacity: 0;
  visibility: hidden;
}

/* Font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Privacy section beam animation */
@keyframes beam {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(200%);
  }
}

.animate-beam {
  animation: beam 2s linear infinite;
}

/* Smooth scroll with nav offset */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Active nav link highlight */
.nav-link-active {
  color: #2563eb !important;
  font-weight: 700 !important;
}

/* Lazy rendering for below-fold sections */
#features,
#privacy,
#pain-points,
#pricing {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* Pain card entrance animation (IntersectionObserver) */
.pain-card {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.pain-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pain-card:nth-child(1) {
  transition-delay: 0s;
}

.pain-card:nth-child(2) {
  transition-delay: 0.12s;
}

.pain-card:nth-child(3) {
  transition-delay: 0.24s;
}

.pain-card:nth-child(4) {
  transition-delay: 0.36s;
}

#pain-header {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

#pain-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Noscript fallback: show hidden content if JS fails */
.noscript-show {
  opacity: 1 !important;
  visibility: visible !important;
}

.pain-points-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ef4444' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
