/* Cadastro da empresa e escolha de plano, no modelo "Luz" do login (base.css + access.css). Minimalista, em dois passos. */
html { -moz-osx-font-smoothing: grayscale; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---------- cadastro: vitrine com os benefícios do teste ---------- */
.vitrine-texto .selo { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(99, 102, 241, .12); color: #4f46e5; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vitrine-texto .selo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulsar 2.2s ease-out infinite; }
.beneficios { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.beneficios li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--marinho); opacity: 0; animation: aparecer .6s ease both; }
.beneficios li:nth-child(1) { animation-delay: .45s; } .beneficios li:nth-child(2) { animation-delay: .6s; } .beneficios li:nth-child(3) { animation-delay: .75s; }
.beneficios .marca { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(30, 30, 45, .1); color: #16a34a; }
.beneficios .marca svg { width: 14px; height: 14px; stroke-dasharray: 24; stroke-dashoffset: 24; animation: tracar .5s ease-out forwards; }
.beneficios li:nth-child(1) .marca svg { animation-delay: .75s; } .beneficios li:nth-child(2) .marca svg { animation-delay: .9s; } .beneficios li:nth-child(3) .marca svg { animation-delay: 1.05s; }

/* ---------- cartão ---------- */
.cartao-cadastro { width: min(480px, 100%); }
.logo-cartao { display: block; height: 34px; width: auto; margin: 0 0 22px; }

/* progresso dos dois passos */
.progresso { margin: 0 0 22px; }
.progresso-rotulos { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--texto-suave); }
.progresso-rotulos span { transition-property: color; transition-duration: .25s; }
.progresso-rotulos span.feito { color: var(--rotulo); }
.progresso-trilho { height: 4px; border-radius: 999px; background: var(--borda); overflow: hidden; }
.progresso-barra { height: 100%; width: 50%; border-radius: inherit; background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transform-origin: left; transition-property: width; transition-duration: .45s; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
.progresso[data-passo="2"] .progresso-barra { width: 100%; }

/* passos: sem JS os dois aparecem; com JS só o atual */
.passo { border: 0; margin: 0; padding: 0; min-width: 0; }
.js .passo:not(.ativo) { display: none; }
.passo-titulo { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.passo.entrando-frente { animation: entrarFrente .32s cubic-bezier(.2, .8, .2, 1) both; }
.passo.entrando-volta { animation: entrarVolta .32s cubic-bezier(.2, .8, .2, 1) both; }

/* pessoa jurídica / física: duas opções com um marcador que desliza */
.segmento { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 16px; border-radius: 14px; background: var(--campo-fundo); border: 1px solid var(--borda); }
.segmento input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmento label { position: relative; z-index: 1; padding: 10px 8px; text-align: center; font-size: 14px; font-weight: 600; color: var(--texto-suave); border-radius: 10px; cursor: pointer; user-select: none;
  transition-property: color; transition-duration: .2s; }
.segmento input:checked + label { color: var(--texto); }
.segmento input:focus-visible + label { outline: 3px solid var(--acento-sombra); outline-offset: -2px; }
.segmento-marcador { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(30, 30, 45, .08), 0 4px 12px rgba(30, 30, 45, .08);
  transition-property: transform; transition-duration: .3s; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
#pessoa-f:checked ~ .segmento-marcador { transform: translateX(100%); }

/* campos lado a lado no cartão largo */
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* botão de busca dentro do campo do CNPJ */
.campo-busca input { padding-right: 52px; }
.buscar { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px;
  background: var(--marinho); color: #fff; cursor: pointer; transition-property: transform, opacity, background-color; transition-duration: .15s; transition-timing-function: ease-out; }
.buscar:hover { background: #2d2d4a; }
.buscar:active { transform: translateY(-50%) scale(.94); }
.buscar:focus-visible { outline: 3px solid var(--acento-sombra); outline-offset: 2px; }
.buscar:disabled { opacity: .35; cursor: not-allowed; }
.buscar svg { width: 18px; height: 18px; }
.buscar .girando { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: girar .8s linear infinite; }
.buscar.buscando svg { display: none; }
.buscar.buscando .girando { display: block; }

/* campo preenchido pela busca: um brilho curto */
.campo input.preenchido { animation: preencher 1.1s ease-out; }

/* erros por campo */
.campo input.invalido { border-color: #f1a7a7; background: #fff8f8; }
.erro-campo { display: block; margin: 6px 2px 0; font-size: 12.5px; color: var(--erro-texto); animation: aparecer .3s ease both; }
.campo + .erro-campo { margin: -10px 2px 14px; }
legend.passo-titulo { padding: 0; }
.campo.tremer-campo { animation: tremer .45s both; }

/* força da senha */
.forca { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: -6px 2px 16px; }
.forca-barra { height: 4px; border-radius: 999px; background: var(--borda); transition-property: background-color; transition-duration: .3s; }
.forca[data-nivel="1"] .forca-barra:nth-child(1) { background: #f97316; }
.forca[data-nivel="2"] .forca-barra:nth-child(-n+2) { background: #eab308; }
.forca[data-nivel="3"] .forca-barra { background: #22c55e; }
.forca-texto { grid-column: 1 / -1; font-size: 12px; color: var(--texto-suave); min-height: 16px; }

/* no cadastro a vitrine tem mais texto: o disco âmbar sobe para não cobrir o selo */
.vitrine-cadastro .disco-ambar { left: 7%; top: 46%; }
.vitrine-cadastro .ponto-1 { left: 26%; top: 40%; }

/* ações dos passos */
.acoes { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.botao:active { transform: scale(.98); }
.botao-claro { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; border: 1px solid var(--borda); border-radius: 12px; background: #fff;
  color: var(--texto); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition-property: background-color, border-color, transform; transition-duration: .15s; }
.botao-claro:hover { background: var(--campo-fundo); border-color: #d3d6e4; }
.botao-claro:active { transform: scale(.98); }
.botao-claro:focus-visible { outline: 3px solid var(--acento-sombra); outline-offset: 2px; }
.nota-teste { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--texto-suave); }

.aviso-links { display: flex; gap: 14px; justify-content: center; margin-top: 8px; }
.aviso-links a { color: inherit; font-weight: 600; }

/* ---------- escolha de plano ---------- */
.pagina-planos { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: linear-gradient(170deg, #f6f7fb 0%, #eceefb 100%); }
.pagina-planos .forma { opacity: .7; }
.pagina-planos .disco-ambar { left: 2%; top: 60%; }
.topo { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 22px 24px; }
.topo img { height: 34px; width: auto; }
.topo a { color: var(--link); font-size: 14px; font-weight: 600; text-decoration: none; }
.topo a:hover { text-decoration: underline; text-underline-offset: 3px; }
.planos-conteudo { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 24px 24px 72px; }
.hero { max-width: 680px; margin: 0 auto 36px; text-align: center; animation: aparecer .6s ease both; }
.hero .eyebrow { margin-bottom: 10px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.03em; color: var(--marinho); line-height: 1.1; }
.hero .sub { margin: 0; font-size: 17px; color: var(--texto-suave); }

.teste-destaque { max-width: 640px; margin: 0 auto 44px; padding: 28px; text-align: center; background: #fff; border: 1px solid var(--borda); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(30, 30, 45, .04), 0 24px 60px rgba(30, 30, 45, .10); animation: subir .6s .1s cubic-bezier(.2, .8, .2, 1) both; }
.teste-destaque .botao { width: auto; display: inline-flex; padding: 15px 28px; font-size: 16px; }
.teste-destaque p { margin: 14px 0 0; font-size: 14px; color: var(--texto-suave); }
.info-teste { margin: 0 auto 36px; text-align: center; color: #4f46e5; font-weight: 600; }

.grade-planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plano { display: flex; flex-direction: column; padding: 24px; background: rgba(255, 255, 255, .86); border: 1px solid var(--borda); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(30, 30, 45, .04); backdrop-filter: blur(6px); opacity: 0; animation: aparecer .55s ease both;
  transition-property: transform, box-shadow, border-color; transition-duration: .2s; transition-timing-function: ease-out; }
.plano:hover { transform: translateY(-4px); border-color: #cfd2f8; box-shadow: 0 1px 2px rgba(30, 30, 45, .04), 0 18px 40px rgba(30, 30, 45, .12); }
.plano-img { width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
.plano h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.preco { margin: 0 0 14px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--marinho); font-variant-numeric: tabular-nums; }
.preco small { font-size: 13px; font-weight: 500; color: var(--texto-suave); letter-spacing: 0; }
.plano-descricao { flex: 1; margin: 0 0 18px; font-size: 14px; color: var(--texto-suave); }
.plano-descricao p { margin: 0 0 6px; }
.plano .botao-claro { margin-top: auto; text-decoration: none; }
.plano:hover .botao-claro { border-color: var(--indigo); color: #4f46e5; }

/* ---------- animações ---------- */
@keyframes entrarFrente { from { opacity: 0; transform: translateX(18px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes entrarVolta { from { opacity: 0; transform: translateX(-18px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tracar { to { stroke-dashoffset: 0; } }
@keyframes pulsar { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes preencher { 0% { background-color: #eef2ff; } 100% { background-color: var(--campo-fundo); } }

@media (max-width: 900px) {
  .beneficios { display: none; }
  .vitrine-texto .selo { margin-bottom: 8px; }
}
@media (max-width: 520px) {
  .dupla { grid-template-columns: 1fr; }
  .cartao { padding: 28px 20px 22px; }
  .teste-destaque { padding: 22px 18px; }
  .teste-destaque .botao { width: 100%; }
}
