/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--orange-400);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 150ms ease, transform 100ms ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--orange-500);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: transparent;
    color: var(--gray-900);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 3px;
    border: 1.5px solid var(--gray-300);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 150ms ease, color 150ms ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    border-color: var(--orange-400);
    color: var(--orange-400);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 150ms ease;
}

.btn-ghost:hover {
    color: var(--orange-400);
}

.btn-ghost .arrow {
    transition: transform 150ms ease;
    display: inline-block;
}

.btn-ghost:hover .arrow {
    transform: translateX(3px);
}

.btn-ghost-white {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 150ms ease;
}

.btn-ghost-white:hover {
    color: white;
}

.btn-ghost-white .arrow {
    transition: transform 150ms ease;
    display: inline-block;
}

.btn-ghost-white:hover .arrow {
    transform: translateX(3px);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-windows {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.badge-urgent {
    background: var(--orange-50);
    color: var(--orange-500);
    border: 1px solid #FFD4B3;
}

/* ============================================================
   HERO — half page, single column, no video
   ============================================================ */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 72px 0 40px;
}

.hero-copy {
    max-width: 720px;
    text-align: left;
}

.hero-headline {
    margin-bottom: 18px;
}

.hero-subheadline {
    max-width: 560px;
    margin-bottom: var(--space-4);
}

.hero-sub {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
}

.cta-pair {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: calc(var(--space-3) + 8px);
}

.trust-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.trust-badge {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 3px;
}

.trust-badge-windows {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.trust-sep {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1;
}

.trust-text {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.trust-text strong {
    color: var(--gray-700);
    font-weight: 600;
}

/* ============================================================
   VIDEO SECTION — 1:3 layout with timestamp sidebar
   ============================================================ */
#video-section {
    padding: var(--space-8) 0 var(--space-8);
}

.video-section-header {
    margin-bottom: var(--space-6);
}

.video-section-layout {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: var(--space-4);
    align-items: start;
}

.video-main {
    min-width: 0;
    width: 100%;
}

/* Timestamp sidebar — fixed height matching video, scrolls independently */
.video-timestamp-sidebar {
    position: relative;
    /* makes offsetTop of children relative to this element */
    height: 0;
    /* set by JS to match rendered video height */
    min-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
    padding-right: 4px;
    order: 2;
}

.video-timestamp-sidebar::-webkit-scrollbar {
    width: 3px;
}

.video-timestamp-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.video-timestamp-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.ts-sidebar-header {
    padding: 0 0 12px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--gray-300);
}

.ts-sidebar-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 3px;
}

.ts-sidebar-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.ts-sidebar-hint svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Individual timestamp entry */
.ts-entry {
    position: relative;
    background: transparent;
    border-left: 2px solid var(--gray-300);
    padding: 10px 10px 10px 14px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    margin-bottom: 2px;
    transition: background 120ms ease, border-color 120ms ease;
    overflow: hidden;
}

.ts-entry:hover {
    background: var(--gray-50);
    border-left-color: var(--orange-300);
}

.ts-entry.active {
    background: #fff;
    border-left-color: var(--orange-400);
    border-left-width: 3px;
    padding-left: 13px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.ts-entry.active .ts-time {
    color: var(--orange-500);
}

.ts-entry.active .ts-label {
    color: var(--gray-900);
    font-weight: 600;
}

/* Progress bar inside active desktop entry */
.ts-entry-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--orange-400);
    width: 0%;
    transition: width 800ms linear;
    opacity: 0;
}

.ts-entry.active .ts-entry-progress {
    opacity: 1;
}

.ts-time {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--gray-400);
    margin-bottom: 3px;
    transition: color 120ms ease;
    display: block;
    letter-spacing: 0.04em;
}

.ts-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    line-height: 1.35;
    transition: color 120ms ease;
}

/* Mobile timestamps — horizontal scroll row */
.ts-mobile-row {
    display: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    gap: 8px;
    padding: var(--space-2) 0;
    margin-top: var(--space-3);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.ts-mobile-row::-webkit-scrollbar {
    display: none;
}

.ts-mobile-entry {
    position: relative;
    min-width: 140px;
    flex-shrink: 0;
    padding: 9px 12px 11px;
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
    overflow: hidden;
}

.ts-mobile-entry:hover {
    background: #fff;
    border-color: var(--orange-300);
}

.ts-mobile-entry.active {
    background: #fff;
    border-color: var(--orange-400);
    border-bottom-width: 2px;
    box-shadow: 0 1px 6px rgba(255, 122, 51, 0.12);
}

.ts-mobile-entry.active .ts-time {
    color: var(--orange-500);
}

.ts-mobile-entry.active .ts-label {
    color: var(--gray-900);
    font-weight: 600;
}

/* Progress bar inside active mobile entry */
.ts-mobile-entry-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--orange-400);
    width: 0%;
    transition: width 800ms linear;
    opacity: 0;
}

.ts-mobile-entry.active .ts-mobile-entry-progress {
    opacity: 1;
}

.ts-mobile-entry .ts-label {
    font-size: 0.8125rem;
}

/* ============================================================
   VIDEO CONTAINER
   ============================================================ */
.video-wrapper {
    background: transparent;
    border-radius: 4px;
    padding: 4px;
}

.video-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    overflow: hidden;
    background: #111;
}

.video-inner video,
.video-inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    pointer-events: none;
}

.video-shell-controls iframe {
    pointer-events: auto;
}

.video-shell {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    outline: none;
}

.video-shell:focus-visible {
    outline: 2px solid var(--orange-400);
    outline-offset: 3px;
}

.video-player-host,
.video-poster {
    position: absolute;
    inset: 0;
}

.video-player-host {
    z-index: 0;
    background: #000;
}

.video-poster {
    z-index: 1;
    overflow: hidden;
    background: #000;
    transition: opacity 80ms linear;
}

.video-poster.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
}

.video-first-run-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Light, luminous frosted glass — shows the thumbnail through */
    background: rgba(12, 12, 14, 0.28);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1),
                visibility 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.video-first-run-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: pointer;
}

.video-first-run-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Subtle pill play button — glassy, not loud */
.video-first-run-play {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
    transition: background 200ms ease,
                border-color 200ms ease,
                transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 200ms ease;
}

.video-first-run-overlay.is-visible:hover .video-first-run-play {
    background: rgba(255, 122, 51, 0.85);
    border-color: rgba(255, 122, 51, 0.6);
    transform: scale(1.06);
    box-shadow: 0 4px 24px rgba(255, 122, 51, 0.30);
}

.video-first-run-triangle {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid rgba(255, 255, 255, 0.92);
    margin-left: 2px;
}

.video-first-run-label {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background: #111;
}

.video-placeholder-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
}

.yt-fallback-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.12);
    transition: background 150ms ease;
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.22);
}

.video-play-icon {
    width: 72px;
    height: 72px;
    background: var(--orange-400);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 200ms ease, background 150ms ease;
}

.video-play-btn:hover .video-play-icon {
    transform: scale(1.1);
    background: var(--orange-500);
}

.video-play-triangle {
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid white;
    margin-left: 3px;
}

.video-caption-bar {
    padding: 10px 12px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-caption-dot {
    width: 6px;
    height: 6px;
    background: var(--orange-400);
    border-radius: 50%;
    flex-shrink: 0;
    animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 122, 51, 0.4);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(255, 122, 51, 0);
    }
}

.video-caption-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============================================================
   ENTERPRISE CHALLENGE LINE
   ============================================================ */
.challenge-line {
    border-top: 1px solid var(--gray-300);
    text-align: center;
    font-style: normal;
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--gray-700);
    max-width: 640px;
    margin: 0 auto;
    padding: 48px var(--space-4);
}