/* Decorative device chrome shared by the public site and assessment intro.
   Product screenshots keep their own dimensions, content and accessible text. */
.product-phone {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 330px;
    min-width: 0;
    margin-inline: auto;
    border: 4px solid #202124;
    border-radius: 36px;
    padding: 44px 5px 26px;
    aspect-ratio: 9 / 17;
    background: #fff;
    box-shadow: 0 0 0 1px #96979b, 0 12px 28px -16px rgba(0, 0, 0, 0.36);
    corner-shape: round;
}

.product-phone::before,
.product-phone::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    content: "";
    pointer-events: none;
}

.product-phone::before {
    top: 12px;
    width: 64px;
    height: 17px;
    background: radial-gradient(circle at 54px 50%, #25394b 0 2px, #111214 3px);
}

.product-phone::after {
    bottom: 10px;
    width: 30%;
    height: 4px;
    background: #202124;
}

/* Detail previews show the top of the same device, without a tall empty screen.
   Only the padding and bezel fade; the complete screenshot stays visible. */
.product-phone--detail {
    aspect-ratio: auto;
    border-bottom: 0;
    border-radius: 36px 36px 0 0;
    padding-bottom: 24px;
    box-shadow: 0 0 0 1px #96979b;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 20px), transparent);
}

.product-phone--detail::after {
    content: none;
}

.product-phone img {
    display: block;
    width: 100%;
    height: auto;
}
