/* ==========================================================================
   BespokeLMS Marketing Site — Design Tokens
   All CSS custom properties live here. Never hardcode values elsewhere.
   ========================================================================== */

:root {

  /* ── Colour: Brand ──────────────────────────────────────────────────── */
  --color-navy: #0F2B4C;
  --color-teal: #1A8C8C;

  /* ── Colour: Ink & Surface (Salix palette) ──────────────────────────── */
  --color-ink: #181818;
  /* near-black for headings */
  --color-surface: #F4F4F5;
  /* light grey page bg */
  --color-surface-2: #EBEBEC;
  /* slightly deeper — card borders, dividers */

  /* ── Colour: Secondary ──────────────────────────────────────────────── */
  --color-slate: #4A6380;
  --color-mist: #E8F0F7;
  --color-cloud: #F5F8FC;
  --color-white: #FFFFFF;

  /* ── Colour: Feedback ───────────────────────────────────────────────── */
  --color-success: #1A7A4A;
  --color-warning: #B86800;
  --color-error: #B91C1C;

  /* ── Colour: Tints (for backgrounds, cards) ─────────────────────────  */
  --color-navy-5: rgba(15, 43, 76, 0.05);
  --color-navy-10: rgba(15, 43, 76, 0.10);
  --color-teal-10: rgba(26, 140, 140, 0.10);
  --color-teal-20: rgba(26, 140, 140, 0.20);

  /* ── Colour: Bento accents ──────────────────────────────────────────── */
  --color-bento-red: #E84C6B;
  --color-bento-blue: #4A6EE8;
  --color-bento-dark: #191C2A;

  /* ── Typography ─────────────────────────────────────────────────────── */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --font-size-display: 4rem;
  /* 64px — hero headlines */
  --font-size-h1: 2.5rem;
  /* 40px — page titles */
  --font-size-h2: 2.25rem;
  /* 36px — section headings */
  --font-size-h3: 1.5rem;
  /* 24px — sub-section headings */
  --font-size-h4: 1.25rem;
  /* 20px — card titles */
  --font-size-lg: 1.125rem;
  /* 18px — lead paragraph */
  --font-size-base: 1rem;
  /* 16px — body */
  --font-size-sm: 0.875rem;
  /* 14px — captions, footnotes */
  --font-size-label: 0.75rem;
  /* 12px — tags, UI labels */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.75;

  /* ── Spacing (4px base unit) ────────────────────────────────────────── */
  --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-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ── Border Radius ──────────────────────────────────────────────────── */
  --radius-sm: 4px;
  /* tags, badges */
  --radius-base: 8px;
  /* inputs */
  --radius-lg: 12px;
  /* cards */
  --radius-xl: 20px;
  /* feature blocks */
  --radius-2xl: 28px;
  /* large panels */
  --radius-full: 100px;
  /* pill buttons & badges */

  /* ── Shadows ────────────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.05);
  --shadow-raised: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.16);

  /* ── Transitions ────────────────────────────────────────────────────── */
  --transition-base: 150ms ease;
  --transition-slow: 300ms ease;

  /* ── Layout ─────────────────────────────────────────────────────────── */
  --max-width-site: 1200px;
  --max-width-prose: 680px;
  --gutter: var(--space-6);

  /* ── Button Tokens ──────────────────────────────────────────────────── */

  /* Base geometry */
  --btn-radius: var(--radius-full);
  --btn-border-width: 1.5px;
  --btn-letter-spacing: -0.01em;
  --btn-font-weight: 600;

  /* Padding per size */
  --btn-pad-sm: 7px 16px;
  --btn-pad-md: 11px 24px;
  --btn-pad-lg: 14px 32px;
  --btn-pad-xl: 17px 40px;

  /* Font size per size */
  --btn-font-sm: 0.8125rem;
  --btn-font-md: 0.9375rem;
  --btn-font-lg: 1rem;
  --btn-font-xl: 1.0625rem;

  /* Primary — charcoal/ink */
  --btn-primary-bg: #181818;
  --btn-primary-fg: #ffffff;
  --btn-primary-border: #181818;
  --btn-primary-bg-hover: #2a2a2a;
  --btn-primary-border-hover: #2a2a2a;
  --btn-primary-bg-active: #111111;
  --btn-primary-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.22), 0 1px 4px rgba(0, 0, 0, 0.12);
  --btn-primary-shadow-active: 0 1px 3px rgba(0, 0, 0, 0.18);
  --btn-primary-focus-ring: 0 0 0 3px rgba(24, 24, 24, 0.20);

  /* Secondary — outlined, white fill */
  --btn-secondary-bg: #ffffff;
  --btn-secondary-fg: #181818;
  --btn-secondary-border: #DDDDE0;
  --btn-secondary-bg-hover: #F4F4F5;
  --btn-secondary-border-hover: #181818;
  --btn-secondary-bg-active: #EBEBEC;
  --btn-secondary-shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.08);
  --btn-secondary-focus-ring: 0 0 0 3px rgba(24, 24, 24, 0.12);

  /* Teal / brand accent */
  --btn-teal-bg: #1A8C8C;
  --btn-teal-fg: #ffffff;
  --btn-teal-border: #1A8C8C;
  --btn-teal-bg-hover: #157a7a;
  --btn-teal-border-hover: #157a7a;
  --btn-teal-bg-active: #126868;
  --btn-teal-shadow-hover: 0 4px 20px rgba(26, 140, 140, 0.32);
  --btn-teal-focus-ring: 0 0 0 3px rgba(26, 140, 140, 0.28);

  /* Ghost — transparent background, text only */
  --btn-ghost-fg: #181818;
  --btn-ghost-fg-muted: #4A6380;
  --btn-ghost-bg-hover: rgba(0, 0, 0, 0.04);
  --btn-ghost-bg-active: rgba(0, 0, 0, 0.08);
  --btn-ghost-focus-ring: 0 0 0 3px rgba(24, 24, 24, 0.12);

  /* Danger */
  --btn-danger-bg: #B91C1C;
  --btn-danger-fg: #ffffff;
  --btn-danger-border: #B91C1C;
  --btn-danger-bg-hover: #9f1818;
  --btn-danger-border-hover: #9f1818;
  --btn-danger-bg-active: #861414;
  --btn-danger-shadow-hover: 0 4px 16px rgba(185, 28, 28, 0.30);
  --btn-danger-focus-ring: 0 0 0 3px rgba(185, 28, 28, 0.24);

  /* Lift animation */
  --btn-lift-hover: translateY(-1px);
  --btn-lift-active: translateY(0px);

  /* Shared transition */
  --btn-transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 120ms ease,
    opacity 150ms ease;

}

/* Responsive token overrides */
@media (max-width: 640px) {
  :root {
    --gutter: var(--space-4);
    --font-size-display: 2.5rem;
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
  }
}