/* ============================================================
   Products overview page
   A centered "hero" showcase carousel (one product per slide:
   screenshot beside its essence and headline features) followed
   by a grid of detailed product blocks.

   Builds on /styles/carousel.css, which supplies the shared
   carousel structure and behaviour (track, nav buttons, dots,
   auto-advance via /scripts/screenshot-carousel.js). This file
   only adds the overview-specific presentation, scoped to the
   .product-showcase modifier so it never affects the per-product
   screenshot carousels.

   Each slide / block sets its own --accent via an inline style so
   a product keeps a single brand colour across the page.
   ============================================================ */

/* ---------- Hero intro ---------- */
.products-hero {
    max-width: 1080px;
    margin: 0 auto 30px auto;
    padding: 0 16px;
    text-align: center;
}

.products-hero h1 {
    font-size: 2.1em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.products-hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 13.5pt;
    line-height: 1.6;
    color: #5f6f7e;
}

/* ---------- Showcase carousel ---------- */
.screenshot-carousel.product-showcase {
    max-width: 1080px;
    margin-bottom: 18px;
    border-color: #e3e8ec;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fb 100%);
    box-shadow: 0 10px 34px rgba(31, 45, 61, 0.12);
}

.product-showcase .screenshot-carousel-nav {
    top: 50%;
    width: 46px;
    height: 46px;
}

/* Each slide: screenshot on one side, product story on the other.
   Equal-height flex columns keep every slide the same height, so the
   carousel does not jump as it advances. */
.product-showcase-slide {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 360px;
    box-sizing: border-box;
}

.product-showcase-media {
    flex: 0 0 56%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    box-sizing: border-box;
    background: linear-gradient(160deg, #eef3f7 0%, #dfe8ef 100%);
}

.product-showcase-media img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    border: 1px solid #d9e0e3;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.product-showcase-info {
    flex: 1 1 44%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 40px;
    box-sizing: border-box;
    text-align: left;
}

.product-showcase-info h2 {
    margin: 0 0 14px 0;
    padding: 0;
    font-size: 1.6em;
    text-align: left;
    color: #33414f;
}

.product-showcase-info h2::before {
    /* short accent rule above the product name */
    content: "";
    display: block;
    width: 46px;
    height: 4px;
    margin-bottom: 14px;
    border-radius: 2px;
    background: var(--accent, #5b9bd5);
}

.product-showcase-tagline {
    margin: 0 0 18px 0;
    font-size: 12.5pt;
    line-height: 1.6;
    color: #4d5b6a;
}

.product-showcase-highlights {
    list-style: none;
    margin: 0 0 26px 0;
    padding: 0;
}

.product-showcase-highlights li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 9px;
    font-size: 11.5pt;
    line-height: 1.4;
    color: #3d4a57;
}

.product-showcase-highlights li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--accent, #5b9bd5);
}

.product-showcase-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 11.5pt;
    font-weight: 600;
    color: #fff !important;
    background: var(--accent, #5b9bd5);
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(31, 45, 61, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.product-showcase-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(31, 45, 61, 0.26);
}

.product-showcase-cta svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ---------- Detailed product blocks ---------- */
.product-details {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 12px;
}

.product-details-heading {
    margin: 8px 0 6px 0;
    font-size: 1.7em;
    text-align: center;
}

.product-details-sub {
    max-width: 680px;
    margin: 0 auto 30px auto;
    font-size: 12pt;
    line-height: 1.55;
    text-align: center;
    color: #5f6f7e;
}

.product-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.product-detail-block {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: #fff;
    border: 1px solid #e3e8ec;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(31, 45, 61, 0.07);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-detail-block::before {
    /* accent bar along the top edge */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent, #5b9bd5);
}

.product-detail-block:hover {
    transform: translateY(-4px);
    border-color: var(--accent, #c2cfd6);
    box-shadow: 0 14px 32px rgba(31, 45, 61, 0.14);
}

.product-detail-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.product-detail-icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    /* light-to-dark sheen layered over the product's solid accent, so the
       badge reads with depth whatever colour the product uses */
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.14)), var(--accent, #5b9bd5);
    box-shadow: 0 6px 16px rgba(31, 45, 61, 0.20);
}

.product-detail-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.product-detail-block h3 {
    margin: 0;
    font-size: 1.3em;
    text-align: left;
    color: #33414f;
}

.product-detail-block p {
    margin: 0 0 13px 0;
    font-size: 11.5pt;
    line-height: 1.62;
    text-align: left;
    color: #4d5b6a;
}

.product-detail-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    margin-top: auto;
    padding-top: 8px;
    font-size: 11.5pt;
    font-weight: 600;
    color: var(--accent, #456) !important;
    text-decoration: none !important;
}

.product-detail-cta svg {
    width: 16px;
    height: 16px;
    display: block;
    transition: transform 0.15s ease;
}

.product-detail-cta:hover svg {
    transform: translateX(3px);
}

/* Compact "Popular uses" line linking a product card to its use-case landing pages. */
.product-detail-uses {
    margin: 4px 0 14px 0 !important;
    font-size: 10.5pt;
    line-height: 1.5;
    color: #6a7886 !important;
}

.product-detail-uses .product-detail-uses-label {
    font-weight: 700;
    color: #4d5b6a;
}

.product-detail-uses a {
    color: var(--accent, #456) !important;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.product-detail-uses a:hover {
    text-decoration: underline !important;
}

/* ---------- Awards link ---------- */
.products-awards {
    margin: 36px 0 10px 0;
    text-align: center;
}

.products-awards a {
    font-size: 12pt;
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .product-showcase-slide {
        flex-direction: column;
        min-height: 0;
    }

    .product-showcase-media {
        flex-basis: auto;
        padding: 22px;
    }

    .product-showcase-media img {
        max-height: 240px;
    }

    .product-showcase-info {
        padding: 24px 22px 28px 22px;
    }

    .product-showcase-info h2 {
        font-size: 1.4em;
    }
}

@media (max-width: 760px) {
    .product-details-grid {
        grid-template-columns: 1fr;
    }
}
