/* =========================================================================
   PayCore360: supplemental styles (Tailwind handles most of the work)
   ========================================================================= */

:root {
  color-scheme: light dark;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Scroll-reveal: hidden by default, animate in when [data-reveal] gets
   the .reveal-in class from the IntersectionObserver in site.js. */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].reveal-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Honeypot: visually hidden but present in the DOM for bots. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Tabular numerals for stats / currency / pricing. */
.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Subtle ambient gradient mesh used behind heroes. */
.mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.mesh::before,
.mesh::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.5;
}
.mesh::before {
  width: 38rem;
  height: 38rem;
  top: -10rem;
  right: -8rem;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.45), transparent 65%);
}
.mesh::after {
  width: 34rem;
  height: 34rem;
  bottom: -14rem;
  left: -10rem;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.35), transparent 65%);
}
.dark .mesh::before {
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.28), transparent 65%);
}
.dark .mesh::after {
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.22), transparent 65%);
}

/* Card hover lift. */
.lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.lift:hover {
  transform: translateY(-4px);
}

/* Smooth dropdown/accordion icon rotation. */
[data-faq-icon] {
  transition: transform 0.2s ease;
}

/* Focus visibility for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgb(99, 102, 241);
  outline-offset: 2px;
}
