/*
 * Nigerian Crypto Tax Calculator - Design System
 * Version: 1.0.0
 * Quality Bar: Stripe/Linear/Vercel level (9.5/10)
 * Last Updated: 2026-01-02
 */

/* ============================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */

:root {
  /* ===== Colors: Primary Brand (Nigerian Green) ===== */
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-900: #064e3b;

  /* ===== Colors: Neutrals (Gray Scale) ===== */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* ===== Colors: Semantic ===== */
  --success: var(--green-500);
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* ===== Typography: Font Families ===== */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* ===== Typography: Font Sizes (Mobile-first) ===== */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;

  /* ===== Typography: Line Heights ===== */
  --line-xs: 16px;
  --line-sm: 20px;
  --line-base: 24px;
  --line-lg: 28px;
  --line-xl: 28px;
  --line-2xl: 32px;
  --line-3xl: 36px;
  --line-4xl: 40px;
  --line-5xl: 1;

  /* ===== Typography: Font Weights ===== */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ===== Spacing (4px base unit) ===== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ===== Border Radius ===== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* ===== Shadows ===== */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-green: 0 4px 12px rgba(5, 150, 105, 0.3);

  /* ===== Transitions ===== */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* ===== Z-index Layers ===== */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal: 40;
  --z-tooltip: 50;
}

/* ===== Desktop Adjustments (Typography) ===== */
@media (min-width: 768px) {
  :root {
    --text-5xl: 56px;
    --text-4xl: 42px;
    --text-3xl: 36px;
  }
}

/* ============================================
   2. TYPOGRAPHY SYSTEM
   ============================================ */

body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: var(--line-base);
  color: var(--gray-900);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.display {
  font-size: var(--text-5xl);
  line-height: var(--line-5xl);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.heading-1 {
  font-size: var(--text-4xl);
  line-height: var(--line-4xl);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
}

.heading-2 {
  font-size: var(--text-2xl);
  line-height: var(--line-2xl);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
}

.heading-3 {
  font-size: var(--text-xl);
  line-height: var(--line-xl);
  font-weight: var(--weight-semibold);
  color: var(--gray-800);
}

.body {
  font-size: var(--text-base);
  line-height: var(--line-base);
  font-weight: var(--weight-normal);
  color: var(--gray-600);
}

.body-sm {
  font-size: var(--text-sm);
  line-height: var(--line-sm);
  font-weight: var(--weight-normal);
  color: var(--gray-500);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.result-number {
  font-size: var(--text-4xl);
  line-height: var(--line-4xl);
  font-weight: var(--weight-bold);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   3. COMPONENT LIBRARY
   ============================================ */

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  font-family: var(--font-ui);
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--green-700);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--green-900);
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background-color: white;
  color: var(--green-600);
  border: 2px solid var(--green-600);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--green-50);
}

.btn-lg {
  padding: var(--space-6) var(--space-12);
  font-size: var(--text-lg);
  min-height: 56px;
}

.btn-sm {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  min-height: 36px;
}

/* ===== Inputs ===== */
.input {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-ui);
  color: var(--gray-900);
  background-color: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  min-height: 48px;
}

.input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.input:disabled {
  background-color: var(--gray-100);
  cursor: not-allowed;
}

.input-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.input-with-prefix {
  padding-left: 36px;
}

.input-error {
  border-color: var(--error);
}

.input-error:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ===== Cards ===== */
.card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.card-elevated {
  box-shadow: var(--shadow-md);
}

.card-outlined {
  border: 1px solid var(--gray-200);
}

.card-highlighted {
  border-left: 4px solid var(--green-600);
  background: linear-gradient(135deg, var(--green-50) 0%, white 100%);
}

.card-hover {
  transition: all var(--transition-base);
}

.card-hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background-color: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}

.badge-info {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-live {
  position: relative;
  padding-left: var(--space-6);
}

.badge-live::before {
  content: '';
  position: absolute;
  left: var(--space-3);
  width: 8px;
  height: 8px;
  background-color: var(--green-500);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== Progress Bars ===== */
.progress-bar-track {
  width: 100%;
  height: 8px;
  background-color: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--green-500);
  border-radius: var(--radius-full);
  transition: width 1s var(--transition-smooth);
}

/* ===== Tooltips ===== */
.tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--gray-200);
  color: var(--gray-600);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: help;
  transition: all var(--transition-fast);
}

.tooltip-trigger:hover {
  background-color: var(--green-700);
  color: white;
}

.tooltip-content {
  position: absolute;
  z-index: var(--z-tooltip);
  max-width: 320px;
  padding: var(--space-4);
  background-color: white;
  border: 2px solid var(--green-600);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  transform: translateY(-8px);
}

.tooltip-trigger:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tooltip-header {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.tooltip-body {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.tooltip-example {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--gray-700);
  background-color: var(--gray-50);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}

/* ===== Accordion ===== */
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: var(--space-4);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  background-color: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.accordion-header:hover {
  border-color: var(--green-500);
  background-color: var(--green-50);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease-out;
}

.accordion-content[aria-hidden="false"] {
  max-height: 1000px;
  padding-top: var(--space-4);
}

/* ============================================
   4. ANIMATIONS
   ============================================ */

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.count-up {
  animation: countUp 0.6s var(--transition-smooth);
}

.slide-in {
  animation: slideIn 0.5s var(--transition-smooth) forwards;
}

.fade-in {
  animation: fadeIn 0.3s var(--transition-smooth);
}

/* ============================================
   LOADING STATES & SKELETONS
   ============================================ */

/* Skeleton Screen Shimmer */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 0%,
    var(--gray-100) 50%,
    var(--gray-200) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-hero {
  height: 180px;
  margin-bottom: var(--space-6);
}

.skeleton-stat {
  height: 120px;
}

.skeleton-text {
  height: 16px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
}

.skeleton-text-lg {
  height: 24px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-sm);
}

/* Calculating Indicator */
.calculating {
  opacity: 0.6;
  position: relative;
  pointer-events: none;
}

.calculating::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Loading Spinner Component */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-top-color: var(--green-600);
  border-radius: 50%;
  animation: spin-center 0.6s linear infinite;
}

@keyframes spin-center {
  to { transform: rotate(360deg); }
}

.loading-spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

/* Progressive Bracket Rendering */
.bracket-bar-container {
  opacity: 0;
  animation: slideInLeft 0.4s ease-out forwards;
}

.bracket-bar-container:nth-child(1) { animation-delay: 0.1s; }
.bracket-bar-container:nth-child(2) { animation-delay: 0.2s; }
.bracket-bar-container:nth-child(3) { animation-delay: 0.3s; }
.bracket-bar-container:nth-child(4) { animation-delay: 0.4s; }
.bracket-bar-container:nth-child(5) { animation-delay: 0.5s; }
.bracket-bar-container:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  max-width: 500px;
  margin: 0 auto;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.6;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.empty-state-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.empty-state-text {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.empty-state-hint {
  font-size: var(--text-sm);
  color: var(--gray-500);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Empty state for bracket visualizer */
.bracket-empty-state {
  padding: var(--space-8);
  text-align: center;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 2px dashed var(--gray-300);
}

.bracket-empty-state p {
  margin: 0;
}

.bracket-empty-state p:first-child {
  margin-bottom: var(--space-3);
}

/* Hide/show empty states based on data */
.has-data .empty-state {
  display: none;
}

.no-data .result-content {
  display: none;
}

/* ============================================
   ERROR STATES & VALIDATION
   ============================================ */

/* Input error states */
.input-error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.input-error-msg {
  color: var(--error);
  font-size: var(--text-xs);
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.input-error-msg::before {
  content: '⚠';
  font-size: var(--text-sm);
}

/* Input warning states */
.input-warning {
  border-color: var(--warning) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
}

.input-warning-msg {
  color: var(--warning);
  font-size: var(--text-xs);
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.input-warning-msg::before {
  content: 'ℹ';
  font-size: var(--text-sm);
}

/* Notification system */
.notification {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  max-width: 400px;
  padding: var(--space-4);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  animation: slideInRight 0.3s ease-out;
}

.notification-error {
  border-left: 4px solid var(--error);
}

.notification-warning {
  border-left: 4px solid var(--warning);
}

.notification-success {
  border-left: 4px solid var(--success);
}

.notification-title {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  color: var(--gray-900);
}

.notification-message {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.5;
}

.notification-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: none;
  border: none;
  font-size: var(--text-lg);
  color: var(--gray-400);
  cursor: pointer;
  padding: var(--space-1);
  line-height: 1;
}

.notification-close:hover {
  color: var(--gray-600);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* ============================================
   5. UTILITY CLASSES
   ============================================ */

/* ===== Spacing Utilities ===== */
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

/* ===== Text Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }

.letter-spacing-wide { letter-spacing: 0.05em; }

/* ===== Color Utilities ===== */
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }

.text-green-500 { color: var(--green-500); }
.text-green-600 { color: var(--green-600); }
.text-green-700 { color: var(--green-700); }

.bg-white { background-color: white; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-green-50 { background-color: var(--green-50); }
.bg-green-600 { background-color: var(--green-600); }
.bg-green-700 { background-color: var(--green-700); }

/* ===== Display Utilities ===== */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.hidden { display: none; }

/* ===== Flexbox Utilities ===== */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ===== Grid Utilities ===== */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===== Width Utilities ===== */
.w-full { width: 100%; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

/* ===== Container ===== */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

/* ============================================
   6. RESPONSIVE UTILITIES
   ============================================ */

/* ===== Mobile (<640px) ===== */
@media (max-width: 639px) {
  .mobile-hidden {
    display: none;
  }
}

/* ===== Tablet (≥640px) ===== */
@media (min-width: 640px) {
  .tablet-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Desktop (≥768px) ===== */
@media (min-width: 768px) {
  .desktop-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================
   7. ACCESSIBILITY
   ============================================ */

/* Focus visible (keyboard navigation) */
.focus-visible:focus {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
}

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

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

/* Utility classes to replace inline styles */
.ml-2 {
  margin-left: var(--space-2);
}

.text-legal {
  font-size: 11px;
}

/* ============================================
   8. PRINT STYLES
   ============================================ */

@media print {
  body {
    background-color: white;
  }

  .no-print {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
}
