/* Conversion walkthrough: product demo chrome (not social feed) */

.landing-walkthrough {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-walkthrough-intro {
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem) 1.5rem 1.5rem;
    max-width: 36rem;
    margin: 0 auto;
}

.landing-walkthrough-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--landing-text, #f0f4f8);
}

.landing-walkthrough-sub {
    margin: 0;
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    color: var(--landing-muted, #8b9aab);
    line-height: 1.5;
}

/* Top chrome per clip */
.reel-demo-chrome {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12;
    padding: 0.65rem 1rem 0.5rem;
    padding-top: max(0.65rem, env(safe-area-inset-top, 0));
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
    pointer-events: none;
}

.reel-demo-progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.reel-demo-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2eb574, #3dd68c);
    width: 20%;
    transition: width 0.35s ease;
}

.reel-vid--1 .reel-demo-progress-fill {
    width: 20%;
}
.reel-vid--2 .reel-demo-progress-fill {
    width: 40%;
}
.reel-vid--3 .reel-demo-progress-fill {
    width: 60%;
}
.reel-vid--4 .reel-demo-progress-fill {
    width: 80%;
}
.reel-vid--5 .reel-demo-progress-fill {
    width: 100%;
}

.reel-demo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.reel-demo-step {
    color: rgba(255, 255, 255, 0.85);
}

.reel-demo-job {
    color: rgba(61, 214, 140, 0.95);
    font-weight: 800;
}

.reel-demo-dur {
    font-variant-numeric: tabular-nums;
    opacity: 0.75;
}

/* Hide fixed chrome when walkthrough section is off-screen (hero / footer) */
.reel-persistent-cta.reel-walkthrough-chrome--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Persistent CTAs + skip (fixed) */
.reel-persistent-cta {
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0.5rem));
    left: 50%;
    transform: translateX(-50%);
    z-index: 48;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: min(22rem, calc(100vw - 2rem));
    pointer-events: auto;
}

.reel-persistent-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.reel-persistent-cta-primary,
.reel-persistent-cta-secondary {
    flex: 1 1 auto;
    min-width: 8rem;
    text-align: center;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-weight: 800;
    border-radius: 10px;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.12s ease;
}

.reel-persistent-cta-primary {
    background: linear-gradient(135deg, #2eb574 0%, #3dd68c 100%);
    color: #041208;
    box-shadow: 0 4px 20px rgba(61, 214, 140, 0.35);
}

.reel-persistent-cta-secondary {
    background: rgba(0, 0, 0, 0.92);
    color: #f0f4f8;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.reel-persistent-cta-primary:hover,
.reel-persistent-cta-secondary:hover {
    filter: brightness(1.06);
}

.reel-persistent-skip {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.reel-persistent-skip:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* Extra bottom space for fixed UI */
.reel-vid {
    padding-top: 4.5rem;
    padding-bottom: 9rem;
}

@media (max-width: 480px) {
    .reel-persistent-cta {
        bottom: calc(0.85rem + env(safe-area-inset-bottom, 0.5rem));
    }
}
