/* Design tokens adopted from quartr.com (computed values read 21 Nov 2026). */
:root {
  /* Neutral scale (Quartr --ds-grey-*) */
  --grey-25:#fbfcfc; --grey-50:#eef0f1; --grey-100:#d2d5d7; --grey-200:#b9c1c7; --grey-300:#949da5; --grey-400:#626d75;
  --grey-500:#485259; --grey-600:#262a2f; --grey-700:#1e2023; --grey-800:#101214; --grey-900:#090a0c;
  /* Warm section tints (Quartr --ds-ash-*, --ds-sand-*) */
  --ash-100:#f4f3f0; --ash-200:#e7e2e0; --ash-300:#d1cbc8; --sand-100:#f2efe7; --sand-200:#e5e1d6;

  /* Roles: light canvas */
  --bg:var(--grey-25);
  --bg-tint:var(--grey-50);
  --bg-warm:var(--ash-100);
  --text:var(--grey-800);
  --text-reading:rgb(9 10 12 / .95);
  --text-muted:rgb(9 10 12 / .65);
  --text-subtle:rgb(9 10 12 / .49);
  --border:var(--grey-100);
  --border-strong:var(--grey-300);
  --placeholder:var(--ash-200);

  /* Roles: dark sections */
  --dark-bg:var(--grey-900);
  --dark-text:var(--grey-25);
  --dark-text-muted:rgb(251 252 252 / .7);
  --dark-text-subtle:rgb(251 252 252 / .45);
  --dark-border:var(--grey-500);
  --dark-placeholder:var(--grey-700);

  /* Actions */
  --action-bg:var(--grey-900);
  --action-fg:var(--grey-50);
  --action-bg-hover:var(--grey-600);
  --error:#b42318; --error-bg:#fdf0ee;

  /* Surfaces & overlays */
  --surface:#fff;
  --hover-bg:var(--grey-50);
  --pill-bg:rgb(238 240 241 / .8);
  --pill-ring:0 0 0 1px rgb(0 0 0 / .06),0 1px 2px -1px rgb(0 0 0 / .06),0 2px 4px 0 rgb(0 0 0 / .04);
  --panel-shadow:0 0 0 1px rgb(0 0 0 / .06),0 12px 32px -8px rgb(9 10 12 / .16);
  --label-bg:rgb(251 252 252 / .7);
  --focus-glow:rgb(9 10 12 / .08);
  --logo-filter:none;

  /* Emerald accent (AWA brand green #123F3C; gradients after pear.vc's colour cards, measured 21 Nov 2026) */
  --emerald-950:#0b2b29; --emerald-900:#123f3c; --emerald-700:#0f7a5c; --emerald-500:#22b07d; --emerald-400:#34d399; --emerald-200:#a7f3c9; --emerald-50:#eafbf2;
  --gold-300:#e8cf8f; --cream:#fcf7ee;
  --accent:var(--emerald-700); --accent-strong:var(--emerald-900); --accent-fg:#fff; --accent-soft:var(--emerald-50);
  --glow-emerald:linear-gradient(180deg,var(--emerald-400) 0%,#c9f5df 58%,var(--cream) 100%);
  --glow-mint:linear-gradient(180deg,var(--emerald-200) 0%,#ecffd0 60%,var(--cream) 100%);
  --glow-gold:linear-gradient(180deg,var(--gold-300) 0%,#f8e9dc 62%,var(--cream) 100%);
  --glow-text:var(--grey-800); --glow-text-muted:rgb(9 10 12 / .72);
  --cta-bg:radial-gradient(120% 140% at 100% 100%,#1f7a5f 0%,rgb(31 122 95 / 0) 55%),linear-gradient(160deg,var(--emerald-950) 0%,var(--emerald-900) 100%);
  --banner-bg:var(--emerald-900);

  /* Type */
  --font-sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --font-mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --weight-body:450; --weight-ui:500; --weight-heading:550;
  /* size / line-height / tracking, as measured */
  --type-display:48px;  --line-display:1.05; --track-display:-0.05em;   /* h1 48/50.4 -2.4px */
  --type-display-m:38px;                                                /* h1 at <=640px */
  --type-h2-xl:48px;    --line-h2-xl:1.2;                               /* centred section headings */
  --type-h2-l:38px;     --line-h2-l:1.1;  --track-h2-l:-0.04em;         /* dark-section headings */
  --type-h2:28px;       --line-h2:1.2;    --track-h2:-0.04em;           /* standard section heading */
  --type-h3-l:24px;     --line-h3-l:1.1;
  --type-h3:21px;       --line-h3:1.4;    --track-h3:-0.03em;
  --type-h4:19px;
  --type-lead:17px;     --line-lead:1.4;  --track-lead:0.0025em;
  --type-body:15px;     --line-body:1.4;  --track-body:0.0025em;
  --type-small:13px;    --line-small:1.4;
  --type-micro:11px;
  --type-nav:16px;
  --type-stat:64px;  /* Geist Mono numerals; size estimated from rendering, not read */

  /* Space: sections use 80/96/128/160/192; components a 4px base */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px; --space-6:24px; --space-8:32px;
  --space-10:40px; --space-12:48px; --space-16:64px; --space-20:80px; --space-24:96px; --space-32:128px; --space-40:160px; --space-48:192px;

  /* Layout */
  --container:1400px; --gutter:20px; --grid-gap:24px; --header-h:56px; --banner-h:36px;

  /* Shape */
  --radius-xs:2px; --radius-sm:4px; --radius:6px; --radius-md:8px; --radius-pill:9999px;
  --shadow-btn:0 20px 6px 0 rgb(0 0 0 / 0),0 13px 5px 0 rgb(0 0 0 / .01),0 7px 4px 0 rgb(0 0 0 / .03),0 3px 3px 0 rgb(0 0 0 / .05),0 1px 2px 0 rgb(0 0 0 / .06);
  --shadow-float:0 24px 48px -12px rgb(9 10 12 / .18);

  /* Motion */
  --ease:cubic-bezier(.16,1,.3,1); --motion-fast:150ms; --motion-base:250ms;
  --ease-out:cubic-bezier(.22,1,.36,1);   /* Quartr nav/panels, .35s */
  --ease-drawer:cubic-bezier(.32,.72,0,1);
  --ease-pop:cubic-bezier(.34,1.56,.64,1);
  --motion-nav:350ms; --motion-reveal:900ms; --motion-pill:500ms;

  /* Breakpoints (Quartr/Tailwind): 640 768 1024 1280 1536 — reference only */
}
@media (max-width:768px){ :root{ --gutter:16px; } }

/* Dark theme (Quartr dark canvas, measured on quartr.com/edge). theme.js sets data-theme; the media query covers no-JS. */
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:var(--grey-900); --bg-tint:var(--grey-800); --bg-warm:var(--grey-700);
  --text:var(--grey-25); --text-reading:rgb(251 252 252 / .95); --text-muted:rgb(251 252 252 / .7); --text-subtle:rgb(251 252 252 / .45);
  --border:var(--grey-600); --border-strong:var(--grey-500); --placeholder:var(--grey-700);
  --dark-bg:var(--grey-800); --dark-border:var(--grey-500); --dark-placeholder:var(--grey-700);
  --action-bg:var(--grey-25); --action-fg:var(--grey-800); --action-bg-hover:var(--grey-100);
  --error:#f97066; --error-bg:rgb(240 68 56 / .12);
  --surface:var(--grey-800); --hover-bg:rgb(255 255 255 / .06);
  --pill-bg:rgb(30 32 35 / .8); --pill-ring:0 0 0 1px rgb(255 255 255 / .08),0 2px 8px 0 rgb(0 0 0 / .4);
  --panel-shadow:0 0 0 1px rgb(255 255 255 / .08),0 16px 40px -8px rgb(0 0 0 / .6);
  --label-bg:rgb(9 10 12 / .6); --focus-glow:rgb(255 255 255 / .12); --logo-filter:invert(1);
    --accent:var(--emerald-400); --accent-strong:var(--emerald-200); --accent-fg:var(--grey-900); --accent-soft:rgb(52 211 153 / .12);
    --glow-emerald:linear-gradient(180deg,#165c4b 0%,#123632 55%,var(--grey-800) 100%);
    --glow-mint:linear-gradient(180deg,#1f4f43 0%,#18302c 55%,var(--grey-800) 100%);
    --glow-gold:linear-gradient(180deg,#5b4a24 0%,#2e2a1f 55%,var(--grey-800) 100%);
    --glow-text:var(--grey-25); --glow-text-muted:rgb(251 252 252 / .72);
    --cta-bg:radial-gradient(120% 140% at 100% 100%,#1b6650 0%,rgb(27 102 80 / 0) 55%),linear-gradient(160deg,#071d1b 0%,var(--emerald-950) 100%);
    --banner-bg:var(--emerald-950);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme]){
    color-scheme:dark;
    --bg:var(--grey-900); --bg-tint:var(--grey-800); --bg-warm:var(--grey-700);
    --text:var(--grey-25); --text-reading:rgb(251 252 252 / .95); --text-muted:rgb(251 252 252 / .7); --text-subtle:rgb(251 252 252 / .45);
    --border:var(--grey-600); --border-strong:var(--grey-500); --placeholder:var(--grey-700);
    --dark-bg:var(--grey-800); --dark-border:var(--grey-500); --dark-placeholder:var(--grey-700);
    --action-bg:var(--grey-25); --action-fg:var(--grey-800); --action-bg-hover:var(--grey-100);
    --error:#f97066; --error-bg:rgb(240 68 56 / .12);
    --surface:var(--grey-800); --hover-bg:rgb(255 255 255 / .06);
    --pill-bg:rgb(30 32 35 / .8); --pill-ring:0 0 0 1px rgb(255 255 255 / .08),0 2px 8px 0 rgb(0 0 0 / .4);
    --panel-shadow:0 0 0 1px rgb(255 255 255 / .08),0 16px 40px -8px rgb(0 0 0 / .6);
    --label-bg:rgb(9 10 12 / .6); --focus-glow:rgb(255 255 255 / .12); --logo-filter:invert(1);
    --accent:var(--emerald-400); --accent-strong:var(--emerald-200); --accent-fg:var(--grey-900); --accent-soft:rgb(52 211 153 / .12);
    --glow-emerald:linear-gradient(180deg,#165c4b 0%,#123632 55%,var(--grey-800) 100%);
    --glow-mint:linear-gradient(180deg,#1f4f43 0%,#18302c 55%,var(--grey-800) 100%);
    --glow-gold:linear-gradient(180deg,#5b4a24 0%,#2e2a1f 55%,var(--grey-800) 100%);
    --glow-text:var(--grey-25); --glow-text-muted:rgb(251 252 252 / .72);
    --cta-bg:radial-gradient(120% 140% at 100% 100%,#1b6650 0%,rgb(27 102 80 / 0) 55%),linear-gradient(160deg,#071d1b 0%,var(--emerald-950) 100%);
    --banner-bg:var(--emerald-950);
  }
}
