/**
 * LIVE Page — TRANŚCEND
 * Sleek, modern design (2024–25)
 */

/* ========== DESIGN TOKENS ========== */
:root {
    --live-teal: #2bb3b1;
    --live-teal-bright: #3dd5d3;
    --live-teal-glow: rgba(43, 179, 177, 0.4);
    --live-glass-bg: rgba(18, 35, 40, 0.6);
    --live-glass-border: rgba(255, 255, 255, 0.06);
    --live-radius: 16px;
    --live-radius-lg: 24px;
    --live-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    --live-shadow-hover: 0 24px 48px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.04);
    /* Typography — same heading & paragraph sizes site-wide */
    --live-heading: clamp(1.75rem, 3.5vw, 2.5rem);
    --live-heading-sm: clamp(1.375rem, 2.8vw, 2rem);
    --live-subtitle: clamp(1rem, 1.8vw, 1.25rem);
    --live-body: clamp(0.75rem, 1vw, 0.875rem);
    --live-body-sm: 0.6875rem;
    --live-caption: 0.58rem;
}

/* ========== LIVE PAGE BASE ========== */
.live-page {
    background: var(--bg-dark, #051216);
    color: var(--text-light, #fff);
    font-family: 'Comfortaa', cursive;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== HERO SECTION ========== */
.live-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 22vh;
    align-items: stretch;
    gap: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.live-hero-image-col {
    position: relative;
    overflow: hidden;
}

.live-hero-image-col::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 18, 22, 0.2) 0%, transparent 50%, rgba(43, 179, 177, 0.03) 100%);
    pointer-events: none;
    z-index: 1;
}

.live-hero-image-col::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 50%, rgba(5, 18, 22, 0.6) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.live-hero-image-col:hover::after {
    opacity: 1;
}

.live-hero-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(85%) contrast(1.05);
    transition: filter 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.live-hero-image-col:hover img {
    filter: grayscale(30%) contrast(1.02);
    transform: scale(1.03);
}

.live-hero-cta-col {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: linear-gradient(165deg, rgba(8, 22, 28, 0.98) 0%, rgba(18, 38, 45, 0.97) 50%, rgba(12, 28, 34, 0.98) 100%);
    position: relative;
}

.live-hero-cta-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 100% 80% at 0% 50%, rgba(43, 179, 177, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

/* ========== GET YOUR CODE BOX ========== */
.live-get-code-box {
    position: relative;
    max-width: none;
    width: 100%;
    height: 100%;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--live-glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--live-glass-border);
    border-left: 2px solid var(--live-teal);
    box-shadow: var(--live-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.live-get-code-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, var(--live-teal), var(--live-teal-bright), var(--live-teal), transparent);
    opacity: 0.9;
    pointer-events: none;
}

.live-get-code-close {
    display: none;
}

.live-get-code-box h2 {
    font-size: var(--live-heading-sm);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.live-get-code-box .live-get-code-desc {
    font-size: var(--live-body);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.live-get-code-box .email-input-wrapper {
    margin-bottom: 1rem;
}

.live-get-code-box .email-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: rgba(5, 18, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--live-radius);
    color: #fff;
    font-size: var(--live-body);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.live-get-code-box .email-input:hover {
    background: rgba(5, 18, 22, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.live-get-code-box .email-input:focus {
    border-color: var(--live-teal);
    box-shadow: 0 0 0 3px rgba(43, 179, 177, 0.2);
    background: rgba(5, 18, 22, 0.6);
}

.live-get-code-box .email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.live-send-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--live-teal) 0%, var(--live-teal-bright) 100%);
    color: #fff;
    font-weight: 600;
    font-size: var(--live-body);
    letter-spacing: 0.02em;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 2px 12px var(--live-teal-glow);
    position: relative;
    overflow: hidden;
}

.live-send-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.live-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--live-teal-glow);
}

.live-send-btn:hover::before {
    opacity: 1;
}

.live-send-btn:active {
    transform: translateY(0);
}

/* ========== REELS SECTION — FULL WIDTH ========== */
.live-reels-section {
    padding: clamp(1.25rem, 3vw, 2rem) 0;
    background: linear-gradient(180deg, rgba(12, 28, 35, 0.97) 0%, rgba(18, 40, 48, 0.98) 100%);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.live-reels-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(43, 179, 177, 0.2) 30%, rgba(43, 179, 177, 0.35) 50%, rgba(43, 179, 177, 0.2) 70%, transparent 100%);
    opacity: 0.8;
    z-index: 1;
}

.live-reels-head {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: clamp(1rem, 2.5vw, 1.35rem);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
    position: relative;
    z-index: 2;
}

.live-reels-title {
    font-size: var(--live-heading-sm);
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.live-reels-more {
    color: var(--live-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--live-body);
    letter-spacing: 0.02em;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.live-reels-more:hover {
    color: var(--live-teal-bright);
    transform: translateX(3px);
}

/* ========== SWIPER REELS CAROUSEL — FULL WIDTH ========== */
.live-reels-swiper-wrap {
    width: 100%;
    margin: 0;
    padding: 0.75rem 0;
    position: relative;
    z-index: 2;
}

/* Space for arrows — padding so arrows sit inside viewport and stay visible */
.live-reels-swiper-wrap .live-reels-swiper {
    padding: var(--space-md, 1rem) 80px;
}

/* Nav & pagination outside .swiper so they are NOT clipped by overflow:hidden */
.live-reels-nav-prev,
.live-reels-nav-next,
.live-reels-pagination {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.live-reels-swiper .swiper-slide {
    height: auto;
    display: flex;
    max-width: 280px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reel card — sleek glass style, compact size */
.live-reel-card {
    width: 100%;
    max-width: 280px;
    background: rgba(18, 35, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--live-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: var(--live-shadow);
    display: flex;
    flex-direction: column;
}

a.live-reel-card-link {
    text-decoration: none;
    color: inherit;
}

/* Instagram embed: reel-style height (9:16) so full reel shows, video fills card */
.live-reel-embed-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    min-height: 420px;
    max-height: 520px;
    overflow: hidden;
    background: linear-gradient(165deg, #152a32 0%, #0d1c22 100%);
}

.live-reel-embed-wrap iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    border: 0;
}

/* Native video in reel cards (R2-hosted) — fill container, same style as superpower cards */
.live-reel-video-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-reel-video-wrap .live-reel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(165deg, #152a32 0%, #0d1c22 100%);
}

/* Creator blue tick (Instagram-style verified badge) */
.live-reel-username .live-reel-verified {
    color: #0095f6;
    font-size: 0.75rem;
    margin-left: 2px;
    vertical-align: middle;
}

/* Creator name is the only link — goes to Instagram profile when clicked */
a.live-reel-username-link {
    color: #fff;
    font-weight: 600;
    font-size: var(--live-body);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.live-reel-username-link:hover {
    color: var(--live-teal);
}

a.live-reel-username-link .live-reel-verified {
    color: #0095f6;
    font-size: 0.75rem;
    margin-left: 0;
    vertical-align: middle;
}

/* Fallback card when embed is broken: tap to open reel on Instagram */
.live-reel-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-reel-fallback-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.live-reel-fallback-inner .fa-instagram {
    font-size: 2.5rem;
    color: #e4405f;
}

.live-reel-fallback-text {
    font-size: var(--live-body);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.live-reel-fallback-cta {
    font-size: var(--live-body-sm);
    color: var(--live-teal, #2bb3b1);
    font-weight: 600;
}

.live-reel-card:hover .live-reel-fallback-cta {
    text-decoration: underline;
}

.live-reels-swiper .swiper-slide-active .live-reel-card,
.live-reel-card:hover {
    border-color: rgba(43, 179, 177, 0.25);
    box-shadow: var(--live-shadow-hover);
    transform: translateY(-6px) scale(1.01);
}

/* Reel-style height — 9:16 aspect ratio */
.live-reel-thumb {
    width: 100%;
    aspect-ratio: 9 / 16;
    min-height: 260px;
    max-height: 400px;
    background: linear-gradient(165deg, #152a32 0%, #0d1c22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.live-reel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.live-reel-card:hover .live-reel-thumb img {
    transform: scale(1.05);
}

.live-reel-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(165deg, rgba(43, 179, 177, 0.08) 0%, rgba(18, 40, 48, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(43, 179, 177, 0.35);
    transition: color 0.3s ease, transform 0.3s ease;
}

.live-reel-card:hover .live-reel-thumb-placeholder {
    color: rgba(43, 179, 177, 0.55);
    transform: scale(1.02);
}

.live-reel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--live-body-sm);
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.live-reel-card:hover .live-reel-caption {
    opacity: 1;
}

.live-reel-meta {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.live-reel-meta .live-reel-user {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.live-reel-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--live-teal), var(--live-teal-bright));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 12px var(--live-teal-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.live-reel-card:hover .live-reel-avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--live-teal-glow);
}

.live-reel-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.live-reel-user {
    flex: 1;
    min-width: 0;
}

.live-reel-username {
    color: #fff;
    font-weight: 600;
    font-size: var(--live-body);
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-reel-username .fa-check-circle:not(.live-reel-verified) {
    color: var(--live-teal);
    font-size: 0.7rem;
}

.live-reel-followers {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--live-body-sm);
    margin-top: 2px;
}

/* Swiper navigation — minimal pill style */
.live-reels-nav-prev,
.live-reels-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(18, 35, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--live-teal);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 25;
    box-shadow: var(--live-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-reels-nav-prev::after,
.live-reels-nav-next::after {
    font-size: 18px;
    font-weight: 700;
}

.live-reels-nav-prev {
    left: 8px;
}

.live-reels-nav-next {
    right: 8px;
}

.live-reels-nav-prev:hover,
.live-reels-nav-next:hover {
    background: linear-gradient(135deg, var(--live-teal), var(--live-teal-bright));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px var(--live-teal-glow);
}

.live-reels-nav-prev:hover {
    transform: translateY(-50%) scale(1.08) translateX(-2px);
}

.live-reels-nav-next:hover {
    transform: translateY(-50%) scale(1.08) translateX(2px);
}

/* Swiper pagination — minimal dots */
.live-reels-pagination {
    position: relative;
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.live-reels-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    border-radius: 50%;
    transition: background 0.25s ease, transform 0.25s ease;
}

.live-reels-pagination .swiper-pagination-bullet-active {
    background: var(--live-teal);
    transform: scale(1.4);
    box-shadow: 0 0 10px var(--live-teal-glow);
}

/* ========== FOOTER (live page) ========== */
.live-footer {
    padding: var(--space-xl, 2rem) var(--space-lg, 2rem);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.live-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.live-footer a:hover {
    color: var(--live-teal);
}

/* ========== CONFIRMATION MODAL (live page) ========== */
.live-page .confirmation-modal-container {
    text-align: center;
}

.live-page .confirmation-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.live-page .confirmation-icon-success {
    color: var(--live-teal);
    animation: liveSuccessPulse 0.6s ease-out;
}

.live-page .confirmation-icon-error {
    color: #ff6b6b;
    animation: liveErrorShake 0.5s ease-out;
}

@keyframes liveSuccessPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes liveErrorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Nav link highlight for Live */
.revamp-header .nav-links a.live-nav-active {
    color: var(--live-teal);
}

.revamp-header .nav-links a.live-nav-active::after {
    width: 100%;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .live-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .live-hero-image-col {
        min-height: 12vh;
    }

    .live-hero-cta-col {
        padding: clamp(1.25rem, 4vw, 2rem);
    }

    .live-get-code-box {
        border-radius: var(--live-radius-lg);
        border: 1px solid var(--live-glass-border);
        border-left: 2px solid var(--live-teal);
        height: auto;
    }

    .live-get-code-box::before {
        display: none;
    }

    .live-reels-nav-prev,
    .live-reels-nav-next {
        width: 44px;
        height: 44px;
    }

    .live-reels-nav-prev::after,
    .live-reels-nav-next::after {
        font-size: 16px;
    }

    .live-reels-nav-prev { left: 6px; }
    .live-reels-nav-next { right: 6px; }
}

@media (max-width: 600px) {
    .live-reels-head {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }

    .live-reels-swiper-wrap .live-reels-swiper {
        padding-left: 56px;
        padding-right: 56px;
    }

    .live-reels-nav-prev,
    .live-reels-nav-next {
        width: 40px;
        height: 40px;
    }

    .live-reels-nav-prev::after,
    .live-reels-nav-next::after {
        font-size: 14px;
    }

    .live-reel-thumb {
        min-height: 220px;
    }
}

/* ========== HOW IT WORKS — Timeline (Superpower-style, scroll reveal) ========== */
/* Prevent black screen when section pins: gradient above matches hero/section */
.revamp-shell {
    background: linear-gradient(180deg, #0a161a 0%, #0d1a1f 25%, #0f1e24 50%, #051216 100%) !important;
}

.how-it-works-section {
    background: linear-gradient(180deg, #0a161a 0%, #0f1e24 50%, #0a161a 100%);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    position: relative;
    overflow: hidden;
}

.how-it-works-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.how-it-works-head {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.how-it-works-title {
    font-size: var(--live-heading);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35em;
    letter-spacing: -0.03em;
}

.how-it-works-subtitle {
    font-size: var(--live-subtitle);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
}

.how-it-works-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.how-it-works-images-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 0;
}

.how-it-works-images-row .how-it-works-step {
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.how-it-works-images-row .how-it-works-step.active {
    opacity: 1;
}

.how-it-works-step-image-wrap {
    width: 100%;
    aspect-ratio: 2/1; /* 1600×800 — no crop */
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.how-it-works-step-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.how-it-works-line-row {
    position: relative;
    height: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin: 1.5rem 0 1.75rem;
    z-index: 2;
}

.how-it-works-line-wrap {
    position: absolute;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    top: 50%;
    margin-top: -2px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.how-it-works-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2bb3b1, #3dd5d3);
    border-radius: 4px;
    transform-origin: left center;
    will-change: width;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.how-it-works-numbers {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.how-it-works-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2bb3b1, #3dd5d3);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    box-shadow: 0 2px 12px rgba(43, 179, 177, 0.4);
    transition: opacity 0.5s ease;
}

.how-it-works-num[data-step="2"],
.how-it-works-num[data-step="3"],
.how-it-works-num[data-step="4"] {
    opacity: 0;
}

.how-it-works-num[data-step="1"].active,
.how-it-works-num[data-step="2"].active,
.how-it-works-num[data-step="3"].active,
.how-it-works-num[data-step="4"].active {
    opacity: 1;
}

.how-it-works-text-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

.how-it-works-text-row .how-it-works-step {
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.how-it-works-text-row .how-it-works-step.active {
    opacity: 1;
}

.how-it-works-step-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.how-it-works-step-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
    margin: 0 0 1rem;
}

.how-it-works-step-cta {
    font-size: var(--live-body);
    font-weight: 700;
    color: #2bb3b1;
    margin: 0;
}

/* ----- How it works: mobile — vertical timeline, step cards, no break ----- */
@media (max-width: 900px) {
    .how-it-works-section {
        padding: clamp(2rem, 5vw, 3rem) 0;
    }

    .how-it-works-inner {
        padding: 0 1rem;
    }

    .how-it-works-head {
        margin-bottom: 1.75rem;
    }

    .how-it-works-title {
        font-size: var(--live-heading-sm);
    }

    .how-it-works-subtitle {
        font-size: var(--live-body);
    }

    /* Single column flow: use display:contents so timeline gets all steps + nums + line */
    .how-it-works-timeline {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
    }

    .how-it-works-images-row,
    .how-it-works-text-row,
    .how-it-works-line-row,
    .how-it-works-numbers {
        display: contents;
    }

    /* Order: step1 → step4 first to last; line last (so "4" is not first on mobile) */
    .how-it-works-num[data-step="1"] { order: 1; }
    .how-it-works-images-row .how-it-works-step[data-step="1"] { order: 2; }
    .how-it-works-text-row .how-it-works-step[data-step="1"] { order: 3; }
    .how-it-works-num[data-step="2"] { order: 4; }
    .how-it-works-images-row .how-it-works-step[data-step="2"] { order: 5; }
    .how-it-works-text-row .how-it-works-step[data-step="2"] { order: 6; }
    .how-it-works-num[data-step="3"] { order: 7; }
    .how-it-works-images-row .how-it-works-step[data-step="3"] { order: 8; }
    .how-it-works-text-row .how-it-works-step[data-step="3"] { order: 9; }
    .how-it-works-num[data-step="4"] { order: 10; }
    .how-it-works-images-row .how-it-works-step[data-step="4"] { order: 11; }
    .how-it-works-text-row .how-it-works-step[data-step="4"] { order: 12; }
    .how-it-works-line-wrap {
        order: 13;
        position: absolute;
        left: 1.25rem;
        top: 0;
        bottom: 0;
        width: 4px;
        height: 100%;
        margin: 0;
        margin-left: 0;
        background: rgba(255, 255, 255, 0.15);
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 8%, black 92%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0%, black 8%, black 92%, transparent 100%);
    }

    .how-it-works-line-progress {
        width: 100%;
        height: 0%;
        top: 0;
        left: 0;
        transform-origin: top center;
        -webkit-mask-image: linear-gradient(180deg, black 0%, black 100%, transparent 100%);
        mask-image: linear-gradient(180deg, black 0%, black 100%, transparent 100%);
    }

    /* Step card: number + image + text. Number on left with line, content beside */
    .how-it-works-timeline .how-it-works-step {
        display: flex;
        flex-direction: column;
        text-align: left;
        padding-left: 0;
        margin-bottom: 0;
        opacity: 1;
    }

    /* Each “step” group: number is first (order 1,4,7). Style num as circle on left, then image+text block. Use margin so content doesn’t sit under line. */
    .how-it-works-num {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.95rem;
        flex-shrink: 0;
        align-self: flex-start;
        margin-bottom: 0.5rem;
        opacity: 1 !important;
    }

    .how-it-works-num[data-step="2"],
    .how-it-works-num[data-step="3"],
    .how-it-works-num[data-step="4"] {
        opacity: 1 !important;
    }

    .how-it-works-images-row .how-it-works-step {
        margin-left: 0;
        padding-left: 2.75rem;
    }

    .how-it-works-text-row .how-it-works-step {
        margin-left: 0;
        padding-left: 2.75rem;
        padding-top: 0.4rem;
        padding-bottom: 1.75rem;
        opacity: 1;
    }

    .how-it-works-text-row .how-it-works-step[data-step="4"] {
        padding-bottom: 0;
    }

    .how-it-works-step-image-wrap {
        aspect-ratio: 2/1; /* 1600×800 — no crop */
        border-radius: 12px;
        margin-bottom: 0;
    }

    .how-it-works-step-title {
        font-size: 14px;
        margin-bottom: 0.3rem;
    }

    .how-it-works-step-desc {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 0.4rem;
    }

    .how-it-works-step-cta {
        font-size: 0.9rem;
    }
}

/* Smaller phones: reduce padding so nothing overflows */
@media (max-width: 480px) {
    .how-it-works-inner {
        padding: 0 0.75rem;
    }

    .how-it-works-num {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }

    .how-it-works-images-row .how-it-works-step,
    .how-it-works-text-row .how-it-works-step {
        padding-left: 2.25rem;
    }

    .how-it-works-line-wrap {
        left: 0.875rem;
    }
}

/* ========== WHAT'S INCLUDED (Superpower-style: left pinned, right scrolls to reveal cards) ========== */
.whats-included-section {
    background: linear-gradient(180deg, #0a161a 0%, #0f1e24 50%, #0a161a 100%);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    position: relative;
    overflow: hidden;
}

.whats-included-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 0;
    align-items: stretch;
    gap: clamp(2rem, 4vw, 4rem);
    padding: 0 clamp(1rem, 2vw, 1.5rem);
}

.whats-included-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.whats-included-title {
    font-size: var(--live-heading);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5em;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.whats-included-desc {
    font-size: var(--live-subtitle);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
}

.whats-included-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    width: max-content;
    font-size: var(--live-body);
    font-weight: 600;
    color: #051216;
    background: linear-gradient(135deg, #2bb3b1, #3dd5d3);
    border: none;
    border-radius: 999px;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 20px rgba(43, 179, 177, 0.35);
}

.whats-included-cta:hover {
    color: #051216;
    box-shadow: 0 6px 28px rgba(43, 179, 177, 0.5);
    transform: translateY(-2px);
}

/* Right column: 2 full rows visible (no overlap); top/bottom fade mask; 2 cards per row */
.whats-included-right {
    position: relative;
    height: 72vh;
    min-height: 420px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 4%, black 92%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, black 4%, black 92%, transparent 100%);
}

/* Past cards wrapper: desktop = part of grid (contents), mobile = carousel */
.whats-included-past-carousel {
    display: contents;
}

.whats-included-cards-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 34vh;
    gap: 1rem 1.25rem;
    padding: 0.75rem 0;
    will-change: transform;
    align-content: start;
}

.whats-included-card {
    position: relative;
    min-height: 0;
    height: 100%;
    display: block;
    overflow: hidden;
    border: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

a.whats-included-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}

a.whats-included-card-link:hover {
    border-color: rgba(43, 179, 177, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.whats-included-chip {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    display: inline-block;
    font-size: var(--live-caption);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
    width: max-content;
}

.whats-included-chip-active {
    background: #2bb3b1;
    color: #051216;
    box-shadow: 0 2px 14px rgba(43, 179, 177, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.5);
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.whats-included-chip-past {
    background: linear-gradient(135deg, #c53030, #e53e3e);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 10px rgba(197, 48, 48, 0.5);
}

.whats-included-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.whats-included-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whats-included-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1rem 0.75rem 0.75rem;
    background: linear-gradient(to top, rgba(10, 18, 22, 0.95) 0%, rgba(10, 18, 22, 0.6) 50%, transparent 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.whats-included-card:hover .whats-included-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.whats-included-card-overlay .whats-included-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.whats-included-card-overlay .whats-included-card-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.3;
    margin: 0 0 0.2rem;
    max-width: 100%;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.whats-included-card-overlay .whats-included-card-byline {
    display: block;
    font-size: var(--live-caption);
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
    line-height: 1.25;
}

/* Mobile: stack vertically, no pin/scroll animation — simple list */
@media (max-width: 900px) {
    .whats-included-section {
        min-height: auto;
        padding: clamp(2rem, 5vw, 3rem) 0;
        overflow-x: hidden;
    }

    .whats-included-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 1.5rem;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    .whats-included-left {
        padding: 0 0 1rem;
        min-width: 0;
    }

    .whats-included-cta {
        margin-top: 1.25rem;
    }

    .whats-included-right {
        height: auto;
        min-height: 0;
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
        min-width: 0;
        max-width: 100%;
    }

    .whats-included-cards-wrap {
        display: flex;
        flex-direction: column;
        padding: 0;
        grid-template-columns: unset;
        grid-auto-rows: unset;
        gap: 1.25rem;
        max-width: 100%;
        min-width: 0;
    }

    /* Active card: full width within viewport, no cut */
    .whats-included-cards-wrap > .whats-included-card-link {
        width: 100%;
        max-width: 100%;
        height: 38vh;
        min-height: 220px;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    /* Past cards: horizontal carousel — allow swipe, scroll-snap */
    .whats-included-past-carousel {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 0 1rem 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        width: 100%;
        min-width: 0;
        touch-action: pan-x;
    }

    .whats-included-past-carousel::-webkit-scrollbar {
        display: none;
    }

    .whats-included-card-past {
        flex: 0 0 85%;
        min-width: 85%;
        width: 85%;
        height: 38vh;
        min-height: 220px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        padding: 0;
        flex-shrink: 0;
    }

    /* Mobile: keep desktop card style — image fills card, overlay on hover only */
    .whats-included-card {
        padding: 0;
    }

    /* Indicators: always visible below past carousel on mobile */
    .whats-included-section .whats-included-indicators {
        display: flex !important;
        width: 100%;
        justify-content: center;
        padding: 0.75rem 0 0.25rem;
    }
}

/* What's included: indicator dots for past carousel (mobile only, like benefits) */
.whats-included-indicators {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0 0.5rem;
}

.whats-included-indicators .whats-included-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
    cursor: pointer;
}

.whats-included-indicators .whats-included-dot.active {
    width: 26px;
    height: 8px;
    border-radius: 4px;
    background: var(--live-teal);
    box-shadow: 0 0 10px var(--live-teal-glow);
}

@media (min-width: 901px) {
    .whats-included-indicators {
        display: none !important;
    }
}

/* ========== Guided App: Slides Pinning – Overscroll (CodePen GreenSock bGRdvMy) ========== */
#guided-app-section.guided-app-section {
    overflow: hidden;
}
.guided-app-section .slides-wrapper.guided-app-slides {
    margin-top: 0;
}
.guided-app-section .section.slide-panel {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}
.guided-app-section .section-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.guided-app-section .section-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-sizing: border-box;
}
.guided-app-section .slide-col {
    min-height: 0;
}
.guided-app-section .slide-col-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    overflow-y: auto;
}
.guided-app-section .slide-col-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.guided-app-section .section-inner .slide-col-content p,
.guided-app-section .section-inner .slide-col-content ul {
    max-width: none;
    padding: 0.25rem 0 0.5rem;
    margin: 0 0 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--live-body);
    line-height: 1.55;
    text-align: left;
}
.guided-app-section .section-inner .slide-col-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}
.guided-app-section .section-inner .slide-col-content li {
    margin-bottom: 0.35rem;
}
.guided-app-section .slide-title {
    font-size: var(--live-heading-sm);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5em;
    line-height: 1.25;
}
.guided-app-section .slide-image {
    width: 85%;
    max-width: 380px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
}
.guided-app-section .slide-panel-1 {
    background: linear-gradient(180deg, #0d1c22 0%, #122a32 100%);
    color: #fff;
}
.guided-app-section .slide-panel-2 {
    background: linear-gradient(180deg, #122a32 0%, #0d2430 100%);
    color: #fff;
}
.guided-app-section .slide-panel-3 {
    background: linear-gradient(180deg, #0d2430 0%, #0a1c26 100%);
    color: #fff;
}
.guided-app-section .slide-panel-4 {
    background: linear-gradient(180deg, #0a1c26 0%, #0d1c22 100%);
    color: #fff;
}
.guided-app-section .slide-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    max-width: 44ch;
}
.guided-app-section .slide-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    padding: 0.5rem 0 !important;
}
.guided-app-section .slide-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.guided-app-section .guided-app-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: #2bb3b1;
    color: #051216;
    font-weight: 600;
    font-size: var(--live-body);
    border-radius: 8px;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: background 0.25s ease, transform 0.2s ease;
}
.guided-app-section .guided-app-btn:hover {
    background: #3dd5d3;
    transform: translateY(-2px);
}
.guided-app-section .slide-panel-2 .section-inner,
.guided-app-section .slide-panel-3 .section-inner,
.guided-app-section .slide-panel-4 .section-inner {
    height: auto;
    min-height: 100vh;
    padding-bottom: 20vh;
    align-items: flex-start;
    padding-top: clamp(2rem, 5vw, 4rem);
}
.guided-app-section .slide-panel-2 .slide-col-content,
.guided-app-section .slide-panel-3 .slide-col-content,
.guided-app-section .slide-panel-4 .slide-col-content {
    justify-content: flex-start;
}
@media (max-width: 1470px) {
    #guided-app-section.guided-app-section {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .guided-app-section .section-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .guided-app-section .slide-col-image {
        order: -1;
    }
    .guided-app-section .slide-image {
        width: 70%;
    }
}
