/* ==========================================================================
   Trinity Contabilidade Digital - Design System (tokens)
   Fonte única de cores, tipografia, espaçamento, raios, sombras e movimento.
   Compartilhado entre a página de links e o futuro site institucional.

   Cores de IDV (extraídas do logo oficial):
     Navy    #06133E
     Laranja #F58220

   Regras do sistema:
     - Um único acento: laranja. Nunca introduzir outra cor de destaque.
     - Laranja vivo (#F58220) em ícones, destaques e títulos grandes. Texto pequeno fica em navy.
     - O logo nunca muda de cor. A página é sempre clara.
     - Texto sobre laranja é sempre navy (contraste 7:1).
     - Raios: superfícies 20px, blocos internos 12px, controles pequenos em pílula.
   ========================================================================== */

:root {
  /* Marca (fixas, não mudam com o tema) */
  --brand-navy: #06133E;
  --brand-navy-700: #0C1B4D;
  --brand-orange: #F58220;
  --brand-orange-600: #E06F10;

  /* Tipografia */
  --font-display: "Unbounded", "Plus Jakarta Sans", system-ui, sans-serif; /* títulos, sempre bold */
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: 0.75rem;    /* 12 */
  --text-sm: 0.8125rem;  /* 13 */
  --text-base: 0.9375rem;/* 15 */
  --text-md: 1rem;       /* 16 */
  --text-lg: 1.125rem;   /* 18 */
  --text-xl: 1.375rem;   /* 22 */
  --text-2xl: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  --text-display: clamp(1.625rem, 1rem + 2.6vw, 2.875rem);

  /* Espaçamento (base 4) */
  --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;

  /* Raios */
  --radius-surface: 20px;
  --radius-block: 12px;
  --radius-pill: 999px;

  /* Movimento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 520ms;

  /* Camadas (z-index) */
  --z-bg: 0;
  --z-content: 1;
  --z-toast: 40;
  --z-grain: 50;

  /* ---------- Tema (sempre claro: padrão da marca) ---------- */
  color-scheme: light;
  --bg: #FCFCFD;
  --bg-glow: rgba(245, 130, 32, 0.10);
  --surface: #FFFFFF;
  --surface-2: #F1F3F8;
  --surface-hover: rgba(6, 19, 62, 0.04);
  --line: rgba(6, 19, 62, 0.09);
  --line-strong: rgba(6, 19, 62, 0.16);
  --text: #0A1638;
  --text-2: rgba(10, 22, 56, 0.72);
  --text-3: rgba(10, 22, 56, 0.60);
  --accent: var(--brand-orange);
  --accent-ink: var(--brand-navy);
  --accent-text: var(--brand-orange);    /* ícones e destaques gráficos: laranja vivo da marca */
  --accent-display: var(--brand-orange); /* títulos grandes */
  --accent-soft: rgba(245, 130, 32, 0.12);
  --feature-bg: rgba(6, 19, 62, 0.90);
  --feature-text: #F1F3F8;
  --feature-text-2: rgba(241, 243, 248, 0.74);
  --logo-ink: var(--brand-navy); /* o logo mantém sempre as cores originais */
  --focus: var(--brand-orange);
  --success: #1E8F58;
  --danger: #B8322A;
  --shadow-sm: 0 1px 2px rgba(6, 19, 62, 0.06);
  --shadow-md: 0 1px 2px rgba(6, 19, 62, 0.05), 0 12px 32px -12px rgba(6, 19, 62, 0.18);
  --shadow-lg: 0 2px 4px rgba(6, 19, 62, 0.06), 0 28px 60px -20px rgba(6, 19, 62, 0.35);
  --grain-opacity: 0.03;

  /* Liquid glass (aproximação web do material da Apple: vidro + brilho especular + refração) */
  --glass-fill: linear-gradient(140deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.40));
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1px rgba(6, 19, 62, 0.05);
  --glass-shine: radial-gradient(120% 70% at 12% 0%, rgba(255, 255, 255, 0.85), transparent 46%);
  --glass-blur: blur(22px) saturate(180%);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  word-spacing: 0.06em; /* a Plus Jakarta tem espaço entre palavras estreito */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.i {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
