/* MPGo Team - custom styles layered on top of Tailwind CDN
   Kept intentionally small: reveal animations, accordion, and a few
   effects that are cleaner in plain CSS than utility classes. */

:root {
  --navy-900: #0b1f3a;
  --accent-500: #10b981;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  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;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Subtle grid / dot backdrop used behind the hero */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(11, 31, 58, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 31, 58, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.bg-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* FAQ accordion */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
  opacity: 0;
}
.faq-item[data-open="true"] .faq-answer {
  max-height: 420px;
  opacity: 1;
}
.faq-item[data-open="true"] .faq-icon {
  transform: rotate(45deg);
}
.faq-icon { transition: transform 0.3s ease; }

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Marquee-free integration strip: gentle fade on edges */
.mask-fade-x {
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

/* Animated sync pulse dot */
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.pulse-dot { animation: pulseDot 2s infinite; }

/* Thin custom scrollbar for the mock tables */
.mini-scroll::-webkit-scrollbar { height: 6px; width: 6px; }
.mini-scroll::-webkit-scrollbar-thumb { background: rgba(11,31,58,0.18); border-radius: 999px; }
