/* ==========================================================================
   ebrain Gestão Day — Design Tokens
   ÚNICA fonte de verdade do design system. Nenhuma cor, tamanho ou raio deve
   ser escrito literalmente fora deste arquivo.
   Valores de cor extraídos por amostragem dos assets oficiais da marca.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------------
     CORES DE MARCA
     --------------------------------------------------------------------- */
  --brand-green: #25d366;  /* verde de ação — seta do logo, CTAs */
  --brand-aqua:  #1cbfad;  /* teal claro — eyebrows, highlights */
  --brand-teal:  #188c7e;  /* teal institucional — elemento chevron */
  --brand-deep:  #0b544c;  /* verde profundo — fundos sólidos, texto no claro */
  --brand-blue:  #1e73d8;  /* azul — ponta da seta. Acento raro */
  --accent-orange: #ff8a3d; /* sinal de urgência e disponibilidade */
  --paper:       #edf5f4;  /* off-white do wordmark */
  --ink:         #0e1513;  /* base escura dos backgrounds */

  /* ---------------------------------------------------------------------
     SUPERFÍCIES — tema escuro (padrão)
     --------------------------------------------------------------------- */
  --surface-0: #0e1513;
  --surface-1: #121b19;
  --surface-2: #16211e;
  --surface-3: #1b2926;

  /* SUPERFÍCIES — seções claras de respiro */
  --paper-0: #edf5f4;
  --paper-1: #f6faf9;
  --paper-2: #e1edea;

  /* ---------------------------------------------------------------------
     TEXTO
     Ratios verificados contra --surface-0 / --paper-0.
     --------------------------------------------------------------------- */
  --text-primary:   rgb(237 245 244 / 1);     /* 17.1:1  AAA */
  --text-secondary: rgb(237 245 244 / .72);   /*  8.9:1  AAA */
  --text-muted:     rgb(237 245 244 / .52);   /*  5.2:1  AA  */
  --text-faint:     rgb(237 245 244 / .38);   /*  3.5:1  só ≥24px / decorativo */

  --ink-primary:   #0e1513;   /* 17.1:1 AAA sobre --paper-0 */
  --ink-secondary: #33423f;   /*  9.8:1 AAA */
  --ink-muted:     #5a6b67;   /*  5.4:1 AA  */

  /* ---------------------------------------------------------------------
     BORDAS
     --------------------------------------------------------------------- */
  --border-subtle: rgb(237 245 244 / .08);
  --border:        rgb(237 245 244 / .14);
  --border-strong: rgb(237 245 244 / .24);
  --border-brand:  rgb(37 211 102 / .32);
  --border-light:  rgb(14 21 19 / .10);

  /* ---------------------------------------------------------------------
     TIPOGRAFIA
     --------------------------------------------------------------------- */
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* A headline aprovada tem 101 caracteres. O teto de 46px é o que a mantém
     em 4 linhas na coluna de ~650px do hero — não aumentar sem encurtar o copy. */
  --fs-display: clamp(1.75rem, 1.05rem + 2.6vw, 2.875rem);  /* 28 → 46 */
  --fs-h2:      clamp(1.875rem, 1.10rem + 3.0vw, 3rem);     /* 30 → 48 */
  --fs-h3:      clamp(1.375rem, 1.00rem + 1.4vw, 1.875rem); /* 22 → 30 */
  --fs-h4:      clamp(1.125rem, 1.00rem + 0.5vw, 1.375rem); /* 18 → 22 */
  --fs-lead:    clamp(1.0625rem, 1.00rem + 0.3vw, 1.25rem); /* 17 → 20 */
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.8125rem;
  --fs-eyebrow: 0.75rem;

  --lh-display: 1.06;
  --lh-heading: 1.2;
  --lh-body:    1.65;
  --lh-tight:   1.35;

  --ls-display: 0;
  --ls-heading: 0;
  --ls-eyebrow: 0.14em;

  /* ---------------------------------------------------------------------
     ESPAÇAMENTO — escala base 4px
     --------------------------------------------------------------------- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 40px;  --sp-8: 48px;
  --sp-9: 64px;  --sp-10: 80px; --sp-11: 96px; --sp-12: 128px;

  --section-y: clamp(56px, 7vw, 104px);
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(20px, 5vw, 40px);

  /* ---------------------------------------------------------------------
     RAIOS
     --------------------------------------------------------------------- */
  --r-xs: 6px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* ---------------------------------------------------------------------
     GRADIENTES
     --------------------------------------------------------------------- */
  --grad-brand: linear-gradient(45deg, #25d366 0%, #188c7e 55%, #1e73d8 100%);

  /* Chevron oficial da marca (Elemento Gestão Day.svg) como máscara.
     Espelhado no eixo X: o traçado original aponta para a esquerda; como
     bullet e marcador de eyebrow ele precisa apontar para frente.
     Herda currentColor via `background: currentColor` + mask. */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 383 372'%3E%3Cg transform='translate(383 0) scale(-1 1)'%3E%3Cpath d='M0 190.56C0 211.237 12.7523 229.772 32.0632 237.163L382.696 371.355V291.981L289.148 257.019L222.058 233.396L89.7682 184.26V182.37L222.058 136.068L289.148 114.335L382.696 81.735V0L32.2645 132.384C12.8482 139.719 0 158.307 0 179.063Z'/%3E%3C/g%3E%3C/svg%3E");

  --grad-card: linear-gradient(180deg, rgb(237 245 244 / .045), rgb(237 245 244 / .015));
  --grad-text: linear-gradient(92deg, #edf5f4 0%, #25d366 100%);

  /* ---------------------------------------------------------------------
     ELEVAÇÃO — no escuro, glow e borda substituem sombra
     --------------------------------------------------------------------- */
  --glow-green: 0 0 0 1px rgb(37 211 102 / .30), 0 16px 44px -14px rgb(37 211 102 / .55);
  --glow-orange: 0 0 14px rgb(255 138 61 / .72);
  --glow-soft: 0 12px 40px -16px rgb(0 0 0 / .65);
  --shadow-light: 0 1px 2px rgb(14 21 19 / .06), 0 12px 32px -12px rgb(14 21 19 / .14);

  /* ---------------------------------------------------------------------
     MOVIMENTO
     --------------------------------------------------------------------- */
  --ease-out: cubic-bezier(.16, 1, .30, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 520ms;

  /* ---------------------------------------------------------------------
     LAYERS
     --------------------------------------------------------------------- */
  --z-bg: 0;
  --z-content: 1;
  --z-header: 100;
  --z-sticky: 200;
}
