/* ============================================================================
   ROADMAP PAGE — /roadmap
   ============================================================================ */
/* ── Header ──────────────────────────────────────────────────────────────── */
.roadmap-header {
    text-align: center;
    padding-top: 160px;
    padding-bottom: var(--space-xl);
}
.roadmap-header__title {
    margin-bottom: var(--space-sm);
}
.roadmap-header__sub {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Caveat card */
.roadmap-caveat {
    max-width: 640px;
    margin: var(--space-xl) auto 0;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}
.roadmap-caveat p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 0;
}


/* ── Section 2: Status Overview ──────────────────────────────────────────── */
.roadmap-status-section {
    padding-top: 0;
}

.roadmap-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 960px;
    margin-inline: auto;
}
.roadmap-status-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color var(--ease-fast), transform var(--ease-fast);
}
.roadmap-status-card:hover {
    transform: translateY(-2px);
}
.roadmap-status-card[data-product="core"]:hover   { border-color: var(--product-core); }
.roadmap-status-card[data-product="velvet"]:hover  { border-color: var(--product-velvet); }
.roadmap-status-card[data-product="fleet"]:hover   { border-color: var(--product-fleet); }

.roadmap-status-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
.roadmap-status-card__icon {
    font-size: 24px;
}
.roadmap-status-card__name {
    font-size: 20px;
    font-weight: 700;
}

.roadmap-status-card .badge {
    margin-bottom: var(--space-md);
}

.roadmap-status-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.roadmap-status-card__date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}
.roadmap-status-card__line {
    font-size: 14px;
    color: var(--text-secondary);
}


/* ── Section 3: Timeline ─────────────────────────────────────────────────── */
.roadmap-timeline-section {
    background: var(--bg-surface);
}

.timeline {
    max-width: 760px;
    margin-inline: auto;
    position: relative;
    padding-left: 48px;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-subtle);
}

/* Timeline items */
.timeline__item {
    position: relative;
    padding-bottom: var(--space-3xl);
}
.timeline__item:last-child {
    padding-bottom: 0;
}

/* Markers */
.timeline__marker {
    position: absolute;
    left: -48px;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Completed marker */
.timeline__item--completed .timeline__marker {
    background: var(--green);
    color: #0a0a0c;
}
.timeline__item--completed .timeline__marker svg {
    width: 16px;
    height: 16px;
}

/* In-progress marker */
.timeline__item--progress .timeline__marker {
    background: var(--amber);
    color: #0a0a0c;
}
.timeline__pulse {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--amber);
    position: relative;
}
.timeline__pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--amber);
    animation: timelinePulse 2s ease-out infinite;
}
@keyframes timelinePulse {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0;   transform: scale(1.6); }
}

/* Planned marker */
.timeline__item--planned .timeline__marker {
    background: transparent;
    border: 2px solid var(--border-active);
}

/* Future marker */
.timeline__item--future .timeline__marker {
    background: transparent;
    border: 2px dashed var(--text-muted);
}

/* Content */
.timeline__date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}
.timeline__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--space-md);
}
.timeline__subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

/* Checklist */
.timeline__checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.timeline__check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 15px;
    line-height: 1.6;
}
.timeline__check-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-weight: 600;
}

/* Status colors */
.timeline__check--done {
    color: var(--text-secondary);
}
.timeline__check--done .timeline__check-icon {
    color: var(--green);
}
.timeline__check--progress {
    color: var(--text-secondary);
}
.timeline__check--progress .timeline__check-icon {
    color: var(--amber);
}
.timeline__check--pending {
    color: var(--text-muted);
}
.timeline__check--pending .timeline__check-icon {
    color: var(--text-muted);
}

/* Future note */
.timeline__note {
    margin-top: var(--space-md);
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}


/* ── Section 4: Changelog ────────────────────────────────────────────────── */
.roadmap-changelog-section {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
}

.changelog {
    max-width: 800px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-subtle);
}
.changelog__entry {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 14px;
}
.changelog__date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 100px;
}
.changelog__badge {
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
}
.changelog__badge--core {
    color: var(--product-core);
    background: rgba(74, 158, 255, 0.1);
}
.changelog__badge--velvet {
    color: var(--product-velvet);
    background: var(--accent-soft);
}
.changelog__badge--fleet {
    color: var(--product-fleet);
    background: rgba(45, 212, 191, 0.1);
}
.changelog__text {
    color: var(--text-secondary);
    flex: 1;
    min-width: 0;
}
.changelog__footer {
    text-align: center;
    margin-top: var(--space-xl);
}

/* CTA overrides */
.page-roadmap .final-cta__sub {
    color: var(--text-secondary);
    font-size: 18px;
    margin-top: var(--space-md);
}


/* ── Responsive (Roadmap) ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .roadmap-status {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

@media (max-width: 639px) {
    .roadmap-header {
        padding-top: 120px;
    }
    .timeline {
        padding-left: 36px;
    }
    .timeline::before {
        left: 11px;
    }
    .timeline__marker {
        left: -36px;
        width: 24px;
        height: 24px;
    }
    .timeline__item--completed .timeline__marker svg {
        width: 12px;
        height: 12px;
    }
    .timeline__pulse {
        width: 24px;
        height: 24px;
    }
    .timeline__title {
        font-size: 19px;
    }
    .changelog__entry {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    .changelog__date {
        min-width: auto;
    }
}