/* Dark theme for landing pages (body.hb-dark).
   Enabled by common/menu-landing.html; a page can opt out with {% set light_page = true %}. App pages stay light. */
body.hb-dark {
    --hd-bg: #171B22;
    --hd-surface: #202631;
    --hd-text: #F0F2F5;
    --hd-muted: #A2ACB8;
    --hd-border: #333B47;
    --hd-coral: #FF8277;
    --hd-coral-text: #FF958A;
    --hd-coral-surface: #362623;
    --hd-cta-text: #35211E;
    --hd-positive: #8DD7B6;
    --hd-font: MuseoSansCyrl1, Inter, sans-serif;
    --hd-font-bold: MuseoSansCyrl2, MuseoSansCyrl1, Inter, sans-serif;
    background: var(--hd-bg) !important;
    color: var(--hd-text);
    color-scheme: dark;
}

/* Third-party iframes (Freshchat widget, video, Calendly) keep the normal scheme. If an iframe's scheme differs from
   the page's dark one, browsers paint it with an opaque white background, e.g. a white box around the chat button. */
body.hb-dark iframe {
    color-scheme: normal;
}

body.hb-dark header a:focus-visible, body.hb-dark header li:focus-visible, body.hb-dark footer a:focus-visible {
    outline: 2px solid var(--hd-coral-text);
    outline-offset: 3px;
}

/* Header CTA */
body.hb-dark header .home-test-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    min-height: 48px;
    height: auto !important;
    padding: 12px 24px !important;
    border: 0;
    border-radius: 8px;
    background: var(--hd-coral) !important;
    color: var(--hd-cta-text) !important;
    font: 600 16px/1.3 var(--hd-font);
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none;
    transition: background .15s ease;
}

body.hb-dark header .home-test-button:hover {
    background: var(--hd-coral-text) !important;
}

body.hb-dark header .home-test-button img {
    display: none !important;
}

body.hb-dark header .home-test-button i {
    margin-left: 8px;
    font-size: .85em;
}

/* Header */
body.hb-dark header, body.hb-dark header.header-landings-fixed, body.hb-dark header.header-landings-fixed-white {
    background: var(--hd-bg) !important;
    border-bottom: 1px solid var(--hd-border);
    box-shadow: none !important;
}

/* Header is 90px: 70px row + 10px top/bottom padding. The filler below the fixed header matches it (+1px border). */
body.hb-dark header .container-fluid {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

body.hb-dark header .header-row {
    height: 70px;
    min-height: 0;
}

body.hb-dark .menu-landing-top-filler {
    height: 91px !important;
    background: var(--hd-bg);
}

body.hb-dark header .header-nav > ul > li, body.hb-dark header .header-nav > ul > li > a,
body.hb-dark header .header-nav > ul > li i {
    color: var(--hd-muted) !important;
}

body.hb-dark header .header-nav > ul > li:hover, body.hb-dark header .header-nav > ul > li > a:hover,
body.hb-dark header .header-nav > ul > li.active > a {
    color: var(--hd-text) !important;
}

body.hb-dark header .hc-dropdown-lists {
    top: 32px;
    right: auto;
    left: 50%;
    width: 220px;
    padding: 6px;
    border: 1px solid var(--hd-border);
    border-radius: 10px;
    background: var(--hd-surface) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    transform: translateX(-50%);
}

/* Invisible bridge so the menu stays open while the pointer moves down to it. */
body.hb-dark header .hc-dropdown-lists::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

body.hb-dark header .hc-dropdown-lists-inner {
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent !important;
}

body.hb-dark header .hc-dropdown-lists-row {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    background: transparent !important;
    color: var(--hd-text) !important;
    font: 400 14px/1.4 var(--hd-font) !important;
    text-decoration: none;
}

body.hb-dark header .hc-dropdown-lists-row:hover, body.hb-dark header .hc-dropdown-lists-row:focus-visible,
body.hb-dark header .hc-dropdown-lists-row.active {
    background: var(--hd-coral-surface) !important;
    color: var(--hd-text) !important;
}

body.hb-dark header #nav-menu-dropdown {
    position: relative;
}

/* Header CTA with a small "Short call required" note centred under it (absolutely positioned, so the header height
   and the button's place in the row stay the same). Not on /pricing, whose CTA is "Book a coverage call". */
body.hb-dark header .header-login-not li:has(.home-header-note) {
    position: relative;
}

body.hb-dark header .home-test-button:has(+ .home-header-note) {
    min-height: 42px;
    padding: 9px 22px !important;
}

body.hb-dark header .home-header-note {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 4px;
    color: var(--hd-muted);
    font: 400 11px/1.2 var(--hd-font);
    white-space: nowrap;
    transform: translateX(-50%);
}

/* The homepage has no sticky mobile CTA bar, so its header CTA stays visible on mobile. */
body.hb-dark.page-home header .header-login-not li:has(.home-test-button) {
    display: block !important;
}

body.hb-dark #menuToggle span {
    background: var(--hd-text);
}

body.hb-dark .mobile-menu-container {
    background: var(--hd-bg) !important;
}

body.hb-dark .mobile-menu-container a.mml {
    color: var(--hd-text) !important;
    border-color: var(--hd-border) !important;
}

body.hb-dark .mobile-menu-container .btn_coral {
    background: var(--hd-coral) !important;
    color: var(--hd-cta-text) !important;
}

body.hb-dark .mobile-menu-container .btn_coral img {
    display: none;
}


/* Footer */
body.hb-dark footer, body.hb-dark footer .container-fluid, body.hb-dark footer .footer_logo_block {
    background: var(--hd-bg) !important;
    color: var(--hd-muted) !important;
}

body.hb-dark footer {
    border-top: 1px solid var(--hd-border);
}

body.hb-dark footer a, body.hb-dark footer p, body.hb-dark footer li, body.hb-dark footer span,
body.hb-dark footer .footer-disclaimer {
    color: var(--hd-muted) !important;
}

body.hb-dark footer h1, body.hb-dark footer h2, body.hb-dark footer h3, body.hb-dark footer h4,
body.hb-dark footer h5, body.hb-dark footer h6, body.hb-dark footer .footer-disclaimer strong {
    color: var(--hd-text) !important;
}

body.hb-dark footer a:hover {
    color: var(--hd-text) !important;
}

body.hb-dark footer .panel, body.hb-dark footer .panel-heading, body.hb-dark footer .panel-collapse,
body.hb-dark footer .panel-body {
    background: transparent !important;
    border-color: var(--hd-border) !important;
}

body.hb-dark footer .logo_footer {
    content: url(/static/images/logo_healthcare_dark.svg);
}

body.hb-dark footer .national-association-container img {
    padding: 6px;
    border-radius: 8px;
    background: #fff;
}


@media (max-width: 780px) {
    body.hb-dark header .home-header-note {
        display: none;
    }

    body.hb-dark header .header-logo img {
        width: 120px !important;
        height: auto !important;
    }

    body.hb-dark header .header-login-not li:has(.home-test-button) {
        margin-right: 16px;
    }

    body.hb-dark header .home-test-button, body.hb-dark header .home-test-button:has(+ .home-header-note) {
        height: auto !important;
        min-height: 36px !important;
        max-width: none !important;
        padding: 7px 12px !important;
        border-radius: 6px;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 420px) {
    body.hb-dark header .header-logo img {
        width: 104px !important;
    }

    body.hb-dark header .header-login-not li:has(.home-test-button) {
        margin-right: 12px;
    }

    body.hb-dark header .home-test-button, body.hb-dark header .home-test-button:has(+ .home-header-note) {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.hb-dark header * {
        transition: none !important;
    }
}

/* ---------- Generic landing content (every dark page except the homepage, which has homepage-dark.css) ---------- */
body.hb-dark:not(.page-home) {
    font-family: var(--hd-font);
}

/* Page wrappers and full-width sections sit on the page background. */
body.hb-dark:not(.page-home) :is(
    .main,
    main,
    .margin_for_header,
    section,
    .container-fluid,
    .container,
    .row,
    [class*="section"],
    [class*="wrapper"],
    [class*="container"],
    [class*="block"]
):not(header *):not(footer *):not(.btn_coral):not(.cookie-block) {
    background-color: transparent !important;
}

/* Sections no longer differ by background on dark, so separate them with a thin divider, like the homepage.
   Every section after the first (the hero) gets it; the mobile sticky CTA and FAQ follow-up buttons are excluded. */
body.hb-dark:not(.page-home) :is(section, .main) ~ section:not(.mobile-bt-free-treal-section):not(.cta-button-container):not(header *):not(footer *) {
    border-top: 1px solid var(--hd-border);
}

/* Light hero gradients from the old light theme. */
body.hb-dark:not(.page-home) :is(section.greeting, section.problem-solution, .hb-pricing-hero, .landing-hero, [class*="hero"]):not(header *):not(footer *) {
    background-image: none !important;
}

/* Text */
body.hb-dark:not(.page-home) :is(h1, h2, h3, h4, h5, h6):not(header *):not(footer *):not(.btn_coral *) {
    color: var(--hd-text) !important;
}

body.hb-dark:not(.page-home) :is(p, li, td, dd, dt, label, blockquote, figcaption, small, legend):not(header *):not(footer *):not(.btn_coral *):not(.btn_coral) {
    color: var(--hd-muted) !important;
}

body.hb-dark:not(.page-home) :is(th, strong, b):not(header *):not(footer *):not(.btn_coral *) {
    color: var(--hd-text) !important;
}

body.hb-dark:not(.page-home) :is(hr) {
    border-color: var(--hd-border) !important;
    background-color: var(--hd-border) !important;
}

/* Light borders become dark dividers. */
body.hb-dark:not(.page-home) :is(div, section, article, aside, li, ul, table, thead, tbody, tr, td, th, details, summary):not(header *):not(footer *) {
    border-color: var(--hd-border);
}

/* Cards, panels and accordions */
body.hb-dark:not(.page-home) :is(.shadow, [class*="card"], .panel-faq, .info-block-wrapper, article, details, table):not(header *):not(footer *):not(.btn_coral) {
    background-color: var(--hd-surface) !important;
    box-shadow: none !important;
}

body.hb-dark:not(.page-home) .panel-faq {
    border: 1px solid var(--hd-border) !important;
    border-radius: 10px;
}

body.hb-dark:not(.page-home) .panel-faq .panel-heading-faq a {
    color: var(--hd-text) !important;
}

body.hb-dark:not(.page-home) .panel-faq .panel-heading-faq i {
    color: var(--hd-muted) !important;
}

/* Links in body copy */
body.hb-dark:not(.page-home) :is(p, li, td, dd, label, small) a:not(.btn_coral):not(header *):not(footer *) {
    color: var(--hd-coral-text) !important;
}

/* Form fields */
body.hb-dark:not(.page-home) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea, .nice-select):not(header *):not(footer *) {
    background-color: var(--hd-bg) !important;
    border-color: var(--hd-border) !important;
    color: var(--hd-text) !important;
}

body.hb-dark:not(.page-home) :is(input, textarea)::placeholder {
    color: #8792A0 !important;
}

body.hb-dark:not(.page-home) :is(input, select, textarea):focus {
    border-color: var(--hd-coral) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 130, 119, .18) !important;
}

body.hb-dark:not(.page-home) .nice-select .list {
    background-color: var(--hd-surface) !important;
    border: 1px solid var(--hd-border);
}

body.hb-dark:not(.page-home) .nice-select .option {
    color: var(--hd-text) !important;
}

body.hb-dark:not(.page-home) .nice-select .option:hover, body.hb-dark:not(.page-home) .nice-select .option.focus,
body.hb-dark:not(.page-home) .nice-select .option.selected.focus {
    background-color: var(--hd-coral-surface) !important;
}

/* Coral buttons: dark label on coral, like the header and homepage CTAs (white on coral is ~2.4:1). */
body.hb-dark:not(.page-home) .btn_coral:not(header *) {
    color: var(--hd-cta-text) !important;
    text-shadow: none;
}

body.hb-dark:not(.page-home) .btn_coral:not(header *) img {
    filter: brightness(0) opacity(.75);
}

/* Mobile sticky "Test 25 contacts" bar: dark text on coral, like the header CTA. */
body.hb-dark .mobile-bt-free-treal-section .mobile-bt-free-treal {
    padding: 16px 12px;
    border-radius: 10px;
    background: var(--hd-coral);
    color: var(--hd-cta-text) !important;
    font-family: var(--hd-font);
    text-shadow: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

body.hb-dark .mobile-bt-free-treal-section .mobile-bt-free-treal img {
    display: none;
}

body.hb-dark .mobile-bt-free-treal-section .mobile-bt-free-treal img.hand-o-up {
    filter: invert(1);
}

/* ========== Legal pages: /terms, /policy, /policy-ccpa, /texas-privacy-rights, /colorado-mobile-phones ========== */
/* ---------- Legal pages: /terms, /policy, /policy-ccpa, /texas-privacy-rights, /colorado-mobile-phones ----------
   Long-text pages built on terms.css (.big-text-page-container, .point, .point-second-element). Loads after landing-dark.css. */

/* Long body copy: a touch lighter than --hd-muted so paragraphs stay comfortable to read. */
body.hb-dark:is(.page-terms, .page-policy, .page-policy-ccpa, .page-texas-privacy-rights, .page-colorado-mobile-phones) .big-text-page-container :is(p, li, td, .point h3, .point-second-element div) {
    color: #C3CAD3 !important;
}

/* Underlined section titles and inline labels (terms.css hard-codes #000 on these spans). */
body.hb-dark:is(.page-terms, .page-policy, .page-policy-ccpa, .page-texas-privacy-rights, .page-colorado-mobile-phones) .big-text-page-container :is(.span-un-line, .point-second-element-span, span.bold, .up-to-date) {
    color: var(--hd-text) !important;
}

/* Coral accents (section numbers, highlighted titles) use the readable coral tone. */
body.hb-dark:is(.page-terms, .page-policy, .page-policy-ccpa, .page-texas-privacy-rights, .page-colorado-mobile-phones) .big-text-page-container .coral-color,
body.hb-dark:is(.page-terms, .page-policy, .page-policy-ccpa, .page-texas-privacy-rights, .page-colorado-mobile-phones) .big-text-page-container .coral-color :is(b, strong) {
    color: var(--hd-coral-text) !important;
}

/* Links: inline style="color:#1010ee" in the templates is unreadable on dark. */
body.hb-dark:is(.page-terms, .page-policy, .page-policy-ccpa, .page-texas-privacy-rights, .page-colorado-mobile-phones) .big-text-page-container a {
    color: var(--hd-coral-text) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

body.hb-dark:is(.page-terms, .page-policy, .page-policy-ccpa, .page-texas-privacy-rights, .page-colorado-mobile-phones) .big-text-page-container a:hover {
    color: var(--hd-text) !important;
}

/* Bullets */
body.hb-dark:is(.page-terms, .page-policy, .page-policy-ccpa, .page-texas-privacy-rights, .page-colorado-mobile-phones) .big-text-page-container li::marker {
    color: var(--hd-coral);
}

/* CCPA data table: dark frame, surface header row, dark cell borders. */
body.hb-dark:is(.page-terms, .page-policy, .page-policy-ccpa, .page-texas-privacy-rights, .page-colorado-mobile-phones) .table-wrapper {
    border-color: var(--hd-border) !important;
    scrollbar-color: var(--hd-border) transparent;
}

body.hb-dark:is(.page-terms, .page-policy, .page-policy-ccpa, .page-texas-privacy-rights, .page-colorado-mobile-phones) .table-wrapper table {
    background-color: transparent !important;
}

body.hb-dark:is(.page-terms, .page-policy, .page-policy-ccpa, .page-texas-privacy-rights, .page-colorado-mobile-phones) .table-wrapper :is(td, th) {
    border-color: var(--hd-border) !important;
}

body.hb-dark:is(.page-terms, .page-policy, .page-policy-ccpa, .page-texas-privacy-rights, .page-colorado-mobile-phones) .table-wrapper th {
    background-color: var(--hd-surface) !important;
    color: var(--hd-text) !important;
}

/* Opt-out statistics image (white PNG table at the bottom of /policy and /policy-ccpa): inverted to a dark version. */
body.hb-dark:is(.page-policy, .page-policy-ccpa) .big-text-page-container img[src*="heartbeat-ccpa"] {
    filter: invert(.88) hue-rotate(180deg);
    border-radius: 6px;
}


/* ========== /our-data and /products ========== */
/* ---------- /products (body.page-products) ---------- */

/* Product cards: one dark surface with a border; the old coral image panel becomes a warm dark accent panel.
   Selectors go through .products-container to beat the generic [class*="card"] rule. */
body.hb-dark.page-products .products-container .product-card {
    border: 1px solid var(--hd-border);
    background: var(--hd-surface) !important;
    overflow: hidden;
    transition: border-color .2s ease;
}

body.hb-dark.page-products .products-container .product-card:hover {
    border-color: rgba(255, 130, 119, .6);
    box-shadow: none !important;
}

body.hb-dark.page-products .products-container .product-card .product-card-pink-background {
    background-color: var(--hd-coral-surface) !important;
    border-bottom: 1px solid rgba(255, 130, 119, .35);
}

body.hb-dark.page-products .products-container .product-card .product-card-content {
    background-color: var(--hd-surface) !important;
    box-shadow: none !important;
}

/* Card text */
body.hb-dark.page-products .product-card-title {
    color: var(--hd-text) !important;
}

body.hb-dark.page-products .product-card-description {
    color: var(--hd-muted) !important;
}

/* Coral span in the heading */
body.hb-dark.page-products .products-section h1 span {
    color: var(--hd-coral-text) !important;
}

/* ---------- /our-data (body.page-our-data) ---------- */

/* Problem / Solution cards: dark surface, restore the coral / green top accents and labels. */
body.hb-dark.page-our-data .problem-solution .problem-solution-block {
    background-color: var(--hd-surface) !important;
    border: 1px solid var(--hd-border);
    border-radius: 10px;
    box-shadow: none !important;
}

body.hb-dark.page-our-data .problem-solution .block-problem.border-top-color {
    border-top: 6px solid var(--hd-coral);
}

body.hb-dark.page-our-data .problem-solution .block-solution.border-top-color {
    border-top: 6px solid var(--hd-positive);
}

body.hb-dark.page-our-data .problem-solution .block-problem .problem-solution-block-top h6 {
    color: var(--hd-coral-text) !important;
}

body.hb-dark.page-our-data .problem-solution .block-solution .problem-solution-block-top h6 {
    color: var(--hd-positive) !important;
}

/* White arrow circle between the cards */
body.hb-dark.page-our-data .problem-solution .problem-solution-middle-arrow {
    background-color: var(--hd-surface) !important;
    border: 1px solid var(--hd-border);
    box-shadow: none !important;
}

/* Hero copy under the headings */
body.hb-dark.page-our-data .one-searchable-database-content-description {
    color: var(--hd-muted) !important;
}

/* Testimonial card ("What teams report...") */
body.hb-dark.page-our-data .teams-switching .info-block-wrapper {
    border: 1px solid var(--hd-border);
    border-radius: 12px;
}

body.hb-dark.page-our-data .teams-switching .top-block-info-name {
    color: var(--hd-text) !important;
}

body.hb-dark.page-our-data .teams-switching .top-block-info-current-position {
    color: var(--hd-muted) !important;
}

body.hb-dark.page-our-data .teams-switching .top-block-info img {
    border-radius: 6px;
}

/* Result stats list */
body.hb-dark.page-our-data .teams-switching .statistic {
    color: var(--hd-text) !important;
}

/* Data explorer: coral tab bar + white pills become a dark panel with dark pills; active pill is coral. */
body.hb-dark.page-our-data .greeting-landing-performance.shadow {
    filter: none;
}

body.hb-dark.page-our-data .greeting-landing-performance.shadow::before,
body.hb-dark.page-our-data .greeting-landing-performance.shadow::after {
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-top: 0;
    opacity: 1;
}

body.hb-dark.page-our-data .greeting-landing-performance .landing-our-data-performance-pult {
    background-color: var(--hd-surface) !important;
    border: 1px solid var(--hd-border);
    border-bottom: 0;
}

body.hb-dark.page-our-data .greeting-landing-performance .landing-our-data-performance-pult-elem {
    background-color: var(--hd-bg) !important;
    border: 1px solid var(--hd-border);
    color: var(--hd-muted);
}

body.hb-dark.page-our-data .greeting-landing-performance .landing-our-data-performance-pult-elem:hover {
    border-color: #4A5361;
    color: var(--hd-text);
}

body.hb-dark.page-our-data .greeting-landing-performance .landing-our-data-performance-pult-elem.active {
    background-color: var(--hd-coral-surface) !important;
    border-color: var(--hd-coral);
    color: var(--hd-coral-text);
}

body.hb-dark.page-our-data .greeting-landing-performance .landing-our-data-performance-display {
    background-color: var(--hd-surface) !important;
}

/* Number badge on the photo */
body.hb-dark.page-our-data .greeting-landing-performance .landing-our-data-performance-display-numbers {
    background-color: var(--hd-surface) !important;
    border-bottom-left-radius: 16px;
}

/* Badge corner follows the photo's rounded bottom corner (now visible against the dark page). */
body.hb-dark.page-our-data .greeting-landing-performance .landing-our-data-performance-display-numbers.on-the-right {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 16px;
}

body.hb-dark.page-our-data .greeting-landing-performance .landing-our-data-performance-display-numbers h2 {
    color: var(--hd-coral-text) !important;
}

body.hb-dark.page-our-data .greeting-landing-performance .landing-our-data-performance-display-numbers p span {
    color: var(--hd-text);
}

/* "By the numbers" cards (coral line icons are background images and stay). */
body.hb-dark.page-our-data .numbers .main-benefist-el {
    background-color: var(--hd-surface) !important;
    border: 1px solid var(--hd-border);
    border-radius: 10px;
    box-shadow: none !important;
}

body.hb-dark.page-our-data .numbers .main-benefist-el h4 {
    background-color: transparent !important;
    box-shadow: none !important;
}

body.hb-dark.page-our-data .numbers .landing-title span {
    color: var(--hd-coral-text) !important;
}

/* Comparison table: dark left column, restore green / coral numbers and yes / no icons (selectors beat the generic td rule). */
body.hb-dark.page-our-data .video-comparison-container {
    border: 1px solid var(--hd-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none !important;
}

body.hb-dark.page-our-data .comparison-table thead th:first-child,
body.hb-dark.page-our-data .comparison-table tbody th {
    background: #1C222C !important;
}

body.hb-dark.page-our-data .comparison .comparison-table tbody td.comparison-table__metric,
body.hb-dark.page-our-data .comparison .comparison-table tbody td.comparison-table__yes {
    color: var(--hd-positive) !important;
}

body.hb-dark.page-our-data .comparison .comparison-table tbody td.comparison-table__metric--linkedin,
body.hb-dark.page-our-data .comparison .comparison-table tbody td.comparison-table__no {
    color: var(--hd-coral-text) !important;
}

/* Customer logos: light monochrome like the homepage logo row (the SVGs carry their own 20% opacity). */
body.hb-dark.page-our-data #g2_badges img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Final CTA heading is a <p> styled as a title. */
body.hb-dark.page-our-data .main .healthcare-talent-pipeline-today-container div.healthcare-talent-pipeline-today-block > p {
    color: var(--hd-text) !important;
}


/* ========== /product-heartbeat and /product-extension ========== */
/* Dark theme: product pages (/product-heartbeat, /product-extension).
   Loads after landing-dark.css; fixes what the generic landing layer misses. */

/* Hero: screenshot / video sits on the page, no light drop-shadow, plates under it turned dark */
body.hb-dark.page-product-heartbeat .greeting-landing-image.shadow,
body.hb-dark.page-product-extension .greeting-landing-image.shadow {
    background-color: transparent !important;
    filter: none;
}

body.hb-dark.page-product-heartbeat .greeting-landing-image.shadow::before,
body.hb-dark.page-product-heartbeat .greeting-landing-image.shadow::after,
body.hb-dark.page-product-extension .greeting-landing-image.shadow::before,
body.hb-dark.page-product-extension .greeting-landing-image.shadow::after {
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-top: 0;
    opacity: 1;
}

body.hb-dark.page-product-heartbeat .greeting-landing-image video,
body.hb-dark.page-product-extension .greeting-landing-image img {
    border: 1px solid var(--hd-border);
}

/* Coral words in headings (h1 span, h1 link) */
body.hb-dark.page-product-heartbeat .landing-title span,
body.hb-dark.page-product-extension .landing-title span,
body.hb-dark.page-product-extension .landing-title a.extension {
    color: var(--hd-coral-text) !important;
}

/* Coral CTA buttons: dark label like the header / homepage CTA (white on coral is ~2.4:1) */
body.hb-dark.page-product-heartbeat .main .btn_coral,
body.hb-dark.page-product-extension .main .btn_coral {
    color: var(--hd-cta-text) !important;
    box-shadow: none !important;
}

body.hb-dark.page-product-heartbeat .main .btn_coral:hover,
body.hb-dark.page-product-extension .main .btn_coral:hover {
    background: var(--hd-coral-text) !important;
}

body.hb-dark.page-product-heartbeat .main .btn_coral .hand-o-up,
body.hb-dark.page-product-extension .main .btn_coral .hand-o-up {
    filter: brightness(0);
    opacity: .75;
}

/* Problem / solution cards: dark surface, coral and green accents restored */
body.hb-dark.page-product-heartbeat .problem-solution-block {
    background-color: var(--hd-surface) !important;
    border: 1px solid var(--hd-border) !important;
    border-radius: 10px;
    box-shadow: none !important;
}

body.hb-dark.page-product-heartbeat .problem-solution-block.block-problem {
    border-left: 3px solid var(--hd-coral) !important;
}

body.hb-dark.page-product-heartbeat .problem-solution-block.block-solution {
    border-left: 3px solid var(--hd-positive) !important;
}

body.hb-dark.page-product-heartbeat .block-problem .problem-solution-block-top h6 {
    color: var(--hd-coral-text) !important;
}

body.hb-dark.page-product-heartbeat .block-solution .problem-solution-block-top h6 {
    color: var(--hd-positive) !important;
}

body.hb-dark.page-product-heartbeat .problem-solution-block p span {
    color: var(--hd-coral-text) !important;
}

/* White arrow circle between the cards */
body.hb-dark.page-product-heartbeat .problem-solution-middle-arrow {
    background-color: var(--hd-surface) !important;
    border: 1px solid var(--hd-border);
    box-shadow: none;
}

/* Comparison table: dark surface, label column readable, green/coral values restored */
body.hb-dark.page-product-heartbeat .video-comparison-container {
    border: 1px solid var(--hd-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
}

body.hb-dark.page-product-heartbeat .comparison-table {
    --comparison-line: var(--hd-border);
    --comparison-left-bg: #1C212A;
    color: var(--hd-text);
}

body.hb-dark.page-product-heartbeat .comparison-table thead th:first-child,
body.hb-dark.page-product-heartbeat .comparison-table tbody th {
    background-color: var(--comparison-left-bg) !important;
    color: var(--hd-text) !important;
}

body.hb-dark.page-product-heartbeat .main .comparison-table tbody td.comparison-table__metric {
    color: var(--hd-positive) !important;
}

body.hb-dark.page-product-heartbeat .main .comparison-table tbody td.comparison-table__metric--linkedin {
    color: var(--hd-coral-text) !important;
}

body.hb-dark.page-product-heartbeat .main .comparison-table tbody td.comparison-table__yes {
    color: var(--hd-positive) !important;
}

body.hb-dark.page-product-heartbeat .main .comparison-table tbody td.comparison-table__no {
    color: var(--hd-coral-text) !important;
}

/* Feature rows: no light zebra sections, no light-blue bubbles, screenshots framed */
body.hb-dark.page-product-heartbeat .features-element,
body.hb-dark.page-product-extension .features-element {
    background-color: transparent !important;
}

body.hb-dark.page-product-heartbeat .features-image-wrap img,
body.hb-dark.page-product-extension .features-image-wrap img {
    border: 1px solid var(--hd-border);
    border-radius: 8px;
    box-shadow: none;
}

body.hb-dark.page-product-extension .features-text a.extension {
    color: var(--hd-coral-text) !important;
}

/* Trusted-by logos: the g2_*.svg files are black at 20% opacity (invisible on dark).
   Swap to the full-opacity homepage logos and render them light, as on the homepage. */
body.hb-dark.page-product-heartbeat #g2_badges img,
body.hb-dark.page-product-extension #g2_badges img {
    filter: brightness(0) invert(1);
    opacity: .78;
}

body.hb-dark.page-product-heartbeat #g2_badges img[src*="g2_dignity_health"],
body.hb-dark.page-product-extension #g2_badges img[src*="g2_dignity_health"] {
    content: url(/static/images/new_home_page/dignity_health.svg);
}

body.hb-dark.page-product-heartbeat #g2_badges img[src*="g2_aspen_dental"],
body.hb-dark.page-product-extension #g2_badges img[src*="g2_aspen_dental"] {
    content: url(/static/images/new_home_page/aspen_dental.svg);
}

body.hb-dark.page-product-heartbeat #g2_badges img[src*="g2_chen_med"],
body.hb-dark.page-product-extension #g2_badges img[src*="g2_chen_med"] {
    content: url(/static/images/new_home_page/chen_med.svg);
}

body.hb-dark.page-product-heartbeat #g2_badges img[src*="g2_vault"],
body.hb-dark.page-product-extension #g2_badges img[src*="g2_vault"] {
    content: url(/static/images/new_home_page/vault.svg);
}

body.hb-dark.page-product-heartbeat #g2_badges img[src*="g2_village_md"],
body.hb-dark.page-product-extension #g2_badges img[src*="g2_village_md"] {
    content: url(/static/images/new_home_page/village_md.svg);
}

/* Hero "Heartbeat + Swordfish" logo: black wordmarks on dark -> light; coral/orange kept close to brand */
body.hb-dark.page-product-extension .greeting-landing-title-logos img {
    filter: invert(1) hue-rotate(180deg) saturate(1.4) brightness(1.15);
}


/* ========== /pricing, /contact, /optout and /api ========== */
/* Dark theme: /pricing, /contact, /optout, /api (loads after landing-dark.css). */

/* ---------- Pricing ---------- */

/* Hero: no light gradient behind the heading. */
body.hb-dark.page-pricing .hb-pricing-hero {
    background: transparent !important;
}

body.hb-dark.page-pricing .hb-pricing-sub {
    color: var(--hd-muted) !important;
}

body.hb-dark.page-pricing .hb-pricing-stat-number {
    color: var(--hd-coral-text) !important;
}

body.hb-dark.page-pricing .hb-pricing-stat-label {
    color: var(--hd-text) !important;
}

/* Plan cards */
body.hb-dark.page-pricing .hb-plan {
    border: 1px solid var(--hd-border) !important;
    border-radius: 12px;
}

body.hb-dark.page-pricing .hb-plan.hb-plan-featured {
    border-color: var(--hd-coral) !important;
}

body.hb-dark.page-pricing .hb-plan-price {
    border-top-color: var(--hd-border) !important;
}

body.hb-dark.page-pricing .hb-plan-price span {
    color: var(--hd-muted) !important;
}

body.hb-dark.page-pricing .hb-plan-list li {
    color: var(--hd-text) !important;
}

body.hb-dark.page-pricing .hb-plan-list li::before {
    background: var(--hd-positive);
    color: var(--hd-bg);
}

/* Coral CTAs use dark text like the homepage (white on coral is too low-contrast). */
body.hb-dark.page-pricing .hb-plan .hb-plan-button,
body.hb-dark.page-pricing .btn_coral.hb-book-call {
    background: var(--hd-coral) !important;
    color: var(--hd-cta-text) !important;
    box-shadow: none !important;
}

body.hb-dark.page-pricing .hb-plan .hb-plan-button:hover,
body.hb-dark.page-pricing .btn_coral.hb-book-call:hover {
    background: var(--hd-coral-text) !important;
}

/* Coverage block and FAQ sit on the page background. */
body.hb-dark.page-pricing .hb-coverage, body.hb-dark.page-pricing .hb-faq {
    background: transparent !important;
}

body.hb-dark.page-pricing .hb-coverage-link {
    color: var(--hd-coral-text) !important;
}

body.hb-dark.page-pricing .hb-coverage-link:hover {
    color: var(--hd-text) !important;
}

body.hb-dark.page-pricing .hb-faq .panel-body {
    color: var(--hd-muted) !important;
    background: transparent !important;
}

body.hb-dark.page-pricing .hb-book-call:focus-visible,
body.hb-dark.page-pricing .hb-faq .panel-heading-faq a:focus-visible {
    outline-color: var(--hd-coral-text);
}


/* ---------- Forms: /contact and /optout ---------- */

body.hb-dark.page-contact .optout-container .landing-heading h3,
body.hb-dark.page-optout .optout-container .landing-heading h3 {
    color: var(--hd-muted) !important;
    font-family: var(--hd-font);
    font-weight: 400;
    text-shadow: none;
}

/* Form card (.row outweighs the generic transparent [class*="container"] rule) */
body.hb-dark.page-contact .optout-container .row .form-container,
body.hb-dark.page-optout .optout-container .row .form-container {
    background: var(--hd-surface) !important;
    border: 1px solid var(--hd-border);
    border-radius: 12px;
    box-shadow: none;
}

/* Labels; the required asterisk stays visible as a coral accent. */
body.hb-dark.page-contact .optout-form-group label, body.hb-dark.page-contact .radio-group p,
body.hb-dark.page-optout .optout-form-group label {
    color: var(--hd-text) !important;
}

body.hb-dark.page-contact .optout-form-group label span, body.hb-dark.page-optout .optout-form-group label span {
    color: var(--hd-coral-text) !important;
}

/* Inputs, selects, textarea */
body.hb-dark.page-contact .optout-form-group :is(input, select, textarea),
body.hb-dark.page-optout .optout-form-group :is(input, select, textarea) {
    box-shadow: none !important;
}

body.hb-dark.page-optout .optout-form-group select {
    font-weight: 400;
}

body.hb-dark.page-optout .optout-form-group select option {
    background: var(--hd-surface);
    color: var(--hd-text);
}

/* Validation: red border (form id outweighs the generic layer's !important input border). */
body.hb-dark.page-contact #contact .alert-field-red-border,
body.hb-dark.page-optout #optform .alert-field-red-border {
    border-color: #FF6B6B !important;
}

/* Radios and checkboxes */
body.hb-dark.page-contact :is(input[type="radio"], input[type="checkbox"]),
body.hb-dark.page-optout :is(input[type="radio"], input[type="checkbox"]) {
    accent-color: var(--hd-coral);
}

/* Error / success message (#message; contact/optout have an inline light-green .alert-success) */
body.hb-dark.page-contact #message.alert-danger, body.hb-dark.page-optout #message.alert-danger {
    background-color: rgba(255, 107, 107, .12) !important;
    border: 1px solid rgba(255, 107, 107, .45) !important;
    color: #FFA4A4 !important;
}

body.hb-dark.page-contact #message.alert-success, body.hb-dark.page-optout #message.alert-success {
    background-color: rgba(141, 215, 182, .12) !important;
    border: 1px solid rgba(141, 215, 182, .45) !important;
    color: var(--hd-positive) !important;
}

/* Submit button: coral with dark text, no glow. */
body.hb-dark.page-contact .optout-form .btn_coral, body.hb-dark.page-optout .optout-form .btn_coral {
    background: var(--hd-coral) !important;
    color: var(--hd-cta-text) !important;
    box-shadow: none !important;
}

body.hb-dark.page-contact .optout-form .btn_coral:hover, body.hb-dark.page-optout .optout-form .btn_coral:hover {
    background: var(--hd-coral-text) !important;
}

/* Phone field: intl-tel-input (old .intl-tel-input markup and newer .iti markup) */
body.hb-dark.page-contact :is(.intl-tel-input .selected-flag, .iti__selected-flag, .iti__selected-country),
body.hb-dark.page-optout :is(.intl-tel-input .selected-flag, .iti__selected-flag, .iti__selected-country) {
    background-color: rgba(255, 255, 255, .04) !important;
    border-right: 1px solid var(--hd-border);
    border-radius: 5px 0 0 5px;
}

body.hb-dark.page-contact :is(.intl-tel-input .flag-container:hover .selected-flag, .iti__selected-flag:hover),
body.hb-dark.page-optout :is(.intl-tel-input .flag-container:hover .selected-flag, .iti__selected-flag:hover) {
    background-color: rgba(255, 255, 255, .08) !important;
}

body.hb-dark.page-contact :is(.selected-dial-code, .iti__selected-dial-code),
body.hb-dark.page-optout :is(.selected-dial-code, .iti__selected-dial-code) {
    color: var(--hd-text) !important;
}

body.hb-dark.page-contact :is(.selected-flag .iti-arrow, .iti__arrow),
body.hb-dark.page-optout :is(.selected-flag .iti-arrow, .iti__arrow) {
    border-top-color: var(--hd-muted) !important;
}

body.hb-dark.page-contact :is(.selected-flag .iti-arrow.up, .iti__arrow--up),
body.hb-dark.page-optout :is(.selected-flag .iti-arrow.up, .iti__arrow--up) {
    border-bottom-color: var(--hd-muted) !important;
}

body.hb-dark.page-contact :is(.intl-tel-input .country-list, .iti__country-list, .iti__dropdown-content),
body.hb-dark.page-optout :is(.intl-tel-input .country-list, .iti__country-list, .iti__dropdown-content) {
    background-color: var(--hd-surface) !important;
    border: 1px solid var(--hd-border) !important;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45) !important;
}

body.hb-dark.page-contact :is(.intl-tel-input .country-list li, .iti__country),
body.hb-dark.page-optout :is(.intl-tel-input .country-list li, .iti__country) {
    color: var(--hd-text) !important;
}

body.hb-dark.page-contact :is(.intl-tel-input .country-list .dial-code, .iti__dial-code),
body.hb-dark.page-optout :is(.intl-tel-input .country-list .dial-code, .iti__dial-code) {
    color: var(--hd-muted) !important;
}

body.hb-dark.page-contact :is(.intl-tel-input .country-list .country.highlight, .iti__country.iti__highlight),
body.hb-dark.page-optout :is(.intl-tel-input .country-list .country.highlight, .iti__country.iti__highlight) {
    background-color: var(--hd-coral-surface) !important;
}

body.hb-dark.page-contact :is(.intl-tel-input .country-list .divider, .iti__divider),
body.hb-dark.page-optout :is(.intl-tel-input .country-list .divider, .iti__divider) {
    border-bottom-color: var(--hd-border) !important;
}


/* Phones: the form card is full-bleed, so drop its side borders and corners. */
@media (max-width: 620px) {
    body.hb-dark.page-contact .optout-container .row .form-container,
    body.hb-dark.page-optout .optout-container .row .form-container {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
}


/* ---------- API ---------- */

/* Hero video: drop the light-blue halo; the stacked bars under it become dark surfaces. */
body.hb-dark.page-api .greeting-landing-image.shadow {
    filter: none;
    background: transparent !important;
}

body.hb-dark.page-api .greeting-landing-image.shadow::before,
body.hb-dark.page-api .greeting-landing-image.shadow::after {
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-top: 0;
    opacity: 1;
}

body.hb-dark.page-api .greeting-landing-image video {
    border: 1px solid var(--hd-border);
}

/* Coral CTAs: dark text, dark hand icon, no glow. */
body.hb-dark.page-api .greeting .btn_coral {
    color: var(--hd-cta-text) !important;
    box-shadow: none !important;
}

body.hb-dark.page-api .greeting .btn_coral .hand-o-up {
    filter: brightness(0);
    opacity: .8;
}

/* Three steps */
body.hb-dark.page-api .getting-started-api {
    background: transparent !important;
}

body.hb-dark.page-api .getting-started-api .item span {
    color: var(--hd-text) !important;
}

body.hb-dark.page-api .getting-started-api .item p {
    color: var(--hd-muted) !important;
}

/* Comparison table: dark left column, green/coral values restored. */
body.hb-dark.page-api .comparison-table {
    --comparison-line: var(--hd-border);
    --comparison-left-bg: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--hd-text);
    overflow: hidden;
}

body.hb-dark.page-api .comparison-table th {
    color: var(--hd-text) !important;
}

body.hb-dark.page-api .comparison-table tbody :is(th, td) {
    border-top: 1px solid var(--hd-border);
}

body.hb-dark.page-api .comparison .comparison-table td.comparison-table__metric,
body.hb-dark.page-api .comparison .comparison-table td.comparison-table__yes {
    color: var(--hd-positive) !important;
}

body.hb-dark.page-api .comparison .comparison-table td.comparison-table__metric--linkedin,
body.hb-dark.page-api .comparison .comparison-table td.comparison-table__no {
    color: var(--hd-coral-text) !important;
}

body.hb-dark.page-api .video-comparison-container, body.hb-dark.page-api .video-comparison-wrapper {
    box-shadow: none !important;
}

/* "Talk to a data expert": coral band becomes a dark band with a coral CTA. */
body.hb-dark.page-api .bottom-data-expert {
    background: var(--hd-surface) !important;
    border-top: 1px solid var(--hd-border);
}

body.hb-dark.page-api .bottom-data-expert h4 {
    color: var(--hd-text) !important;
}

body.hb-dark.page-api .bottom-data-expert span {
    color: var(--hd-muted) !important;
}

body.hb-dark.page-api .bottom-data-expert a {
    background: var(--hd-coral) !important;
    border: 0 !important;
    border-radius: 8px;
    box-shadow: none;
    color: var(--hd-cta-text) !important;
}

body.hb-dark.page-api .bottom-data-expert a:hover {
    background: var(--hd-coral-text) !important;
}

/* The testimonial section had no top padding; with a divider above it the heading looked glued to the line. */
body.hb-dark.page-our-data section.teams-switching {
    padding-top: 56px;
}
