/* Custom styles not covered by Tailwind CDN */

/* Reveal animations for scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Active Nav Link Styling */
.nav-link.active {
    color: #8EDB6C !important;
    font-weight: 600;
}

.mobile-nav-link.active {
    color: #8EDB6C !important;
    background-color: #f9fafb;
    /* gray-50 equivalent */
    font-weight: 600;
}

/* Aspect ratio for demo video if not provided by plugin */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
}

.aspect-w-16 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Smooth scrolling offset for fixed header */
html {
    scroll-padding-top: 80px;
    /* height of h-20 header */
}

/* Hand slide animations — initial hidden state */
.hand-left {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hand-right {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Features Section: Two-Column Layout ===== */
.features-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Left side: Phone stack wrapper */
.phone-stack-wrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    margin-left: 3rem;
}

.phone-stack {
    position: relative;
    width: 200px;
    height: 400px;
}

.phone-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: transform;
    /* Ease-out transition for smooth, decelerating animation */
    transition: transform 0.75s ease-out, filter 0.75s ease-out;
    transform-origin: center bottom;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
    user-select: none;
}

.phone-left {
    z-index: 1;
}

.phone-center {
    z-index: 2;
}

.phone-right {
    z-index: 3;
}

/* Right side: Feature cards single column */
.features-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    max-width: 480px;
    margin-left: 10rem;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 768px) {
    .features-layout {
        flex-direction: column;
        align-items: center;
    }

    .phone-stack-wrapper {
        /* Generous horizontal padding so fanned phones don't overflow viewport */
        padding: 2rem 4rem;
        width: 100%;
        box-sizing: border-box;
    }

    .phone-stack {
        width: 160px;
        height: 320px;
    }

    .features-column {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .phone-stack-wrapper {
        padding: 1.5rem 3.5rem;
    }

    .phone-stack {
        width: 130px;
        height: 260px;
    }
}

@media (min-width: 1024px) {
    .phone-stack {
        width: 200px;
        height: 400px;
    }

    .phone-stack-wrapper {
        padding: 2rem 4rem;
    }
}

@media (min-width: 1280px) {
    .phone-stack {
        width: 240px;
        height: 480px;
    }

    .phone-stack-wrapper {
        padding: 2rem 5rem;
    }
}