/* Lex Imperium · site de vendas · base tipográfica Archivo + Martian Mono (OFL) */
/* Fontes self-hosted (Archivo e Martian Mono, Google Fonts, licença OFL) */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/Archivo-latin-ext-300-700.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/Archivo-latin-300-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/MartianMono-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/MartianMono-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/MartianMono-latin-ext-500.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/MartianMono-latin-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ---------- TOKENS ---------- */
:root {
  --chao: #EEF0F3;
  --chao-2: #E2E6EC;
  --tinta: #0F1B2D;
  --tinta-forte: #08111F;
  --paraiba: #4E5A6C;
  --regua: rgba(15, 27, 45, .15);
  --ouro: #B8862B;
  --ouro-claro: #E2BC6A;
  --noite: #0A1222;
  --noite-2: #111C31;
  --noite-tinta: #E9EDF3;
  --noite-cinza: #9AA5B8;
  --noite-regua: rgba(233, 237, 243, .16);
  --gutter: clamp(16px, 4.2vw, 64px);
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.25, 1, .5, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  /* camadas */
  --z-stage: 1;
  --z-hdr: 40;
  --z-cta: 45;
  --z-loader: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--chao);
  color: var(--tinta);
  font-family: var(--f-sans);
  font-variation-settings: "wdth" 100;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--tinta); color: var(--chao); }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--paraiba) var(--chao); scrollbar-width: thin; }

.mono {
  font-family: var(--f-mono);
  font-size: max(11px, .72em);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--tinta); color: var(--chao); padding: 8px 12px; }
.skip:focus { left: 8px; }

.h-xl {
  font-variation-settings: "wdth" 125;
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 124px);
  line-height: .9;
  letter-spacing: -.035em;
}
.link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.link::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ouro); transform: scale(0); transition: transform .25s var(--ease-out); }
.link:hover::after { transform: scale(1); }

/* ---------- PRELOADER ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--chao); color: var(--tinta);
  padding: var(--gutter);
}
.loader__plan { width: min(760px, 88vw); height: auto; color: var(--tinta); overflow: visible; }
.loader__plan text { fill: var(--paraiba); font-family: var(--f-mono); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.loader__meta { width: min(760px, 88vw); display: flex; justify-content: space-between; gap: 16px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--paraiba); border-top: 1px solid var(--regua); padding-top: 10px; }
.loader__count { color: var(--tinta); font-variant-numeric: tabular-nums; }

/* ---------- HEADER ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-hdr);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  color: var(--tinta);
  font-size: 13px; font-weight: 500;
  transition: color .4s var(--ease-out);
  pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.hdr[data-theme="light"] { color: var(--noite-tinta); }
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--chao); border-bottom: 1px solid var(--regua); opacity: 0; transition: opacity .35s var(--ease-out), background .35s var(--ease-out); }
.hdr[data-solid]::before { opacity: 1; }
.hdr[data-theme="light"]::before { background: var(--noite); border-color: var(--noite-regua); }
.hdr__menu { display: none; }
.hdr__nav { display: flex; gap: 22px; }
.hdr__nav a { text-decoration: none; position: relative; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out); }
.hdr__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr__brand {
  text-decoration: none; display: inline-flex; align-items: flex-start; white-space: nowrap;
  font-variation-settings: "wdth" 125; font-weight: 600; font-size: 19px; letter-spacing: -.03em;
}
.hdr__brand i { width: 6px; height: 6px; border-radius: 50%; background: var(--ouro); margin: 3px 0 0 3px; }
.hdr__clock { justify-self: end; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hdr__clock span { opacity: .7; }
.hdr__clock b { width: 6px; height: 6px; border-radius: 50%; background: #3FB97A; box-shadow: 0 0 0 0 rgba(63,185,122,.5); animation: vivo 2.4s var(--ease-out) infinite; }
@keyframes vivo { 0% { box-shadow: 0 0 0 0 rgba(63,185,122,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(63,185,122,0); } }

/* ---------- OBRA: da publicação ao protocolo ---------- */
.obra { position: relative; height: 560vh; background: var(--noite); }
.obra__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--noite);
}
.obra__layer, .obra__layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.obra__layer img { object-fit: cover; object-position: 50% 0%; }
.obra__layer + .obra__layer { clip-path: inset(0 0 0 100%); }
.obra__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 30% 40%, rgba(10,18,34,.78) 0%, rgba(10,18,34,.9) 70%),
    linear-gradient(180deg, rgba(10,18,34,.5) 0%, rgba(10,18,34,.2) 50%, rgba(10,18,34,.6) 100%);
}
.js .obra__layer[data-i="0"] img { filter: blur(7px) saturate(.8); }
.obra__stage::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; pointer-events: none; background: linear-gradient(180deg, rgba(10,18,34,.92) 0%, rgba(10,18,34,.55) 55%, rgba(10,18,34,0) 100%); }
/* sem JS: vira uma sequência de telas com legenda */
html:not(.js) .obra { height: auto; }
html:not(.js) .obra__stage { position: relative; height: auto; }
html:not(.js) .obra__layer { display: block; position: relative; height: 70vh; clip-path: none !important; }
html:not(.js) .obra__corte, html:not(.js) .obra__hint { display: none; }
html:not(.js) .passos { position: relative; inset: auto; display: grid; gap: 1px; padding: 24px var(--gutter); }
html:not(.js) .passo { position: relative; opacity: 1; visibility: visible; }

.obra__corte {
  position: absolute; top: 0; bottom: 0; left: 100%; width: 0;
  border-left: 1.5px solid var(--ouro-claro);
  pointer-events: none; opacity: 0;
}
.obra__corte span {
  position: absolute; top: 96px; left: 10px;
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ouro-claro); white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.obra__corte::before, .obra__corte::after {
  content: ""; position: absolute; left: -7px; width: 12px; height: 12px;
  border: 1.5px solid var(--ouro-claro); border-radius: 50%; background: var(--noite);
}
.obra__corte::before { top: 72px; }
.obra__corte::after { bottom: 72px; }

.obra__title {
  position: absolute; inset: 0; pointer-events: none; color: var(--noite-tinta);
  font-variation-settings: "wdth" 118; font-weight: 500;
  font-size: clamp(48px, 8.6vw, 152px); line-height: .88; letter-spacing: -.04em;
}
.obra__title > span { position: absolute; display: block; overflow: hidden; padding-bottom: .08em; }
.obra__title > span > span { display: block; white-space: nowrap; }
.t-a { top: 15vh; left: var(--gutter); }
.t-b { bottom: 23vh; right: var(--gutter); text-align: right; }

.obra__intro {
  position: absolute; left: var(--gutter); bottom: 6vh;
  max-width: 360px; display: grid; gap: 14px;
  font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--noite-tinta);
}
.obra__intro em { font-style: normal; color: var(--ouro-claro); }
.obra__cidades { color: var(--noite-cinza); font-weight: 400; font-size: 13px; }
.obra__hint {
  position: absolute; right: var(--gutter); bottom: 6vh; width: min(340px, 40vw);
  display: grid; gap: 10px; color: var(--noite-cinza);
}
.obra__ruler {
  height: 10px;
  background:
    linear-gradient(var(--noite-tinta), var(--noite-tinta)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--noite-tinta) 0 1px, transparent 1px 16.66%) left bottom / 100% 6px no-repeat;
  opacity: .55;
}

/* legenda de cada passo */
.passos { position: absolute; left: var(--gutter); bottom: 5vh; width: min(460px, calc(100% - 2 * var(--gutter))); pointer-events: none; }
.passo {
  position: absolute; left: 0; bottom: 0; width: 100%;
  background: #08101F;
  border-top: 1.5px solid var(--ouro-claro);
  padding: 18px 22px 22px;
  color: var(--noite-tinta);
  opacity: 0; visibility: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
}
.passo__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--ouro-claro); font-size: 11px; }
.passo__meta span:last-child { color: var(--noite-cinza); }
.passo h2 {
  margin-top: 12px;
  font-variation-settings: "wdth" 112; font-weight: 500;
  font-size: clamp(24px, 2.3vw, 36px); line-height: 1.02; letter-spacing: -.025em;
  text-wrap: balance;
}
.passo p { margin-top: 10px; color: var(--noite-cinza); font-size: 14.5px; line-height: 1.5; max-width: 46ch; }
.obra__regua {
  position: absolute; right: var(--gutter); bottom: 5vh; display: flex; gap: 6px; align-items: end;
  opacity: 0; background: #08101F; padding: 12px 14px 14px; border-top: 1.5px solid var(--ouro-claro);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
}
.obra__regua li { width: 46px; display: grid; gap: 8px; color: var(--noite-cinza); font-family: var(--f-mono); font-size: 10px; }
.obra__regua li::after { content: ""; height: 2px; background: var(--noite-regua); transition: background .4s var(--ease-out); }
.obra__regua li.is-on { color: var(--noite-tinta); }
.obra__regua li.is-on::after { background: var(--ouro-claro); }

/* ---------- MANIFESTO ---------- */
.manifesto { padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(90px, 14vh, 160px); }
.manifesto__text {
  font-variation-settings: "wdth" 112; font-weight: 500;
  font-size: clamp(30px, 4.2vw, 70px); line-height: 1.03; letter-spacing: -.03em;
  max-width: 22ch; text-wrap: balance;
}
.manifesto__text .ch { opacity: 1; }
.manifesto__foot {
  margin-top: clamp(48px, 9vh, 96px); margin-left: auto; max-width: 440px;
  display: grid; gap: 22px; padding-top: 18px; border-top: 1px solid var(--regua);
}
.manifesto__foot p { color: var(--paraiba); }

/* ---------- PAINEL: tour guiado ---------- */
.painel { padding: 0 var(--gutter) clamp(90px, 14vh, 160px); }
.painel__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; padding-bottom: 28px; border-bottom: 1px solid var(--regua); }
.painel__head p { max-width: 42ch; color: var(--paraiba); }
.tour { margin-top: clamp(28px, 5vh, 48px); }
.tour__frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--noite);
  box-shadow: 0 40px 80px -40px rgba(10,18,34,.55);
}
.tour__img, .tour__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tour__img img { object-fit: cover; object-position: 50% 0%; }
.tour__img { clip-path: inset(0 0 0 100%); }
.tour__img.is-base { clip-path: inset(0 0 0 0); }
.tour__corte { position: absolute; top: 0; bottom: 0; left: 100%; border-left: 1.5px solid var(--ouro-claro); opacity: 0; pointer-events: none; }
.tour__bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: start;
  padding-top: 18px;
}
.tour__caps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; grid-column: 1 / -1; }
.tour__caps button {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 10px; width: 100%;
  padding: 0 0 6px; color: var(--paraiba); font-size: 13px; font-weight: 500; line-height: 1.25;
}
.tour__caps button .trilho { position: relative; height: 2px; background: var(--regua); overflow: hidden; }
.tour__caps button .trilho i { position: absolute; inset: 0; background: var(--ouro); transform: scaleX(0); transform-origin: left; }
.tour__caps button[aria-current="true"] { color: var(--tinta); }
.tour__caps button:hover { color: var(--tinta); }
.tour__caps button:focus-visible { outline: 2px solid var(--ouro); outline-offset: 4px; }
.tour__caps .mono { font-size: 10px; margin-right: 6px; color: var(--paraiba); }
.tour__legenda { min-height: 3.2em; max-width: 60ch; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.35; font-variation-settings: "wdth" 106; letter-spacing: -.01em; }
.tour__legenda b { font-weight: 600; }
.ctl {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px;
  border: 1px solid var(--regua); border-radius: 999px; font-size: 13px; font-weight: 500;
  transition: border-color .2s var(--ease-out), transform .12s var(--ease-out);
}
.ctl:hover { border-color: var(--tinta); }
.ctl:active { transform: scale(.97); }
.ctl:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }
.ctl svg { width: 12px; height: 12px; }

/* ---------- FOCO: petição pelo chat ---------- */
.foco {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-areas: "head head head" "demo demo ficha" "demo demo texto";
  gap: clamp(20px, 3vw, 48px); align-items: start;
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  background: var(--chao-2);
}
.foco__head { grid-area: head; }
.foco__pre { font-size: .36em; letter-spacing: -.02em; vertical-align: baseline; margin-right: .12em; }
.foco__nome {
  font-variation-settings: "wdth" 125; font-weight: 500;
  font-size: clamp(50px, 8vw, 136px); line-height: .88; letter-spacing: -.04em;
}
.foco__demo { grid-area: demo; margin: 0; min-width: 0; }
.foco__ficha { grid-area: ficha; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--regua); }
.foco__ficha > div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--regua); }
.foco__ficha dt, .nuc__ficha dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--paraiba); font-weight: 500; }
.foco__ficha dd, .nuc__ficha dd { font-weight: 500; }
.foco__texto { grid-area: texto; color: var(--paraiba); max-width: 42ch; display: grid; gap: 14px; }

/* réplica da tela de Petições iniciais (mesmo desenho do sistema) */
.app {
  --a-bg: #0C0F15; --a-panel: #11151D; --a-line: #222834; --a-text: #D9DDE5; --a-mute: #8B93A3;
  --a-gold: #D9A92C; --a-green: #3ECF8E;
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; min-height: 420px;
  background: var(--a-bg); color: var(--a-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px; line-height: 1.5;
  display: grid; grid-template-rows: 38px minmax(0, 1fr);
  box-shadow: 0 40px 80px -40px rgba(10,18,34,.6);
  container-type: inline-size;
}
.app__top { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--a-line); color: var(--a-mute); font-size: 12px; }
.app__top b { color: var(--a-text); font-weight: 600; font-variant: small-caps; letter-spacing: .06em; font-size: 13px; }
.app__body { display: grid; grid-template-columns: 172px minmax(0, 1fr) 0; min-height: 0; transition: grid-template-columns .8s var(--ease-io); }
.app.is-doc .app__body { grid-template-columns: 172px minmax(0, 1fr) minmax(0, .95fr); }
.app__side { border-right: 1px solid var(--a-line); padding: 12px 10px; display: grid; align-content: start; gap: 12px; min-width: 0; }
.app__novo { border: 1px solid var(--a-line); border-radius: 8px; padding: 7px 10px; text-align: center; font-weight: 600; font-size: 12px; }
.app__hist { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--a-mute); }
.app__conv { border: 1px solid rgba(217,169,44,.45); background: rgba(217,169,44,.08); border-radius: 8px; padding: 8px 9px; font-size: 11.5px; line-height: 1.35; }
.app__conv small { display: block; color: var(--a-mute); font-size: 10px; margin-top: 3px; }
.app__chat { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.app__msgs { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px 16px 10px; overflow: hidden; min-height: 0; }
.msg { display: flex; gap: 9px; align-items: flex-start; max-width: 100%; }
.msg__av { width: 24px; height: 24px; border-radius: 50%; flex: none; object-fit: cover; }
.msg__b { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.msg__b ol { list-style: decimal; padding-left: 18px; margin: 6px 0; display: grid; gap: 3px; }
.msg__b p + p { margin-top: 6px; }
.msg--eu { justify-content: flex-end; }
.msg--eu .msg__b { background: var(--a-gold); border-color: var(--a-gold); color: #17130A; max-width: 78%; }
.msg__hora { display: block; text-align: right; font-size: 9.5px; opacity: .6; margin-top: 3px; }
.msg__status { display: flex; align-items: center; gap: 10px; color: var(--a-mute); font-size: 12px; padding-left: 33px; }
.msg__status .dots { display: inline-flex; gap: 3px; }
.msg__status .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--a-gold); animation: pulsa 1.2s var(--ease-out) infinite; }
.msg__status .dots i:nth-child(2) { animation-delay: .15s; }
.msg__status .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pulsa { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
.msg__status em { font-style: normal; color: var(--a-text); }
.rasc { border: 1px solid rgba(62,207,142,.4); background: rgba(62,207,142,.07); border-radius: 10px; padding: 9px 11px; display: grid; gap: 7px; }
.rasc strong { color: var(--a-green); font-weight: 600; }
.rasc small { color: var(--a-mute); font-size: 11px; }
.rasc__arqs { display: flex; flex-wrap: wrap; gap: 6px; }
.rasc__arqs span { border: 1px solid var(--a-line); border-radius: 6px; padding: 4px 8px; font-size: 11px; background: var(--a-bg); white-space: nowrap; }
.app__comp { margin: 0 14px 12px; border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-panel); padding: 9px 11px; display: grid; gap: 8px; }
.app__campo { min-height: 2.9em; color: var(--a-text); font-size: 12.5px; }
.app__campo:empty::before { content: "Responda ou peça um ajuste..."; color: var(--a-mute); }
.app__campo .cursor { display: inline-block; width: 1.5px; height: 1.05em; background: var(--a-gold); vertical-align: -2px; margin-left: 1px; animation: pisca 1s steps(1) infinite; }
@keyframes pisca { 50% { opacity: 0; } }
.app__tools { display: flex; align-items: center; gap: 10px; color: var(--a-mute); font-size: 11.5px; }
.app__tools svg { width: 15px; height: 15px; }
.app__sel { border: 1px solid var(--a-line); border-radius: 6px; padding: 3px 9px; color: var(--a-text); }
.app__send { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; background: var(--a-gold); color: #17130A; display: grid; place-items: center; }
.app__doc { border-left: 1px solid var(--a-line); min-width: 0; overflow: hidden; display: grid; grid-template-rows: 38px minmax(0, 1fr); background: #0E1219; }
.app__doc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--a-line); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.app__doc-top span:last-child { border: 1px solid var(--a-line); border-radius: 6px; padding: 2px 8px; }
.app__papel { padding: 14px 16px; font-size: 11.5px; line-height: 1.6; color: #C9CED8; overflow: hidden; display: grid; align-content: start; gap: 8px; }
.app__papel h4 { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--a-text); text-transform: uppercase; letter-spacing: .01em; }
.app__papel mark { background: rgba(250, 204, 21, .28); color: #FFF4C7; padding: 0 2px; border-radius: 2px; transition: background .4s; }
.app__papel mark.is-pulse { background: rgba(250, 204, 21, .6); }


/* legenda da demonstração */
.legenda { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: start; }
.legenda__caps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.legenda__texto { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.35; font-variation-settings: "wdth" 106; letter-spacing: -.01em; min-height: 2.8em; }
.legenda__texto b { font-weight: 600; }
.legenda__ctl { display: flex; gap: 8px; }

/* ---------- PRAZOS (accordion com foto fixa) ---------- */
.prazos {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px);
  padding: clamp(90px, 14vh, 160px) var(--gutter);
}
.prazos__col { display: grid; align-content: start; gap: clamp(28px, 5vh, 56px); }
.prazos__lead { color: var(--paraiba); max-width: 44ch; }
.acc { border-top: 1px solid var(--regua); }
.acc__item { border-bottom: 1px solid var(--regua); position: relative; }
.acc__item::before { content: ""; position: absolute; left: 0; top: -1px; height: 1.5px; width: 100%; background: var(--ouro); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.acc__item.is-open::before { transform: scaleX(1); }
.acc h3 button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; align-items: baseline; gap: 16px;
  padding: 18px 0;
  font-variation-settings: "wdth" 112; font-weight: 500; font-size: clamp(21px, 2vw, 30px); letter-spacing: -.02em;
}
.acc h3 button .d { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; color: var(--ouro); font-variation-settings: normal; }
.acc h3 button:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; }
.acc__icon { position: relative; width: 14px; height: 14px; flex: none; align-self: center; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .3s var(--ease-out); }
.acc__icon::after { transform: rotate(90deg); }
[aria-expanded="true"] .acc__icon::after { transform: rotate(0); }
.acc__body { overflow: hidden; }
.acc__body p { padding: 0 0 22px calc(4.2em * .0 + 0px); max-width: 48ch; color: var(--paraiba); }
.prazos__fotos { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--noite); position: sticky; top: 90px; align-self: start; }
.prazos__fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out); }
.prazos__fotos img.is-on { opacity: 1; transform: none; }
.prazos__fotos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; color: var(--noite-cinza); border-top: 1px solid var(--noite-regua); font-size: 11px; background: rgba(10,18,34,.9); }

/* ---------- NÚCLEOS ---------- */
.nucleos { padding: 0 var(--gutter) clamp(80px, 12vh, 140px); }
.nucleos__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--regua); }
.filtro { display: flex; flex-wrap: wrap; gap: 6px; }
.filtro button {
  font: inherit; font-size: 13px; font-weight: 500; color: var(--tinta);
  background: transparent; border: 1px solid var(--regua); border-radius: 999px;
  padding: 9px 14px 8px; cursor: pointer;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .12s var(--ease-out);
}
.filtro button:hover { border-color: var(--tinta); }
.filtro button:active { transform: scale(.97); }
.filtro button[aria-pressed="true"] { background: var(--tinta); color: var(--chao); border-color: var(--tinta); }
.filtro sup { font-family: var(--f-mono); font-size: 9px; vertical-align: top; margin-left: 2px; opacity: .7; }
.nuc {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 3.5vw, 56px);
  align-items: end; padding: clamp(40px, 7vh, 80px) 0; border-bottom: 1px solid var(--regua);
}
.nuc:nth-child(even) .equipe { order: 2; }
.nuc.is-hidden { display: none; }
.equipe {
  margin: 0; background: var(--noite); color: var(--noite-tinta);
  padding: clamp(18px, 2.4vw, 34px);
  display: grid; gap: clamp(14px, 2vw, 24px); align-content: start;
  min-height: clamp(260px, 30vw, 460px); overflow: hidden; position: relative;
}
.equipe__cab { display: flex; justify-content: space-between; gap: 12px; color: var(--noite-cinza); font-size: 11px; border-bottom: 1px solid var(--noite-regua); padding-bottom: 10px; }
.equipe__cab span:first-child { color: var(--ouro-claro); }
.equipe ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px) clamp(10px, 1.4vw, 20px); }
.equipe li { display: grid; gap: 8px; min-width: 0; align-content: start; }

.equipe img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: saturate(.92); }
.equipe li b { display: block; font-weight: 600; font-size: 13px; line-height: 1.2; }
.equipe li small { display: block; font-family: var(--f-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--noite-cinza); line-height: 1.35; margin-top: 2px; }
.equipe li.is-lider img { box-shadow: 0 0 0 2px var(--noite), 0 0 0 3.5px var(--ouro-claro); }
.nuc__ficha { display: grid; gap: 22px; }
.nuc__ficha h3 {
  font-variation-settings: "wdth" 118; font-weight: 500;
  font-size: clamp(30px, 3.1vw, 52px); line-height: .95; letter-spacing: -.03em;
}
.nuc__ficha dl { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--regua); }
.nuc__ficha dl > div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--regua); }
.nuc__ficha p { color: var(--paraiba); max-width: 44ch; }
.selo { display: inline-flex; align-items: center; gap: 6px; }
.selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ouro); }

/* ---------- CONTATO ---------- */
.contato {
  position: relative; overflow: hidden;
  background: var(--noite); color: var(--noite-tinta);
  padding: clamp(110px, 18vh, 200px) var(--gutter) 28px;
}
.contato ::selection { background: var(--noite-tinta); color: var(--noite); }
.contato__h {
  font-variation-settings: "wdth" 118; font-weight: 500;
  font-size: clamp(36px, 5vw, 84px); line-height: .98; letter-spacing: -.035em; max-width: 17ch;
  position: relative; z-index: 1; text-wrap: balance;
}
.contato__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(56px, 10vh, 110px); padding-top: 20px; border-top: 1px solid var(--noite-regua);
}
.canal h3 { font-size: 13px; font-weight: 500; color: var(--noite-cinza); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
.canal a { display: inline-block; margin-top: 12px; font-variation-settings: "wdth" 104; font-size: clamp(20px, 1.75vw, 30px); white-space: nowrap; font-weight: 500; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--noite-cinza); padding-bottom: 4px; transition: border-color .25s var(--ease-out); }
.canal a:hover { border-color: var(--ouro-claro); }
.contato__nota { display: grid; gap: 14px; align-content: start; color: var(--noite-cinza); max-width: 40ch; }
.contato__nota strong { color: var(--noite-tinta); font-weight: 500; }
.contato__marca {
  font-variation-settings: "wdth" 125; font-weight: 600;
  font-size: 14.6vw; line-height: .8; letter-spacing: -.05em;
  margin: clamp(40px, 8vh, 90px) 0 0 -1vw; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(233,237,243,.22);
  user-select: none;
}
.rodape {
  position: relative; z-index: 1; padding-bottom: 88px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px;
  border-top: 1px solid var(--noite-regua); padding-top: 16px; margin-top: 18px;
  font-size: 12px; color: var(--noite-cinza);
}
.rodape p { max-width: 70ch; }
.rodape strong { color: var(--noite-tinta); font-weight: 600; }

/* ---------- CTA FIXO ---------- */
.cta {
  transition: opacity .35s var(--ease-out), visibility .35s;
  position: fixed; left: 50%; bottom: 18px; z-index: var(--z-cta);
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(15, 27, 45, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateX(-50%);
}
.cta a {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tinta); color: var(--chao); text-decoration: none;
  height: 44px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform .15s var(--ease-out), background .2s var(--ease-out);
}
.cta__pill { padding: 0 20px; white-space: nowrap; }
.cta__dot { width: 44px; position: relative; }
.cta__dot::after { content: ""; position: absolute; top: 9px; right: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--ouro-claro); }
.cta a:active { transform: scale(.97); }
.cta a:hover { background: var(--tinta-forte); }
.cta.is-off { opacity: 0 !important; visibility: hidden; }
.cta.is-dark { background: rgba(233, 237, 243, .14); }
.cta.is-dark a { background: var(--noite-tinta); color: var(--noite); }

/* ---------- ESTADOS INICIAIS DE ANIMAÇÃO (só com JS) ---------- */
.js .obra__title > span > span { transform: translateY(105%); }
.js .hdr, .js .cta { opacity: 0; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1100px) {
  .hdr__nav { gap: 16px; }
}
@media (max-width: 899px) {
  .foco { grid-template-columns: 1fr; grid-template-areas: "head" "demo" "ficha" "texto"; }
  .prazos { grid-template-columns: 1fr; }
  .prazos__fotos { position: relative; top: 0; aspect-ratio: 4 / 4.2; order: -1; max-width: 520px; width: 100%; }
  .contato__grid { grid-template-columns: 1fr 1fr; }
  .contato__nota { grid-column: 1 / -1; }
  .tour__caps, .legenda__caps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tour__caps button, .legenda__caps button { font-size: 0; gap: 0; }
  .tour__caps button .mono, .legenda__caps button .mono { font-size: 10px; }
}
@media (max-width: 699px) {
  .hdr { grid-template-columns: auto 1fr auto; gap: 16px; padding: 14px var(--gutter); }
  .hdr__menu { display: block; order: 3; font: inherit; font-size: 13px; font-weight: 500; color: inherit; background: none; border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
  .hdr__brand { order: 1; font-size: 17px; }
  .hdr__clock { order: 2; justify-self: end; }
  .hdr__clock span { display: none; }
  .hdr__nav { display: none; order: 4; grid-column: 1 / -1; flex-direction: column; gap: 0; padding: 8px 0 6px; }
  .hdr.is-open .hdr__nav { display: flex; }
  .hdr.is-open::before { opacity: 1; }
  .hdr__nav a { padding: 12px 0; border-top: 1px solid var(--regua); font-size: 20px; font-variation-settings: "wdth" 112; }
  .hdr[data-theme="light"] .hdr__nav a { border-color: var(--noite-regua); }

  .obra { height: 470vh; }
  .obra__layer img { object-position: 50% 0%; }
  .t-a { top: 13vh; }
  .t-b { bottom: 36vh; }
  .obra__title { font-variation-settings: "wdth" 108; }
  .obra__intro { bottom: 12vh; max-width: none; right: var(--gutter); font-size: 14.5px; }
  .obra__hint { display: none; }
  .obra__corte span { top: 76px; }
  .obra__corte::before { top: 56px; }
  .passos { bottom: max(76px, 9vh); }
  .passo { padding: 14px 16px 16px; }
  .passo h2 { font-size: 23px; margin-top: 8px; }
  .passo p { font-size: 13.5px; margin-top: 6px; }
  .obra__regua { display: none; }

  .tour__frame { aspect-ratio: 4 / 5; }
  .tour__bar { grid-template-columns: 1fr; }
  .tour__legenda { min-height: 4.2em; }

  .app { aspect-ratio: auto; height: 600px; min-height: 0; font-size: 12.5px; }
  .app__body, .app.is-doc .app__body { grid-template-columns: minmax(0, 1fr); }
  .app__side { display: none; }
  .app__doc { position: absolute; left: 0; right: 0; bottom: 0; top: 38px; z-index: 3; transform: translateY(102%); transition: transform .8s var(--ease-io); border-left: 0; border-top: 1px solid var(--a-line); }
  .app.is-doc .app__doc { transform: translateY(18%); box-shadow: 0 -20px 50px rgba(0,0,0,.55); }
  .msg--eu .msg__b { max-width: 88%; }
  .legenda { grid-template-columns: 1fr; }
  .legenda__texto { min-height: 4.2em; }

  .nuc { grid-template-columns: 1fr; }
  .nuc:nth-child(even) .equipe { order: 0; }
  .equipe { aspect-ratio: auto; }
  .equipe ul { gap: 14px 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .equipe li b { font-size: 12px; }
  .equipe li small { font-size: 8.5px; }
  .contato__grid { grid-template-columns: 1fr; }
  .contato__marca { font-size: 15vw; }
  .cta { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.app [hidden] { display: none !important; }
.app[data-doc="1"] .app__body { grid-template-columns: 172px minmax(0, 1fr) minmax(0, .95fr); }
@media (max-width: 699px) {
  .app[data-doc="1"] .app__body { grid-template-columns: minmax(0, 1fr); }
  .app[data-doc="1"] .app__doc { transform: translateY(18%); box-shadow: 0 -20px 50px rgba(0,0,0,.55); }
}

/* boas-vindas da tela de Petições iniciais */
.app__ola { margin: auto; display: grid; justify-items: center; text-align: center; gap: 8px; max-width: 46ch; padding: 0 12px; }
.app__ola img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--a-bg), 0 0 0 3px rgba(217,169,44,.6); }
.app__ola strong { font-family: Georgia, "Times New Roman", serif; font-variant: small-caps; font-size: 18px; letter-spacing: .03em; font-weight: 600; color: var(--a-text); }
.app__ola span { color: var(--a-mute); font-size: 12px; }
.app__msgs > .app__ola { flex: 1; display: grid; align-content: center; }
.selo--breve::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--paraiba); }
.nuc--breve .equipe ul { opacity: .55; filter: grayscale(.6); }
.nuc--breve .equipe__cab span:last-child { color: var(--noite-tinta); border: 1px solid var(--noite-regua); padding: 2px 8px; border-radius: 999px; }
.nuc__ficha p strong { color: var(--tinta); font-weight: 600; }
