/* Custom global styles */
.shadow-soft {
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}
.container-narrow {
  max-width: 1100px;
}
.section {
  scroll-margin-top: 96px;
}
.gradient-hero {
  background: radial-gradient(
    1400px 600px at 50% -10%,
    rgba(52, 148, 255, 0.2),
    transparent
  );
}

/* Selectable cards (solid highlight when selected) */
.selectable {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  background: #fff;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.selectable.is-selected {
  box-shadow: 0 0 0 2px #60a5fa inset;
  background: #eff6ff;
}

/* Equal height pricing cards to prevent layout shift */
.pricing-grid > .card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

/* Minor polish */
.section h2 + p {
  margin-top: 0.75rem;
}
a[class*="bg-brand-600"]:hover,
button[class*="bg-blue-600"]:hover {
  filter: saturate(1.05) brightness(0.98);
}
img[loading="lazy"] {
  contain: paint;
}

/* Focus visibility for accessibility */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.7);
  border-radius: 0.5rem;
}

/* Sticky mobile CTA bar */
@media (max-width: 640px) {
  .mobile-sticky-cta {
    position: sticky;
    bottom: 0;
    z-index: 50;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #e2e8f0;
    backdrop-filter: blur(6px);
  }
}

/* ---------- Hero animations tuned for light brand gradient ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.anim-up {
  animation: fadeUp 0.7s ease-out both;
}
.anim-up-1 {
  animation: fadeUp 0.7s ease-out 0.08s both;
}
.anim-up-2 {
  animation: fadeUp 0.7s ease-out 0.16s both;
}
.anim-up-3 {
  animation: fadeUp 0.7s ease-out 0.24s both;
}
.anim-in {
  animation: fadeIn 0.8s ease-out 0.35s both;
}

/* Brand glow for the $999 watermark on a light surface */
@keyframes pulseGlowBrand {
  0%,
  100% {
    text-shadow: 0 0 12px rgba(98, 176, 255, 0.25),
      0 0 36px rgba(98, 176, 255, 0.15);
  }
  50% {
    text-shadow: 0 0 18px rgba(52, 148, 255, 0.35),
      0 0 54px rgba(52, 148, 255, 0.22);
  }
}
.glow {
  animation: pulseGlowBrand 3s ease-in-out infinite;
}

/* Reduce motion: disable animations & hide bg video */
@media (prefers-reduced-motion: reduce) {
  .anim-up,
  .anim-up-1,
  .anim-up-2,
  .anim-up-3,
  .anim-in,
  .glow {
    animation: none !important;
  }
  video.bgvid {
    display: none;
  }
  img.video-poster {
    display: block;
  }
}

/* Optional deeper gradient tone for hero */
.gradient-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    1400px 600px at 50% -10%,
    rgba(52, 148, 255, 0.25),
    transparent
  );
  pointer-events: none;
  z-index: 1;
}

/* Make inline SVG edges look crisp on all DPI */
svg {
  shape-rendering: geometricPrecision;
}
