/* Judith AI — design tokens
 * Single source of truth. Shared by V1, V2, V3.
 * Strict adherence to the brand guide (60-30-10).
 */

:root {
  /* 60% — dominante */
  --white:           #FFFFFF;
  --off-white:       #F8F9FA;
  --paper:           #F1F3F6;   /* one step deeper for section banding */

  /* 30% — estrutura */
  --blue:            #137DC5;   /* azul seguro */
  --blue-deep:       #112D4E;   /* azul escuro */
  --blue-soft:       #E6F0F9;   /* wash for surfaces */
  --blue-line:       #D5E2EE;   /* hairline */

  /* 10% — ação */
  --orange:          #FF9900;
  --orange-deep:     #E08600;
  --orange-soft:     #FFF2DD;

  /* Neutros derivados (não cinza puro — azul-shifted) */
  --ink:             #0E1F36;   /* títulos: ligeiramente mais escuro que blue-deep */
  --ink-2:           #2C3E5A;   /* body */
  --ink-3:           #5C6E87;   /* meta / labels */
  --ink-4:           #8A9AB1;   /* deemphasized */
  --line:            #E2E8EF;   /* default border */
  --line-strong:     #C8D2DE;

  /* Sucesso (uso parcimonioso, só métricas positivas) */
  --green:           #0E8F5A;
  --green-soft:      #E1F4EB;

  /* Tipo */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Sombras suaves e difusas (per guide) */
  --shadow-sm:  0 1px 2px rgba(17, 45, 78, 0.04), 0 1px 1px rgba(17, 45, 78, 0.03);
  --shadow-md:  0 4px 12px rgba(17, 45, 78, 0.06), 0 2px 4px rgba(17, 45, 78, 0.04);
  --shadow-lg:  0 12px 32px rgba(17, 45, 78, 0.08), 0 4px 12px rgba(17, 45, 78, 0.05);
  --shadow-cta: 0 6px 16px rgba(255, 153, 0, 0.25), 0 2px 4px rgba(255, 153, 0, 0.15);

  /* Spacing scale (compacted ~10%) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 28px; --s-10: 36px;
  --s-12: 44px; --s-16: 58px; --s-20: 72px; --s-24: 86px;

  /* Container */
  --container-max: 1140px;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--orange-soft); color: var(--ink); }

/* Type — semantic */
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.028em; font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.2vw, 2.2rem); line-height: 1.15; }
h3 { font-size: 1.1rem; line-height: 1.3; }
p  { margin: 0; }

/* Eyebrows / kickers — uppercase, sem chaves de IA */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--blue);
  vertical-align: middle;
  margin-right: var(--s-3);
  transform: translateY(-2px);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-3);
  padding: 8px 14px;
}
.btn-ghost:hover { color: var(--blue-deep); }

/* Icon helper: thin stroke, brand blue */
.icon {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.icon-blue { color: var(--blue); }

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

/* Section spacing */
.section { padding: var(--s-20) 0; }
.section-tight { padding: var(--s-16) 0; }

/* Divider */
.hairline {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Tabular figures for any number display */
.tnum { font-variant-numeric: tabular-nums; }

/* Asset placeholder — honest box, not invented branding */
.placeholder {
  background: var(--off-white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  color: var(--ink-4);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
