.trust {
    padding: 40px 0;
    background-color: var(--theme-surface);
    border-bottom: 1px solid var(--theme-line);
}

.trust__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 0 32px;
}

.trust__stat {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
    padding-inline: 24px;
}

.trust__stat + .trust__stat {
    border-inline-start: 1px solid var(--theme-line);
}

.trust__stat dd {
    margin: 0;
    color: var(--brand-primary);
    font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
}

.trust__stat dt {
    color: var(--theme-muted);
    font-size: .9rem;
    font-weight: 400;
}

.trust__title {
    margin: 0 0 32px;
    color: var(--theme-text);
    font-size: clamp(1.15rem, 1rem + .4vw, 1.35rem);
    font-weight: 600;
    text-align: center;
}

/* the logos sit in the middle; when they are wider than the screen, website.js adds a copy of them and
   `is-moving`, and the strip runs right to left in both languages, moving by exactly one copy so it loops without a gap */
.trust__marquee {
    overflow: hidden;
    direction: ltr;
}

.trust__track {
    display: flex;
    justify-content: center;
}

.trust__marquee.is-moving {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.trust__marquee.is-moving .trust__track {
    justify-content: flex-start;
    width: max-content;
    animation: trust-scroll var(--trust-duration, 30s) linear infinite;
}

.trust__marquee.is-moving:hover .trust__track,
.trust__marquee.is-moving:focus-within .trust__track {
    animation-play-state: paused;
}

.trust__logos {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 64px;
    margin: 0;
    padding: 0 32px;
    list-style: none;
}

.trust__logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site .trust__logo img {
    display: block;
    max-width: 180px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes trust-scroll {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767.98px) {
    .trust__stats {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 28px;
    }

    .trust__stat:nth-child(3) {
        border-inline-start: 0;
    }

    .trust {
        padding: 40px 0;
    }

    .trust__logos {
        gap: 40px;
        padding: 0 20px;
    }

    .site .trust__logo img {
        max-width: 140px;
        max-height: 52px;
    }
}
