/* Hallmark · genre: modern-minimal (sales tool) · macrostructure: Workbench · theme: studied-DNA "SSC Glass" (source: url https://ssc.hotleadbkk.com/)
 * paper: pastel violet-peach wash under frosted white glass panels · ink #1A1C2E · navy #193478 headings and actions · pink #FC4171 accent
 * display: Outfit (Latin, light) + Anuphan (Thai) · body: Anuphan · mono: Geist Mono
 * nav: glass side rail → glass bottom tabs · design-system: design.md · designed-as-app · studied: yes
 * axes: light / geometric-sans + Thai humanist / cool navy + warm pink */

:root {
  color-scheme: light;

  /* Surfaces. The page is a pastel wash (body::before in app.css) seen through frosted white glass.
     --color-panel stays opaque white for inputs, the ring's hole and anything printed; --color-glass is the frosted card. */
  --color-paper:      oklch(96.4% 0.014 300);  /* #F4F1FB lavender-white, behind the wash */
  --color-paper-2:    oklch(94.5% 0.018 295);  /* quiet fills, segmented tracks */
  --color-panel:      oklch(99.6% 0.003 300);
  --color-glass:      oklch(100% 0 0 / 0.62);
  --color-glass-2:    oklch(100% 0 0 / 0.82);  /* buttons, chips, active menu item */
  --color-glass-edge: oklch(100% 0 0 / 0.75);  /* the bright hairline round every glass panel */
  --color-wash-1:     oklch(72% 0.13 295 / 0.55);  /* violet bloom, top left */
  --color-wash-2:     oklch(68% 0.11 275 / 0.45);  /* periwinkle bloom, top right */
  --color-wash-3:     oklch(85% 0.08 40 / 0.50);   /* peach bloom, bottom right */
  --color-wash-4:     oklch(65% 0.22 10 / 0.20);   /* pink bloom, bottom left */
  --color-wash-from:  oklch(94.5% 0.030 300);
  --color-wash-mid:   oklch(97% 0.012 320);
  --color-wash-to:    oklch(97.5% 0.020 50);
  --color-rule:       oklch(89% 0.022 290);    /* violet-grey hairline inside panels */
  --color-track:      oklch(92% 0.020 290);
  --color-grid:       oklch(96.4% 0.014 300);
  --color-ink:        oklch(23% 0.035 280);    /* #1A1C2E */
  --color-ink-2:      oklch(40% 0.045 275);    /* #424864 */
  --color-muted:      oklch(54% 0.045 275);    /* #6B7291 */
  /* The feature band (money summary, sign-in cover) is a glass sheet over its own violet-peach bloom, never a dark block */
  --color-night:      oklch(100% 0 0 / 0.55);
  --color-night-2:    oklch(89% 0.022 290);
  --color-night-ink:  oklch(23% 0.035 280);
  --color-night-mute: oklch(40% 0.045 275);
  --color-logo-bg:    oklch(100% 0 0);

  /* Accent: SSC navy for headings, primary actions, the active menu item and progress. Filled navy carries white text.
     Pink (--color-accent-2) is the brand spark: eyebrows, the chevron, focus rings, the short rule under page titles.
     Red as a state still means late (--color-late), a deeper red than the pink. */
  --color-accent:      oklch(34% 0.120 265);   /* #193478 */
  --color-accent-deep: oklch(30% 0.110 265);   /* #102963 */
  --color-accent-soft: oklch(94% 0.030 285);
  --color-accent-2:    oklch(65% 0.220 10);    /* #FC4171 */
  --color-accent-2-soft: oklch(80% 0.120 5);   /* #FF7FA3, the far end of pink gradients */
  --color-violet:      oklch(55% 0.190 290);   /* #7C5CE0, icon tiles */
  --color-violet-soft: oklch(94.5% 0.030 300);
  --color-violet-ink:  oklch(42% 0.110 300);
  --color-teal-soft:   oklch(94% 0.040 190);   /* follow-up call badge */
  --color-teal-ink:    oklch(40% 0.080 190);
  --color-btn-from:    oklch(32% 0.050 280);   /* #2B2F52 dark pill gradient */
  --color-btn-to:      oklch(20% 0.035 280);   /* #15172B */
  --color-warm-soft:   oklch(95% 0.045 80);
  --color-on-accent:   oklch(99% 0 0);
  --color-warm:        oklch(52% 0.120 62);
  --color-cold:        oklch(48% 0.080 250);
  --color-cold-soft:   oklch(95% 0.020 250);
  --color-late:        oklch(52% 0.190 25);
  --color-late-soft:   oklch(95% 0.030 20);
  --color-money:       oklch(48% 0.120 145);
  --color-money-soft:  oklch(93.5% 0.060 140);
  --color-focus:       oklch(60% 0.220 10);    /* pink ring, 3:1 on the glass */

  /* Chart series (categorical, fixed order). Validated with the dataviz palette script on white:
     lightness band, chroma floor, CVD ΔE 8.6 (protan), normal-vision ΔE 24.4, contrast ≥ 3:1. */
  --color-series-1:    oklch(55% 0.12 160);   /* leads in */
  --color-series-2:    oklch(58% 0.16 40);    /* first calls */
  /* Scorecard axes (categorical, fixed order: sales, activity, quality, speed, temperature). Validated with the dataviz
     palette script on white and on the paper: CVD ΔE 9.1 worst adjacent (protan), normal-vision ΔE 19.6. Three sit
     under 3:1 against the surface, so every mark carries its number and the page has a table view. */
  --color-ax-sales:       #2a78d6;
  --color-ax-activity:    #eb6834;
  --color-ax-quality:     #1baf7a;
  --color-ax-speed:       #eda100;
  --color-ax-temperature: #e87ba4;
  /* Channels inside the activity bars (call keeps the activity colour); checked with the dataviz palette validator */
  --color-ch-call:  #eb6834;
  --color-ch-line:  #0e9f8c;
  --color-ch-email: #7c5ce0;

  /* Outfit has no Thai: Latin and figures in headlines come from Outfit, Thai from Anuphan */
  --font-display: "Outfit", "Anuphan", system-ui, sans-serif;
  --font-sans: "Anuphan", system-ui, sans-serif;
  --font-mono: "Geist Mono", "Anuphan", ui-monospace, Menlo, monospace;

  --space-3xs: 0.25rem; --space-2xs: 0.5rem; --space-xs: 0.75rem; --space-sm: 1rem;
  --space-md: 1.5rem;   --space-lg: 2rem;    --space-xl: 3rem;     --space-2xl: 4.5rem;

  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem; --text-md: 1.125rem;
  --text-lg: 1.375rem; --text-xl: 1.75rem; --text-2xl: 2.25rem; --text-3xl: 3.25rem;
  --text-display: clamp(2.25rem, 4.2vw, 3.25rem);

  --radius-sm: 12px; --radius-card: 18px; --radius-cover: 26px; --radius-pill: 999px;
  --blur-glass: blur(20px) saturate(165%);
  --shadow-glass: 0 10px 30px oklch(45% 0.12 290 / 0.12), inset 0 1px 0 oklch(100% 0 0 / 0.75);
  --shadow-lift: 0 18px 40px oklch(45% 0.12 290 / 0.18);
  --shadow-btn: 0 10px 24px oklch(20% 0.035 280 / 0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-short: 180ms;
  --dur-mid: 600ms;
}
