/* =========================================================================
   Auditor de Rescisão — landing page (Fase 5, 09/11/2026)
   Cores tiradas do logotipo "Rolim Advocacia Online" (verde-água).
   O tom escuro (--marca-forte) é o usado em botões e links, porque tem
   contraste suficiente com texto branco (acessibilidade, WCAG AA).
   ========================================================================= */
:root {
  --marca: #22c4d2;          /* verde-água do logotipo (decorativo) */
  --marca-forte: #077a86;    /* botões e links (contraste AA com branco) */
  --marca-forte-hover: #05626b;
  --marca-clara: #e8f8fa;    /* fundos suaves */
  --texto: #17282b;
  --texto-suave: #4a5d61;
  --borda: #d6e4e6;
  --fundo: #ffffff;
  --fundo-alt: #f5fafb;
  --alerta-fundo: #fff7e6;
  --alerta-borda: #f0c36d;
  --raio: 14px;
  --sombra: 0 6px 24px rgba(10, 60, 66, 0.08);
  --largura: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--marca-forte); }
a:hover { color: var(--marca-forte-hover); }

:focus-visible { outline: 3px solid var(--marca); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 16px; }
.estreito { max-width: 760px; }

/* ----- Cabeçalho ----- */
.topo { border-bottom: 1px solid var(--borda); background: #fff; }
.topo .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.topo .logo img { height: 68px; width: auto; }
.topo .contato { font-size: 15px; color: var(--texto-suave); text-align: right; }

/* ----- Botões ----- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--marca-forte); color: #fff; border: 0; border-radius: 999px;
  padding: 16px 30px; font-size: 18px; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
  min-height: 52px;
}
.botao:hover { background: var(--marca-forte-hover); color: #fff; transform: translateY(-1px); }
.botao-secundario { background: #fff; color: var(--marca-forte); border: 2px solid var(--marca-forte); }
.botao-secundario:hover { background: var(--marca-clara); color: var(--marca-forte-hover); }
.botao-whats { background: #128c4a; }
.botao-whats:hover { background: #0d6e3a; }

/* ----- Abertura (hero) ----- */
.abertura { background: linear-gradient(180deg, var(--marca-clara) 0%, #fff 100%); padding: 64px 0 56px; }
.abertura h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.5px; max-width: 820px; }
.abertura .destaque { font-size: clamp(19px, 2.6vw, 23px); font-weight: 600; color: var(--marca-forte); margin: 0 0 26px; max-width: 720px; }
.abertura .subtitulo { font-size: clamp(17px, 2.2vw, 19px); color: var(--texto); margin: 18px 0 0; max-width: 680px; }
.abertura .subtitulo p { margin: 0 0 10px; }
.abertura .subtitulo .nota { font-size: 15px; color: var(--texto-suave); margin-bottom: 14px; }

/* ----- Quem somos (apresentação do escritório, 19/11/2026) ----- */
.apresentacao { display: grid; grid-template-columns: 5fr 6fr; gap: 36px; align-items: start; }
.apresentacao-foto { margin: 0; }
.apresentacao-foto img { width: 100%; border-radius: var(--raio); background: #fff; box-shadow: var(--sombra); }
.apresentacao-foto figcaption { font-size: 14px; color: var(--texto-suave); margin-top: 10px; text-align: center; }
.apresentacao-texto p { margin: 0 0 16px; }
.apresentacao-texto .assinatura { font-weight: 800; color: var(--marca-forte); letter-spacing: 0.5px; margin-top: 20px; }

/* ----- Seções ----- */
section { padding: 56px 0; }
.secao-alt { background: var(--fundo-alt); }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 24px; letter-spacing: -0.3px; }
h3 { font-size: 19px; margin: 0 0 8px; }

.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: passo; }
.passo { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); padding: 24px; box-shadow: var(--sombra); }
.passo::before {
  counter-increment: passo; content: counter(passo);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 12px;
  background: var(--marca-clara); color: var(--marca-forte); font-weight: 800;
}
.passo p { margin: 0; color: var(--texto-suave); }

.lista-verificacao { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.lista-verificacao li { position: relative; padding-left: 30px; }
.lista-verificacao li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--marca-clara) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23077a86' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.aviso { background: var(--alerta-fundo); border: 1px solid var(--alerta-borda); border-radius: var(--raio); padding: 18px 20px; }
.aviso ul { margin: 0; padding-left: 20px; }
.aviso li + li { margin-top: 6px; }

/* ----- Perguntas frequentes ----- */
details { border: 1px solid var(--borda); border-radius: 12px; background: #fff; padding: 0 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--marca-forte); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; color: var(--texto-suave); }

/* ----- Área do formulário (fluxo Etapa 1 → transição → Etapa 2 → fim) ----- */
.fluxo { padding: 40px 0 64px; }
.fluxo[hidden], .tela[hidden] { display: none; }
.cartao { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); padding: 28px; }
.etapa-rotulo { display: inline-block; font-size: 14px; font-weight: 700; color: var(--marca-forte); background: var(--marca-clara); border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.progresso { display: flex; gap: 8px; margin: 0 0 22px; }
.progresso span { flex: 1; height: 6px; border-radius: 3px; background: var(--borda); }
.progresso span.feito { background: var(--marca-forte); }
.formulario-tally { width: 100%; min-height: 520px; border: 0; }

.estimativa { text-align: center; background: var(--marca-clara); border-radius: var(--raio); padding: 22px; margin: 18px 0; }
.estimativa .valor { display: block; font-size: clamp(32px, 6vw, 44px); font-weight: 800; color: var(--marca-forte); letter-spacing: -0.5px; }
.estimativa small { color: var(--texto-suave); }
.ressalva { font-size: 14px; color: var(--texto-suave); }

.carregando { text-align: center; padding: 40px 10px; }
.girador { width: 46px; height: 46px; border-radius: 50%; border: 5px solid var(--marca-clara); border-top-color: var(--marca-forte); margin: 0 auto 18px; animation: girar 0.9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .girador { animation-duration: 3s; } html { scroll-behavior: auto; } }

.centro { text-align: center; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* ----- Rodapé ----- */
.rodape { background: #10272a; color: #c9dadc; padding: 40px 0; font-size: 15px; }
.rodape a { color: #8fe3ec; }
.rodape .container { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.rodape p { margin: 0 0 8px; }
.rodape .legal { grid-column: 1 / -1; border-top: 1px solid #23413f; padding-top: 18px; font-size: 13px; color: #9fb6b9; }

/* ----- Página de texto (Política de Privacidade) ----- */
.documento { padding: 40px 0 64px; }
.documento h1 { font-size: clamp(28px, 4.5vw, 38px); line-height: 1.2; margin: 0 0 6px; }
.documento h2 { font-size: 22px; margin: 36px 0 12px; }
.documento .vigencia { color: var(--texto-suave); margin: 0 0 28px; }
.documento table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.documento th, .documento td { border: 1px solid var(--borda); padding: 10px 12px; text-align: left; vertical-align: top; }
.documento th { background: var(--fundo-alt); }
/* Marca trechos que o advogado ainda precisa preencher — remover antes de publicar */
.pendente { background: #ffe08a; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* ----- Celular ----- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  /* Primeira tela do celular: logo + título + destaque + botão sem precisar rolar */
  .topo .container { padding-top: 8px; padding-bottom: 8px; }
  .topo .logo img { height: 54px; }
  .topo .contato { display: none; }
  /* 19/11/2026: até o 3º parágrafo do subtítulo precisa caber na primeira tela, legível */
  .abertura { padding: 16px 0 28px; }
  .abertura h1 { font-size: 26px; line-height: 1.16; margin-bottom: 8px; }
  .abertura .destaque { font-size: 17px; line-height: 1.35; margin-bottom: 14px; }
  .abertura .botao { min-height: 50px; padding: 13px 24px; }
  .abertura .subtitulo { font-size: 16px; line-height: 1.42; margin-top: 12px; }
  .abertura .subtitulo p { margin-bottom: 8px; }
  .abertura .subtitulo .nota { font-size: 14px; margin-bottom: 8px; }
  .apresentacao { grid-template-columns: 1fr; gap: 20px; }
  section { padding: 40px 0; }
  .passos, .lista-verificacao { grid-template-columns: 1fr; }
  .cartao { padding: 18px 14px; }
  .botao { width: 100%; }
  .rodape .container { grid-template-columns: 1fr; }
}
