/* Tokens, reset e tipografia. Sem fontes externas (CSP: font-src 'self'). */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --color-bg: #ffffff;
  --color-surface: #f6f7fb;
  --color-surface-2: #eef0f6;
  --color-border: #e1e4ee;
  --color-border-strong: #c9cedc;
  --color-text: #151a2d;
  --color-muted: #566078;
  --color-subtle: #7b849a;

  --color-primary: #2747d6;
  --color-primary-hover: #1e39b5;
  --color-primary-soft: #eef1fd;
  --color-primary-ink: #ffffff;

  --color-success: #127548;
  --color-success-soft: #e5f5ec;
  --color-warning: #8f5300;
  --color-warning-soft: #fdf2df;
  --color-danger: #b8232a;
  --color-danger-soft: #fdeceb;
  --color-info: #2747d6;
  --color-info-soft: #eef1fd;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgb(21 26 45 / 0.06);
  --shadow: 0 1px 2px rgb(21 26 45 / 0.06), 0 4px 12px rgb(21 26 45 / 0.06);
  --shadow-lg: 0 2px 4px rgb(21 26 45 / 0.04), 0 16px 40px rgb(21 26 45 / 0.12);

  --focus-ring: 0 0 0 3px rgb(39 71 214 / 0.35);

  --container: 1120px;
  --gutter: 16px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--color-primary-hover); }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--font-mono); font-size: 0.9em; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
/* Títulos recebem foco por script (troca de etapa) só para o leitor de tela anunciar; sem anel visível. */
[tabindex="-1"]:focus { box-shadow: none; }

[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -48px; z-index: 100;
  background: var(--color-text); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.muted { color: var(--color-muted); }
