/* =========================================================
   Zaffalão & Gimenez — LP Auxílio-Acidente
   Mobile-first · pensado para leitura fácil (idosos e leigos)
   ========================================================= */

:root {
  color-scheme: light;
  /* Marca */
  --green-950: #021f16;
  --green-900: #032f22;
  --green-800: #04412f;
  --green-700: #05543c; /* cor oficial da marca */
  --green-600: #0b6a4c;
  --green-200: #c9ddd3;
  --green-100: #e4efe9;
  --green-50: #f1f7f4;
  --gold-500: #f2b33d;
  --gold-400: #f6c564;
  --gold-100: #fdf1d6;
  --copper: #9c5a2e;

  /* Neutros */
  --ink: #13211b;
  --ink-2: #33433b;
  --muted: #55655d;
  --line: #d6e0db;
  --cream: #f8f5ee;
  --white: #ffffff;
  --red: #b3261e;
  --wa: #128c4a;

  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(2, 31, 22, .08);
  --shadow: 0 14px 40px rgba(2, 31, 22, .14);
  --shadow-lg: 0 30px 70px rgba(2, 31, 22, .25);

  --gutter: 20px;
  --header-h: 68px;
  --tap: 56px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html.chat-open, html.chat-open body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 7.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 5.6vw, 2.35rem); font-weight: 800; color: var(--green-800); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--green-700); text-underline-offset: 3px; }
strong { font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold-500); color: var(--ink); padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt { margin-top: 32px; }
.todo { background: #fff3a8; color: #5a4600; padding: 0 4px; border-radius: 4px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }

.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-tint { background: var(--green-50); }
.section-green { background: radial-gradient(120% 90% at 100% 0%, var(--green-600) 0%, var(--green-700) 40%, var(--green-900) 100%); color: var(--white); }
.section-green h2, .section-green h3 { color: var(--white); }

.section-head { margin-bottom: 36px; }
.section-head.center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.section-green .lead { color: rgba(255,255,255,.9); }
.small-note { color: var(--muted); font-size: .95rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 12px;
}
.eyebrow-light { color: var(--gold-400); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 14px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gold-500); color: var(--green-950); box-shadow: 0 8px 22px rgba(242, 179, 61, .35), inset 0 -3px 0 rgba(0,0,0,.12); }
.btn-primary:hover { background: var(--gold-400); box-shadow: 0 12px 28px rgba(242, 179, 61, .45), inset 0 -3px 0 rgba(0,0,0,.12); }
.btn-xl { min-height: 64px; font-size: 1.02rem; padding: 16px 20px; }
@media (min-width: 640px) { .btn-xl { font-size: 1.08rem; padding: 16px 30px; } }
.btn-ghost-light { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-800); min-width: 0; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font-family: var(--font-head); font-size: .92rem; font-weight: 800; white-space: nowrap; }
.brand-text small { font-size: .7rem; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-icon-text {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; min-width: 46px; padding: 0 16px;
  border-radius: 12px; border: 2px solid var(--green-700); background: var(--green-700);
  color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: .95rem; text-decoration: none;
}
.btn-icon-text span { font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(242,179,61,.16) 0%, transparent 60%),
    radial-gradient(80% 80% at 0% 100%, rgba(11,106,76,.9) 0%, transparent 60%),
    linear-gradient(160deg, var(--green-700) 0%, var(--green-900) 100%);
  color: var(--white);
  padding: 36px 0 40px;
}
.hero::before { /* textura sutil */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.hero-grid { position: relative; display: grid; gap: 28px; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 .hl { color: var(--gold-400); position: relative; }
.hero-sub { font-size: 1.12rem; color: rgba(255,255,255,.92); margin-bottom: 20px; }
.hero-sub strong { color: var(--white); }
.hero-list { display: grid; gap: 10px; margin-bottom: 26px; }
.hero-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; color: rgba(255,255,255,.95); }
.hero-list .ico { color: var(--green-950); background: var(--gold-500); border-radius: 50%; padding: 4px; width: 26px; height: 26px; stroke-width: 3; margin-top: 1px; }
.hero-ctas .btn { width: 100%; }
.cta-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: .92rem; color: rgba(255,255,255,.85); }

/* Moldura da foto: filete dourado deslocado + selo da marca + legenda */
.hero-visual { position: relative; margin: 20px auto 0; width: 100%; max-width: 400px; padding: 0 16px 16px 0; }
.hero-visual::before {
  content: ""; position: absolute; inset: 16px 0 0 16px;
  border: 1px solid rgba(246, 197, 100, .6); border-radius: 22px; pointer-events: none;
}
.hv-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden;
  background: #e8e3d8;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .14);
}
.hv-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.hv-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 72px 18px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 31, 22, .5) 40%, rgba(2, 31, 22, .9) 100%);
  color: var(--white); line-height: 1.2;
}
.hv-person { display: flex; flex-direction: column; gap: 5px; }
.hv-person-right { text-align: right; }
.hv-person strong { font-family: var(--font-head); font-weight: 700; font-size: .86rem; }
.hv-person small { font-family: var(--font-head); font-weight: 700; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); }
.hv-seal {
  position: absolute; top: -14px; left: -14px;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--white); box-shadow: 0 10px 24px rgba(0, 0, 0, .3), 0 0 0 4px rgba(246, 197, 100, .55);
}
.hv-seal img { width: 34px; height: 34px; }

/* Início rápido */
.quickstart {
  position: relative; margin-top: 32px;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg); padding: 22px 18px;
  box-shadow: var(--shadow-lg);
}
.quickstart-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 16px; }
.step-dot { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green-700); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: .9rem; }
.quickstart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qs-btn {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
  min-height: 92px; padding: 14px; text-align: left;
  border-radius: var(--radius); border: 2px solid var(--line); background: var(--green-50);
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; line-height: 1.25; color: var(--green-900);
  transition: border-color .15s, background-color .15s, transform .15s;
}
.qs-btn .ico { width: 30px; height: 30px; color: var(--green-700); }
.qs-btn:hover { border-color: var(--green-700); background: var(--white); }
.qs-btn:active { transform: scale(.98); }

/* ---------- Faixa de confiança ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); padding: 22px 0; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.trust-item { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink-2); line-height: 1.35; }
.trust-item .ico { color: var(--green-700); width: 26px; height: 26px; }
.trust-item strong { color: var(--ink); }

/* ---------- Teste rápido ---------- */
.check-list { display: grid; gap: 14px; }
.check-item { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color .2s; }
.check-item p { display: flex; gap: 12px; font-size: 1.05rem; margin-bottom: 14px; }
.num { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-family: var(--font-head); font-weight: 800; font-size: .9rem; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yn button { min-height: var(--tap); border-radius: 14px; border: 2px solid var(--line); background: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.yn button:hover { border-color: var(--green-700); }
.yn button[aria-pressed="true"][data-a="sim"] { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.yn button[aria-pressed="true"][data-a="nao"] { background: var(--ink-2); color: var(--white); border-color: var(--ink-2); }
.check-item.answered { border-color: var(--green-200); }
.check-result { margin-top: 20px; padding: 24px; border-radius: var(--radius-lg); text-align: center; animation: pop .35s ease; }
.check-result.good { background: var(--green-700); color: var(--white); }
.check-result.good h3 { color: var(--gold-400); font-size: 1.3rem; }
.check-result.meh { background: var(--white); border: 2px solid var(--line); }
.check-result .btn { margin-top: 6px; width: 100%; max-width: 420px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- O que é ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.explain-card { background: var(--green-50); border-left: 6px solid var(--green-700); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 20px; }
.explain-big { font-size: 1.18rem; line-height: 1.5; color: var(--ink); }
.explain-card p:last-child { margin: 0; color: var(--ink-2); }
.facts { display: grid; gap: 14px; }
.fact { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.fact h3 { margin-bottom: 4px; color: var(--green-800); }
.fact p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.fact-ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 15px; background: var(--gold-100); color: var(--copper); }
.fact-ico .ico { width: 26px; height: 26px; }

/* ---------- Tipos ---------- */
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type { background: var(--white); border-radius: var(--radius); padding: 18px 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.type h3 { font-size: 1rem; margin-bottom: 4px; color: var(--green-800); }
.type p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.type-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--green-700); color: var(--white); margin-bottom: 12px; }
.type-ico .ico { width: 26px; height: 26px; }

/* ---------- Sequelas ---------- */
.split-body { align-items: center; }
.body-fig { order: 2; margin: 0 auto; width: 100%; max-width: 230px; background: radial-gradient(closest-side, var(--green-50), transparent); }
.body-shape circle, .body-shape rect { fill: var(--green-100); }
.body-shape path { fill: none; stroke: var(--green-100); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.joint circle { fill: var(--copper); stroke: var(--white); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.joint text { fill: var(--white); font: 800 10px var(--font-head); text-anchor: middle; }
.joint::before { content: none; }
.reduced-motion .joint circle { animation: none; }
.joint circle { animation: joint 2.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes joint { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.seq-list { display: grid; gap: 10px; margin: 8px 0 18px; }
.seq-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 1rem; line-height: 1.45; }
.seq-list .num { background: var(--copper); color: var(--white); width: 28px; height: 28px; font-size: .8rem; }
#sequelas .btn { width: 100%; margin-top: 8px; }

/* ---------- Requisitos ---------- */
.reqs { display: grid; gap: 14px; counter-reset: req; }
.req { position: relative; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 22px 20px 20px; }
.req h3 { font-size: 1.12rem; margin-bottom: 6px; }
.req p { margin: 0; color: rgba(255,255,255,.88); }
.req strong { color: var(--white); }
.req-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-500); color: var(--green-950); font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.notice { display: flex; gap: 14px; margin-top: 22px; padding: 20px; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.notice > .ico { color: var(--copper); width: 30px; height: 30px; }
.notice ul { display: grid; gap: 6px; margin: 8px 0 10px; }
.notice li { padding-left: 18px; position: relative; }
.notice li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.notice p { margin: 0; color: var(--ink-2); }
.section-green .btn-xl { width: 100%; max-width: 420px; }

/* ---------- Mitos ---------- */
.myths { display: grid; gap: 14px; }
.myth { background: var(--white); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.myth-q { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); margin-bottom: 12px; }
.myth-a { margin: 0; color: var(--ink-2); padding-top: 12px; border-top: 1px dashed var(--line); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; border-radius: 999px; font-family: var(--font-head); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; vertical-align: 2px; }
.tag .ico { width: 15px; height: 15px; stroke-width: 3; }
.tag-no { background: #fbe4e2; color: var(--red); }
.tag-yes { background: var(--green-100); color: var(--green-700); }

/* ---------- Comparativo ---------- */
.compare { display: grid; gap: 14px; margin-bottom: 24px; }
.cmp { position: relative; border-radius: var(--radius); padding: 22px 20px; border: 2px solid var(--line); background: var(--white); }
.cmp h3 { font-size: 1.15rem; color: var(--ink); }
.cmp-for { color: var(--ink-2); }
.cmp ul { display: grid; gap: 8px; }
.cmp li { display: flex; gap: 8px; align-items: center; font-size: .97rem; }
.cmp li .ico { color: var(--green-700); stroke-width: 3; }
.cmp li .ico.no { color: var(--red); }
.cmp-featured { border-color: var(--green-700); background: var(--green-50); box-shadow: var(--shadow); }
.cmp-featured h3 { color: var(--green-800); }
.cmp-badge { position: absolute; top: -14px; left: 20px; background: var(--gold-500); color: var(--green-950); font-family: var(--font-head); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; }

/* ---------- Como funciona ---------- */
.steps { display: grid; gap: 14px; margin-bottom: 28px; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 20px 20px 20px 84px; min-height: 96px; border: 1px solid var(--line); }
.step-n { position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-700); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.step h3 { margin-bottom: 4px; color: var(--green-800); }
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.docs { background: var(--white); border-radius: var(--radius-lg); padding: 24px 20px; border: 2px solid var(--green-200); }
.docs-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.docs-head h3 { margin: 0 0 2px; color: var(--green-800); font-size: 1.2rem; }
.docs-head p { margin: 0; color: var(--ink-2); }
.docs-list { display: grid; gap: 10px; }
.docs-list li { display: flex; gap: 10px; align-items: flex-start; }
.docs-list .ico { color: var(--green-700); stroke-width: 3; margin-top: 3px; }

/* ---------- Equipe ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 0 auto; }
.lawyer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.lawyer-photo { aspect-ratio: 1; background: var(--green-100); }
.lawyer-photo img { width: 100%; height: 100%; object-fit: cover; }
.lawyer-info { padding: 14px 14px 16px; border-top: 4px solid var(--green-700); }
.lawyer h3 { font-size: .98rem; line-height: 1.25; margin-bottom: 4px; color: var(--green-800); }
.lawyer-role { margin: 0; font-size: .86rem; color: var(--muted); }
.office { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--green-50); }
.office .ico { color: var(--green-700); width: 26px; height: 26px; }
.office p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: var(--radius); border: 2px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--green-700); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 64px; padding: 16px 18px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.35; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--green-700); width: 28px; height: 28px; padding: 3px; border-radius: 50%; background: var(--green-100); transition: transform .25s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq-a { padding: 0 18px 18px; color: var(--ink-2); }
.faq-a p { margin: 0; }

/* ---------- CTA final ---------- */
.final-cta { background: linear-gradient(160deg, var(--green-700), var(--green-950)); color: var(--white); position: relative; overflow: hidden; }
.final-cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; border: 60px solid rgba(242,179,61,.12); }
.final-cta h2 { color: var(--white); }
.final-cta .lead { color: rgba(255,255,255,.9); }
.final-actions { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: center; margin-top: 26px; }
.final-actions .btn { width: 100%; max-width: 440px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.82); padding: 48px 0 110px; font-size: .92rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 28px; margin-bottom: 28px; }
.footer-grid img { width: 186px; margin-bottom: 14px; }
.footer-name { font-weight: 700; color: var(--white); margin-bottom: 6px; }
.footer-contacts { display: grid; gap: 12px; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contacts .ico { color: var(--gold-400); margin-top: 2px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: .82rem; color: rgba(255,255,255,.7); }
.footer-legal p { margin-bottom: 8px; }

/* ---------- Barra fixa (mobile) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(2,31,22,.12);
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-bar.show { transform: none; }
.sticky-bar .btn { flex: 1; min-height: 58px; }
.sticky-wa { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--white); }
.sticky-wa .ico { width: 30px; height: 30px; stroke-width: 1.8; }
html.chat-open .sticky-bar { transform: translateY(110%); }

/* Launcher (desktop) */
.chat-launcher { display: none; }

/* ---------- Animações de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   CHAT
   ========================================================= */
.chat { position: fixed; inset: 0; z-index: 100; }
.chat[hidden] { display: none; }
.chat-backdrop { position: absolute; inset: 0; background: rgba(2,31,22,.55); backdrop-filter: blur(3px); animation: fade .25s ease; }
.chat-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: #f3f6f4; height: 100%; height: 100dvh;
  animation: slideUp .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }

.chat-header { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--green-700); color: var(--white); }
.chat-avatar { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.chat-avatar img { width: 30px; height: 30px; }
.chat-avatar .online { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #3ddc84; border: 2px solid var(--green-700); }
.chat-title { flex: 1; min-width: 0; line-height: 1.25; }
.chat-title p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.chat-title small { font-size: .8rem; color: rgba(255,255,255,.85); }
.chat-close, .chat-back { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; border: 0; background: rgba(255,255,255,.12); color: var(--white); }
.chat-close:hover, .chat-back:hover { background: rgba(255,255,255,.22); }
.chat-close .ico, .chat-back .ico { width: 24px; height: 24px; }
.chat-progress { height: 6px; background: var(--green-200); }
.chat-progress span { display: block; height: 100%; width: 0; background: var(--gold-500); transition: width .4s ease; }

.chat-body { flex: 1; overflow-y: auto; padding: 20px 14px 12px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 20px; font-size: 1.02rem; line-height: 1.5; animation: msgIn .25s ease; word-wrap: break-word; }
.msg p { margin: 0 0 .5em; }
.msg p:last-child { margin: 0; }
.msg-bot { align-self: flex-start; background: var(--white); color: var(--ink); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.msg-user { align-self: flex-end; background: var(--green-700); color: var(--white); border-bottom-right-radius: 6px; }
.msg-hint { display: block; margin-top: 6px; font-size: .88rem; color: var(--muted); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); opacity: .4; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; transform: translateY(-3px); } }

.chat-controls { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); max-height: 62dvh; overflow-y: auto; }
.chat-controls:empty { display: none; }
.opts { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px;
  border: 2px solid var(--line); border-radius: 16px; background: var(--white);
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; line-height: 1.3; text-align: left; color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.opt:hover { border-color: var(--green-700); background: var(--green-50); }
.opt .box { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--green-200); background: var(--white); }
.opt .box .ico { width: 18px; height: 18px; stroke-width: 3.2; color: var(--white); opacity: 0; }
.opt[aria-pressed="true"] { border-color: var(--green-700); background: var(--green-50); }
.opt[aria-pressed="true"] .box { background: var(--green-700); border-color: var(--green-700); }
.opt[aria-pressed="true"] .box .ico { opacity: 1; }
.opt-primary { justify-content: center; background: var(--gold-500); border-color: var(--gold-500); color: var(--green-950); font-family: var(--font-head); }
.opt-primary:hover { background: var(--gold-400); border-color: var(--gold-400); }
.opt-primary[disabled] { opacity: .45; cursor: not-allowed; }
.opt-wa { justify-content: center; background: var(--wa); border-color: var(--wa); color: var(--white); font-family: var(--font-head); }
.opt-wa:hover { background: #0f7a40; border-color: #0f7a40; }
.opt-wa .ico { stroke-width: 1.8; width: 26px; height: 26px; }
.opt-ghost { justify-content: center; background: transparent; border-color: transparent; color: var(--green-700); text-decoration: underline; min-height: 48px; }
.opts-hint { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }

.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: .95rem; }
.field-row { display: flex; gap: 8px; }
.field input {
  flex: 1; min-width: 0; min-height: 58px; padding: 0 16px;
  border: 2px solid var(--line); border-radius: 16px; background: var(--white);
  font: 400 1.1rem var(--font-body); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(5,84,60,.15); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field-send { flex: none; width: 58px; height: 58px; border: 0; border-radius: 16px; background: var(--gold-500); color: var(--green-950); display: grid; place-items: center; }
.field-send .ico { width: 24px; height: 24px; }
.field-error { margin: 0; color: var(--red); font-size: .92rem; font-weight: 700; }
.consent { font-size: .88rem; color: var(--ink-2); margin: 0 0 12px; line-height: 1.45; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.result-card { align-self: stretch; max-width: none; border-radius: 20px; padding: 20px; text-align: left; }
.result-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.result-alta { background: var(--green-700); color: var(--white); }
.result-alta h3 { color: var(--gold-400); }
.result-media { background: var(--gold-100); color: var(--ink); border: 2px solid var(--gold-400); }
.result-media h3 { color: var(--green-800); }
.result-baixa { background: var(--white); color: var(--ink); border: 2px solid var(--line); }
.result-baixa h3 { color: var(--ink); }
.protocol { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.08); font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.result-alta .protocol { background: rgba(255,255,255,.15); }

/* =========================================================
   TELAS MAIORES
   ========================================================= */
@media (max-width: 379px) {
  :root { --gutter: 16px; }
  .brand-text strong { font-size: .84rem; }
  .btn-icon-text span { display: none; }
}

@media (min-width: 640px) {
  .quickstart-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .types { grid-template-columns: repeat(3, 1fr); }
  .team { gap: 24px; }
  .lawyer-info { padding: 20px 22px 22px; }
  .lawyer h3 { font-size: 1.12rem; }
  .reqs { grid-template-columns: repeat(3, 1fr); }
  .myths { grid-template-columns: 1fr 1fr; }
  .myth:last-child { grid-column: 1 / -1; }
  .docs-list { grid-template-columns: 1fr 1fr; }
  .final-actions { grid-template-columns: auto auto; justify-content: center; }
  .final-actions .btn { width: auto; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  #sequelas .btn { width: auto; }
  .hero-ctas .btn { width: auto; }
  .cta-note { justify-content: flex-start; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; --header-h: 80px; }
  html { font-size: 118.75%; }
  .section { padding: 96px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .hero h1 { font-size: 2.55rem; }
  .hero-visual { margin: 0; max-width: 430px; justify-self: end; }
  .quickstart { margin-top: 48px; padding: 26px 28px; display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 24px; }
  .quickstart-title { margin: 0; flex-wrap: wrap; }
  .quickstart-grid { grid-template-columns: repeat(6, 1fr); }
  .qs-btn { min-height: 104px; font-size: .85rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-body { grid-template-columns: .8fr 1.2fr; }
  .body-fig { order: 0; max-width: 340px; }
  .facts { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr 1.08fr 1fr; align-items: stretch; }
  .cmp-featured { transform: translateY(-10px); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 24px 20px; }
  .step-n { position: static; margin-bottom: 14px; }
  .docs { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; padding: 30px; }
  .docs-head { margin: 0; flex-direction: column; align-items: flex-start; }
  .site-footer { padding-bottom: 48px; }
  .sticky-bar { display: none; }
  .chat-launcher {
    position: fixed; right: 28px; bottom: 28px; z-index: 70;
    display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px;
    border: 0; border-radius: 999px; background: var(--green-700); color: var(--white); box-shadow: var(--shadow-lg);
    transform: translateY(140%); transition: transform .35s ease;
  }
  .chat-launcher.show { transform: none; }
  .chat-launcher:hover { background: var(--green-600); }
  .cl-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); }
  .cl-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
  .cl-text strong { font-family: var(--font-head); font-size: .95rem; }
  .cl-text small { font-size: .8rem; opacity: .85; }
  html.chat-open .chat-launcher { transform: translateY(140%); }

  /* Chat como janela flutuante */
  .chat-panel { inset: auto 28px 28px auto; width: 440px; height: min(760px, calc(100dvh - 56px)); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
  .chat-header { padding-top: 12px; }
}
