/* Product index showcase: content-aware groups, readable previews and connected-platform conclusion. */
.ctf-products-catalog {
    background: var(--surface-page);
}

.ctf-products-catalog-intro {
    max-width: 820px;
    margin-bottom: clamp(46px, 6vw, 68px);
}

.ctf-products-catalog-intro h2 {
    max-width: 18ch;
    margin: 0;
    font-size: var(--type-h2);
    font-weight: 650;
    line-height: 1.06;
    letter-spacing: -.035em;
}

.ctf-products-catalog-intro p {
    max-width: 68ch;
    margin: 18px 0 0;
    color: var(--mkt-muted);
    font-size: var(--type-body-lg);
    line-height: 1.72;
}

.ctf-products-group {
    margin: 0 0 clamp(58px, 7vw, 84px);
}

.ctf-products-group:last-child {
    margin-bottom: 0;
}

.ctf-products-group-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.ctf-products-group-index {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: 11px;
    background: var(--surface-brand-soft);
    color: var(--brand-indigo-strong);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
}

.ctf-products-group-head h2 {
    margin: 0;
    color: var(--mkt-text);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 620;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.ctf-products-group-grid {
    display: grid;
    gap: clamp(18px, 2.2vw, 26px);
}

.ctf-products-group-grid.is-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ctf-products-group-grid.is-trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ctf-products-group-grid.is-multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ctf-product-showcase-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: clamp(22px, 2.5vw, 30px);
    background: var(--surface-card-elevated);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .03);
    transition: transform var(--motion-base) var(--motion-ease), border-color var(--motion-base) var(--motion-ease), background-color var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) var(--motion-ease);
}

.ctf-product-showcase-card:hover,
.ctf-product-showcase-card:focus-within {
    transform: translateY(-1px);
    border-color: var(--border-interactive);
    background: color-mix(in srgb, var(--surface-card-elevated) 98%, var(--brand-indigo));
    box-shadow: var(--shadow-card);
}

.ctf-products-group-grid.is-single .ctf-product-showcase-card {
    display: grid;
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 4vw, 54px);
    align-items: center;
    padding: clamp(28px, 3.4vw, 42px);
}

.ctf-product-showcase-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ctf-product-showcase-head {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
}

.ctf-product-showcase-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--surface-brand-soft);
    color: var(--brand-indigo-strong);
    font-size: 19px;
}

.ctf-product-showcase-head h3 {
    margin: 0;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.ctf-product-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mkt-muted);
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.ctf-product-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mkt-muted);
}

.ctf-product-status.is-ga::before {
    background: var(--mkt-success);
}

.ctf-product-status.is-beta::before {
    background: #b7791f;
}

.ctf-product-showcase-copy > p {
    max-width: 58ch;
    margin: 17px 0 0;
    color: var(--mkt-muted);
    font-size: 14px;
    line-height: 1.68;
}

.ctf-product-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    color: var(--brand-indigo-strong);
    font-size: 13px;
    font-weight: 700;
}

.ctf-product-showcase-link i {
    transition: transform var(--motion-fast) var(--motion-ease);
}

.ctf-product-showcase-link:hover i,
.ctf-product-showcase-link:focus-visible i {
    transform: translateX(3px);
}

.ctf-product-showcase-preview {
    min-width: 0;
    margin-top: auto;
}

.ctf-products-group-grid.is-single .ctf-product-showcase-preview {
    margin-top: 0;
}

.ctf-product-showcase-preview .ctf-proof-preview {
    width: 100%;
    min-height: 0;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-preview-topline {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 9px;
}

.ctf-product-showcase-preview .ctf-proof-preview.is-compact > div:not(.ctf-proof-preview-topline) {
    padding: 12px;
}

.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-note {
    display: none;
}

.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-search-box,
.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-condition-list > div,
.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-journey > div:not(.ctf-proof-journey-split),
.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-journey-split span,
.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-assistant,
.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-ad-platforms article {
    padding: 8px 9px;
}

.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-product-row {
    gap: 7px;
}

.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-product-row > div {
    padding: 7px;
}

.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-channel-row {
    gap: 5px;
}

.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-channel-row span,
.ctf-product-showcase-preview .ctf-proof-preview.is-compact .ctf-proof-source-pills span {
    padding: 5px 7px;
    font-size: 8px;
}

.ctf-products-foundation {
    overflow: hidden;
    border-block: 1px solid var(--border-subtle);
    background: var(--surface-brand-soft);
}

.ctf-products-foundation-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
    gap: clamp(42px, 6vw, 78px);
    align-items: center;
}

.ctf-products-foundation-copy h2 {
    max-width: 14ch;
    margin: 0;
    font-size: var(--type-h2);
    font-weight: 640;
    line-height: 1.06;
    letter-spacing: -.04em;
}

.ctf-products-foundation-copy > p {
    max-width: 58ch;
    margin: 18px 0 0;
    color: var(--mkt-muted);
    line-height: 1.72;
}

.ctf-products-context-map {
    position: relative;
    display: grid;
    gap: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: clamp(22px, 3vw, 32px);
    background: var(--surface-card-elevated);
    box-shadow: var(--shadow-card);
}

.ctf-products-context-core {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--border-interactive);
    border-radius: 13px;
    padding: 14px 15px;
    background: var(--surface-brand-soft);
}

.ctf-products-context-core i {
    color: var(--brand-indigo-strong);
    font-size: 20px;
}

.ctf-products-context-core strong,
.ctf-products-context-core small {
    display: block;
}

.ctf-products-context-core strong {
    font-size: 13px;
    font-weight: 700;
}

.ctf-products-context-core small {
    margin-top: 2px;
    color: var(--mkt-muted);
    font-size: 10px;
}

.ctf-products-context-families {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ctf-products-context-family {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border-subtle);
    border-radius: 11px;
    padding: 11px 12px;
    color: var(--mkt-text);
    font-size: 11px;
    font-weight: 650;
}

.ctf-products-context-family::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--brand-indigo);
}

html[data-theme="dark"] .ctf-product-showcase-card,
.dark .ctf-product-showcase-card,
html[data-theme="dark"] .ctf-products-context-map,
.dark .ctf-products-context-map {
    box-shadow: none;
}

@media (max-width: 1100px) {
    .ctf-products-group-grid.is-trio {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ctf-products-group-grid.is-trio .ctf-product-showcase-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
        gap: 30px;
        align-items: center;
    }

    .ctf-products-foundation-grid {
        grid-template-columns: minmax(0, .9fr) minmax(330px, 1.1fr);
        gap: 42px;
    }
}

@media (max-width: 780px) {
    .ctf-products-group {
        margin-bottom: 54px;
    }

    .ctf-products-group-grid.is-pair,
    .ctf-products-group-grid.is-trio,
    .ctf-products-group-grid.is-multi,
    .ctf-products-group-grid.is-single {
        grid-template-columns: 1fr;
    }

    .ctf-products-group-grid.is-single .ctf-product-showcase-card,
    .ctf-products-group-grid.is-trio .ctf-product-showcase-card:last-child:nth-child(odd) {
        display: flex;
        grid-column: auto;
        gap: 20px;
        padding: 24px;
    }

    .ctf-products-foundation-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .ctf-products-foundation-copy h2 {
        max-width: 18ch;
    }
}

@media (max-width: 480px) {
    .ctf-products-group-head {
        align-items: flex-start;
    }

    .ctf-products-group-index {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .ctf-product-showcase-card,
    .ctf-products-group-grid.is-single .ctf-product-showcase-card {
        padding: 20px;
    }

    .ctf-product-showcase-head {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .ctf-product-showcase-icon {
        width: 38px;
        height: 38px;
    }

    .ctf-product-status {
        grid-column: 2;
        justify-self: start;
    }

    .ctf-products-context-families {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ctf-product-showcase-card,
    .ctf-product-showcase-link i {
        transition: none;
    }

    .ctf-product-showcase-card:hover,
    .ctf-product-showcase-card:focus-within,
    .ctf-product-showcase-link:hover i,
    .ctf-product-showcase-link:focus-visible i {
        transform: none;
    }
}
