/* Shared funnel + launch homepage testimonial carousel (al-lp-tcard-*) */

.al-lp-testimonials-sec {
  --al-lp-tcard-bg: #ffffff;
  --al-lp-tcard-border: #e8edf5;
  --al-lp-tcard-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  --al-lp-tcard-name: #0f172a;
  --al-lp-tcard-meta: #64748b;
  --al-lp-tcard-quote: #475569;
  --al-lp-tcard-earn: #0048ff;
  --al-lp-tcard-avatar-border: #e8edf5;
  --al-lp-tcard-avatar-bg: #e8edf5;
  background: #f8fafc;
  overflow: hidden;
}

.al-lp-testimonials-sec .al-lp-wrap,
.al-lp-testimonials-sec .container {
  max-width: 100%;
  overflow: hidden;
}

.al-lp-testimonials-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto clamp(28px, 5vw, 40px);
  padding: 0 4px;
}

.al-lp-testimonials-head .al-lp-eyebrow {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--al-blue, #0048ff);
}

.al-lp-testimonials-head .al-lp-h2 {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  text-align: center;
}

.al-lp-testimonials-head .al-lp-testimonials-sub,
.al-lp-testimonials-head .afh-section-sub {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--al-gray-500, #64748b);
}

.al-lp-tcard-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 4px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.al-lp-tcard-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  min-width: 100%;
  animation: al-lp-tcard-scroll 52s linear infinite;
  will-change: transform;
}

.al-lp-tcard-carousel:hover .al-lp-tcard-track,
.al-lp-tcard-carousel:focus-within .al-lp-tcard-track {
  animation-play-state: paused;
}

@keyframes al-lp-tcard-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.al-lp-tcard {
  display: flex;
  flex-direction: column;
  flex: 0 0 min(300px, 82vw);
  width: min(300px, 82vw);
  min-height: 240px;
  background: var(--al-lp-tcard-bg);
  padding: 22px 20px 20px;
  border-radius: 18px;
  border: 1px solid var(--al-lp-tcard-border);
  box-shadow: var(--al-lp-tcard-shadow);
  box-sizing: border-box;
}

.al-lp-tcard-head {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.al-lp-tcard-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--al-lp-tcard-avatar-border);
  background: var(--al-lp-tcard-avatar-bg);
  flex-shrink: 0;
}

.al-lp-tcard-id {
  min-width: 0;
}

.al-lp-tcard-id strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--al-lp-tcard-name);
  line-height: 1.3;
}

.al-lp-tcard-id span {
  display: block;
  font-size: 12px;
  color: var(--al-lp-tcard-meta);
  margin-top: 2px;
}

.al-lp-tcard-flag {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.al-lp-tcard-stars {
  display: flex;
  gap: 3px;
  margin: 0 0 12px;
  color: #fbbf24;
  font-size: 14px;
  line-height: 1;
}

.al-lp-tcard-stars span {
  display: inline-block;
}

.al-lp-tcard-quote {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--al-lp-tcard-quote);
  flex: 1 1 auto;
}

.al-lp-tcard-earn {
  margin-top: auto;
}

.al-lp-tcard-earn strong,
.al-lp-tcard-earn .al-lp-tcard-earn-amount {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--al-lp-tcard-earn);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.al-lp-tcard-earn--naira .al-lp-tcard-earn-verb {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--al-lp-tcard-meta);
  margin-bottom: 4px;
}

.al-lp-tcard-earn span,
.al-lp-tcard-earn .al-lp-tcard-earn-period {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--al-lp-tcard-meta);
}

@media (min-width: 1024px) {
  .al-lp-tcard {
    flex: 0 0 280px;
    width: 280px;
  }

  .al-lp-tcard-track {
    gap: 16px;
    animation-duration: 48s;
  }
}

@media (max-width: 768px) {
  .al-lp-tcard {
    flex: 0 0 min(280px, 88vw);
    width: min(280px, 88vw);
    min-height: 220px;
  }

  .al-lp-tcard-track {
    animation-duration: 44s;
  }

  .al-lp-tcard-head {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
  }

  .al-lp-tcard-avatar {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .al-lp-tcard-carousel {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .al-lp-tcard-track {
    animation: none;
    width: auto;
    min-width: 0;
    flex-wrap: nowrap;
  }
}
