/* =========================================================
   Hero Section — layout only (typography comes from base.css)
   ========================================================= */

.hero-section {
    background-color: var(--color-white);
    /* border-bottom: 1px solid var(--color-border); */
}

.hero-section .hero-section-wrapper {
    position: relative;
    gap: var(--space-xl);
    padding-block: var(--section-padding);
}

/* ---------- Content ---------- */

.hero-section .hero-section-wrapper .hero-section-content {
    flex-shrink: 0;
    width: 520px;
    gap: var(--space-sm);
}

.hero-section .hero-section-wrapper .hero-section-content .hero-section-text {
    width: 100%;
    gap: var(--space-md);
    padding-top: 2px;
}

.hero-section .hero-section-wrapper .hero-section-content .hero-section-text .hero-section-subtext {
    max-width: 424px;
}

/* ---------- Actions ---------- */

.hero-section .hero-section-wrapper .hero-section-content .hero-section-text .hero-section-actions {
    gap: 12px;
}

/* ---------- IBM block ---------- */

.hero-section .hero-section-wrapper .hero-section-ibm {
    gap: 18px;
    padding-top: var(--space-xs);
}

.hero-section .hero-section-wrapper .hero-section-ibm img {
    flex-shrink: 0;
    width: 150px;
    height: 78px;
    border-radius: var(--radius-xs);
    object-fit: contain;
}

.hero-section .hero-section-wrapper .hero-section-ibm .hero-section-ibm-item {
    gap: 4px;
}

.hero-section .hero-section-wrapper .hero-section-ibm .hero-section-ibm-item .h4 {
    color: var(--color-ink-900);
}

.hero-section .hero-section-wrapper .hero-section-ibm .hero-section-ibm-item p {
    max-width: 300px;
    color: var(--color-slate-500);
}

.hero-section .hero-section-wrapper .hero-ibm-mobile {
    display: none;
}

/* ---------- Visual ---------- */

/* the animation supplies its own panel chrome, and its actor glows sit
   outside the card — so no clipping, radius or fixed ratio here */
.hero-section .hero-section-wrapper .hero-section-visual {
    flex: 1 1 0;
    min-width: 0;
}

.hero-section .hero-section-wrapper .hero-section-visual iframe.dbm-anim {
    height: 400px;
}

@media (max-width: 480px) {
    .hero-section .hero-section-wrapper .hero-section-visual iframe.dbm-anim {
        height: 260px;
    }
}

@media (min-width: 992px) {
    .hero-section .hero-section-wrapper .hero-section-visual.has-g2-badge {
        /* padding-top: 120px; */
    }
}

/* ---------- G2 badge ---------- */
.hero-section .hero-section-wrapper .hero-section-visual.has-g2-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-section .hero-section-wrapper .hero-section-badge {
    width: fit-content;
    margin-bottom: var(--space-sm);
    gap: 10px;
    padding: 13px 13px 13px 10px;
    /* Figma 9/14/9/11 — the 1px stroke sits inside the badge in Figma */
    background-color: var(--color-white);
    border: 1px solid #e1e5e8;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-badge);
}

.hero-section .hero-section-wrapper .hero-section-badge .hero-section-badge-mark {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
}

.hero-section .hero-section-wrapper .hero-section-badge .hero-section-badge-rating {
    gap: 3px;
}

.hero-section .hero-section-wrapper .hero-section-badge .hero-section-badge-rating img {
    width: 85px;
    height: 15px;
}

.hero-section .hero-section-wrapper .hero-section-badge .hero-section-badge-rating b {
    font-size: var(--font-size-micro);
    line-height: 1.2727;
    color: var(--color-slate-500);
}

.hero-section .hero-section-wrapper .hero-section-badge .link-arrow {
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-body-sm);
    color: #C4342B;
}

.hero-section .hero-section-wrapper .hero-section-badge .link-arrow span img {
    filter: brightness(0) saturate(100%) invert(28%) sepia(46%) saturate(2688%) hue-rotate(339deg) brightness(88%) contrast(96%);
}

/* ---------- Large Desktop / Laptop ---------- */
@media (max-width: 1199px) {

    .hero-section .hero-section-wrapper {
        gap: var(--space-lg);
    }

    .hero-section .hero-section-wrapper .hero-section-content {
        flex: 1 1 460px;
        width: auto;
    }

    .hero-section .hero-section-wrapper .hero-section-visual {
        flex: 1 1 380px;
    }

}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {

    .hero-section .hero-section-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .hero-section .hero-section-wrapper .hero-section-visual.has-g2-badge {
        align-items: flex-start;
    }

    .hero-section .hero-section-wrapper .hero-section-content {
        flex: 0 0 auto;
        width: 100%;
    }

    .hero-section .hero-section-wrapper .hero-section-visual {
        flex: 0 0 auto;
        width: 100%;
    }

    /* .hero-section .hero-section-wrapper .hero-section-badge {
        position: static;
        align-self: flex-start;
        order: 3;
        width: 150px;
    } */

}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {

    .hero-section .hero-section-wrapper {
        gap: var(--space-lg);
    }

    .hero-section .hero-section-wrapper .hero-section-ibm .hero-section-ibm-item {
        gap: 10px;
    }

    .hero-section .hero-section-wrapper .hero-section-content .hero-section-text .hero-section-actions {
        width: 100%;
    }

    .hero-section .hero-section-wrapper .hero-ibm-desktop {
        display: none !important;
    }

    .hero-section .hero-section-wrapper .hero-ibm-mobile {
        display: flex;
        order: 4;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .hero-section .hero-section-wrapper .hero-section-content .hero-section-text .hero-section-actions {
        gap: 14px;
    }

}

/* ---------- Small Mobile ---------- */