/* ===== Typography ===== */
.ft-home { font-family: 'DM Sans', system-ui, sans-serif; }
.ft-display { font-family: 'Lora', Georgia, serif; }

/* ===== Float animations for hero badges ===== */
@keyframes ft-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-9px) rotate(0.5deg); }
  66%       { transform: translateY(-4px) rotate(-0.5deg); }
}
@keyframes ft-float-b {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  40%       { transform: translateY(-7px) rotate(-0.4deg); }
  70%       { transform: translateY(-3px) rotate(0.4deg); }
}
@keyframes ft-float-c {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-11px) rotate(0.3deg); }
}
.ft-badge-a { animation: ft-float   3.8s ease-in-out infinite; }
.ft-badge-b { animation: ft-float-b 4.4s ease-in-out infinite; animation-delay: 0.9s; }
.ft-badge-c { animation: ft-float-c 3.2s ease-in-out infinite; animation-delay: 1.7s; }

/* ===== Hero bar pulse ===== */
@keyframes ft-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
.ft-pulse-dot { animation: ft-pulse-dot 2s ease-in-out infinite; }

/* ===== Gentle entrance ===== */
@keyframes ft-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ft-rise-1 { animation: ft-rise 0.7s ease-out both; }
.ft-rise-2 { animation: ft-rise 0.7s ease-out 0.12s both; }
.ft-rise-3 { animation: ft-rise 0.7s ease-out 0.24s both; }
.ft-rise-4 { animation: ft-rise 0.7s ease-out 0.36s both; }
.ft-rise-5 { animation: ft-rise 0.7s ease-out 0.48s both; }
.ft-rise-card { animation: ft-rise 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s both; }

/* ===== Stat counter gradient text ===== */
.ft-stat-num {
  background: linear-gradient(135deg, #059669 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Emotion bar fill ===== */
.ft-bar-fill { transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* ===== Feature card hover ===== */
.ft-feat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ft-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(5,150,105,0.12);
}

/* ===== Avatar ring ===== */
.ft-avatar { border: 3px solid white; }

/* ===== CTA button shine ===== */
@keyframes ft-shine {
  0%   { left: -100%; }
  100% { left: 150%; }
}
.ft-cta-btn { position: relative; overflow: hidden; }
.ft-cta-btn::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  left: -100%;
}
.ft-cta-btn:hover::after {
  animation: ft-shine 0.6s ease-out;
}

/* ===== Section divider wave ===== */
.ft-wave { display: block; width: 100%; height: 48px; }

/* ===== Noise texture overlay ===== */
.ft-hero-noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ===== Testimonial quote mark ===== */
.ft-quote::before {
  content: '\201C';
  font-family: 'Lora', serif;
  font-size: 4rem;
  line-height: 1;
  color: #a7f3d0;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
}

/* ===== Scroll-reveal animations ===== */
.ft-hidden {
  opacity: 0;
  transform: translateY(24px);
}
.ft-revealed {
  animation: ft-rise 0.7s ease-out both;
}

/* ===== Breathing CTA pulse ===== */
@keyframes ft-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 28px rgba(5,150,105,0.32), 0 2px 8px rgba(0,0,0,0.06); }
  50%      { transform: scale(1.03); box-shadow: 0 12px 36px rgba(5,150,105,0.42), 0 4px 12px rgba(0,0,0,0.08); }
}
.ft-breathe {
  animation: ft-breathe 3s ease-in-out infinite;
}
.ft-breathe:hover {
  animation: none;
}

/* ===== How-it-works step connector ===== */
.ft-step-connector {
  position: absolute;
  top: 2rem;
  left: calc(50% + 2rem);
  width: calc(100% - 4rem);
  height: 2px;
  background: linear-gradient(90deg, #a7f3d0, #67e8f9);
  z-index: 0;
}

/* ===== Step number circle ===== */
.ft-step-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
  background: linear-gradient(135deg, #059669, #0891b2);
  position: relative;
  z-index: 1;
}

/* ===== Sticky CTA bar ===== */
.ft-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #059669 0%, #0891b2 100%);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
@media (min-width: 768px) {
  .ft-sticky-cta { display: none !important; }
}

/* ===== Logo carousel ===== */
.ft-logo-carousel {
  overflow: hidden;
  width: 100%;
  padding: 0.5rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.ft-logo-track {
  display: flex;
  gap: 1.25rem;
  animation: ft-scroll 35s linear infinite;
  width: max-content;
}
.ft-logo-slide {
  flex-shrink: 0;
}
@keyframes ft-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ft-logo-track:hover {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .ft-logo-track { animation: none; }
}

/* ===== Provider cards ===== */
.ft-provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-radius: 1.25rem;
  min-width: 176px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ft-provider-live {
  background: white;
  border: 1.5px solid #a7f3d0;
  box-shadow: 0 2px 12px rgba(5, 150, 105, 0.08), 0 1px 3px rgba(0,0,0,0.04);
}
.ft-provider-live:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.15), 0 4px 8px rgba(0,0,0,0.06);
}
.ft-provider-upcoming {
  background: rgba(255,255,255,0.6);
  border: 1px dashed #d1d5db;
}
.ft-provider-upcoming:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.85);
  border-color: #9ca3af;
}
