:root {
  --bg: #0b0b0c;
  --panel: #151517;
  --panel-2: #1d1d20;
  --line: #2a2a2e;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #ff5a1f;
  --accent-ink: #111;
  --good: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --info: #60a5fa;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1040px; margin: 0 auto; padding: 14px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 18px; }
.brand b { color: var(--accent); }
.top-link { color: var(--muted); text-decoration: none; font-size: 14px; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.top-link:hover { color: var(--text); border-color: var(--muted); }
.top-nav { display: flex; align-items: center; gap: 14px; }
.top-nav > a:not(.top-link) { color: var(--muted); text-decoration: none; font-size: 14px; }
.top-nav > a:not(.top-link):hover, .top-nav > a[aria-current] { color: var(--text); }

.page-head { padding: 26px 0 10px; }
.page-head h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -.02em; }
.page-head .lead { margin: 0 0 14px; max-width: 720px; }
.how-more { margin: 14px 0 0; font-size: 15px; }
.robo { max-width: 720px; margin: 12px auto 0; }
.robo-status { margin: 6px 0 0; font-size: 13px; color: var(--muted); min-height: 1em; }
.robo-status.ok { color: var(--good); }
.robo-status.err { color: #fecaca; }

.vig-counts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 15px; }
.vig-counts b { color: var(--text); font-size: 18px; }
.vig-counts .c-bad b { color: var(--bad); }
.vig-counts .c-good b { color: var(--good); }
.chips.vig-filter { justify-content: flex-start; margin: 8px 0 14px; }
.vig-filter button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.vig-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.vig-list > p { grid-column: 1 / -1; }
.vig .prod { margin-bottom: 12px; }
.vig .prod h2 { font-size: 16px; }
.vig .price-main { font-size: 22px; }
.vig .prod img, .vig .prod .noimg { width: 96px; height: 96px; }
.vig .prod { grid-template-columns: 96px 1fr; }
.empty { grid-column: 1 / -1; text-align: center; }
.empty .actions { justify-content: center; }
.vig-note { margin: 6px 0 0; }

.doc .card h2 { font-size: 20px; }
.doc .card ul { padding-left: 20px; }
.doc .card li { margin: 4px 0; }
.table-wrap { overflow-x: auto; margin: 10px 0; }
.cookies { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.cookies th, .cookies td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.cookies th { color: var(--muted); font-weight: 600; }
.doc .card h1 { font-size: 24px; margin: 0 0 8px; }
.rules { margin: 12px 0; }
.rules dt { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-top: 12px; }
.rules dt .badge { min-width: 30px; height: 30px; font-size: 14px; }
.rules dd { margin: 4px 0 0 40px; color: var(--muted); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.hero { padding: 36px 0 18px; text-align: center; }
.kicker { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: #2a1408; color: #ffb38f; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.hero h1 { font-size: clamp(32px, 7vw, 56px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -.02em; }
.hero h1 span { color: var(--accent); }
.lead { color: var(--muted); max-width: 620px; margin: 0 auto 22px; font-size: 17px; }

.search { display: flex; gap: 8px; max-width: 720px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 6px; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); padding: 12px 12px; font-size: 16px; outline: none; }
.search button, .btn { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 11px; padding: 12px 20px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.search button:disabled { opacity: .6; cursor: wait; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 14px 0 0; }
.chips button { background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.chips button:hover { color: var(--text); border-color: var(--muted); }

.result { padding: 18px 0 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.card h2, .card h3 { margin: 0 0 8px; }
.card h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.prod { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.prod img { width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 10px; }
.prod .noimg { width: 120px; height: 120px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; padding: 8px; }
.prod h2 { font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.store { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.prices { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.price-main { font-size: 26px; font-weight: 800; }
.price-pix { color: var(--good); font-weight: 700; }
.price-old { color: var(--muted); text-decoration: line-through; }
.parc { color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions a, .actions button { font-size: 14px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-decoration: none; cursor: pointer; }
.actions .primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }

.verdict { display: flex; gap: 12px; align-items: flex-start; }
.badge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; font-weight: 800; color: #111; }
.b-good { background: var(--good); }
.b-warn { background: var(--warn); }
.b-bad { background: var(--bad); color: #fff; }
.b-info { background: var(--info); }
.b-mute { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.verdict p { margin: 2px 0 0; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid3 article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.grid3 h3 { margin: 0 0 6px; font-size: 16px; }
.grid3 p { margin: 0; color: var(--muted); font-size: 15px; }

.chart { width: 100%; height: 120px; margin-top: 10px; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart .dot { fill: var(--accent); }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); margin-top: 6px; }
.stats b { color: var(--text); }

.calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 12px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.calc input { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px; width: 100%; }
.calc input:focus { outline: none; border-color: var(--accent); }
.conta-out .big { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.conta-out .nums { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); margin: 8px 0; }
.conta-out .nums b { color: var(--text); }
.caveat { font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; margin: 8px 0 0; }

.ia-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.score { font-size: 30px; font-weight: 900; line-height: 1; }
.score small { font-size: 14px; color: var(--muted); font-weight: 600; }
.ia ul { margin: 6px 0 10px; padding-left: 20px; }
.ia li { margin: 2px 0; }
.pros li::marker { color: var(--good); }
.cons li::marker { color: var(--bad); }
.alert { background: #2a1210; border: 1px solid #5c1f1a; color: #fecaca; border-radius: 10px; padding: 8px 12px; margin: 6px 0; font-size: 14px; }
.offers { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.offer .o-store { font-weight: 700; }
.offer .o-title { color: var(--muted); font-size: 13px; grid-column: 1; overflow-wrap: anywhere; }
.offer .o-price { font-weight: 800; text-align: right; grid-row: 1 / span 2; grid-column: 2; }
.offer .o-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.offer .o-actions a, .offer .o-actions button { font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; cursor: pointer; }
.offer .o-actions .primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.cheapest { border-color: var(--good); }
.sources { font-size: 13px; color: var(--muted); }
.sources a { color: var(--muted); overflow-wrap: anywhere; }

.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { color: #fecaca; }

.how, .calc-solo, .sponsors { padding: 26px 0 6px; }
.how h2, .calc-solo h2, .sponsors h2 { font-size: 22px; margin: 0 0 12px; }
.sponsors small { font-size: 12px; color: var(--muted); font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.sp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sp { position: relative; display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--text); }
.sp img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.sp .tag { position: absolute; top: 8px; right: 10px; font-size: 11px; color: var(--muted); }
.sp p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.foot { max-width: 1040px; margin: 30px auto 0; padding: 22px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 0 0 6px; }
.foot nav a { color: var(--muted); }

.modal { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 20px; width: min(480px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(0,0,0,.7); }
.modal h2 { margin: 0 0 6px; }
.modal p { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.modal label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin-bottom: 10px; }
.modal input, .modal textarea { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px; }
.modal .row { display: flex; justify-content: flex-end; gap: 8px; }
.modal button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.modal .ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.form-msg { margin: 8px 0 0; min-height: 1em; }

.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; z-index: 9; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.cookie-bar p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; }
.cookie-bar button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 8px 16px; font-weight: 700; cursor: pointer; flex: none; }
@media (max-width: 520px) { .cookie-bar { flex-direction: column; align-items: stretch; } }
@media (max-width: 600px) {
  .cookies { min-width: 0; }
  .cookies thead { display: none; }
  .cookies tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .cookies td { display: block; border: 0; padding: 2px 0; }
  .cookies td:nth-child(1) { font-weight: 700; }
  .cookies td:nth-child(2)::before { content: "De: "; color: var(--muted); }
  .cookies td:nth-child(4)::before { content: "Duração: "; color: var(--muted); }
}
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 10px 16px; border-radius: 12px; max-width: calc(100% - 32px); z-index: 10; }

@media (max-width: 720px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr 1fr; }
  .calc label:first-child { grid-column: 1 / -1; }
  .prod { grid-template-columns: 88px 1fr; gap: 12px; }
  .prod img, .prod .noimg { width: 88px; height: 88px; }
  .price-main { font-size: 22px; }
  .search { flex-direction: column; }
  .search button { width: 100%; }
  .vig-list { grid-template-columns: 1fr; }
  .top-nav { gap: 10px; }
  .brand { font-size: 16px; }
}
