/* Custom styles for ESIMUSA35 */

/* Smooth transitions */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom accent color */
:root {
  --color-accent: #00c8a0;
  --color-brand: #3b5bdb;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 3px;
}

/* Selection */
::selection {
  background-color: #3b5bdb;
  color: white;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #3b5bdb, #00c8a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Trust card hover */
.trust-card:hover {
  transform: translateY(-4px);
}

/* FAQ animations */
.faq-answer {
  transition: all 0.3s ease;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* Navbar scroll shadow */
#navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Mobile menu transition */
#mobile-menu.open {
  display: block;
}

/* Comparison table highlight */
tr.highlight-row td {
  background-color: #eef2ff;
}

/* Price card animation */
.plan-card:hover .price-num {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Step connector (desktop) */
@media (min-width: 1024px) {
  .step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, #3b5bdb, #e5e7eb);
  }
}

/* Form input focus effect */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.15);
}

/* Button active state */
button:active, a.btn:active {
  transform: scale(0.97);
}

/* Prose styling for legal pages */
.prose h2 {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Responsive hero text */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

/* Table responsive */
@media (max-width: 640px) {
  table {
    font-size: 0.8rem;
  }
  table th, table td {
    padding: 0.75rem 0.875rem;
  }
}

/* Sticky pricing badge */
.sticky-price-badge {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  background: var(--color-brand);
  color: white;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(59, 91, 219, 0.35);
  transition: all 0.3s ease;
  transform: translateY(0);
  display: none;
}

.sticky-price-badge.visible {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sticky-price-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 91, 219, 0.45);
}

/* Section fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Subtle grid background */
.grid-bg {
  background-image: 
    linear-gradient(rgba(59,91,219,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,91,219,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
