/* ============================================================
   Tabelionato.Online — landing page
   Identidade: navy da marca (#494c5b → #232838) + dourado (#efbb40)
   ============================================================ */

:root {
  --navy-900: #1b1f2c;
  --navy-800: #232838;
  --navy-700: #2f3648;
  --navy-600: #494c5b;
  --navy-400: #6f7488;
  --navy-300: #9aa0b2;

  /* Escala construída a partir do amarelo da logomarca (#efbb40 — h42 s85%).
     Os tons 500/600 são o MESMO amarelo escurecido, e não um âmbar
     amarronzado: só eles têm contraste suficiente para texto sobre o papel.
     Sobre fundo navy usa-se sempre o amarelo puro da marca (400/300). */
  --ouro-600: #b3820f;
  --ouro-500: #dca513;
  --ouro-400: #efbb40;
  --ouro-300: #f7c55e;
  --ouro-100: #fbeccb;

  --papel: #faf9f6;
  --papel-2: #f4f2ec;
  --papel-3: #eceae2;
  --branco: #ffffff;

  --texto: #232838;
  --texto-suave: #5c6070;
  --linha: #e2dfd6;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --faixa: 1180px;
  --raio: 14px;
  --sombra: 0 1px 2px rgba(35, 40, 56, .05), 0 12px 32px -18px rgba(35, 40, 56, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 124px; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .84em;
  white-space: nowrap;
  background: var(--papel-3);
  border-radius: 5px;
  padding: .1em .4em;
}

.pular {
  position: absolute;
  left: -9999px;
  background: var(--navy-800);
  color: var(--papel);
  padding: .75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.pular:focus { left: 0; top: 0; }

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

.faixa {
  width: 100%;
  max-width: var(--faixa);
  margin-inline: auto;
  padding-inline: 24px;
}
.faixa--estreita { max-width: 760px; }

/* ─────────────── Botões ─────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ouro {
  background: var(--ouro-400);
  color: var(--navy-900);
  box-shadow: 0 10px 22px -14px rgba(184, 135, 31, .95);
}
.btn--ouro:hover { background: var(--ouro-300); box-shadow: 0 14px 26px -14px rgba(184, 135, 31, 1); }

.btn--vazado {
  border-color: rgba(35, 40, 56, .22);
  color: var(--navy-700);
  background: transparent;
}
.btn--vazado:hover { border-color: var(--navy-700); background: rgba(35, 40, 56, .04); }

.btn--pequeno { padding: .58rem 1.1rem; font-size: .9rem; }
.btn--grande { padding: 1rem 2rem; font-size: 1.05rem; }

/* ─────────────── Cabeçalho ─────────────── */

.cabecalho {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.cabecalho.rolado {
  border-bottom-color: var(--linha);
  box-shadow: 0 8px 24px -22px rgba(35, 40, 56, .8);
}

.cabecalho__interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 104px;
  padding-block: 14px;
}

.cabecalho__marca { display: block; }
.cabecalho__marca img { width: 150px; height: auto; }

.menu {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.menu a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--navy-600);
  position: relative;
  padding-block: .25rem;
}
.menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--ouro-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.menu a:not(.btn):hover { color: var(--navy-900); }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.menu .btn { color: var(--navy-900); }

.menu-botao {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--linha);
  border-radius: 10px;
  cursor: pointer;
}
.menu-botao span {
  display: block;
  height: 1.7px;
  background: var(--navy-700);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.menu-botao[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.7px) rotate(45deg); }
.menu-botao[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-botao[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.7px) rotate(-45deg); }

/* ─────────────── Tipografia de seção ─────────────── */

.sobrancelha {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ouro-400);
  margin-bottom: 1rem;
}

.secao { padding: clamp(72px, 9vw, 118px) 0; }

.secao--papel { background: var(--papel-2); }

.secao--escura {
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(239, 187, 64, .13), transparent 62%),
    var(--navy-800);
  color: var(--papel-2);
}

.secao__cabeca {
  max-width: 720px;
  margin: 0 auto clamp(44px, 5vw, 68px);
  text-align: center;
}
.secao__cabeca--esq { text-align: left; margin-inline: 0; }
.secao__cabeca h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); }

.secao__linha {
  margin-top: 1.15rem;
  font-size: 1.08rem;
  color: var(--texto-suave);
}
.secao--escura .secao__linha { color: rgba(244, 242, 236, .74); }

/* ─────────────── Hero ─────────────── */

.hero {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 clamp(44px, 5vw, 64px);
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(239, 187, 64, .16), transparent 60%),
    radial-gradient(760px 460px at -6% 8%, rgba(73, 76, 91, .09), transparent 62%),
    var(--papel);
  overflow: hidden;
}

.hero__grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(40px, 5vw, 68px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  line-height: 1.06;
}
.hero h1 em {
  font-style: italic;
  color: var(--ouro-400);
}

.chamada {
  margin-top: 1.6rem;
  font-size: 1.14rem;
  color: var(--texto-suave);
  max-width: 34em;
}

.hero__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.2rem;
}

.hero__prova {
  margin-top: 2.1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linha);
  font-size: .95rem;
  color: var(--texto-suave);
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
.hero__prova strong { color: var(--navy-700); font-weight: 600; }

.ponto-vivo {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3f9d6b;
  box-shadow: 0 0 0 0 rgba(63, 157, 107, .55);
  animation: pulsar 2.6s infinite;
  flex: none;
}
@keyframes pulsar {
  0%   { box-shadow: 0 0 0 0 rgba(63, 157, 107, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(63, 157, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 157, 107, 0); }
}

/* ── Simulação da tela ── */

.tela {
  border-radius: 16px;
  background: var(--branco);
  border: 1px solid var(--linha);
  box-shadow: 0 2px 4px rgba(35, 40, 56, .04), 0 40px 70px -40px rgba(35, 40, 56, .5);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg);
}

.tela__topo {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .7rem 1rem;
  background: var(--navy-800);
  color: rgba(244, 242, 236, .9);
  font-size: .78rem;
  letter-spacing: .02em;
}
.tela__pontos { display: flex; gap: 5px; }
.tela__pontos i { width: 8px; height: 8px; border-radius: 50%; background: rgba(244, 242, 236, .28); }
.tela__protocolo { font-weight: 500; }

.tela__corpo {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  min-height: 372px;
}

.painel { padding: 1.05rem 1.1rem; }
.painel--roteiro { border-right: 1px solid var(--linha); background: var(--papel); }
.painel--minuta { background: var(--branco); }

.painel__cabeca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--navy-400);
  margin-bottom: .8rem;
}
.painel__pct { color: var(--ouro-600); }
.painel__tag {
  background: var(--ouro-100);
  color: var(--ouro-600);
  border-radius: 999px;
  padding: .12rem .55rem;
  letter-spacing: .06em;
  font-size: .64rem;
}

.barra {
  height: 5px;
  border-radius: 999px;
  background: var(--papel-3);
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.barra span { display: block; height: 100%; border-radius: 999px; background: var(--ouro-400); }

.pergunta {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .6rem .7rem;
  border-radius: 9px;
  border: 1px solid var(--linha);
  background: var(--branco);
  margin-bottom: .55rem;
}
.pergunta b { display: block; font-size: .8rem; font-weight: 600; color: var(--navy-700); }
.pergunta i { display: block; font-style: normal; font-size: .76rem; color: var(--texto-suave); margin-top: .1rem; }

.marca-ok {
  flex: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #e6f2ec;
  color: #2f7a55;
  font-size: .68rem;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.marca-pendente {
  flex: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1.8px dashed var(--ouro-500);
  margin-top: 2px;
}
.pergunta--pendente { border-color: var(--ouro-300); background: #fffdf7; }
.pergunta--pendente i { color: var(--ouro-600); }

.aviso {
  display: flex;
  gap: .55rem;
  font-size: .74rem;
  line-height: 1.5;
  color: var(--ouro-600);
  background: var(--ouro-100);
  border-radius: 9px;
  padding: .6rem .7rem;
  margin-bottom: .55rem;
}
.aviso span {
  flex: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ouro-400);
  color: var(--navy-900);
  font-size: .68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.aviso b { color: var(--ouro-600); }

.folha {
  font-family: var(--serif);
  font-size: .77rem;
  line-height: 1.85;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  color: var(--navy-700);
}
.folha p { margin-bottom: .7rem; }
.folha b { font-weight: 600; }

.chip {
  hyphens: none;
  -webkit-hyphens: none;
  background: var(--ouro-100);
  border-bottom: 1.5px solid var(--ouro-400);
  border-radius: 4px 4px 0 0;
  padding: .05em .35em;
  font-family: var(--sans);
  font-size: .92em;
  color: var(--ouro-600);
}

/* ── Pilares ── */

.pilares {
  list-style: none;
  margin: clamp(48px, 6vw, 76px) 0 0;
  padding: 1.9rem 0 0;
  border-top: 1px solid var(--linha);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.9rem;
}
.pilares li { display: flex; flex-direction: column; gap: .3rem; }
.pilares b {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--navy-800);
}
.pilares span { font-size: .92rem; color: var(--texto-suave); line-height: 1.5; }

/* ─────────────── Antes / depois ─────────────── */

.antes-depois {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.antes-depois article {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--sombra);
}
.antes-depois .antes {
  font-size: .97rem;
  color: var(--navy-400);
  padding-left: 1.5rem;
  position: relative;
}
.antes-depois .antes::before {
  content: "✕";
  position: absolute;
  left: 0;
  font-size: .8rem;
  color: #b8a99a;
}
.antes-depois .depois {
  margin-top: .95rem;
  padding-top: .95rem;
  padding-left: 1.5rem;
  border-top: 1px dashed var(--linha);
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--navy-800);
  position: relative;
}
.antes-depois .depois::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .95rem;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--ouro-500);
}

/* ─────────────── Cartões de funcionalidade ─────────────── */

.cartoes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.cartao {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 1.7rem 1.6rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cartao:hover {
  transform: translateY(-3px);
  border-color: var(--ouro-300);
  box-shadow: 0 26px 44px -34px rgba(35, 40, 56, .6);
}
.cartao h3 {
  font-size: 1.18rem;
  margin-bottom: .6rem;
  color: var(--navy-800);
}
.cartao p { font-size: .95rem; color: var(--texto-suave); }

.icone {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--ouro-100);
  color: var(--ouro-600);
  margin-bottom: 1.15rem;
}
.icone svg { width: 22px; height: 22px; }

/* ─────────────── Passos ─────────────── */

.passos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.passos li {
  padding-top: 1.6rem;
  border-top: 1px solid rgba(244, 242, 236, .22);
  position: relative;
}
.passos li::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 42px; height: 2px;
  background: var(--ouro-400);
}
.passos__n {
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ouro-400);
}
.passos h3 {
  font-size: 1.25rem;
  margin: .5rem 0 .6rem;
  color: var(--papel-2);
}
.passos p { font-size: .95rem; color: rgba(244, 242, 236, .7); }

/* ─────────────── Confiança ─────────────── */

.lista-selo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem 2.4rem;
}
.lista-selo li {
  font-size: .95rem;
  color: var(--texto-suave);
  padding-left: 1.7rem;
  position: relative;
}
.lista-selo li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--ouro-400);
  transform: rotate(45deg);
}
.lista-selo b {
  display: block;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: .3rem;
  line-height: 1.3;
}

/* ─────────────── FAQ ─────────────── */

.faq {
  border-top: 1px solid var(--linha);
}
.faq details {
  border-bottom: 1px solid var(--linha);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--navy-800);
  position: relative;
  transition: color .18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ouro-600); }
.faq summary::after {
  content: "";
  position: absolute;
  right: .35rem; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--ouro-500);
  border-bottom: 2px solid var(--ouro-500);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p {
  padding: 0 2.5rem 1.5rem 0;
  margin-top: -.35rem;
  font-size: 1rem;
  color: var(--texto-suave);
}

/* ─────────────── CTA ─────────────── */

.cta {
  background:
    radial-gradient(680px 340px at 50% 0%, rgba(239, 187, 64, .16), transparent 65%),
    var(--navy-900);
  color: var(--papel-2);
  padding: clamp(72px, 9vw, 112px) 0;
  text-align: center;
}
.cta h2 { font-size: clamp(1.95rem, 3.6vw, 2.75rem); }
.cta__linha {
  margin: 1.3rem auto 0;
  max-width: 40em;
  color: rgba(244, 242, 236, .74);
}
.cta__acoes {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.cta__email {
  font-size: .95rem;
  color: rgba(244, 242, 236, .6);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 242, 236, .25);
  padding-bottom: 2px;
}
.cta__email:hover { color: var(--ouro-400); border-color: var(--ouro-400); }

/* ─────────────── Rodapé ─────────────── */

.rodape {
  background: var(--navy-800);
  color: rgba(244, 242, 236, .68);
  padding: clamp(48px, 6vw, 68px) 0 1.8rem;
  font-size: .92rem;
}
.rodape__grade {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(244, 242, 236, .13);
}
.rodape__marca img { width: 190px; }

.rodape__links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: .6rem 3rem;
}
.rodape__links a { text-decoration: none; transition: color .18s ease; }
.rodape__links a:hover { color: var(--ouro-400); }

.rodape__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  padding-top: 1.6rem;
  font-size: .86rem;
  color: rgba(244, 242, 236, .5);
}
.rodape__base a { color: inherit; text-decoration: none; }
.rodape__base a:hover { color: var(--ouro-400); }

/* ─────────────── Revelação ao rolar ─────────────── */

.revelar {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.revelar.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revelar { opacity: 1; transform: none; transition: none; }
  .ponto-vivo { animation: none; }
  .btn:hover, .cartao:hover { transform: none; }
}

/* ─────────────── Responsivo ─────────────── */

@media (max-width: 1080px) {
  .hero__grade { grid-template-columns: 1fr; }
  .hero__tela { max-width: 620px; }
  .tela { transform: none; }
  .cartoes { grid-template-columns: repeat(2, 1fr); }
  .passos { grid-template-columns: repeat(2, 1fr); }
  .pilares { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2rem; }
  .lista-selo { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .menu-botao { display: flex; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 24px 1.4rem;
    background: var(--papel);
    border-bottom: 1px solid var(--linha);
    box-shadow: 0 24px 40px -30px rgba(35, 40, 56, .8);
    display: none;
  }
  .menu.aberto { display: flex; }
  .menu a:not(.btn) {
    padding: .85rem 0;
    border-bottom: 1px solid var(--linha);
    font-size: 1rem;
  }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 1.1rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .cabecalho__interno { min-height: 84px; padding-block: 10px; }
  .cabecalho__marca img { width: 124px; }
  .antes-depois { grid-template-columns: 1fr; }
  .cartoes { grid-template-columns: 1fr; }
  .passos { grid-template-columns: 1fr; gap: 1.9rem; }
  .lista-selo { grid-template-columns: 1fr; }
  .tela__corpo { grid-template-columns: 1fr; }
  .painel--roteiro { border-right: 0; border-bottom: 1px solid var(--linha); }
  .hero__acoes .btn { flex: 1 1 100%; }
  .rodape__grade { flex-direction: column; gap: 2rem; }
}

@media (max-width: 420px) {
  .pilares { grid-template-columns: 1fr; }
  .rodape__links { grid-template-columns: 1fr; }
}
