/*
 * RVR Pay Hub — foundation tokens.
 * Source of truth: Figma "RVR Pay Hub" variables (file vk9mzzdqjN3LoSZSRReKBj).
 * Names mirror the Figma variable names so design and code stay in sync.
 * Load after Bootstrap: the second block re-points Bootstrap's own variables at these tokens.
 */
:root {
  /* Background */
  --bg-default: #eef3ff;
  --bg-surface: #ffffff;
  --bg-subtle: #d7e0f2;
  --bg-inverse: #0b1f4d;
  --bg-highlight-subtle: #b0f2cb;

  /* Text */
  --text-primary: #05122e;
  --text-secondary: #4f6188;
  --text-disabled: #8599c2;
  --text-link: #0a5baf;
  --text-highlight: #0f7a46;
  --text-on-accent: #ffffff;
  --text-on-inverse: #ffffff;

  /* Accent + status */
  --accent-default: #0c72db;
  --accent-hover: #0a5baf;
  --success-default: #0f7a46;
  --warning-default: #8a5a00;
  --error-default: #c4183c;

  /* Borders */
  --border-default: #8599c2;
  --border-subtle: #d7e0f2;
  --border-focus-on-accent: #05122e;
  --stroke-default: 1px;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Typography */
  --font-family-display: 'Sora', system-ui, sans-serif;
  --font-family-body: 'Manrope', system-ui, sans-serif;
  --font-size-overline: 11px;
  --font-size-caption: 12px;
  --font-size-body-sm: 14px;
  --font-size-body: 16px;
  --font-size-title: 22px;
}

/* Bootstrap 5.3 picks these up everywhere (buttons, links, forms, tables). */
:root {
  --bs-body-font-family: var(--font-family-body);
  --bs-body-color: var(--text-primary);
  --bs-body-color-rgb: 5, 18, 46;
  --bs-secondary-color: var(--text-secondary);
  --bs-primary: var(--accent-default);
  --bs-primary-rgb: 12, 114, 219;
  --bs-success: var(--success-default);
  --bs-success-rgb: 15, 122, 70;
  --bs-danger: var(--error-default);
  --bs-danger-rgb: 196, 24, 60;
  --bs-link-color: var(--text-link);
  --bs-link-color-rgb: 10, 91, 175;
  --bs-link-hover-color: var(--accent-default);
  --bs-link-hover-color-rgb: 12, 114, 219;
  --bs-border-color: var(--border-subtle);
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-md);
  --bs-heading-color: var(--text-primary);
}

.btn-primary {
  --bs-btn-bg: var(--accent-default);
  --bs-btn-border-color: var(--accent-default);
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-family-display);
}

/* Text styles (Figma text styles of the same name) */
.type-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-title);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.type-title-sm {
  font-family: var(--font-family-display);
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.type-overline {
  font-family: var(--font-family-display);
  font-size: var(--font-size-overline);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.type-label {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  line-height: 1.2;
}
.type-label-sm {
  font-family: var(--font-family-body);
  font-size: var(--font-size-caption);
  font-weight: 600;
  line-height: 1.2;
}
.type-body-sm {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  line-height: 1.55;
}
.type-caption {
  font-family: var(--font-family-body);
  font-size: var(--font-size-caption);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
