/* palpites — self-contained styles (no external fonts/CDNs: the static host and
   the compliance posture both want zero third-party requests). */

:root {
  --bg: #f7f8f7;
  --card: #ffffff;
  --ink: #16211c;
  --muted: #5c6b63;
  --line: #e2e7e3;
  --brand: #0f7a52;
  --brand-ink: #0b5c3d;
  --pos: #0f7a52;
  --warn: #8a5a00;
  --shadow: 0 1px 2px rgba(16, 33, 28, .06), 0 4px 16px rgba(16, 33, 28, .05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1512;
    --card: #14201b;
    --ink: #e8efea;
    --muted: #9db0a6;
    --line: #223029;
    --brand: #34d399;
    --brand-ink: #6ee7b7;
    --pos: #34d399;
    --warn: #e0b060;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

header.site {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
}
header.site .brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
header.site .brand .dot { color: var(--brand); }
header.site nav { display: flex; gap: 1rem; }
header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
header.site nav a:hover { color: var(--brand); }
header.site .age {
  margin-left: auto;
  font-weight: 700;
  font-size: .8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .1rem .5rem;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.hero h1 {
  font-size: 2rem;
  letter-spacing: -.02em;
  margin: .6rem 0 .4rem;
}
.hero .tagline { color: var(--muted); font-size: 1.05rem; margin: 0 0 .5rem; max-width: 60ch; }
.hero .generated { color: var(--muted); font-size: .85rem; margin: 0; }

.note {
  background: color-mix(in srgb, var(--brand) 8%, var(--card));
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  padding: .8rem 1rem;
  margin: 1.25rem 0;
  color: var(--ink);
}

.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .95rem;
}
thead th {
  text-align: left;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.pos { color: var(--pos); font-weight: 700; }
td.match { font-weight: 600; }
td.match .v { color: var(--muted); font-weight: 400; }
td.match .ko { color: var(--muted); font-weight: 400; font-size: .8rem; }

.res { font-weight: 700; }
.res-ganhou { color: var(--pos); }
.res-perdeu { color: #c0392b; }
.res-pendente { color: var(--muted); font-weight: 400; }

.fineprint, .empty p:last-child { color: var(--muted); font-size: .88rem; }
.empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.25rem 0;
}
.empty p { margin: .3rem 0; }

.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin: 1.25rem 0;
}
.summary .stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.summary .n { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.summary .l { display: block; color: var(--muted); font-size: .8rem; margin-top: .2rem; }

.how, .explainer { margin-top: 2rem; }
.how h2, .explainer h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.how ol { color: var(--ink); padding-left: 1.2rem; }
.how li { margin: .35rem 0; }
.explainer p { color: var(--muted); max-width: 65ch; }

footer.compliance {
  max-width: 860px;
  margin: 2rem auto 0;
  padding: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
footer.compliance p { margin: .5rem 0; max-width: 75ch; }
footer.compliance a { color: var(--brand-ink); }
footer.compliance code { background: color-mix(in srgb, var(--muted) 15%, transparent); padding: 0 .3em; border-radius: 4px; }
footer.compliance .meta { margin-top: .9rem; font-size: .78rem; opacity: .85; }

@media (max-width: 560px) {
  .summary { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.6rem; }
}
