/* Base do Finance Hub redesenhado: fontes, reset, superfícies do navegador,
   tipografia global. Os valores vêm de tokens.css. */

@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/Sora-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20A0-20CF, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/Sora-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20A0-20CF, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/Sora-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20A0-20CF, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--fs-15);
  line-height: var(--lh-15);
  font-weight: var(--fw-regular);
  color: var(--ink);
  background: var(--ground);
  caret-color: var(--caret);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
}

/* Superfícies que o navegador desenha sozinho: seleção, barra de rolagem, foco, sublinhado. */
::selection { background: var(--selection-bg); color: var(--selection-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 999px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }

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

h1, h2, h3, h4 { margin: 0; color: var(--ink-strong); font-weight: var(--fw-bold); text-wrap: balance; }
h1 { font-size: var(--fs-48); line-height: var(--lh-48); letter-spacing: var(--track-display); }
h2 { font-size: var(--fs-28); line-height: var(--lh-28); }
h3 { font-size: var(--fs-19); line-height: var(--lh-19); }
h4 { font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-semibold); }
p { margin: 0; text-wrap: pretty; max-width: var(--measure); }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
small { font-size: var(--fs-12); line-height: var(--lh-12); }
strong, b { font-weight: var(--fw-bold); color: var(--ink-strong); }

a {
  color: var(--ink-strong);
  text-decoration: underline;
  text-decoration-color: var(--tan);
  text-decoration-thickness: var(--underline-thickness);
  text-underline-offset: var(--underline-offset);
  transition: text-decoration-color var(--t-state) var(--ease), color var(--t-state) var(--ease);
}
a:hover { text-decoration-color: var(--gold); }

button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button[disabled] { cursor: not-allowed; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
th { text-align: left; font-weight: var(--fw-regular); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
abbr[title] { text-decoration: none; }
::placeholder { color: var(--field-placeholder); opacity: 1; }

/* Toda célula numérica alinha por dígitos tabulares (a Sora é proporcional por padrão). */
.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: var(--numeric); }
.num-right { text-align: right; }
.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; }
.app { min-height: 100dvh; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
