/* Customer testimonials — single-row rail + polished cards */

.ts-section {
  --ts-border: #e4e7ec;
  --ts-border-strong: #dbe5ff;
  --ts-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  --ts-shadow-hover: 0 16px 36px rgba(16, 24, 40, 0.1);
  --ts-slide-gap: 1rem;
}

.ts-head {
  margin-bottom: 2.25rem;
}

.ts-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(70, 95, 255, 0.08);
  color: var(--blue-600, #3641f5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ts-eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--blue-600, #3641f5);
}

.ts-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--gray-900, #101828);
}

.ts-title-accent,
.ts-brand-word {
  font-family: var(--font-footer-watermark);
  font-style: italic;
  font-weight: 400;
  color: var(--blue-600, #3641f5);
  letter-spacing: -0.02em;
}

.ts-subtitle {
  max-width: 38rem;
  margin-inline: auto;
}

/* Horizontal rail — one row on desktop */
.ts-rail-hint {
  display: block;
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-500, #667085);
}

.ts-rail-stage {
  margin-inline: -0.25rem;
}

.ts-rail-track {
  display: flex;
  gap: var(--ts-slide-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.35rem 0.25rem 0.5rem;
}

.ts-rail-track::-webkit-scrollbar {
  display: none;
}

.ts-rail-slide {
  flex: 0 0 calc(100% - 0.5rem);
  scroll-snap-align: start;
  min-width: 0;
}

.ts-rail-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.ts-rail-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--ts-border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--gray-700, #344054);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.ts-rail-nav:hover:not(:disabled) {
  border-color: var(--blue-500, #465fff);
  color: var(--blue-600, #3641f5);
  box-shadow: var(--ts-shadow);
}

.ts-rail-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ts-rail-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ts-rail-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c7d7fe;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.ts-rail-dot.is-active {
  width: 1.35rem;
  background: var(--blue-600, #3641f5);
}

.ts-rail-meta {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500, #667085);
}

/* Card — full-width reel on top, details below */
.ts-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--ts-border-strong);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--ts-shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ts-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  flex-shrink: 0;
  background: #0f172a;
}

.ts-card__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ts-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem 1.15rem;
  margin-top: auto;
}

.ts-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--gray-900, #101828);
}

.ts-card__company {
  margin: 0;
}

.ts-card__company-name {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gray-600, #475467);
}

.ts-card__company--link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.3rem;
  width: fit-content;
  max-width: 100%;
  color: var(--gray-600, #475467);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ts-card__company--link:hover {
  color: var(--blue-600, #3641f5);
}

.ts-card__company--link:hover .ts-card__company-name {
  text-decoration: underline;
}

.ts-card__company-icon {
  flex-shrink: 0;
  margin-top: 0.2rem;
  opacity: 0.7;
}

.ts-card__company--link:hover .ts-card__company-icon {
  color: var(--blue-600, #3641f5);
  opacity: 1;
}

.ts-card__watch {
  margin-top: 0.35rem;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-600, #3641f5);
  text-decoration: none;
}

.ts-card__watch:hover {
  text-decoration: underline;
}

/* Tablet: two cards visible */
@media (min-width: 640px) {
  .ts-rail-slide {
    flex: 0 0 calc((100% - var(--ts-slide-gap)) / 2);
  }
}

/* Desktop: all reviews in one row */
@media (min-width: 980px) {
  .ts-rail-hint,
  .ts-rail-meta {
    display: none;
  }

  .ts-rail-track {
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0.25rem;
  }

  .ts-rail-slide {
    flex: 1 1 0;
    min-width: 0;
  }

  .ts-card:hover {
    transform: translateY(-4px);
    border-color: #c7d7fe;
    box-shadow: var(--ts-shadow-hover);
  }
}

@media (min-width: 1180px) {
  .ts-section {
    --ts-slide-gap: 1.15rem;
  }
}
