/* Roundesk design tokens — canonical values derived from the current landing page. */
:root {
  /* Brand and text */
  --rd-navy-950: #0c2245;
  --rd-navy-900: #10254a;
  --rd-blue-700: #153b70;
  --rd-blue-600: #1d548f;
  --rd-blue-500: #3478bf;
  --rd-blue-100: #d9ebff;
  --rd-blue-50: #eef6ff;

  /* Neutrals and surfaces */
  --rd-white: #ffffff;
  --rd-canvas: #f6f9fc;
  --rd-canvas-blue: #f6faff;
  --rd-ink-muted: #5f6f85;
  --rd-border: #e4eaf1;
  --rd-border-blue: #cbdff4;

  /* Utility colours: use only for real product states */
  --rd-success: #2b916e;
  --rd-success-bg: #e8f8ee;
  --rd-warning: #a56a19;
  --rd-warning-bg: #fff8ee;
  --rd-error: #b55360;
  --rd-error-bg: #fbecef;

  /* Semantic aliases */
  --rd-text: var(--rd-navy-950);
  --rd-text-secondary: var(--rd-ink-muted);
  --rd-action: var(--rd-navy-950);
  --rd-action-hover: var(--rd-blue-700);
  --rd-focus: var(--rd-blue-500);
  --rd-surface: var(--rd-white);
  --rd-surface-soft: var(--rd-canvas);

  /* Type */
  --rd-font: "Manrope", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rd-text-xs: 0.75rem;
  --rd-text-sm: 0.875rem;
  --rd-text-md: 1rem;
  --rd-text-lg: 1.125rem;
  --rd-text-xl: 1.375rem;
  --rd-text-h3: clamp(1.5rem, 2.2vw, 2rem);
  --rd-text-h2: clamp(2.5rem, 4vw, 3.625rem);
  --rd-text-h1: clamp(3rem, 5.5vw, 4.5rem);

  /* 4px spacing grid */
  --rd-space-1: 0.25rem;
  --rd-space-2: 0.5rem;
  --rd-space-3: 0.75rem;
  --rd-space-4: 1rem;
  --rd-space-5: 1.25rem;
  --rd-space-6: 1.5rem;
  --rd-space-8: 2rem;
  --rd-space-10: 2.5rem;
  --rd-space-12: 3rem;
  --rd-space-16: 4rem;
  --rd-space-20: 5rem;
  --rd-space-24: 6rem;

  /* Shape and depth */
  --rd-radius-sm: 8px;
  --rd-radius-md: 12px;
  --rd-radius-lg: 16px;
  --rd-radius-xl: 20px;
  --rd-radius-pill: 999px;
  --rd-shadow-card: 0 10px 26px #173e6a09;
  --rd-shadow-panel: 0 28px 55px #0e376252;
  --rd-shadow-widget: 0 14px 27px #154f8b40, 0 3px 7px #154f8b1c;

  /* Layout and motion */
  --rd-shell-max: 1360px;
  --rd-content-max: 1312px;
  --rd-nav-height: 54px;
  --rd-motion-fast: 160ms;
  --rd-motion-standard: 300ms;
  --rd-motion-enter: 700ms;
  --rd-ease: cubic-bezier(.16, .8, .25, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --rd-motion-fast: 0ms;
    --rd-motion-standard: 0ms;
    --rd-motion-enter: 0ms;
  }
}

/* Product semantic colors in dark mode. Keep the source logo colors unchanged. */
:root[data-theme="dark"] {
  --rd-canvas: #0e2139;
  --rd-canvas-blue: #122943;
  --rd-border: #2a405b;
  --rd-border-blue: #36506e;
  --rd-blue-50: #172e49;
  --rd-blue-100: #1c3b5e;
  --rd-blue-700: #b4d9fb;
  --rd-blue-600: #9ec7ee;
  --rd-blue-500: #9ec7ee;
  --rd-ink-muted: #a1b6ce;
  --rd-text: #f1f6fc;
  --rd-text-secondary: var(--rd-ink-muted);
  --rd-action: #9ec7ee;
  --rd-action-hover: #c3def8;
  --rd-focus: #9ec7ee;
  --rd-surface: #10233d;
  --rd-surface-soft: var(--rd-canvas);
  --rd-success: #8cdbc2;
  --rd-success-bg: #123c36;
  --rd-warning: #edc078;
  --rd-warning-bg: #3b301d;
  --rd-error: #f0b1bb;
  --rd-error-bg: #3e2230;
}
