/* iPad landscape + portrait stack — bird's-eye canvas showcase */

.ipad-canvas-section {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.ipad-canvas-row {
    display: flex;
    gap: 64px;
    align-items: center;
    flex-wrap: wrap;
}

.ipad-canvas-copy {
    flex: 1.15;
    min-width: 300px;
}

.ipad-canvas-copy p {
    margin: 0;
    max-width: none;
}

.ipad-canvas-showcase {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.ipad-canvas-stack {
    position: relative;
    width: min(100%, 380px);
    aspect-ratio: 1.05 / 1;
}

.ipad-device {
    position: absolute;
    box-sizing: border-box;
    background: #090b0f;
    overflow: hidden;
}

.ipad-device__screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0c10;
}

.ipad-device__screen picture,
.ipad-device__screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.ipad-device--portrait {
    width: 46%;
    aspect-ratio: 1024 / 1366;
    border: 5px solid #2a3038;
    border-radius: calc(100% * 14 / 1024 + 5px);
    top: 2%;
    right: 0;
    z-index: 1;
    transform: rotate(5deg);
    opacity: 0.94;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 12px 28px rgba(0, 0, 0, 0.34);
}

.ipad-device--portrait .ipad-device__screen {
    border-radius: calc(100% * 14 / 1024);
}

.ipad-device--landscape {
    width: 78%;
    aspect-ratio: 1366 / 1024;
    border: 7px solid #343b46;
    border-radius: calc(100% * 24 / 1366 + 7px);
    left: 0;
    bottom: 4%;
    z-index: 2;
    transform: rotate(-2deg);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 22px 52px rgba(0, 0, 0, 0.5);
}

.ipad-device--landscape .ipad-device__screen {
    border-radius: calc(100% * 24 / 1366);
}

@media (max-width: 768px) {
    .ipad-canvas-row {
        gap: 36px;
    }

    .ipad-canvas-showcase {
        width: 100%;
    }

    .ipad-canvas-stack {
        width: min(100%, 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ipad-device--portrait,
    .ipad-device--landscape {
        transform: none;
    }
}
