/* Talent Shares on the web: the one token set (design audit, October 18, 2026,
   System board). Read by site.css (every static page) and by the checkout app
   (frontend/checkout/src/index.css imports this file), so the site and checkout
   share one palette, one motion curve and one focus ring.

   Follows the device: dark unless the device asks for light. The checkout
   also sets data-theme on <html>; it wins over the media query either way.

   Every colour exists twice: --rgb-<name> as space-separated channels (for
   Tailwind's alpha and rgb(... / a)), and --<name> as the ready colour.
   Contrast is on the page ground: ink 17:1, body 10.6:1, muted 6.0:1,
   violet text 6.1:1, teal text 5.9:1, gold 6.7:1. Never #3DDBC9 text on
   light (1.72:1). Gold is the founding hundred only. Text on a violet or
   gradient fill is always white (5.2:1 or better). */

:root{
  color-scheme:dark;
  --rgb-bg:5 5 8; --rgb-bg-deep:2 2 4; --rgb-surface:17 17 23; --rgb-surface-2:28 28 36; --rgb-field:22 22 29;
  --rgb-ink:245 245 247; --rgb-body:198 198 205; --rgb-muted:154 154 163; --rgb-inverse:5 5 8;
  --rgb-violet:154 142 240; --rgb-violet-fill:109 91 208; --rgb-teal:61 219 201; --rgb-teal-fill:14 124 116;
  --rgb-gold:217 180 92; --rgb-gold-fill:176 138 46; --rgb-danger:255 105 125; --rgb-danger-fill:205 36 60; --rgb-warn:255 159 10;
  --rgb-hair:160 150 230;
  --glass:rgba(255,255,255,.06); --glass-strong:rgba(20,20,28,.55); --menu:rgba(30,30,40,.78);
  --hair:rgba(160,150,230,.22); --line:rgba(160,150,230,.12); --tint:rgba(154,142,240,.12); --thumb:rgba(154,142,240,.24);
  --glass-edge:rgba(255,255,255,.14); --shadow:0 12px 40px rgba(0,0,0,.30);
  --g1:#FFFFFF; --g2:#B9A9FF; --g3:#5FE0D0;
  --au1:rgba(109,91,208,.42); --au2:rgba(14,124,116,.30);
  --card-ink:#14121F; --card-paper:#FBFAFE;
}
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]){
    color-scheme:light;
    --rgb-bg:246 245 251; --rgb-bg-deep:236 234 245; --rgb-surface:255 255 255; --rgb-surface-2:239 237 247; --rgb-field:255 255 255;
    --rgb-ink:20 18 31; --rgb-body:58 56 70; --rgb-muted:94 92 107; --rgb-inverse:255 255 255;
    --rgb-violet:91 71 201; --rgb-violet-fill:109 91 208; --rgb-teal:11 107 100; --rgb-teal-fill:14 124 116;
    --rgb-gold:110 82 18; --rgb-gold-fill:126 95 23; --rgb-danger:196 49 47; --rgb-danger-fill:196 49 47; --rgb-warn:176 80 0;
    --rgb-hair:91 71 201;
    --glass:rgba(255,255,255,.66); --glass-strong:rgba(255,255,255,.72); --menu:rgba(255,255,255,.86);
    --hair:rgba(91,71,201,.18); --line:rgba(20,16,40,.10); --tint:rgba(91,71,201,.08); --thumb:#FFFFFF;
    --glass-edge:rgba(255,255,255,.7); --shadow:0 12px 40px rgba(40,30,90,.14);
    --g1:#2A1F6E; --g2:#5B47C9; --g3:#0B7C74;
    --au1:rgba(109,91,208,.18); --au2:rgba(14,124,116,.14);
  }
}
/* The checkout's explicit switch: the same two sets. */
:root[data-theme="light"]{
  color-scheme:light;
  --rgb-bg:246 245 251; --rgb-bg-deep:236 234 245; --rgb-surface:255 255 255; --rgb-surface-2:239 237 247; --rgb-field:255 255 255;
  --rgb-ink:20 18 31; --rgb-body:58 56 70; --rgb-muted:94 92 107; --rgb-inverse:255 255 255;
  --rgb-violet:91 71 201; --rgb-violet-fill:109 91 208; --rgb-teal:11 107 100; --rgb-teal-fill:14 124 116;
  --rgb-gold:110 82 18; --rgb-gold-fill:126 95 23; --rgb-danger:196 49 47; --rgb-danger-fill:196 49 47; --rgb-warn:176 80 0;
  --rgb-hair:91 71 201;
  --glass:rgba(255,255,255,.66); --glass-strong:rgba(255,255,255,.72); --menu:rgba(255,255,255,.86);
  --hair:rgba(91,71,201,.18); --line:rgba(20,16,40,.10); --tint:rgba(91,71,201,.08); --thumb:#FFFFFF;
  --glass-edge:rgba(255,255,255,.7); --shadow:0 12px 40px rgba(40,30,90,.14);
  --g1:#2A1F6E; --g2:#5B47C9; --g3:#0B7C74;
  --au1:rgba(109,91,208,.18); --au2:rgba(14,124,116,.14);
}

/* Tier colours (tier-tints spec), the same four as TIER_BANDS in the app and
   --tier-* in the Admin Console. One set, both modes; Standard is untinted. */
:root{--tier-silver:#C3C8D1;--tier-gold:#CDB97F;--tier-obsidian:#7B6CC0;--tier-black:#5A5A6A}

:root{
  /* Ready colours */
  --bg:rgb(var(--rgb-bg)); --bg-deep:rgb(var(--rgb-bg-deep)); --surface:rgb(var(--rgb-surface)); --surface-2:rgb(var(--rgb-surface-2)); --field:rgb(var(--rgb-field));
  --ink:rgb(var(--rgb-ink)); --body:rgb(var(--rgb-body)); --muted:rgb(var(--rgb-muted));
  --violet:rgb(var(--rgb-violet)); --violet-fill:rgb(var(--rgb-violet-fill)); --teal:rgb(var(--rgb-teal)); --teal-fill:rgb(var(--rgb-teal-fill));
  --gold:rgb(var(--rgb-gold)); --danger:rgb(var(--rgb-danger));
  --primary:linear-gradient(95deg,#6D5BD0,#0E7C74);
  --grad:linear-gradient(100deg,var(--g1) 0%,var(--g2) 55%,var(--g3) 100%);

  /* Radii: field 12 · tile 22 · film 24 · sheet 26 · pill 999 */
  --r-field:12px; --r-tile:22px; --r-film:24px; --r-sheet:26px; --r-pill:999px;

  /* Motion. Entrances: 34px up, 700ms, (.16,1,.3,1), 80ms stagger, fired at
     12% inside the screen. Controls: (.32,.72,0,1), 220 to 320ms. Press .97. */
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-ctl:cubic-bezier(.32,.72,0,1);
  --rv-y:34px; --rv-dur:700ms; --stagger:80ms;
  --ctl-dur:280ms; --press:.97;

  /* Type */
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Arial,sans-serif;
  --tap:44px;
}

/* One focus ring everywhere: it follows the capsule's own radius. */
:focus-visible{outline:2px solid var(--violet);outline-offset:3px}
