/* Páginas públicas da venda. O painel /admin continua usando site.css. */
@font-face { font-family: 'Inter'; font-weight: 400 700; font-display: swap; src: url(/fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 400; font-display: swap; src: url(/fonts/kanit-400.woff2) format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 500; font-display: swap; src: url(/fonts/kanit-500.woff2) format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 600; font-display: swap; src: url(/fonts/kanit-600.woff2) format('woff2'); }

:root {
  --azul: #2368a1;
  --marinho: #00346e;
  --vermelho: #ef2f48;
  --vermelho-esc: #c8132b;
  --laranja: #f57c51;
  --laranja-esc: #e9632f;
  --fundo: #f2f6fa;
  --papel: #fff;
  --texto: #1c2b3a;
  --suave: #566676;
  --linha: #d3dde8;
  --azul-claro: #e6f0f9;
  --sombra: 0 10px 30px rgba(0, 52, 110, .12);
  --titulo: 'Kanit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body.pub { margin: 0; font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; line-height: 1.55; color: var(--texto); background: var(--fundo); }
.pub h1, .pub h2, .pub h3 { font-family: var(--titulo); font-weight: 600; color: var(--marinho); line-height: 1.2; }
.pub a { color: var(--azul); }
.pub img { max-width: 100%; height: auto; }

.miolo { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.miolo-estreito { max-width: 40rem; }

/* Botões */
.pub .botao {
  display: inline-block; padding: .8rem 1.5rem; border: 2px solid var(--laranja); border-radius: 6px;
  background: var(--laranja); color: #fff; font: 500 1.0625rem/1.3 var(--titulo); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.pub .botao:hover { background: var(--laranja-esc); border-color: var(--laranja-esc); }
.pub .botao-azul { background: var(--marinho); border-color: var(--marinho); color: #fff; }
.pub .botao-azul:hover { background: var(--azul); border-color: var(--azul); }
.pub .botao-sec { background: transparent; border-color: var(--azul); color: var(--azul); }
.pub .botao-sec:hover { background: var(--azul-claro); border-color: var(--azul); }
.pub .botao-grande { width: 100%; padding: 1rem 1.5rem; font-size: 1.1875rem; }
.pub .botao-bloco { display: block; width: 100%; }
.pub .botao:disabled { opacity: .6; cursor: not-allowed; }
.pub :focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }

/* Cabeçalho das páginas internas */
.cabecalho { background: var(--papel); border-bottom: 1px solid var(--linha); }
.cabecalho .miolo { display: flex; align-items: center; min-height: 4rem; }
.cabecalho-marca { display: flex; align-items: center; gap: .75rem; color: var(--marinho); font: 600 1.125rem var(--titulo); text-decoration: none; }
.logo { display: block; object-fit: cover; aspect-ratio: 700 / 610; }
.logo-p { width: 3rem; height: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--papel); border-bottom: 1px solid var(--linha); }
.hero::before {
  content: ''; position: absolute; right: -4rem; bottom: -1rem; width: 44rem; height: 28rem;
  background: url(/img/facetas.svg) no-repeat right bottom / contain; pointer-events: none;
}
.hero-grade { position: relative; display: grid; gap: 2rem; padding-top: 2rem; padding-bottom: 2.5rem; }
.logo-g { width: 9.5rem; height: auto; margin-bottom: 1rem; }
.hero h1 { margin: 0 0 .5rem; font-size: clamp(2.25rem, 6vw, 3.5rem); letter-spacing: -.01em; }
.hero-sub { margin: 0 0 1.25rem; max-width: 30rem; font-size: 1.1875rem; color: var(--suave); }
.beneficios { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; max-width: 32rem; }
.beneficios li { position: relative; padding-left: 1.75rem; }
.beneficios li::before {
  content: ''; position: absolute; left: 0; top: .35rem; width: .85rem; height: .85rem;
  background: linear-gradient(90deg, var(--vermelho) 50%, var(--azul) 50%); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Seletor de plano */
.seletor { align-self: start; position: relative; background: var(--papel); border: 1px solid var(--linha); border-radius: 14px; box-shadow: var(--sombra); overflow: hidden; }
.seletor::before { content: ''; display: block; height: 6px; background: linear-gradient(90deg, var(--vermelho) 50%, var(--azul) 50%); }
.abas { display: flex; gap: .25rem; margin: 1.25rem 1.25rem 0; padding: .25rem; border-radius: 10px; background: var(--fundo); }
.aba {
  flex: 1; padding: .65rem .75rem; border: 0; border-radius: 8px; background: transparent; color: var(--suave);
  font: 500 1.0625rem var(--titulo); cursor: pointer; transition: background-color .15s, color .15s;
}
.aba[aria-selected='true'] { background: var(--marinho); color: #fff; }
.painel { padding: 1.25rem; }
.painel-intro { margin: 0 0 1rem; color: var(--suave); font-size: .9375rem; }
.rotulo, .pub .campo label { display: block; margin-bottom: .3rem; font-weight: 600; font-size: .9375rem; }
.pub .campo label .dica { float: right; max-width: 65%; margin-left: .75rem; font-weight: 400; font-size: .8125rem; color: var(--suave); text-align: right; }
.pub input[type='text'], .pub input[type='email'], .pub input[type='number'], .pub input[type='password'], .pub select {
  width: 100%; padding: .7rem .8rem; border: 1.5px solid var(--linha); border-radius: 8px; background: #fff; color: var(--texto); font: inherit;
}
.pub select { appearance: none; padding-right: 2.25rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300346e' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .85rem center; }
.pub input:hover, .pub select:hover { border-color: var(--azul); }
.pub input:focus, .pub select:focus { border-color: var(--azul); outline: 3px solid var(--azul-claro); }
.painel .botao { margin-top: .5rem; }

.preco { display: flex; align-items: baseline; gap: .35rem; margin: 1.25rem 0 .1rem; }
.preco-valor { font: 600 clamp(2.5rem, 7vw, 3.25rem)/1 var(--titulo); color: var(--marinho); letter-spacing: -.01em; }
.preco-mes { color: var(--suave); font-size: 1.0625rem; }
.preco-nota { min-height: 1.5rem; margin: 0 0 .75rem; color: var(--azul); font-weight: 600; font-size: .9375rem; }

/* Como funciona */
.como { padding: 2.5rem 0 3rem; }
.como h2 { margin: 0 0 1.25rem; font-size: 1.5rem; }
.como-lista { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: c; }
.como-lista li { position: relative; display: grid; padding-left: 3.25rem; counter-increment: c; }
.como-lista li::before {
  content: counter(c); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--azul-claro); color: var(--marinho); font: 600 1.0625rem var(--titulo);
}
.como-lista strong { font-family: var(--titulo); font-weight: 500; font-size: 1.125rem; color: var(--marinho); }
.como-lista span { color: var(--suave); font-size: .9375rem; }

/* Rodapé */
.rodape { padding: 1.5rem 0; border-top: 1px solid var(--linha); background: var(--papel); color: var(--suave); font-size: .875rem; }
.rodape p { margin: 0; }

/* Cadastro */
.titulo-pagina { margin: 1.75rem 0 1rem; font-size: clamp(1.625rem, 4vw, 2.125rem); }
.alerta, .sucesso { padding: .85rem 1rem; border-radius: 8px; font-weight: 500; }
.alerta { background: #fde8eb; color: var(--vermelho-esc); border: 1px solid #f6bcc4; }
.sucesso { background: #e3f6ec; color: #0b5d36; border: 1px solid #b4e3c9; }
.ajuda { margin: 0 0 .5rem; color: var(--suave); font-size: .875rem; }

.passos { display: flex; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: p; }
.passo { position: relative; flex: 1; display: flex; flex-direction: column; gap: .35rem; padding-top: 0; color: var(--suave); font-size: .875rem; }
.passo::before { content: ''; height: 4px; border-radius: 2px; background: var(--linha); }
.passo-num { display: none; }
.passo-nome { font-weight: 500; }
.passo.feito { color: var(--azul); cursor: pointer; }
.passo.feito::before { background: var(--azul); }
.passo.atual { color: var(--marinho); font-weight: 700; }
.passo.atual::before { background: var(--vermelho); }
.passo::after { content: 'Passo ' counter(p); counter-increment: p; order: -1; font-size: .75rem; }
.passo.atual .passo-nome { font-weight: 700; }

.cadastro-corpo { display: grid; gap: 1.25rem; align-items: start; }
.etapas { background: var(--papel); border: 1px solid var(--linha); border-radius: 14px; padding: 1.25rem; box-shadow: var(--sombra); }
.legenda-obrig { margin: 0 0 .75rem; color: var(--suave); font-size: .875rem; }
.obrig { color: var(--vermelho); font-weight: 700; }
.etapa { margin: 0 0 1.5rem; padding: 0; border: 0; }
.cadastro.com-js .etapa { margin: 0; }
.etapa h2 { margin: 0 0 1rem; font-size: 1.5rem; outline: 0; }
.etapa-ref { display: block; margin-bottom: .15rem; color: var(--vermelho); font-size: .9375rem; font-weight: 500; }
.subtitulo { display: flex; align-items: center; gap: .6rem; margin: 1.5rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--linha); font-size: 1.125rem; }
.selo { padding: .1rem .55rem; border-radius: 999px; background: var(--azul-claro); color: var(--azul); font: 500 .8125rem 'Inter', sans-serif; }

.grade { display: grid; gap: 0 1rem; }
.campo { margin-bottom: .9rem; min-width: 0; }
.campo-erro input, .campo-erro select { border-color: var(--vermelho); background: #fff8f9; }
.msg-erro { margin: .3rem 0 0; color: var(--vermelho-esc); font-size: .875rem; font-weight: 500; }
.linha { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0 .75rem; }
.aviso-cep { margin: 0 0 .5rem; padding: .6rem .85rem; border-left: 4px solid var(--vermelho); border-radius: 0 8px 8px 0; background: #fde8eb; color: var(--vermelho-esc); font-size: .9375rem; font-weight: 500; }

.nota { margin: .6rem 0 0; font-size: .9375rem; color: var(--suave); }
.nota-destaque { padding: .75rem 1rem; border-left: 4px solid var(--azul); border-radius: 0 8px 8px 0; background: var(--azul-claro); color: var(--marinho); }
.destaque-acesso {
  display: grid; gap: .15rem; margin: 0 0 1.25rem; padding: 1rem 1.1rem 1rem 3.4rem; position: relative;
  border: 2px solid var(--laranja); border-radius: 10px; background: #fff3ed; color: var(--marinho);
}
.destaque-acesso::before {
  content: '!'; position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: var(--laranja); color: var(--marinho); font: 600 1rem var(--titulo);
}
.destaque-acesso strong { font-family: var(--titulo); font-weight: 600; font-size: 1.0625rem; }

.formas { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.forma { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 2px solid var(--linha); border-radius: 10px; cursor: pointer; background: #fff; transition: border-color .15s, background-color .15s; }
.forma:hover { border-color: var(--azul); }
.forma:has(input:checked) { border-color: var(--azul); background: var(--azul-claro); }
.forma:has(input:focus-visible) { outline: 3px solid var(--azul); outline-offset: 2px; }
.forma input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--marinho); flex: none; }
.forma img { flex: none; }
.forma-texto { display: grid; }
.forma-texto strong { font-family: var(--titulo); font-weight: 500; font-size: 1.125rem; color: var(--marinho); }
.forma-texto small { color: var(--suave); font-size: .875rem; }
.aceite { margin: 0 0 1.25rem; }
.pub .opcao { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; margin: 0; }
.pub .opcao input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--marinho); flex: none; }

.acoes-etapa { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--linha); }
.acoes-etapa .botao { min-width: 8.5rem; }
.acoes-etapa [data-avancar] { margin-left: auto; }
.cadastro:not(.com-js) .acoes-etapa { display: none; }
.cadastro.com-js .acoes-etapa:has([data-avancar][hidden]) { justify-content: flex-start; }
.botao-final { margin-top: .25rem; }
.cadastro.com-js .acoes-etapa:has([data-avancar][hidden]) { margin-top: 1rem; border-top: 0; padding-top: 0; }

.resumo { background: var(--papel); border: 1px solid var(--linha); border-radius: 14px; padding: 1.25rem; box-shadow: var(--sombra); order: -1; }
.resumo h2 { margin: 0 0 .75rem; font-size: 1.25rem; }
.resumo .preco { margin-top: .5rem; }
.resumo .preco-valor { font-size: 2.25rem; }
.resumo .botao { margin-top: .25rem; }

/* Pagamento */
.pagamento { padding: 1.5rem; border: 1px solid var(--linha); border-radius: 14px; background: var(--papel); box-shadow: var(--sombra); }
.pagamento-total { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linha); color: var(--suave); }
.pagamento-total .preco { margin: .1rem 0 0; }
.forma-titulo { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: 1.375rem; }
.pix { display: grid; gap: 1.25rem; justify-items: center; }
.pagamento .qr { padding: .5rem; border: 1px solid var(--linha); border-radius: 12px; background: #fff; }
.pix-codigo { width: 100%; }
.pagamento .copia { margin: .25rem 0 .75rem; padding: .75rem; border-radius: 8px; background: var(--fundo); border: 1px dashed var(--azul); font: .8125rem/1.4 ui-monospace, Consolas, monospace; word-break: break-all; }
.aguardando { display: flex; align-items: center; gap: .6rem; margin: 1.25rem 0 0; padding: .75rem 1rem; border-radius: 8px; background: var(--azul-claro); color: var(--marinho); font-size: .9375rem; }
.ponto { flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: var(--vermelho); animation: pulso 1.6s ease-in-out infinite; }
@keyframes pulso { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.cartao .linha-meia { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.pagina-simples { padding-top: 2rem; padding-bottom: 3rem; }
.pagina-simples h1 { font-size: 2rem; }
.acoes-linha { display: flex; flex-wrap: wrap; gap: .75rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .ponto { animation: none; }
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 39.99rem) {
  .passo-nome { display: none; }
  .passo.atual .passo-nome { display: block; }
  .passo.atual { flex: 3; }
  .hero::before { opacity: .6; width: 28rem; height: 18rem; }
}

@media (min-width: 40rem) {
  .grade { grid-template-columns: 1fr 1fr; }
  .grade .cheio, .grade .aviso-cep { grid-column: 1 / -1; }
  .como-lista { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .como-lista li { padding: 3rem 0 0; }
  .passo { font-size: .9375rem; }
  .pix { grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
}

@media (min-width: 62rem) {
  .hero-grade { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; padding-top: 3rem; padding-bottom: 3.5rem; }
  .logo-g { width: 11rem; }
  .cadastro-corpo { grid-template-columns: 1fr 19rem; }
  .resumo { order: 0; position: sticky; top: 1.5rem; }
  .etapas { padding: 2rem 2.25rem; }
}

/* Ajustes finos */
body.pub { display: flex; flex-direction: column; min-height: 100vh; }
.rodape { margin-top: auto; }
.hero-sub { max-width: 35rem; }
.como-lista li { align-content: start; gap: .15rem; }
.cadastro.com-js .etapa-ref { display: none; }
.acoes-etapa .botao-final { flex: 1; width: auto; margin: 0; }
.cadastro.com-js .acoes-etapa:has([data-avancar][hidden]) { margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--linha); }
.logo-p { width: 3.6rem; }
.cabecalho .miolo { min-height: 4.5rem; }

/* Rodada 2: ajustes pedidos após a primeira revisão */
.nota-aviso { border-left-color: #f2b01e; background: #fff6d9; color: #5c4400; }
.link-copiar { display: block; margin: 0 0 .35rem; padding: 0; border: 0; background: none; color: var(--azul); font: 500 .6875rem 'Inter', sans-serif; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-copiar:hover { color: var(--marinho); }
.fone-bloco { min-width: 0; }

/* Cabeçalho maior; títulos pequenos em Inter (o Kanit 600 em tamanho pequeno embaça) */
.cabecalho .miolo { min-height: 6rem; }
.logo-p { width: 5.5rem; }
.cabecalho-marca { gap: 1.1rem; font: 500 1.75rem/1.1 var(--titulo); letter-spacing: 0; }
.subtitulo { font: 700 1.0625rem 'Inter', sans-serif; letter-spacing: -.005em; }
.como-lista strong, .forma-texto strong { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.0625rem; }
.resumo h2 { font-weight: 500; }
.forma-titulo { font-weight: 500; }
@media (max-width: 39.99rem) {
  .cabecalho .miolo { min-height: 4.75rem; }
  .logo-p { width: 4rem; }
  .cabecalho-marca { font-size: 1.25rem; gap: .8rem; }
}

/* Rodada 2b: aviso do passo 3 e links de cópia na linha do rótulo */
.nota-aviso { margin: 0 0 1.25rem; padding: .75rem 1rem; border-left: 4px solid #f2b01e; border-radius: 0 8px 8px 0; }
.campo, .fone-bloco { position: relative; }
@media (min-width: 40rem) {
  .link-copiar { position: absolute; top: 0; right: 0; z-index: 2; margin: 0; }
}

/* Quantidade fora da tabela: Falar com o comercial */
.comercial { margin: 1.25rem 0 .5rem; padding: 1rem; border-left: 4px solid var(--laranja); border-radius: 0 8px 8px 0; background: #fff3ed; color: var(--marinho); }
.comercial p { margin: 0 0 .85rem; font-weight: 500; }
.comercial .botao { margin-top: 0; }
.comercial-dica { margin: .85rem 0 0; color: var(--suave); font-size: .9375rem; text-align: center; }
.resumo .comercial { margin-top: 1rem; }

/* Link de cópia na linha do título de Secretário/Tesoureiro */
.subtitulo .link-copiar { position: static; margin: 0 0 0 auto; font-weight: 500; }

/* Aviso de processamento ao enviar o cadastro */
.carregando { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1.25rem; background: rgba(0, 52, 110, .55); }
.carregando-caixa { max-width: 22rem; padding: 2rem 1.75rem; border-radius: 14px; background: var(--papel); box-shadow: var(--sombra); text-align: center; }
.carregando-caixa p { margin: 0 0 .5rem; color: var(--suave); font-size: .9375rem; }
.carregando-caixa strong { color: var(--marinho); font: 500 1.25rem var(--titulo); }
.spinner { display: block; width: 3rem; height: 3rem; margin: 0 auto 1.25rem; border: 4px solid var(--azul-claro); border-top-color: var(--vermelho); border-radius: 50%; animation: gira .9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-top-color: var(--azul); } }
