/* ==========================================================================
   FinXure design tokens  (fx-tokens.css)
   The ONE place colours, fonts, radii, shadows and type sizes are defined.
   Change a value here and the whole site follows. Never write a raw colour
   anywhere else — add a token here instead.

   Palette, radii and type scale adapted from the Astryx "Neutral" theme
   (Meta Platforms, Inc., MIT licence) — see THIRD_PARTY_NOTICES.txt.
   Font: Figtree (SIL Open Font License 1.1), self-hosted from /assets/fonts/.
   ========================================================================== */

/* Figtree is a variable font: one file covers weights 400–800. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Neutral ramp */
  --n-0:#000; --n-5:#111; --n-10:#1b1b1b; --n-15:#262626; --n-20:#303030; --n-30:#474747;
  --n-40:#5e5e5e; --n-50:#777; --n-60:#919191; --n-80:#c6c6c6; --n-85:#d4d4d4; --n-90:#e2e2e2;
  --n-95:#f1f1f1; --n-100:#fff;

  /* Surfaces and text */
  --bg-body:    #f1f1f1;   /* quiet panels, sidebar, inset areas */
  --bg-surface: #ffffff;   /* page surface */
  --bg-card:    #ffffff;
  --bg-muted:   #f1f1f1;
  --text:       #000000;
  --text-2:     #474747;
  --text-3:     #777777;
  --accent:     #1b1b1b;   /* primary actions, active nav */
  --on-accent:  #ffffff;
  --border:        rgba(0,0,0,.09);
  --border-strong: #d4d4d4;

  /* Status (colour is never the only signal — pair with text or an icon) */
  --info:    #0074e2;  --info-bg:    #b9d7ff55;  --info-text:    #0067ce;
  --success: #2f7d33;  --success-bg: #b7e2b666;  --success-text: #2f7d33;
  --warning: #b07b00;  --warning-bg: #ffe9a866;  --warning-text: #8a5f00;
  --error:   #c0262c;  --error-bg:   #ffc4be66;  --error-text:   #c0262c;

  /* Shape */
  --r-inner: .375rem; --r-element: .625rem; --r-container: .75rem; --r-page: 1.75rem; --r-full: 9999px;
  --shadow-low:  0 1px 2px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-med:  0 4px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.06);
  --shadow-high: 0 24px 60px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.06);

  /* Type */
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);

  /* Layers */
  --z-sticky: 30; --z-fab: 40; --z-nav: 45; --z-popover: 60; --z-sheet: 70; --z-toast: 90;

  /* Layout */
  --sb-w: 252px; --sb-w-mini: 76px; --top-h: 62px; --content-w: 1180px;
}

/* Dark values are defined but the toggle ships after the whole app is migrated. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-body:#111111; --bg-surface:#262626; --bg-card:#1b1b1b; --bg-muted:#1b1b1b;
  --text:#fff; --text-2:#9e9e9e; --text-3:#777; --accent:#f1f1f1; --on-accent:#111;
  --border: rgba(255,255,255,.10); --border-strong:#3b3b3b;
  --info:#6d9cfe;    --info-bg:#00458c55;    --info-text:#88bcff;
  --success:#90ca90; --success-bg:#17631e55; --success-text:#90ca90;
  --warning:#f0c24b; --warning-bg:#7a560055; --warning-text:#f0c24b;
  --error:#ff9890;   --error-bg:#8a001155;   --error-text:#ff9890;
  --shadow-low:  0 1px 2px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.05);
  --shadow-med:  0 6px 18px rgba(0,0,0,.5);
  --shadow-high: 0 24px 60px rgba(0,0,0,.6);
}
