/* One continuous dark canvas, one raised surface. Light mode is intentionally untouched. */
html.dark .has-video-hero {
    --home-dark-canvas:#090d16;
    --home-dark-surface:#111726;
    --home-dark-border:#283447;
    --ta-bg:var(--home-dark-canvas);
    --ta-card-bg:var(--home-dark-surface);
    background:var(--home-dark-canvas);
}
html.dark .has-video-hero #main > section:not(#top),
html.dark .has-video-hero .site-footer {
    background:var(--home-dark-canvas);
    color:#edf4fa;
}
html.dark .has-video-hero .op-team::before {content:none}
html.dark .has-video-hero :is(.mh-activity-card,.mh-why-card,.mh-ai-demo-card,.op-inbox-demo,.op-thread,.op-team-demo,.teaser-panel,.home-business-hub,.home-business-nodes>div,.store-button,.faq-list details),
html.dark .has-video-hero #main > section#download {
    background:var(--home-dark-surface);
    border-color:var(--home-dark-border);
}
html.dark .has-video-hero :is(.mh-ai-heading h2,.mh-ai-demo-card h3,.mh-market-copy h2) {color:#edf4fa}
html.dark .has-video-hero :is(.mh-ai-heading>p,.mh-ai-demo-card p,.mh-market-copy>p,.mh-ai-demo-note,.mh-ai-result-heading small) {color:#a9b8ca}
html.dark .has-video-hero :is(.mh-ai-pill,.mh-ai-result-heading>span,.mh-ai-examples button) {
    background:var(--home-dark-surface);
    border-color:var(--home-dark-border);
    color:#9bdded;
}
html.dark .has-video-hero .mh-ai-examples button[aria-pressed=true] {border-color:#32b4cc;color:#e7faff}
html.dark .has-video-hero .mh-ai-search {
    background:var(--home-dark-surface);
    border-color:#345266;
    box-shadow:0 10px 28px #0003;
}
html.dark .has-video-hero .mh-ai-search:focus-within {border-color:#32b4cc;box-shadow:0 0 0 3px #32b4cc20}
html.dark .has-video-hero .mh-ai-search input {color:#edf4fa}
html.dark .has-video-hero .mh-ai-mascot {mix-blend-mode:normal}
html.dark .has-video-hero :is(.mh-ai-download,.mh-ai-card-tag,.mh-market-eyebrow) {color:#70d2e5}
html.dark .has-video-hero .home-business-actions > a:not(.home-business-start) {color:#9bdded}
html.dark .has-video-hero .mh-ai-demo-card {box-shadow:0 12px 28px #0002}

/* Keep the approved marketplace artwork, fading its pale canvas into the page. */
html.dark .has-video-hero .mh-market::after {
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:linear-gradient(90deg,#090d1640,#090d16c7 48%,#090d16 70%);
}
html.dark .has-video-hero .mh-market-secondary {background:var(--home-dark-surface);color:#b5e8f2;border-color:#345266}

/* The conversation illustration follows the same palette instead of a white inset. */
html.dark .has-video-hero :is(.op-window-header,.op-thread-head,.op-channel-tabs,.op-bubble) {
    background:var(--home-dark-surface);
    border-color:var(--home-dark-border);
}
html.dark .has-video-hero .op-inbox-demo :is(strong,p) {color:#e5edf6}
html.dark .has-video-hero .op-inbox-demo small {color:#a4b5c8}
html.dark .has-video-hero .op-channel-tabs button {background:transparent;color:#a4b5c8;border-color:var(--home-dark-border)}
html.dark .has-video-hero .op-channel-tabs button[aria-pressed=true] {background:var(--home-dark-canvas);color:#80d3e6}
html.dark .has-video-hero .op-inbox-demo :is(.op-customer-avatar,.op-thread-mode) {background:var(--home-dark-canvas);color:#9cdae8}
@media(max-width:760px) {
    html.dark .has-video-hero .mh-market::after {content:none}
    html.dark .has-video-hero .mh-market-banner {
        filter:brightness(.65);
        mask-image:linear-gradient(to bottom,transparent,#000 15% 75%,transparent);
    }
}
