/* Public homepage only. The static grid remains readable without JavaScript. */
body.marketing-page .testimonials {
  padding: 100px 0 88px;
  background: var(--sd-paper);
  border-bottom: 1px solid var(--sd-line);
}
body.marketing-page .testimonial-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  text-align: center;
}
body.marketing-page .testimonial-heading h2 { max-width: none; margin-bottom: 0; font-size: clamp(36px, 4vw, 48px); }
body.marketing-page .testimonial-heading > p { max-width: 640px; margin: 0; }
body.marketing-page .testimonial-heading .testimonial-disclosure {
  margin: 0;
  color: var(--sd-muted);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}
body.marketing-page .testimonial-wall { min-width: 0; width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
body.marketing-page .testimonial-row + .testimonial-row { margin-top: 30px; }
body.marketing-page .testimonial-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
body.marketing-page .testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: 20px;
}
body.marketing-page .testimonial-card blockquote { margin: 0; color: var(--sd-ink); font-size: 15px; line-height: 1.85; font-weight: 400; overflow-wrap: anywhere; }
body.marketing-page .testimonial-card .testimonial-author { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--sd-ink); font-size: 16px; }
body.marketing-page .testimonial-author > span { min-width: 0; }
body.marketing-page .testimonial-author strong { font-weight: 650; }
body.marketing-page .testimonial-author small { display: block; margin-top: 4px; color: var(--sd-accent-strong); font-size: 12px; font-weight: 500; }
body.marketing-page .testimonial-avatar { display: block; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; object-fit: cover; background: var(--sd-accent-soft); }

/* Move exactly one content group; JS adds enough copies for the viewport. */
body.marketing-page .testimonials[data-enhanced] .testimonial-wall {
  overflow: hidden;
  width: 100%;
}
body.marketing-page .testimonials[data-enhanced] .testimonial-track {
  display: flex;
  width: max-content;
  animation: site-testimonial-scroll 40s linear infinite;
  animation-play-state: paused;
}
body.marketing-page .testimonials[data-enhanced] .testimonial-group { display: flex; gap: 30px; padding-right: 30px; flex-shrink: 0; }
body.marketing-page .testimonials[data-enhanced] .testimonial-card { flex: 0 0 350px; width: 350px; }
body.marketing-page .testimonials[data-enhanced] .testimonial-row:nth-child(2) .testimonial-track { animation-duration: 50s; animation-direction: reverse; animation-delay: -8s; }
body.marketing-page .testimonials[data-running="true"] .testimonial-track { animation-play-state: running; }
@keyframes site-testimonial-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--testimonial-cycle, 0px)), 0, 0); }
}
@media (max-width: 720px) {
  body.marketing-page .testimonials { padding: 68px 0 56px; }
  body.marketing-page .testimonial-heading { margin-bottom: 30px; gap: 12px; }
  body.marketing-page .testimonial-card { padding: 22px 25px; gap: 18px; }
  body.marketing-page .testimonial-card blockquote { font-size: 14px; }
  body.marketing-page .testimonials[data-enhanced] .testimonial-card { flex-basis: 300px; width: 300px; }
  body.marketing-page .testimonials[data-enhanced] .testimonial-group { gap: 20px; padding-right: 20px; }
  body.marketing-page .testimonial-group { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body.marketing-page .testimonials[data-enhanced] .testimonial-wall { overflow: visible; width: min(1180px, calc(100% - 40px)); }
  body.marketing-page .testimonials[data-enhanced] .testimonial-track { display: block; width: auto; animation: none; transform: none; }
  body.marketing-page .testimonials[data-enhanced] .testimonial-group { display: grid; padding-right: 0; }
  body.marketing-page .testimonials[data-enhanced] .testimonial-card { width: auto; }
  body.marketing-page .testimonials[data-enhanced] [data-testimonial-clone] { display: none; }
}
