.tour-shell {
    overflow: hidden;
    border: 1px solid rgba(142, 233, 222, .28);
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 30%, rgba(45, 183, 163, .13), transparent 32%),
        linear-gradient(180deg, rgba(19, 40, 74, .9), rgba(8, 17, 36, .9));
    box-shadow: 0 26px 65px rgba(2, 8, 22, .28);
}

.tour-tabs {
    display: flex;
    gap: .55rem;
    padding: .85rem;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 17, 36, .34);
}

.tour-tab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 17, 36, .4);
    color: var(--muted);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.tour-tab span {
    color: #8ee9de;
    font-size: .72rem;
}

.tour-tab.is-active {
    border-color: rgba(142, 233, 222, .4);
    background: rgba(25, 163, 154, .16);
    color: var(--text);
}

.tour-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
    gap: clamp(1.2rem, 5vw, 4rem);
    align-items: center;
    min-height: 610px;
    padding: 1.3rem clamp(1rem, 5vw, 3rem);
    isolation: isolate;
}

.tour-shell--landing .tour-stage {
    min-height: 640px;
}

.tour-phone {
    position: relative;
    z-index: 2;
    width: min(100%, 276px);
    margin: 0 auto;
    padding: 7px;
    border: 1px solid rgba(142, 233, 222, .25);
    border-radius: 31px;
    background: #050a13;
    box-shadow: 0 28px 60px rgba(0, 0, 0, .42);
}

.tour-phone img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 230 / 499;
    border-radius: 24px;
    object-fit: cover;
}

.tour-hotspots {
    position: absolute;
    inset: 7px;
    z-index: 4;
}

.tour-hotspot {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 2px solid #d7fffa;
    border-radius: 999px;
    background: rgba(8, 17, 36, .92);
    color: #d7fffa;
    box-shadow: 0 0 0 5px rgba(45, 183, 163, .17), 0 8px 22px rgba(0, 0, 0, .35);
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.tour-hotspot.is-active {
    transform: translate(-50%, -50%) scale(1.12);
    background: #19a39a;
    box-shadow: 0 0 0 7px rgba(45, 183, 163, .22), 0 8px 24px rgba(0, 0, 0, .42);
    animation: tour-pulse 2.2s ease-in-out infinite;
}

.tour-hotspot[hidden] {
    display: none;
}

@keyframes tour-pulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(45, 183, 163, .18), 0 8px 24px rgba(0, 0, 0, .42); }
    50% { box-shadow: 0 0 0 11px rgba(45, 183, 163, .05), 0 8px 24px rgba(0, 0, 0, .42); }
}

.tour-copy {
    position: relative;
    z-index: 3;
    max-width: 520px;
    padding: clamp(1rem, 3vw, 1.4rem);
    border: 1px solid rgba(142, 233, 222, .26);
    border-radius: 20px;
    background: rgba(8, 17, 36, .88);
    box-shadow: 0 20px 48px rgba(2, 8, 22, .3);
}

.tour-kicker {
    display: block;
    margin-bottom: .55rem;
    color: #8ee9de;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tour-copy h3 {
    margin-bottom: .55rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.tour-point-buttons {
    display: flex;
    gap: .45rem;
    margin-top: 1rem;
}

.tour-point-button {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(19, 40, 74, .68);
    color: var(--muted);
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}

.tour-point-button.is-active {
    border-color: rgba(142, 233, 222, .45);
    background: rgba(25, 163, 154, .24);
    color: var(--text);
}

.tour-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid var(--line);
}

.tour-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(19, 40, 74, .68);
    color: var(--text);
    font: inherit;
    font-size: 1.1rem;
    cursor: pointer;
}

.tour-status {
    color: var(--muted);
    font-size: .84rem;
}

.tour-more-link {
    color: #8ee9de;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

.tour-more-link:hover {
    color: var(--text);
}

.tour-line-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.tour-line {
    stroke: rgba(142, 233, 222, .76);
    stroke-width: 1.5;
    stroke-dasharray: 5 5;
}

.tour-line-end {
    fill: #8ee9de;
}

@media (max-width: 940px) {
    .tour-stage {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        min-height: auto;
    }

    .tour-shell--landing .tour-stage {
        min-height: auto;
    }

    .tour-copy {
        width: min(100%, 560px);
        max-width: none;
        margin: 0 auto;
    }
}

@media (max-width: 620px) {
    .tour-tabs {
        overflow-x: auto;
        padding: .7rem;
    }

    .tour-tab {
        flex: 1 0 auto;
        justify-content: center;
    }

    .tour-stage {
        padding: 1rem;
    }

    .tour-phone {
        width: min(100%, 235px);
        border-radius: 27px;
    }

    .tour-phone img {
        border-radius: 21px;
    }

    .tour-shell--landing .tour-navigation {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tour-hotspot,
    .tour-tab {
        transition: none;
    }

    .tour-hotspot.is-active {
        animation: none;
    }
}

/* More screens, including routines, remain reachable on narrow displays. */
.tour-tabs { flex-wrap: wrap; }
.tour-navigation { flex-wrap: wrap; }
.tour-phone img { aspect-ratio: 430 / 932; object-fit: contain; }
@media (max-width: 620px) { .tour-tabs { flex-wrap: nowrap; overflow-x: auto; } .tour-tab { flex-shrink: 0; } }

.tour-shell--landing .tour-more-link { flex-basis: 100%; margin-top: .2rem; }
