/* Dark palette for the marketing pages (home, /features and its pages,
   /compare, /request-invite). js/site-theme.js sets <html data-theme="dark">
   from the footer control, or from the system when nothing is chosen.

   Part 1 is values only: the tokens each page declares in its own :root, given
   their dark values (grounds and inks follow the app's Camel dark mode). Part 2
   is the short list of rules that hard-code a colour and so can't follow a
   token. Product screenshots stay as they are. */

/* ---------- 1. tokens ---------- */
:root[data-theme="dark"]{
  color-scheme:dark;
  --paper:#181C20; --sand:#0F1215; --shelf:#1F242A; --steel-025:#1D2126;
  --steel-300:#4A525B; --steel-400:#7C858E;
  --ink:#ECEEF0; --inksoft:#A9B1B9; --inkfaint:#99A1A9;
  --line:#2C3238; --line-strong:#5B646D;
  --emeris-teal:#62B3CC; --emeris-blue:#6CB0F2;
  --clay:#6CB0F2; --clay-700:#9CCBF7; --clay-100:#234563; --clay-50:#142C43;
  --teal:#3DC2B6;
  --sage-700:#8CCBA3; --sage-50:#17301F;
  --ochre-700:#E0BD62; --ochre-50:#33290F;
  --dust-700:#8FC0D8; --dust-50:#152C38;
  --mauve-700:#B9A8DB; --mauve-50:#261F36;
  --brick-600:#F08A80;
  /* bookings demo (css/bookings.css) */
  --bk-busy:#3A4148; --bk-busy-ink:#C9CED3; --bk-task:#1D3A57; --bk-task-2:#234563;
  --bk-free:#7FC79A; --bk-free-bg:#17301F; --bk-late:#E0BD62; --bk-late-bg:#33290F;
  --bk-warn:#F08A80; --bk-brand:#4FB3BC; --bk-brand-700:#74C6CD;
  /* this file's own: the ground for bands that are dark in both modes, and the
     ink that sits on a light-blue or light-grey fill */
  --night:#0A0C0E; --on-fill:#0A1A22;
}

/* ---------- 2. rules that hard-code a colour ---------- */
/* Bands that use --ink as their ground stay dark. */
[data-theme="dark"] footer,[data-theme="dark"] .final,[data-theme="dark"] .ft-band,[data-theme="dark"] .ft-m-term{background:var(--night)}
[data-theme="dark"] .ft-band,[data-theme="dark"] .final{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
[data-theme="dark"] .ft-m-term{border:1px solid var(--line)}
/* White text on the action blue or on --ink: both fills are light here. */
[data-theme="dark"] .btn-primary,[data-theme="dark"] .now::before,[data-theme="dark"] .plan .tag-top,[data-theme="dark"] .plan-free .tag-top,
[data-theme="dark"] .seg button[aria-pressed="true"],[data-theme="dark"] .kfilters span.on,[data-theme="dark"] .bk-gform-go,
[data-theme="dark"] .bk-gcard.is-brand .bk-gform-go,[data-theme="dark"] .bk-gslot[aria-pressed="true"],
[data-theme="dark"] .bk-seg button[aria-pressed="true"],[data-theme="dark"] .bk-v3-q{color:var(--on-fill)}
[data-theme="dark"] .feat input::after{border-color:var(--on-fill)}
[data-theme="dark"] .seg button[aria-pressed="true"]:focus-visible{outline-color:var(--on-fill)}
/* Glass and white surfaces. */
[data-theme="dark"] header{background:rgba(15,18,21,.88)}
[data-theme="dark"] .car-btn{background:rgba(24,28,32,.92)}
[data-theme="dark"] .car-btn:hover{background:var(--paper)}
[data-theme="dark"] .car-dot::before{box-shadow:0 0 0 2px rgba(15,18,21,.9)}
[data-theme="dark"] .bk-v1-no{background:rgba(24,28,32,.92)}
[data-theme="dark"] .ri-alert{background:#3A1C19}
[data-theme="dark"] .ft-m-team .gap{background:rgba(127,199,154,.14)}
/* Tinted chips: the border follows the chip's own ink instead of a pastel. */
[data-theme="dark"] .tag.sage,[data-theme="dark"] .tag.ochre,[data-theme="dark"] .tag.dust,[data-theme="dark"] .tag.mauve,
[data-theme="dark"] .av2,[data-theme="dark"] .av3,[data-theme="dark"] .av4,[data-theme="dark"] .real,
[data-theme="dark"] .form-success{border-color:color-mix(in srgb,currentColor 32%,transparent)}
/* The heat map runs light-to-strong; on a dark ground the weak end is the dark one. */
[data-theme="dark"] .hm i.l1{background:#1F3A29}
[data-theme="dark"] .hm i.l2{background:#3F7350}
[data-theme="dark"] .bk-k2{color:#E89A78}
/* Deeper shadows: the light ones vanish against a dark ground. */
[data-theme="dark"] .fmenu-panel{box-shadow:0 18px 40px -14px rgba(0,0,0,.7)}
[data-theme="dark"] .bk-gcard,[data-theme="dark"] .ft-frame,[data-theme="dark"] .ft-mock,[data-theme="dark"] .ri-card{box-shadow:0 12px 32px -16px rgba(0,0,0,.7)}
