/* GAMIS Design System — colors_and_type.css
   Loaded by every preview, UI kit, and slide HTML.
   Substitution flag: Manrope is a placeholder for the unknown brand font.
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* ---- Brand & semantic colors ---- */
  --accent: #00A6A0;
  --accent-deep: #00726E;
  --accent-wash: #E6F5F4;

  --ink: #0E1A2B;
  --ink-soft: #3A4A60;
  --slate: #6B7A8F;
  --hairline: #E5EAF0;
  --surface: #FFFFFF;
  --canvas: #F7F8FA;

  --success: #1B9E5F;
  --warning: #E0A917;
  --danger: #C8362C;

  /* Aliases used by components */
  --fg-1: var(--ink);
  --fg-2: var(--ink-soft);
  --fg-3: var(--slate);
  --bg-1: var(--surface);
  --bg-2: var(--canvas);
  --bg-tint: var(--accent-wash);
  --border: var(--hairline);
  --accent-hover: var(--accent-deep);

  /* ---- Type ---- */
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-15: 15px;
  --fs-16: 16px; --fs-18: 18px; --fs-20: 20px; --fs-24: 24px;
  --fs-28: 28px; --fs-32: 32px; --fs-40: 40px; --fs-48: 48px;
  --fs-64: 64px; --fs-80: 80px; --fs-96: 96px;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* ---- Spacing (4px base) ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px;

  /* ---- Radii ---- */
  --r-sm: 6px;
  --r-md: 8px;     /* buttons, inputs */
  --r-lg: 16px;    /* cards */
  --r-xl: 20px;    /* feature tiles */
  --r-2xl: 24px;   /* hero containers */
  --r-pill: 999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(14,26,43,.06);
  --shadow-md: 0 8px 24px rgba(14,26,43,.08);
  --shadow-lg: 0 24px 60px rgba(14,26,43,.18);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-slow: 320ms;

  --container: 1200px;
}

/* ---- Base / semantic styles ---- */
html, body {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: var(--surface);
  font-size: 16px;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, .h1 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: var(--lh-tight);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg-1);
  text-wrap: balance;
}
h2, .h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: var(--lh-snug);
  font-weight: 800;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--fg-1);
  text-wrap: balance;
}
h3, .h3 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: var(--lh-snug);
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 0;
}
h4, .h4 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}
h5, .h5 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
}
h6, .h6 {
  /* Used on the marketing site for stat captions ("lending", "customers") */
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--fg-2);
  margin: 0;
}

p, .body {
  font-size: 17px;
  line-height: var(--lh-normal);
  color: var(--fg-2);
  margin: 0;
}
.body-lg { font-size: 19px; line-height: 1.55; color: var(--fg-2); }
.body-sm { font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.caption { font-size: 12px; line-height: 1.4; color: var(--fg-3); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.stat-num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-1);
}

.mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { text-decoration: underline; }

hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

::selection { background: var(--accent-wash); color: var(--ink); }
