*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: .95;
  text-transform: none;
  margin: 0;
}
.t-hero  { font-size: var(--fs-hero); }
.t-title { font-size: var(--fs-title); }
.t-h2    { font-size: var(--fs-h2); }
.t-h3    { font-size: var(--fs-h3); line-height: 1.05; }
.lead    { color: var(--ink-2); font-size: 1.15rem; line-height: 1.55; margin: var(--s3) 0 0; max-width: 34ch; }
.muted   { color: var(--ink-2); }
.small   { font-size: var(--fs-small); }
.micro   { font-size: var(--fs-micro); color: var(--ink-2); }
.money   { font-family: var(--font-text); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); } .neg { color: var(--neg); } .warn { color: #A97800; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Estrutura */
#app { min-height: 100dvh; padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: calc(12px + env(safe-area-inset-top)) var(--gut) 12px;
  background: var(--bg); border-bottom: var(--bw) solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar-actions { display: flex; gap: 8px; }
.screen { padding: var(--s5) var(--gut) var(--s6); max-width: 640px; margin: 0 auto; }
.screen > * + * { margin-top: var(--s4); }
.screen-head { margin-bottom: var(--s5); }
.section { margin-top: var(--s6); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.screen.enter { animation: rise .32s var(--ease); }
