/* =============================================================================
   REDE DE APOIO — folha de estilo do site institucional
   =============================================================================
   Cobre home.html e campanhas.html. Separada da app.css porque as duas coisas
   têm forma diferente: o app é uma coluna de 460px pensada para o polegar,
   estas páginas são documentos largos, lidos também no computador — é lá que
   um coordenador de campanha vai abrir o link.

   O que NÃO muda entre as duas folhas: a paleta e as fontes. Neutralidade
   partidária é requisito jurídico (§1.4 do CONTEXTO), então nenhuma cor de
   partido brasileiro entra aqui também. Índigo é ação, âmbar é ressalva.

   Nada nestas páginas depende de JavaScript para ser lido. A home é texto e
   links; o formulário de campanhas é o único ponto com script, e ele degrada
   para uma mensagem com endereço de contato se o script não carregar.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@700&display=swap');

:root {
  --ink: #0e1116;
  --mist: #e7eaf0;
  --paper: #ffffff;
  --slate: #656e82;
  --volt: #4534e8;
  --volt-soft: #6d5eff;
  --ember: #ff9a1f;
  --ember-ink: #8a5200;
  --danger: #d92d20;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --r: 14px;
  --page: 1040px;
  --line: rgba(14, 17, 22, .1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 22px;
}

/* --- Tipografia ----------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.06;
  margin: 0 0 14px;
}

h1 { font-size: clamp(34px, 6.4vw, 60px); }
h2 { font-size: clamp(25px, 3.6vw, 34px); }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.25; }

p { margin: 0 0 16px; color: #2b323f; }

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

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--volt);
  margin: 0 0 14px;
}

.lead { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; color: var(--slate); }

.fineprint { font-size: 13.5px; line-height: 1.55; color: var(--slate); }

/* --- Cabeçalho ------------------------------------------------------------ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(231, 234, 240, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand img { width: 28px; height: 28px; border-radius: 8px; }

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
}

.site-nav a:hover { color: var(--ink); background: rgba(14, 17, 22, .05); }

/* O link do app fica no cabeçalho em todas as larguras: numa página que
   explica um produto, o caminho para usá-lo não pode sumir no celular. Os
   links de seção, sim — âncora de rolagem em tela pequena vale pouco. */
.site-nav a.nav-cta {
  background: var(--volt);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* --- Botões --------------------------------------------------------------- */

.btn, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, border-color .16s, opacity .18s;
}

.btn { background: var(--volt); color: #fff; }
.btn-line { background: var(--paper); color: var(--ink); border-color: rgba(14, 17, 22, .16); }

.btn:active, .btn-line:active { transform: scale(.985); }
.btn-line:hover { border-color: rgba(14, 17, 22, .34); }
.btn:disabled, .btn-line:disabled { opacity: .4; cursor: not-allowed; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }

@media (max-width: 560px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn, .actions .btn-line { width: 100%; }
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
}

/* --- Seções --------------------------------------------------------------- */

section { padding: 64px 0; }
section.tight { padding: 44px 0; }

.hero { padding: 76px 0 56px; }
.hero p.lead { max-width: 620px; }

.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head p { color: var(--slate); margin-bottom: 0; }

.band { background: var(--paper); border-block: 1px solid var(--line); }

/* --- Escada de escala -------------------------------------------------------
   Você → sua rede → sua cidade → seu estado → o Brasil. É o argumento do
   produto em uma linha: o esforço de uma pessoa não termina nela.

   Em tela estreita vira uma coluna com a linha ligando os degraus, em vez de
   encolher a fonte até ninguém conseguir ler.
   -------------------------------------------------------------------------- */

.scale {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 34px 0 6px;
  padding: 0;
  counter-reset: degrau;
}

.scale li {
  position: relative;
  flex: 1 1 128px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
}

/* O degrau final é o ponto de chegada do argumento — e o único colorido. */
.scale li.last {
  background: var(--volt);
  border-color: var(--volt);
}

.scale b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.scale span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--slate);
}

.scale li.last b { color: #fff; }
.scale li.last span { color: rgba(255, 255, 255, .75); }

/* --- Grades de cartão ------------------------------------------------------ */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px 28px;
}

.band .card { background: var(--mist); border-color: transparent; }

.card p:last-child { margin-bottom: 0; }
.card p { font-size: 15px; color: var(--slate); }

.step-n {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: rgba(69, 52, 232, .1);
  color: var(--volt);
  font-family: var(--mono);
  font-size: 15px;
}

/* --- Gamificação -----------------------------------------------------------
   Níveis, classificação e selos. Tudo simbólico, e o texto diz isso — não é
   escolha de produto, é o que a legislação eleitoral impõe: vantagem
   econômica atrelada a apoio é crime. O visual precisa dar a sensação de
   progressão SEM sugerir prêmio, então nada de moeda, troféu ou cofre.
   -------------------------------------------------------------------------- */

.levels {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.levels li {
  position: relative;
  padding: 20px 18px 18px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.band .levels li { background: var(--mist); border-color: transparent; }

/* Trilha de progresso no topo do cartão: cada nível mais cheio que o
   anterior. É a única coisa que sugere avanço — e não promete nada. */
.levels li::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 4px;
  background: var(--volt);
  width: var(--fill, 25%);
}

.levels .at {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--volt);
  letter-spacing: .04em;
}

.levels b {
  display: block;
  margin: 6px 0 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.022em;
}

.levels span { font-size: 13.5px; color: var(--slate); line-height: 1.5; }

/* Selos: reconhecimento pontual, fora da trilha de níveis. */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }

.badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(255, 154, 31, .14);
  color: var(--ember-ink);
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
}

/* --- Lista de limites ------------------------------------------------------
   A seção que diz o que a plataforma NÃO faz é a mais importante da home. O
   produto vive num terreno onde quase tudo que parece óbvio — comprar lista,
   disparar mensagem, oferecer algo em troca — é ilegal. Dizer isso na primeira
   visita é product marketing e é defesa.
   -------------------------------------------------------------------------- */

.limits { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }

.limits li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.limits li:last-child { border-bottom: none; }

.limits .mark {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(217, 45, 32, .1);
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.limits b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 2px; }
.limits span.why { font-size: 14px; color: var(--slate); }

/* --- Faixa de destaque ----------------------------------------------------- */

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 32px 30px;
  background: var(--ink);
  color: #fff;
  border-radius: 22px;
}

.callout > div { flex: 1 1 320px; }
.callout h2 { color: #fff; margin-bottom: 8px; }
.callout p { color: rgba(255, 255, 255, .72); margin-bottom: 0; }
.callout .btn-line { background: #fff; border-color: #fff; }

/* --- Aviso de fase ---------------------------------------------------------
   Mesmo tom de âmbar do aviso de minuta das páginas legais, e pelo mesmo
   motivo: enquanto o parecer do advogado eleitoral não sai (Sprint 0), a
   plataforma não deve se apresentar como serviço em operação.
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 154, 31, .13);
  border-left: 3px solid var(--ember);
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ember-ink);
}

.notice b { display: block; margin-bottom: 2px; }

/* --- Perguntas ------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  padding: 18px 0;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--volt);
}

.faq details[open] summary::after { content: '–'; }
.faq details > p { margin: 0 0 18px; max-width: 720px; color: var(--slate); }

/* --- Formulário ------------------------------------------------------------ */

.form-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px 32px;
}

.row { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }

@media (max-width: 620px) {
  .row { grid-template-columns: 1fr; }
}

label.field { display: block; margin-bottom: 18px; }

label.field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

label.field > span .opt {
  font-style: normal;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate);
  background: rgba(101, 110, 130, .12);
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 6px;
  vertical-align: 1px;
}

input:not([type="checkbox"]), select, textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--body);
  font-size: 16px; /* 16px evita o zoom automático do iOS */
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(14, 17, 22, .14);
  border-radius: var(--r);
  outline: none;
  transition: border-color .18s;
}

textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

.field .hint { display: block; margin-top: 7px; }

/* Consentimento: mesmas regras visuais do app. Nunca nasce marcado — o
   verificador em tools/check.js cobra isso nas duas páginas. */
.consent {
  display: flex;
  gap: 12px;
  padding: 15px;
  background: var(--mist);
  border-radius: var(--r);
  margin-bottom: 12px;
  cursor: pointer;
}

.consent.optional { background: transparent; border: 1.5px dashed rgba(14, 17, 22, .2); }
.consent input { accent-color: var(--volt); width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.consent .txt { font-size: 13.5px; line-height: 1.5; }
.consent .txt b { display: block; margin-bottom: 3px; font-size: 14.5px; font-weight: 600; }

.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  margin-bottom: 6px;
}

.tag.req { background: rgba(69, 52, 232, .1); color: var(--volt); }
.tag.opt { background: rgba(101, 110, 130, .13); color: var(--slate); }

.alert {
  padding: 14px 16px;
  border-radius: var(--r);
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 18px;
  display: none;
}

.alert.show { display: block; }
.alert.err { background: rgba(217, 45, 32, .1); color: var(--danger); }
.alert.ok { background: rgba(69, 52, 232, .1); color: var(--volt); }

/* --- Rodapé ---------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--slate);
}

.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: baseline; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-foot a { color: var(--slate); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot p { color: var(--slate); font-size: 13.5px; margin: 0; max-width: 460px; }

/* Linha própria: o .wrap é flex e a nav empurra tudo com margin-left auto, então
   sem o flex-basis a identificação da empresa disputaria a mesma linha e sairia
   espremida no celular. */
.site-foot .foot-legal { flex-basis: 100%; max-width: none; font-size: 12.5px; opacity: .8; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
