/* AliceMR Funnel — Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Raleway:ital,wght@0,300;0,400;0,600;0,700;1,300&display=swap');

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Counter animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 600px; }
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-down {
  animation: slideDown 0.3s ease-out forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Sticky header — always white bg, shadow on scroll */
.header-scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  border-color: transparent !important;
}

/* CTA button colors — triple-defense (Tailwind classes + inline styles + CSS !important) */
#main-header .btn-login {
  color: #4FA394 !important;
  border: 1px solid #A3D5CC !important;
  background: transparent !important;
  font-weight: 600 !important;
}
#main-header .btn-login:hover {
  color: #3D8A7D !important;
  border-color: #6BB8A8 !important;
}
#main-header .btn-primary {
  color: #ffffff !important;
  background: #6BB8A8 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(107,184,168,0.25) !important;
}
#main-header .btn-primary:hover {
  background: #4FA394 !important;
}

/* Card hover lift */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Timeline connector */
.timeline-node::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -40px;
  width: 2px;
  background: linear-gradient(to bottom, #6BB8A8, #A3D5CC);
}
.timeline-node:last-child::before {
  display: none;
}

/* Tab active state */
.tab-active {
  border-bottom: 3px solid #6BB8A8;
  color: #6BB8A8;
  font-weight: 600;
}

/* Gradient text — teal accent on light hero */
.gradient-text {
  background: linear-gradient(135deg, #6BB8A8, #4FA394);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stepper connector line */
.stepper-line {
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: linear-gradient(to right, #6BB8A8, #A3D5CC);
}

/* Placeholder mockup styling */
.mockup-placeholder {
  background: linear-gradient(135deg, #3D8A7D 0%, #4FA394 50%, #6BB8A8 100%);
  border: 2px solid #6BB8A8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A3D5CC;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* Mobile nav overlay */
.mobile-nav-open {
  overflow: hidden;
}

/* Dropdown menu */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}
.nav-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #6BB8A8;
  box-shadow: 0 0 0 3px rgba(107, 184, 168, 0.2);
}

/* Offset overlap card pattern */
.overlap-card {
  position: relative;
  margin-top: -60px;
  z-index: 10;
}

@media (min-width: 768px) {
  .overlap-card {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    width: 45%;
  }
}

/* Scroll reveal helper — JS adds .revealed */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Defensive text color fallbacks — Tailwind CDN may not apply */
.reveal-on-scroll h2, .reveal-on-scroll h3 { color: #111827; }
.reveal-on-scroll p { color: #4B5563; }
