/* Liquid glass: the look for every page (Dec 2026). Loaded last, after theme.css.
   A soft tinted backdrop, frosted translucent panels with a fine highlight edge, neutral glass buttons and calm
   outcome colours. Brand colour stays as an accent (the italic word in a headline), never as a heavy block. */
:root{
  --g-bg:#f5f3f6;--g-ink:#1f1a22;--g-muted:#5e5661;
  --g-panel:rgba(255,255,255,.56);--g-panel-hi:rgba(255,255,255,.74);--g-edge:rgba(255,255,255,.8);--g-line:rgba(31,26,34,.08);
  --g-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 14px 40px rgba(46,28,52,.08);
  --g-blur:blur(22px) saturate(170%);
  --g-btn:rgba(31,26,34,.88);--g-btn-ink:#fff;--g-accent:#9a5f4b;
  --g-ok:#3f8a68;--g-hold:#a8822f;--g-esc:#a86a52;--g-deny:#b0574f;
  --g-mesh:radial-gradient(1100px 680px at 8% -12%,rgba(212,186,214,.55),transparent 62%),
    radial-gradient(900px 620px at 102% 4%,rgba(238,208,192,.5),transparent 60%),
    radial-gradient(1000px 720px at 50% 112%,rgba(196,212,234,.45),transparent 62%);
}
:root[data-theme="dark"]{
  --g-bg:#121015;--g-ink:#efe9ee;--g-muted:#b3a8b0;
  --g-panel:rgba(34,27,36,.52);--g-panel-hi:rgba(44,36,46,.66);--g-edge:rgba(255,255,255,.09);--g-line:rgba(255,255,255,.07);
  --g-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 18px 46px rgba(0,0,0,.35);
  --g-btn:rgba(255,255,255,.9);--g-btn-ink:#1f1a22;--g-accent:#e3a48b;
  --g-ok:#79c39d;--g-hold:#dcb862;--g-esc:#e3a48b;--g-deny:#e08a80;
  --g-mesh:radial-gradient(1100px 680px at 8% -12%,rgba(120,72,112,.38),transparent 62%),
    radial-gradient(900px 620px at 102% 4%,rgba(150,92,72,.26),transparent 60%),
    radial-gradient(1000px 720px at 50% 112%,rgba(60,84,128,.3),transparent 62%);
}

/* Backdrop */
body,:root[data-theme="dark"] body{background:var(--g-mesh),var(--g-bg);background-attachment:fixed;color:var(--g-ink)}
:root :is(.hx-band,.hc-section-tint,.section-warm,.trust-section),:root[data-theme="dark"] :is(.hx-band,.hc-section-tint,.section-warm,.trust-section){background:transparent}

/* Header and footer: glass strips. The frosting sits on a ::before layer, so the logo (which blends with what is
   behind it) still sits cleanly on the glass instead of in a white box. */
:root .site-header,:root[data-theme="dark"] .site-header{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:1px solid var(--g-line)}
:root .site-footer,:root[data-theme="dark"] .site-footer{position:relative;isolation:isolate;background:transparent;border-top:1px solid var(--g-line)}
:root :is(.site-header,.site-footer)::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--g-panel);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);pointer-events:none}
:root .footer-bottom{border-top-color:var(--g-line)}

/* The colour logo as a transparent vector, so it sits on the glass with no white box (dark keeps its white logo). */
:root:not([data-theme="dark"]) :is(.brand img,.site-footer .footer-main > div > img:first-child){content:url("/brand/humanecircle-logo.svg");mix-blend-mode:normal;object-fit:contain}

/* Panels */
:root :is(.hc-hero-card,.doc-card,.doc-stat,.hx-decisions li,.hx-cards a,.hc-pcard,.hc-flow li,.product-explorer,.demo-shell,.hc-matrix-wrap,.hc-dropin-col,.hc-pillar-grid li,.hc-trust-steps li,.doc-table-wrap,.hc-faq details,.contact-shell,.pilot-thanks,.signin-panel,.hc-outcomes li,.hx-outcomes li,.hc-facts span),
:root[data-theme="dark"] :is(.hc-hero-card,.doc-card,.doc-stat,.hx-decisions li,.hx-cards a,.hc-pcard,.hc-flow li,.product-explorer,.demo-shell,.hc-matrix-wrap,.hc-dropin-col,.hc-pillar-grid li,.hc-trust-steps li,.doc-table-wrap,.hc-faq details,.contact-shell,.pilot-thanks,.signin-panel,.hc-outcomes li,.hx-outcomes li,.hc-facts span){
  background:var(--g-panel);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);
  border:1px solid var(--g-edge);box-shadow:var(--g-shadow);color:var(--g-ink)}
:root :is(.hc-request,.product-tabs,.hc-dropin-have li,.lab-example,.lab-journey li),
:root[data-theme="dark"] :is(.hc-request,.product-tabs,.hc-dropin-have li,.lab-example,.lab-journey li){background:var(--g-panel-hi);border-color:var(--g-edge)}
:root :is(.product-panel,.pilot-form,.contact-copy),:root[data-theme="dark"] :is(.product-panel,.pilot-form,.contact-copy){background:transparent;color:var(--g-ink)}
:root :is(.pilot-form input,.pilot-form select,.demo-form textarea,.lab-shell textarea),
:root[data-theme="dark"] :is(.pilot-form input,.pilot-form select,.demo-form textarea,.lab-shell textarea){background:var(--g-panel-hi);border-color:var(--g-line);color:var(--g-ink)}

/* Buttons: one neutral glass primary, glass secondaries */
:root .button-dark,:root[data-theme="dark"] .button-dark.button-dark{background:var(--g-btn);color:var(--g-btn-ink);border-color:transparent;-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 8px 22px rgba(31,26,34,.16)}
:root .button-dark:hover:not(:disabled),:root .hc .button-dark:hover:not(:disabled){background:var(--g-btn);filter:brightness(1.12)}
:root :is(.hc-button-ghost,.doc-button-ghost,.hc-button-light,.hc-button-outline-light,.nav-console,.hc-motion-toggle,.primary-nav>.button-small:not(.button-dark)),
:root[data-theme="dark"] :is(.hc-button-ghost,.doc-button-ghost,.hc-button-light,.hc-button-outline-light,.nav-console,.hc-motion-toggle,.primary-nav>.button-small:not(.button-dark)){
  background:var(--g-panel-hi);color:var(--g-ink);border:1px solid var(--g-edge);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}

/* The cookie choice: a glass card with the same neutral primary */
:root .consent,:root[data-theme="dark"] .consent{background:var(--g-panel-hi);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);border:1px solid var(--g-edge);box-shadow:var(--g-shadow);color:var(--g-ink)}
:root .consent-actions .consent-yes,:root[data-theme="dark"] .consent-actions .consent-yes.consent-yes{background:var(--g-btn);color:var(--g-btn-ink);border-color:transparent}

/* theme.css gives these a solid plum fill in dark mode through a high-specificity :is(); match it so glass wins. */
:root[data-theme="dark"] .doc-stat.doc-stat{background:var(--g-panel);border:1px solid var(--g-edge);box-shadow:var(--g-shadow);color:var(--g-ink)}
:root[data-theme="dark"] .hc-flow-step.hc-flow-step{background:var(--g-btn);color:var(--g-btn-ink)}

/* Text that was white on a plum block */
:root .hc-compare summary{color:var(--g-ink);border-color:var(--g-edge);background:var(--g-panel-hi)}
:root :is(.doc-stat strong,.contact-copy h2,.hc-pilot-title,.hc-pcard h3,.hc-pcard li,.hc-tim-name,.hc-products .hc-h2,.hc-products .hc-matrix-cta p){color:var(--g-ink)}
:root :is(.doc-stat span,.contact-copy p,.hc-pcard-lead,.hc-tim-caption,.hc-products-sub){color:var(--g-muted)}
:root :is(.hc-pcard-role,.hx-eyebrow,.hc-eyebrow){color:var(--g-accent)}

/* Platform products: glass on the backdrop instead of a plum band */
:root .hc-products,:root[data-theme="dark"] .hc-products{background:transparent;color:var(--g-ink)}
:root .hc-products::before{display:none}
:root .hc-pcards::before{background:linear-gradient(90deg,transparent,var(--g-line),transparent)}
:root .hc-pcard-featured,:root[data-theme="dark"] .hc-pcard-featured{border:1px solid rgba(154,95,75,.35)}
:root .hc-pcard:hover{box-shadow:var(--g-shadow);border-color:rgba(154,95,75,.35)}
:root .hc-pcard-mark{filter:brightness(0) opacity(.72)}
:root[data-theme="dark"] .hc-pcard-mark{filter:brightness(0) invert(1) opacity(.82)}
:root :is(.hc-pcard-badge,.hc-pcard-badge-start){background:var(--g-btn);color:var(--g-btn-ink)}
:root .hc-pcard li::before{background:rgba(63,138,104,.14);color:var(--g-ok)}
:root .hc-tim-mark{background:linear-gradient(145deg,rgba(112,66,94,.86),rgba(74,38,60,.86));border-color:var(--g-edge);box-shadow:var(--g-shadow)}
:root .hc-tim-mark::after{border-color:rgba(154,95,75,.35)}
:root .hc-tim-beam{background:linear-gradient(var(--g-line),transparent)}
:root .hc-tim-beam::after{background:var(--g-accent);box-shadow:none}

/* Calm outcome colours */
:root :is(.hx-o-allow,.hx-rotor[data-verdict="allow"] b){color:var(--g-ok)}
:root :is(.hx-o-hold,.hx-rotor[data-verdict="hold"] b){color:var(--g-hold)}
:root :is(.hx-o-esc,.hx-rotor[data-verdict="escalate"] b){color:var(--g-esc)}
:root :is(.hx-o-deny,.hx-rotor[data-verdict="deny"] b){color:var(--g-deny)}
:root .hc-dot-ok{background:var(--g-ok)}:root .hc-dot-warn{background:var(--g-esc)}:root .hc-dot-hold{background:var(--g-hold)}
:root .hc-flow-step,:root .hx-steps li::before{background:var(--g-btn);color:var(--g-btn-ink)}
:root .hx-stats strong{color:var(--g-ink)}

/* Home hero: canvas colours and the veil follow the glass palette */
:root .hx-hero{--df-flow:#7d5d75;--df-ok:#4f9a7a;--df-hold:#c39a4c;--df-esc:#c08268;--df-deny:#c26b63;--df-ink:#1f1a22;--df-muted:#5e5661;--df-card:rgba(255,255,255,.86);--df-line:rgba(31,26,34,.1);background:transparent}
:root[data-theme="dark"] .hx-hero{--df-flow:#d9bcd0;--df-ok:#79c39d;--df-hold:#dcb862;--df-esc:#e3a48b;--df-deny:#e08a80;--df-ink:#efe9ee;--df-muted:#b3a8b0;--df-card:rgba(34,27,36,.9);--df-line:rgba(255,255,255,.1)}
:root .hx-veil{background:linear-gradient(90deg,rgba(245,243,246,.9) 0%,rgba(245,243,246,.62) 36%,rgba(245,243,246,0) 62%)}
:root[data-theme="dark"] .hx-veil{background:linear-gradient(90deg,rgba(18,16,21,.9) 0%,rgba(18,16,21,.6) 36%,rgba(18,16,21,0) 62%)}
@media(max-width:700px){
  :root .hx-veil{background:linear-gradient(180deg,rgba(245,243,246,.92) 0%,rgba(245,243,246,.7) 58%,rgba(245,243,246,0) 72%)}
  :root[data-theme="dark"] .hx-veil{background:linear-gradient(180deg,rgba(18,16,21,.92) 0%,rgba(18,16,21,.7) 58%,rgba(18,16,21,0) 72%)}
}

/* Browsers without backdrop blur get a more solid panel so text stays readable */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :root{--g-panel:rgba(255,255,255,.9);--g-panel-hi:rgba(255,255,255,.95)}
  :root[data-theme="dark"]{--g-panel:rgba(34,27,36,.94);--g-panel-hi:rgba(44,36,46,.96)}
}
@media(prefers-reduced-transparency:reduce){
  :root{--g-panel:rgba(255,255,255,.94);--g-panel-hi:#fff}
  :root[data-theme="dark"]{--g-panel:rgba(34,27,36,.96);--g-panel-hi:#2c242e}
}
