/* ========================================================
   Sprint Inteligente — site
   Direção: "o produto se apresenta". Título curto, prints reais
   do app e um infográfico de como a call e os commits viram tasks.
   Cores e tipo vêm do app (IBM Plex Sans, neutros, azul).
   ======================================================== */

/* IBM Plex Sans servida pelo próprio site (@fontsource/ibm-plex-sans, só o subconjunto latino; licença em
   assets/fonts/OFL.txt): nenhum pedido sai para terceiros, e o CSP fica só com o próprio domínio. */
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

:root {
  /* Página */
  --ground: #ffffff;
  --stage: #e9edf2;
  --ink: #131416;
  --muted: #565a62;
  --paper: #ffffff;
  --accent: #1f63d6;
  --accent-strong: #1a55ba;
  --field: #1a52b4;

  /* Fundo dos prints do app (tema escuro do app) */
  --ui-frame: #0e0f11;

  /* Tipo: cinco tamanhos */
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --step-display: clamp(40px, 5.2vw, 80px);
  --step-head: clamp(28px, 3.3vw, 52px);
  --step-lead: 20px;
  --step-body: 17px;
  --step-small: 15px;

  /* Espaço */
  --margin: clamp(16px, 2.6vw, 40px);
  --pad: max(var(--margin), calc((100% - 1360px) / 2));
  --gutter: 24px;
  --section: clamp(112px, 12vw, 200px);
  --radius: 4px;

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
fieldset { border: 0; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--margin); top: -60px; z-index: 30;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Grade de 12 colunas, a mesma em toda a página */
.hero__head, .how__head, .feature__head, .local__head, .price__head, .faq, .get, .doc {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
}

/* ===== Botões e links ===== */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--paper);
  font-size: var(--step-body); font-weight: 500; text-decoration: none;
  border-radius: var(--radius);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 40px; padding: 0 16px; font-size: var(--step-small); }
.button__icon {
  flex: none; width: 18px; height: 18px; margin-right: 10px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.button--small .button__icon { width: 16px; height: 16px; margin-right: 8px; }
.textlink {
  font-weight: 500; text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 2px; text-decoration-color: rgba(19, 20, 22, 0.25);
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .textlink:hover { text-decoration-color: currentColor; }
}

/* ===== Barra ===== */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  height: 64px; padding: 0 var(--pad);
  background: var(--ground);
}
.bar__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; margin-right: auto; }
.bar__brand img { width: 28px; height: 28px; border-radius: 6px; }
.bar__nav { display: flex; gap: 28px; }
.bar__nav a {
  font-size: var(--step-small); text-decoration: underline; text-underline-offset: 6px;
  text-decoration-thickness: 2px; text-decoration-color: transparent;
  transition: text-decoration-color var(--t-hover) ease;
}
.bar__nav a[aria-current="true"], .bar__nav a[aria-current="page"] { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .bar__nav a:hover { text-decoration-color: currentColor; }
}
/* Os oito links só cabem ao lado do botão a partir de ~960px */
@media (max-width: 960px) {
  .bar__nav { display: none; }
}
/* A barra fica numa linha só: onde não cabe "Baixar para Windows" ao lado dos links, o botão diz só "Baixar"
   (o hero logo abaixo diz o sistema) */
.bar__brand, .bar__nav a, .bar .button { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 961px), (max-width: 480px) {
  .bar .dl__so { display: none; }
}
@media (max-width: 1000px) {
  .bar { gap: 24px; }
  .bar__nav { gap: 20px; }
}

/* ===== Palco: o tom em que o app se apoia ===== */
.stage { background: var(--stage); }

/* Os prints do app (data-ui): cantos do app, sem moldura extra */
.shot { width: 100%; border-radius: 10px 10px 0 0; background: var(--ui-frame); }
.caption { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }

/* No celular o app inteiro fica ilegível: mostra só a parte que importa de cada print */
@media (max-width: 600px) {
  .shot { aspect-ratio: 0.95; object-fit: cover; object-position: var(--focus, 50%) top; }
  .stage--strip .shot { aspect-ratio: 1.5; object-position: left center; }
}

/* ===== Hero ===== */
.hero { padding: clamp(40px, 6vw, 96px) var(--pad) 0; }
.hero__head { align-items: end; row-gap: 24px; }
.hero__title {
  grid-column: 1 / span 8;
  font-size: var(--step-display); line-height: 1; letter-spacing: -0.035em; font-weight: 600;
}
.hero__lede { grid-column: 9 / -1; padding-bottom: 4px; }
/* O download do sistema de quem visita: o botão, a linha com arquitetura, tamanho e versão, e os outros instaladores */
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
.hero__meta { font-size: var(--step-small); color: var(--muted); }
.hero__alt { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--step-small); }
.hero__alt .textlink { font-weight: 400; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.stage--hero { margin-top: clamp(40px, 4.4vw, 64px); padding: clamp(16px, 4.4vw, 72px) clamp(16px, 4.4vw, 72px) 0; }
.stage--hero .shot { max-width: 1200px; margin: 0 auto; }

@media (max-width: 1080px) {
  .hero__title, .hero__lede { grid-column: 1 / -1; }
  .hero__lede { display: grid; grid-template-columns: 7fr 5fr; gap: 16px var(--gutter); align-items: end; }
  .hero__actions { margin-top: 0; align-items: flex-end; text-align: right; }
  .hero__alt { justify-content: flex-end; }
}
@media (max-width: 760px) {
  .hero__lede { display: block; }
  .hero__actions { margin-top: 24px; align-items: flex-start; text-align: left; }
  .hero__alt { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .hero__title { font-size: 8.4vw; }
  .hero__actions .button { align-self: stretch; }
}

/* ===== Cabeçalhos de seção: título à esquerda, texto à direita ===== */
.how, .feature { padding: var(--section) var(--pad) 0; }
.how__head, .feature__head { align-items: end; row-gap: 24px; }
.how__title, .feature__title {
  grid-column: 1 / span 7;
  font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600;
}
.how__lede, .feature__lede { grid-column: 8 / -1; }
@media (max-width: 900px) {
  .how__title, .how__lede, .feature__title, .feature__lede { grid-column: 1 / -1; }
}

/* ===== Como funciona: o infográfico =====
   Três trilhas (call, commits, daily) que se juntam na revisão e terminam no board.
   Os conectores são desenhados pelo script num SVG atrás das caixas (--mode diz
   ao script como as trilhas correm); sem script, ficam as setas simples do CSS. */
.chart {
  --mode: row;
  --gap: 40px;        /* espaço da seta entre dois passos */
  --row: 20px;        /* espaço entre as trilhas */
  --wire: #b7cbf2;    /* o fio parado */
  --line: var(--accent);
  position: relative;
  margin-top: clamp(56px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-rows: repeat(3, 1fr);
  column-gap: 72px; row-gap: var(--row);
}
.chart ol { list-style: none; }
.chart__lane, .chart__end { display: grid; gap: var(--gap); }
.chart__lane { grid-column: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart__end { grid-column: 2; grid-row: 1 / -1; align-self: center; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.node {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: var(--radius);
  background: var(--stage);
}
.node p { font-size: var(--step-small); color: var(--muted); line-height: 1.45; }
.node__title { font-size: var(--step-body); font-weight: 600; line-height: 1.3; }
.node__icon, .node__logo { width: 28px; height: 28px; margin-bottom: 6px; }
.node__icon { fill: none; stroke: #8fb6ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.node__logo { fill: currentColor; }
.node--start { background: var(--ink); color: var(--paper); }
.node--start p { color: rgba(255, 255, 255, 0.72); }
.node--out { background: var(--field); color: var(--paper); }
.node--out p { color: rgba(255, 255, 255, 0.8); }

/* os fios */
.chart__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wire path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wire__base { stroke: var(--line); stroke-width: 2; }
.wire__flow { display: none; stroke: var(--line); stroke-width: 4; }
.wire__head { stroke: var(--line); stroke-width: 2; }

/* sem script: uma seta simples entre dois passos da mesma trilha */
.chart:not(.is-wired) .node + .node::before {
  content: ""; position: absolute; top: 50%; left: calc(-1 * var(--gap)); width: var(--gap); height: 14px; margin-top: -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14'%3E%3Cpath d='M6 7h26M27 2l6 5-6 5' fill='none' stroke='%231f63d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 40px 14px no-repeat;
}

/* tablet: as trilhas lado a lado, de cima para baixo, e a junção embaixo */
@media (max-width: 1100px) {
  .chart {
    --mode: col;
    --gap: 36px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    column-gap: 16px; row-gap: 0;
  }
  /* as trilhas dividem as mesmas linhas: cada passo fica na altura dos seus pares */
  .chart__lane { grid-column: auto; grid-row: 1 / span 3; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; row-gap: var(--gap); }
  .chart__end { grid-column: 1 / -1; grid-row: 4; align-self: auto; margin-top: 72px; grid-template-columns: minmax(0, 1fr); }
  .chart:not(.is-wired) .node + .node::before {
    top: calc(-1 * var(--gap)); left: 50%; width: 14px; height: var(--gap); margin: 0 0 0 -7px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 40'%3E%3Cpath d='M7 6v26M2 27l5 6 5-6' fill='none' stroke='%231f63d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 14px 40px;
  }
}

/* celular: uma trilha embaixo da outra, ligadas por um trilho à esquerda */
@media (max-width: 700px) {
  .chart {
    --mode: bus;
    --gap: 32px;
    display: flex; flex-direction: column; gap: 44px;
    padding-left: 36px;
  }
  .chart__lane { grid-template-rows: none; }
  .chart__end { margin-top: 0; }
  .node { padding: 16px; }
}

/* ===== Reuniões e Commits: o print e três fatos ===== */
.stage--shot { margin-top: clamp(40px, 4.4vw, 64px); padding: clamp(16px, 4.4vw, 72px) clamp(16px, 4.4vw, 72px) 0; }
.stage--shot .shot { max-width: 1200px; margin: 0 auto; }
.stage--strip { margin-top: 8px; padding: clamp(16px, 4.4vw, 72px) clamp(16px, 4.4vw, 72px) clamp(16px, 3vw, 40px); }
.stage--strip .shot, .stage--strip .caption { max-width: 1200px; margin-left: auto; margin-right: auto; }
.stage--strip .shot { border-radius: 10px; }
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gutter);
  margin-top: 40px;
}
.facts__title { font-size: var(--step-lead); font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.facts p { color: var(--muted); max-width: 40ch; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; margin-top: 32px; }
}

/* ===== Onde cada coisa fica: a tabela ===== */
.local { padding: var(--section) var(--pad) 0; }
.local__head { align-items: end; row-gap: 24px; }
.local__title {
  grid-column: 1 / span 7;
  font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600;
}
.local__lede { grid-column: 8 / -1; max-width: 46ch; }
.compare { margin-top: 64px; }
.compare table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 20px 24px; }
.compare thead th { font-weight: 600; padding-top: 28px; padding-bottom: 16px; }
.compare tbody th { width: 40%; font-size: var(--step-lead); font-weight: 500; line-height: 1.35; }
.compare tbody tr:nth-child(odd) { background: var(--stage); }
.compare .compare__mine { background: var(--field); color: var(--paper); }
.compare tbody tr:nth-child(odd) .compare__mine { background: #1c58bf; }

@media (max-width: 900px) {
  .local__title, .local__lede { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .compare { margin-top: 40px; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody tr { background: var(--stage); margin-bottom: 8px; }
  .compare tbody tr:nth-child(odd) { background: var(--stage); }
  .compare tbody th { width: auto; padding: 16px 16px 8px; font-size: var(--step-body); font-weight: 600; }
  .compare td { padding: 6px 16px; font-size: var(--step-small); }
  .compare td:last-child { padding-bottom: 16px; }
  .compare .compare__mine, .compare tbody tr:nth-child(odd) .compare__mine { background: transparent; color: var(--ink); }
  .compare td.compare__mine::before { content: "No seu computador: "; color: var(--muted); }
  .compare td:not(.compare__mine)::before { content: "No servidor: "; color: var(--muted); }
}

/* ===== Preços: três planos lado a lado, o Pro no azul da tabela ===== */
.price { padding: var(--section) var(--pad) 0; }
.price__head { align-items: end; row-gap: 24px; }
.price__title {
  grid-column: 1 / span 7;
  font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600;
}
.price__lede { grid-column: 8 / -1; max-width: 46ch; }
.plans {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  margin-top: 64px;
}
@media (max-width: 1200px) and (min-width: 901px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.plan {
  display: flex; flex-direction: column;
  padding: 32px 28px 28px; border-radius: var(--radius);
  background: var(--stage);
}
.plan__name { font-size: var(--step-lead); font-weight: 600; line-height: 1.3; }
.plan__for { margin-top: 6px; font-size: var(--step-small); color: var(--muted); line-height: 1.45; }
.plan__price {
  margin-top: 28px;
  font-size: var(--step-head); font-weight: 600; line-height: 1; letter-spacing: -0.03em;
}
.plan__per { margin-left: 4px; font-size: var(--step-body); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan__items { margin: 28px 0 32px; flex: 1; }
.plan__items li { position: relative; padding-left: 26px; }
.plan__items li + li { margin-top: 10px; }
.plan__items li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px;
  border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.plan__cta { align-self: flex-start; }
.plan--pro { background: var(--field); color: var(--paper); }
.plan--pro .plan__for, .plan--pro .plan__per { color: rgba(255, 255, 255, 0.8); }
.plan--pro .plan__items li::before { border-color: #8fb6ff; }
.plan--pro .plan__cta { background: var(--paper); color: var(--field); }
@media (hover: hover) and (pointer: fine) {
  .plan--pro .plan__cta:hover { background: #e3ecfb; }
}
.price__notes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px var(--gutter);
  margin-top: 32px; font-size: var(--step-small); color: var(--muted);
}
.price__notes strong { color: var(--ink); font-weight: 500; }
.price__notes a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 900px) {
  .price__title, .price__lede { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; margin-top: 40px; }
  .plan { padding: 24px 20px 20px; }
  .price__notes { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .plan__cta { align-self: stretch; }
}

/* ===== Dúvidas ===== */
.faq { padding: var(--section) var(--pad) 0; align-items: start; }
.faq__title {
  grid-column: 1 / span 4; position: sticky; top: 96px;
  font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600;
}
.faq__list { grid-column: 5 / -1; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--stage); border-radius: var(--radius); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  min-height: 72px; display: flex; align-items: center;
  padding: 20px 64px 20px 24px; font-size: var(--step-lead); font-weight: 500; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px;
  background: currentColor; transition: transform 240ms var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] { background: var(--field); color: var(--paper); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; max-width: 52ch; }
@media (hover: hover) and (pointer: fine) {
  .faq details:not([open]):hover { background: #dfe4eb; }
}
@media (max-width: 900px) {
  .faq { display: block; }
  .faq__title { position: static; margin-bottom: 32px; }
  .faq summary { min-height: 64px; font-size: 18px; padding: 18px 56px 18px 20px; }
  .faq details p { padding: 0 20px 20px; font-size: 16px; }
}

/* ===== Baixar ===== */
.get { padding: var(--section) var(--pad) 0; align-items: start; }
.get__title {
  grid-column: 1 / span 4;
  font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600;
}
.get__body { grid-column: 5 / -1; }
.get__lede { font-size: var(--step-lead); max-width: 46ch; }
.get__list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.get__list .button { min-width: 140px; }
.get__notes { margin-top: 24px; font-size: var(--step-small); color: var(--muted); }
.get__notes li + li { margin-top: 4px; }
.get__notes strong { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) {
  .get { display: block; }
  .get__title { margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .get__list li { flex: 1 1 100%; }
  .get__list .button { width: 100%; }
}

/* ===== Documentos (termos, privacidade, cancelamento): o título à esquerda, como nas Dúvidas ===== */
.doc { padding: clamp(40px, 6vw, 96px) var(--pad) 0; align-items: start; }
.doc__aside { grid-column: 1 / span 4; position: sticky; top: 96px; }
.doc__title { font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.doc__date { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
.doc__toc { margin-top: 32px; font-size: var(--step-small); list-style: none; }
.doc__toc li + li { margin-top: 6px; }
.doc__toc a { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .doc__toc a:hover { color: var(--ink); text-decoration-color: currentColor; }
}
.doc__body { grid-column: 5 / -1; max-width: 72ch; }
.doc__intro { font-size: var(--step-lead); line-height: 1.5; }
.doc__body section { margin-top: 48px; }
.doc__body h2 { font-size: var(--step-lead); font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.doc__body p + p, .doc__body p + ul, .doc__body ul + p { margin-top: 12px; }
.doc__body ul { list-style: disc; padding-left: 1.3em; }
.doc__body li + li { margin-top: 6px; }
.doc__body li::marker { color: var(--accent); }
.doc__body a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc__note { margin-top: 48px; padding: 20px 24px; border-radius: var(--radius); background: var(--stage); font-size: var(--step-small); color: var(--muted); }
@media (max-width: 900px) {
  .doc { display: block; }
  .doc__aside { position: static; }
  .doc__toc { display: none; }
  .doc__body { margin-top: 32px; }
  .doc__intro { font-size: var(--step-body); }
}

/* ===== Rodapé: a linha do site e, embaixo, a empresa e os documentos ===== */
.foot {
  margin-top: clamp(120px, 14vw, 200px); padding: 0 var(--pad) 32px;
  font-size: var(--step-small);
}
.foot__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px; }
.foot__what, .foot__meta, .foot__company { color: var(--muted); }
.foot__meta { text-align: right; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a, .foot__company a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.foot__company a { color: var(--ink); overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  .foot__links a:hover, .foot__company a:hover { text-decoration-color: currentColor; }
}
.foot__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 40px;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid #dde2e9;
}
.foot__company { display: flex; flex-direction: column; gap: 4px; font-style: normal; }
@media (max-width: 900px) {
  .foot { margin-top: 96px; padding-bottom: 24px; }
  .foot__row { display: flex; flex-direction: column; gap: 8px; }
  .foot__meta { text-align: left; }
  .foot__legal { flex-direction: column; gap: 16px; }
}

/* ===== Movimento ===== */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-rise] {
    opacity: 0; transform: translateY(24px);
    transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
    transition-delay: var(--delay, 0ms);
  }
  html.js [data-rise].is-in { opacity: 1; transform: none; }

  /* infográfico: as caixas entram na ordem do caminho, os fios se desenham e os pacotes correm */
  html.js .chart .node { opacity: 0; transform: translateY(16px); }
  html.js .chart.is-live .node {
    opacity: 1; transform: none;
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 140ms);
  }
  .wire__base { stroke: var(--wire); stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
  .chart.is-live .wire__base { stroke-dashoffset: 0; transition: stroke-dashoffset 1600ms var(--ease-out) 250ms; }
  .wire__flow {
    display: block; opacity: 0; stroke-dasharray: 10 110;
    animation: wire-flow 2s linear infinite; animation-delay: var(--lag, 0s);
    transition: opacity 500ms ease 1700ms;
  }
  .wire__head { opacity: 0; transition: opacity 400ms ease 1500ms; }
  .chart.is-live .wire__flow, .chart.is-live .wire__head { opacity: 1; }
  @keyframes wire-flow { to { stroke-dashoffset: -120; } }

  /* passar o mouse numa trilha apaga as outras */
  .chart__lane, .wire { transition: opacity 240ms ease; }
  @media (hover: hover) and (pointer: fine) {
    .chart:has(.chart__lane:hover) .chart__lane:not(:hover) { opacity: 0.35; }
    .chart:has(.chart__lane--call:hover) .wire:not(.wire--call),
    .chart:has(.chart__lane--code:hover) .wire:not(.wire--code),
    .chart:has(.chart__lane--daily:hover) .wire:not(.wire--daily) { opacity: 0.2; }
  }

  .faq details[open] p { animation: draft-in 320ms var(--ease-out) both; }

  @keyframes draft-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
