/**
 * OUI Product layout — extends landing.css.
 * Scoped to body.layout-product. Re-skins the article body's existing
 * Bootstrap markup (.row.my-5, .feature-list, .btn-secondary, gradient-text)
 * to match the landing design system without modifying article content.
 */

body.layout-product {
    background: transparent;
}

/* Hero lead may carry article HTML — strip default trailing margin. */
body.layout-product .oui-landing-page .hero-lead p:last-child {
    margin-bottom: 0;
}

/* Hero image (replaces the fake-window panel for product pages). */
body.layout-product .oui-landing-page .hero-figure {
    border-radius: clamp(1.4rem, 3vw, 2rem);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(16, 16, 20, .12);
    border: 1px solid var(--landing-line);
    background: #fff;
    height: clamp(28rem, 60vh, 44rem);
}
body.layout-product .oui-landing-page .hero-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 991px) {
    body.layout-product .oui-landing-page .hero-figure {
        height: clamp(20rem, 50vw, 28rem);
    }
}

/* Statement band — slightly tighter than landing's, fits a single line. */
body.layout-product .oui-landing-page .statement h2 {
    font-size: clamp(2rem, 4.4vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 900;
}

/* === Article body section ============================================== */

body.layout-product .product-body > .container {
    max-width: 1180px;
}

/* Each .row.my-5 in the article becomes a card-like split panel. */
body.layout-product .product-body .row.my-5 {
    border-radius: clamp(1.4rem, 3vw, 2.2rem);
    overflow: hidden;
    background: rgba(255, 255, 255, .58);
    border: 1px solid var(--landing-line);
    box-shadow: 0 24px 70px rgba(16, 16, 20, .06);
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
    transition: .25s ease;
}
body.layout-product .product-body .row.my-5:hover {
    background: #fff;
    box-shadow: 0 30px 80px rgba(16, 16, 20, .10);
    transform: translateY(-2px);
}

body.layout-product .product-body .row.my-5 > .col-md-6 {
    min-height: 24rem;
}

body.layout-product .product-body .row.my-5 .p-5 {
    padding: clamp(1.6rem, 4vw, 3.2rem) !important;
}

/* Override the inline style="font-size:5rem" on row headings. */
body.layout-product .product-body .row.my-5 h2 {
    font-size: clamp(2rem, 4.4vw, 3.8rem) !important;
    line-height: .95;
    letter-spacing: -.05em;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--landing-ink);
}

body.layout-product .product-body .row.my-5 h2 .gradient-text {
    background: var(--landing-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.layout-product .product-body .row.my-5 p {
    color: var(--landing-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Feature list — gradient bullet points. */
body.layout-product .product-body .feature-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
    padding: 0;
}
body.layout-product .product-body .feature-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: .35rem;
    font-size: .98rem;
    color: var(--landing-muted);
    font-weight: 700;
}
body.layout-product .product-body .feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--landing-gradient);
}

/* Secondary buttons inside article body — restyled as landing btn-soft. */
body.layout-product .product-body .btn-secondary {
    border-radius: 999px;
    padding: .85rem 1.25rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .65);
    border: 1px solid var(--landing-line);
    color: var(--landing-ink);
    transition: all .2s ease;
    margin-right: .5rem;
}
body.layout-product .product-body .btn-secondary:hover {
    background: var(--landing-ink);
    color: #fff;
    border-color: var(--landing-ink);
}

/* The container-fluid wrapper around the article body has padding we don't need. */
body.layout-product .product-body .container-fluid.py-5 {
    padding: 0 !important;
}

@media (max-width: 767px) {
    body.layout-product .product-body .row.my-5 > .col-md-6 {
        min-height: 14rem;
    }
}
