/* AlgoBridge site tokens, shared by the marketing pages and the docs.
   The palette mirrors packages/ui/scss/_tokens.scss (scripts/check-site.mjs fails on drift).
   This is the only file on the site allowed to hold a colour value.
   The brand is light only; the dark "well" is the one dark surface. */

@font-face{font-family:"Mona Sans";src:url("/assets/site/fonts/mona-sans-latin.woff2") format("woff2");font-weight:200 900;font-stretch:75% 125%;font-style:normal;font-display:swap}
@font-face{font-family:"Bricolage Grotesque";src:url("/assets/site/fonts/bricolage-grotesque-latin.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Spline Sans Mono";src:url("/assets/site/fonts/spline-sans-mono-latin.woff2") format("woff2");font-weight:400 600;font-style:normal;font-display:swap}
/* metric-matched fallbacks, so the swap to the web font does not move the layout */
@font-face{font-family:"Mona Sans Fallback";src:local("Arial");size-adjust:104%;ascent-override:92%;descent-override:24%}
@font-face{font-family:"Bricolage Fallback";src:local("Arial");size-adjust:98%;ascent-override:96%;descent-override:26%}

:root{
  --ground:#F3F4F1; --surface:#FFFFFF; --sunk:#ECEEE9; --hover:#F7F8F5;
  --ink:#17191C; --ink-2:#4A5059; --ink-3:#62696F;
  --line:#D9DCD5; --line-2:#E8EAE4; --stone:#BFC3BB; --sage:#B9BFB7; --pebble:#C9CEC6;
  --accent:#B24A17; --accent-strong:#933C11; --accent-soft:#F4E6DB; --on-accent:#FFF8F2;
  --sf:#05779A; --sf-soft:#E0EFF4; --pg:#365F88; --pg-soft:#E5EBF2;
  --ok:#1C6E3E; --ok-soft:#E1EFE5; --ok-line:#BFDAC7;
  --warn:#8A5F08; --warn-soft:#F5EBD3; --warn-line:#E4D2A6; --warn-text:#5F4105;
  --err:#B2352A; --err-soft:#F7E2DF;
  --well:#14171A; --well-2:#1D2126; --well-line:#2C3238; --well-thumb:#3A4047;
  --well-ink:#D5D8D2; --well-ink-2:#A3A9B0; --well-ink-3:#7D848C; --well-hi:#F3F4F1;
  --lv-warn:#E9BC5E; --lv-warn-bg:rgba(233,188,94,.08); --lv-info:#7FCB98; --lv-debug:#93A4BE;
  --well-sf:#56BFDD; --well-pg:#9DB9DA; --well-mark:#F0B893;
  --white:#FFFFFF;

  --sans:"Mona Sans","Mona Sans Fallback",ui-sans-serif,system-ui,sans-serif;
  --brand:"Bricolage Grotesque","Bricolage Fallback",ui-sans-serif,system-ui,sans-serif;
  --mono:"Spline Sans Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  /* marketing type scale: a 1.25 ratio from 16px, display sizes fluid */
  --t-xs:12.5px; --t-sm:14px; --t-md:16px; --t-lg:18px; --t-xl:22px;
  --t-h3:clamp(20px,1.6vw,24px); --t-h2:clamp(30px,3.4vw,46px); --t-h1:clamp(42px,6.6vw,88px);

  --wrap:1200px; --gutter:32px;
  --r-panel:4px; --r-control:3px; --r-chip:2px;
  --ease-out:cubic-bezier(.2,.75,.15,1); --ease-draw:cubic-bezier(.65,0,.25,1);
  color-scheme:light;
}
@media (max-width:640px){:root{--gutter:16px}}

/* ---- the In step mark, shared by the header and the footer ----
   A belt between the Salesforce wheel and the PostgreSQL wheel. In the header
   it draws on once, the wheels arrive, then the two timing notches turn
   together and packets ride the two runs of the belt (SMIL, in the partial). */
.ab-mark{display:block;flex:none;overflow:visible}
.ab-mark .belt{fill:none;stroke:var(--ink)}
.ab-mark .c-sf{fill:var(--sf)} .ab-mark .c-pg{fill:var(--pg)}
.ab-mark .spk{transform-box:view-box} .ab-mark .spk-sf{transform-origin:7px 10px} .ab-mark .spk-pg{transform-origin:25px 10px}
.ab-mark--live .belt{stroke-dasharray:103;stroke-dashoffset:103;animation:ab-belt 1.1s var(--ease-draw) .1s forwards}
.ab-mark--live .pul{transform-box:fill-box;transform-origin:center;animation:ab-pop .5s cubic-bezier(.3,1.4,.5,1) .55s both}
.ab-mark--live .pul.b{animation-delay:.67s}
.ab-mark--live .spk{animation:ab-spin 6s linear 1.2s infinite}
@keyframes ab-belt{to{stroke-dashoffset:0}}
@keyframes ab-pop{0%{transform:scale(0)}70%{transform:scale(1.12)}100%{transform:none}}
@keyframes ab-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .ab-mark--live .belt{animation:none;stroke-dashoffset:0}
  .ab-mark--live .pul,.ab-mark--live .spk{animation:none}
  .ab-mark .pk{display:none}
}
