/*--------------------------------------------------------------
# RedCheck pré-home — storytelling com vídeo ligado ao scroll
--------------------------------------------------------------*/
:root {
    --intro-bg: #0c0e11;
    --intro-accent: #f5214d;
    --intro-text: #f3f3ff;
    --intro-muted: rgba(243, 243, 255, 0.74);
    --intro-scroll-mult: 8;
    --intro-text-max: 640px;
}

.intro-page {
    font-family: "Inter", sans-serif;
    background: var(--intro-bg);
    color: var(--intro-text);
    margin: 0;
    overflow-x: hidden;
}

/* Topbar fixa --------------------------------------------------*/
.intro-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem clamp(1rem, 3vw, 2.25rem);
    background: rgba(20, 22, 26, 0.32);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(243, 243, 255, 0.06);
}

.intro-topbar__logo img {
    height: 34px;
    width: auto;
    display: block;
}

.intro-topbar__links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.intro-skip {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--intro-muted);
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0.35rem 0.5rem;
}

.intro-skip:hover,
.intro-skip:focus {
    color: var(--intro-text);
    outline: none;
}

/* Shell de scroll + sticky ------------------------------------*/
.intro-scroll-shell {
    position: relative;
    min-height: 100vh;
    height: calc(100vh * var(--intro-scroll-mult));
}

.intro-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.intro-video-wrap {
    position: absolute;
    inset: -2%;
    pointer-events: none;
    background-color: var(--intro-bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.intro-video-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
}

.intro-video-dim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 14, 17, 0.78) 0%, rgba(12, 14, 17, 0.5) 38%, rgba(12, 14, 17, 0.18) 65%, rgba(12, 14, 17, 0.45) 100%),
        linear-gradient(180deg, rgba(12, 14, 17, 0.32) 0%, rgba(12, 14, 17, 0.6) 100%);
}

/* Corpo (conteúdo) -------------------------------------------*/
.intro-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 clamp(1.25rem, 5vw, 4rem);
    box-sizing: border-box;
}

.intro-chapter-stage {
    display: grid;
    grid-template-areas: "stage";
    width: 100%;
    max-width: var(--intro-text-max);
    position: relative;
}

.intro-chapter-stage > * {
    grid-area: stage;
}

.intro-chapters {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.intro-chapters li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    grid-area: stage;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

.intro-chapters li.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.intro-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--intro-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.intro-kicker::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--intro-accent);
}

.intro-ch-heading {
    font-size: clamp(1.85rem, 4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.01em;
    max-width: 14ch;
}

.intro-ch-body {
    margin: 0;
    font-size: clamp(0.98rem, 1.4vw, 1.12rem);
    line-height: 1.55;
    color: var(--intro-muted);
    max-width: 52ch;
}

.intro-ch-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.intro-ch-ctas .intro-btn {
    margin: 0;
}

/* Hint "Role para ver" (centrado, com animação) ---------------*/
.intro-hint-scroll {
    position: absolute;
    left: 50%;
    bottom: clamp(3rem, 8vh, 5rem);
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: var(--intro-muted);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.intro-hint-scroll.show {
    opacity: 1;
}

.intro-hint-scroll svg {
    animation: intro-scroll-pulse 1.8s ease-in-out infinite;
    color: var(--intro-accent);
}

@keyframes intro-scroll-pulse {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

/* Progresso fininha no rodapé ---------------------------------*/
.intro-progress {
    position: absolute;
    left: clamp(1.25rem, 5vw, 4rem);
    right: clamp(1.25rem, 5vw, 4rem);
    bottom: clamp(1.25rem, 3vh, 2rem);
    z-index: 3;
}

.intro-progress__track {
    height: 2px;
    background: rgba(243, 243, 255, 0.14);
    border-radius: 999px;
    overflow: hidden;
}

.intro-progress__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f5214d, rgba(243, 243, 255, 0.85));
    border-radius: inherit;
}

/* Botões -------------------------------------------------------*/
.intro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.intro-btn--primary {
    background: var(--intro-accent);
    color: #fff;
}

.intro-btn--primary:hover {
    background: #c01940;
    color: #fff;
    box-shadow: 0 0 0 1px #f5214d, 0 0 0 3px rgba(255, 255, 255, 0.32);
}

.intro-btn--ghost {
    background: rgba(243, 243, 255, 0.08);
    color: var(--intro-text);
    border-color: rgba(243, 243, 255, 0.32);
}

.intro-btn--ghost:hover {
    background: rgba(243, 243, 255, 0.16);
    border-color: #f5214d;
    color: #fff;
}

.intro-btn--light {
    background: #f3f3ff;
    color: #1c2024;
}

.intro-btn--light:hover {
    background: #ffffff;
    color: #f5214d;
    box-shadow: 0 0 0 1px #f5214d, 0 0 0 3px rgba(255, 255, 255, 0.24);
}

/* Reduced motion -----------------------------------------------*/
.intro-reduced-controls {
    position: absolute;
    right: clamp(1.25rem, 5vw, 4rem);
    bottom: clamp(2.5rem, 5vh, 3.5rem);
    z-index: 3;
}

.intro-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .intro-chapters li {
        transition: none;
    }

    .intro-hint-scroll svg {
        animation: none;
    }

    body.intro-page {
        scroll-behavior: auto;
    }
}

@media (max-width: 991px) {
    .intro-body {
        padding: 0 clamp(1.25rem, 5vw, 2rem);
    }

    .intro-ch-heading {
        max-width: none;
    }
}

@media (max-width: 575px) {
    :root {
        --intro-scroll-mult: 7;
    }

    .intro-topbar {
        padding: 0.7rem 0.9rem;
    }

    .intro-topbar__logo img {
        height: 28px;
    }

    .intro-topbar__links {
        gap: 0.4rem;
    }

    .intro-topbar__links .intro-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }

    .intro-skip {
        font-size: 0.72rem;
    }

    .intro-ch-ctas {
        gap: 0.5rem;
    }

    .intro-hint-scroll {
        font-size: 0.78rem;
    }
}
