/* =========================================================
   Somma — folha de estilo
   Paleta, tipografia e grid seguem marca/SOMMA-MARCA.md
   ========================================================= */

:root {
  /* Cores (únicas permitidas) */
  --azul: #0033EE;
  --profundo: #001C8A;
  --tinta: #0B1030;
  --ceu: #9DB0FF;
  --nevoa: #E6EAF7;
  --papel: #F5F7FC;
  --branco: #FFFFFF;

  /* Derivadas da tinta para texto secundário */
  --tinta-70: rgba(11, 16, 48, 0.72);
  --tinta-50: rgba(11, 16, 48, 0.64);
  --branco-70: rgba(255, 255, 255, 0.74);
  --branco-12: rgba(255, 255, 255, 0.12);

  /* Tipografia */
  --f-sans: "Geist", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, "Courier New", monospace;

  /* Layout */
  --gutter: clamp(20px, 7vw, 104px);
  --max: 1360px;
  --radius: 14px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--azul); color: var(--branco); }

:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.on-azul :focus-visible { outline-color: var(--branco); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--tinta);
  color: var(--branco);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Tipografia ---------- */

.display,
h1, h2, h3 {
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.035em;
}

.h-section {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.h-card {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* Destaque: Instrument Serif Itálico — UMA palavra por peça */
em.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.08em;
  line-height: 0.9;
}
.on-papel em.serif,
.text-azul { color: var(--azul); }

.label {
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.comment {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--azul);
}
.on-dark .comment { color: var(--ceu); }
/* Céu sobre o azul só em elementos grandes: rótulos pequenos usam branco */
.on-azul .comment { color: rgba(255, 255, 255, 0.86); }

.lead {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  max-width: 40ch;
}

.muted { color: var(--tinta-70); }
.on-dark .muted,
.on-azul .muted { color: var(--branco-70); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(88px, 12vw, 168px); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }

.on-papel { background: var(--papel); color: var(--tinta); }
.on-branco { background: var(--branco); color: var(--tinta); }
.on-azul { background: var(--azul); color: var(--branco); }
.on-dark { background: var(--tinta); color: var(--branco); }

/* Grid de 4 colunas (as quatro pétalas) */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: clamp(48px, 6vw, 88px);
  align-items: end;
}
.section-head__title { grid-column: 1 / span 3; }
.section-head__title .comment { display: block; margin-bottom: 20px; }
.section-head__aside { grid-column: 4; }
.section-head__aside p { margin: 0 0 16px; }

/* Ponto de encontro: círculo de 8px */
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--azul);
  flex: none;
}
.on-dark .dot,
.on-azul .dot { background: var(--ceu); }

.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--azul);
}
.on-dark .dot-list li::before { background: var(--ceu); }

/* Recorte: símbolo ampliado e cortado pela borda */
.recorte {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ---------- Botões ---------- */

.btn {
  --btn-bg: var(--azul);
  --btn-fg: var(--branco);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { --btn-bg: var(--profundo); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--light { --btn-bg: var(--branco); --btn-fg: var(--azul); }
.btn--light:hover { --btn-bg: var(--nevoa); --btn-fg: var(--profundo); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
}
.btn--ghost:hover { --btn-bg: var(--branco-12); }
.on-papel .btn--ghost:hover,
.on-branco .btn--ghost:hover { --btn-bg: var(--nevoa); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow .arrow { transition: transform .3s var(--ease); }

/* ---------- Tags ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag {
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--nevoa);
  background: var(--branco);
  color: var(--tinta);
  line-height: 1.2;
}
.on-dark .tag {
  background: transparent;
  border-color: rgba(157, 176, 255, 0.35);
  color: var(--ceu);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  border-bottom: 1px solid transparent;
  background: rgba(245, 247, 252, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  color: var(--tinta);
}
.site-header.is-scrolled { border-bottom-color: var(--nevoa); }

/* Variante sobre o hero azul (home) */
.site-header[data-tone="azul"]:not(.is-scrolled):not(.menu-open) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--branco);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; position: relative; padding-block: 8px; }
.brand img { height: 26px; width: auto; }
.brand .logo-branco { position: absolute; inset: 8px 0 auto 0; opacity: 0; transition: opacity .3s; }
.site-header[data-tone="azul"]:not(.is-scrolled):not(.menu-open) .logo-azul { opacity: 0; }
.site-header[data-tone="azul"]:not(.is-scrolled):not(.menu-open) .logo-branco { opacity: 1; }
.brand .logo-azul { transition: opacity .3s; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  padding-block: 6px;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav .btn { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.site-header[data-tone="azul"]:not(.is-scrolled):not(.menu-open) .nav .btn { --btn-bg: var(--branco); --btn-fg: var(--azul); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; position: relative;
  width: 16px; height: 1.5px;
  background: currentColor;
  transform: translateY(-3px);
  transition: transform .3s var(--ease);
}
.menu-toggle span::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-open .menu-toggle span { transform: rotate(45deg); }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(-90deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 128px));
  padding-bottom: clamp(80px, 10vw, 144px);
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
}
.hero .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: end;
}
.hero__copy { grid-column: 1 / span 3; }
.hero__copy .comment { display: block; margin-bottom: 28px; }
.hero__copy .display { max-width: 13ch; }
.hero__copy .lead { margin: 32px 0 40px; color: var(--branco-70); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__recorte {
  width: clamp(520px, 62vw, 980px);
  right: calc(clamp(520px, 62vw, 980px) * -0.28);
  bottom: calc(clamp(520px, 62vw, 980px) * -0.34);
}

/* Cartão de código (bastidores) */
.code-card {
  background: var(--tinta);
  color: var(--branco);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.75;
  border: 1px solid rgba(157, 176, 255, 0.14);
  overflow-x: auto;
}
.code-card__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--branco-12);
  color: var(--branco-70);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.code-card__bar .dots { display: flex; gap: 6px; }
.code-card__bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--branco-12); }
.code-card__bar .dots i:first-child { background: var(--ceu); }
.code-card pre { margin: 0; white-space: pre; }
.code-card .c { color: rgba(157, 176, 255, 0.78); }
.code-card .k { color: var(--ceu); }
.code-card .s { color: var(--branco); }
.code-card .p { color: var(--branco-70); }

.hero__code {
  grid-column: 4;
  align-self: end;
  transform: translateY(8px);
}

/* ---------- Números ---------- */

.numbers {
  border-top: 1px solid var(--nevoa);
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--nevoa);
}
.stat {
  padding: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px);
  border-right: 1px solid var(--nevoa);
  border-bottom: 1px solid var(--nevoa);
}
.stat__num {
  display: block;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--azul);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
  white-space: nowrap;
}
.stat__txt { font-size: 15px; line-height: 1.45; color: var(--tinta-70); margin: 0; max-width: 22ch; }
.numbers__note { margin-top: 20px; }

/* ---------- Serviços ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--nevoa);
  border: 1px solid var(--nevoa);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--branco);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: background-color .3s var(--ease);
}
.service:hover { background: var(--papel); }
.service__id { color: var(--azul); }
.service h3 { margin-top: auto; }
.service p { margin: 0; color: var(--tinta-70); font-size: 16px; }

/* ---------- Cases ---------- */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(157, 176, 255, 0.18);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  color: var(--branco);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .4s var(--ease);
}
.case-card:hover {
  border-color: rgba(157, 176, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}
.case-card__top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  color: var(--ceu);
}
.case-card__num {
  font-size: clamp(56px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 500;
  color: var(--branco);
}
.case-card__num small {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ceu);
  margin-top: 12px;
  font-weight: 400;
}
.case-card__num--text { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.case-card h3 { color: var(--branco); }
.case-card p { margin: 8px 0 0; color: var(--branco-70); font-size: 16px; max-width: 46ch; }
.case-card__foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.case-card__go {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(157, 176, 255, 0.4);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--branco);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  flex: none;
}
.case-card:hover .case-card__go { background: var(--azul); border-color: var(--azul); transform: rotate(-45deg); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.status .dot { width: 6px; height: 6px; }
.status--andamento .dot { background: transparent; border: 1px solid currentColor; }

/* Variante clara do card (página de listagem) */
.on-papel .case-card {
  background: var(--branco);
  border-color: var(--nevoa);
  color: var(--tinta);
}
.on-papel .case-card:hover { border-color: var(--azul); background: var(--branco); }
.on-papel .case-card__top { color: var(--tinta-70); }
.on-papel .case-card__num { color: var(--azul); }
.on-papel .case-card__num small { color: var(--tinta-70); }
.on-papel .case-card h3 { color: var(--tinta); }
.on-papel .case-card p { color: var(--tinta-70); }
.on-papel .case-card__go { border-color: var(--nevoa); color: var(--azul); }
.on-papel .case-card:hover .case-card__go { color: var(--branco); }
.on-papel .status .dot { background: var(--azul); }
.on-papel .status--andamento .dot { background: transparent; border-color: var(--azul); }

.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.filter {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--nevoa);
  background: var(--branco);
  color: var(--tinta);
  min-height: 40px;
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--azul); color: var(--azul); }
.filter[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--branco); }
.case-card[hidden] { display: none; }
.empty-state { color: var(--tinta-70); padding: 24px 0; }

/* ---------- Fluxogramas dos cases ---------- */

.case-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 2.6vw, 36px);
}
.case-card__body h3 { margin: 0; }

.flow {
  --ln: var(--tinta);
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(210px, 20vw, 260px);
  padding: 24px;
  font-family: var(--f-sans);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
}
.case-card .flow { min-width: 0; border-bottom: 1px solid rgba(157, 176, 255, 0.18); }
.on-papel .case-card .flow { border-bottom-color: var(--nevoa); }
.flow--nevoa { background: var(--nevoa); color: var(--tinta); --ln: var(--azul); }
.flow--azul { background: var(--azul); color: var(--branco); --ln: var(--branco); }
.flow--profundo { background: var(--profundo); color: var(--branco); --ln: var(--ceu); }
.flow--ceu { background: var(--ceu); color: var(--tinta); --ln: var(--profundo); }

/* Grade sutil de fundo (as 4 colunas) */
.flow::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, currentColor 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.07;
}

.flow-inner { position: relative; display: flex; align-items: center; justify-content: center; }

.flow-box {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.flow-mono {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Animação de entrada: caixas em sequência e linhas que se desenham */
.js-anim .reveal .fx {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 250ms);
}
.js-anim .reveal .ln {
  transition: transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 250ms);
}
.js-anim .reveal .ln--x { transform: scaleX(0); transform-origin: left center; }
.js-anim .reveal .ln--y { transform: scaleY(0); transform-origin: center top; }
.js-anim .reveal.is-visible .fx { opacity: 1; transform: none; }
.js-anim .reveal.is-visible .ln { transform: none; }

.ln { position: absolute; background: var(--ln); }

/* 1 · Múltiplus: janela do sistema + portal do cliente */
.flow-app {
  position: relative;
  width: 270px;
  background: var(--branco);
  border: 1px solid var(--ceu);
  border-radius: 12px;
  padding: 14px 18px 20px;
}
.flow-app__title { display: flex; justify-content: space-between; align-items: center; color: var(--azul); font-size: 16px; margin-bottom: 6px; }
.flow-app__row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--nevoa);
  font-size: 12.5px; font-weight: 400;
}
.flow-app__row .dot { width: 7px; height: 7px; }
.flow-app__row i { flex: 1; height: 4px; border-radius: 4px; background: var(--nevoa); margin-left: 12px; max-width: 90px; }
.flow-app__row i::after { content: ""; display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; background: var(--ceu); }
.flow-app__lock { border: 1px solid var(--nevoa); color: var(--tinta-70); padding: 4px 8px; border-radius: 999px; font-size: 10px; }
.flow-app__portal {
  position: absolute; right: -22px; bottom: -18px;
  background: var(--azul); color: var(--branco); border-color: var(--azul);
}
.flow-app__portal svg { width: 14px; height: 14px; }

/* 2 · Biro: arquivos → importação → catálogo */
.flow-files { display: grid; gap: 10px; }
.flow-file {
  width: 58px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px 14px 8px 8px;
  padding: 7px 8px;
  display: flex; align-items: flex-end;
}
.flow-arrow { position: relative; width: clamp(64px, 7vw, 96px); height: 40px; flex: none; }
.flow-arrow .ln--x { left: 8px; right: 8px; top: 50%; height: 1px; }
.flow-arrow b {
  position: absolute; right: 9px; top: 50%;
  width: 7px; height: 7px;
  border-top: 1px solid var(--ln); border-right: 1px solid var(--ln);
  transform: translateY(-50%) rotate(45deg);
}
.flow-arrow > span { position: absolute; left: 0; right: 0; top: -4px; text-align: center; font-size: 10px; }
.flow-result {
  background: var(--profundo);
  border-radius: 12px;
  padding: 18px 22px;
  text-align: center;
}
.flow-result strong { display: block; font-size: clamp(40px, 4vw, 54px); line-height: 1; letter-spacing: -0.045em; font-weight: 500; }
.flow-result span { display: block; margin-top: 8px; font-size: 12px; font-weight: 400; color: var(--branco-70); }

/* Ponto que percorre a seta */
.flow-arrow .pulse {
  position: absolute; top: 50%; left: 8px;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--ceu); opacity: 0;
}
.case-card:hover .flow-arrow .pulse,
.flow--lg .flow-arrow .pulse { animation: flow-pulse 1.6s var(--ease) infinite; }
@keyframes flow-pulse {
  0% { left: 8px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% - 16px); opacity: 0; }
}

/* 3 · Priscila: CRM → WhatsApp → automações */
.flow-crm {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid var(--ceu);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 14px; font-weight: 400;
  flex: none;
}
.flow-fork { position: relative; width: 84px; height: 40px; flex: none; }
.flow-fork .ln--x { left: 0; right: 0; top: 50%; height: 1px; }
.flow-fork > span { position: absolute; left: 0; right: 8px; top: -2px; text-align: center; color: var(--ceu); font-size: 10px; }
.flow-branches { position: relative; display: grid; gap: 12px; padding-left: 22px; }
.flow-branches > .ln--y { left: 0; width: 1px; top: 20px; bottom: 20px; }
.flow-branches .flow-box {
  height: 40px;
  background: var(--azul);
  border-color: rgba(157, 176, 255, 0.6);
}
.flow-branches .flow-box::before {
  content: ""; position: absolute; right: 100%; top: 50%;
  width: 22px; height: 1px; background: var(--ln);
}

/* 4 · Empório: loja → integrações */
.flow-tree { display: grid; justify-items: center; }
.flow-tree__root { background: var(--profundo); color: var(--branco); border-color: var(--profundo); padding: 12px 18px; }
.flow-tree__stem { position: relative; width: 1px; height: 20px; }
.flow-tree__stem .ln--y { inset: 0; }
.flow-tree__kids { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 20px; }
.flow-tree__kids > .ln--x { top: 0; left: calc((100% - 24px) / 6); right: calc((100% - 24px) / 6); height: 1px; }
.flow-tree__kids .flow-box {
  justify-content: center;
  flex-direction: column; gap: 3px;
  background: var(--papel);
  border-color: var(--profundo);
  min-width: 104px;
  padding: 10px 12px;
}
.flow-tree__kids .flow-box::before {
  content: ""; position: absolute; bottom: 100%; left: 50%;
  width: 1px; height: 20px; background: var(--ln);
}
.flow-tree__kids small { font-family: var(--f-mono); font-size: 9.5px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tinta-70); }

/* Versão grande, na página do case */
.flow--lg { height: clamp(300px, 34vw, 420px); border-radius: var(--radius); }
.flow--lg .flow-inner { transform: scale(1.3); }
.flow-caption { margin: 14px 0 0; font-size: 15px !important; color: var(--tinta-70); }

@media (max-width: 640px) {
  .flow { padding: 16px; }
  .case-card .flow .flow-inner { transform: scale(0.86); }
  .flow--lg .flow-inner { transform: scale(0.95); }
  .flow--lg { height: 280px; }
  .flow-tree__kids { gap: 8px; }
  .flow-tree__kids .flow-box { min-width: 0; padding: 9px 8px; }
  .flow-fork { width: 60px; }
  .flow-crm { width: 56px; height: 56px; font-size: 13px; }
  .flow-branches .flow-box { padding: 10px 12px; }
}

/* ---------- Processo ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--nevoa);
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.step__n { color: var(--azul); }
.step h3 { font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; font-weight: 500; }
.step p { margin: 0; color: var(--tinta-70); font-size: 16px; }
.step__bar {
  height: 2px; background: var(--nevoa); position: relative; overflow: hidden; margin-top: -25px; margin-bottom: 8px;
}
.step__bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--azul);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.is-visible .step__bar::after { transform: scaleX(1); }
.step:nth-child(2) .step__bar::after { transition-delay: .15s; }
.step:nth-child(3) .step__bar::after { transition-delay: .3s; }
.step:nth-child(4) .step__bar::after { transition-delay: .45s; }

.process-foot {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
}
.process-foot .code-card { grid-column: 1 / span 2; }
.process-foot__txt { grid-column: 3 / span 2; }
.process-foot__txt p { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; }

/* ---------- Fundador ---------- */

.founder__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.founder__title { grid-column: 1 / span 2; }
.founder__title .comment { display: block; margin-bottom: 20px; }
.founder__body { grid-column: 3 / span 2; }
.founder__body p { margin: 0 0 20px; font-size: 18px; color: var(--branco-70); }
.founder__body p strong { color: var(--branco); font-weight: 500; }
.founder__stats {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--branco-12);
  border: 1px solid var(--branco-12);
  border-radius: var(--radius);
  overflow: hidden;
}
.founder__stats div { background: var(--tinta); padding: 24px 20px; }
.founder__stats strong {
  display: block; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; margin-bottom: 10px;
  white-space: nowrap;
}
.founder__stats span { font-size: 14px; color: var(--branco-70); line-height: 1.4; display: block; }
.founder__note { margin-top: 16px; color: var(--ceu); }

/* ---------- CTA / Contato ---------- */

.cta { position: relative; overflow: hidden; }
.cta .container { position: relative; z-index: 1; }
.cta__recorte {
  width: clamp(420px, 50vw, 820px);
  right: calc(clamp(420px, 50vw, 820px) * -0.3);
  top: calc(clamp(420px, 50vw, 820px) * -0.22);
}
.cta__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.cta__copy { grid-column: 1 / span 2; }
.cta__copy .comment { display: block; margin-bottom: 20px; }
.cta__copy .lead { margin: 28px 0 0; color: var(--branco-70); }
.cta__copy .dot-list { margin-top: 32px; }
.cta__copy .dot-list li::before { background: var(--ceu); }

.form {
  grid-column: 3 / span 2;
  background: var(--branco);
  color: var(--tinta);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tinta-70); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--tinta);
  background: var(--papel);
  border: 1px solid var(--nevoa);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field ::placeholder { color: var(--tinta-70); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ceu); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azul); background: var(--branco);
  box-shadow: 0 0 0 3px rgba(0, 51, 238, 0.14);
}
.field [aria-invalid="true"] { border-color: var(--tinta); }
.field__error { font-size: 13px; color: var(--tinta); min-height: 0; }
.form .btn { justify-self: start; }
.form__note { font-size: 13px; color: var(--tinta-50); margin: 0; }
.form__status { font-size: 15px; margin: 0; }

/* ---------- Footer ---------- */

.site-footer { padding-block: clamp(64px, 8vw, 104px) 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.footer__brand { grid-column: 1 / span 2; }
.footer__brand img { height: 30px; width: auto; margin-bottom: 24px; }
.footer__brand p { margin: 0; max-width: 34ch; color: var(--branco-70); }
.footer__col h4 { margin: 0 0 16px; color: var(--ceu); font-weight: 400; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { text-decoration: none; color: var(--branco-70); transition: color .2s; }
.footer__col a:hover { color: var(--branco); }
.footer__bottom {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--branco-12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--branco-70);
}

/* ---------- Página de case ---------- */

.case-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 104px));
  padding-bottom: clamp(64px, 8vw, 112px);
}
.case-hero .container { position: relative; z-index: 1; }
.crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-family: var(--f-mono); font-size: 13px;
  color: var(--ceu);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.crumbs a { text-decoration: none; color: var(--branco-70); }
.crumbs a:hover { color: var(--branco); }

.case-hero__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: end;
}
.case-hero__copy { grid-column: 1 / span 3; }
.case-hero__copy .status { color: var(--ceu); margin-bottom: 24px; }
.case-hero__copy .display { font-size: clamp(44px, 6.6vw, 96px); }
.case-hero__copy .lead { margin: 28px 0 32px; color: var(--branco-70); max-width: 52ch; }
.case-hero__big { grid-column: 4; text-align: left; }
.case-hero__big strong {
  display: block;
  font-size: clamp(64px, 8vw, 136px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: var(--branco);
  white-space: nowrap;
}
.case-hero__big span { display: block; margin-top: 16px; color: var(--ceu); }

.meta {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  border-top: 1px solid var(--branco-12);
  padding-top: 24px;
}
.meta dt { color: var(--ceu); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 16px; }

.case-body .block {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--nevoa);
}
.case-body .block:first-child { border-top: 0; padding-top: 0; }
.block__label { grid-column: 1; }
.block__label .comment { display: block; margin-bottom: 8px; }
.block__label h2 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.block__content { grid-column: 2 / span 3; max-width: 68ch; }
.block__content > p:first-child { margin-top: 0; }
.block__content p { font-size: 18px; }
.block__content .dot-list li { font-size: 17px; }
.block__content strong { font-weight: 500; }

.deliverables {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  max-width: none;
}
.deliverable {
  background: var(--branco);
  border: 1px solid var(--nevoa);
  border-radius: var(--radius);
  padding: 24px;
}
.deliverable h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.3; }
.deliverable p, .deliverable li { font-size: 15.5px !important; color: var(--tinta-70); margin: 0; }
.deliverable .dot-list { margin-top: 10px; }
.deliverable .dot-list li { margin-bottom: 6px; }

.tech { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tech li {
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--branco);
  border: 1px solid var(--nevoa);
}

.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--branco-12);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--branco-12);
}
.results div { background: var(--tinta); padding: clamp(24px, 3vw, 40px); }
.results strong {
  display: block;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 14px;
  white-space: nowrap;
}
.results span { color: var(--branco-70); font-size: 15px; display: block; max-width: 24ch; }

.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.compare__col {
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}
.compare__col h3 { margin-bottom: 20px; }
.compare__col--antes { background: var(--branco); border: 1px solid var(--nevoa); }
.compare__col--depois { background: var(--azul); color: var(--branco); }
.compare__col--depois .comment { color: rgba(255, 255, 255, 0.86); }
.compare__col--depois .dot-list li::before { background: var(--ceu); }
.compare__col--antes .dot-list li::before { background: var(--nevoa); border: 1px solid var(--tinta-50); }
.compare__col .dot-list li { font-size: 16.5px; }

.callout {
  background: var(--nevoa);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 17px;
}
.callout p { margin: 0; }

.next-case {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  text-decoration: none;
  padding-block: clamp(40px, 5vw, 64px);
}
.next-case .h-section { transition: color .3s var(--ease); }
.next-case:hover .h-section { color: var(--azul); }
.next-case .case-card__go { border-color: var(--nevoa); color: var(--azul); width: 64px; height: 64px; }
.next-case:hover .case-card__go { background: var(--azul); color: var(--branco); border-color: var(--azul); transform: rotate(-45deg); }

/* Página de listagem */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 120px));
  padding-bottom: clamp(48px, 6vw, 80px);
}
.page-hero .comment { display: block; margin-bottom: 24px; }
.page-hero .lead { margin-top: 28px; }

/* ---------- Revelação ao rolar ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx, .ln { transition-delay: 0s !important; }
  .flow-arrow .pulse { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 1100px) {
  .numbers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__copy { grid-column: 1 / -1; }
  .hero__code { display: none; }
  .section-head__title { grid-column: 1 / span 4; }
  .section-head__aside { grid-column: 1 / span 3; }
  .grid-4.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .process-foot .code-card { grid-column: 1 / -1; }
  .process-foot__txt { grid-column: 1 / -1; }
  .founder__title, .founder__body { grid-column: 1 / -1; }
  .cta__copy, .form { grid-column: 1 / -1; }
  .case-hero__copy { grid-column: 1 / -1; }
  .case-hero__big { grid-column: 1 / -1; }
  .block__label { grid-column: 1 / -1; }
  .block__content { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--papel);
    color: var(--tinta);
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 32px;
    border-bottom: 1px solid var(--nevoa);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--nevoa); }
  .nav__links a::after { display: none; }
  .nav .btn { justify-content: center; min-height: 52px; font-size: 16px; }
  .site-header[data-tone="azul"]:not(.is-scrolled):not(.menu-open) .nav .btn { --btn-bg: var(--azul); --btn-fg: var(--branco); }

  .cases-grid { grid-template-columns: 1fr; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .results { grid-template-columns: 1fr 1fr; }
  .deliverables { grid-template-columns: 1fr; }
  .footer__brand { grid-column: 1 / -1; margin-bottom: 16px; }
  .footer__col { grid-column: span 2; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers__grid .stat:last-child { grid-column: 1 / -1; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .grid-4.steps { grid-template-columns: 1fr; }
  .section-head__aside { grid-column: 1 / -1; }
  .form__row { grid-template-columns: 1fr; }
  .founder__stats { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; }
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
  }
  .hero__recorte { width: 420px; right: -150px; bottom: -170px; }
  .cta__recorte { width: 360px; right: -140px; top: -120px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .stat__txt { font-size: 14px; }
}

.block__content--wide { max-width: none; }

/* ---------- Case do fundador (Pegada) ---------- */

.flow--papel { background: var(--papel); color: var(--tinta); --ln: var(--azul); }
.flow-chain { display: flex; align-items: center; }
.flow-chain .flow-box { flex-direction: column; gap: 3px; padding: 10px 14px; }
.flow-chain small { font-family: var(--f-mono); font-size: 9.5px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tinta-70); }
.flow-chain__from { border-style: dashed; border-color: var(--tinta-50); color: var(--tinta-70); }
.flow-chain__mid { background: var(--branco); border-color: var(--azul); }
.flow-chain__to { background: var(--azul); border-color: var(--azul); color: var(--branco); }
.flow-chain__to small { color: rgba(255, 255, 255, 0.8); }
.flow-chain .flow-arrow { width: clamp(44px, 5vw, 72px); }
.flow-chain + .flow-chain__note {
  position: absolute; left: 0; right: 0; top: calc(100% + 14px);
  text-align: center; color: var(--azul);
}
.flow-inner:has(.flow-chain) { flex-direction: column; }

.case-card--wide { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .case-card--wide { flex-direction: row; }
  .case-card--wide .flow { flex: 0 0 50%; height: auto; min-height: 280px; border-bottom: 0 !important; border-right: 1px solid rgba(157, 176, 255, 0.18); }
  .on-papel .case-card--wide .flow { border-right-color: var(--nevoa); }
  .case-card--wide .case-card__body { justify-content: center; }
}
.case-card--wide .status { color: var(--azul); }
.on-dark .case-card--wide .status { color: var(--ceu); }

.founder-flag {
  margin: 24px 0 0;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(157, 176, 255, 0.3);
  border-radius: 10px;
  color: var(--ceu);
  font-size: 15px;
}
.results__note { margin-top: 20px; color: var(--ceu); }
.founder__link { margin-top: 28px; color: var(--branco); }

@media (max-width: 640px) {
  .flow-chain { font-size: 11px; }
  .flow-chain .flow-box { padding: 8px 7px; }
  .flow-chain small { font-size: 8.5px; letter-spacing: 0.04em; }
  .flow-chain .flow-arrow { width: 24px; }
  .flow-chain .flow-arrow .ln--x { left: 3px; right: 3px; }
  .flow-chain .flow-arrow b { right: 4px; width: 5px; height: 5px; }
}

.footer__col { min-width: 0; }
.footer__col a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .footer__col { grid-column: 1 / -1; }
}

/* ---------- Processo em 8 etapas ---------- */

.phase + .phase { margin-top: clamp(56px, 6vw, 88px); }
.phase__head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.phase__name { color: var(--azul); white-space: nowrap; }
.phase__line { flex: 1; height: 1px; background: var(--nevoa); }
.phase__desc { font-size: 15px; color: var(--tinta-70); white-space: nowrap; }
.step { height: 100%; }
.step__out {
  margin-top: auto !important;
  padding-top: 8px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tinta) !important;
}
.step__out .dot { width: 6px; height: 6px; }

@media (max-width: 640px) {
  .phase__desc { display: none; }
  .grid-4.steps { row-gap: 40px; }
}

/* =========================================================
   Animações
   ========================================================= */

/* Barra de progresso de leitura */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 2px;
  background: var(--azul);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  pointer-events: none;
}
.site-header[data-tone="azul"]:not(.is-scrolled) ~ .progress { background: var(--branco); }

/* Títulos: palavras sobem de uma máscara */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.02em 0.14em 0.2em 0;
  margin: -0.02em -0.14em -0.2em 0;
}
.w > span { display: inline-block; }
.js-anim .reveal .w > span {
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--wi, 0) * 55ms + 80ms);
}
.js-anim .reveal.is-visible .w > span { transform: none; }

/* Código: linhas digitadas uma a uma */
.cl { display: block; }
.js-anim .reveal .cl {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .55s steps(24, end);
  transition-delay: calc(var(--li, 0) * 0.22s + 0.4s);
}
.js-anim .reveal.is-visible .cl { clip-path: inset(0 0 0 0); }
.code-card .cl:last-child::after {
  content: "";
  display: inline-block;
  width: 7px; height: 1.05em;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--ceu);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Recorte: entrada + profundidade ao rolar (sem girar o símbolo) */
.recorte {
  translate: 0 var(--py, 0px);
  will-change: translate;
}
.js-anim .hero__recorte {
  opacity: 0;
  scale: 0.92;
  transition: opacity 1.4s var(--ease) .2s, scale 1.6s var(--ease) .2s;
}
.js-anim .is-loaded .hero__recorte { opacity: 1; scale: 1; }

/* Etapas entram em sequência */
.js-anim .steps .step {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .8s var(--ease), translate .8s var(--ease);
}
.js-anim .steps.is-visible .step { opacity: 1; translate: 0 0; }
.steps .step:nth-child(2) { transition-delay: .12s; }
.steps .step:nth-child(3) { transition-delay: .24s; }
.steps .step:nth-child(4) { transition-delay: .36s; }

/* Números entram em sequência */
.js-anim .numbers__grid .stat { opacity: 0; translate: 0 14px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js-anim .numbers__grid.is-visible .stat { opacity: 1; translate: 0 0; }
.numbers__grid .stat:nth-child(2) { transition-delay: .08s; }
.numbers__grid .stat:nth-child(3) { transition-delay: .16s; }
.numbers__grid .stat:nth-child(4) { transition-delay: .24s; }
.numbers__grid .stat:nth-child(5) { transition-delay: .32s; }

/* Hover: serviços ganham o "ponto de encontro" */
.service { position: relative; }
.service::after {
  content: "";
  position: absolute;
  top: clamp(28px, 3vw, 44px); right: clamp(28px, 3vw, 44px);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--azul);
  transform: scale(0);
  transition: transform .4s var(--ease);
}
.service:hover::after { transform: scale(1); }
.service h3 { transition: translate .4s var(--ease); }
.service:hover h3 { translate: 6px 0; }

/* Hover: cards de case sobem levemente */
.case-card { transition: border-color .3s var(--ease), background-color .3s var(--ease), translate .45s var(--ease); }
.case-card:hover { translate: 0 -4px; }
.case-card .flow-inner { transition: scale .6s var(--ease); }
.case-card:hover .flow-inner { scale: 1.04; }

/* Botões magnéticos (só com mouse) */
.btn { translate: var(--mx, 0px) var(--my, 0px); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), translate .35s var(--ease); }

/* Sublinhado animado nos links com seta */
.link-arrow { border-bottom: 0; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.link-arrow:hover { background-size: 0 1px; background-position: right bottom; }

@media (prefers-reduced-motion: reduce) {
  .w > span, .cl, .step, .stat { transition-delay: 0s !important; }
  .code-card .cl:last-child::after { animation: none !important; }
  .recorte { translate: none !important; }
  .case-card:hover, .service:hover h3 { translate: none; }
}

/* =========================================================
   Abertura (preloader): as quatro pétalas se encontram
   ========================================================= */

.is-intro body { overflow: hidden; }
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 32px;
  background: var(--azul);
  color: var(--branco);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
html:not(.is-intro) .preloader:not(.is-out) { display: none; }
.preloader.is-out { transform: translateY(-100%); }

.preloader__mark { position: relative; width: clamp(120px, 13vw, 168px); height: clamp(120px, 13vw, 168px); }
.petal {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  animation: petal-in 0.9s var(--ease) forwards;
}
.petal--t { clip-path: polygon(0 0, 100% 0, 50% 50%); --from: 0 -70%; animation-delay: 0.15s; }
.petal--r { clip-path: polygon(100% 0, 100% 100%, 50% 50%); --from: 70% 0; animation-delay: 0.27s; }
.petal--b { clip-path: polygon(100% 100%, 0 100%, 50% 50%); --from: 0 70%; animation-delay: 0.39s; }
.petal--l { clip-path: polygon(0 100%, 0 0, 50% 50%); --from: -70% 0; animation-delay: 0.51s; }
@keyframes petal-in {
  from { opacity: 0; translate: var(--from); }
  to { opacity: 1; translate: 0 0; }
}
/* Pulso quando as pétalas se tocam no centro */
.preloader__mark { animation: mark-meet 0.5s var(--ease) 1.25s both; }
@keyframes mark-meet {
  0% { scale: 1; }
  45% { scale: 0.92; }
  100% { scale: 1; }
}

.preloader__bar {
  width: 120px; height: 1px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.preloader__bar i {
  display: block; height: 100%;
  background: var(--branco);
  transform: scaleX(0); transform-origin: left;
  animation: bar-fill 1.5s var(--ease) 0.1s forwards;
}
@keyframes bar-fill { to { transform: scaleX(1); } }

.preloader__txt {
  position: absolute; left: 0; right: 0; bottom: 40px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
  animation: txt-in 0.8s var(--ease) 0.6s forwards;
}
@keyframes txt-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* Enquanto a abertura roda, o conteúdo espera para animar depois */
.is-intro .reveal.is-visible { opacity: 0; transform: translateY(24px); }
.is-intro .reveal.is-visible .w > span { transform: translateY(110%); }
.is-intro .reveal.is-visible .cl { clip-path: inset(0 100% 0 0); }
.is-intro .is-loaded .hero__recorte { opacity: 0; scale: 0.92; }

/* Nome SOMMA (recorte do arquivo oficial da logo) */
.preloader__word {
  width: clamp(150px, 15vw, 196px);
  height: auto;
  opacity: 0;
  animation: txt-in 0.8s var(--ease) 1.15s forwards;
}

/* ---------- Fundador: linha do tempo em 4 momentos ---------- */

.founder .founder__grid { align-items: end; }
.founder .founder__body p:last-child { margin-bottom: 0; }

.journey {
  list-style: none;
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  position: relative;
}
/* linha que liga os quatro momentos */
.journey::before {
  content: "";
  position: absolute;
  left: 4px; right: 4px; top: 4px;
  height: 1px;
  background: rgba(157, 176, 255, 0.25);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease);
}
.journey.is-visible::before, .no-js .journey::before { transform: none; }

.journey__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 36px;
}
.journey__dot {
  position: absolute; top: 0; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ceu);
  box-shadow: 0 0 0 6px var(--tinta);
}
.journey__tag { color: var(--ceu); }
.journey__big {
  display: block;
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
  color: var(--branco);
  white-space: nowrap;
}
.journey__big--text { font-size: clamp(30px, 2.8vw, 44px); letter-spacing: -0.03em; line-height: 1.05; min-height: 1em; display: flex; align-items: flex-end; height: clamp(44px, 4.6vw, 72px); }
.journey__step p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--branco-70); max-width: 30ch; }
.journey__step p strong { color: var(--branco); font-weight: 500; }

.journey__step--now {
  background: var(--azul);
  border-radius: var(--radius);
  padding: 36px clamp(20px, 2vw, 28px) clamp(20px, 2vw, 28px);
  margin-top: -14px;
}
.journey__step--now .journey__dot { top: 14px; left: clamp(20px, 2vw, 28px); background: var(--branco); box-shadow: 0 0 0 6px var(--azul); }
.journey__step--now .journey__tag { color: rgba(255, 255, 255, 0.86); margin-top: 0; }
.journey__step--now p { color: rgba(255, 255, 255, 0.86); }
.journey__logo { height: clamp(34px, 3.4vw, 52px); width: auto; align-self: flex-start; margin-block: clamp(5px, 0.6vw, 10px); }

/* entrada em sequência */
.js-anim .journey .journey__step { opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js-anim .journey.is-visible .journey__step { opacity: 1; translate: 0 0; }
.journey .journey__step:nth-child(2) { transition-delay: .15s; }
.journey .journey__step:nth-child(3) { transition-delay: .3s; }
.journey .journey__step:nth-child(4) { transition-delay: .45s; }

.founder__foot {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--branco-12);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.founder__foot .founder__note { margin: 0; font-size: 12px; color: var(--ceu); }
.founder__foot .founder__link { margin: 0; }

@media (max-width: 1100px) {
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .journey::before { display: none; }
}
@media (max-width: 640px) {
  .journey { grid-template-columns: 1fr; row-gap: 28px; }
  .journey__step--now { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .journey__step { transition-delay: 0s !important; }
}

/* ---------- CTA "Quero um projeto" (plataforma em /projeto) ---------- */
.cta__projeto {
  margin: 32px 0 0;
  display: grid;
  gap: 12px;
  justify-items: start;
}
.cta__projeto span {
  max-width: 40ch;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}
