/* revCUT design tokens */
:root {
  /* Brand */
  --brand-50:  #FEFCE8;
  --brand-100: #FEF9C3;
  --brand-200: #FEF08A;
  --brand-300: #FDE047;
  --brand-400: #FACC15;
  --brand-500: #EAB308;  /* primary brand accent */
  --brand-600: #CA8A04;
  --brand-700: #A16207;
  --brand-800: #854D0E;
  --brand-900: #713F12;

  /* Neutral (slate-tinted greys) */
  --n-0:   #FFFFFF;
  --n-25:  #FBFBFC;
  --n-50:  #F8F9FB;
  --n-100: #F1F3F6;
  --n-150: #E7EAEF;
  --n-200: #DDE1E7;
  --n-300: #C4CAD3;
  --n-400: #9AA1AE;
  --n-500: #6B7280;
  --n-600: #4B5563;
  --n-700: #374151;
  --n-800: #1F2937;
  --n-900: #0F172A;
  --n-950: #060912;

  /* Semantic */
  --success:  #10B981;
  --success-bg: #ECFDF5;
  --warning:  #F59E0B;
  --warning-bg: #FFFBEB;
  --danger:   #EF4444;
  --danger-bg:  #FEF2F2;
  --info:     #3B82F6;
  --info-bg:    #EFF6FF;

  /* Surfaces */
  --bg:        var(--n-50);
  --surface:   var(--n-0);
  --surface-2: var(--n-25);
  --border:    var(--n-150);
  --border-strong: var(--n-200);
  --text:      var(--n-900);
  --text-muted:var(--n-500);
  --text-soft: var(--n-600);

  /* Radii */
  --r-2: 4px;
  --r-3: 6px;
  --r-4: 8px;
  --r-5: 10px;
  --r-6: 12px;
  --r-8: 16px;
  --r-10: 20px;
  --r-full: 9999px;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);

  /* Type */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-ui:      'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--n-100);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11", "tnum";
}

/* Common reset for the prototype */
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* Utility */
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); letter-spacing: -0.01em; }

/* Scrollbar (thin) */
.scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-thin::-webkit-scrollbar-thumb { background: var(--n-200); border-radius: 8px; }
.scroll-thin::-webkit-scrollbar-track { background: transparent; }

/* Wordmark */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.wordmark .dot { color: var(--brand-500); }

/* Card primitive */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-6);
  box-shadow: var(--shadow-sm);
}

/* Btn */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-4);
  font-weight: 600; font-size: 14px; line-height: 1; transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--n-900); color: var(--n-0); }
.btn-primary:hover { background: var(--n-800); }
.btn-accent { background: var(--brand-500); color: var(--n-900); }
.btn-accent:hover { background: var(--brand-400); }
.btn-secondary { background: var(--n-100); color: var(--n-900); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--n-150); }
.btn-ghost { color: var(--text-soft); }
.btn-ghost:hover { background: var(--n-100); color: var(--text); }
.btn-destructive { background: var(--danger); color: white; }
.btn-destructive:hover { filter: brightness(.95); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: var(--r-3); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: var(--r-5); }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600; line-height: 1.2;
  background: var(--n-100); color: var(--n-700);
}
.badge-success { background: var(--success-bg); color: #047857; }
.badge-warning { background: var(--warning-bg); color: #B45309; }
.badge-danger  { background: var(--danger-bg);  color: #B91C1C; }
.badge-info    { background: var(--info-bg);    color: #1D4ED8; }
.badge-brand   { background: var(--brand-100);  color: var(--brand-800); }

/* Input */
.input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: var(--r-4); font-size: 14px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--n-900); box-shadow: 0 0 0 3px rgba(15,23,42,.08); }
.input::placeholder { color: var(--n-400); }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); }
.tab { padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--text-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tab.active { color: var(--text); border-bottom-color: var(--n-900); }
.tab:hover:not(.active) { color: var(--text); }

/* Divider */
.divider { height: 1px; background: var(--border); }

/* KPI */
.kpi-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.kpi-value { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }

/* Hover lift */
.lift { transition: transform .15s, box-shadow .15s; }
.lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Image placeholder */
.img-ph {
  background: linear-gradient(135deg, var(--n-150), var(--n-100));
  display: flex; align-items: center; justify-content: center;
  color: var(--n-400); font-size: 12px; font-weight: 500;
}
