/* Testimonial marquee — the homepage "What people say" band.
   A single row of quote cards scrolls left forever; the track is
   duplicated (testimonials-marquee.js) so the loop is seamless, and
   translateX(-50%) advances by exactly one set. Pauses on hover.

   CSP-safe: no inline styles; the animation is pure CSS and the JS only
   clones markup. Colors come from the .marketing token scope. */

.tmarquee {
  width: 100%;
  overflow: hidden;
}

.ttrack {
  display: flex;
  width: max-content;
  align-items: stretch;
  padding: 0.875rem 0 1.75rem;
  animation: tmarq 64s linear infinite;
}

.tmarquee:hover .ttrack {
  animation-play-state: paused;
}

/* Advance by one full set. Each card carries its own right margin (rather
   than flex `gap`) so the duplicated set tiles seamlessly at -50%. */
@keyframes tmarq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tquote {
  position: relative;
  flex: 0 0 auto;
  width: 22rem;
  margin-right: 1.5rem;
  display: flex;
  flex-direction: column;
  background: var(--color-surface-blue);
  border: 2px solid var(--color-ink);
  border-radius: 1rem;
  padding: 1.75rem 1.875rem;
}

/* Speech-bubble tail — a diamond peeking from the lower-left, its outer
   two edges carrying the ink border so it reads as a pointer. */
.tquote::after {
  content: "";
  position: absolute;
  left: 2.25rem;
  bottom: -0.62rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--color-surface-blue);
  border-right: 2px solid var(--color-ink);
  border-bottom: 2px solid var(--color-ink);
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .ttrack {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .tquote { margin: 0 0.75rem 1.5rem; }
}
