/* =============================================================
   CRM do GransoftWeb — Landing page
   Design system: brandbook.md + brand-tokens.json + Comunicacao_Visual_App.html
   -------------------------------------------------------------
   Sumário
   1.  Tokens (cores, tipografia, espaçamentos, dimensões)
   2.  Reset e base
   3.  Utilitários e componentes (botões, kickers, títulos)
   4.  Cabeçalho
   5.  Hero
   6.  Seção do problema (convergência)
   7.  Storytelling por rolagem
   8.  Demonstração interativa do Kanban
   9.  CRM dentro do ERP (comparação)
   10. Múltiplos processos
   11. Editor visual de fluxo
   12. Automações
   13. Visão completa do card
   14. Recursos
   15. Encerramento e rodapé
   16. Animações de entrada e prefers-reduced-motion
   17. Responsivo
   ============================================================= */

/* ------------------------------------------------------------
   1. TOKENS — altere aqui para ajustar a página inteira
   ------------------------------------------------------------ */
:root {
  /* Cores institucionais */
  --navy:        #16233F;
  --navy-deep:   #0F1A2E;
  --navy-800:    #1D2C4B;
  --navy-700:    #253860;
  --navy-line:   rgba(255,255,255,.14);

  --teal:        #2FBF9B;   /* acento — sempre sobre navy ou como linha/borda */
  --teal-deep:   #157F73;   /* teal legível sobre fundo claro (texto/ícone) */
  --teal-soft:   #E8F3F1;
  --cyan:        #8EE8FB;   /* acento secundário para automações (sobre navy) */

  /* Neutros */
  --white:       #FFFFFF;
  --bg:          #F7F9FC;
  --bg-alt:      #EDF0F4;
  --soft:        #F0F0F0;
  --line:        #E2E5EA;
  --line-strong: #C6D2E0;

  --ink:         #16233F;
  --ink-2:       #33506A;
  --muted:       #6C7F95;
  --muted-light: rgba(255,255,255,.72);

  /* Classificações (score) do CRM */
  --frio:        #6C7F95;
  --morno:       #B07A00;
  --quente:      #C2384A;

  /* Tipografia */
  --font-brand: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body:  'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.15rem, 5.2vw, 3.85rem);
  --fs-h2:      clamp(1.6rem, 3.2vw, 2.5rem);
  --fs-h3:      clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-lead:    clamp(1rem, 1.4vw, 1.16rem);
  --fs-body:    1rem;
  --fs-small:   .875rem;
  --fs-tiny:    .78rem;

  /* Espaçamento */
  --wrap:       1180px;
  --gutter:     24px;
  --sec-y:      clamp(72px, 9vw, 128px);
  --gap:        clamp(20px, 2.4vw, 34px);

  /* Formas */
  --r-btn:      14px;
  --r-card:     16px;
  --r-lg:       20px;
  --h-btn:      52px;

  /* Sombras discretas */
  --sh-sm:  0 1px 2px rgba(22,35,63,.06), 0 2px 6px rgba(22,35,63,.05);
  --sh-md:  0 2px 6px rgba(22,35,63,.06), 0 10px 26px -12px rgba(22,35,63,.20);
  --sh-lg:  0 4px 12px rgba(22,35,63,.08), 0 28px 60px -28px rgba(22,35,63,.35);
  --sh-dark:0 30px 70px -30px rgba(0,0,0,.7);

  /* Movimento */
  --ease:   cubic-bezier(.22,.61,.36,1);
  --dur:    .55s;
  --header-h: 76px;
}

/* ------------------------------------------------------------
   2. RESET E BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-brand);
  color: var(--ink);
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.dark :focus-visible, .hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible {
  outline-color: var(--teal);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--navy);
  padding: 12px 18px; border-radius: var(--r-btn); font-weight: 600;
  font-family: var(--font-brand); transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--sec-y) 0; background: var(--white); position: relative; }
.section.dark { background: var(--navy); color: var(--muted-light); }
.section.dark h2, .section.dark h3 { color: var(--white); }

/* ------------------------------------------------------------
   3. UTILITÁRIOS E COMPONENTES
   ------------------------------------------------------------ */
.kicker {
  font-family: var(--font-brand);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 16px;
}
.kicker-light { color: var(--teal); }

.display { font-size: var(--fs-display); font-weight: 700; letter-spacing: -.025em; }
.display em { font-style: normal; color: var(--teal); }

.h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.018em; }
.h2 em { font-style: normal; color: var(--teal-deep); }
.section.dark .h2 em { color: var(--teal); }

.lead, .section-sub {
  font-size: var(--fs-lead);
  color: var(--muted);
  margin-top: 18px;
  max-width: 62ch;
  line-height: 1.7;
}
.section.dark .section-sub { color: var(--muted-light); }

.section-head { margin-bottom: clamp(40px, 5vw, 66px); }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h-btn); padding: 0 26px;
  border-radius: var(--r-btn); border: 1.5px solid transparent;
  font-family: var(--font-brand); font-size: .95rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: background-color .22s var(--ease), border-color .22s var(--ease),
              transform .22s var(--ease), box-shadow .22s var(--ease), color .22s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--teal); color: var(--navy);
  box-shadow: 0 10px 26px -14px rgba(47,191,155,.9);
}
.btn-primary:hover { background: #3FD4AE; box-shadow: 0 16px 34px -14px rgba(47,191,155,.95); }

.btn-ghost-light { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.30); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.5); }

.btn-ghost { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal-deep); color: var(--teal-deep); }

.btn-sm { height: 44px; padding: 0 20px; font-size: .875rem; }
.btn-xs { height: 38px; padding: 0 14px; font-size: .8rem; border-radius: 10px; }
.btn-lg { height: 58px; padding: 0 32px; font-size: 1rem; }

/* Selos de classificação (score) */
.score {
  display: inline-flex; align-items: center;
  font-family: var(--font-brand); font-size: .68rem; font-weight: 600;
  text-transform: lowercase; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px;
  border: 1.5px solid currentColor;
}
.score.frio   { color: var(--frio); }
.score.morno  { color: var(--morno); }
.score.quente { color: var(--quente); }

/* Linha de destaque */
.highlight-line {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
  font-family: var(--font-brand); font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  color: var(--white);
  padding: 26px 24px;
  border: 1px solid var(--navy-line);
  border-left: 4px solid var(--teal);
  border-radius: var(--r-card);
  background: rgba(255,255,255,.03);
}
.highlight-line.light {
  color: var(--ink); background: var(--teal-soft);
  border-color: rgba(21,127,115,.18); border-left-color: var(--teal-deep);
}

/* Placeholder elegante de imagem pendente */
.ph {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background:
    linear-gradient(var(--bg), var(--bg)),
    repeating-linear-gradient(-45deg, var(--bg-alt) 0 8px, transparent 8px 18px);
  background-blend-mode: normal;
  aspect-ratio: 16 / 11;
  display: grid; place-items: center; padding: 28px;
}
.ph-inner { text-align: center; max-width: 46ch; }
.ph-inner svg { width: 34px; height: 34px; fill: none; stroke: var(--line-strong); stroke-width: 1.6; margin: 0 auto 14px; }
.ph-inner strong {
  display: block; font-family: var(--font-brand); font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.ph-inner code {
  display: inline-block; font-size: .84rem; color: var(--teal-deep);
  background: var(--white); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 8px; margin-bottom: 12px;
}
.ph-inner small { display: block; font-size: var(--fs-small); color: var(--muted); line-height: 1.55; }

/* ------------------------------------------------------------
   4. CABEÇALHO
   ------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(22,35,63,.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.site-header.is-stuck::after { opacity: 1; }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--navy-line); }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 26px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand:hover { text-decoration: none; }
.brand-logo { width: auto; height: 38px; }
.brand-logo--dark { display: none; }
.brand-module {
  font-family: var(--font-brand); font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; color: var(--teal);
  border: 1px solid rgba(47,191,155,.45); border-radius: 6px;
  padding: 3px 8px; line-height: 1;
}

.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  font-family: var(--font-brand); font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.86); padding: 8px 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 0;
  background: var(--teal); transition: width .25s var(--ease);
}
.site-nav a:hover, .site-nav a.is-current { color: var(--white); text-decoration: none; }
.site-nav a:hover::after, .site-nav a.is-current::after { width: 100%; }

.header-cta { flex: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  padding: 10px; margin-left: auto;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; margin: 5px 0; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  color: var(--muted-light);
  padding: calc(var(--header-h) + clamp(56px, 7vw, 96px)) 0 clamp(60px, 7vw, 96px);
  /* Gradientes pintados direto no fundo: mesmo efeito de brilho sem camadas
     com filter/blur — mais leve para o celular e sem risco de layout shift. */
  background:
    radial-gradient(620px 520px at 6% -12%, rgba(47,191,155,.26), transparent 62%),
    radial-gradient(720px 620px at 104% 26%, rgba(45,70,120,.85), transparent 62%),
    var(--navy-deep);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-glow { display: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,26,46,.55) 0%, rgba(15,26,46,0) 34%, rgba(15,26,46,.85) 100%);
}

.hero-grid-layout {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}

.badge-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-brand); font-size: .8rem; font-weight: 500;
  color: var(--teal);
  border: 1px solid rgba(47,191,155,.35); border-radius: 999px;
  background: rgba(47,191,155,.08);
  padding: 8px 16px; margin-bottom: 26px;
}
.badge-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero .display { color: var(--white); }
.hero .lead { color: var(--muted-light); max-width: 54ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-note {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 26px; font-size: var(--fs-small); color: rgba(255,255,255,.62);
}
.hero-note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Mockup de navegador */
.hero-visual { position: relative; }
.tilt { position: relative; transform-style: preserve-3d; will-change: transform; transition: transform .5s var(--ease); }

.browser {
  margin: 0; border-radius: var(--r-lg); overflow: hidden;
  background: var(--white); border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--sh-dark);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  background: #1B2A47; border-bottom: 1px solid rgba(255,255,255,.08);
}
.browser-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.browser-url {
  margin-left: 14px; font-size: .72rem; color: rgba(255,255,255,.55);
  font-family: var(--font-brand); letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-shot { width: 100%; height: auto; display: block; }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 11px;
  background: var(--white); color: var(--ink);
  border-radius: 14px; padding: 11px 15px;
  box-shadow: var(--sh-lg);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-family: var(--font-brand); font-size: .8rem; font-weight: 600; }
.float-chip small { display: block; font-size: .72rem; color: var(--muted); }
.chip-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.chip-ic svg { width: 17px; height: 17px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-teal { background: var(--teal-soft); } .ic-teal svg { stroke: var(--teal-deep); }
.ic-cyan { background: #E4F4FA; } .ic-cyan svg { stroke: #1B7C97; }
.ic-navy { background: #E4ECF3; } .ic-navy svg { stroke: var(--navy); }

.chip-1 { top: 22%; left: -34px; }
.chip-2 { bottom: 12%; right: -26px; animation-delay: -3s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-claim {
  position: relative; z-index: 2;
  margin-top: clamp(52px, 6vw, 84px); padding-top: 34px;
  border-top: 1px solid var(--navy-line);
  text-align: center;
}
.hero-claim span {
  font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(1.05rem, 2.1vw, 1.5rem); color: rgba(255,255,255,.82);
}
.hero-claim em { font-style: normal; color: var(--teal); font-weight: 600; }

/* ------------------------------------------------------------
   6. SEÇÃO DO PROBLEMA — convergência
   ------------------------------------------------------------ */
.problema { background: var(--bg); }

.converge {
  position: relative;
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "f1 core f2"
    "f3 core f4"
    "f5 core f5b";
  align-items: center;
  min-height: 360px;
}

.converge-core {
  grid-area: core; justify-self: center;
  display: grid; place-items: center;
  width: 100%; max-width: 250px; aspect-ratio: 1; position: relative;
}
.converge-core img { width: 150px; position: relative; z-index: 2; opacity: 0; transform: scale(.9); transition: opacity .7s var(--ease) .5s, transform .7s var(--ease) .5s; }
.core-ring {
  position: absolute; inset: 12%; border-radius: 50%;
  border: 1.5px solid rgba(21,127,115,.28);
  background: radial-gradient(circle, var(--white) 42%, var(--teal-soft) 100%);
  box-shadow: var(--sh-md);
  opacity: 0; transform: scale(.7); transition: opacity .7s var(--ease) .4s, transform .7s var(--ease) .4s;
}
.is-converged .converge-core img,
.is-converged .core-ring { opacity: 1; transform: scale(1); }

.frag {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 20px;
  box-shadow: var(--sh-sm);
  display: flex; gap: 14px; align-items: flex-start;
  transition: transform .8s var(--ease), opacity .6s var(--ease), border-color .6s var(--ease);
  will-change: transform;
}
.frag h3 { font-size: .95rem; font-weight: 500; line-height: 1.45; color: var(--ink); }
.frag-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-alt); display: grid; place-items: center; flex: none; }
.frag-ic svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.frag.f1 { grid-area: f1; }
.frag.f2 { grid-area: f2; }
.frag.f3 { grid-area: f3; }
.frag.f4 { grid-area: f4; }
.frag.f5 { grid-area: f5 / f5 / f5b / f5b; max-width: 520px; justify-self: center; }

/* estado inicial: espalhado */
.converge .frag { opacity: .45; }
.converge .f1 { transform: translate(-46px, -34px); }
.converge .f2 { transform: translate(46px, -30px); }
.converge .f3 { transform: translate(-56px, 6px); }
.converge .f4 { transform: translate(56px, 10px); }
.converge .f5 { transform: translateY(38px); }

/* estado final: convergido */
.converge.is-converged .frag { opacity: 1; transform: translate(0, 0); border-color: rgba(21,127,115,.22); }

.transition-note { margin-top: clamp(48px, 6vw, 76px); text-align: center; }
.quote-line {
  font-family: var(--font-brand); font-weight: 400; font-style: italic;
  font-size: clamp(1rem, 1.9vw, 1.28rem); color: var(--muted);
  max-width: 62ch; margin: 0 auto;
}
.conclusion-line {
  margin-top: 22px; font-family: var(--font-brand);
  font-size: clamp(1.08rem, 2.2vw, 1.55rem); color: var(--ink);
  max-width: 60ch; margin-left: auto; margin-right: auto;
}
.conclusion-line strong { font-weight: 600; }

/* ------------------------------------------------------------
   7. STORYTELLING POR ROLAGEM
   ------------------------------------------------------------ */
.story { background: var(--white); }
/* align-items: stretch é essencial: a coluna do palco precisa ter a altura
   da coluna dos passos para que o position:sticky tenha percurso e o palco
   acompanhe a rolagem até o fim da seção. */
.story-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: stretch; }

.story-stage-col { position: relative; height: 100%; }
.story-stage { position: sticky; top: calc(var(--header-h) + 48px); }
/* Telas baixas: aproxima o palco do topo para ele caber inteiro na janela */
@media (max-height: 780px) { .story-stage { top: calc(var(--header-h) + 16px); } }

.stage-window {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--white); overflow: hidden; box-shadow: var(--sh-md);
}
.stage-bar {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08);
}
.stage-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); }
.stage-title { margin-left: 12px; font-family: var(--font-brand); font-size: .72rem; color: rgba(255,255,255,.7); }

.stage-body { padding: 18px; background: var(--bg); }

.mini-board { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mini-col {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 8px; min-height: 162px;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.mini-col-h {
  display: block; font-family: var(--font-brand); font-size: .64rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-col.is-target { border-color: var(--teal); background: var(--teal-soft); }
.mini-slot { height: 118px; }

.mini-card {
  /* alinhado às colunas: largura da coluna menos o padding interno (8px de cada lado);
     o passo horizontal entre colunas é (100% da largura do card + 26px) */
  position: absolute; top: 34px; left: 8px; --i: 0;
  width: calc(25% - 23.5px);
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--quente);
  border-radius: 10px; padding: 9px;
  box-shadow: var(--sh-md);
  transition: transform .7s var(--ease), opacity .5s var(--ease), box-shadow .4s var(--ease);
  opacity: 0;
}
.story-stage[data-step] .mini-card { opacity: 1; }
.mini-card h4 { font-size: .72rem; font-weight: 600; line-height: 1.3; margin: 7px 0 5px; }
.mini-meta { display: flex; flex-direction: column; gap: 1px; font-size: .62rem; color: var(--muted); }
.mini-meta b { color: var(--ink); font-weight: 600; }
.mini-resp { font-size: .6rem; color: var(--muted); margin-top: 6px; }
.mini-card .score { font-size: .58rem; padding: 2px 7px; }

/* posições do card por etapa da história */
.mini-card { transform: translateX(calc((100% + 26px) * var(--i))); }
.story-stage[data-step="1"] .mini-card { --i: 0; opacity: 0; }
.story-stage[data-step="2"] .mini-card { --i: 0; }
.story-stage[data-step="3"] .mini-card,
.story-stage[data-step="4"] .mini-card,
.story-stage[data-step="5"] .mini-card { --i: 1; }
.story-stage[data-step="6"] .mini-card { --i: 3; }

.stage-feed { margin-top: 16px; display: grid; gap: 8px; }
.stage-feed li {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: var(--fs-tiny); color: var(--ink-2);
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.stage-feed li.is-on { opacity: 1; transform: translateY(0); }
.fd-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.fd-ic svg { width: 13px; height: 13px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.stage-legend { margin-top: 14px; font-size: var(--fs-tiny); color: var(--muted); text-align: center; }

/* Passos */
.story-steps { display: grid; gap: clamp(28px, 6vh, 56px); padding-bottom: clamp(0px, 6vh, 60px); }
.story-step {
  padding: 24px 24px 24px 28px;
  border-left: 2px solid var(--line);
  transition: border-color .4s var(--ease), opacity .4s var(--ease);
  opacity: .48;
}
.story-step.is-active { opacity: 1; border-left-color: var(--teal); }
.step-n {
  display: inline-block; font-family: var(--font-brand); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; color: var(--teal-deep); margin-bottom: 10px;
}
.story-step h3 { font-size: var(--fs-h3); font-weight: 600; }
.story-step p { margin-top: 10px; color: var(--muted); font-size: var(--fs-small); line-height: 1.7; }

/* ------------------------------------------------------------
   8. DEMONSTRAÇÃO INTERATIVA DO KANBAN
   ------------------------------------------------------------ */
.demo { background: var(--bg); }

.demo-shell {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--white);
}
.demo-proc {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-brand); font-size: .84rem; font-weight: 600; color: var(--ink);
}
.demo-proc svg { width: 17px; height: 17px; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; }
.demo-progress { display: flex; gap: 6px; margin-left: auto; }
.demo-progress i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); transition: background-color .3s var(--ease); }
.demo-progress i.on { background: var(--teal); }

.demo-board {
  position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px; padding: 20px; background: var(--bg-alt);
}
.demo-col { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; min-height: 220px; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.demo-col.is-over { border-color: var(--teal); background: var(--teal-soft); }
.demo-col-h {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-brand); font-size: .72rem; font-weight: 600;
  color: var(--ink); margin-bottom: 12px;
}
.col-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
.demo-drop { min-height: 150px; }

.demo-card {
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--quente);
  border-radius: 12px; padding: 13px; cursor: grab;
  box-shadow: var(--sh-md);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-left-color .35s var(--ease);
}
.demo-card:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); }
.demo-card:active { cursor: grabbing; }
.demo-card.is-dragging { opacity: .55; transform: rotate(-1.2deg); }
.demo-card.is-landing { animation: land .5s var(--ease); }
@keyframes land { 0% { transform: scale(1.04); box-shadow: 0 0 0 4px rgba(47,191,155,.28); } 100% { transform: scale(1); } }

.demo-card[data-score="morno"]  { border-left-color: var(--morno); }
.demo-card[data-score="quente"] { border-left-color: var(--quente); }

.demo-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.demo-prev { font-size: .68rem; color: var(--muted); }
.demo-card h3 { font-size: .92rem; font-weight: 600; margin: 10px 0 3px; }
.demo-obra { font-size: .74rem; color: var(--muted); }
.demo-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; font-size: .7rem; color: var(--muted); }
.demo-meta b { color: var(--ink); font-weight: 600; font-size: .78rem; }
.demo-card-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: .7rem; color: var(--muted);
}
.demo-avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-brand); font-size: .64rem; font-weight: 600;
}
.demo-grip { margin-left: auto; }
.demo-grip svg { width: 16px; height: 16px; fill: var(--line-strong); }

.demo-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; border-top: 1px solid var(--line);
}
.demo-current { font-family: var(--font-brand); font-size: .84rem; font-weight: 600; color: var(--ink); }

.demo-log { display: grid; gap: 8px; padding: 0 20px 20px; }
.demo-log:empty { padding: 0; }
.demo-log .toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--teal-soft); border: 1px solid rgba(21,127,115,.22);
  border-radius: 12px; padding: 11px 15px;
  font-size: var(--fs-small); color: #10554E; font-weight: 500;
  animation: toastIn .4s var(--ease) both;
}
.demo-log .toast svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.demo-disclaimer {
  padding: 0 20px 20px; font-size: var(--fs-tiny); color: var(--muted); text-align: center;
}

/* ------------------------------------------------------------
   9. CRM DENTRO DO ERP
   ------------------------------------------------------------ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.compare-card {
  border: 1px solid var(--navy-line); border-radius: var(--r-lg);
  background: rgba(255,255,255,.03); padding: clamp(22px, 2.6vw, 32px);
}
.compare-card.is-good { border-color: rgba(47,191,155,.4); background: rgba(47,191,155,.06); }

.tag {
  display: inline-block; font-family: var(--font-brand); font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px;
}
.tag-bad  { color: rgba(255,255,255,.75); border: 1px solid var(--navy-line); }
.tag-good { color: var(--teal); border: 1px solid rgba(47,191,155,.5); background: rgba(47,191,155,.1); }

.compare-art { position: relative; height: 220px; margin: 26px 0; }
.compare-art .node {
  position: absolute; font-family: var(--font-brand); font-size: .78rem; font-weight: 500;
  color: rgba(255,255,255,.9); background: var(--navy-800);
  border: 1px solid var(--navy-line); border-radius: 10px; padding: 9px 14px;
}
.compare-art .node { transform: translate(-50%, -50%); white-space: nowrap; }
.n-a { top: 20%; left: 14%; } .n-b { top: 20%; left: 84%; }
.n-c { top: 82%; left: 18%; } .n-d { top: 82%; left: 80%; }
.n-e { top: 52%; left: 50%; }
.compare-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare-lines path {
  fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.4;
  stroke-dasharray: 5 5; vector-effect: non-scaling-stroke;
}
.compare-card.is-bad:hover .compare-lines path { animation: dash 22s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }

.compare-art.single {
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  gap: 0; height: auto; min-height: 220px;
}
.flow-node {
  font-family: var(--font-brand); font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.9);
  background: var(--navy-800); border: 1px solid var(--navy-line);
  border-radius: 10px; padding: 8px 14px; text-align: center;
}
.flow-node.is-core { background: rgba(47,191,155,.16); border-color: rgba(47,191,155,.55); color: var(--white); font-weight: 600; }
.flow-arrow {
  width: 2px; height: 16px; margin: 0 auto; position: relative; flex: none;
  background: linear-gradient(rgba(47,191,155,.35), var(--teal));
}
.flow-arrow::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 6px; height: 6px; border-right: 1.5px solid var(--teal); border-bottom: 1.5px solid var(--teal);
  transform: translate(-50%, 1px) rotate(45deg);
}

.compare-list { display: grid; gap: 12px; }
.compare-list li {
  position: relative; padding-left: 26px; font-size: var(--fs-small); color: var(--muted-light); line-height: 1.6;
}
.compare-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 2px;
  background: rgba(255,255,255,.4); border-radius: 2px;
}
.is-good .compare-list li::before {
  top: 5px; width: 13px; height: 8px; background: none;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg); border-radius: 0;
}

/* ------------------------------------------------------------
   10. MÚLTIPLOS PROCESSOS
   ------------------------------------------------------------ */
.processos { background: var(--white); }
.proc-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--gap); align-items: start; }

.proc-tabs { display: grid; gap: 8px; }
.proc-tab {
  text-align: left; background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.proc-tab:hover { border-color: var(--line-strong); border-left-color: var(--teal); transform: translateX(2px); }
.proc-tab.is-active { border-color: rgba(21,127,115,.3); border-left-color: var(--teal-deep); background: var(--teal-soft); }
.proc-tab-t { display: block; font-family: var(--font-brand); font-size: .92rem; font-weight: 600; color: var(--ink); }
.proc-tab-s { display: block; font-size: var(--fs-tiny); color: var(--muted); margin-top: 3px; }

.proc-panel {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg); padding: clamp(20px, 2.4vw, 28px);
}
.proc-desc { font-size: var(--fs-small); color: var(--muted); margin-bottom: 20px; min-height: 44px; }

.proc-board { display: grid; gap: 10px; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.proc-column {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 10px; min-height: 190px;
  animation: colIn .45s var(--ease) both;
}
@keyframes colIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.proc-column h3 {
  font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 7px;
}
.proc-column h3 .col-dot { width: 7px; height: 7px; }
.proc-ghost { height: 44px; border-radius: 8px; background: var(--bg-alt); margin-bottom: 8px; }
.proc-ghost.sm { height: 30px; opacity: .7; }
.proc-ghost.xs { height: 22px; opacity: .45; }

.proc-foot {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 18px; font-size: var(--fs-tiny); color: var(--muted);
}
.proc-foot svg { width: 15px; height: 15px; flex: none; margin-top: 3px; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; }

/* ------------------------------------------------------------
   11. EDITOR VISUAL DE FLUXO
   ------------------------------------------------------------ */
/* O editor de fluxo é o destaque da seção: o container é um pouco mais largo
   que o padrão e a coluna da arte recebe a maior parte do espaço. */
.editor .editor-layout { max-width: 1340px; }
.editor-layout { display: grid; grid-template-columns: 0.68fr 1.32fr; gap: clamp(28px, 4vw, 56px); align-items: center; }

.editor-list { display: grid; gap: 18px; margin-top: 32px; }
.editor-list li {
  padding-left: 20px; border-left: 2px solid rgba(47,191,155,.4);
  font-size: var(--fs-small); color: var(--muted-light); line-height: 1.6;
}
.editor-list li span {
  display: block; font-family: var(--font-brand); font-weight: 600;
  font-size: .95rem; color: var(--white); margin-bottom: 4px;
}

.editor-claim {
  margin-top: 30px; padding: 20px 22px;
  background: rgba(255,255,255,.04); border: 1px solid var(--navy-line);
  border-radius: var(--r-card); font-size: var(--fs-small); color: rgba(255,255,255,.86); line-height: 1.7;
}

.editor-art { margin: 0; }
.editor-canvas {
  /* menos moldura, mais desenho */
  border: 1px solid var(--navy-line); border-radius: var(--r-lg);
  background:
    radial-gradient(circle, rgba(255,255,255,.10) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--navy-800);
  padding: 14px;
  box-shadow: var(--sh-dark);
}
/* Variante com a captura de tela real do editor dentro da mesma moldura */
.editor-shot {
  display: block; width: 100%; height: auto;
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  background: var(--white);
}
.flow-svg { width: 100%; height: auto; display: block; }
.flow-svg .node rect { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.18); stroke-width: 1; }
.flow-svg .node-head { fill: var(--navy-700); }
.flow-svg .head-start { fill: var(--teal-deep); }
.flow-svg .head-stage { fill: #2A4373; }
.flow-svg .head-auto  { fill: #1F5F73; }
.flow-svg .node-title { font-family: var(--font-brand); font-size: 12px; font-weight: 600; fill: #FFFFFF; }
.flow-svg .node-label { font-family: var(--font-body); font-size: 9px; fill: rgba(255,255,255,.45); letter-spacing: .1em; }
.flow-svg .node-value { font-family: var(--font-brand); font-size: 12.5px; font-weight: 500; fill: rgba(255,255,255,.94); }
.flow-svg .ports-auto circle { stroke: var(--cyan); }
.flow-svg .flow-main path { fill: none; stroke: var(--teal); stroke-width: 1.8; }
.flow-svg .flow-auto path { fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-dasharray: 5 4; }
.flow-svg .ports circle { fill: var(--navy-deep); stroke: var(--teal); stroke-width: 2; }

/* traçado progressivo quando a seção entra em cena */
.flow-svg .flow-main path, .flow-svg .flow-auto path {
  stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.flow-svg .flow-auto path { stroke-dasharray: 5 4; stroke-dashoffset: 0; opacity: 0; transition: opacity .8s var(--ease) .8s; }
.is-drawn .flow-svg .flow-main path { stroke-dashoffset: 0; }
.is-drawn .flow-svg .flow-auto path { opacity: 1; }

.editor-palette {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 18px; font-size: var(--fs-tiny); color: rgba(255,255,255,.55);
}
.editor-palette em {
  font-style: normal; border: 1px solid var(--navy-line); border-radius: 999px;
  padding: 5px 11px; color: rgba(255,255,255,.8); background: rgba(255,255,255,.04);
}
.art-caption { margin-top: 16px; font-size: var(--fs-tiny); color: rgba(255,255,255,.5); line-height: 1.6; }

/* ------------------------------------------------------------
   12. AUTOMAÇÕES
   ------------------------------------------------------------ */
.automacoes { background: var(--bg); }

.auto-legend {
  display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr;
  gap: 12px; align-items: center; margin-bottom: 18px;
}
.lg {
  font-family: var(--font-brand); font-size: var(--fs-tiny); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: center; color: var(--muted);
}
.lg-arrow { height: 2px; background: rgba(21,127,115,.3); border-radius: 2px; }

.auto-chain { display: grid; gap: 12px; }
.auto-row {
  display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr;
  gap: 12px; align-items: stretch;
}
.cell {
  display: flex; align-items: center; gap: 11px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; font-size: var(--fs-small); color: var(--ink); font-weight: 500;
  box-shadow: var(--sh-sm);
}
.cell i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--bg-alt); }
.cell i svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cell.evt { border-left: 3px solid var(--navy); }
.cell.act { border-left: 3px solid var(--teal-deep); }
.cell.act i { background: var(--teal-soft); }
.cell.act i svg { stroke: var(--teal-deep); }
.cell.res { background: var(--teal-soft); border-color: rgba(21,127,115,.22); color: #10554E; box-shadow: none; }

.cell-arrow { position: relative; }
.cell-arrow::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 8px; height: 2px;
  background: rgba(21,127,115,.45); transform-origin: left; transform: scaleX(0);
  transition: transform .6s var(--ease) .15s;
}
.cell-arrow::after {
  content: ""; position: absolute; top: 50%; right: 6px;
  width: 8px; height: 8px; border-top: 2px solid rgba(21,127,115,.45); border-right: 2px solid rgba(21,127,115,.45);
  transform: translateY(-50%) rotate(45deg); opacity: 0; transition: opacity .3s var(--ease) .6s;
}
.auto-row.is-in .cell-arrow::before { transform: scaleX(1); }
.auto-row.is-in .cell-arrow::after  { opacity: 1; }

.auto-extra { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: clamp(40px, 5vw, 64px); }
.xcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  border-top: 3px solid var(--teal); padding: 26px; box-shadow: var(--sh-sm);
}
.xcard h3 { font-size: var(--fs-h3); font-weight: 600; }
.xcard p { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); line-height: 1.7; }
.xcard em { font-style: normal; color: var(--teal-deep); font-weight: 500; }

/* ------------------------------------------------------------
   12b. AUTOMAÇÃO — ANIMAÇÃO DAS CENAS (seção #automacoes)
   Lista de automações à esquerda + painel animado à direita.
   ------------------------------------------------------------ */
.automacoes .autob {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 40px; align-items: start;
}

/* --- lista de automações --- */
.autob-list { display: grid; gap: 10px; min-width: 0; }
.autob-item {
  position: relative; overflow: hidden; text-align: left; width: 100%;
  background: transparent; border: 1px solid var(--navy-line); border-radius: 14px;
  padding: 18px 20px 20px; color: var(--white); cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.autob-item:hover { background: rgba(255,255,255,.05); }
.autob-item.is-active { background: rgba(255,255,255,.08); border-color: rgba(47,191,155,.5); }

.autob-item-head { display: flex; align-items: center; gap: 12px; }
.autob-n {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); flex: none;
  font-family: var(--font-brand); font-size: .74rem; font-weight: 600;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.autob-item.is-active .autob-n { background: var(--teal); color: var(--navy); }

.autob-t {
  font-family: var(--font-brand); font-size: .98rem; font-weight: 600;
  line-height: 1.3; color: rgba(255,255,255,.72); transition: color .3s var(--ease);
}
.autob-item.is-active .autob-t { color: var(--white); }

/* A descrição só aparece no item em execução */
.autob-d { display: none; font-size: .86rem; color: rgba(255,255,255,.72); line-height: 1.65; margin-top: 10px; }
.autob-item.is-active .autob-d { display: block; animation: toastIn .4s var(--ease) both; }

/* Barra de progresso da cena */
.autob-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--teal); }
.autob-item.is-active .autob-bar.is-running { width: 100%; transition: width 6.2s linear; }

/* --- painel da cena --- */
.autob-stage {
  min-width: 0; background: var(--white); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-lg);
}
.autob-top {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.autob-proc {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-brand); font-size: .84rem; font-weight: 600; color: var(--ink);
}
.autob-proc svg { width: 17px; height: 17px; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; }
.autob-trigger {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; color: var(--muted);
}
.autob-trigger em { font-style: normal; }
.autob-tag {
  font-family: var(--font-brand); font-size: .66rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  background: var(--bg-alt); border-radius: 999px; padding: 3px 9px;
}

.autob-board {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; padding: 20px; background: var(--bg-alt);
}
.autob-col {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; min-height: 236px;
}
.autob-col header {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-brand); font-size: .74rem; font-weight: 600; color: var(--ink);
}
.autob-col .col-dot { transition: background-color .4s var(--ease); }

/* O card desliza da coluna da esquerda para a da direita */
.autob-card {
  position: absolute; top: 64px; left: 32px; width: calc(50% - 51px);
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--morno); border-radius: 12px; padding: 13px;
  box-shadow: 0 2px 6px rgba(22,35,63,.06), 0 12px 28px -12px rgba(22,35,63,.28);
  transition: left .75s cubic-bezier(.2,.8,.2,1);
}
.autob-card.is-moved { left: calc(50% + 19px); }
.autob-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.autob-doc { font-size: .66rem; color: var(--muted); }
/* Especificidade precisa vencer ".section.dark h3", que pinta títulos de branco:
   o card da cena é branco e o título ficaria invisível. */
.autob-card h3 { font-size: .9rem; font-weight: 600; margin: 10px 0 3px; }
.section.dark .autob-card h3 { color: var(--ink); }
.autob-val { font-size: .74rem; color: var(--muted); }

.autob-field {
  display: none; align-items: center; gap: 6px; margin-top: 10px;
  font-size: .7rem; color: #10554E; background: var(--teal-soft);
  border-radius: 8px; padding: 6px 8px;
}
.autob-field.is-on { display: flex; animation: toastIn .4s var(--ease) both; }
.autob-field svg { width: 13px; height: 13px; flex: none; fill: none; stroke: var(--teal-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.autob-card-foot {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid var(--line);
  font-size: .7rem; color: var(--muted);
}
.autob-avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; flex: none;
  font-family: var(--font-brand); font-size: .64rem; font-weight: 600;
  transition: background-color .4s var(--ease);
}
.autob-avatar.is-changed { background: var(--teal-deep); }

/* Resultado da automação */
.autob-result { padding: 16px 20px 20px; min-height: 86px; }
.autob-toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--teal-soft); border: 1px solid rgba(21,127,115,.22);
  border-radius: 12px; padding: 12px 15px;
  animation: toastIn .45s var(--ease) both;
}
.autob-toast-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--white); flex: none; }
.autob-toast-ic svg { width: 16px; height: 16px; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.autob-toast strong { display: block; font-family: var(--font-brand); font-size: .82rem; font-weight: 600; color: #10554E; }
.autob-toast small { display: block; font-size: .76rem; color: #10554E; opacity: .85; margin-top: 2px; line-height: 1.5; }

@media (max-width: 980px) {
  .automacoes .autob { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .autob-board { padding: 14px; gap: 10px; }
  .autob-col { min-height: 210px; padding: 10px; }
  .autob-card { top: 58px; left: 24px; width: calc(50% - 39px); }
  .autob-card.is-moved { left: calc(50% + 15px); }
  .autob-trigger { margin-left: 0; width: 100%; }
}

/* Sem animação: a cena aparece direto no estado final */
@media (prefers-reduced-motion: reduce) {
  .autob-card, .autob-avatar, .autob-col .col-dot { transition: none; }
  .autob-item.is-active .autob-bar.is-running { transition: none; }
}

/* ------------------------------------------------------------
   13. VISÃO COMPLETA DO CARD
   ------------------------------------------------------------ */
.card360 { background: var(--white); }
.card360-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.card360-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin-top: 30px;
}
.card360-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-small); color: var(--ink-2);
}
.card360-list i {
  width: 7px; height: 7px; border-radius: 2px; background: var(--teal); flex: none;
}

.card360-art { position: relative; }

/* Slides da ficha do lead: capturas empilhadas, só a ativa fica visível */
.ficha-slides { border-color: var(--line); box-shadow: var(--sh-lg); }
.slides-view { position: relative; aspect-ratio: 1301 / 830; background: var(--white); }
.slides-view .slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  opacity: 0; transition: opacity .6s var(--ease);
}
.slides-view .slide.is-on { opacity: 1; }

.tab-strip {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
}
.tab-strip [role="tab"] {
  font-family: var(--font-brand); font-size: var(--fs-tiny); font-weight: 500;
  color: var(--muted); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.tab-strip [role="tab"]:hover { color: var(--ink-2); border-color: var(--line-strong); }
.tab-strip [role="tab"].on { color: var(--teal-deep); border-color: rgba(21,127,115,.35); background: var(--teal-soft); }

/* ------------------------------------------------------------
   14. RECURSOS
   ------------------------------------------------------------ */
.recursos { background: var(--bg); }
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.rec {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px; box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.rec:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.rec h3 { font-size: var(--fs-h3); font-weight: 600; }
.rec p { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); line-height: 1.7; }
.rec em { font-style: normal; color: var(--teal-deep); }
.rec-ic {
  width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft);
  display: grid; place-items: center; margin-bottom: 18px;
}
.rec-ic svg { width: 21px; height: 21px; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rec-wide { grid-column: span 2; }

.rec-dark { background: var(--navy); border-color: var(--navy); color: var(--muted-light); }
.rec-dark h3 { color: var(--white); font-size: clamp(1.2rem, 2vw, 1.6rem); }
.rec-dark p { color: var(--muted-light); }
.rec-eyebrow {
  font-family: var(--font-brand); font-size: var(--fs-tiny); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.rec-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.rec-tags li {
  font-family: var(--font-brand); font-size: var(--fs-tiny); color: rgba(255,255,255,.85);
  border: 1px solid var(--navy-line); border-radius: 999px; padding: 6px 13px;
}

.rec-photo { padding: 0; overflow: hidden; position: relative; min-height: 260px; }
.rec-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.rec-photo-caption {
  position: absolute; inset: auto 0 0 0; padding: 22px;
  background: linear-gradient(180deg, rgba(22,35,63,0) 0%, rgba(22,35,63,.92) 72%);
}
.rec-photo-caption p { color: var(--white); font-family: var(--font-brand); font-size: .9rem; font-weight: 500; margin: 0; line-height: 1.5; }

/* Captura de tela dentro do card de recurso */
.rec-shot {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; object-position: top left;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); margin-bottom: 18px;
}
.rec-split-img {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: top left;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
}
.rec-dark .rec-shot, .rec-dark .rec-split-img { border-color: rgba(255,255,255,.16); }

/* Imagens ampliáveis (lightbox) */
.zoomable { cursor: zoom-in; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.zoomable:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,26,46,.16); }
.zoomable:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

html.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--white);
}
.lightbox::backdrop { background: rgba(15,26,46,.9); }
.lightbox[open] { display: flex; flex-direction: column; animation: lightbox-in .25s var(--ease); }
.lightbox-stage {
  flex: 1; min-height: 0; overflow: auto;
  display: flex; padding: 56px 24px 12px;
}
.lightbox-img {
  margin: auto; max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  border-radius: 10px; background: var(--white);
  box-shadow: 0 24px 60px rgba(0,0,0,.45); cursor: zoom-in;
}
.lightbox.is-real .lightbox-img { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--navy-line);
  background: rgba(255,255,255,.1); color: var(--white); cursor: pointer;
  display: grid; place-items: center; transition: background .2s var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-close:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.lightbox-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lightbox-hint { margin: 0; padding: 8px 16px 16px; text-align: center; font-size: .82rem; color: var(--muted-light); }
.lightbox-label { display: block; font-family: var(--font-brand); font-weight: 600; color: var(--white); margin-bottom: 2px; }
.lightbox-label:empty { display: none; }

/* Setas da galeria (só aparecem com mais de uma imagem) */
.lightbox-nav {
  position: absolute; top: 50%; z-index: 1; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--navy-line);
  background: rgba(15,26,46,.72); color: var(--white); cursor: pointer;
  display: none; place-items: center; transition: background .2s var(--ease);
}
.lightbox.is-gallery .lightbox-nav { display: grid; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav:hover { background: rgba(47,191,155,.35); }
.lightbox-nav:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.lightbox-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox.is-gallery .lightbox-stage { padding-left: 80px; padding-right: 80px; }
@media (max-width: 640px) {
  .lightbox.is-gallery .lightbox-stage { padding-left: 12px; padding-right: 12px; }
  .lightbox-nav { top: auto; bottom: 64px; transform: none; }
}

/* Slides da ficha: o painel inteiro é o alvo do clique, sem deslocar a moldura */
.slides-view.zoomable:hover { transform: none; box-shadow: none; }
.slides-view.zoomable:focus-visible { outline-offset: -3px; }
.slides-view.zoomable::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(22,35,63,.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 6px 16px rgba(15,26,46,.25);
  opacity: 0; transform: scale(.9); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.slides-view.zoomable:hover::after, .slides-view.zoomable:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .slides-view.zoomable::after { opacity: 1; transform: none; } }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

.rec-accent { background: var(--teal-soft); border-color: rgba(21,127,115,.22); }
.rec-accent .rec-ic { background: var(--white); }
.rec-accent strong { color: var(--ink); }

.rec-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.rec-split .rec-eyebrow { color: var(--teal-deep); }
.hashtags { display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; }
.hashtags li {
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem; color: var(--teal-deep);
  background: var(--teal-soft); border: 1px solid rgba(21,127,115,.18);
  border-radius: 7px; padding: 5px 10px;
}
.hashtags li::before { content: "#"; opacity: .6; }

/* ------------------------------------------------------------
   15. ENCERRAMENTO E RODAPÉ
   ------------------------------------------------------------ */
.closing { background: var(--navy); position: relative; overflow: hidden; }
.closing {
  background:
    radial-gradient(680px 560px at 96% -18%, rgba(47,191,155,.20), transparent 62%),
    var(--navy);
}
.closing-inner { position: relative; text-align: center; }
.closing-title { color: var(--white); max-width: 22ch; margin: 0 auto; font-size: clamp(1.75rem, 4.2vw, 3.1rem); }
.closing-sub { margin: 26px auto 0; max-width: 62ch; color: var(--muted-light); font-size: var(--fs-lead); line-height: 1.7; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }
.closing-claim {
  margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--navy-line);
  font-family: var(--font-brand); font-size: .95rem; color: var(--teal); letter-spacing: .01em;
}

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.66); padding: clamp(56px, 6vw, 80px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--gap); }
.footer-brand img { height: 27px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: var(--fs-small); line-height: 1.7; max-width: 40ch; }
.footer-col h2 {
  font-size: var(--fs-tiny); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: var(--fs-small); color: rgba(255,255,255,.7); cursor: pointer; }
.footer-col a:hover { color: var(--teal); }
.footer-cta { margin-top: 20px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  margin-top: clamp(38px, 4vw, 56px); padding-top: 24px;
  border-top: 1px solid var(--navy-line);
  font-size: var(--fs-tiny); color: rgba(255,255,255,.5);
}
.footer-legal { display: flex; gap: 10px; align-items: center; }
.footer-legal a { cursor: pointer; }
.footer-legal a:hover { color: var(--teal); }

/* ------------------------------------------------------------
   16. ANIMAÇÕES DE ENTRADA
   ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal[data-delay="1"].is-in { transition-delay: .08s; }
.reveal[data-delay="2"].is-in { transition-delay: .16s; }
.reveal[data-delay="3"].is-in { transition-delay: .24s; }
.reveal[data-delay="4"].is-in { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .converge .frag { opacity: 1; transform: none; }
  .converge-core img, .core-ring { opacity: 1; transform: none; }
  .stage-feed li { opacity: 1; transform: none; }
  .story-step { opacity: 1; }
  .flow-svg .flow-main path { stroke-dashoffset: 0; }
  .flow-svg .flow-auto path { opacity: 1; }
  .cell-arrow::before { transform: scaleX(1); }
  .cell-arrow::after { opacity: 1; }
  .float-chip { animation: none; }
  .tilt { transform: none !important; }
}

/* ------------------------------------------------------------
   17. RESPONSIVO
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .hero-grid-layout { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 16px; }
  .chip-1 { left: -10px; } .chip-2 { right: -6px; }

  .proc-layout { grid-template-columns: 1fr; }
  .proc-tabs { grid-template-columns: repeat(2, 1fr); }

  .editor-layout, .card360-layout { grid-template-columns: 1fr; }
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .rec-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--navy-line);
    padding: 8px 24px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--navy-line); font-size: 1rem; }
  .site-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }

  .converge {
    grid-template-columns: 1fr;
    grid-template-areas: "core" "f1" "f2" "f3" "f4" "f5";
    min-height: 0;
  }
  .converge-core { max-width: 200px; margin-bottom: 8px; }
  .frag.f5 { max-width: none; }
  .converge .frag { transform: none; opacity: .55; }
  .converge.is-converged .frag { opacity: 1; }

  .story-layout { grid-template-columns: 1fr; }
  .story-stage { position: static; margin-bottom: 32px; }
  .story-steps { gap: 20px; }
  .story-step { opacity: 1; padding: 18px 18px 18px 22px; }

  .demo-board { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .demo-col { scroll-snap-align: center; }
  .demo-card { cursor: default; }
  .demo-grip { display: none; }

  .compare { grid-template-columns: 1fr; }
  .auto-legend { display: none; }
  .auto-row { grid-template-columns: 1fr; gap: 8px; }
  .cell-arrow { height: 18px; }
  .cell-arrow::before { top: 0; bottom: 0; left: 50%; right: auto; width: 1.5px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .auto-row.is-in .cell-arrow::before { transform: scaleY(1); }
  .cell-arrow::after { top: auto; bottom: 0; right: 50%; transform: translateX(50%) rotate(135deg); }
  .auto-extra { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  /* No celular o palco da história mostra apenas a etapa atual e o card,
     em vez de quatro colunas ilegíveis. */
  .mini-board { display: block; }
  .mini-col { display: none; }
  .mini-col.is-target { display: block; min-height: 0; margin-bottom: 10px; }
  .mini-col.is-target .mini-slot { display: none; }
  .mini-col-h { font-size: .68rem; }
  .mini-card { position: static; width: auto; transform: none !important; opacity: 1 !important; }
  .mini-meta { flex-direction: row; justify-content: space-between; }

  .proc-tabs { grid-template-columns: 1fr; }
  .proc-board { grid-auto-flow: row; }
  .proc-column { min-height: 0; }
  .rec-grid { grid-template-columns: 1fr; }
  .rec-wide { grid-column: span 1; }
  .rec-split { grid-template-columns: 1fr; }
  .card360-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .demo-controls { flex-direction: column-reverse; align-items: stretch; }
  .demo-controls .btn { width: 100%; }
  .demo-current { text-align: center; }
  .hero-actions .btn { width: 100%; }
  .closing-actions .btn { width: 100%; }
}
