:root {
  /* Theme palette from medbill-rcm-site.html (WAIYMM application) */
  --blue: #0b63ce;
  --blue-dark: #084fad;
  --navy: #092b49;
  --footer-navy: #061d32;
  --accent: #18a7e0;
  --light-blue: #f2f8fc;
  --light-gray: #f7f9fc;
  --white: #ffffff;
  --text: #243447;
  --muted: #68788a;
  --border: #e3eaf0;
  --success: #16a085;

  /* Brand / semantic aliases used across components */
  --brand-navy: var(--navy);
  --brand-royal: var(--blue-dark);
  --brand-blue: var(--blue);
  --brand-cyan: var(--accent);
  --brand-teal: #0e7c8a;
  --brand-green: var(--success);
  --brand-light: #cfe8f7;

  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --surface: var(--white);
  --surface-muted: var(--light-gray);
  --surface-tint: var(--light-blue);

  --brand-gradient: linear-gradient(135deg, var(--blue), var(--navy));

  --color-ink: var(--text);
  --color-ink-soft: var(--text);
  --color-teal: var(--accent);
  --color-teal-deep: var(--navy);
  --color-teal-soft: var(--light-blue);
  --color-mist: var(--light-gray);
  --color-paper: var(--white);
  --color-sand: #eef3f7;
  --color-accent: var(--accent);
  --color-accent-soft: #e8f6fc;
  --color-muted: var(--muted);
  --color-line: var(--border);
  --color-success: var(--success);
  --color-danger: #a33b3b;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Type scale — one hierarchy for the whole site */
  --text-h1: clamp(2rem, 3.6vw, 3.05rem);
  --text-h2: clamp(1.65rem, 2.6vw, 2.25rem);
  --text-h3: clamp(1.05rem, 1.4vw, 1.2rem);
  --text-body: 1.0625rem;
  --text-body-sm: 0.9375rem;
  --text-label: 0.8125rem;
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-body: 1.65;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Section rhythm */
  --section-pad-sm: 48px;
  --section-pad-md: 72px;
  --section-pad-lg: 96px;
  --section-gap: 40px;
  --section-header-max: 720px;

  /* Card system */
  --card-pad: 24px;
  --card-pad-compact: 20px;
  --card-gap: 18px;
  --card-radius: var(--radius-md);
  --card-border: 1px solid var(--border);
  --card-shadow: var(--shadow-sm);
  --card-shadow-hover: var(--shadow-md);
  --card-accent: linear-gradient(180deg, var(--blue), var(--accent));

  /* Radius system — keep to these 4 (+ 50% for circles) */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 50%;

  --shadow-sm: 0 1px 2px rgba(9, 43, 73, 0.06);
  --shadow-md: 0 8px 24px rgba(9, 43, 73, 0.08);
  --shadow-lg: 0 15px 45px rgba(9, 43, 73, 0.12);

  /* ~1360–1400 content width on typical desktops */
  --container: 1480px;
  --container-pad: 16px;
  --header-h: 88px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --btn-h: 48px;
  --btn-h-lg: 52px;
}

@media (min-width: 768px) {
  :root {
    --container-pad: 32px;
    --header-h: 104px;
  }
}

@media (min-width: 1200px) {
  :root {
    --container-pad: 40px;
  }
}

@media (min-width: 1440px) {
  :root {
    --container-pad: 40px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 96px;
    --section-pad-lg: 80px;
    --section-pad-md: 64px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 84px;
    --section-pad-lg: 56px;
    --section-pad-md: 48px;
    --section-pad-sm: 40px;
    --container-pad: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
