.fpv3-outcomes {
    padding-top: 96px;
    padding-bottom: 96px;
    background: #fff;
}

.fpv3-outcomes__wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

/* Heading */
.fpv3-outcomes__heading {
    display: flex;
    align-items: flex-end;
    gap: 48px;
    width: 100%;
}

.fpv3-outcomes__heading-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fpv3-outcomes__title {
    font-size: var(--gsf-heading-lg-fs, 32px);
    font-weight: 500;
    line-height: var(--gsf-heading-lg-lh, 40px);
    letter-spacing: var(--gsf-heading-lg-ls, -0.32px);
    color: #262626;
    margin: 0;
}

.fpv3-outcomes__subtitle {
    font-size: var(--gsf-body-lg-fs, 18px);
    font-weight: 400;
    line-height: var(--gsf-body-lg-lh, 26px);
    letter-spacing: var(--gsf-body-lg-ls, 0.135px);
    color: rgba(0, 0, 0, 0.75);
    margin: 0;
    max-width: 560px;
}

/* Link */
.fpv3-outcomes__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--gsf-static-md-fs, 16px);
    font-weight: 500;
    line-height: var(--gsf-static-md-lh, 24px);
    letter-spacing: var(--gsf-static-md-ls, 0.12px);
    color: #262626;
    white-space: nowrap;
    flex-shrink: 0;
}

.fpv3-outcomes__link-text {
    text-decoration: underline;
    text-decoration-color: rgba(38, 38, 38, 0.3);
    text-underline-offset: 4px;
    transition: text-decoration-color 0.2s ease;
}

.fpv3-outcomes__link:hover .fpv3-outcomes__link-text,
.fpv3-outcomes__link:focus-visible .fpv3-outcomes__link-text {
    text-decoration-color: #262626;
}

/* Overrides the site-wide a:active { color: #ccc } (css/style.css) — pressing this
   link shouldn't gray the text out, it should look the same as normal/hover. */
.fpv3-outcomes__link:active {
    color: #262626;
}

.fpv3-outcomes__link-arrow {
    display: inline-flex;
    transition: transform 0.2s ease;
}

.fpv3-outcomes__link:hover .fpv3-outcomes__link-arrow,
.fpv3-outcomes__link:focus-visible .fpv3-outcomes__link-arrow {
    transform: translateX(2px);
}

.fpv3-outcomes__link--mobile {
    display: none;
}

/* Cards */
/* .fpv3-outcomes__wrapper is a column flex container with align-items: center,
   so its children are NOT stretched to its width by default — this wrapper was
   sizing itself to its own content's natural width instead (the full, un-wrapped
   row of cards, ~1000px+), rather than the ~285px actually available. width:100%
   (+ min-width:0 to remove the flex-item auto floor on top of that) makes it
   fill the available cross-axis space like align-items:stretch would, so
   .fpv3-outcomes__cards inside genuinely has less room than its content and can
   scroll — before this it was already rendering everything at full width with
   nothing left to scroll, which is why it looked "stuck" instead of scrollable. */
.fpv3-outcomes__cards-wrapper {
    width: 100%;
    min-width: 0;
    align-self: stretch;
}

.fpv3-outcomes__cards {
    display: flex;
    gap: 16px;
    align-items: stretch;
    width: 100%;
}

.fpv3-outcomes__card {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 24px;
    background: #faf7f5;
    border-radius: 16px;
    min-height: 296px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.fpv3-outcomes__card-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
}

.fpv3-outcomes__stat-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fpv3-outcomes__stat {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.fpv3-outcomes__stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14px;
    height: 32px;
}

.fpv3-outcomes__stat-icon svg {
    display: block;
}

.fpv3-outcomes__stat-value {
    font-size: var(--gsf-adaptive-number-fs, 32px);
    font-weight: 400;
    line-height: var(--gsf-adaptive-number-lh, 32px);
    color: #262626;
    white-space: nowrap;
}

.fpv3-outcomes__stat-label {
    font-size: var(--gsf-body-sm-fs, 14px);
    font-weight: 400;
    line-height: var(--gsf-body-sm-lh, 20px);
    letter-spacing: var(--gsf-body-sm-ls, 0.105px);
    color: rgba(0, 0, 0, 0.55);
}

.fpv3-outcomes__card-desc {
    font-size: var(--gsf-body-sm-fs, 14px);
    font-weight: 400;
    line-height: var(--gsf-body-sm-lh, 20px);
    letter-spacing: var(--gsf-body-sm-ls, 0.105px);
    color: rgba(0, 0, 0, 0.55);
    margin: 0;
}

/* Card footer */
.fpv3-outcomes__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-shrink: 0;
}

.fpv3-outcomes__logo {
    display: block;
    height: 100%;
    max-width: 94px;
    object-fit: contain;
    object-position: left center;
}

.fpv3-outcomes__card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    color: rgba(0, 0, 0, 0.55);
    transition: background 0.2s, color 0.2s;
}

.fpv3-outcomes__card-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #262626;
}

.fpv3-outcomes__card-btn svg {
    transform: translateX(1px);
    display: block;
}

.fpv3-outcomes__card-btn svg path{
    fill: var(--foreground-secondary, rgba(0, 0, 0, 0.55));

}
/* Book a demo button */
.fpv3-outcomes__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.fpv3-outcomes__demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #262626;
    color: #fff;
    border-radius: 999px;
    font-size: var(--gsf-static-md-fs, 16px);
    font-weight: 500;
    line-height: var(--gsf-static-md-lh, 24px);
    letter-spacing: var(--gsf-static-md-ls, 0.12px);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.3s ease;
    transform: scale(1);
}

.fpv3-outcomes__demo-btn:hover {
    background: #474747;
    color: #fff;
}

/* Tablet */
@media (max-width: 992px) {
    .fpv3-outcomes__cards {
        width: calc(100% + 40px);
        margin-left: -20px;
        padding-left: 20px;
        padding-right: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .fpv3-outcomes__cards::-webkit-scrollbar {
        display: none;
    }

    .fpv3-outcomes__card {
        flex: none;
        width: 248px;
        scroll-snap-align: start;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .fpv3-outcomes {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .fpv3-outcomes__wrapper {
        gap: 24px;
        align-items: flex-start;
    }

    .fpv3-outcomes__heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .fpv3-outcomes__title, .fpv3-outcomes__stat-value{
        max-width: 260px; 
        font-size: var(--gsf-heading-lg-fs-mobile, 24px);
        line-height: var(--title-lg-medium-lineHeight, 32px);
        letter-spacing: var(--title-lg-medium-letterSpacing, -0.24px);
    }
    .fpv3-outcomes__subtitle{
        font-size: var(--body-lg-regular-fontSize, 16px);
        line-height: var(--body-lg-regular-lineHeight, 24px);
        letter-spacing: var(--body-lg-letterSpacing, 0.12px);
    }
    .fpv3-outcomes__link--desktop {
        display: none;
    }

    .fpv3-outcomes__link--mobile {
        display: inline-flex;
    }
    .fpv3-outcomes__cards-wrapper {
        padding-left: 20px;
    }
    .fpv3-outcomes__card {
        min-height: auto;
        border-radius: 12px;
        padding: 20px;
        gap: 24px;
    }

    .fpv3-outcomes__card-top {
        gap: 24px;
    }

    .fpv3-outcomes__actions {
        gap: 24px;
        width: 100%;
    }

    .fpv3-outcomes__demo-btn {
        width: 100%;
        border-radius: 999px;
        text-align: center;
    }
}

/* Spacing Padding (Theme Settings / page override) — CSS custom properties set inline per section. */
.fpv3-outcomes.new-solutions-component-spacing {
    padding-top: var(--ns-desktop-padding-top, 0);
    padding-bottom: var(--ns-desktop-padding-bottom, 0);
}

@media (max-width: 767px) {
    .fpv3-outcomes.new-solutions-component-spacing {
        padding-top: var(--ns-mobile-padding-top, 0);
        padding-bottom: var(--ns-mobile-padding-bottom, 0);
    }
}
