/* Home page-specific styles. Extracted from inline <style> in
   templates/public/home.html to make the CSS cacheable (1-day
   Cache-Control + stale-while-revalidate) and to slim the HTML
   payload on the busiest entry point. ~9 KB raw, gzip/brotli
   precompressed via npm run compress:static. */

/* ── Hero gradient ───────────────────────────────────────────── */
.hero-gradient {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #4338ca 0%, #312e81 45%, #0f0e23 100%);
  position: relative;
  overflow: hidden;
}

/* Animated floating shapes */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-28px) rotate(6deg); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(-5deg); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(8deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.3; }
}

.hero-shape {
  position: absolute;
  border-radius: 9999px;
  filter: blur(1px);
  pointer-events: none;
}
.hero-shape-1 {
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
  animation: float-slow 9s ease-in-out infinite, pulse-glow 9s ease-in-out infinite;
}
.hero-shape-2 {
  width: 400px; height: 400px;
  bottom: -120px; left: -80px;
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
  animation: float-medium 7s ease-in-out infinite 1s, pulse-glow 7s ease-in-out infinite 1s;
}
.hero-shape-3 {
  width: 250px; height: 250px;
  top: 30%; left: 55%;
  background: radial-gradient(circle, rgba(79,70,229,0.18) 0%, transparent 70%);
  animation: float-fast 5s ease-in-out infinite 0.5s;
}
.hero-shape-4 {
  width: 140px; height: 140px;
  top: 15%; left: 10%;
  background: radial-gradient(circle, rgba(167,139,250,0.15) 0%, transparent 70%);
  animation: float-medium 6s ease-in-out infinite 2s;
}

/* Grid line overlay */
.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Pill badge ──────────────────────────────────────────────── */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(165,180,252,0.3);
  backdrop-filter: blur(8px);
  color: #c7d2fe;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  letter-spacing: 0.01em;
}
.hero-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 6px 2px rgba(129,140,248,0.7);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ── Feature cards ───────────────────────────────────────────── */
.feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.3rem;
  background: linear-gradient(135deg, transparent 60%, rgba(99,102,241,0.12) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px -12px rgba(79,70,229,0.18), 0 8px 24px -8px rgba(0,0,0,0.08);
}

.feature-icon-wrap {
  width: 3.25rem; height: 3.25rem;
  border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}
.feature-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 1rem;
  opacity: 0.2;
}
.feature-icon-indigo  { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.feature-icon-indigo::after  { background: #6366f1; box-shadow: 0 0 16px 4px rgba(99,102,241,0.4); }
.feature-icon-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.feature-icon-emerald::after { background: #10b981; box-shadow: 0 0 16px 4px rgba(16,185,129,0.4); }
.feature-icon-violet  { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.feature-icon-violet::after  { background: #8b5cf6; box-shadow: 0 0 16px 4px rgba(139,92,246,0.4); }

/* ── Event cards ─────────────────────────────────────────────── */
.event-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px -16px rgba(79,70,229,0.15), 0 8px 24px -8px rgba(0,0,0,0.06);
}
.event-card:hover .event-img { transform: scale(1.05); }
.event-img { transition: transform 0.5s ease; }

.event-placeholder {
  width: 100%; height: 12rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #6d28d9 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.event-placeholder::before {
  content: '';
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -40px; right: -40px;
}
.event-placeholder::after {
  content: '';
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -20px; left: -20px;
}

/* Date badge */
.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}
.date-badge-full {
  background: #fef2f2;
  color: #dc2626;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-card {
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  /* The shared `.pricing-card` rule in components.css sets
     overflow:hidden (to keep the rounded-corner card image from
     spilling), but here on the home pricing block we need the
     `.pricing-badge` ribbon (top: -14px) to escape the card frame.
     Locally override so the badge isn't clipped. */
  overflow: visible;
}
.pricing-free     { background: #ffffff; border: 1.5px solid #e5e7eb; }
.pricing-premium  { background: #ffffff; border: 1.5px solid #e5e7eb; }
/* Pro is the highlighted tier — best value for active organisers, so
   it gets the dark gradient + "Recommended" badge that used to live
   on Premium before the 4-plan split. */
.pricing-pro {
  background: linear-gradient(145deg, #312e81 0%, #4338ca 40%, #5b21b6 100%);
  border: 1.5px solid rgba(165,180,252,0.25);
  box-shadow: 0 32px 80px -20px rgba(79,70,229,0.5), 0 0 0 1px rgba(99,102,241,0.2);
}
.pricing-business { background: #ffffff; border: 1.5px solid #c7d2fe; }
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #78350f;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
  white-space: nowrap;
}
.check-icon-free     { color: #4f46e5; }
.check-icon-premium  { color: #4f46e5; }
.check-icon-pro      { color: #a5b4fc; }
.check-icon-business { color: #4f46e5; }
.cross-icon          { color: #d1d5db; }

/* ── Animate on scroll ───────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.stagger-children.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.stagger-children.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.stagger-children.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.stagger-children.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.stagger-children.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.stagger-children.is-visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.stagger-children.is-visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.stagger-children.is-visible > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }
/* Catch-all: any child beyond the explicitly-delayed set still reveals
   (no per-item delay) instead of staying stuck at opacity:0. Guards
   against the "invisible card" bug when more items are added than there
   are nth-child rules — exactly what happened when the custom-fields +
   AI feature cards pushed the grid from 6 to 8 items. */
.stagger-children.is-visible > *:nth-child(n+9) { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }

/* ── Section label ───────────────────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

/* ── CTA section ─────────────────────────────────────────────── */
.cta-gradient {
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
}
.cta-gradient::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ── Stat strip ──────────────────────────────────────────────── */
.stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
}
