/* ==================================================================
   TEMA — Catalisa Clínica

   Só os TOKENS. O desenho mora em `src/med.css` — que é a MESMA estrutura
   do vertical jurídico, de propósito: são dois hotsites do mesmo produto,
   e o que muda entre eles é a tinta e a copy, não o layout. Manter duas
   folhas de estrutura seria garantir que o primeiro conserto num site
   deixasse o outro para trás.

   Um modo só: claro. Mesma decisão do jurídico — quem lê isto está
   decidindo uma compra, não operando um painel, e dois modos dobram a
   superfície de erro sem servir a ninguém.

   A tinta: verde-petróleo clínico em vez do petróleo institucional. É a
   cor que o pacote da vertical já usa no produto (`#2C7A7B` nos templates
   e na página de agendamento), então a vitrine e a coisa vendida falam a
   mesma língua visual — o cliente não troca de mundo ao entrar.
   ================================================================== */
:root {
  color-scheme: light;

  --brand: #1F5F60;
  --brand-2: #8FC6C4;          /* variante para fundo escuro */
  --brand-deep: #14403F;
  --brand-soft: #E6F0EF;
  --brand-on: #FFFFFF;

  /* O "selo" do jurídico era latão de cartório. Aqui é o âmbar do aviso
     clínico — a cor que a página usa para o que exige atenção humana, que
     nesta vertical é o tempo todo. */
  --seal: #A9762B;
  --seal-soft: #F7EFE0;

  --paper: #F6F8F8;
  --surface: #FFFFFF;
  --surface-2: #ECF1F0;
  --sunken: #DFE7E6;
  --ink: #12211F;
  --ink-2: #475755;
  --ink-3: #7A8A88;
  --line: #DEE7E6;
  --line-2: #C2CFCE;

  --night: #0C1A1A;
  --night-2: #13282A;
  --night-3: #1C383A;
  --night-line: #234143;
  --on-night: #EAF2F1;
  --on-night-2: #9FB4B2;
  --on-night-3: #6D8280;

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

  --shadow: 0 1px 2px rgba(18,33,31,.06), 0 20px 44px -32px rgba(18,33,31,.34);
  --shadow-lg: 0 2px 8px rgba(18,33,31,.08), 0 52px 100px -60px rgba(18,33,31,.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 a {
  background: none; border: 0; font-family: inherit; text-decoration: none; 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 a:hover { color: var(--on-night); border-bottom-color: var(--brand-2); }
.nav a[aria-current="page"] { color: var(--on-night); border-bottom-color: var(--brand-2); }
.tools { display: flex; align-items: center; gap: 8px; flex: none; }

/* CTA do header.
   O menu some abaixo de 1080px e vira burger — o convite não pode sumir junto:
   é a única porta visível para a demonstração enquanto a pessoa rola a página.
   Por isso ele encolhe em vez de desaparecer.
   Abaixo de 420px não cabe ao lado da marca e do burger, e aí ele cede o lugar
   — sem sumir do site: a gaveta do burger traz o mesmo convite, em botão.

   Ele não aparece TAMBÉM como item de menu porque não é uma página como as
   outras, é a ação da página. Era o que deixava dois "Experimente" a um palmo
   um do outro no header. A vitrine já resolve assim: os itens do menu são
   conteúdo, e a demonstração existe só como CTA. */
.cta-topo { padding: 8px 16px; font-size: .8125rem; white-space: nowrap; }
@media (max-width: 1080px) { .cta-topo { padding: 7px 13px; font-size: .78125rem; } }
@media (max-width: 420px) { .cta-topo { display: none; } }

/* Na gaveta o convite é bloco, e só faz falta quando o CTA do topo cedeu. */
.sheet-cta { display: none; }
@media (max-width: 420px) { .sheet-cta { display: inline-flex; margin-top: 12px; } }
.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 a { color: var(--ink-2); }
.top.stuck .nav a:hover,
.top.stuck .nav a[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 a {
    display: block; width: 100%; text-align: left; background: none; border: 0; text-decoration: none;
    border-bottom: 1px solid var(--line); font-family: inherit; font-size: .95rem;
    color: var(--ink-2); padding: 13px 0; cursor: pointer;
  }
  .sheet a:last-child { border-bottom: 0; }
  .sheet a[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; text-decoration: none;
  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[data-active="true"] { display: block; animation: pgin .4s ease both; }
@keyframes pgin { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .page[data-active="true"] { 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 a.fl, .foot button.fl { display: block; background: none; border: 0; text-decoration: none; padding: 5px 0; font-family: inherit; font-size: .86rem; color: var(--on-night-2); cursor: pointer; text-align: left; }
.foot a.fl:hover, .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; }

/* ==================================================================
   EXPERIMENTE — os dois assentos
   ================================================================== */

.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;
}

.sec.alt { background: var(--surface-2); }

/* O aviso de que o escritório é fictício. Fica ANTES da demonstração e não
   depois: aviso que aparece no fim é aviso que ninguém leu. */
.aviso {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--seal-soft); border-left: 3px solid var(--seal);
  padding: clamp(16px, 2vw, 22px); margin-bottom: clamp(26px, 3.4vw, 40px);
}
.aviso-i { width: 20px; height: 20px; color: var(--seal); flex: none; margin-top: 2px; }
.aviso b { font-size: .95rem; color: var(--ink); }
.aviso p { margin-top: 6px; font-size: .875rem; color: var(--ink-2); }

.dois { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(18px, 2.4vw, 30px); align-items: start; }

.assento {
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 520px;
}
.assento-hd { padding: clamp(18px, 2.2vw, 24px); border-bottom: 1px solid var(--line); }
.assento-hd h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; letter-spacing: -.012em; color: var(--ink); margin: 8px 0 6px; }
.assento-hd p { font-size: .85rem; color: var(--ink-2); }
.seat { font-family: var(--mono); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--brand); }

.thread { flex: 1; overflow-y: auto; max-height: 340px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.thread .msg {
  position: relative; max-width: 86%; padding: 10px 13px 18px; border-radius: var(--r-lg);
  font-size: .88rem; line-height: 1.55; white-space: pre-wrap;
}
.thread .msg.in { align-self: flex-end; background: var(--brand); color: var(--brand-on); }
.thread .msg.out { align-self: flex-start; background: var(--surface-2); color: var(--ink); }
.thread .msg.sys { align-self: center; max-width: 100%; background: none; color: var(--ink-3); font-size: .8rem; text-align: center; padding: 4px 0; }
.thread .msg .t { position: absolute; right: 11px; bottom: 5px; font-family: var(--mono); font-size: .58rem; opacity: .6; }
.thread .msg p { margin: 0 0 6px; }
.thread .msg p:last-child { margin-bottom: 0; }
.thread .msg ul, .thread .msg ol { margin: 6px 0 0; padding-left: 18px; }
.thread .msg li { margin-bottom: 3px; }
.thread .msg.typing { display: flex; gap: 4px; padding: 14px 13px; }
.thread .msg.typing i { width: 5px; height: 5px; border-radius: 999px; background: var(--ink-3); animation: pip 1.1s infinite; }
.thread .msg.typing i:nth-child(2) { animation-delay: .18s; }
.thread .msg.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes pip { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }

.replies { display: flex; flex-direction: column; gap: 7px; padding: 0 18px 14px; }
.replies button {
  text-align: left; background: none; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 13px; font-family: inherit; font-size: .8rem; color: var(--ink-2); cursor: pointer;
  transition: border-color .16s, color .16s;
}
.replies button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.replies button:disabled { opacity: .45; cursor: default; }

.ex-send { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.ex-send input {
  flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 9px 12px; font: inherit; font-size: .86rem; background: var(--surface); color: var(--ink);
}
.ex-send input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.ex-nota { padding: 0 18px 14px; font-size: .78rem; color: var(--ink-3); min-height: 1em; }

/* O espelho: o que o escritório recebeu. Fundo escuro porque é OUTRO lugar —
   quem olha tem de perceber que trocou de lado sem precisar ler o rótulo. */
.assento.espelho { background: var(--night); border-color: var(--night-line); }
.assento.espelho .assento-hd { border-bottom-color: var(--night-line); }
.assento.espelho .assento-hd h3 { color: var(--on-night); }
.assento.espelho .assento-hd p { color: var(--on-night-2); }
.assento.espelho .seat { color: var(--brand-2); }
.espelho-bd { flex: 1; padding: 18px; }
.espelho-vazio { font-size: .85rem; color: var(--on-night-3); }
.esp-topo { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.esp-area { font-family: var(--serif); font-size: 1.22rem; color: var(--on-night); }
.esp-tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--night); background: var(--brand-2); padding: 3px 7px; border-radius: 3px; }
.esp-l { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--night-line); }
.esp-l .k { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-3); padding-top: 2px; }
.esp-l .v { font-size: .86rem; color: var(--on-night-2); }
.espelho-ft { padding: 16px 18px; border-top: 1px solid var(--night-line); }
.espelho-ft p { font-size: .8rem; color: var(--on-night-3); line-height: 1.6; }
.espelho-ft b { color: var(--on-night-2); }

#desafio-box { margin-top: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
#desafio-box p { text-align: center; font-size: .82rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .dois { grid-template-columns: 1fr; }
  .assento { min-height: 0; }
  .esp-l { grid-template-columns: 1fr; gap: 2px; }
}

/* ==================================================================
   ATENDIMENTO — o chat comercial
   ================================================================== */

.chatbtn {
  position: fixed; right: 18px; bottom: 68px; z-index: 72;
  display: flex; align-items: center; gap: 9px; padding: 11px 17px;
  border-radius: 999px; border: 0; background: var(--brand); color: var(--brand-on);
  font-family: inherit; font-size: .85rem; font-weight: 500; cursor: pointer;
  box-shadow: var(--shadow-lg);
}
.chatbtn svg { width: 17px; height: 17px; }
.chatbtn:hover { background: var(--brand-deep); }

.chatw {
  position: fixed; right: 18px; bottom: 18px; z-index: 73;
  width: min(380px, calc(100vw - 36px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
}
.chatw.open { display: flex; }
.chd { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: var(--night); color: var(--on-night); }
.chd-i { flex: 1; }
.chd .who { font-size: .9rem; font-weight: 500; }
.chd .st2 { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--on-night-3); margin-top: 2px; }
.chd .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ok); }
#chatlive-close { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 4px; display: grid; place-items: center; }
#chatlive-close svg { width: 15px; height: 15px; }

.cgate { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.cgate-h { font-size: .85rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 3px; }
.cgate input {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 9px 12px;
  font: inherit; font-size: .86rem; background: var(--surface); color: var(--ink);
}
.cgate input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.cgate input[aria-invalid="true"] { border-color: #B4453A; }
.cgate-erro { font-size: .8rem; color: #B4453A; }
.cgate-nota { font-size: .74rem; color: var(--ink-3); line-height: 1.5; }

.cbd { max-height: 44vh; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.cbd .msg { max-width: 88%; padding: 9px 12px; border-radius: var(--r-lg); font-size: .86rem; line-height: 1.55; }
.cbd .msg.a { align-self: flex-start; background: var(--surface-2); color: var(--ink); }
.cbd .msg.u { align-self: flex-end; background: var(--brand); color: var(--brand-on); }
.cbd .msg.s { align-self: stretch; max-width: 100%; background: var(--ok-soft); color: var(--ok); font-size: .82rem; }
.cbd .msg p { margin: 0 0 6px; }
.cbd .msg p:last-child { margin-bottom: 0; }
.cbd .msg ul, .cbd .msg ol { margin: 6px 0 0; padding-left: 17px; }
.cbd .msg.typing { display: flex; gap: 4px; padding: 13px 12px; }
.cbd .msg.typing span { width: 5px; height: 5px; border-radius: 999px; background: var(--ink-3); animation: pip 1.1s infinite; }
.cbd .msg.typing span:nth-child(2) { animation-delay: .18s; }
.cbd .msg.typing span:nth-child(3) { animation-delay: .36s; }

/* Com o desafio VISÍVEL (a versão invisível falhava calada), o widget tem
   largura fixa e o painel é estreito: sem o recorte ele vaza a borda. */
#chatlive-captcha { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface-2); overflow-x: auto; }
#chatlive-captcha p { margin: 0 0 8px; font-size: .78rem; color: var(--ink-2); }

.cft-in { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.cft-in input {
  flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 8px 11px; font: inherit; font-size: .84rem; background: var(--surface); color: var(--ink);
}
.cft-in input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.cft-in .btn { padding: 7px 14px; font-size: .78rem; }
.cft { padding: 10px 14px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--ink-3); background: var(--surface-2); }

@media (max-width: 560px) {
  .chatbtn span { display: none; }
  .chatbtn { padding: 13px; }
}

/* ==================================================================
   CLÍNICA — o delta sobre a estrutura herdada.

   O jurídico apoia as faixas escuras em FOTOGRAFIA (vídeo no herói, fotos
   nas seções). Aqui não há banco de imagem, e enfiar foto de stock de
   "médico sorrindo com prancheta" seria pior que não ter nenhuma: é o
   visual que toda clínica já tem e que ninguém acredita.

   Então o fundo é gráfico — malha e gradiente construídos em CSS. Custa
   zero requisição, não tem licença para checar, e o desenho continua
   funcionando exatamente com as mesmas classes.
   ================================================================== */

/* Substitui o vídeo do herói. As regras de `.hero-bg video/img` continuam
   valendo se um dia entrar imagem; sem elas, isto é o que pinta. */
.hero-bg {
  background:
    radial-gradient(1200px 520px at 78% -10%, rgba(143,198,196,.20), transparent 62%),
    radial-gradient(760px 420px at 8% 108%, rgba(169,118,43,.13), transparent 60%),
    linear-gradient(168deg, var(--night) 0%, var(--night-2) 52%, var(--night-3) 100%);
}

/* A malha: linhas finíssimas, densidade de papel milimetrado. É referência
   ao registro clínico — a coisa que a vertical inteira existe para produzir. */
.hero-bg::before {
  background-image:
    linear-gradient(rgba(143,198,196,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,198,196,.055) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 1;
}

/* Mesmo tratamento para as faixas escuras internas que no jurídico eram foto. */
.phero {
  background:
    radial-gradient(900px 420px at 82% 0%, rgba(143,198,196,.16), transparent 60%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
}

/* ── O TRAÇO ────────────────────────────────────────────────────────
   Uma linha de eletrocardiograma em SVG inline, usada como divisor entre
   as seções da home. É o único ornamento do site, e ele diz de que setor
   estamos falando sem precisar de uma foto. */
.traco { display: block; width: 100%; height: 34px; overflow: hidden; color: var(--line-2); }
.traco svg { display: block; width: 100%; height: 100%; }
.traco path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.night .traco, .phero .traco { color: var(--night-line); }

/* ── A ESCADA DE LIBERAÇÃO ──────────────────────────────────────────
   O diferencial do produto, e por isso tem desenho próprio: três degraus
   em que o do meio é uma PESSOA. */
.escada { display: grid; gap: 14px; margin: 26px 0 0; }
@media (min-width: 860px) { .escada { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.degrau {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 20px 22px;
}
.degrau .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px; font: 600 .82rem/1 var(--mono);
  background: var(--surface-2); color: var(--ink-2); margin-bottom: 12px;
}
.degrau h3 { margin: 0 0 6px; font-size: 1.02rem; }
.degrau p { margin: 0; color: var(--ink-2); font-size: .95rem; }
/* O degrau humano: é ele que separa "a IA sugeriu" de "o profissional
   assinou", e a página inteira gira em torno disso. */
.degrau.humano { border-color: var(--seal); background: var(--seal-soft); }
.degrau.humano .n { background: var(--seal); color: #fff; }

/* ── O AVISO DURO ───────────────────────────────────────────────────
   Usado onde a página precisa dizer o que o produto NÃO faz. Aparece
   cedo e em destaque de propósito: numa vertical regulada, o limite dito
   no rodapé é o limite que ninguém leu. */
.limite {
  border-left: 3px solid var(--seal); background: var(--seal-soft);
  padding: 16px 20px; border-radius: 0 var(--r-lg) var(--r-lg) 0; margin: 22px 0;
}
.limite strong { color: var(--ink); }
.limite p { margin: 0; color: var(--ink-2); }
.limite p + p { margin-top: 8px; }

/* `.cols` do jurídico é de QUATRO colunas, porque lá as seções vêm em quatro.
   Aqui quase toda seção vem em três, e a quarta célula sobrava como um bloco
   cinza vazio à direita — que lê como conteúdo que faltou carregar.

   `auto-fit` resolve sem tocar na regra herdada: três itens ocupam três
   colunas cheias, quatro ocupam quatro, e o mínimo de 15rem é o que impede a
   coluna de espremer o texto antes do ponto de quebra. */
.cols { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

/* ── O FORMULÁRIO DE CADASTRO ───────────────────────────────────────
   A `.fld` herdada do jurídico é de campo INLINE (rótulo e caixa na
   mesma linha), porque lá ela vive numa barra de chat. Aqui é um
   formulário de conta, com quatro campos e um botão que cria a coisa
   toda — e campo espremido num canto é o que faz alguém desistir na
   metade. */
#cadastro .fld { display: block; margin: 0 0 14px; }
#cadastro .fld label {
  display: block; margin: 0 0 6px;
  font-size: .82rem; font-weight: 500; color: var(--ink-2);
}
#cadastro .fld input {
  width: 100%; padding: 11px 13px; font: inherit;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink);
}
#cadastro .fld input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
#cadastro { max-width: 560px; margin-top: 26px; }
#cadastro h3 { margin: 0 0 4px; }
#cadastro .cta { margin-top: 18px; }

/* A caixa do desafio só ocupa espaço quando o servidor pede um. Vazia,
   ela abria um buraco no meio do formulário que parecia campo que não
   carregou. */
#cadastro .cgate:empty { display: none; }

#pronto { max-width: 560px; margin-top: 26px; }
/* O código É o produto: ele roteia as mensagens daquela unidade. Quem
   acabou de criar a conta não pode ter que caçá-lo num e-mail. */
#pronto .claim { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .04em; margin: 14px 0; }
#pronto .claim b { color: var(--brand); }
