/* ==========================================================================
   GLOBAL — CSS custom properties, resets, typography, shared utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Primary (sky) */
  --color-primary-50:  #f0f9ff;
  --color-primary-100: #e0f2fe;
  --color-primary-200: #bae6fd;
  --color-primary-300: #7dd3fc;
  --color-primary-400: #38bdf8;
  --color-primary-500: #0ea5e9;
  --color-primary-600: #0284c7;
  --color-primary-700: #0369a1;
  --color-primary-800: #075985;
  --color-primary-900: #0c4a6e;

  /* Accent (yellow) */
  --color-accent-400: #facc15;
  --color-accent-500: #eab308;

  /* Gray (slate) */
  --color-gray-50:  #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;

  /* Border-radius scale */
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-2xl:  16px;
  --radius-3xl:  24px;
  --radius-4xl:  32px;   /* [2rem]   */
  --radius-5xl:  40px;   /* [2.5rem] */

  /* Shadows */
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);

  /* Font */
  --font-sans: 'Wix Madefor Display', ui-sans-serif, system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset / Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html, body {
  width: 100%;
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: var(--color-gray-800);
  line-height: 1.6;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* --------------------------------------------------------------------------
   Scroll Animations — IntersectionObserver-driven
   -------------------------------------------------------------------------- */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-slide-up {
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  /* Default: running. JS IntersectionObserver may override per-element. */
  animation-play-state: running;
}
/* When JS is active it adds this class to pause before viewport entry */
.js-animate-paused .animate-slide-up {
  animation-play-state: paused;
}

/* Stagger delays for sibling cards */
.animate-slide-up:nth-child(1) { animation-delay:   0ms; }
.animate-slide-up:nth-child(2) { animation-delay: 100ms; }
.animate-slide-up:nth-child(3) { animation-delay: 200ms; }
.animate-slide-up:nth-child(4) { animation-delay: 300ms; }
.animate-slide-up:nth-child(5) { animation-delay: 400ms; }
.animate-slide-up:nth-child(6) { animation-delay: 500ms; }

/* --------------------------------------------------------------------------
   Pulse animation (badge dots)
   -------------------------------------------------------------------------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --------------------------------------------------------------------------
   Shared utility classes
   -------------------------------------------------------------------------- */

/* Hide scrollbar cross-browser */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Visually hidden (accessibility) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Gradient text helper */
.text-gradient-primary {
  background: linear-gradient(to right, var(--color-primary-400), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   Responsive utilities (replaces Tailwind helpers used in templates)
   -------------------------------------------------------------------------- */

/* Pricing grid: 3 cols on desktop, 2 on tablet, 1 on mobile */
#pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (min-width: 1280px) {
  #pricing-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 767px) {
  #pricing-grid { grid-template-columns: repeat(2, 1fr); }
  #mobile-pricing-grid { display: none !important; }
}

/* Testimonials: 4-col desktop, horizontal scroll mobile */
.testimonials-desktop-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.testimonials-mobile { display: none !important; }

@media (max-width: 1023px) {
  .testimonials-desktop-grid { display: none !important; }
  .testimonials-mobile       { display: block !important; }
  .testimonials-mobile > div {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Button base */
.btn-primary {
  display: inline-block;
  background-color: var(--color-primary-600);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover {
  background-color: var(--color-primary-700);
  box-shadow: var(--shadow-xl);
}
