/* Identidade inspirada no dashboard da Pluggy: carmim como cor principal,
   fundo branco, cinzas neutros, Inter e cantos de 8px.
   Entradas/saídas mantêm verde/vermelho próprios e sempre acompanham texto. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --sidebar: #fafafa;
  --border: #e5e5e5;
  --text: #0a0a0a;
  --muted: #737373;
  --primary: hsl(348 88% 55%);
  --primary-strong: hsl(348 80% 46%);
  --primary-soft: hsl(348 90% 97%);
  --primary-border: hsl(348 85% 90%);
  --income: #15803d;
  --income-soft: #e8f6ee;
  --expense: #c2410c;
  --expense-soft: #fff1e8;
  --warning: #92400e;
  --warning-soft: #fef6e0;
  --focus: hsl(348 88% 55%);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
a { color: var(--primary); }
small, .muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.income { color: var(--income); }
.expense { color: var(--expense); }
.warning-text { color: var(--warning); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: calc(var(--safe-top) + .5rem); }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
