/* Home-page testimonial carousel and client-logo treatment. */
.testimonials{
    position:relative;
    overflow:hidden;
    padding:92px 0;
    background:radial-gradient(circle at 8% 8%,rgba(37,99,235,.1),transparent 23rem),linear-gradient(180deg,#fff,#f8fbff);
}

.testimonials .testimonial-grid[data-testimonial-track]{
    display:flex;
    gap:24px;
    overflow-x:auto;
    margin:0 -4px;
    padding:8px 4px 30px;
    scroll-behavior:smooth;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
}

.testimonials .testimonial-grid[data-testimonial-track]::-webkit-scrollbar{display:none}

.testimonials .testimonial-card{
    flex:0 0 calc((100% - 48px) / 3);
    min-height:326px;
    scroll-snap-align:start;
    border-color:rgba(148,163,184,.25);
    box-shadow:0 16px 40px rgba(15,23,42,.06);
}

.testimonials .testimonial-card:hover{
    border-color:rgba(37,99,235,.42);
    box-shadow:0 26px 60px rgba(37,99,235,.16);
}

.testimonial-user img.testimonial-logo{
    box-sizing:border-box;
    padding:4px;
    object-fit:contain;
    background:#fff;
}

.testimonial-controls{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
}

.testimonial-control{
    width:46px;
    height:46px;
    border:1px solid rgba(37,99,235,.18);
    border-radius:50%;
    background:#fff;
    color:#2563eb;
    font-size:22px;
    cursor:pointer;
    box-shadow:0 10px 25px rgba(15,23,42,.08);
    transition:transform .25s ease,background .25s ease,color .25s ease,box-shadow .25s ease;
}

.testimonial-control:hover,
.testimonial-control:focus-visible{
    transform:translateY(-3px);
    background:#2563eb;
    color:#fff;
    box-shadow:0 15px 30px rgba(37,99,235,.28);
    outline:none;
}

.testimonial-running-label{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#64748b;
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.testimonial-running-label span{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#22c55e;
    box-shadow:0 0 0 5px rgba(34,197,94,.14);
    animation:testimonial-pulse 1.8s ease-in-out infinite;
}

@keyframes testimonial-pulse{50%{transform:scale(.72);opacity:.5}}

@media(max-width:1024px){
    .testimonials .testimonial-card{flex-basis:calc((100% - 24px) / 2)}
}

@media(max-width:680px){
    .testimonials{padding:64px 0}
    .testimonials .testimonial-grid[data-testimonial-track]{gap:18px;padding-bottom:24px}
    .testimonials .testimonial-card{flex-basis:86%;min-height:0;padding:27px}
    .testimonial-controls{gap:13px}
}

@media(prefers-reduced-motion:reduce){
    .testimonials .testimonial-grid[data-testimonial-track]{scroll-behavior:auto}
    .testimonial-running-label span{animation:none}
}
