/* ============================================================================
   Simulador RTC · Simples Nacional — identidade visual Data Hub · Economia CNI
   Tokens de design copiados do CSS do Data Hub (tema claro).
   ============================================================================ */

:root {
  color-scheme: light;

  /* tipografia */
  --font-sans: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* forma */
  --radius: .875rem;
  --radius-md: calc(var(--radius) - 2px);

  /* marca e superfícies */
  --brand: #164194;
  --brand-foreground: #fafafa;
  --background: #fff;
  --foreground: #09090b;
  --surface: #f4f4f5;
  --card: #fff;
  --card-foreground: #09090b;
  --primary: #1447e6;
  --primary-foreground: #eff6ff;
  --secondary: #f4f4f5;
  --secondary-foreground: #18181b;
  --muted: #f4f4f5;
  --muted-foreground: #71717b;
  --accent: #f4f4f5;
  --accent-foreground: #18181b;
  --destructive: #e40014;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --ring: #9f9fa9;

  /* gráficos */
  --chart-1: #90c5ff;
  --chart-2: #3080ff;
  --chart-3: #155dfc;
  --chart-4: #1447e6;
  --chart-5: #193cb8;

  /* destaque ativo (menu lateral do Data Hub) */
  --active: #dee8fd;
  --active-foreground: #284ea7;

  /* paleta de apoio */
  --amber-500: #f99c00;
  --amber-700: #b75000;
  --emerald-500: #00bb7f;
  --emerald-600: #009767;
  --emerald-700: #007956;
  --sky-500: #00a5ef;
  --violet-500: #8d54ff;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

input, select, button { font-family: inherit; }
input[type=range] { accent-color: var(--primary); }
a { color: inherit; }

::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 4px; }

.wrap-inner { max-width: 1000px; margin: 0 auto; }

/* ── marca (faixa azul-marinho, como o cabeçalho do Data Hub) ── */
.brand-block {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  background: var(--brand);
  color: var(--brand-foreground);
  border-radius: 12px;
  padding: 8px 14px;
}
.brand-kicker { font-size: 10px; font-weight: 500; letter-spacing: .18em; opacity: .7; white-space: nowrap; }
.brand-name   { font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ── chips (pílulas informativas) ── */
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-foreground);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.chip-amber { background: #fef3c7; border-color: #fde68a; color: var(--amber-700); }
.chip-blue  { background: var(--active); border-color: var(--chart-1); color: var(--active-foreground); font-weight: 600; letter-spacing: .04em; }

/* ── título ── */
.hero-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero-desc { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted-foreground); }

/* ── filtros em pílula (como os botões "Todos / Áreas" do Data Hub) ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1), color .15s, border-color .15s;
}
.pill:hover { background: var(--muted); }
.pill.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-foreground); }
.pill.is-active:hover { background: var(--brand); opacity: .92; }

/* ── interação: botões, campos e foco ── */
button { transition: background-color .15s cubic-bezier(.4, 0, .2, 1), opacity .15s, box-shadow .15s; }
button:not(:disabled):not(.pill):hover { filter: brightness(.97); }
button:not(:disabled):active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; }

input, select { transition: border-color .15s, box-shadow .15s; }
input:hover:not(:focus), select:hover:not(:focus) { border-color: var(--ring) !important; }

input:focus-visible,
select:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: none;
  border-color: var(--ring) !important;
  box-shadow: 0 0 0 3px rgba(159, 159, 169, .5);
}
.pill.is-active:focus-visible { border-color: var(--brand) !important; }

/* ── telas menores ── */
@media (max-width: 720px) {
  .brand-block { padding: 7px 12px; }
}
