/* =========================================================================
   HOURFY — Colors & Type tokens
   Productive minimalism for Brazilian freelancers.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---------------------------------------------------------------------
     COLOR — BRAND
     Indigo is the anchor. Mint is the accent ("time flowing").
     --------------------------------------------------------------------- */
  --indigo-50:  #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;  /* primary anchor */
  --indigo-600: #4f46e5;  /* hover / pressed */
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --indigo-900: #312e81;

  --mint-50:  #ecfdf7;
  --mint-100: #d1fae9;
  --mint-200: #a7f3d0;
  --mint-300: #6ee7b7;
  --mint-400: #34d3a3;   /* accent */
  --mint-500: #14b88a;   /* accent strong */
  --mint-600: #0f9c74;
  --mint-700: #0d7d5c;

  --amber-50:  #fffbeb;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;  /* "valor / energia" support color */

  /* ---------------------------------------------------------------------
     COLOR — NEUTRALS
     Off-white pages, gray text. Same scale as Tailwind gray.
     --------------------------------------------------------------------- */
  --bg-page:    #fafafa;   /* page background */
  --bg-surface: #ffffff;   /* card surface */
  --bg-muted:   #f9fafb;   /* secondary surface */
  --bg-sunken:  #f3f4f6;   /* track / well */

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --fg-1: var(--gray-900);   /* primary text */
  --fg-2: var(--gray-600);   /* secondary text */
  --fg-3: var(--gray-500);   /* tertiary / hints */
  --fg-4: var(--gray-400);   /* placeholders */
  --fg-on-brand: #ffffff;

  --border-subtle: var(--gray-200);
  --border-strong: var(--gray-300);
  --border-focus:  var(--indigo-500);

  /* ---------------------------------------------------------------------
     COLOR — SEMANTIC
     --------------------------------------------------------------------- */
  --success-50:  #f0fdf4;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --success-700: #15803d;

  --warning-50:  #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;

  --danger-50:  #fef2f2;
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --danger-700: #b91c1c;

  --info-50:  #eff6ff;
  --info-500: #3b82f6;
  --info-600: #2563eb;
  --info-700: #1d4ed8;

  /* ---------------------------------------------------------------------
     TYPE — FAMILIES
     Display = Plus Jakarta Sans (humanist warmth, brand voice)
     UI/body = Inter (densest data legibility)
     Mono   = JetBrains Mono (numerals, timers, HH:MM:SS)
     --------------------------------------------------------------------- */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---------------------------------------------------------------------
     TYPE — SCALE  (1.20 minor third, tightened for product UIs)
     --------------------------------------------------------------------- */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   16px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  --text-4xl:  48px;
  --text-5xl:  64px;
  --text-6xl:  80px;

  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;

  /* ---------------------------------------------------------------------
     SPACING — 4px grid
     --------------------------------------------------------------------- */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---------------------------------------------------------------------
     RADII — medium-rounded. No sharp angles, no fully circular boxes.
     --------------------------------------------------------------------- */
  --radius-xs:  4px;   /* badges, small chips */
  --radius-sm:  6px;   /* inputs */
  --radius-md:  8px;   /* buttons */
  --radius-lg:  12px;  /* cards */
  --radius-xl:  16px;  /* hero cards, modals */
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* ---------------------------------------------------------------------
     SHADOWS — soft, low-spread. Never harsh.
     --------------------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 4px 8px -2px rgba(17, 24, 39, 0.06), 0 2px 4px -1px rgba(17, 24, 39, 0.04);
  --shadow-lg: 0 12px 24px -6px rgba(17, 24, 39, 0.10), 0 4px 8px -2px rgba(17, 24, 39, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(17, 24, 39, 0.18);
  --shadow-brand: 0 8px 24px -6px rgba(99, 102, 241, 0.35);

  --ring-focus: 0 0 0 3px rgba(99, 102, 241, 0.25);

  /* ---------------------------------------------------------------------
     LAYOUT
     --------------------------------------------------------------------- */
  --sidebar-w: 208px;
  --header-h:  56px;
  --container-max: 1200px;

  /* ---------------------------------------------------------------------
     MOTION
     --------------------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-med:  200ms;
  --dur-slow: 320ms;
}

/* ===========================================================================
   SEMANTIC TYPE — drop-in classes used across cards, slides, UI kits.
   =========================================================================== */
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-5xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--fg-1);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--fg-1);
}
.h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--fg-1);
}
.body-lg {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--fg-2);
}
.body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--fg-1);
}
.body-sm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--fg-2);
}
.caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
}
.timer-display {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-5xl);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--fg-1);
}

/* Base resets used by previews & UI kits */
.hourfy-base {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--fg-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
