/* ==========================================================================
   ON JURIS — Landing Page de Aquisição
   Design tokens
   ========================================================================== */

:root {
  --branco:     #FFFFFF;
  --osso:       #FAF9F6;
  --preto:      #0A0A0A;
  --grafite:    #3D3D3D;
  --cinza:      #6B6B6B;
  --linha:      #E8E6E1;
  --dourado:    #B8912F;
  --dourado-cl: #D4B45C;

  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --w: 1180px;
  --gut: clamp(20px, 5vw, 48px);
  --sect: clamp(64px, 9vw, 120px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sombra: 0 1px 3px rgba(10,10,10,.06), 0 8px 24px rgba(10,10,10,.04);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--branco);
  color: var(--grafite);
  font-family: var(--ui);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; }

:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Tipografia ------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--ui); margin: 0; color: var(--preto); }
.h1 { font-size: clamp(40px, 5.5vw, 68px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.15; }
.h3 { font-size: 24px; font-weight: 600; }

.lede { font-size: 21px; line-height: 1.6; font-weight: 400; max-width: 68ch; color: var(--grafite); }
.fine { font-size: 16px; color: var(--cinza); line-height: 1.55; }
.max-medida { max-width: 68ch; }

.marker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dourado);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}
.marker::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--linha);
  max-width: 140px;
}
.scene--dark .marker::after { background: rgba(255,255,255,.16); }

em { font-style: normal; color: var(--dourado); }

/* Layout ----------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: var(--sect); }
.scene--branco { background: var(--branco); }
.scene--osso { background: var(--osso); }
.scene--preto { background: var(--preto); color: rgba(255,255,255,.82); }
.scene--preto h1, .scene--preto h2, .scene--preto h3 { color: var(--branco); }
.scene--preto .lede { color: rgba(255,255,255,.72); }
.scene--preto .fine { color: rgba(255,255,255,.5); }
.two { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

/* ---------- Ícones SVG ---------- */
.ic { width: 22px; height: 22px; flex: 0 0 auto; stroke: var(--dourado); fill: none; stroke-width: 1.5; }
.ic--preto { stroke: var(--preto); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid var(--preto);
  border-radius: 2px;
  background: var(--preto);
  color: var(--branco);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn:hover { background: transparent; color: var(--preto); }
.scene--preto .btn:hover { color: var(--branco); }
.btn:active { transform: translateY(1px); }
.btn--dourado { background: var(--dourado); border-color: var(--dourado); color: var(--preto); }
.btn--dourado:hover { background: transparent; color: var(--dourado); }
.btn--ghost { background: transparent; color: inherit; border-color: var(--linha); }
.scene--preto .btn--ghost { border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { border-color: var(--dourado); color: var(--dourado); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Header ----------
   Sem JS: header estático, fundo claro, texto escuro — sempre legível.
   Com JS (classe .js na raiz): header fixo e transparente sobre o hero
   escuro (logo claro), ganhando fundo branco e logo escuro após 80px. */
.head {
  background: var(--branco);
  border-bottom: 1px solid var(--linha);
}
.js .head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.js .head.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha);
}
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { text-decoration: none; line-height: 1.1; }
.logo b { display: block; font-size: 20px; font-weight: 700; letter-spacing: .01em; color: var(--preto); }
.logo span { display: block; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--dourado); margin-top: 2px; }
.js .head:not(.is-scrolled) .logo b { color: var(--branco); }
.head .btn { padding: 11px 20px; font-size: 13px; }
@media (max-width: 640px) { .head .btn { display: none; } }
.js body { padding-top: 76px; }
@media (max-width: 560px) { .js body { padding-top: 68px; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 84px) clamp(56px, 8vw, 96px); }
.hero__kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dourado-cl); margin: 0 0 20px; font-weight: 600; }
.hero h1 { margin-bottom: 22px; color: var(--branco); }
.hero__lede { margin: 0 0 30px; }

.diffs { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.diffs li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 16px; }

.creds { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.creds span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.6); }
.creds span::before { content: ""; width: 4px; height: 4px; background: var(--dourado); }

/* ---------- Formulário ---------- */
.card {
  background: var(--branco);
  border-radius: 4px;
  border-top: 3px solid var(--dourado);
  box-shadow: var(--sombra);
  padding: clamp(24px, 3vw, 34px);
  color: var(--grafite);
  scroll-margin-top: 96px;
}
.card__head { border-bottom: 1px solid var(--linha); padding-bottom: 16px; margin-bottom: 22px; }
.card__head h2 { font-size: 25px; font-weight: 700; margin: 0 0 6px; color: var(--preto); }
.card__head p { margin: 0; font-size: 14.5px; color: var(--cinza); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--grafite); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 13px 14px;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: 4px;
  font-size: 16px;
  transition: border-color .18s ease;
}
.field input:hover, .field select:hover { border-color: #C9C6BE; }
.field input:focus, .field select:focus { border-color: var(--dourado); outline: none; }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--dourado) 50%), linear-gradient(135deg, var(--dourado) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .err { display: none; font-size: 16px; color: #B3261E; margin-top: 6px; }
.field.is-invalid input, .field.is-invalid select { border-color: #B3261E; }
.field.is-invalid .err { display: block; }

.form__foot { margin-top: 14px; text-align: center; }

/* ---------- Faixa de números ---------- */
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,4vw,40px); text-align: center; }
@media (max-width: 640px) { .numeros { grid-template-columns: 1fr; gap: 32px; } }
.numero__v { font-size: clamp(38px, 5vw, 54px); font-weight: 700; color: var(--preto); line-height: 1; }
.numero__l { font-size: 16px; color: var(--cinza); margin-top: 10px; letter-spacing: .01em; }

/* ---------- Grade de sinais (diagnóstico) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linha); border: 1px solid var(--linha); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
.sinal { background: var(--branco); padding: clamp(24px, 3vw, 32px); }
.sinal .ic { margin-bottom: 16px; }
.sinal h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; color: var(--preto); }
.sinal p { margin: 0; color: var(--cinza); font-size: 15.5px; line-height: 1.6; }
.sinal p + p { margin-top: 8px; }

/* ---------- Abas (estrutura da operação) ---------- */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--linha); background: var(--branco); }
@media (max-width: 820px) { .tabs { grid-template-columns: 1fr; } }
.tabs__list { list-style: none; padding: 0; margin: 0; border-right: 1px solid var(--linha); }
@media (max-width: 820px) { .tabs__list { border-right: 0; border-bottom: 1px solid var(--linha); display: flex; overflow-x: auto; } }
.tabs__list button {
  display: block; width: 100%; text-align: left;
  padding: 18px 22px; background: transparent; border: 0; border-bottom: 1px solid var(--linha);
  font-size: 15px; font-weight: 600; color: var(--grafite); cursor: pointer;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.tabs__list li:last-child button { border-bottom: 0; }
.tabs__list button:hover { background: var(--osso); }
.tabs__list button[aria-selected="true"] { background: var(--preto); color: var(--branco); }
.tabs__panels { position: relative; padding: clamp(28px, 3.4vw, 44px); }
/* Sem JS: todos os painéis ficam empilhados e visíveis (conteúdo acessível
   mesmo sem clique nas abas). Com JS, só o painel .is-active aparece. */
.tab-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 3vw, 40px); align-items: center;
  padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--linha);
}
.tab-panel:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.js .tab-panel { display: none; padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.js .tab-panel.is-active { display: grid; animation: fadeIn .25s ease; }
@media (max-width: 700px) { .tab-panel { grid-template-columns: 1fr; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.tab-panel h3 { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.tab-panel__sub { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dourado); margin: 0 0 18px; }
.tab-panel ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.tab-panel li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 15.5px; align-items: start; }
.tab-visual {
  aspect-ratio: 4/3; border-radius: 4px; background: var(--osso); border: 1px solid var(--linha);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.tab-visual__num { font-size: clamp(64px, 8vw, 108px); font-weight: 700; color: var(--linha); line-height: 1; }
.tab-visual .ic { position: absolute; width: 40px; height: 40px; stroke-width: 1.2; }

/* ---------- Comparativo ---------- */
.vs { border: 1px solid var(--linha); }
.vs__col { padding: clamp(24px, 3vw, 34px); }
.vs__col + .vs__col { border-left: 1px solid var(--linha); }
.vs__col--us { background: var(--osso); border-top: 3px solid var(--dourado); }
@media (max-width: 700px) { .vs__col + .vs__col { border-left: 0; border-top: 1px solid var(--linha); } }
.vs h3 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 20px; font-weight: 700; }
.vs__col--them h3 { color: var(--cinza); }
.vs__col--us h3 { color: var(--dourado); }
.vs ul { list-style: none; padding: 0; }
.vs li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--linha); position: relative; font-size: 15.5px; }
.vs li:last-child { border-bottom: 0; }
.vs__col--them li { color: var(--cinza); }
.vs__col--them li::before { content: "×"; position: absolute; left: 0; color: #C9C6BE; }
.vs__col--us li::before { content: "✓"; position: absolute; left: 0; color: var(--dourado); font-size: 13px; top: 13px; }

/* ---------- Método ---------- */
.steps { position: relative; padding-left: 64px; }
.steps__line { position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,.14); }
.steps__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: var(--dourado); transition: height .1s linear; }
.step { position: relative; padding-bottom: 44px; }
.step:last-child { padding-bottom: 0; }
.step__n {
  position: absolute; left: -64px; top: -2px; width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,.24); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--dourado-cl); background: var(--preto);
}
.step h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: var(--branco); }
.step p { margin: 0; color: rgba(255,255,255,.66); font-size: 16px; max-width: 62ch; }
.method-cta { margin-top: 48px; text-align: center; }

/* ---------- Portfólio ---------- */
.carrossel { position: relative; }
.carrossel__trilho { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carrossel__trilho::-webkit-scrollbar { display: none; }
.carrossel__item { flex: 0 0 clamp(260px, 34vw, 380px); scroll-snap-align: start; }
.carrossel__img {
  aspect-ratio: 4/3; border-radius: 4px; background: linear-gradient(150deg, var(--osso), #F0EEE8);
  border: 1px solid var(--linha); display: flex; align-items: center; justify-content: center;
}
.carrossel__img .ic { width: 34px; height: 34px; stroke-width: 1.2; }
.carrossel__item h3 { font-size: 17px; font-weight: 600; margin: 14px 0 4px; }
.carrossel__item p { margin: 0; font-size: 16px; color: var(--cinza); }
.carrossel__nav { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 20px; }
.carrossel__nav button {
  width: 40px; height: 40px; border-radius: 2px; border: 1px solid var(--linha); background: var(--branco);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .2s ease;
}
.carrossel__nav button:hover { border-color: var(--dourado); }
.carrossel__nav button:disabled { opacity: .35; cursor: default; }
.carrossel__nav svg { width: 18px; height: 18px; stroke: var(--preto); fill: none; stroke-width: 1.6; }
.carrossel__dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.carrossel__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--linha); transition: background .2s ease; }
.carrossel__dots span.is-active { background: var(--dourado); }

/* ---------- Critério ---------- */
.crit ul { list-style: none; padding: 0; margin: 0; }
.crit li { padding: 13px 0 13px 26px; border-bottom: 1px solid var(--linha); position: relative; font-size: 16px; }
.crit li:last-child { border-bottom: 0; }
.crit li::before { position: absolute; left: 0; top: 13px; }
.crit--nao li { color: var(--cinza); }
.crit--nao li::before { content: "×"; color: #C9C6BE; }
.crit--sim li::before { content: "✓"; color: var(--dourado); font-size: 13px; top: 14px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--linha); }
.faq details:first-child { border-top: 1px solid var(--linha); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0;
  font-size: 17px; font-weight: 600; color: var(--preto); position: relative; transition: color .18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--dourado); }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px;
  font-size: 22px; color: var(--dourado); font-weight: 400; transition: transform .25s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq__body { overflow: hidden; height: 0; transition: height .3s ease; }
.faq details[open] .faq__body { height: auto; }
.faq__body p { margin: 0 0 24px; color: var(--cinza); max-width: 68ch; font-size: 16px; }

/* ---------- CTA final ---------- */
.final { text-align: center; }
.final .h2 { margin-bottom: 20px; }
.final .lede { margin: 0 auto 32px; }

/* ---------- Rodapé ---------- */
.foot { padding-block: 40px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.foot__links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot__links a { font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; }
.foot__links a:hover { color: var(--dourado-cl); }
.foot .fine { max-width: 46ch; }

/* ---------- Página de obrigado ---------- */
.thanks { min-height: calc(100vh - 76px); display: grid; place-items: center; text-align: center; padding: var(--gut); background: var(--preto); color: rgba(255,255,255,.82); }
.thanks .marker { justify-content: center; }
.thanks h1 { color: var(--branco); }
.thanks__box { max-width: 560px; }
.thanks .lede { margin: 0 auto; color: rgba(255,255,255,.72); }
.timer { font-size: 54px; font-weight: 700; color: var(--dourado); line-height: 1; margin: 28px 0 8px; }

/* ---------- Botão flutuante ---------- */
.flutuante {
  position: fixed; z-index: 65;
  right: 24px; bottom: 24px;
  opacity: 0; transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.flutuante.is-visivel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.flutuante .btn { box-shadow: var(--sombra); white-space: nowrap; }
@media (max-width: 640px) {
  .flutuante {
    left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .flutuante .btn { width: 100%; height: 56px; }
}

/* ---------- Sistema de revelação (scroll-in) ---------- */
/* Sem JS: tudo visível. Com JS (classe .js na raiz), o item some até ganhar .is-visivel. */
.js .reveal:not(.is-visivel) { opacity: 0; transform: translateY(24px); }
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visivel { opacity: 1; transform: translateY(0); }

.js .hover-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.sinal.hover-card:hover, .tabs__list button.hover-card:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.is-visivel) { opacity: 1; transform: none; }
  .steps__fill { transition: none; }
}

/* ---------- Responsivo geral ---------- */
@media (max-width: 560px) {
  body { font-size: 17px; }
  .head__in { height: 68px; }
  .field--row { grid-template-columns: 1fr; }
  .lede { font-size: 19px; }
}
