/* HandyCafe Filtre — Landing Page Custom Styles */

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

/* ─── Plan Card ──────────────────────────────────────────────── */
.plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  border: 2px solid #e5e7eb;
  padding: 1.5rem;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.plan-card * {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.plan-card > ul {
  flex: 1 1 auto;
}

.plan-card .plan-cta {
  margin-top: auto;
}

.plan-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.12);
}

.plan-card.popular {
  border-color: #2563eb;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.18);
  padding-top: 2.5rem;
}

.plan-card .popular-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  text-align: center;
  white-space: nowrap;
}

.plan-price-amount {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #111827;
}

.plan-price-original {
  font-size: 1rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #374151;
  padding: 0.375rem 0;
}

.plan-feature svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #16a34a;
}

.plan-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
  margin-top: 1.5rem;
  text-decoration: none;
}

.plan-cta.primary {
  background: #2563eb;
  color: #ffffff;
}

.plan-cta.primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.plan-cta.secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.plan-cta.secondary:hover {
  background: #e5e7eb;
}

/* ─── FAQ Accordion ──────────────────────────────────────────── */
.faq-body {
  display: none;
}

.faq-body.open {
  display: block;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

/* ─── Counter Animation ──────────────────────────────────────── */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ─── Founding banner pulse ──────────────────────────────────── */
@keyframes subtle-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.85; }
}

#countdown {
  animation: subtle-pulse 2s ease-in-out infinite;
}

/* ─── Responsive nav hide on mobile ─────────────────────────── */
@media (max-width: 767px) {
  #plans-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Anchor offset for fixed header ────────────────────────── */
[id] {
  scroll-margin-top: 5rem;
}

/* ─── Focus visible ─────────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.reduced-motion #countdown {
    animation: none !important;
  }
}

/* ─── Touch device: hover:scale sticky fix ──────────────────── */
@media (hover: none) {
  .plan-card:hover {
    transform: none;
  }
}
