.hero-wrapper-zook {
    display: flex;
    flex-direction: column;
}

.hero-zook {
    position: relative;
    width: calc(100% - 16px);
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    flex-shrink: 0;
    max-width: 1920px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    margin: 8px auto;
    touch-action: pan-y;
}

.hero-background-zook {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-gradient-zook {
    position: absolute;
    inset: 0;
    background: #282834;
    z-index: 0;
}

.hero-images-container-zook {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-images-container-zook picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.hero-images-container-zook .hero-picture-zook {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.65s ease-in-out;
}

.hero-images-container-zook .hero-picture-zook.active {
    opacity: 1;
}

.hero-images-container-zook picture .hero-img-1-zook,
.hero-images-container-zook picture .hero-img-2-zook,
.hero-images-container-zook picture .hero-img-3-zook,
.hero-images-container-zook picture .hero-img-4-zook {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
}

.hero-bg-image-zook {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
}

@media (max-width: 767px) {
    .hero-images-container-zook picture .hero-img-1-zook,
    .hero-images-container-zook picture .hero-img-2-zook,
    .hero-images-container-zook picture .hero-img-3-zook,
    .hero-images-container-zook picture .hero-img-4-zook,
    .hero-bg-image-zook {
        object-position: top center;
    }
}

.hero-bg-overlay-zook {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(40, 40, 52, 0.15) 0%, rgba(40, 40, 52, 0) 60%);
}

.hero-content-zook {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 24px;
    margin-top: auto;
    margin-bottom: calc(24px + env(safe-area-inset-bottom));
    max-width: 100%;
    --line-start-y: 16px;
}

.hero-benefits-bar-zook {
    flex-shrink: 0;
    width: calc(100% - 16px);
    max-width: 1920px;
    margin: 0 auto 8px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #282834;
    box-sizing: border-box;
}

.hero-benefits-text-zook {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.75);
}

.hero-subtitle-zook {
    font-size: 20px;
    font-family: 'Proxima Nova Advanced', 'Proxima Nova', sans-serif;
    font-feature-settings: 'ss04' on, 'case' on;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0;
    color: #ffffff;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(var(--line-start-y));
}

.hero-headline-zook {
    display: flex;
    flex-direction: column;
}

.headline-carousel-zook {
    height: clamp(80px, 22.22vw, 120px);
    overflow: hidden;
    position: relative;
    transition: height 0.4s ease-out;
}

.carousel-track-zook {
    display: flex;
    flex-direction: column;
}

.carousel-slide-zook {
    display: flex;
    flex-direction: column;
    /* Allow four lines on narrow screens while keeping all slides equally tall. */
    height: clamp(144px, 40vw, 180px);
    flex-shrink: 0;
    overflow: hidden;
}

.carousel-slide-zook .line-zook {
    font-family: 'Proxima Nova Advanced', 'Proxima Nova', sans-serif;
    font-feature-settings: 'ss04' on, 'case' on;
    font-size: clamp(40px, 11.11vw, 60px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: #ffffff;
    display: inline-block;
    opacity: 0;
    transform: translateY(var(--line-start-y));
}

.carousel-slide-zook[data-slide="1"] .line-zook {
    line-height: 1;
}

.hero-break-desktop-zook {
    display: none;
}

.hero-headline-sup-zook {
    font-size: 32px;
    vertical-align: super;
    line-height: 0;
}

@media (max-width: 439px) {
    .carousel-slide-zook[data-slide="2"] .line-zook {
        /* Fit the longest mobile line while keeping the superscript at 32px. */
        font-size: calc(13.5vw - 10.5px);
    }
}

@keyframes lineSlideUp-zook {
    0% { opacity: 0; transform: translateY(var(--line-start-y)); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-description-zook {
    font-family: 'Inter', sans-serif;
    font-feature-settings: 'ss04' on, 'case' on;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #fff;
    margin: -8px 0 0;
    opacity: 0;
    transform: translateY(var(--line-start-y));
}

.hero-description-zook:empty {
    display: none;
}

.cta-button-zook {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    min-height: 48px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
    text-decoration: none;
    background: #4850e5;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.18s ease-out, color 0.18s ease-out;
    width: 100%;
    box-sizing: border-box;
}

.cta-button-zook:hover { background: #3d44c4; color: #ffffff; }
.cta-button-zook:active { background: #3238a3; color: #ffffff; }
.cta-button-zook:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(72, 80, 229, 0.3); }

/* Mobile tap navigation zones */
.hero-nav-zone-zook {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 4;
}

.hero-nav-prev-zook { left: 0; }
.hero-nav-next-zook { right: 0; }

/* Player controls */
.hero-player-zook {
    position: absolute;
    top: 100px;
    bottom: auto;
    left: 24px;
    right: 24px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    padding: 0;
}

.hero-bullets-zook {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-player-btn-zook {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(40, 40, 52, 0.7);
    border: none;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    align-self: flex-end;
}

.hero-player-btn-zook:hover { opacity: 0.7; }

.hero-player-btn-zook .icon-pause-zook { display: block; }
.hero-player-btn-zook .icon-play-zook { display: none; }
.hero-player-btn-zook.paused-zook .icon-pause-zook { display: none; }
.hero-player-btn-zook.paused-zook .icon-play-zook { display: block; }

.hero-bullet-zook {
    flex: 1;
    width: auto;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease, width 0.3s ease, border-radius 0.3s ease;
    flex-shrink: 0;
}

.hero-bullet-zook.active {
    background: rgba(255, 255, 255, 0.3);
    width: auto;
    border-radius: 2px;
}

.hero-bullet-zook.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    animation: bulletProgress-zook 5s linear forwards;
}

@keyframes bulletProgress-zook {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

@media (max-width: 1023px) {
    .hero-bullet-zook.completed {
        background: rgba(255, 255, 255, 0.3);
    }

    .hero-bullet-zook.completed::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #ffffff;
        border-radius: 2px;
        transform: scaleX(1);
        transform-origin: left center;
    }
}

.hero-player-zook.paused-zook .hero-bullet-zook.active::after {
    animation-play-state: paused;
}

@media (min-width: 1024px) {
    .hero-zook {
        touch-action: auto;
    }

    .hero-images-container-zook picture .hero-img-1-zook,
    .hero-images-container-zook picture .hero-img-2-zook,
    .hero-images-container-zook picture .hero-img-3-zook,
    .hero-images-container-zook picture .hero-img-4-zook {
        object-position: center center;
    }

    .hero-bg-image-zook {
        object-position: center center;
    }

    .hero-content-zook {
        gap: 40px;
        padding: 0 40px;
        margin-bottom: 40px;
        max-width: 70%;
        --line-start-y: 20px;
    }

    .cta-button-zook {
        width: fit-content;
    }

    .hero-benefits-bar-zook {
        padding: 20px 40px;
        border-radius: 20px;
    }

    .hero-benefits-text-zook {
        font-size: 20px;
        line-height: 24px;
        font-weight: 600;
    }

    .hero-description-zook {
        font-size: 18px;
        margin-top: -24px;
    }

    .headline-carousel-zook {
        height: clamp(96px, 12vw, 200px);
    }

    .carousel-slide-zook {
        height: clamp(144px, 18vw, 300px);
    }

    .carousel-slide-zook .line-zook {
        font-size: clamp(48px, 6vw, 100px);
    }

    .hero-break-mobile-zook {
        display: none;
    }

    .hero-break-desktop-zook {
        display: inline;
    }

    .hero-nav-zone-zook {
        display: none;
    }

    .hero-player-zook {
        position: absolute;
        bottom: 24px;
        right: 24px;
        top: auto;
        left: auto;
        width: 160px;
        height: 56px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        background: rgba(40, 40, 52, 0.1);
        border-radius: 20px;
        padding: 8px;
    }

    .hero-bullets-zook {
        width: 96px;
        height: 40px;
        gap: 8px;
        background: rgba(40, 40, 52, 0.7);
        border-radius: 12px;
        flex-shrink: 0;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .hero-player-btn-zook {
        align-self: auto;
    }

    .hero-bullet-zook {
        flex: unset;
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

    .hero-bullet-zook.active {
        width: 32px;
        border-radius: 4px;
    }

    .hero-bullet-zook.active::after {
        border-radius: 4px;
    }
}

@media (min-width: 1700px)  {
    .hero-content-zook {
        max-width: 60%;
    }
}
