/* Página pública "Seja vendedor" (/seja-vendedor). Carrega depois de theme.css
   e paginas.css e só acrescenta: tudo aqui tem prefixo sv- para não mexer nas
   outras páginas internas. Celular primeiro: a base é a tela de 390 px e as
   colunas só aparecem nos @media de largura mínima. */

:root {
  --sv-erro: #b42318;
  --sv-erro-bg: #fef3f2;
  --sv-erro-borda: #fecdca;
  --sv-ok-bg: #ecfdf3;
  --sv-ok-borda: #abefc6;
  --sv-claro: #4ade80;
  --sv-claro-texto: #052e1f;
  --sv-hero-texto: #d7e4dc;
  --sv-campo-borda: #c5d3c9;
}

/* .sv-calc e outros têm display próprio, que venceria o atributo hidden. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 84px; }
img { max-width: 100%; }

main.sv-main { max-width: none; margin: 0; padding: 0; }
.topbar-inner { max-width: 1080px; gap: 12px; }
.sv-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ── Cabeçalho ── */
.sv-topo-acoes { display: flex; align-items: center; gap: 24px; }
.sv-topo-cta {
  display: inline-flex; align-items: center; min-height: 40px;
  background: var(--sp-action); color: #fff; border-radius: 99px;
  padding: 8px 16px; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.sv-topo-cta:hover { color: #fff; background: var(--sp-primary-dark); }

/* ── Botões ── */
.sv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px; border: 0; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer;
  background: linear-gradient(135deg, var(--sp-action), var(--sp-primary-dark)); color: #fff;
  box-shadow: 0 6px 18px rgba(5,150,105,0.26);
  transition: transform .2s, box-shadow .2s;
}
.sv-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(5,150,105,0.34); }
.sv-btn--claro { background: var(--sv-claro); color: var(--sv-claro-texto); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.sv-btn--claro:hover { color: var(--sv-claro-texto); background: #86efac; }
.sv-btn--bloco { width: 100%; }
.sv-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
@media (prefers-reduced-motion: reduce) { .sv-btn { transition: none; } .sv-btn:hover { transform: none; } }

/* ── Herói ── */
.sv-hero {
  background:
    radial-gradient(700px 380px at 85% 10%, rgba(74,222,128,0.12), transparent 60%),
    linear-gradient(180deg, var(--sp-forest) 0%, var(--sp-forest-deep) 100%);
  color: #fff; padding: 36px 0 44px;
}
.sv-hero-grid { display: grid; gap: 28px; }
.sv-eyebrow {
  display: inline-block; border-radius: 99px; padding: 6px 14px; margin-bottom: 16px;
  background: var(--sp-glass-dark-bg); border: 1px solid var(--sp-glass-dark-border);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.sv-hero h1 {
  font-size: clamp(31px, 8vw, 52px); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; margin-bottom: 16px; color: #fff;
}
.sv-hero h1 em { font-style: normal; color: var(--sv-claro); white-space: nowrap; }
#duvidas { margin-top: 44px; }
.sv-hero-sub { font-size: 18px; line-height: 1.55; color: var(--sv-hero-texto); margin-bottom: 24px; max-width: 560px; }
.sv-hero-sub strong { color: #fff; font-weight: 800; }
.sv-hero-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 22px; }
.sv-hero-acoes .sv-btn { flex: 1 1 220px; max-width: 320px; }
.sv-hero-entrar { color: var(--sv-hero-texto); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.sv-hero-entrar:hover { color: #fff; }
.sv-hero a:focus-visible { outline-color: #fff; }
.sv-garantias { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--sv-hero-texto); }
.sv-garantias li { display: inline-flex; align-items: center; gap: 6px; }
.sv-garantias li::before { content: "✓"; color: var(--sv-claro); font-weight: 800; }
.sv-hero-figura img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.sv-hero-figura figcaption { font-size: 12.5px; color: #a7bdb2; margin-top: 8px; }

/* ── Seções ── */
.sv-secao { padding: 52px 0; }
.sv-secao--clara { background: var(--sp-surface); border-top: 1px solid var(--sp-border); border-bottom: 1px solid var(--sp-border); }
.sv-kicker { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-action); margin-bottom: 8px; }
.sv-secao h2 {
  font-size: clamp(26px, 6vw, 36px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.025em; color: var(--sp-text); margin-bottom: 12px;
}
.sv-lead { font-size: 17px; color: var(--sp-muted); max-width: 680px; margin-bottom: 28px; }
.sv-lead strong { color: var(--sp-text); }

/* ── Quanto você ganha ── */
.sv-planos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sv-plano {
  background: #fff; border: 1px solid var(--sp-border); border-radius: 18px;
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.sv-plano.destaque { border: 2px solid var(--sp-action); box-shadow: var(--shadow-md); }
.sv-plano-nome { font-size: 15px; font-weight: 700; color: var(--sp-muted); margin-bottom: 4px; }
.sv-plano-valor { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--sp-text); }
.sv-plano-por { font-size: 14px; font-weight: 600; color: var(--sp-action); margin-bottom: 10px; }
.sv-plano-conta { font-size: 13.5px; line-height: 1.55; color: var(--sp-muted); }
.sv-aviso-unica {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px;
  background: #fff; border: 1px dashed var(--sp-action); color: var(--sp-text);
}
.sv-falha { color: var(--sp-muted); background: #fff; border: 1px solid var(--sp-border); border-radius: 14px; padding: 18px; }

.sv-calc {
  margin-top: 24px; display: grid; gap: 20px; border-radius: 20px; padding: 22px 20px;
  background: linear-gradient(160deg, var(--sp-forest), var(--sp-forest-deep)); color: #fff;
}
.sv-calc h3 { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.sv-calc label { display: block; font-size: 14px; font-weight: 600; color: var(--sv-hero-texto); margin-bottom: 8px; }
.sv-calc-qtd { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sv-calc-qtd input[type="range"] { flex: 1; min-width: 0; accent-color: var(--sv-claro); height: 32px; }
.sv-calc-qtd output { min-width: 44px; text-align: center; font-size: 22px; font-weight: 800; }
.sv-calc select {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 16px;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.1); color: #fff;
}
.sv-calc select option { color: var(--sp-text); background: #fff; }
.sv-calc-resultado { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 16px; padding: 20px; }
.sv-calc-total { display: block; font-size: clamp(34px, 9vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--sv-claro); }
.sv-calc-detalhe { font-size: 15px; color: #fff; margin: 6px 0 10px; }
.sv-calc-nota { font-size: 13.5px; color: var(--sv-hero-texto); line-height: 1.5; }

/* ── Como funciona ── */
.sv-passos { list-style: none; display: grid; gap: 18px; }
.sv-passo { background: #fff; border: 1px solid var(--sp-border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.sv-passo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.sv-passo-corpo { padding: 18px 20px 22px; }
.sv-passo-num {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--sp-action); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 10px;
}
.sv-passo h3 { font-size: 18px; font-weight: 800; color: var(--sp-text); line-height: 1.3; margin-bottom: 6px; }
.sv-passo p { font-size: 15px; color: var(--sp-muted); line-height: 1.6; }

/* ── Seu painel ── */
.sv-painel-grid { display: grid; gap: 32px; align-items: center; }
.sv-celular {
  width: min(290px, 78vw); margin: 0 auto; padding: 10px; border-radius: 44px;
  background: #0b1512; box-shadow: 0 0 0 2px #2c3d35, 0 30px 60px rgba(5,37,29,0.28);
}
.sv-celular img { display: block; width: 100%; height: auto; border-radius: 34px; }
.sv-legenda { text-align: center; font-size: 12.5px; color: var(--sp-muted); margin-top: 10px; }
.sv-checks { list-style: none; display: grid; gap: 14px; margin-bottom: 24px; }
.sv-checks li { position: relative; padding-left: 34px; font-size: 16px; color: var(--sp-text); line-height: 1.55; }
.sv-checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sv-ok-bg); border: 1px solid var(--sv-ok-borda); color: var(--sp-action);
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.sv-checks li strong { display: block; font-weight: 700; }
.sv-checks li span { color: var(--sp-muted); font-size: 15px; }

/* ── Por que é fácil vender ── */
.sv-motivos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.sv-motivo { background: #fff; border: 1px solid var(--sp-border); border-radius: 16px; padding: 20px; }
.sv-motivo svg {
  width: 40px; height: 40px; padding: 9px; border-radius: 11px; margin-bottom: 12px;
  background: var(--sp-surface); border: 1px solid var(--sp-border);
  fill: none; stroke: var(--sp-action); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.sv-motivo h3 { font-size: 16.5px; font-weight: 800; color: var(--sp-text); line-height: 1.3; margin-bottom: 6px; }
.sv-motivo p { font-size: 14.5px; color: var(--sp-muted); line-height: 1.6; }
.sv-mais { margin-top: 20px; font-size: 15px; color: var(--sp-muted); }

/* ── Formulário ── */
.sv-form-grid { display: grid; gap: 28px; align-items: start; }
.sv-form-intro ol { list-style: none; counter-reset: sv; display: grid; gap: 12px; margin: 18px 0 0; }
.sv-form-intro li { counter-increment: sv; position: relative; padding-left: 40px; color: var(--sp-text); }
.sv-form-intro li::before {
  content: counter(sv); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sp-forest); color: #fff; font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.sv-form {
  position: relative; background: #fff; border: 1px solid var(--sp-border); border-radius: 20px;
  padding: 22px 18px; box-shadow: var(--shadow-md);
}
.sv-form h3 { font-size: 20px; font-weight: 800; color: var(--sp-text); margin-bottom: 4px; }
.sv-form-sub { font-size: 14px; color: var(--sp-muted); margin-bottom: 18px; }
.sv-campo { margin-bottom: 16px; }
.sv-campo > label, .sv-linha label, .sv-pix legend { display: block; font-size: 14.5px; font-weight: 700; color: var(--sp-text); margin-bottom: 6px; }
.sv-campo input, .sv-campo select {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--sp-text);
  background: #fff; border: 1px solid var(--sv-campo-borda); border-radius: 10px;
}
.sv-campo input:focus, .sv-campo select:focus { border-color: var(--sp-action); box-shadow: 0 0 0 3px rgba(21,128,61,0.15); }
.sv-campo input[aria-invalid="true"], .sv-campo select[aria-invalid="true"] { border-color: var(--sv-erro); background: var(--sv-erro-bg); }
.sv-ajuda { font-size: 13px; color: var(--sp-muted); margin-top: 6px; line-height: 1.45; }
.sv-erro { font-size: 13.5px; font-weight: 600; color: var(--sv-erro); margin-top: 6px; line-height: 1.45; }
.sv-erro:empty { display: none; }
.sv-linha { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; }
.sv-pix { border: 1px solid var(--sp-border); border-radius: 14px; padding: 14px 14px 4px; margin-bottom: 16px; background: var(--sp-surface); min-width: 0; }
.sv-pix legend { padding: 0 6px; margin-left: -6px; }
.sv-pix-nota { font-size: 13px; color: var(--sp-muted); margin-bottom: 12px; }
.sv-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--sp-text); cursor: pointer; margin-bottom: 12px; line-height: 1.45; }
.sv-check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--sp-action); }
.sv-check input[aria-invalid="true"] { outline: 2px solid var(--sv-erro); outline-offset: 2px; }
.sv-senha-caixa { position: relative; }
.sv-senha-caixa input { padding-right: 88px; }
.sv-senha-ver {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 6px 12px;
  border: 0; border-radius: 8px; background: var(--sp-surface); color: var(--sp-action); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.sv-regras-senha { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; color: var(--sp-muted); }
.sv-regras-senha li::before { content: "○ "; }
.sv-regras-senha li.ok { color: var(--sp-action); font-weight: 600; }
.sv-regras-senha li.ok::before { content: "✓ "; }
.sv-aceite { border-top: 1px solid var(--sp-border); padding-top: 16px; margin-bottom: 16px; }
.sv-aceite details { margin: 2px 0 0 30px; font-size: 14px; }
.sv-aceite summary { cursor: pointer; color: var(--sp-action); font-weight: 700; }
.sv-aceite details > div { margin-top: 8px; max-height: 280px; overflow-y: auto; padding: 12px 14px; border-radius: 10px; background: var(--sp-surface); border: 1px solid var(--sp-border); }
.sv-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.5; }
.sv-status:empty { display: none; }
.sv-status--erro { background: var(--sv-erro-bg); border: 1px solid var(--sv-erro-borda); color: var(--sv-erro); }
.sv-status--ok { background: var(--sv-ok-bg); border: 1px solid var(--sv-ok-borda); color: var(--sp-primary-dark); }
.sv-status a { font-weight: 700; text-decoration: underline; }
.sv-form-rodape { margin-top: 14px; font-size: 13.5px; color: var(--sp-muted); text-align: center; }
/* Campo-armadilha: fora da tela e fora do leitor de tela (o aria-hidden fica no HTML). */
.sv-armadilha { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── Regras e perguntas (sanfona) ── */
.sv-regras-lista { padding-left: 20px; display: grid; gap: 10px; color: var(--sp-text); font-size: 15px; line-height: 1.6; }
.sv-regras-lista strong { font-weight: 700; }
.sv-aceite .sv-regras-lista { font-size: 13.5px; gap: 8px; }
.sv-sanfona { background: #fff; border: 1px solid var(--sp-border); border-radius: 18px; padding: 4px 20px; margin-bottom: 20px; }
.sv-sanfona details { border-bottom: 1px solid var(--sp-border); }
.sv-sanfona details:last-child { border-bottom: 0; }
.sv-sanfona summary {
  list-style: none; cursor: pointer; position: relative; padding: 18px 36px 18px 0;
  font-size: 16.5px; font-weight: 700; color: var(--sp-text); line-height: 1.4;
}
.sv-sanfona summary::-webkit-details-marker { display: none; }
.sv-sanfona summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 24px; font-weight: 500; color: var(--sp-action); }
.sv-sanfona details[open] summary::after { content: "−"; }
.sv-sanfona-corpo { padding: 0 0 18px; color: var(--sp-muted); font-size: 15px; line-height: 1.65; }
.sv-sanfona-corpo p + p { margin-top: 8px; }
.sv-sanfona .sv-regras-lista { padding-bottom: 18px; }

/* ── Barra fixa no celular ── */
.sv-barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.97); border-top: 1px solid var(--sp-border);
  box-shadow: 0 -6px 18px rgba(5,37,29,0.08);
  transform: translateY(110%); visibility: hidden; transition: transform .25s, visibility .25s;
}
.sv-barra.visivel { transform: none; visibility: visible; }
.sv-barra-texto { font-size: 13.5px; line-height: 1.3; color: var(--sp-muted); min-width: 0; }
.sv-barra-texto strong { display: block; font-size: 15px; color: var(--sp-text); }
.sv-barra .sv-btn { min-height: 44px; padding: 10px 18px; font-size: 15px; white-space: nowrap; flex: none; }
@media (prefers-reduced-motion: reduce) { .sv-barra { transition: none; } }

@media (max-width: 760px) {
  footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .topbar img { height: 28px; }
}
@media (min-width: 640px) {
  .sv-wrap { padding: 0 24px; }
  .sv-form { padding: 28px; }
  .sv-calc { padding: 28px; }
}
@media (min-width: 761px) {
  .sv-barra { display: none; }
  .sv-secao { padding: 72px 0; }
  .sv-calc { grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
  .sv-passos { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .sv-hero { padding: 64px 0 72px; }
  .sv-hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; }
  .sv-painel-grid { grid-template-columns: 340px 1fr; gap: 56px; }
  .sv-form-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
  .sv-form-intro { position: sticky; top: 96px; }
}
