/* ==========================================================================
   Products listing page — built on top of product.css tokens/components
   (.product-page scope, --pp-* vars, .pp-breadcrumb / .pp-overview-row /
   .pp-case-card family). Only the bits that don't already exist live here.
   ========================================================================== */

/* ---- Hero ---- */
.pl-hero {
    padding: 40px 0 0;
}

.pl-hero-title {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: clamp(36px, 5.4vw, 64px);
    line-height: 1.05;
    color: var(--pp-ink);
    margin: 0;
    max-width: 14ch;
}

.pl-banner {
    margin-top: 40px;
    border-radius: var(--pp-radius-lg);
    overflow: hidden;
    aspect-ratio: 21 / 9;
}

.pl-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Intro row ---- */
.pl-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding: 56px 0;
    border-bottom: 1px solid var(--pp-line);
}

.pl-intro-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.15;
    color: var(--pp-ink);
    margin: 0;
}

.pl-intro-text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--pp-muted);
    margin: 0;
}

@media (max-width: 900px) {
    .pl-intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ---- Product grid (reuses .pp-case-card / .pp-media-box / .pp-case-arrow) ---- */
.pl-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background-image: linear-gradient(
        to right,
        transparent calc(33.333% - 0.5px),
        var(--pp-line) calc(33.333% - 0.5px),
        var(--pp-line) calc(33.333% + 0.5px),
        transparent calc(33.333% + 0.5px),
        transparent calc(66.666% - 0.5px),
        var(--pp-line) calc(66.666% - 0.5px),
        var(--pp-line) calc(66.666% + 0.5px),
        transparent calc(66.666% + 0.5px)
    );
}

.pl-product-grid .pp-case-card {
    display: block;
    text-decoration: none;
    color: inherit;
    grid-row: auto;
    padding: 40px 32px 48px;
}

.pl-product-grid .pp-case-card:nth-child(3n+1) {
    padding-left: 0;
}

.pl-product-grid .pp-case-card:nth-child(3n) {
    padding-right: 0;
}

.pl-product-grid .pp-case-card:nth-child(-n+3) {
    padding-top: 0;
}

.pl-product-grid .pp-case-card:nth-child(n+4) {
    border-top: 1px solid var(--pp-line);
    margin-top: -1px;
}

.pl-product-grid .pp-case-media {
    max-width: none;
}

.pl-product-card--cta {
    background: var(--pp-ink);
    border-radius: var(--pp-radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    min-height: 280px;
    padding: 32px !important;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.pl-product-card--cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(20, 23, 28, 0.25);
}

.pl-product-card--cta .pl-cta-kicker {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #ffb27a;
    margin-bottom: 14px;
}

.pl-product-card--cta .pp-case-title {
    font-size: 26px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.pl-product-card--cta .pl-cta-text {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 10px 0 0;
    max-width: 26ch;
}

.pl-product-card--cta .pl-cta-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pl-product-card--cta .pl-cta-foot-label {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
}

.pl-product-card--cta .pp-case-arrow {
    position: static;
    flex: none;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.pl-product-card--cta:hover .pp-case-arrow {
    background: var(--pp-orange);
    color: #fff;
    transform: rotate(45deg);
}

@media (max-width: 900px) {
    .pl-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        background-image: linear-gradient(
            to right,
            transparent calc(50% - 0.5px),
            var(--pp-line) calc(50% - 0.5px),
            var(--pp-line) calc(50% + 0.5px),
            transparent calc(50% + 0.5px)
        );
    }

    .pl-product-grid .pp-case-card:nth-child(3n) {
        padding-right: 32px;
    }

    .pl-product-grid .pp-case-card:nth-child(2n+1) {
        padding-left: 0;
    }

    .pl-product-grid .pp-case-card:nth-child(2n) {
        padding-right: 0;
    }

    .pl-product-grid .pp-case-card:nth-child(-n+2) {
        padding-top: 0;
        border-top: none;
    }

    .pl-product-grid .pp-case-card:nth-child(n+3) {
        border-top: 1px solid var(--pp-line);
    }
}

@media (max-width: 560px) {
    .pl-product-grid {
        grid-template-columns: 1fr;
        background-image: none;
    }

    .pl-product-grid .pp-case-card {
        padding: 32px 0 !important;
        border-top: 1px solid var(--pp-line) !important;
    }

    .pl-product-grid .pp-case-card:first-child {
        border-top: none !important;
    }
}
