/* Homepage customer-story carousel */

.stories-section {
    background: var(--text-color-alt-1);
    padding: 8px 0 96px;
}

.stories-section .container {
    max-width: 1140px;
}

.stories-card {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    min-height: 520px;
    padding: 48px 12px 44px;
    background: var(--text-color-alt-1);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(30, 51, 111, 0.06);
    overflow: hidden;
    outline: none;
}

.stories-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(8, 145, 222, 0.28);
}

.stories-viewport {
    position: relative;
    min-height: 420px;
}

.stories-slide[x-cloak] {
    display: none;
}

.stories-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 48px 0;
}

.stories-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-bottom: 36px;
    color: var(--important-color);
}

.stories-wordmark {
    height: 36px;
    width: auto;
}

.stories-wordmark text {
    font-family: var(--font-family-sans);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.stories-quote {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 0 28px;
    color: var(--important-color);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.025em;
}

.stories-quote::before,
.stories-quote::after {
    position: absolute;
    z-index: -1;
    color: rgba(249, 206, 48, 0.22);
    font-size: 168px;
    font-weight: 700;
    line-height: 0.7;
    pointer-events: none;
    user-select: none;
}

.stories-quote::before {
    content: '“';
    top: -34px;
    left: -8px;
}

.stories-quote::after {
    content: '”';
    right: -4px;
    bottom: -86px;
}

.stories-mark {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background-image: linear-gradient(var(--brand-yellow), var(--brand-yellow));
    background-repeat: no-repeat;
    background-position: 0 1.18em;
    background-size: 100% 0.28em;
    padding: 0 0.04em;
}

.stories-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    color: var(--brand-blue);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.stories-cta:hover,
.stories-cta:focus {
    color: var(--important-color);
    text-decoration: none;
}

.stories-person {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

.stories-person p {
    margin: 0;
    color: var(--text-color-dark);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}

.stories-person strong {
    font-weight: 700;
    color: var(--important-color);
}

.stories-role {
    color: var(--text-color-muted);
    font-weight: 400;
}

.stories-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-alt-1);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.stories-avatar--1 {
    background: linear-gradient(145deg, var(--brand-blue), var(--brand-navy));
}

.stories-avatar--2 {
    background: linear-gradient(145deg, var(--brand-mint), var(--brand-navy));
    color: var(--important-color);
}

.stories-avatar--3 {
    background: linear-gradient(145deg, var(--brand-yellow), var(--accent-color-alt-1));
    color: var(--important-color);
}

.stories-nav {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    transition: color 0.2s ease;
}

.stories-nav svg {
    width: 28px;
    height: 28px;
}

.stories-nav:hover,
.stories-nav:focus-visible {
    color: var(--important-color);
    outline: none;
}

.stories-nav:focus-visible {
    box-shadow: 0 0 0 3px rgba(8, 145, 222, 0.28);
    border-radius: 8px;
}

@media (max-width: 991px) {
    .stories-section {
        padding: 8px 0 64px;
    }

    .stories-card {
        min-height: 0;
        padding: 36px 4px 32px;
        border-radius: 20px;
    }

    .stories-viewport {
        min-height: 0;
    }

    .stories-slide {
        padding: 8px 8px 0;
    }

    .stories-quote {
        font-size: 22px;
        margin-bottom: 22px;
    }

    .stories-quote::before,
    .stories-quote::after {
        font-size: 120px;
    }

    .stories-quote::before {
        top: -24px;
        left: -4px;
    }

    .stories-quote::after {
        bottom: -62px;
    }
}

@media (max-width: 575px) {
    .stories-card {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        padding: 28px 0 24px;
        border-radius: 16px;
    }

    .stories-logo {
        margin-bottom: 24px;
    }

    .stories-quote {
        font-size: 18px;
        line-height: 1.5;
    }

    .stories-quote::before,
    .stories-quote::after {
        font-size: 88px;
    }

    .stories-cta {
        margin-bottom: 24px;
        font-size: 15px;
    }

    .stories-person p {
        font-size: 14px;
    }

    .stories-nav {
        width: 36px;
        height: 36px;
    }

    .stories-nav svg {
        width: 22px;
        height: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stories-slide {
        transition: none;
    }
}
