/* ==========================================================================
   Kinpath by Vantiv — design tokens
   Source of truth: Kinpath brand kit (tokens.json). Shared by the website,
   the coalition booking sites, and the app. Components read these variables,
   never raw hex values, so a coalition theme applies automatically.
   ========================================================================== */

:root {
  /* ---- Iris ramp (brand) ---- */
  --iris-50:  #F7F5FF;
  --iris-100: #F1EEFF;
  --iris-200: #DED6FF;
  --iris-300: #C2B3FF;
  --iris-400: #9C85FF;
  --iris-500: #7F63FF;
  --iris-600: #6B4EFF; /* Kinpath Iris. White text 5.1:1 */
  --iris-700: #5639E0;
  --iris-800: #4B33C9;
  --iris-900: #21163F; /* Night plum */

  /* ---- Blush ramp (warm accent) ---- */
  --blush-50:  #FFF5F8;
  --blush-100: #FFE4EC;
  --blush-200: #FFC2D4; /* Blush. Never white text on it */
  --blush-300: #FF9DB8;
  --blush-400: #F2729A;
  --blush-500: #D94D7C;
  --blush-600: #B8335F;
  --blush-700: #8A2348;
  --blush-800: #6B1B38;
  --blush-900: #4A1227;

  /* ---- Warm neutrals ---- */
  --paper:       #FAF8F6; /* Page background */
  --surface:     #FFFFFF; /* Cards, panels */
  --sand:        #F3EFEC; /* Quiet fills, placeholders */
  --line:        #EFEAE6; /* Hairline borders */
  --line-strong: #DDD5CF; /* Input and secondary button borders */
  --ink:         #221B26; /* Body text */
  --ink-strong:  #21163F; /* Headlines */
  --ink-soft:    #4A414C; /* Secondary text */
  --ink-muted:   #6E6570; /* Labels, captions (4.9:1 on paper) */

  /* ---- Themable brand roles (coalitions override these five) ---- */
  --primary:       var(--iris-600);
  --primary-hover: var(--iris-700);
  --primary-tint:  var(--iris-100);
  --brand-dark:    var(--iris-900);
  --accent:        var(--blush-200);
  /* Derived roles */
  --primary-text: var(--iris-800);
  --on-primary:   #FFFFFF;
  --on-accent:    var(--iris-900);
  --accent-tint:  var(--blush-100);
  --accent-text:  var(--blush-700);

  /* ---- Status (fixed for every coalition, never themed) ---- */
  --success: #2E7D46; --success-bg: #EEF7F0; --success-text: #25653A;
  --warning: #9A6410; --warning-bg: #FEF8EC; --warning-text: #7A4F12;
  --danger:  #C2362F; --danger-bg:  #FDF2F1; --danger-text:  #A12C26;
  --info:    #2B6CB0; --info-bg:    #F0F6FC; --info-text:    #245891;

  /* ---- Chart series, in order ---- */
  --chart-1: var(--iris-600);
  --chart-2: var(--blush-500);
  --chart-3: #3B7BC2;
  --chart-4: #D98C14;
  --chart-5: #4FA46C;
  --chart-6: #8C8290;

  /* ---- Typography ---- */
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Marketing scale (fluid between phone and desktop) */
  --text-display:  clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem);  /* 40 → 60px */
  --text-headline: clamp(2rem, 1.5rem + 2vw, 2.625rem);     /* 32 → 42px */
  --text-title:    1.3125rem;  /* 21px */
  --text-lead:     1.1875rem;  /* 19px */
  --text-body:     1rem;       /* 16px */
  --text-small:    0.875rem;   /* 14px */
  --text-caption:  0.8125rem;  /* 13px */
  --text-stat:     2.75rem;    /* 44px */
  /* App scale */
  --text-app-h1: 1.5rem;     /* 24px */
  --text-app-h2: 1.125rem;   /* 18px */
  --text-app-h3: 0.9375rem;  /* 15px */
  --text-app-body: 0.875rem; /* 14px */
  --text-app-small: 0.78125rem; /* 12.5px */
  --text-app-label: 0.6875rem;  /* 11px, uppercase */
  --text-app-data: 0.8125rem;   /* 13px mono */

  --leading-tight: 1.05;
  --leading-heading: 1.15;
  --leading-body: 1.6;
  --tracking-display: -0.035em;
  --tracking-headline: -0.025em;
  --tracking-label: 0.04em;

  /* ---- Spacing (4px scale) ---- */
  --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-24: 96px;

  /* ---- Radius ---- */
  --radius-sm: 6px;    /* App buttons, inputs */
  --radius-md: 8px;    /* App cards, tables */
  --radius-lg: 12px;   /* Marketing buttons, modals */
  --radius-xl: 22px;   /* Marketing cards, photo frames */
  --radius-pill: 999px;

  /* ---- Shadows (resting cards use borders, not shadows) ---- */
  --shadow-sm: 0 1px 2px rgba(33, 22, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(33, 22, 63, 0.12);
  --shadow-lg: 0 24px 48px rgba(33, 22, 63, 0.18);

  /* ---- Layout ---- */
  --container: 1240px;
  --gutter: var(--space-8);
  --focus-ring: 0 0 0 3px var(--primary-tint), 0 0 0 5px var(--primary);
}

/* --------------------------------------------------------------------------
   Coalition theme example. Set on <html> or <body> for a coalition's booking
   site or app tenant: <html data-coalition="mdm">. Only these roles change.
   -------------------------------------------------------------------------- */
[data-coalition="mdm"] {
  --primary:       #145EA2;
  --primary-hover: #0F4C85;
  --primary-tint:  #DCEAF6;
  --primary-text:  #0F4C85;
  --brand-dark:    #094379;
  --accent:        #FCB415;
  --on-accent:     #221B26;
  --accent-tint:   #FCEFD2;
  --accent-text:   #7A4F12;
}

/* --------------------------------------------------------------------------
   Dark theme tokens, reserved for future app use. The website ships light.
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --paper:       #15111A;
  --surface:     #1E1824;
  --sand:        #2A2230;
  --line:        #2E2633;
  --line-strong: #3D3444;
  --ink:         #F3EEF4;
  --ink-strong:  #FFFFFF;
  --ink-soft:    #C9BFCB;
  --ink-muted:   #A398A6;
  --primary-text: #B4A3FF;
}
