/*
 * style-ios.css — iOS / iPadOS companion website styles.
 * Load AFTER styles/shared/style.css.
 * Contains the device-bezel screenshots and the narrow, sticky
 * side-by-side feature layout built for portrait iPhone/iPad screenshots.
 */

/* --- iOS 1. Hero Visuals (device screenshots) --- */
.hero-visual-double {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 20px 0 40px 0;
    perspective: 1000px;
}

.screenshot-wrapper {
    max-width: 260px;
    transition: transform 0.5s ease;
}

.screenshot-wrapper.primary {
    transform: rotate(-2deg) translateX(20px);
    z-index: 2;
}

.screenshot-wrapper.secondary {
    transform: rotate(2deg) translateX(-20px);
    z-index: 1;
}

.hero-visual-double:hover .screenshot-wrapper {
    transform: rotate(0deg) translateX(0);
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 34px;
    transition: transform 0.5s ease;
    border: 1px solid var(--screenshot-border);
    box-shadow: var(--screenshot-shadow);
}

.app-screenshot.dark {
    --bezel-color: #333333;
    border-color: #000000;
}

/* --- iOS 2. Feature Blocks (side by side) --- */
.feature-split {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.feature-split.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1.2;
    padding-bottom: 0rem;
}

.feature-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    margin-bottom: 2rem;
}

.feature-image .app-screenshot {
    max-width: 240px;
    transform: none !important;
}

/* --- iOS 3. Responsive --- */
@media (max-width: 768px) {
    .hero-visual-double { flex-direction: column; gap: 40px; }
    .screenshot-wrapper.secondary { display: none; }
    .feature-split, .feature-split.reverse { flex-direction: column; gap: 2rem; }
    .feature-image { position: static; justify-content: center; }
}
