.product-tour {
    min-height: 60vh;
    color: var(--brand-text);
    background: var(--brand-surface);
}

.product-tour [hidden] {
    display: none !important;
}

.product-tour__chapter[aria-current="true"] {
    background: var(--component-selected-bg);
    box-shadow: inset 3px 0 var(--brand-logo-blue);
}

.product-tour .container {
    width: min(100%, 1200px);
}

.product-tour__intro {
    padding: clamp(3.25rem, 8vw, 6.75rem) 0 clamp(2.5rem, 5vw, 4.25rem);
    background:
        linear-gradient(112deg, color-mix(in srgb, var(--brand-logo-blue) 8%, var(--brand-surface)) 0%, var(--brand-surface) 68%);
    border-bottom: 1px solid var(--brand-border);
}

.product-tour__intro-inner {
    max-width: 1200px;
}

.product-tour__eyebrow {
    margin: 0 0 var(--brand-space-4);
    color: var(--brand-logo-blue);
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.product-tour__title {
    max-width: 850px;
    margin: 0;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.product-tour__lede {
    max-width: 740px;
    margin: var(--brand-space-6) 0 0;
    line-height: 1.7;
}

.product-tour__experience {
    padding: clamp(2.25rem, 5vw, 4.75rem) 0 clamp(4rem, 8vw, 7rem);
}

.product-tour__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(260px, .85fr);
    gap: clamp(1.5rem, 4vw, 3.25rem);
    align-items: start;
}

.product-tour__main,
.product-tour__chapters,
.product-tour__transcript,
.product-tour__coming-soon {
    min-width: 0;
}

.product-tour__player-shell {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--brand-gray-900);
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-md);
}

.product-tour__player-shell video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--brand-gray-900);
}

.product-tour__playback-status,
.product-tour__media-error {
    min-height: 1.5em;
    margin: var(--brand-space-3) 0 0;
    color: var(--brand-text-muted);
}

.product-tour__media-error {
    padding: var(--brand-space-3) var(--brand-space-4);
    color: var(--brand-danger);
    background: color-mix(in srgb, var(--brand-danger) 6%, var(--brand-surface));
    border-left: 3px solid var(--brand-danger);
}

.product-tour__chapters {
    padding: clamp(1.1rem, 2.5vw, 1.75rem);
    background: var(--brand-surface-muted);
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-md);
}

.product-tour__section-heading .product-tour__eyebrow,
.product-tour__transcript-heading .product-tour__eyebrow {
    margin-bottom: var(--brand-space-2);
}

.product-tour__section-heading h2,
.product-tour__transcript-heading h2 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.product-tour__chapter-list,
.product-tour__coming-soon-list {
    padding: 0;
    margin: var(--brand-space-5) 0 0;
    list-style: none;
    counter-reset: tour-chapter;
}

.product-tour__chapter-list li,
.product-tour__coming-soon-list li {
    counter-increment: tour-chapter;
    border-top: 1px solid var(--brand-border);
}

.product-tour__chapter {
    display: flex;
    width: 100%;
    min-height: 3.75rem;
    padding: var(--brand-space-3) var(--brand-space-2);
    align-items: center;
    justify-content: space-between;
    gap: var(--brand-space-3);
    text-align: left;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.product-tour__chapter::before,
.product-tour__coming-soon-list li::before {
    content: counter(tour-chapter, decimal-leading-zero);
    flex: 0 0 2rem;
    color: var(--brand-logo-blue);
    font: 600 var(--brand-text-xs)/1 var(--brand-font-mono);
    letter-spacing: .04em;
}

.product-tour__chapter-title {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--brand-text);
    font-size: var(--brand-text-sm);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.product-tour__chapter-label {
    flex: 0 0 auto;
    color: var(--brand-text-muted);
    font-size: var(--brand-text-xs);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.product-tour__chapter:disabled {
    opacity: .62;
    cursor: not-allowed;
}

.product-tour__chapter:not(:disabled):hover {
    background: color-mix(in srgb, var(--brand-logo-blue) 7%, transparent);
}

.product-tour__chapter-note {
    margin: var(--brand-space-4) 0 0;
    line-height: 1.55;
}

.product-tour__actions {
    display: flex;
    align-items: flex-start;
    gap: var(--brand-space-3);
    flex-wrap: wrap;
    margin-top: var(--brand-space-5);
}

.product-tour__actions .w365-button {
    flex: 0 0 auto;
    min-height: 2.75rem;
}

.product-tour__gate-note {
    align-self: center;
    flex: 1 1 100%;
    max-width: 38rem;
    margin: 0;
    color: var(--brand-text-muted);
    line-height: 1.55;
}

.product-tour__transcript {
    margin-top: clamp(2.75rem, 6vw, 5rem);
    padding-top: var(--brand-space-6);
    border-top: 1px solid var(--brand-border);
}

.product-tour__transcript-copy {
    max-width: 76ch;
    margin: var(--brand-space-5) 0 0;
    color: var(--brand-text-muted);
    font: inherit;
    font-size: var(--brand-text-md);
    line-height: 1.75;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.product-tour__transcript-unavailable {
    margin: var(--brand-space-4) 0 0;
    color: var(--brand-text-muted);
}

.product-tour__coming-soon {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
    gap: clamp(1.75rem, 5vw, 4.5rem);
    align-items: start;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    background: var(--brand-surface-muted);
    border: 1px solid var(--brand-border);
    border-top: 4px solid var(--brand-logo-blue);
    border-radius: var(--brand-radius-md);
}

.product-tour__coming-soon-copy h2 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.product-tour__coming-soon-copy > p:last-child {
    max-width: 34rem;
    margin: var(--brand-space-4) 0 0;
    line-height: 1.65;
}

.product-tour__coming-soon-list {
    margin-top: 0;
    border-bottom: 1px solid var(--brand-border);
}

.product-tour__coming-soon-list li {
    display: flex;
    gap: var(--brand-space-3);
    align-items: baseline;
    min-height: 3.5rem;
    padding: var(--brand-space-4) var(--brand-space-2);
    color: var(--brand-text);
    font-size: var(--brand-text-sm);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.product-tour__coming-soon-list li::before {
    display: inline-block;
}

.product-tour__actions--coming-soon {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: var(--brand-space-5);
    border-top: 1px solid var(--brand-border);
}

@media (max-width: 800px) {
    .product-tour__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--brand-space-6);
    }

    .product-tour__chapters {
        order: 2;
    }

    .product-tour__coming-soon {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-tour__actions--coming-soon {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .product-tour .container {
        padding-inline: var(--brand-space-4);
    }

    .product-tour__title {
        font-size: clamp(2.25rem, 11vw, 3.25rem);
    }

    .product-tour__lede {
        font-size: var(--brand-text-md);
    }

    .product-tour__chapters {
        padding: var(--brand-space-4);
    }

    .product-tour__chapter {
        gap: var(--brand-space-2);
        padding-inline: 0;
    }

    .product-tour__chapter-label {
        font-size: var(--brand-text-2xs);
    }

    .product-tour__actions {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .product-tour__actions .w365-button {
        width: 100%;
    }

    .product-tour__gate-note {
        grid-row: 2;
    }

    .product-tour__coming-soon {
        padding: var(--brand-space-5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-tour,
    .product-tour * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
