/* PurpleRail theme: Ecomstat house design (Sparked token architecture, Inter + Montserrat,
   self-hosted) filled with the PurpleRail palette. Loaded first on every page; page
   stylesheets only use these tokens. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/static/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/static/fonts/inter-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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/static/fonts/montserrat-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: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/static/fonts/montserrat-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 {
  /* HSL triplets, used as hsl(var(--x)) or hsl(var(--x) / .16) for tints */
  --background: 250 30% 98%;
  --foreground: 250 16% 10%;
  --card: 0 0% 100%;
  --primary: 255 67% 50%;          /* #5B2BD6 */
  --primary-strong: 255 72% 42%;
  --primary-foreground: 0 0% 100%;
  --band: 257 44% 14%;             /* #1D1433, dark brand band */
  --secondary: 250 30% 96%;
  --muted: 250 20% 94%;
  --muted-foreground: 250 8% 40%;
  --border: 250 15% 89%;
  --input: 250 15% 86%;
  --ring: 255 67% 50%;
  --success: 158 78% 27%;
  --warning: 35 100% 27%;
  --destructive: 4 74% 40%;
  --radius: 0.625rem;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* names the page stylesheets already use */
  --purple: hsl(var(--primary));
  --purple-600: hsl(var(--primary-strong));
  --purple-50: hsl(var(--primary) / .07);
  --purple-100: hsl(var(--primary) / .14);
  --ink: hsl(var(--foreground));
  --ink-2: hsl(250 12% 26%);
  --muted: hsl(var(--muted-foreground));
  --line: hsl(var(--border));
  --bg: hsl(var(--background));
  --ok: hsl(var(--success));
  --ok-50: hsl(var(--success) / .09);
  --warn: hsl(var(--warning));
  --warn-50: hsl(38 100% 50% / .10);
  --bad: hsl(var(--destructive));
  --bad-50: hsl(var(--destructive) / .08);

  --shadow-sm: 0 1px 2px hsl(250 30% 20% / .06);
  --shadow-md: 0 1px 2px hsl(250 30% 20% / .05), 0 8px 24px -12px hsl(250 40% 20% / .18);
  --shadow-lg: 0 2px 4px hsl(250 30% 20% / .04), 0 24px 48px -20px hsl(250 50% 18% / .30);
}

html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-feature-settings: 'cv11', 'ss01'; color: hsl(var(--foreground)); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.01em; }
h1 { font-weight: 700; } h2, h3 { font-weight: 600; }
code, pre, .mono, .address { font-family: var(--mono); }
table, .num, .amount, .total, .amount-due, .big, td.num { font-variant-numeric: tabular-nums; }

/* controls */
input, select, textarea, button { font-family: inherit; }
input, select, textarea { border: 1px solid hsl(var(--input)); border-radius: 8px; background: hsl(var(--card)); color: hsl(var(--foreground)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / .16); }
button:focus-visible, a:focus-visible, [role="tab"]:focus-visible { outline: none; box-shadow: 0 0 0 3px hsl(var(--ring) / .28); }
::selection { background: hsl(var(--primary) / .18); }

/* Demo banner (test deployments): states plainly that this is not a live or regulated service. */
.demo-banner { background: hsl(45 100% 88%); color: hsl(35 100% 20%); font-size: 13px; line-height: 1.4; text-align: center; padding: 7px 14px; border-bottom: 1px solid hsl(42 80% 72%); }
.demo-banner strong { font-weight: 700; }
