/* =========================================================================
   AIO 2026 — milestone path (2026 theme, 21st.dev-inspired timeline)
   ========================================================================= */

.aio-journey-page {
    --aio-brand: #667eea;
    --aio-teal: #ff7c17;
    --aio-amber: #f59e0b;
    --aio-card: #ffffff;
    --aio-muted: #5c6478;
    --aio-line: rgba(102, 126, 234, 0.22);
    --aio-marker-size: 2.75rem;
    --aio-timeline-pad-x: 0.75rem;
}

/* ----- Path overview strip ----- */
.aio-journey-page main .section.aio-path-overview {
    padding-top: 1.25rem !important;
    padding-bottom: 2.75rem !important;
}

.aio-journey-page main .section.aio-timeline-section {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.aio-journey-page main .section.aio-journey-cta {
    padding-top: 0.5rem;
    padding-bottom: 3.5rem;
}

.aio-path-overview__inner {
    text-align: center;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

.aio-path-overview__inner .sub-heading {
    margin-bottom: 0.9rem;
}

.aio-path-overview__inner .title-heading.aio-path-overview__heading {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1.1rem;
    font-size: clamp(1rem, 1.65vw, 1.85rem);
    line-height: 1.25;
    padding-block: 0.14em;
    overflow: visible;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.aio-path-overview__lede {
    margin: 0 auto 2rem;
    max-width: 62ch;
    padding: 0 0.5rem;
    color: var(--aio-muted);
    line-height: 1.65;
}

.aio-path-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.15rem;
    padding: 1.15rem 1.5rem;
    margin: 0 auto;
    max-width: 900px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(255, 124, 23, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.14);
    box-shadow: 0 18px 48px -28px rgba(38, 11, 51, 0.35);
}

.aio-path-strip__node {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--aio-brand);
    white-space: nowrap;
}

.aio-path-strip__node i {
    font-size: 0.8rem;
    opacity: 0.85;
}

.aio-path-strip__node--highlight {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
    border-radius: 999px;
}

.aio-path-strip__line {
    width: 1.25rem;
    height: 2px;
    background: var(--site-gradient-accent);
    border-radius: 2px;
    opacity: 0.55;
}

/* ----- Timeline ----- */
.aio-timeline-section {
    position: relative;
    overflow: hidden;
}

.aio-timeline-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at 100% 20%, rgba(102, 126, 234, 0.07), transparent 60%),
        radial-gradient(600px 350px at 0% 80%, rgba(255, 124, 23, 0.06), transparent 55%);
    pointer-events: none;
}

.aio-timeline-wrap {
    position: relative;
    max-width: 740px;
    margin: 0 auto;
    padding: 0.5rem 0.75rem 0;
    --aio-timeline-pad-x: 0.75rem;
}

.aio-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.aio-timeline__track {
    position: absolute;
    left: calc(var(--aio-timeline-pad-x) + var(--aio-marker-size) / 2);
    width: 3px;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.aio-timeline__line-bg {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: var(--aio-line);
}

.aio-timeline__line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    border-radius: 3px;
    background: var(--site-gradient-accent-135);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.35);
}

.aio-timeline__orb {
    position: absolute;
    left: 50%;
    top: 0;
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    margin-top: -5.5px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--aio-brand);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2), 0 0 18px rgba(79, 70, 229, 0.55);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.aio-timeline-wrap.is-ready .aio-timeline__orb {
    opacity: 1;
}

.aio-milestone {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1.35rem;
    padding-bottom: 2.35rem;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.aio-milestone.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.aio-milestone:last-child {
    padding-bottom: 0;
}

.aio-milestone__marker {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: var(--aio-marker-size);
    height: var(--aio-marker-size);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--aio-card);
    border: 2px solid var(--aio-brand);
    box-shadow: 0 8px 24px -8px rgba(79, 70, 229, 0.45);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--aio-brand);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aio-milestone.is-line-active .aio-milestone__marker {
    transform: scale(1.08);
    border-width: 3px;
}

.aio-milestone.is-line-active .aio-milestone__card {
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 22px 48px -22px rgba(79, 70, 229, 0.38);
}

.aio-milestone.is-visible .aio-milestone__marker {
    animation: aio-marker-pulse 2.5s ease-in-out infinite;
}

.aio-milestone.is-line-active.is-visible .aio-milestone__marker {
    animation: aio-marker-active 1.8s ease-in-out infinite;
}

.aio-milestone--select .aio-milestone__marker {
    border-color: var(--aio-amber);
    color: #b45309;
    box-shadow: 0 8px 24px -8px rgba(245, 158, 11, 0.4);
}

.aio-milestone--conference .aio-milestone__marker {
    border-color: var(--aio-teal);
    color: #0f766e;
    box-shadow: 0 8px 24px -8px rgba(20, 184, 166, 0.4);
}

.aio-milestone--invite .aio-milestone__marker {
    border-color: #667eea;
    color: #6d28d9;
}

@keyframes aio-marker-pulse {
    0%, 100% { box-shadow: 0 8px 24px -8px rgba(79, 70, 229, 0.45); }
    50% { box-shadow: 0 8px 28px -4px rgba(79, 70, 229, 0.65); }
}

@keyframes aio-marker-active {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.35), 0 8px 24px -8px rgba(79, 70, 229, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.12), 0 10px 30px -6px rgba(79, 70, 229, 0.65); }
}

.aio-milestone__card {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding: 1.35rem 1.5rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(79, 70, 229, 0.12);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 40px -24px rgba(11, 11, 18, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aio-milestone__card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 70, 229, 0.28);
    box-shadow: 0 22px 48px -22px rgba(79, 70, 229, 0.32);
}

.aio-milestone--select .aio-milestone__card {
    border-color: rgba(245, 158, 11, 0.2);
    background: linear-gradient(135deg, #fff 0%, rgba(255, 251, 235, 0.9) 100%);
}

.aio-milestone--conference .aio-milestone__card {
    border-color: rgba(20, 184, 166, 0.22);
    background: linear-gradient(135deg, #fff 0%, rgba(240, 253, 250, 0.92) 100%);
}

.aio-milestone--invite .aio-milestone__card {
    border-color: rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, #fff 0%, rgba(245, 243, 255, 0.92) 100%);
}

.aio-milestone__tag {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--aio-brand);
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.14);
}

.aio-milestone--select .aio-milestone__tag {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.22);
}

.aio-milestone--conference .aio-milestone__tag {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.22);
}

.aio-milestone--invite .aio-milestone__tag {
    color: #6d28d9;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.aio-milestone__title {
    margin: 0 0 0.5rem;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aio-milestone__title i {
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--aio-brand);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(255, 124, 23, 0.14));
    flex-shrink: 0;
}

.aio-milestone__desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--aio-muted);
}

.aio-milestone__desc strong {
    color: #0f172a;
    font-weight: 700;
}

.aio-milestone__meta {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.aio-milestone__meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--aio-brand);
    background: rgba(79, 70, 229, 0.07);
    border: 1px solid rgba(79, 70, 229, 0.12);
}

.aio-centers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.aio-centers__pill {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f766e;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.22);
}

/* ----- Milestone actions ----- */
.aio-milestone__soon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.aio-milestone__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.aio-milestone__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.aio-milestone__btn--primary {
    color: #fff;
    background: var(--site-gradient-accent-135);
    border: none;
    box-shadow: 0 8px 20px -10px rgba(38, 11, 51, 0.45);
}

.aio-milestone__btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -10px rgba(79, 70, 229, 0.75);
}

.aio-milestone__btn--ghost {
    color: var(--aio-brand);
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.22);
}

.aio-milestone__btn--ghost:hover {
    color: #4338ca;
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

/* ----- Results coming soon page ----- */
.aio-results-soon {
    padding-top: 1rem;
    padding-bottom: 3.5rem;
}

.aio-results-soon__card {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(79, 70, 229, 0.14);
    box-shadow: 0 24px 56px -28px rgba(79, 70, 229, 0.35);
}

.aio-results-soon__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.aio-results-soon__card h2.title-heading {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.aio-results-soon__card > p {
    margin: 0 auto 1.25rem;
    max-width: 48ch;
    color: var(--aio-muted);
    line-height: 1.65;
}

.aio-results-soon__list {
    list-style: none;
    margin: 0 auto 1.5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.aio-results-soon__list li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--aio-brand);
    background: rgba(79, 70, 229, 0.07);
    border: 1px solid rgba(79, 70, 229, 0.12);
}

.aio-results-soon__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

/* ----- CTA ----- */
.aio-journey-cta__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3.5vw, 2.35rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 22px;
    background: var(--site-gradient-card);
    box-shadow: 0 28px 60px -28px rgba(38, 11, 51, 0.45);
}

.aio-journey-cta__copy h2.title-heading {
    margin: 0 0 0.35rem;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

.aio-journey-cta__copy p,
.aio-journey-cta__copy .aio-journey-cta__lede {
    margin: 0;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 0.95rem;
    opacity: 1;
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
    .aio-path-overview__inner .title-heading.aio-path-overview__heading {
        white-space: normal;
        font-size: clamp(1.2rem, 3.8vw, 1.65rem);
    }
}

@media (max-width: 767px) {
    .aio-journey-page {
        --aio-marker-size: 2.35rem;
    }

    .aio-journey-page main .section:not(.section-banner) {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        box-sizing: border-box;
    }

    .aio-path-overview__inner {
        padding-left: 0;
        padding-right: 0;
    }

    .aio-path-strip {
        border-radius: 20px;
        padding: 0.85rem;
    }

    .aio-path-strip__line {
        display: none;
    }

    .aio-path-strip__node {
        font-size: 0.65rem;
        padding: 0.35rem 0.55rem;
    }

    .aio-milestone__marker {
        font-size: 0.65rem;
    }

    .aio-milestone__card {
        padding: 1rem;
    }

    .aio-journey-cta__card {
        flex-direction: column;
        text-align: center;
    }

    .aio-journey-cta__card .btn-accent {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aio-milestone {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .aio-timeline__orb {
        opacity: 1;
        transition: none;
    }

    .aio-milestone.is-visible .aio-milestone__marker,
    .aio-milestone.is-line-active.is-visible .aio-milestone__marker {
        animation: none;
    }

    .aio-milestone__card:hover,
    .aio-milestone__btn:hover {
        transform: none;
    }
}
