:root {
  /* Typography */
  --font-heading: "Merriweather", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  font-family: var(--font-body);
  --color-bg: #f5f6f8;
  
  /* Darker Hero Gradient for Trust/Stability */
  --color-hero-start: #059669; /* emerald-600 */
  --color-hero-mid: #0d9488;   /* teal-600 */
  --color-hero-end: #0284c7;   /* sky-600 */
  
  --color-text: #0f172a;
  --color-muted: rgba(15, 23, 42, 0.72);
  --color-border: rgba(15, 23, 42, 0.08);
  --color-card-bg: #ffffff;
  --color-chip-bg: rgba(255, 255, 255, 0.22);
  --color-chip-border: rgba(255, 255, 255, 0.45);
  
  /* Updated Colors & Radius */
  --color-primary: #059669; /* Darker, more trustworthy Emerald-600 */
  --color-primary-dark: #047857; /* Emerald-700 */
  --color-outline: rgba(15, 23, 42, 0.15);
  --color-overlay-bg: rgba(15, 23, 42, 0.45);

  /* Semantic text color aliases */
  --text-primary: var(--color-text);
  --text-secondary: var(--color-muted);
  --text-tertiary: rgba(15, 23, 42, 0.5);
  --border-color: var(--color-border);

  /* Reduced Radius for professionalism */
  --radius-lg: 16px; /* Was 32px */
  --radius-md: 12px; /* Was 16px */
  --radius-sm: 8px;  /* Was 12px */

  /* Z-Index Scale */
  --z-negative: -1;
  --z-base: 0;
  --z-content: 1;    /* Sticky headers, decorations */
  --z-content-elevated: 2; /* Local elevated elements (badges, step numbers) */
  --z-content-overlay: 20; /* Paywall, local overlays */
  --z-content-overlay-mask: 21;
  --z-content-overlay-content: 25;
  --z-sticky-header: 50; 
  --z-fixed: 100;    /* Site Header */
  --z-dropdown: 110; /* Dropdowns above Header */
  --z-modal-backdrop: 900;
  --z-modal: 1000;   /* Modals, Dialogs */
  --z-tooltip: 1100;
  --z-toast: 9999;   /* Highest priority alerts */

  /* Toast / feedback colors */
  --color-success: #10b981;
  --color-success-text: #065f46;
  --color-error: #ef4444;
  --color-error-text: #991b1b;
  --color-info: #3b82f6;
  --color-info-text: #1e40af;
  --color-info-bg: #eff6ff;
  --color-info-bg-light: #f0f9ff;
  --color-info-border: #bfdbfe;
  --color-info-border-light: #bae6fd;
  --color-info-dark: #0284c7;
  --color-info-text-dark: #0369a1;
  --color-info-text-darker: #075985;
  --color-info-text-darkest: #0c4a6e;
  --color-border-light: #e2e8f0;
  --color-bg-subtle: #f8fafc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  min-height: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
}

body {
  line-height: 1.5;
  font-size: 16px;
}

/* Apply Serif font to headings */
h1, h2, h3, h4, h5, h6,
.auth-title,
.dashboard-title,
.cta-title,
.page-title {
  font-family: var(--font-heading);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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