/* =========================================================
   Product Hero Section — breadcrumb + copy left, visual right
   Shared by every product page (Agentic, Release Automation,
   Source Control, Security, Compliance, Observability)
   ========================================================= */

.product-hero-section {
    background-color: #f4f7fb;
}

/* Security draws its hero on white rather than the pale blue the other
   product pages use */
.product-hero-section-plain {
    background-color: var(--color-white);
}

.product-hero-section .product-hero-section-wrapper {
    gap: 26px;
    padding-block: var(--section-padding);
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row {
    gap: 44px;
}

/* ---------- Copy ---------- */

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content {
    flex: 0 0 604px;
    max-width: 604px;
}

/* the span carries the accent colour only. Where the design breaks the
   heading over two lines the markup says so with a <br>, so one rule serves
   a stacked lockup (Agentic) and an inline one (Release Automation). */
.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content h1 span {
    color: var(--color-signal-500);
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .accent-bar {
    margin-top: 16px;
}

.page-faq .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .accent-bar {
    display: none;
}

.page-faq .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content {
    flex: 0 0 676px;
    max-width: 676px;
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-section-subline {
    margin-top: 18px;
}

/* Figma: Body/Subline 19/28 in teal rather than the shared slate */
.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-section-subline p {
    color: var(--color-teal-700);
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-section-text {
    max-width: 560px;
    margin-top: 20px;
}

.page-faq .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-section-text {
    margin-top: 0;
    max-width: 100%;
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-section-text p {
    line-height: var(--line-height-prose-lg);
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-section-text p:not(:last-child) {
    margin-bottom: var(--space-smm);
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-section-actions {
    gap: 12px;
    margin-top: 28px;
}

/* ---------- Visual ---------- */

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual {
    flex: 1 1 0;
    min-width: 0;
}

/* the hero artwork, wherever a page has it */
.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-figure img {
    /* border-radius: var(--radius-lg); */
}

/* Where the artwork is a video thumbnail, the whole thing is the
   button. The play symbol is already drawn into the image, so nothing
   is laid over it — it only needs to answer to the pointer and to say
   plainly that it has focus. */
.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video {
    display: flex;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video:hover,
.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* Top Left Duration */
.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video .product-hero-section-video-duration {
    z-index: 2;
    position: absolute;
    left: 20px;
    top: 18px;
    font-family: var(--font-mono);
    font-size: var(--font-size-micro);
    line-height: 1.27;
    color: #99D9D1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
    transition: opacity 0.2s ease;
}

/* Hide duration and meta overlay once the video is playing */
.product-hero-section-video .video-still.is-playing~.product-hero-section-video-duration,
.product-hero-section-video .video-still.is-playing~.product-hero-section-video-meta {
    opacity: 0;
    pointer-events: none;
}

/* Custom Play Button matching Figma */
.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video .product-hero-section-video-play {
    z-index: 2;
    width: 74px;
    height: 74px;
    background-color: rgba(8, 198, 173, 1);
    border-radius: 999px;
    font-size: 26px;
    color: var(--color-teal-950);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video:hover .product-hero-section-video-play,
.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video:focus-visible .product-hero-section-video-play {
    transform: scale(1.05);
    background-color: var(--color-signal-600);
}

/* Meta overlay for video-still variant */
.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video .product-hero-section-video-meta {
    z-index: 2;
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    gap: var(--space-sm);
    width: auto;
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video .product-hero-section-video-meta small {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.33;
    color: var(--color-white);
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video .product-hero-section-video-meta .product-hero-section-video-source {
    gap: 7px;
    font-family: var(--font-mono);
    font-size: var(--font-size-caption);
    line-height: 1.33;
    color: #99D9D1;
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video .product-hero-section-video-meta .product-hero-section-video-source i {
    font-style: normal;
    font-size: 14px;
    margin-left: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video {
        transition: box-shadow 0.2s ease;
    }

    .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video:hover,
    .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video:focus-visible {
        transform: none;
    }

}

/* Fallback for a product page whose visual has not landed yet — Figma
   leaves an empty 560x300 frame. The Agentic page no longer uses it:
   its slot holds the .agentic-diagram SVG. */
.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-placeholder {
    gap: 10px;
    min-height: 300px;
    padding: var(--space-md);
    background-color: var(--color-white);
    border: 1px dashed var(--color-ink-200);
    border-radius: var(--radius-lg);
    text-align: center;
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-placeholder p {
    font-family: var(--font-mono);
    font-size: var(--font-size-micro);
    line-height: var(--line-height-auto);
    color: var(--color-slate-500);
}

/* ---------- Large Desktop / Laptop ---------- */
@media (max-width: 1199px) {

    .product-hero-section .product-hero-section-wrapper {
        padding-top: 64px;
        padding-bottom: 48px;
    }

    .product-hero-section .product-hero-section-wrapper .product-hero-section-row {
        gap: var(--space-xl);
    }

    .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content , .page-faq .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content{
        flex: 1 1 530px;
        max-width: 530px;
    }

    h1 br,
    .h1 br {
        display: none;
    }

}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {

    .product-hero-section .product-hero-section-wrapper {
        padding-top: 52px;
        padding-bottom: 44px;
    }

    .product-hero-section .product-hero-section-wrapper .product-hero-section-row {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-lg);
    }

    .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content,
    .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual , .page-faq .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-section-text {
        max-width: 100%;
    }

}

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

    .product-hero-section .product-hero-section-wrapper {
        gap: var(--space-sm);
        padding-top: 44px;
        padding-bottom: 40px;
    }

    .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video .product-hero-section-video-play {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video .product-hero-section-video-duration {
        left: 15px;
        top: 15px;
    }

    .product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video .product-hero-section-video-meta {
        right: 15px;
        bottom: 15px;
        left: 15px;
    }

}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-visual .product-hero-section-video .product-hero-section-video-meta small {
    font-size: 10px;
}

/* Product Hero Meta (Last Updated / Reviewed By) */
.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-meta {
    margin-top: var(--space-xxm);
    margin-bottom: var(--space-xm);
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-meta .product-hero-last-updated {
    font-size: var(--font-size-caption);
    line-height: var(--line-height-body-xl);
    letter-spacing: 0.96px;
    margin-bottom: var(--space-xss);
    font-family: var(--font-mono);
    color: var(--color-slate-500);
    font-weight: var(--font-weight-medium);
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-meta .product-hero-reviewed-by {
    color: var(--color-slate-500);
    font-size: var(--font-size-eyebrow);
    line-height: 1.3076;

}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-meta .product-hero-reviewed-by a {
    color: var(--color-teal-700);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .product-hero-meta .product-hero-reviewed-by a:hover {
    color: #005177;
    text-decoration: none;
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .hero-faq-search-wrapper {
    margin-top: var(--space-smm);
    max-width: 460px;
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .hero-faq-search-wrapper .search-input-wrap {
    position: relative;
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .hero-faq-search-wrapper .search-input-wrap input {
    min-height: 48px !important;
    border-radius: 999px !important;
    padding-left: 36px !important;
}

.product-hero-section .product-hero-section-wrapper .product-hero-section-row .product-hero-section-content .hero-faq-search-wrapper .search-input-wrap span {
    position: absolute;
    max-width: 17px;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* ---------- TOC Card ---------- */
.product-hero-toc {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    padding: 32px;
    width: 100%;
}

.product-hero-toc-title {
    font-family: var(--font-mono);
    font-size: var(--font-size-micro, 11px);
    line-height: 1.2727;
    letter-spacing: 1.54px;
    color: var(--color-slate-500);
    text-transform: uppercase;
    margin-bottom: 33px;
    font-weight: var(--font-weight-medium);
}

.product-hero-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.product-hero-toc-list::before {
    content: '';
    position: absolute;
    left: 19px;
    /* Centers with 32px circle */
    top: 10px;
    bottom: 20px;
    width: 2px;
    background-color: var(--color-input-border);
    z-index: 1;
}

.product-hero-toc-item {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.product-hero-toc-item:last-child {
    margin-bottom: 0;
}

.product-hero-toc-item:last-child::after {
    /* To cover the line going past the last item */
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    width: 1px;
    height: 100%;
    background: var(--color-white);
    z-index: 1;
}

.product-hero-toc-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-navy, #0f172a);
    font-weight: var(--font-weight-semibold);
    font-size: var(--space-sm);
    transition: color 0.2s ease;
    line-height: 1.3;
}

.product-hero-toc-link:hover {
    color: var(--color-signal-500, #00877a);
}

.product-hero-toc-number {
    font-family: var(--font-display);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-signal-500, #08c6ad);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 18px;
    line-height: 1.22;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

@media (max-width:991px) {
    .product-hero-toc {
        padding: var(--space-smm);
    }
}