/* Path Co. — site institucional */

:root {
  --bg: #07080a;
  --bg-2: #0b0d10;
  --surface: #101317;
  --surface-2: #14181d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eeece8;
  --muted: #9ea0a6;
  --faint: #6d7077;
  --glow: #f1c78f;
  --light: #f3f1ed;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  /* Site escuro: barras de rolagem e controles nativos também escuros. */
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  /* Barra fina no tom dourado da marca (Chrome, Edge e Firefox). */
  scrollbar-width: thin;
  scrollbar-color: rgba(241, 199, 143, .35) var(--bg);
}

/* Mesma barra no Safari, que só entende o formato antigo. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: rgba(241, 199, 143, .3);
}
::-webkit-scrollbar-thumb:hover { background: rgba(241, 199, 143, .55); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(241, 199, 143, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico { width: 1em; height: 1em; flex: none; }

/* ---------- Elementos base ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9em;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}

.section__title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s, box-shadow .3s;
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--light {
  background: var(--light);
  color: #0b0c0e;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 10px 30px -12px rgba(241,199,143,.35);
}
.btn--light:hover {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 14px 40px -12px rgba(241,199,143,.55);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color .25s;
}
.link .ico { transition: transform .3s var(--ease); }
.link:hover { color: #fff; }
.link:hover .ico { transform: translateX(3px); }

/* ---------- Marca ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}
.brand__mark { width: 26px; height: 34px; }
.brand__word { width: 104px; height: 19px; fill: currentColor; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .4s, border-color .4s, height .4s var(--ease), opacity .8s var(--ease), transform .8s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Some durante a abertura e aparece quando o vídeo termina ou na rolagem. */
.header.is-hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
/* No topo o logo grande do vídeo já está na tela. */
.header .brand { transition: opacity .5s var(--ease); }
.header:not(.is-scrolled) .brand { opacity: 0; pointer-events: none; }
.header.is-scrolled {
  --header-h: 68px;
  border-bottom-color: var(--line);
}
/* O fundo desfocado fica numa camada própria: um backdrop-filter no próprio
   header prenderia o menu do celular (position: fixed) dentro dele. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 8, 10, .78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  opacity: 0;
  transition: opacity .4s;
}
.header.is-scrolled::before { opacity: 1; }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  font-size: 13.5px;
}
.nav a:not(.btn) {
  position: relative;
  color: var(--muted);
  padding: 6px 0;
  transition: color .25s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover,
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { transform: scaleX(1); }
.nav__cta { display: none; }

.header__cta {
  height: 42px;
  font-size: 13px;
  padding: 0 18px;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s, background-color .3s, box-shadow .3s;
}
/* Some enquanto um botão igual está visível na página. */
.header__cta.is-away {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.nav-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Abertura (vídeo da marca) ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}
.hero__stage {
  position: absolute;
  inset: 0;
  transform: scale(calc(1 + var(--hp, 0) * .08));
  opacity: calc(1 - var(--hp, 0) * .75);
  will-change: transform, opacity;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Funde a base do vídeo com a página. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* Em tela em pé o vídeo quadrado aparece inteiro, com as bordas sumindo no preto. */
@media (orientation: portrait) {
  /* 140vw mantém o "PATH co." inteiro e aproveita mais a tela. */
  .hero__video {
    top: 50%;
    left: -20vw;
    width: 140vw;
    max-width: none;
    height: 140vw;
    max-height: 100%;
    transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 80%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 80%, transparent);
  }
  .hero::after { display: none; }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 2;
  padding-bottom: 46px;
  transform: translate(-50%, 10px);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1s var(--ease), color .25s;
}
.hero__scroll:hover { color: var(--text); }
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--text), transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}
.hero.is-ready .hero__scroll {
  opacity: calc(1 - var(--hp, 0) * 3);
  transform: translate(-50%, 0);
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Manifesto ---------- */

.statement {
  position: relative;
  height: 220vh;
}
.statement__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.statement__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 55% at 88% 70%, rgba(241, 199, 143, .16), transparent 70%),
    radial-gradient(40% 40% at 8% 20%, rgba(255, 255, 255, .035), transparent 70%);
  opacity: calc(.2 + var(--sp, 0) * .8);
  pointer-events: none;
}
.statement__inner { position: relative; }

.statement__title {
  max-width: 15ch;
  font-size: clamp(42px, 7.4vw, 104px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: #fff;
}
.statement__title strong { font-weight: 600; }
.statement__title .w {
  opacity: var(--o, 1);
  transition: opacity .25s linear;
}

.statement__lead {
  max-width: 540px;
  margin-top: clamp(28px, 4vw, 44px);
  font-size: clamp(15px, 1.3vw, 18px);
  color: #b9bbc0;
}
.statement__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 36px;
}
.js .statement__lead,
.js .statement__actions {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
}
.js .statement.is-done .statement__lead,
.js .statement.is-done .statement__actions {
  opacity: 1;
  transform: none;
}
.js .statement.is-done .statement__actions { transition-delay: .12s; }

/* ---------- Estrada entre as seções ---------- */

main { position: relative; }
main > section:not(.hero) { position: relative; z-index: 1; }
.hero { z-index: 2; }

.journey {
  --road: 30px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey__edge { stroke: rgba(255, 255, 255, .085); stroke-width: calc(var(--road) + 2px); }
.journey__surface { stroke: #090a0d; stroke-width: var(--road); }
.journey__marks {
  stroke: rgba(255, 255, 255, .07);
  stroke-width: 1px;
  stroke-dasharray: 14 22;
}
.journey__glow { stroke: rgba(241, 199, 143, .22); stroke-width: 5px; }
.journey__glow--wide { stroke: rgba(241, 199, 143, .07); stroke-width: calc(var(--road) * .8); }
.journey__core { stroke: #fff1dc; stroke-width: 1.5px; }
.journey__halo { mix-blend-mode: screen; }
.journey__head { fill: #fff6e9; }
.journey__halo,
.journey__head { transition: opacity .4s; }
.journey.is-idle .journey__halo,
.journey.is-idle .journey__head { opacity: 0; }

/* ---------- Faixa "conectamos" ---------- */

.strip {
  border-block: 1px solid var(--line);
  background: transparent;
  padding: 32px 0;
}
.strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #c9cbcf;
}
.strip__list li { position: relative; }
/* Ponto separador centralizado no vão entre os itens. */
.strip__list li + li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--faint);
}

/* ---------- Seções ---------- */

.section { padding: clamp(80px, 11vw, 140px) 0; }

/* Respiro entre as seções: é onde a estrada de luz troca de lado. Com mais
   altura, a curva fica longa e suave em vez de fazer cantos. */
#solucoes,
#sobre,
#aplicacoes,
#contato { margin-top: clamp(48px, 16vw, 240px); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section__head .eyebrow { margin-bottom: 22px; }
.section__aside {
  max-width: 330px;
  font-size: 14px;
  color: var(--muted);
}
.section__aside .link { margin-top: 22px; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  padding: 32px 26px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, rgba(241,199,143,.10), transparent 70%);
  opacity: 0;
  transition: opacity .5s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card__icon { width: 34px; height: 34px; color: #d9d7d2; margin-bottom: 30px; }
.card h3 { font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- Sobre ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(300px, .8fr);
  min-height: 560px;
  border-block: 1px solid var(--line);
  background: transparent;
}
.about__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 80px clamp(24px, 4vw, 56px) 80px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.about__copy > p:not(.eyebrow) { color: var(--muted); max-width: 440px; font-size: 15px; }
.about__copy .btn { margin-top: 10px; }

.about__visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, #1a1714 0%, transparent 60%),
    linear-gradient(160deg, #0e1013, #07080a);
  border-inline: 1px solid var(--line);
}
.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.route__path--main {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.2s var(--ease);
}
.about__visual.is-in .route__path--main {
  stroke-dashoffset: 0;
  transition-duration: 2.6s;
}
.route__nodes circle {
  fill: #0b0c0e;
  stroke: var(--glow);
  stroke-width: 1.5;
  opacity: 0;
  transition: opacity .6s;
}
.about__visual.is-in .route__nodes circle { opacity: 1; }
.about__visual.is-in .route__nodes circle:nth-child(1) { transition-delay: .9s; }
.about__visual.is-in .route__nodes circle:nth-child(2) { transition-delay: 1.5s; }
.about__visual.is-in .route__nodes circle:nth-child(3) { transition-delay: 2.1s; }

.route__labels text {
  fill: var(--muted);
  font: 500 14px var(--font);
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .6s;
}
.about__visual.is-in .route__labels text { opacity: 1; }
.about__visual.is-in .route__labels text:nth-child(1) { transition-delay: 1s; }
.about__visual.is-in .route__labels text:nth-child(2) { transition-delay: 1.6s; }
.about__visual.is-in .route__labels text:nth-child(3) { transition-delay: 2.2s; }

/* Como trabalhamos: etapas ligadas por uma linha, como um caminho. */
.steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 60px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 60px clamp(28px, 3vw, 48px);
  background: rgba(255, 255, 255, .015);
}
.steps__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
}
.steps__list::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255,255,255,.18), rgba(241,199,143,.55));
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--glow);
}
.step__num {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--glow);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 6px; font-size: 16px; font-weight: 500; }
.step p { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Aplicações ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.case {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s, transform .5s var(--ease);
}
.case:hover { border-color: var(--line-2); transform: translateY(-4px); }

.case__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 26px 26px;
}
.case__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 12px;
}
.case__tag {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.case__title {
  max-width: 85%;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}
.case__desc {
  max-width: 80%;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.case__go {
  position: absolute;
  right: 22px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 16px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.case:hover .case__go { background: var(--light); color: #0b0c0e; border-color: var(--light); }

/* Tela de demonstração no topo de cada cartão */
.case__demo {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 70% at 85% 0%, rgba(241, 199, 143, .1), transparent 70%),
    linear-gradient(180deg, #0f1115, #0a0b0e);
  font-size: 12px;
  line-height: 1.4;
}

.demo-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(11, 12, 14, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 500;
  transition: opacity .25s, transform .25s var(--ease);
}
.demo-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
}
.demo-chip.is-swap { opacity: 0; transform: translateY(4px); }

/* Logística */
/* O mapa cabe inteiro (meet); as ruas passam do quadro e cobrem cartões largos. */
.demo-route__map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.demo-route__streets path { fill: none; stroke: rgba(255, 255, 255, .045); stroke-width: 9; stroke-linecap: round; }
.demo-route__path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease);
}
.demo-route__path--a { stroke: var(--glow); filter: drop-shadow(0 0 4px rgba(241, 199, 143, .6)); }
.demo-route__path--b { stroke: rgba(255, 255, 255, .7); }
.demo-route__path.is-drawn { stroke-dashoffset: 0; }
.demo-route__stops circle {
  fill: #0b0c0e;
  stroke: rgba(255, 255, 255, .6);
  stroke-width: 1.5;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .35s var(--ease), fill .3s, stroke .3s;
}
.demo-route__stops circle.is-shown { transform: scale(1); }
.demo-route__stops circle.is-done { fill: var(--glow); stroke: var(--glow); }
.demo-route__depot circle { fill: rgba(241, 199, 143, .12); stroke: rgba(241, 199, 143, .4); }
.demo-route__depot rect { fill: var(--glow); }
.demo-route__vehicle {
  fill: #fff;
  filter: drop-shadow(0 0 6px rgba(255, 231, 196, .9));
  opacity: 0;
  transition: opacity .3s;
}
.demo-route__vehicle.is-moving { opacity: 1; }

/* Atendimento */
.demo-chat { display: flex; flex-direction: column; }
.demo-chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.demo-chat__avatar {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(241, 199, 143, .14);
}
.demo-chat__avatar svg { width: 14px; height: 14px; fill: var(--glow); }
.demo-chat__head b { display: block; font-size: 12.5px; font-weight: 600; }
.demo-chat__head small { display: block; font-size: 10.5px; color: var(--muted); }
.demo-chat__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 14px;
  overflow: hidden;
}
.msg {
  display: none;
  max-width: 80%;
  margin: 0;
  padding: 7px 11px;
  border-radius: 12px;
  animation: msg-in .35s var(--ease) both;
}
.msg.is-shown { display: block; }
.msg--in { align-self: flex-start; background: rgba(255, 255, 255, .08); border-bottom-left-radius: 4px; }
.msg--out {
  align-self: flex-end;
  background: linear-gradient(135deg, #f3e6d2, #e6cfab);
  color: #121315;
  border-bottom-right-radius: 4px;
}
.msg--sys {
  align-self: center;
  padding: 4px 10px;
  border: 1px solid rgba(241, 199, 143, .3);
  border-radius: 999px;
  background: rgba(241, 199, 143, .08);
  color: var(--glow);
  font-size: 10.5px;
}
.msg--typing {
  align-self: flex-end;
  padding: 10px 12px;
  background: rgba(243, 230, 210, .9);
  border-bottom-right-radius: 4px;
}
.msg--typing.is-shown { display: flex; gap: 4px; }
.msg--typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #121315;
  opacity: .5;
  animation: typing 1s ease-in-out infinite;
}
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50% { transform: translateY(-3px); opacity: .9; }
}

/* Jurídico */
.demo-docs { padding: 14px; }
.demo-docs__search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  font-size: 12.5px;
}
.demo-docs__search svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.demo-docs__query { white-space: pre; }
.demo-docs__caret {
  width: 1px;
  height: 14px;
  margin-left: -6px;
  background: var(--text);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.demo-docs__results li {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.demo-docs__results li.is-shown { opacity: 1; transform: none; }
.demo-docs__results b { font-size: 11px; font-weight: 600; }
.demo-docs__results span {
  overflow: hidden;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.demo-docs__results mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(241, 199, 143, .2);
  color: #ffe7c4;
}
.demo-docs__toast {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(241, 199, 143, .35);
  border-radius: 10px;
  background: rgba(18, 20, 24, .96);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8);
  font-size: 11.5px;
  transform: translateY(-140%);
  transition: transform .45s var(--ease);
}
.demo-docs__toast.is-shown { transform: none; }
.demo-docs__toast i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 4px rgba(241, 199, 143, .18);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: clamp(80px, 10vw, 120px) 0;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 80% at 85% 120%, rgba(241,199,143,.16), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.012), transparent 60%);
}
.cta__bg::before,
.cta__bg::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 130%;
  height: 300px;
  border-top: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
}
.cta__bg::before { top: 45%; transform: rotate(-6deg); }
.cta__bg::after { top: 62%; transform: rotate(-3deg); border-top-color: rgba(241,199,143,.18); }

.cta__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px 64px;
}
.cta .eyebrow { margin-bottom: 22px; }
.cta__aside { max-width: 380px; font-size: 14px; color: var(--muted); }
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 26px;
}
.cta__place {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.cta__place strong { font-weight: 500; color: var(--text); }
.cta__place svg {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: var(--glow);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* ---------- Rodapé ---------- */

/* Só a linha de direitos: logo e menu já estão no topo. */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13px;
  color: var(--faint);
  text-align: center;
}

/* ---------- Assistente (chat) ---------- */

.chat {
  --chat-gap: max(16px, env(safe-area-inset-right));
  position: fixed;
  right: var(--chat-gap);
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.chat > * { pointer-events: auto; }
/* Some com o menu do celular aberto. */
.nav-open .chat { display: none; }

.chat__launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid rgba(241, 199, 143, .35);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #23262c, #0b0c0f 70%);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .9), 0 0 0 6px rgba(241, 199, 143, .05), 0 0 26px -6px rgba(241, 199, 143, .45);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(.9);
  transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .3s;
}
.chat.is-visible .chat__launcher { opacity: 1; transform: none; }
.chat__launcher:hover { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .9), 0 0 0 6px rgba(241, 199, 143, .1), 0 0 32px -4px rgba(241, 199, 143, .6); }
/* Anel que pulsa de vez em quando para chamar atenção, sem exagero. */
.chat__launcher::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(241, 199, 143, .5);
  opacity: 0;
  animation: chat-ring 5s ease-out 2s infinite;
}
.chat.is-open .chat__launcher::after { animation: none; }
.chat__launcher-mark { width: 24px; height: 31px; margin-left: 2px; transition: opacity .25s, transform .3s var(--ease); }
.chat__launcher-x {
  position: absolute;
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0;
  transform: rotate(-45deg);
  transition: opacity .25s, transform .3s var(--ease);
}
.chat.is-open .chat__launcher-mark { opacity: 0; transform: scale(.6); }
.chat.is-open .chat__launcher-x { opacity: 1; transform: none; }

@keyframes chat-ring {
  0% { opacity: .8; transform: scale(1); }
  30%, 100% { opacity: 0; transform: scale(1.6); }
}

/* Balão de boas-vindas */
.chat__nudge {
  position: relative;
  max-width: 250px;
  margin: 0;
  padding: 12px 34px 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px 14px 4px 14px;
  background: rgba(20, 22, 26, .96);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .9);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
  animation: chat-pop .45s var(--ease) both;
}
.chat__nudge-close {
  position: absolute;
  top: 6px; right: 6px;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.chat__nudge-close svg,
.chat__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

@keyframes chat-pop {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* Janela */
.chat__panel {
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 120px));
  height: min(600px, calc(100svh - 120px));
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background:
    radial-gradient(90% 40% at 100% 0%, rgba(241, 199, 143, .08), transparent 70%),
    linear-gradient(180deg, #121519, #0b0d10);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .95);
  transform-origin: bottom right;
  animation: chat-pop .35s var(--ease) both;
}
.chat__panel[hidden] { display: none; }

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-bottom: 1px solid var(--line);
}
.chat__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px; height: 38px;
  border: 1px solid rgba(241, 199, 143, .3);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #23262c, #0b0c0f 70%);
}
.chat__avatar svg { width: 15px; height: 20px; margin-left: 1px; }
.chat__who { flex: 1; min-width: 0; }
.chat__who h2 { margin: 0; font-size: 14.5px; font-weight: 600; }
.chat__who p { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.chat__who i { width: 6px; height: 6px; border-radius: 50%; background: #7fd39b; box-shadow: 0 0 6px rgba(127, 211, 155, .7); }
.chat__close {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.chat__close:hover { background: rgba(255, 255, 255, .06); color: var(--text); }

.chat__log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.chat__msg {
  max-width: 86%;
  margin: 0;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: chat-pop .3s var(--ease) both;
}
.chat__msg--bot { align-self: flex-start; background: rgba(255, 255, 255, .06); border-bottom-left-radius: 4px; }
.chat__msg--me {
  align-self: flex-end;
  background: linear-gradient(135deg, #f3e6d2, #e6cfab);
  color: #121315;
  border-bottom-right-radius: 4px;
}
/* "Digitando": o P se constrói e se desfaz em loop. */
.chat__msg--typing { display: grid; place-items: center; padding: 9px 16px; }
.chat__typing-p { width: 20px; height: 26px; overflow: visible; }
.chat__typing-p path {
  fill: #ece4d6;
  fill-opacity: 0;
  stroke: var(--glow);
  stroke-width: 1.4px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 3px rgba(241, 199, 143, .55));
  animation: p-build 2.4s cubic-bezier(.45, 0, .25, 1) infinite;
}
@keyframes p-build {
  0%   { stroke-dashoffset: 1;  fill-opacity: 0; }
  42%  { stroke-dashoffset: 0;  fill-opacity: 0; }
  58%  { stroke-dashoffset: 0;  fill-opacity: 1; }
  74%  { stroke-dashoffset: 0;  fill-opacity: 1; }
  100% { stroke-dashoffset: -1; fill-opacity: 0; }
}

.chat__wa {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 4px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--light);
  color: #0b0c0e;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 24px -12px rgba(241, 199, 143, .6);
  animation: chat-pop .3s var(--ease) both;
  transition: background-color .2s;
}
.chat__wa:hover { background: #fff; }
.chat__wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }

.chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}
.chat__chips[hidden] { display: none; }
.chat__chips button {
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  font: 500 12.5px var(--font);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.chat__chips button:hover { border-color: rgba(241, 199, 143, .5); background: rgba(241, 199, 143, .06); }

.chat__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 12px 8px;
  border-top: 1px solid var(--line);
}
.chat__form textarea {
  flex: 1;
  max-height: 120px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: 14px/1.4 var(--font);
  resize: none;
  overflow-y: hidden;
  outline: none;
  transition: border-color .2s;
}
.chat__form textarea:focus { border-color: rgba(241, 199, 143, .5); }
.chat__form textarea::placeholder { color: var(--faint); }
.chat__form button {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--light);
  color: #0b0c0e;
  cursor: pointer;
  transition: opacity .2s, background-color .2s;
}
.chat__form button:hover { background: #fff; }
.chat__form button:disabled { opacity: .4; cursor: default; }
.chat__form button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat__form.is-locked textarea { opacity: .55; cursor: not-allowed; }
.chat__note { margin: 0; padding: 0 16px 12px; font-size: 11px; color: var(--faint); text-align: center; }

/* No celular a janela ocupa a tela inteira. */
@media (max-width: 560px) {
  .chat__panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .chat.is-open .chat__launcher { display: none; }
  .chat-open body { overflow: hidden; }
  /* 16px evita o zoom automático do iPhone ao tocar no campo. */
  .chat__form textarea { font-size: 16px; }
}

/* ---------- Revelação ao rolar ---------- */

/* A saída (rolando para cima) é um pouco mais rápida que a entrada. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform 1s var(--ease);
}

/* ---------- Responsivo ---------- */

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr 1fr; }
  .about__visual { border-inline-end: 0; }
  /* Etapas viram uma linha do tempo horizontal abaixo do gráfico. */
  .steps {
    grid-column: 1 / -1;
    padding: 48px var(--gutter);
    border-top: 1px solid var(--line);
  }
  .steps__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 24px 0 0;
  }
  .steps__list::before {
    left: 3px; right: 0; top: 3px; bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,.18), rgba(241,199,143,.55));
  }
  .step::before { left: 0; top: -24px; }
  .header__cta { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .menu-toggle { display: block; z-index: 2; }
  .header__inner { gap: 12px; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 100px var(--gutter) 40px;
    background: rgba(7, 8, 10, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 28px;
    font-weight: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a:not(.btn) { color: var(--text); padding: 8px 0; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 28px; font-size: 14px; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open body { overflow: hidden; }
  .brand { position: relative; z-index: 2; }

  .statement { height: 190vh; }
  .journey__marks { stroke-dasharray: 8 14; }

  .section__head { flex-direction: column; align-items: flex-start; }
  .section__aside { max-width: 520px; }

  .about { grid-template-columns: 1fr; }
  .about__copy { padding: 72px var(--gutter) 56px; }
  .about__visual { min-height: 300px; border-inline: 0; border-top: 1px solid var(--line); }

  .cases { grid-template-columns: 1fr; }

  .cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  /* No celular a lista vira uma grade de 3 colunas, sem os pontos. */
  .strip__list { display: grid; grid-template-columns: repeat(3, max-content); gap: 10px 32px; font-size: 15px; }
  .strip__list li + li::before { display: none; }
  /* No celular as etapas voltam a ser uma linha vertical. */
  .steps__list { display: flex; flex-direction: column; padding: 0 0 0 26px; }
  .steps__list::before {
    left: 3px; right: auto; top: 10px; bottom: 10px;
    width: 1px; height: auto;
    background: linear-gradient(to bottom, rgba(255,255,255,.18), rgba(241,199,143,.55));
  }
  .step::before { left: -26px; top: 6px; }
  .statement__actions .btn { width: 100%; justify-content: center; }
  .cta__buttons .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal,
  .js .statement__lead,
  .js .statement__actions { opacity: 1; transform: none; }
  .statement { height: auto; }
  .statement__sticky { position: relative; }
  .chat__typing-p path { stroke-dashoffset: 0; fill-opacity: 1; }
  .route__path--main { stroke-dashoffset: 0; }
}
