/* Identidade eleitoral do vcdebate: branco e azul na base, amarelo de destaque, vermelho e verde
   para os lados. A orla continua no cenário do jogo; não domina mais a marca. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #142544;
  --muted: #59697f;
  --line: #d6deeb;
  --blue: #1546a0;
  --blue-deep: #103577;
  --yellow: #ffd52a;
  --sea: #0e5a7a;
  --sea-deep: #093e55;
  --pink: #f2557a;
  --sand: #f1d59b;
  --sand-2: #e9c57e;
  --left: #d9363e;
  --right: #1e9a4e;
  --right-2: #ffc23a;
  --pave-a: #1b1b1b;
  --pave-b: #ffffff;
  /* Cor de ação: azul eleitoral antes de escolher lado; depois, a cor do lado. */
  --brand: var(--blue);
  --brand-ink: #ffffff;
  --wash: #e9effb;
  --sky: linear-gradient(115deg, #103577 0%, #1546a0 58%, #2460bd 100%);
  --radius: 12px;
  --radius-lg: 14px;
  --display: "Bricolage Grotesque Variable", "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c1a24;
    --card: #132633;
    --ink: #f4ebdd;
    --muted: #a3b0bb;
    --line: #293b59;
    --blue: #83aaff;
    --blue-deep: #103577;
    --yellow: #ffd52a;
    --sea: #2a8fb8;
    --sea-deep: #0f4c66;
    --sand: #c9a866;
    --sand-2: #b59152;
    --pave-a: #0a0a0a;
    --pave-b: #e8e2d6;
    --wash: #1d2f3b;
  }
}

body[data-team="A"] { --brand: var(--left); --wash: #fbe5e6; }
body[data-team="B"] { --brand: var(--right); --wash: #e3f3e9; }
@media (prefers-color-scheme: dark) {
  body[data-team="A"] { --wash: #3a1d22; }
  body[data-team="B"] { --wash: #16352a; }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- assinatura: faixa do calçadão ---------- */

.calcadao {
  height: 22px;
  background-color: var(--pave-b);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22' viewBox='0 0 60 22'%3E%3Cpath d='M0 0 H60 V5 C50 5 45 17 30 17 C15 17 10 5 0 5 Z' fill='%231B1B1B'/%3E%3C/svg%3E");
  background-size: 60px 22px;
  background-repeat: repeat-x;
}

/* ---------- cabeçalho eleitoral ---------- */

.site-header {
  position: relative;
  background: var(--sky);
  color: #ffffff;
  overflow: hidden;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, #ffffff 0 20%, #d9363e 20% 40%, #168447 40% 60%, #ffd52a 60% 80%, #1546a0 80% 100%);
  pointer-events: none;
}
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 28px 40px;
}
.header-note { margin: 0 auto; opacity: .85; }
.header-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
}
.header-link:hover { background: rgba(255, 255, 255, .14); }

/* Marca: "vc" + "de" no tom do texto e "bate" em amarelo eleitoral, com inclinação de impacto,
   para o trocadilho você debate / você de bate(r) aparecer na própria palavra. */
.brand {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(8, 28, 69, .35);
}
.brand .vc { font-weight: 600; opacity: .88; }
.brand .bate {
  display: inline-block;
  color: var(--yellow);
  transform: rotate(-5deg) translateY(-1px);
  transform-origin: left bottom;
  margin-left: 1px;
}

/* Rótulo pequeno em caixa alta. */
.eyebrow, .header-note {
  font-size: .7rem;
  letter-spacing: .14em;
  font-weight: 800;
  text-transform: uppercase;
}
.eyebrow { color: var(--brand); }

/* Títulos de seção, condensados como na proposta. */
.display {
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  line-height: 1.02;
  letter-spacing: -.01em;
}

/* ---------- controles ---------- */

button, input, select { font: inherit; border-radius: 10px; }

button {
  cursor: pointer;
  border: 1px solid transparent;
  padding: 10px 16px;
  color: var(--brand-ink);
  background: var(--brand);
  font-weight: 800;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .05s;
}
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }

.ghost, button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 700;
}
.ghost[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--brand);
}

input, select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
input:focus, select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--wash); }

/* Abas de lado com a bolinha da cor de cada um. */
.team-tabs { display: flex; gap: 10px; }
.team-tabs button {
  flex: 1;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
}
.team-tabs button span { margin-left: auto; font-size: .72rem; font-weight: 500; color: var(--muted); }
.team-tabs button[aria-pressed="true"] { border-color: var(--brand); background: var(--wash); box-shadow: inset 0 0 0 1px var(--brand); }
.team-tabs button[data-team="A"][aria-pressed="true"], .team-tabs button[data-team-choice="A"][aria-pressed="true"] { border-color: var(--left); box-shadow: inset 0 0 0 1px var(--left); }
.team-tabs button[data-team="B"][aria-pressed="true"], .team-tabs button[data-team-choice="B"][aria-pressed="true"] { border-color: var(--right); box-shadow: inset 0 0 0 1px var(--right); }
.red-dot, .green-dot, .neutral-dot { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--left); }
.green-dot { background: var(--right); box-shadow: 5px 0 0 var(--right-2); margin-right: 5px; }
.neutral-dot { background: linear-gradient(135deg, var(--left) 50%, var(--right) 50%); }

/* ---------- cartões (painéis da proposta, com faixa colorida no topo) ---------- */

.card {
  border: 1px solid var(--line);
  border-top: 6px solid var(--brand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  transition: border-color .2s;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.card-title .eyebrow { margin: 0; }
.card-tag { color: var(--muted); font-size: .66rem; letter-spacing: .09em; font-weight: 800; text-transform: uppercase; }

.note { color: var(--muted); font-size: .82rem; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--card);
  font: 700 .72rem/1.5 var(--display);
  text-align: center;
  color: var(--ink);
}

.site-footer { color: var(--muted); font-size: .9rem; }
.site-footer .footer-inner { max-width: 1220px; margin: 0 auto; padding: 22px 28px 40px; }
.site-footer strong { color: var(--ink); }
.site-footer p { font-size: .8rem; margin: 4px 0 0; }

@media (max-width: 760px) {
  .header-inner { padding: 14px 16px 36px; gap: 12px; }
  .header-note { display: none; }
  .brand { font-size: 1.6rem; margin-right: auto; }
  .site-footer .footer-inner { padding: 18px 16px 32px; }
}
