:root {
  --bg: #00163f;
  --bg-alt: #001d52;
  --surface: #062a6b;
  --border: #1b4189;
  --text: #ffffff;
  --muted: #b5c4e6;
  --green: #009c3b;
  --green-light: #2fd472;
  --yellow: #ffdf00;
  --blue: #002776;
  --red: #e63946;
  --flavio: #5aa0ff;
  --radius: 14px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--yellow); }

h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.15; margin: 0 0 .5rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  background: rgba(0, 22, 63, .92);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--green);
  box-shadow: 0 4px 0 var(--yellow);
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--yellow); }

.nav { display: flex; gap: 1.2rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--yellow); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  border-radius: 8px;
  padding: .2rem .6rem;
  cursor: pointer;
}

.hero {
  padding: 4.5rem 1.5rem 4rem;
  background:
    radial-gradient(circle at 10% 15%, rgba(0, 156, 59, .45), transparent 45%),
    radial-gradient(circle at 90% 5%, rgba(255, 223, 0, .22), transparent 40%),
    var(--bg);
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.hero h1 span { color: var(--yellow); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--yellow);
  margin: 0 0 .6rem;
}

.quiz {
  margin: 2rem 0;
  padding: 1.6rem;
  background: #fff;
  color: var(--blue);
  border-radius: var(--radius);
  border-top: 8px solid var(--green);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.quiz-head h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: .6rem; }
.quiz-head p { margin: 0 0 1.2rem; color: #3b4f7a; }
.quiz-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 800;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .7rem;
  border-radius: 99px;
}
.quiz-progress { height: 8px; background: #e3e9f5; border-radius: 99px; overflow: hidden; margin-bottom: 1.2rem; }
.quiz-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--yellow)); transition: width .35s ease; }
.quiz-step { margin: 0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #5a6a8d; }
.quiz-situation { font-size: 1.05rem; color: #3b4f7a; margin: .6rem 0 .2rem; }
.quiz-question { font-size: 1.4rem; margin: 0 0 1rem; }
.quiz-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.quiz-choice {
  padding: 1rem 1.1rem;
  background: #f7f9fd;
  border: 2px solid #d5deef;
  border-radius: 12px;
  color: var(--blue);
  font: 700 1.05rem "Inter", sans-serif;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.quiz-choice:hover:not(:disabled) { border-color: var(--green); background: #e6f7ed; transform: translateY(-2px); }
.quiz-choice:disabled { cursor: default; opacity: .55; }
.quiz-choice.correct { opacity: 1; border-color: var(--green); background: #e6f7ed; }
.quiz-choice.wrong { opacity: 1; border-color: var(--red); background: #fdecee; }
.quiz-feedback { margin-top: 1rem; padding: 1rem 1.1rem; background: #f2f5fb; border-radius: 10px; }
.quiz-feedback p { margin: 0 0 .8rem; }
.quiz-feedback a { color: var(--green); font-weight: 600; }
.quiz-verdict-line { font-weight: 800; font-size: 1.1rem; }
.quiz-verdict-line.right { color: #006b28; }
.quiz-verdict-line.miss { color: #a3202b; }
.quiz .btn.ghost { color: var(--blue); border-color: #c5d0e6; }

.verdict { padding: 1.2rem; border-radius: 10px; margin-bottom: 1rem; }
.verdict h3 { font-size: 1.3rem; }
.verdict p { margin: 0; }
.verdict.lula { background: var(--green); color: #fff; }
.quiz-ctas { display: flex; flex-wrap: wrap; gap: .6rem; }

.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.1rem; margin: 0 0 3rem; }
.chart { margin: 0; }
.chart .muted { margin: 0 0 1rem; }
.chart-note { font-size: .88rem; color: #dbe3f5; margin: 1rem 0 .4rem !important; }

.vchart { display: flex; align-items: stretch; gap: .5rem; height: 220px; }
.vcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.vval { font-size: .72rem; font-weight: 700; }
.vtrack { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.vbar { width: 100%; height: 0; border-radius: 6px 6px 0 0; transition: height 1.2s ease; }
.vyear { font-size: .78rem; color: var(--muted); }
.chart.animate .vbar { height: var(--h); }

.hchart { display: grid; gap: .8rem; }
.hrow { display: grid; grid-template-columns: 150px 1fr 60px; align-items: center; gap: .6rem; }
.hlabel { font-size: .88rem; }
.htrack { height: 16px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.hbar { height: 100%; width: 0; border-radius: 99px; transition: width 1.2s ease; }
.hval { font-weight: 800; text-align: right; }
.chart.animate .hbar { width: var(--w); }

.lula .vbar, .lula .hbar { background: var(--green-light); }
.bolsonaro .vbar, .bolsonaro .hbar { background: var(--red); }
.hrow.bolsonaro .hval { color: #ff7a85; }

.legend { display: flex; gap: 1rem; margin-top: .8rem; font-size: .82rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.legend .lula::before { background: var(--green-light); }
.legend .bolsonaro::before { background: var(--red); }

.hrow.top .hbar { background: var(--yellow); }
.hrow.top .hlabel, .hrow.top .hval { color: var(--yellow); font-weight: 800; }
.cards.stack { grid-template-columns: 1fr; align-content: start; }
.hchart.money .hrow { grid-template-columns: 80px 1fr 80px; }

.subhead { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.card.bad { border-left: 4px solid var(--red); }
.card.good { border-left: 4px solid var(--green-light); }
.card.warn { border-left: 4px solid var(--yellow); }
.subhead-lead { color: var(--muted); margin: -.4rem 0 1.2rem; max-width: 760px; }
.card.compare .promise { padding-bottom: .7rem; border-bottom: 1px dashed var(--border); margin-bottom: .7rem; }
.card.compare .promise strong { color: var(--flavio); }
.card.compare .exists strong { color: var(--green-light); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn.small { padding: .5rem 1rem; font-size: .9rem; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #00b345; }
.btn.ghost { border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--yellow); }

.section { padding: 4.5rem 1.5rem; max-width: 1180px; margin: 0 auto; }
.section.alt, .section.danger { max-width: none; }
.section.alt { background: var(--bg-alt); }
.section.danger { background: linear-gradient(180deg, #2a0f2a, var(--bg)); }
.section.alt > *, .section.danger > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section.danger .eyebrow { color: #ff7a85; }

.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); max-width: 720px; margin: 0; }

.tabs, .filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.tab, .chip {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: .55rem 1.1rem;
  border-radius: 99px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.tab.active, .chip.active { background: var(--yellow); color: var(--blue); border-color: var(--yellow); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .35s ease; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.card h3 { font-size: 1.2rem; }
.card p { margin: 0 0 .4rem; color: #dbe3f5; }
.card.highlight { border-color: var(--green-light); box-shadow: 0 0 0 1px rgba(47, 212, 114, .3); }
.card.hidden { display: none; }

.source {
  font-size: .82rem;
  color: var(--yellow);
  text-decoration: none;
  margin-top: auto;
}
.source + .source { margin-top: 0; }
.source::before { content: "↗ "; }
.source:hover { text-decoration: underline; }

.tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .55rem;
  border-radius: 6px;
}
.tag.pec { background: rgba(255, 223, 0, .15); color: var(--yellow); }
.tag.warn { background: rgba(230, 57, 70, .2); color: #ff7a85; }

.quote {
  border-left: 4px solid var(--red);
  padding: .4rem 0 .4rem 1.4rem;
  margin-bottom: 1.8rem;
}
.quote blockquote {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
}
.quote cite { color: var(--muted); font-style: normal; font-size: .9rem; }

.muted { color: var(--muted) !important; font-size: .9rem; }

.fakes { display: flex; flex-direction: column; gap: .8rem; }
.fake {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fake summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.fake summary::-webkit-details-marker { display: none; }
.fake summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--muted); }
.fake[open] summary::after { content: "–"; }
.claim {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}
.stamp {
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: .25rem .55rem;
  border-radius: 4px;
  transform: rotate(-4deg);
}
.fake-body { padding: 0 1.3rem 1.2rem; border-top: 1px solid var(--border); }
.fake-body p { margin: 1rem 0; }
.debunk {
  border-left: 4px solid var(--green-light);
  background: rgba(0, 156, 59, .12);
  padding: .8rem 1rem;
  border-radius: 0 8px 8px 0;
}
.debunk > strong:first-child { color: var(--green-light); }
.links { margin: 0; padding-left: 1.1rem; }
.links li { margin-bottom: .35rem; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }

.step {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 800;
}
.checkers { display: flex; flex-wrap: wrap; gap: .5rem; }
.checkers a {
  font-size: .85rem;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: .2rem .6rem;
  border-radius: 99px;
}

.share { text-align: center; margin-top: 3rem; }
.share p { font-size: 1.2rem; font-weight: 600; }
.share-feedback { display: block; margin-top: .6rem; color: var(--green-light); min-height: 1.4em; }

.footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 4px solid var(--green);
  color: var(--muted);
  font-size: .9rem;
}
.footer p { margin: .3rem 0; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 1.5rem; border-top: 1px solid var(--border); }
  .quiz { padding: 1.2rem; }
  .quiz-choices { grid-template-columns: 1fr; }
  .hrow, .hchart.money .hrow { grid-template-columns: 1fr 80px; }
  .hlabel { grid-column: 1 / -1; }
}
