﻿.hero-image {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.mockup-screen {
    width: 100%;
    max-width: 500px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mockup-header {
    height: 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* The hero's recording fills the mockup's window under its title bar. width/height on the element
   reserve the 760:620 box before the poster loads, so nothing shifts. */
.mockup-video {
    display: block;
    width: 100%;
    height: auto;
    background: #f1f5f9;
}

/* The phone recording's mockup, shown instead of the browser one on phones (sm). A dark bezel with
   rounded corners is enough to read as a phone; the video keeps its 390:844 shape. */
.mockup-phone {
    display: none;
    width: min(280px, 78vw);
    padding: 10px;
    border-radius: 38px;
    background: #0f172a;
    box-shadow: 0 18px 30px -12px rgba(15, 23, 42, 0.45);
}

    .mockup-phone .mockup-video {
        border-radius: 28px;
    }

/* sm - a tablet-width recording is unreadable at phone width, so phones get the phone recording. */
@media (max-width: 640px) {
    .hero-image {
        padding: 20px 12px;
        align-self: stretch;
    }

    .mockup-screen {
        display: none;
    }

    .mockup-phone {
        display: block;
    }
}
