/* A matched pair of real responsive screenshots replaces the old baked-in mockup. */
#smpls-editor-content.wnm-page .wnm-hero-visual:has(.wnm-responsive-preview) {
    min-height: 0;
    max-width: 800px;
    margin-inline: auto;
    width: 100%;
    padding: 0;
}

.wnm-responsive-preview {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 1.17;
    margin: 0;
}

.wnm-preview-halo {
    position: absolute;
    z-index: -1;
    inset: 0 -3% 12%;
    border-radius: 50%;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--wnm-primary) 11%, transparent), transparent 68%);
    pointer-events: none;
}

.wnm-preview-laptop {
    position: absolute;
    top: 6%;
    left: 0;
    width: 94%;
}

.wnm-preview-laptop-screen {
    padding: clamp(5px, .7vw, 10px);
    border: 1px solid #535963;
    border-radius: clamp(10px, 1.8vw, 22px) clamp(10px, 1.8vw, 22px) 5px 5px;
    background: #20232a;
    box-shadow: 0 20px 44px #172f521a;
}

.wnm-preview-laptop-screen img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    object-fit: cover;
    object-position: top;
    border-radius: clamp(3px, .7vw, 9px) clamp(3px, .7vw, 9px) 0 0;
}

.wnm-preview-laptop::after {
    content: '';
    display: block;
    position: absolute;
    top: calc(100% - 1px);
    left: -3%;
    width: 106%;
    height: clamp(7px, 1vw, 14px);
    border: 1px solid #8b929e;
    border-radius: 1px 1px 60% 60% / 1px 1px 100% 100%;
    background: linear-gradient(#e0e4eb, #858e9c);
    box-shadow: 0 10px 16px #172f5214;
}

.wnm-preview-phone {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 15%;
    width: 26%;
    padding: clamp(4px, .55vw, 7px);
    overflow: hidden;
    border: 1px solid #59616e;
    border-radius: clamp(15px, 2vw, 30px);
    background: #20232a;
    box-shadow: 0 16px 30px #172f5226;
}

.wnm-preview-phone::after {
    content: '';
    position: absolute;
    top: clamp(6px, .7vw, 10px);
    left: 37%;
    width: 26%;
    height: clamp(4px, .6vw, 8px);
    border-radius: 0 0 8px 8px;
    background: #20232a;
}

.wnm-preview-phone img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 390 / 814;
    object-fit: cover;
    object-position: top;
    border-radius: clamp(10px, 1.4vw, 23px);
}

.wnm-responsive-preview figcaption {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding-inline: 8px;
    text-align: center;
    color: var(--wnm-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.wnm-responsive-preview figcaption span {
    display: block;
    margin-top: 6px;
    color: var(--wnm-muted);
    font-size: 14px;
    font-weight: 400;
}

@media (max-width: 991px) {
    #smpls-editor-content.wnm-page .wnm-hero-visual:has(.wnm-responsive-preview) {
        max-width: 640px;
    }
}

@media (max-width: 575px) {
    .wnm-responsive-preview {
        aspect-ratio: 1.05;
    }

    .wnm-preview-phone {
        bottom: 22%;
    }

    .wnm-responsive-preview figcaption {
        font-size: 14px;
    }

    .wnm-responsive-preview figcaption span {
        font-size: 13px;
    }
}
