
/* ==================================================================
   CATALISA JURÍDICO — vitrine
   Paleta: ameixa da marca sobre neutros levemente quentes; latão
   discreto só para o selo de estado. Fotografia dessaturada e escura,
   tipografia com serifa de leitura no display (Newsreader) e Inter no
   restante — o segmento é impresso antes de ser software.
   ================================================================== */
:root {
  color-scheme: light;

  /* Tinta institucional: petróleo profundo para autoridade, papel osso para
     leitura longa, latão só no selo. Um modo só — a página é impressa, não
     um painel. As faixas escuras são fotografia, não tema. */
  --brand: #1C3D52;
  --brand-2: #86B4CE;          /* variante para fundo escuro */
  --brand-deep: #12293A;
  --brand-soft: #E9EFF3;
  --brand-on: #FFFFFF;

  --seal: #8C6D2F;             /* latão */
  --seal-soft: #F5EFE1;

  --paper: #F7F5F1;
  --surface: #FFFFFF;
  --surface-2: #EFEDE8;
  --sunken: #E4E1D9;
  --ink: #131A20;
  --ink-2: #4C555C;
  --ink-3: #7E868C;
  --line: #E1DED6;
  --line-2: #C9C5BB;

  --night: #0E1720;
  --night-2: #16222E;
  --night-3: #1F2E3C;
  --night-line: #24333F;
  --on-night: #EDF1F3;
  --on-night-2: #A0AEB8;
  --on-night-3: #6E7D88;

  --ok: #2C6B4F;
  --ok-soft: #E6F0EA;

  --shadow: 0 1px 2px rgba(19,26,32,.06), 0 20px 44px -32px rgba(19,26,32,.34);
  --shadow-lg: 0 2px 8px rgba(19,26,32,.08), 0 52px 100px -60px rgba(19,26,32,.42);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 60px);
  --maxw: 1180px;
  --r: 3px;
  --r-lg: 8px;
  --head: 60px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[hidden] { display: none !important; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: clamp(56px, 8.5vw, 116px) 0; }
.sec.tight { padding: clamp(40px, 5vw, 68px) 0; }
.rule { border-top: 1px solid var(--line); }

.d1, .d2, .d3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.012em; text-wrap: balance; }
.d1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.02; font-weight: 250; letter-spacing: -.02em; }
.d2 { font-size: clamp(1.85rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.017em; }
.d3 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.22; }
.d1 em, .d2 em { font-style: italic; color: var(--brand); }
h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.014em; line-height: 1.35; }
h4 { font-size: .9rem; font-weight: 600; letter-spacing: -.01em; }

.kick {
  font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .19em;
  text-transform: uppercase; color: var(--brand); display: block;
}
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 60ch; line-height: 1.68; }
.tiny { font-size: .8rem; color: var(--ink-3); line-height: 1.55; }
.head { max-width: 66ch; }
.head .kick { margin-bottom: 16px; }
.head .lede { margin-top: 18px; }
.sec > .wrap > .head { margin-bottom: clamp(34px, 4.6vw, 58px); }

/* ---------- night surfaces ---------- */
.night { background: var(--night); color: var(--on-night); }
.night .lede, .night .small, .night p { color: var(--on-night-2); }
.night .tiny { color: var(--on-night-3); }
.night .kick { color: var(--brand-2); }
.night h3, .night h4, .night .d1, .night .d2, .night .d3 { color: var(--on-night); }

/* ---------- selo de estado ---------- */
.seal {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 2px; line-height: 1.6;
  white-space: nowrap; border: 1px solid;
}
.seal::before { content: ''; width: 4px; height: 4px; border-radius: 999px; background: currentColor; }
.seal.ok { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.seal.cfg { color: var(--seal); background: var(--seal-soft); border-color: color-mix(in srgb, var(--seal) 30%, transparent); }

/* ---------- nav: fixa e transparente sobre o herói, sólida ao rolar ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: var(--head);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .34s ease, border-color .34s ease, backdrop-filter .34s ease;
}
.top-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.logo .mark { height: 21px; width: auto; color: var(--on-night); transition: color .34s ease; }
.logo .mark .wm { fill: currentColor; }
.logo .s {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand-2); transition: color .34s ease, border-color .34s ease;
  padding-left: 10px; border-left: 1px solid rgba(255,255,255,.26); line-height: 1;
}
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav button {
  background: none; border: 0; font-family: inherit; font-size: .85rem; color: var(--on-night-2);
  padding: 6px 11px; cursor: pointer; white-space: nowrap; letter-spacing: -.005em;
  border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.nav button:hover { color: var(--on-night); border-bottom-color: var(--brand-2); }
.nav button[aria-current="page"] { color: var(--on-night); border-bottom-color: var(--brand-2); }
.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.ib {
  width: 33px; height: 33px; border-radius: 999px; border: 1px solid rgba(255,255,255,.24);
  background: transparent; color: var(--on-night-2); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; flex: none;
  transition: color .34s ease, border-color .34s ease;
}
.ib:hover { color: var(--on-night); border-color: var(--brand-2); }
.ib svg { width: 15px; height: 15px; }

.top.stuck {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--line);
}
.top.stuck .logo .mark { color: var(--brand); }
.top.stuck .logo .s { color: var(--ink-3); border-left-color: var(--line-2); }
.top.stuck .nav button { color: var(--ink-2); }
.top.stuck .nav button:hover,
.top.stuck .nav button[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.top.stuck .ib { color: var(--ink-2); border-color: var(--line-2); }
.top.stuck .ib:hover { color: var(--brand); border-color: var(--brand); }

.burger { display: none; }
.sheet { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .top.open { background: var(--surface); border-bottom-color: var(--line); }
  .top.open .logo .mark { color: var(--brand); }
  .top.open .logo .s { color: var(--ink-3); border-left-color: var(--line-2); }
  .top.open .ib { color: var(--ink-2); border-color: var(--line-2); }
  .sheet.open {
    display: block; position: absolute; top: var(--head); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 16px;
    box-shadow: var(--shadow);
  }
  .sheet button {
    display: block; width: 100%; text-align: left; background: none; border: 0;
    border-bottom: 1px solid var(--line); font-family: inherit; font-size: .95rem;
    color: var(--ink-2); padding: 13px 0; cursor: pointer;
  }
  .sheet button:last-child { border-bottom: 0; }
  .sheet button[aria-current="page"] { color: var(--brand); font-weight: 600; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r); font-size: .875rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.3;
  font-family: inherit; letter-spacing: -.005em; transition: background .16s, border-color .16s, color .16s;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn.p { background: var(--brand); color: var(--brand-on); }
.btn.p:hover { background: var(--brand-deep); }
.btn.o { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn.o:hover { border-color: var(--brand); color: var(--brand); }
.night .btn.o, .hero .btn.o, .phero .btn.o { border-color: rgba(255,255,255,.26); color: var(--on-night); }
.night .btn.o:hover, .hero .btn.o:hover, .phero .btn.o:hover { border-color: var(--brand-2); color: var(--brand-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- media ---------- */
.fig { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--night-2); }
.fig img, .fig video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.03); }
.fig .tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,16,27,.10) 0%, rgba(20,16,27,.52) 100%),
              radial-gradient(120% 90% at 70% 10%, rgba(107,65,147,.20), transparent 62%);
}
figcaption { margin-top: 14px; font-size: .8rem; color: var(--ink-3); max-width: 62ch; }
.night figcaption { color: var(--on-night-3); }

/* ---------- hero: página inteira, vídeo ao fundo ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; background: var(--night); color: var(--on-night); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg video, .hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.38) contrast(1.08) brightness(.58);
  transform: scale(1.06); transform-origin: 58% 45%;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(9,6,14,.95) 0%, rgba(9,6,14,.82) 40%, rgba(9,6,14,.34) 100%),
    linear-gradient(0deg, rgba(9,6,14,.94) 0%, rgba(9,6,14,.22) 38%, rgba(9,6,14,.55) 100%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 3px);
}
.hero-in { position: relative; padding: 0 0 clamp(30px, 5vw, 52px); }
.hero h1 { margin: 22px 0 26px; max-width: 15ch; color: var(--on-night); }
.hero h1 em { color: var(--brand-2); }
.hero .lede { color: var(--on-night-2); font-size: 1.14rem; max-width: 52ch; }
.hero .cta { margin-top: 36px; }
.hero-foot {
  position: relative; border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
@media (max-width: 780px) { .hero-foot { grid-template-columns: 1fr; } .hero-foot div:not(:first-child) { border-top: 1px solid rgba(255,255,255,.09); } }
.hero-foot div { padding: 20px 26px 20px 0; }
.hero-foot .k { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-2); }
.hero-foot p { margin-top: 7px; font-size: .855rem; color: var(--on-night-2); max-width: 34ch; }


/* herói das subpáginas */
.phero { position: relative; min-height: 62svh; display: flex; align-items: flex-end; background: var(--night); color: var(--on-night); overflow: hidden; }
.phero .hero-bg video, .phero .hero-bg img { filter: saturate(.34) contrast(1.06) brightness(.52); transform: scale(1.04); }
.phero .hero-bg::after {
  background:
    linear-gradient(100deg, rgba(9,6,14,.95) 0%, rgba(9,6,14,.84) 46%, rgba(9,6,14,.44) 100%),
    linear-gradient(0deg, rgba(9,6,14,.9) 0%, rgba(9,6,14,.25) 46%, transparent 100%);
}
.phero-in { position: relative; padding: clamp(76px, 10vw, 112px) 0 clamp(40px, 6vw, 64px); width: 100%; }
.phero .d1 { font-size: clamp(2.05rem, 4.4vw, 3.3rem); max-width: 17ch; }
.phero .lede { color: var(--on-night-2); }

/* ---------- grids ---------- */
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(18px, 2.6vw, 34px); }
@media (max-width: 620px) { .g2 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(26px, 4.5vw, 66px); align-items: center; }
.split.at-start { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 11px;
}
.night .card { background: var(--night-2); border-color: var(--night-line); }
.card p { font-size: .9rem; color: var(--ink-2); }
.night .card p { color: var(--on-night-2); }
.card .ct { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

/* ---------- link tiles (mapa das subpáginas) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 940px) { .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  background: var(--surface); border: 0; text-align: left; font-family: inherit; cursor: pointer;
  padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 10px;
  transition: background .16s;
}
.tile:hover { background: var(--surface-2); }
.tile .k { font-family: var(--mono); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--brand); }
.tile h3 { font-family: var(--serif); font-weight: 400; font-size: 1.32rem; letter-spacing: -.012em; color: var(--ink); }
.tile p { font-size: .875rem; color: var(--ink-2); }
.tile .go { margin-top: auto; padding-top: 10px; font-size: .8rem; color: var(--brand); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.tile .go svg { width: 13px; height: 13px; }

/* ---------- afirmação de destaque: uma frase e o que ela dispensa ---------- */
.claim { border-top: 2px solid var(--brand); padding-top: clamp(22px,3vw,34px); }
.night .claim { border-top-color: var(--brand-2); }
.claim-q {
  font-family: var(--serif); font-weight: 250; letter-spacing: -.022em;
  font-size: clamp(1.7rem,3.4vw,2.7rem); line-height: 1.1; color: var(--ink); text-wrap: balance;
}
.night .claim-q { color: var(--on-night); }
.claim-q em { font-style: italic; color: var(--brand); }
.night .claim-q em { color: var(--brand-2); }
.negs { list-style: none; margin: clamp(24px,3vw,36px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; }
@media (max-width: 720px) { .negs { grid-template-columns: 1fr; } }
.negs li {
  display: flex; align-items: baseline; gap: 10px; padding: 16px 20px 16px 0;
  border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-3);
}
.night .negs li { border-top-color: var(--night-line); color: var(--on-night-3); }
.negs li s { text-decoration-color: color-mix(in srgb, var(--brand) 60%, transparent); text-decoration-thickness: 1px; }
.negs .no {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); flex: none;
}
.night .negs .no { color: var(--brand-2); }

/* ---------- razão: linhas com fio, no lugar de caixa ----------
   Caixa é peso visual sem informação. A linha com fio separa igual e
   custa quase nada de atenção. */
ol.ledger, ul.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 0 clamp(10px,1.6vw,22px);
  padding: clamp(15px,1.8vw,21px) 0; border-top: 1px solid var(--line); align-items: baseline;
}
.night .ledger li { border-color: var(--night-line); }
.ledger li:last-child { border-bottom: 1px solid var(--line); }
.night .ledger li:last-child { border-bottom-color: var(--night-line); }
.ledger .ix { font-family: var(--mono); font-size: .68rem; color: var(--brand); letter-spacing: .1em; }
.night .ledger .ix { color: var(--brand-2); }
.ledger .tx { font-size: .95rem; color: var(--ink-2); line-height: 1.6; }
.night .ledger .tx { color: var(--on-night-2); }
.ledger .tx b { color: var(--ink); font-weight: 600; }
.night .ledger .tx b { color: var(--on-night); }
.ledger .seal { margin-left: 8px; vertical-align: 2px; }
.ledger.wide li { grid-template-columns: minmax(0,200px) minmax(0,1fr); }
.ledger.wide .ix { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--ink); letter-spacing: -.012em; }
.night .ledger.wide .ix { color: var(--on-night); }
@media (max-width: 620px) {
  .ledger li, .ledger.wide li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- números com fonte ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px,3vw,48px); }
@media (max-width: 780px) { .facts { grid-template-columns: 1fr; } }
.fact { border-top: 2px solid var(--brand); padding-top: 18px; }
.night .fact { border-top-color: var(--brand-2); }
.fact .v { font-family: var(--serif); font-size: clamp(2.6rem,5vw,3.8rem); font-weight: 250; line-height: .95; letter-spacing: -.035em; }
.fact .l { margin-top: 14px; font-size: .95rem; color: var(--ink-2); max-width: 32ch; line-height: 1.55; }
.night .fact .l { color: var(--on-night-2); }
.fact .src { display: block; margin-top: 12px; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.night .fact .src { color: var(--on-night-3); }

/* ---------- vozes do setor ---------- */
.voices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(24px,3.4vw,52px); }
@media (max-width: 760px) { .voices { grid-template-columns: 1fr; } }
.voice { border-top: 1px solid var(--line); padding-top: 20px; }
.night .voice { border-top-color: var(--night-line); }
.voice q {
  display: block; font-family: var(--serif); font-size: clamp(1.15rem,1.9vw,1.42rem);
  font-style: italic; font-weight: 300; line-height: 1.38; letter-spacing: -.012em; color: var(--ink); quotes: none;
}
.night .voice q { color: var(--on-night); }
.voice .who { margin-top: 14px; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.night .voice .who { color: var(--brand-2); }
.voice .ans { margin-top: 10px; font-size: .92rem; color: var(--ink-2); line-height: 1.6; }
.night .voice .ans { color: var(--on-night-2); }

/* ---------- duas colunas comparadas, sem caixa ---------- */
.duo { display: grid; grid-template-columns: minmax(0,168px) minmax(0,1fr) minmax(0,1fr); }
@media (max-width: 780px) { .duo { grid-template-columns: 1fr; } }
.duo > * { padding: clamp(13px,1.5vw,17px) clamp(10px,1.6vw,20px) clamp(13px,1.5vw,17px) 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); line-height: 1.55; }
.night .duo > * { border-top-color: var(--night-line); }
.duo .rh { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.night .duo .rh { color: var(--on-night-3); }
.duo .ch { font-family: var(--serif); font-size: 1.28rem; font-weight: 400; color: var(--ink); letter-spacing: -.014em; border-top: 0; padding-top: 0; }
.night .duo .ch { color: var(--on-night); }
.duo b { color: var(--ink); font-weight: 600; }
.night .duo b { color: var(--on-night); }
@media (max-width: 780px) {
  .duo .rh { padding-bottom: 2px; }
  .duo .ch { margin-top: 20px; }
}

/* ---------- anotações sobre fundo escuro, sem moldura ---------- */
.annot { display: flex; flex-direction: column; }
.annot > div { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--night-line); align-items: start; }
.annot svg { width: 15px; height: 15px; color: var(--brand-2); margin-top: 3px; }
.annot b { display: block; font-size: .88rem; color: var(--on-night); margin-bottom: 4px; font-weight: 600; }
.annot span { font-size: .855rem; color: var(--on-night-2); line-height: 1.55; }
.annot code { font-family: var(--mono); font-size: .78rem; color: var(--brand-2); }

/* ---------- listas ---------- */
ul.chk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
ul.chk li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--ink-2); line-height: 1.6; }
ul.chk li b { color: var(--ink); font-weight: 600; }
ul.chk li::before {
  content: ''; position: absolute; left: 1px; top: .58em; width: 7px; height: 7px;
  border: 1.5px solid var(--brand); border-radius: 1px;
}
.night ul.chk li { color: var(--on-night-2); }
.night ul.chk li b { color: var(--on-night); }

/* ---------- linha do tempo: um trilho, não cinco linhas soltas ---------- */
.tl { display: flex; flex-direction: column; }
.tl-i { display: grid; grid-template-columns: 78px 1px minmax(0,1fr); gap: 0 clamp(16px,2.6vw,34px); }
@media (max-width: 640px) { .tl-i { grid-template-columns: 62px 1px minmax(0,1fr); gap: 0 16px; } }
.tl-t {
  font-family: var(--serif); font-size: clamp(1.15rem,1.7vw,1.44rem); font-weight: 300;
  color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  line-height: 1; padding-top: 2px; text-align: right;
}
.night .tl-t { color: var(--on-night); }
.tl-rail { background: var(--line); position: relative; }
.night .tl-rail { background: var(--night-line); }
.tl-rail::before {
  content: ''; position: absolute; top: 0; left: -4.5px; width: 10px; height: 10px;
  border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 4px var(--paper);
}
.night .tl-rail::before { background: var(--brand-2); box-shadow: 0 0 0 4px var(--night); }
.tl-i:last-child .tl-rail { background: linear-gradient(180deg, var(--line) 0%, var(--line) 34%, transparent 100%); }
.night .tl-i:last-child .tl-rail { background: linear-gradient(180deg, var(--night-line) 0%, var(--night-line) 34%, transparent 100%); }
.tl-b { padding: 0 0 clamp(28px,3.4vw,46px); margin-top: -5px; }
.tl-b h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.16rem,1.6vw,1.34rem); margin-bottom: 8px; letter-spacing: -.014em; }
.tl-b p { font-size: .93rem; color: var(--ink-2); max-width: 58ch; }
.night .tl-b p { color: var(--on-night-2); }
.tl-b .meta { margin-top: 11px; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.night .tl-b .meta { color: var(--on-night-3); }
.tl-b .meta span + span::before { content: '·'; margin-right: 14px; opacity: .5; }

/* ---------- WhatsApp: aparelho contido, com a conversa cortada no topo ---------- */
.phone {
  width: 100%; max-width: 356px; background: var(--night-2);
  border: 1px solid var(--night-line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
}
.ph-h { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--night-line); background: var(--night); flex: none; }
.av { width: 32px; height: 32px; border-radius: 999px; background: var(--brand); color: var(--brand-on); display: grid; place-items: center; font-weight: 700; font-size: .78rem; flex: none; }
.ph-h .w { font-size: .86rem; font-weight: 600; color: var(--on-night); line-height: 1.3; }
.ph-h .o { font-size: .66rem; color: var(--ok); font-family: var(--mono); }
.ph-body { position: relative; flex: 1; min-height: 0; }
.thr {
  height: 424px; overflow: hidden; padding: 15px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; background: var(--night);
}
.ph-fade {
  position: absolute; inset: 0 0 auto 0; height: 64px; pointer-events: none;
  background: linear-gradient(180deg, var(--night) 12%, transparent 100%);
}
.ph-foot {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px;
  border-top: 1px solid var(--night-line); background: var(--night); flex: none;
}
.ph-foot .fld {
  flex: 1; height: 30px; border-radius: 999px; border: 1px solid var(--night-line);
  display: flex; align-items: center; padding: 0 13px;
  font-size: .76rem; color: var(--on-night-3);
}
.ph-foot .snd { width: 30px; height: 30px; border-radius: 999px; background: var(--brand); display: grid; place-items: center; flex: none; }
.ph-foot .snd svg { width: 14px; height: 14px; color: var(--brand-on); }

.m { max-width: 84%; padding: 8px 12px; border-radius: 11px; font-size: .83rem; line-height: 1.48; }
.m .t { display: block; font-family: var(--mono); font-size: .56rem; color: var(--on-night-3); margin-top: 4px; }
.m.them { background: var(--night-3); color: var(--on-night); border-bottom-left-radius: 3px; align-self: flex-start; }
.m.me { background: var(--brand); color: var(--brand-on); border-bottom-right-radius: 3px; align-self: flex-end; }
.m.me .t { color: color-mix(in srgb, var(--brand-on) 60%, transparent); }
.m.sys {
  align-self: stretch; max-width: 100%; text-align: center; background: var(--seal-soft); color: var(--seal);
  border: 1px solid color-mix(in srgb, var(--seal) 30%, transparent); font-size: .71rem; line-height: 1.45; border-radius: 6px;
}
.m em { font-style: normal; color: var(--brand-2); }
.m.me em { color: var(--brand-on); border-bottom: 1px solid color-mix(in srgb, var(--brand-on) 45%, transparent); }

/* ---------- sala ---------- */
.room { border: 1px solid var(--night-line); border-radius: var(--r-lg); overflow: hidden; background: var(--night-2); box-shadow: var(--shadow-lg); }
.room-bar { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--night-line); background: var(--night); }
.room-bar .t { font-size: .83rem; font-weight: 600; color: var(--on-night); }
.rec { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .62rem; color: #DB6E6E; letter-spacing: .1em; text-transform: uppercase; }
.rec i { width: 6px; height: 6px; border-radius: 999px; background: #DB6E6E; display: block; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.room-b { display: grid; grid-template-columns: minmax(0,1fr) 296px; }
@media (max-width: 860px) { .room-b { grid-template-columns: 1fr; } }
.room-s { padding: 16px; border-right: 1px solid var(--night-line); display: flex; flex-direction: column; gap: 11px; }
@media (max-width: 860px) { .room-s { border-right: 0; border-bottom: 1px solid var(--night-line); } }
.feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.feed { position: relative; aspect-ratio: 16/10; border-radius: 5px; overflow: hidden; border: 1px solid var(--night-line); background: var(--night); }
.feed img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) contrast(1.02) brightness(.85); }
.feed .lb { position: absolute; left: 8px; bottom: 7px; font-family: var(--mono); font-size: .66rem; color: #EDE8F3; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.feed.self { border-color: color-mix(in srgb, var(--brand-2) 46%, transparent); }
.feed.mute { display: grid; place-items: center; background: radial-gradient(110% 90% at 50% 25%, var(--night-3), var(--night) 70%); }
.feed.mute .ini { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; font-family: var(--mono); font-size: .78rem; font-weight: 600; background: color-mix(in srgb, var(--brand-2) 22%, transparent); color: var(--brand-2); }
.cc { background: var(--night); border: 1px solid var(--night-line); border-radius: 5px; padding: 11px 13px; font-size: .82rem; color: var(--on-night-2); line-height: 1.55; }
.cc b { color: var(--on-night); }
.cc.d { border-style: dashed; color: var(--on-night-3); }
.room-r { padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.room-r .hd { font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-3); }
.tip { border: 1px solid var(--night-line); border-radius: 5px; padding: 11px 12px; background: var(--night); }
.tip .k { font-family: var(--mono); font-size: .6rem; letter-spacing: .11em; text-transform: uppercase; color: var(--brand-2); }
.tip p { font-size: .8rem; color: var(--on-night-2); margin-top: 6px; line-height: 1.5; }
.tip p b { color: var(--on-night); }
.tip.src { border-left: 2px solid var(--brand-2); }
.tip .cite { display: block; margin-top: 7px; font-family: var(--mono); font-size: .68rem; color: var(--on-night-3); }
.onlyme { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .62rem; color: var(--on-night-3); }
.onlyme svg { width: 12px; height: 12px; }

/* ---------- rastro RAG ---------- */
.trace { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.night .trace { background: var(--night-2); border-color: var(--night-line); }
.trace-h { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.night .trace-h { background: var(--night); border-color: var(--night-line); }
.trace-h .f { font-family: var(--mono); font-size: .76rem; color: var(--brand); }
.trace-h .s { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); }
.night .trace-h .s { color: var(--on-night-3); }
.trace-b { padding: 18px 20px; }
.q { font-family: var(--serif); font-size: 1.06rem; line-height: 1.62; color: var(--ink); border-left: 2px solid var(--brand); padding-left: 17px; }
.night .q { color: var(--on-night); }
.trace-f { padding: 0 20px 16px; font-size: .8rem; color: var(--ink-3); }
.night .trace-f { color: var(--on-night-3); }

/* ---------- tabela ---------- */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.night .tw { background: var(--night-2); border-color: var(--night-line); }
table.reg { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .875rem; }
table.reg th {
  text-align: left; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); white-space: nowrap;
}
.night table.reg th { background: var(--night); border-color: var(--night-line); color: var(--on-night-3); }
table.reg td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.night table.reg td { border-color: var(--night-line); color: var(--on-night-2); }
table.reg tr:last-child td { border-bottom: 0; }
table.reg td.sl { font-family: var(--mono); font-size: .78rem; color: var(--brand); white-space: nowrap; }
table.reg td.nm { color: var(--ink); font-weight: 550; white-space: nowrap; }
.night table.reg td.nm { color: var(--on-night); }
table.reg td.kw { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); }
.night table.reg td.kw { color: var(--on-night-3); }
table.reg tr.fb td { background: var(--brand-soft); }

/* ---------- painel ---------- */
.board { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.board-h { padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); display: flex; align-items: center; gap: 12px; }
.board-h .t { font-size: .85rem; font-weight: 600; }
.board-h .m2 { margin-left: auto; font-family: var(--mono); font-size: .7rem; color: var(--ink-3); }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); }
@media (max-width: 820px) { .cols { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.col { background: var(--surface); padding: 13px; display: flex; flex-direction: column; gap: 9px; min-height: 178px; }
.col-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.col-h .n2 { font-size: .76rem; font-weight: 600; }
.col-h .c2 { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lc { border: 1px solid var(--line); border-radius: var(--r); padding: 9px 10px; display: flex; flex-direction: column; gap: 4px; }
.lc .a { font-size: .78rem; font-weight: 600; }
.lc .b { font-size: .7rem; color: var(--brand); font-weight: 550; }
.lc .c { font-family: var(--mono); font-size: .64rem; color: var(--ink-3); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.st2 { background: var(--surface); padding: 14px 16px; }
.st2 .v { font-family: var(--serif); font-size: 1.7rem; font-weight: 350; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st2 .l { font-size: .72rem; color: var(--ink-3); margin-top: 1px; line-height: 1.4; }


/* ---------- perguntas ---------- */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 19px 44px 19px 0; position: relative;
  font-size: 1.02rem; font-weight: 500; letter-spacing: -.014em; color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.qa details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa summary:hover { color: var(--brand); }
.qa .an { padding: 0 0 22px; font-size: .92rem; color: var(--ink-2); max-width: 72ch; line-height: 1.7; }
.qa .an p + p { margin-top: 11px; }
.qa .an b { color: var(--ink); font-weight: 600; }

/* ---------- perguntas numeradas (segurança) ---------- */
.five-i { display: grid; grid-template-columns: 54px 1fr; gap: clamp(14px, 2.4vw, 34px); padding: clamp(22px, 3vw, 34px) 0; border-top: 1px solid var(--line); }
@media (max-width: 620px) { .five-i { grid-template-columns: 1fr; gap: 10px; } }
.five-n { font-family: var(--mono); font-size: .8rem; color: var(--brand); font-weight: 600; padding-top: 6px; }
.five-q { font-family: var(--serif); font-size: 1.28rem; font-weight: 400; letter-spacing: -.014em; margin-bottom: 12px; line-height: 1.28; }
.five-a { font-size: .92rem; color: var(--ink-2); max-width: 68ch; line-height: 1.7; }
.five-a b { color: var(--ink); font-weight: 600; }
.five-a p + p { margin-top: 10px; }

/* ---------- quadro comparativo (o diferencial) ---------- */
.vs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.night .vs { background: var(--night-line); border-color: var(--night-line); }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }
.vs-c { background: var(--surface); padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 16px; }
.night .vs-c { background: var(--night-2); }
.vs-c > .hd { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.night .vs-c > .hd { color: var(--on-night-3); }
.vs-c.us > .hd { color: var(--brand); }
.night .vs-c.us > .hd { color: var(--brand-2); }
.vs-c ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.vs-c li { font-size: .91rem; line-height: 1.6; color: var(--ink-2); padding-left: 22px; position: relative; }
.night .vs-c li { color: var(--on-night-2); }
.vs-c li b { color: var(--ink); font-weight: 600; }
.night .vs-c li b { color: var(--on-night); }
.vs-c.them li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 9px; height: 1.5px; background: var(--ink-3); }
.night .vs-c.them li::before { background: var(--on-night-3); }
.vs-c.us li::before {
  content: ''; position: absolute; left: 1px; top: .42em; width: 8px; height: 4px;
  border-left: 1.6px solid var(--brand); border-bottom: 1.6px solid var(--brand); transform: rotate(-45deg);
}
.night .vs-c.us li::before { border-color: var(--brand-2); }
.vs-c.them { opacity: .82; }

/* ---------- honesto ---------- */
.hon { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 30px); background: var(--surface-2); display: flex; flex-direction: column; gap: 11px; }
.night .hon { background: var(--night-2); border-color: var(--night-line); }
.hon h4 { color: var(--ink); }
.night .hon h4 { color: var(--on-night); }
.hon p { font-size: .9rem; color: var(--ink-2); max-width: 78ch; }
.night .hon p { color: var(--on-night-2); }

/* ---------- legenda ---------- */
.leg { display: flex; flex-wrap: wrap; gap: 9px 22px; align-items: center; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.leg span { font-size: .8rem; color: var(--ink-3); }
.night .leg { border-color: var(--night-line); }
.night .leg span { color: var(--on-night-3); }

/* ---------- diagramas autorais ----------
   Nada de fluxograma de caixinha: cada desenho usa um objeto do próprio
   escritório — a estante, a pilha de autos, a régua de prazo. ------------- */
.diag { width: 100%; overflow-x: auto; padding-bottom: 4px; }
.diag svg { width: 100%; min-width: 660px; height: auto; }

.dg-t { fill: var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.dg-n { fill: var(--ink-2); font-family: var(--sans); font-size: 11.5px; }
.dg-s { fill: var(--ink-3); font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; }
.dg-b { fill: var(--brand); font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; }
.dg-line { stroke: var(--line-2); stroke-width: 1; }
.dg-p { stroke: var(--brand); fill: none; stroke-width: 1.2; opacity: .5; }

/* a estante */
.dg-board { fill: var(--ink); }
.dg-board-sh { fill: var(--ink); opacity: .16; }
.dg-spine { fill: var(--ink-3); opacity: .32; }
.dg-spine.mid { opacity: .48; }
.dg-spine.acc { fill: var(--brand); opacity: .72; }
.dg-spine.acc2 { fill: var(--brand); opacity: .4; }
.dg-rib { fill: var(--surface); opacity: .55; }
.dg-surface { stroke: var(--brand); stroke-width: 1; stroke-dasharray: 3 5; opacity: .5; fill: none; }
.dg-reader { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; }
.dg-div { stroke: var(--line-2); stroke-width: 1; }

/* a pilha de autos */
.dg-sheet { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; }
.dg-sheet-edge { fill: var(--ink); opacity: .06; }
.dg-sheet-top { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1; }
.dg-brace { stroke: var(--line-2); fill: none; stroke-width: 1; }
.dg-brace.acc { stroke: var(--brand); }

/* a régua do prazo */
.dg-rule { stroke: var(--ink); stroke-width: 1.4; }
.dg-tick { stroke: var(--line-2); stroke-width: 1; }
.dg-tick.mid { stroke: var(--ink-3); stroke-width: 1; }
.dg-fatal { stroke: var(--brand); stroke-width: 2; }
.dg-zone { fill: var(--brand); opacity: .05; }
.dg-dot { fill: var(--surface); stroke: var(--brand); stroke-width: 1.8; }
.dg-lead { stroke: var(--line-2); stroke-width: 1; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .68s cubic-bezier(.22,.61,.36,1), transform .68s cubic-bezier(.22,.61,.36,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1x { transition-delay: .07s; }
.rv.d2x { transition-delay: .14s; }
.rv.d3x { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .rec i { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- páginas ---------- */
.page { display: none; }
.page.on { display: block; animation: pgin .4s ease both; }
@keyframes pgin { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .page.on { animation: none; } }

/* ---------- rodapé ---------- */
.foot { background: var(--night); color: var(--on-night-2); padding: clamp(48px, 6vw, 80px) 0 32px; }
.foot .fg { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: clamp(22px, 3vw, 44px); }
@media (max-width: 880px) { .foot .fg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .fg { grid-template-columns: 1fr; } }
.foot .bn { display: flex; align-items: center; gap: 11px; color: var(--on-night); }
.foot .bn .mark { height: 24px; width: auto; color: var(--on-night); }
.foot .bn .mark .wm { fill: currentColor; }
.foot .bn .s { font-family: var(--mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-2); padding-left: 11px; border-left: 1px solid var(--night-line); line-height: 1; }
.foot .ab { font-size: .87rem; color: var(--on-night-2); max-width: 38ch; margin-top: 12px; }
.foot .hd { font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-3); margin-bottom: 13px; }
.foot button.fl { display: block; background: none; border: 0; padding: 5px 0; font-family: inherit; font-size: .86rem; color: var(--on-night-2); cursor: pointer; text-align: left; }
.foot button.fl:hover { color: var(--brand-2); }
.foot .cr { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: .76rem; color: var(--on-night-3); line-height: 1.65; max-width: 88ch; }
.foot .cr a { color: var(--on-night-2); }
.foot .cr + .cr { margin-top: 12px; padding-top: 0; border-top: 0; }

/* ---------- topo flutuante ---------- */
.up {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 40px; height: 40px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.up.show { opacity: 1; pointer-events: auto; }
.up svg { width: 15px; height: 15px; }
