/* Service Suite design tokens — "your AI team's control room at night".
   Obsidian base, holographic glass, hairlines, aurora (mint → cyan → violet) ONLY for hero moments.
   The customer's brand color (--brand from theme.js) is the accent inside the aurora system.
   DARK IS THE DEFAULT ALWAYS (no prefers-color-scheme); light only via [data-theme="light"]. */
:root {
  color-scheme: dark;
  /* brand (overridden at runtime by applyBrand) */
  --brand: #3dffb5; --brand-2: #8b7cff; --brand-ink: #05060a; --brand-rgb: 61, 255, 181; --brand-glow: #3dffb555; --brand-soft: #0c2a20; --brand-text: #3dffb5;

  /* aurora — hero moments only */
  --au-1: #3dffb5; --au-2: #2ee6ff; --au-3: #8b7cff;
  --au-1-rgb: 61, 255, 181; --au-2-rgb: 46, 230, 255; --au-3-rgb: 139, 124, 255;
  --aurora: linear-gradient(100deg, var(--au-1) 0%, var(--au-2) 48%, var(--au-3) 100%);
  --aurora-text: linear-gradient(100deg, #c6ffea 0%, var(--au-1) 24%, var(--au-2) 56%, var(--au-3) 100%);

  /* agents */
  --ag-nova: #8b7cff; --ag-rex: #ffa53d; --ag-lyra: #ff4fd8; --ag-ava: #3dffb5; --ag-max: #2ee6ff;

  /* surfaces */
  --bg: #05060a; --bg-2: #080a10; --bg-3: #0c0f17;
  --panel: rgba(13, 16, 25, .62); --panel-solid: #0d1019; --panel-2: rgba(22, 26, 38, .55); --panel-hi: rgba(34, 40, 58, .55);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012) 40%, rgba(255, 255, 255, .018));
  --edge: rgba(255, 255, 255, .1); --edge-hi: rgba(255, 255, 255, .17);
  --line: rgba(255, 255, 255, .065); --line-2: rgba(255, 255, 255, .1); --line-hi: rgba(255, 255, 255, .18);
  --scrim: rgba(2, 3, 6, .7);
  --grid-line: rgba(255, 255, 255, .032);

  /* text */
  --ink: #f3f5fa; --ink-2: #aab2c4; --ink-3: #828ba0; --ink-4: #6f788d;

  /* semantic */
  --ok: #3dffb5; --ok-rgb: 61, 255, 181; --amber: #ffb547; --amber-rgb: 255, 181, 71; --red: #ff5c7a; --red-rgb: 255, 92, 122;
  --info: #2ee6ff; --info-rgb: 46, 230, 255; --violet: #8b7cff; --teal: #2ee6ff;

  /* type */
  --f-ui: "Inter", "Inter Fallback", "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: "Sora", "Sora Fallback", "Inter", "Heebo", system-ui, sans-serif;
  --f-display: "Sora", "Sora Fallback", "Inter", "Heebo", system-ui, sans-serif;
  --f-he: "Heebo", "Inter", system-ui, sans-serif;
  --fs-hero: clamp(72px, 11vw, 128px); --fs-xl: clamp(28px, 3.4vw, 40px); --fs-lg: 20px; --fs-md: 15px; --fs-sm: 13px; --fs-xs: 11.5px;

  /* shape + depth */
  --r-xs: 8px; --r-sm: 12px; --r: 20px; --r-lg: 26px; --r-pill: 999px;
  --sh-1: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 48px -28px rgba(0, 0, 0, .9);
  --sh-2: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .95);
  --blur: saturate(160%) blur(22px);

  /* space (4/8 grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  --gutter: 16px; --side-w: 252px; --top-h: 64px; --tab-h: 68px;

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 160ms; --t: 240ms; --t-slow: 520ms;
}

/* Light — explicit toggle only. "Porcelain lab": white glass, ink-dark type, aurora deepened for contrast. */
:root[data-theme="light"] {
  color-scheme: light;
  --au-1: #00b97a; --au-2: #0aa5c7; --au-3: #6a58f0;
  --au-1-rgb: 0, 185, 122; --au-2-rgb: 10, 165, 199; --au-3-rgb: 106, 88, 240;
  --aurora-text: linear-gradient(100deg, #008f5f 0%, #08889f 50%, #5440e0 100%);
  --bg: #f2f3f7; --bg-2: #eceef4; --bg-3: #ffffff;
  --panel: rgba(255, 255, 255, .74); --panel-solid: #ffffff; --panel-2: rgba(245, 246, 250, .92); --panel-hi: rgba(232, 235, 243, .95);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .5));
  --edge: rgba(12, 18, 40, .09); --edge-hi: rgba(12, 18, 40, .16);
  --line: rgba(12, 18, 40, .075); --line-2: rgba(12, 18, 40, .12); --line-hi: rgba(12, 18, 40, .22);
  --scrim: rgba(20, 24, 40, .32);
  --grid-line: rgba(12, 18, 40, .05);
  --ink: #0b0e17; --ink-2: #3a4256; --ink-3: #555e73; --ink-4: #646c80;
  --ok: #00935f; --ok-rgb: 0, 147, 95; --amber: #a86400; --amber-rgb: 168, 100, 0; --red: #d02a4a; --red-rgb: 208, 42, 74; --info: #077f9c; --info-rgb: 7, 127, 156; --violet: #5440e0; --teal: #077f9c;
  --ag-ava: #00a36b; --ag-max: #0896b5; --ag-rex: #d97c00; --ag-lyra: #cf2aad; --ag-nova: #6a58f0;
  --sh-1: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(12, 18, 40, .05), 0 18px 40px -26px rgba(12, 18, 40, .3);
  --sh-2: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 70px -30px rgba(12, 18, 40, .4);
}
/* ---- Background themes (01/12): the business picks its surface palette; the brand color stays the accent.
   Set on <html data-bg="…"> by core/theme.js (+ web/boot-bg.js before first paint). Dark themes ride on the dark base,
   light themes also set data-theme="light" and refine the porcelain base. Contrast is verified by docs/qa/design/bg-contrast.mjs.
   Ambient glow tints: --amb-a/--amb-b (top-right aurora), --amb-c (page wash). */
:root[data-bg="navy"] {
  --bg: #0b1428; --bg-2: #0e1830; --bg-3: #122039;
  --panel: rgba(22, 36, 68, .62); --panel-solid: #15223f; --panel-2: rgba(32, 48, 86, .55); --panel-hi: rgba(46, 66, 112, .55);
  --edge: rgba(170, 200, 255, .13); --edge-hi: rgba(170, 200, 255, .22);
  --line: rgba(170, 200, 255, .08); --line-2: rgba(170, 200, 255, .13); --line-hi: rgba(170, 200, 255, .22);
  --scrim: rgba(4, 8, 20, .7); --grid-line: rgba(170, 200, 255, .04);
  --ink: #f3f6fd; --ink-2: #b6c2dc; --ink-3: #96a4c2; --ink-4: #8090b0;
  --amb-a-rgb: 46, 150, 255; --amb-b-rgb: 139, 124, 255; --amb-c-rgb: 46, 120, 255; --amb-o: .16; --amb-c-o: .09;
}
:root[data-bg="emerald"] {
  --bg: #061a17; --bg-2: #08201c; --bg-3: #0c2823;
  --panel: rgba(16, 48, 41, .6); --panel-solid: #0f2c26; --panel-2: rgba(24, 62, 53, .55); --panel-hi: rgba(36, 82, 70, .55);
  --edge: rgba(160, 255, 220, .12); --edge-hi: rgba(160, 255, 220, .2);
  --line: rgba(160, 255, 220, .075); --line-2: rgba(160, 255, 220, .12); --line-hi: rgba(160, 255, 220, .2);
  --scrim: rgba(2, 10, 8, .7); --grid-line: rgba(160, 255, 220, .04);
  --ink: #f1faf6; --ink-2: #b0cdc3; --ink-3: #8fb0a5; --ink-4: #7b9c91;
  --amb-a-rgb: 61, 255, 181; --amb-b-rgb: 46, 200, 230; --amb-c-rgb: 61, 230, 170; --amb-o: .14; --amb-c-o: .07;
}
:root[data-bg="plum"] {
  --bg: #160d22; --bg-2: #1b1129; --bg-3: #221632;
  --panel: rgba(46, 28, 66, .6); --panel-solid: #261937; --panel-2: rgba(58, 36, 82, .55); --panel-hi: rgba(78, 50, 108, .55);
  --edge: rgba(225, 190, 255, .13); --edge-hi: rgba(225, 190, 255, .22);
  --line: rgba(225, 190, 255, .08); --line-2: rgba(225, 190, 255, .13); --line-hi: rgba(225, 190, 255, .22);
  --scrim: rgba(10, 4, 16, .7); --grid-line: rgba(225, 190, 255, .04);
  --ink: #f8f3fd; --ink-2: #c8b9da; --ink-3: #a997bf; --ink-4: #9481ab;
  --amb-a-rgb: 196, 110, 255; --amb-b-rgb: 255, 92, 180; --amb-c-rgb: 160, 100, 255; --amb-o: .15; --amb-c-o: .08;
}
:root[data-bg="espresso"] {
  --bg: #17120e; --bg-2: #1c1612; --bg-3: #241d17;
  --panel: rgba(48, 39, 31, .6); --panel-solid: #282019; --panel-2: rgba(60, 49, 39, .55); --panel-hi: rgba(80, 66, 52, .55);
  --edge: rgba(255, 225, 190, .12); --edge-hi: rgba(255, 225, 190, .2);
  --line: rgba(255, 225, 190, .075); --line-2: rgba(255, 225, 190, .12); --line-hi: rgba(255, 225, 190, .2);
  --scrim: rgba(10, 6, 3, .7); --grid-line: rgba(255, 225, 190, .035);
  --ink: #f8f3ee; --ink-2: #cdc0b2; --ink-3: #b4a594; --ink-4: #9a8b7a;
  --amb-a-rgb: 255, 165, 61; --amb-b-rgb: 255, 110, 80; --amb-c-rgb: 255, 170, 90; --amb-o: .12; --amb-c-o: .06;
}
/* Ivory: warm paper light (on top of the light base) */
:root[data-theme="light"][data-bg="ivory"] {
  --bg: #f5f0e6; --bg-2: #efe8db; --bg-3: #fffcf6;
  --panel: rgba(255, 252, 245, .8); --panel-solid: #fffcf6; --panel-2: rgba(249, 244, 234, .94); --panel-hi: rgba(238, 230, 214, .95);
  --glass: linear-gradient(180deg, rgba(255, 253, 248, .9), rgba(255, 253, 248, .5));
  --edge: rgba(70, 45, 15, .1); --edge-hi: rgba(70, 45, 15, .18);
  --line: rgba(70, 45, 15, .08); --line-2: rgba(70, 45, 15, .13); --line-hi: rgba(70, 45, 15, .24);
  --scrim: rgba(40, 28, 12, .3); --grid-line: rgba(70, 45, 15, .05);
  --ink: #1d1710; --ink-2: #4a3f31; --ink-3: #5e5243; --ink-4: #6f6252;
  --amb-a-rgb: 230, 150, 60; --amb-b-rgb: 210, 120, 140; --amb-c-rgb: 230, 160, 80; --amb-o: .14; --amb-c-o: .08;
  --sh-1: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(60, 40, 10, .06), 0 18px 40px -26px rgba(60, 40, 10, .3);
  --sh-2: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 70px -30px rgba(60, 40, 10, .4);
}
:root[dir="rtl"] { --f-ui: "Heebo", "Inter", system-ui, sans-serif; --f-display: "Heebo", "Sora", system-ui, sans-serif; }

@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Sora Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 112%; ascent-override: 92%; descent-override: 26%; line-gap-override: 0%; }
