/* =============================================================
   Roadmap Component - CSS
   Extracted from nc reference files
   ============================================================= */

/* Raleway Font is globally required for this component as per index.html */
.roadmap-section__bg {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    pointer-events: none;
}

.roadmap-section__bg--mobile {
    background-position: top left;
}

.roadmap-item h3,
.roadmap-item p,
.roadmap-item span {
    font-family: 'Raleway', sans-serif;
}

.roadmap-progress-line {
    overflow: visible;
}

.roadmap-progress-arrow {
    position: absolute;
    bottom: -2px;
    left: 50%;
    display: flex;
    justify-content: center;
    width: 80px;
    line-height: 0;
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.roadmap-progress-arrow.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* End cap when no CTA button — same milestone dot look */
.roadmap-progress-end-dot {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F20D03;
    display: block;
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.roadmap-progress-end-dot.is-visible {
    opacity: 1;
    transform: translate(-50%, 50%);
}

@media (min-width: 768px) {
    .roadmap-progress-end-dot {
        width: 32px;
        height: 32px;
    }
}

.roadmap-progress-arrow-svg {
    display: block;
    width: 80px;
    height: 78px;
}

.roadmap-section + #site-footer,
.roadmap-section + #app-footer {
    margin-top: -9rem;
}

@media (max-width: 1023px) {
    .roadmap-section + #site-footer,
    .roadmap-section + #app-footer {
        margin-top: -7rem;
    }
}

@media (max-width: 639px) {
    .roadmap-section + #site-footer,
    .roadmap-section + #app-footer {
        margin-top: -5.5rem;
    }
}

@media (max-width: 1279px) {
    .roadmap-progress-arrow {
        width: 60px;
    }

    .roadmap-progress-arrow-svg {
        width: 60px;
        height: 55px;
    }
}

@media (max-width: 1023px) {
    .roadmap-progress-arrow {
        width: 45px;
    }

    .roadmap-progress-arrow-svg {
        width: 45px;
        height: 40px;
    }
}

/* Ensure no extra padding/margin fights with Tailwind's space-y-24 */
.space-y-24 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(6rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(6rem * var(--tw-space-y-reverse));
}
