/* ============================================================
   Smart Escrow — Design System Tokens
   Banca moderna minimalista · Azul fintech con acento lima
   ============================================================ */

:root {
  /* Color · Brand */
  --se-blue-50:  oklch(0.97 0.012 250);
  --se-blue-100: oklch(0.94 0.024 250);
  --se-blue-200: oklch(0.88 0.040 250);
  --se-blue-300: oklch(0.78 0.070 250);
  --se-blue-400: oklch(0.62 0.110 250);
  --se-blue-500: oklch(0.48 0.130 250);
  --se-blue-600: oklch(0.40 0.130 250);
  --se-blue-700: oklch(0.32 0.120 250);   /* Primario */
  --se-blue-800: oklch(0.24 0.090 250);
  --se-blue-900: oklch(0.17 0.060 250);
  --se-blue-950: oklch(0.12 0.040 250);

  /* Color · Accent (guiño al lima del logo original) */
  --se-lime-100: oklch(0.96 0.06 130);
  --se-lime-300: oklch(0.90 0.14 130);
  --se-lime-500: oklch(0.82 0.20 130);
  --se-lime-600: oklch(0.72 0.20 130);
  --se-lime-700: oklch(0.55 0.16 130);

  /* Color · Neutrals (cool, fintech) */
  --se-ink:      oklch(0.18 0.012 250);
  --se-ink-2:    oklch(0.32 0.014 250);
  --se-ink-3:    oklch(0.50 0.012 250);
  --se-ink-4:    oklch(0.68 0.010 250);
  --se-line:     oklch(0.92 0.008 250);
  --se-line-2:   oklch(0.96 0.006 250);
  --se-bg:       oklch(0.995 0.002 250);
  --se-bg-2:     oklch(0.98 0.005 250);
  --se-bg-3:     oklch(0.96 0.008 250);
  --se-white:    #ffffff;

  /* Color · Semantic */
  --se-success:  oklch(0.62 0.14 150);
  --se-warning:  oklch(0.72 0.14 75);
  --se-danger:   oklch(0.58 0.18 25);
  --se-info:     var(--se-blue-500);

  /* Type */
  --se-font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --se-font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --se-font-display: 'Geist', ui-sans-serif, system-ui, sans-serif;

  /* Size scale */
  --se-text-xs:  11px;
  --se-text-sm:  12.5px;
  --se-text-base: 14px;
  --se-text-md:  15px;
  --se-text-lg:  17px;
  --se-text-xl:  20px;
  --se-text-2xl: 24px;
  --se-text-3xl: 30px;
  --se-text-4xl: 38px;
  --se-text-5xl: 52px;
  --se-text-6xl: 72px;
  --se-text-7xl: 96px;

  /* Radii */
  --se-r-xs: 4px;
  --se-r-sm: 6px;
  --se-r-md: 8px;
  --se-r-lg: 12px;
  --se-r-xl: 16px;
  --se-r-2xl: 20px;
  --se-r-full: 999px;

  /* Shadows */
  --se-shadow-xs: 0 1px 2px oklch(0.18 0.06 250 / 0.04);
  --se-shadow-sm: 0 1px 3px oklch(0.18 0.06 250 / 0.06), 0 1px 2px oklch(0.18 0.06 250 / 0.04);
  --se-shadow-md: 0 4px 12px oklch(0.18 0.06 250 / 0.06), 0 2px 4px oklch(0.18 0.06 250 / 0.04);
  --se-shadow-lg: 0 12px 32px oklch(0.18 0.06 250 / 0.10), 0 4px 8px oklch(0.18 0.06 250 / 0.04);
  --se-shadow-xl: 0 24px 60px oklch(0.18 0.06 250 / 0.14);
  --se-ring:      0 0 0 3px oklch(0.48 0.130 250 / 0.18);

  /* Spacing — keep system simple */
  --se-s-1: 4px;
  --se-s-2: 8px;
  --se-s-3: 12px;
  --se-s-4: 16px;
  --se-s-5: 20px;
  --se-s-6: 24px;
  --se-s-8: 32px;
  --se-s-10: 40px;
  --se-s-12: 48px;
  --se-s-16: 64px;
  --se-s-20: 80px;
  --se-s-24: 96px;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--se-font-sans);
  font-size: var(--se-text-base);
  line-height: 1.5;
  color: var(--se-ink);
  background: var(--se-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
input, textarea, select, button { font-family: inherit; }

/* ============================================================
   Brand mark (the "checkbox + S" logo)
   ============================================================ */
.se-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--se-blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.se-mark::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 3px;
  border: 1.6px solid var(--se-lime-500);
}
.se-mark::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--se-lime-500);
  border-bottom: 2px solid var(--se-lime-500);
  transform: rotate(-45deg) translate(1px, -1px);
  top: 9px;
  left: 8px;
}
.se-mark.lg { width: 40px; height: 40px; border-radius: 10px; }
.se-mark.lg::before { inset: 7px; border-width: 2px; }
.se-mark.lg::after { width: 16px; height: 9px; top: 13px; left: 12px; border-width: 2.5px; }

.se-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--se-ink);
  font-size: 15px;
}
.se-wordmark .light { font-weight: 500; color: var(--se-ink-3); }

/* ============================================================
   Buttons
   ============================================================ */
.se-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  height: 36px;
  border-radius: var(--se-r-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--se-ink);
  font-size: var(--se-text-base);
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: 120ms ease;
  white-space: nowrap;
}
.se-btn:hover { background: var(--se-bg-3); }
.se-btn.primary {
  background: var(--se-blue-700);
  color: var(--se-white);
  border-color: var(--se-blue-800);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.12), var(--se-shadow-xs);
}
.se-btn.primary:hover { background: var(--se-blue-800); }
.se-btn.secondary {
  background: var(--se-white);
  border-color: var(--se-line);
  color: var(--se-ink);
  box-shadow: var(--se-shadow-xs);
}
.se-btn.secondary:hover { background: var(--se-bg-2); border-color: var(--se-blue-200); }
.se-btn.ghost { color: var(--se-ink-2); }
.se-btn.lime {
  background: var(--se-lime-500);
  color: var(--se-blue-900);
  border-color: var(--se-lime-600);
  font-weight: 600;
}
.se-btn.lime:hover { background: var(--se-lime-600); }
.se-btn.lg { height: 44px; padding: 0 20px; font-size: var(--se-text-md); }
.se-btn.sm { height: 28px; padding: 0 10px; font-size: var(--se-text-sm); }
.se-btn.icon { padding: 0; width: 36px; }
.se-btn.icon.sm { width: 28px; }

/* ============================================================
   Cards / surfaces
   ============================================================ */
.se-card {
  background: var(--se-white);
  border: 1px solid var(--se-line);
  border-radius: var(--se-r-lg);
  box-shadow: var(--se-shadow-xs);
}
.se-card.flat { box-shadow: none; }
.se-card.elev { box-shadow: var(--se-shadow-sm); }

/* ============================================================
   Pills / badges
   ============================================================ */
.se-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--se-r-full);
  font-size: var(--se-text-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--se-bg-3);
  color: var(--se-ink-2);
  border: 1px solid var(--se-line);
}
.se-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.se-pill.success { background: oklch(0.96 0.05 150); color: var(--se-success); border-color: oklch(0.88 0.10 150); }
.se-pill.warning { background: oklch(0.97 0.05 75); color: oklch(0.50 0.13 75); border-color: oklch(0.90 0.10 75); }
.se-pill.danger  { background: oklch(0.96 0.05 25); color: var(--se-danger); border-color: oklch(0.90 0.10 25); }
.se-pill.info    { background: var(--se-blue-50); color: var(--se-blue-700); border-color: var(--se-blue-100); }
.se-pill.lime    { background: var(--se-lime-100); color: var(--se-lime-700); border-color: var(--se-lime-300); }

/* ============================================================
   Inputs
   ============================================================ */
.se-input, .se-select {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--se-r-md);
  border: 1px solid var(--se-line);
  background: var(--se-white);
  font-size: var(--se-text-base);
  color: var(--se-ink);
  outline: none;
  transition: 120ms ease;
  width: 100%;
}
.se-input:focus, .se-select:focus {
  border-color: var(--se-blue-400);
  box-shadow: var(--se-ring);
}
.se-label {
  font-size: var(--se-text-sm);
  color: var(--se-ink-2);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

/* ============================================================
   Type utilities
   ============================================================ */
.se-mono { font-family: var(--se-font-mono); font-feature-settings: 'tnum'; }
.se-tnum { font-variant-numeric: tabular-nums; }
.se-display {
  font-family: var(--se-font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.se-eyebrow {
  font-size: var(--se-text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--se-ink-3);
}

/* Scrollbars (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--se-line); border-radius: 5px; border: 2px solid var(--se-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--se-ink-4); }

/* Selection */
::selection { background: var(--se-lime-300); color: var(--se-blue-900); }
