/* ConectaAI — sistema de design
   Type: Instrument Serif (display) + Geist (sans) + JetBrains Mono (detail)
   Base: off-white quente; tinta quase-preta; accent verde-cítrico
*/

:root {
  /* Brand: Direção Nó */
  --bg: #F5F4EE;
  --bg-2: #EDEBE2;
  --ink: #0A0A0A;
  --ink-2: #3A3A35;
  --ink-3: #7A7A75;
  --rule: #E5E3DA;
  --rule-2: #D5D3CA;
  --accent: #3B5BFF;
  --accent-ink: #FFFFFF;

  --f-serif: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 56px);
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.010 70);
  --bg-2: oklch(0.20 0.012 70);
  --ink: oklch(0.96 0.008 85);
  --ink-2: oklch(0.80 0.008 80);
  --ink-3: oklch(0.60 0.010 80);
  --rule: oklch(0.30 0.012 70);
  --rule-2: oklch(0.40 0.012 70);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip` em vez de `hidden` — `hidden` cria scroll container e quebra
     `position: sticky` em descendentes (nav some no scroll). */
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Layout primitives ───────────────────────────────────────────────── */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
}

.rule { border-top: 1px solid var(--rule); }
.rule-b { border-bottom: 1px solid var(--rule); }

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.serif { font-family: var(--f-sans); font-weight: 500; letter-spacing: -0.02em; }

/* Section scaffolding */
.section {
  padding: clamp(64px, 8vw, 120px) 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.section:first-of-type { border-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: baseline;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-head .kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.section-head h2 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 16px 0 0;
  max-width: 18ch;
  text-wrap: pretty;
}
.section-head h2 em {
  font-style: normal;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.85em;
  color: var(--accent);
}
.section-head .sub {
  font-family: var(--f-sans);
  font-size: 16px;
  color: var(--ink-2);
  max-width: 48ch;
  margin-top: 20px;
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: oklch(0.26 0.012 70); }
.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-accent:hover { filter: brightness(0.97); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-2);
}
.btn-ghost:hover { border-color: var(--ink-2); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-2);
  text-decoration: none;
  transition: all .15s;
}
.social-link:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-2);
}
.placeholder {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 10px,
    color-mix(in oklch, var(--ink) 4%, transparent) 10px 11px
  );
  pointer-events: none;
}
.placeholder .ph-label {
  position: relative;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg);
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}
.logo b { font-weight: 500; }
.logo i {
  font-style: normal;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.9em;
  color: var(--accent);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 64px);
  position: relative;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}
.hero-meta .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 25%, transparent);
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 25%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--accent) 8%, transparent); }
}

.hero h1 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(54px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--ink-3);
  font-weight: 400;
}
.hero h1 .accent-word {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: var(--accent);
}
.hero h1 .accent-word::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.08em;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: left;
  animation: underlineIn 1.1s .3s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes underlineIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-lower {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  margin-top: clamp(40px, 5vw, 72px);
  align-items: end;
}
.hero-lower .lead {
  font-family: var(--f-sans);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 38ch;
  letter-spacing: -0.01em;
}
.hero-lower .actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.hero-lower .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-lower .note {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.hero-lower .note::before {
  content: "↳ ";
  color: var(--accent-ink);
}

@media (max-width: 760px) {
  .hero-lower { grid-template-columns: 1fr; }
}

/* Hero graph (Obsidian-like network) */
.hero-graph {
  margin-top: clamp(48px, 6vw, 80px);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--bg-2);
  position: relative;
  height: clamp(520px, 64vw, 760px);
  overflow: hidden;
}

/* Full-bleed constellation backdrop (não é card; ocupa o hero inteiro) */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-backdrop .hero-graph,
.hero-graph-fullbleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0.45;
}
.hero-backdrop .hero-graph-meta {
  display: none;
}
/* Eleva o conteúdo do hero acima do canvas e torna interativo */
.hero > .wrap {
  position: relative;
  z-index: 1;
}
/* Quando há backdrop ativo, o tema escuro do hero precisa ser legível: */
section.hero.hero--with-backdrop {
  background: linear-gradient(180deg, oklch(0.10 0.012 250) 0%, oklch(0.08 0.012 250) 70%, var(--bg) 100%);
  color: oklch(0.96 0.005 250);
}
.hero--with-backdrop .hero-meta,
.hero--with-backdrop .lead,
.hero--with-backdrop .note {
  color: oklch(0.78 0.01 250);
}
.hero--with-backdrop h1 {
  color: oklch(0.98 0.005 250);
}
.hero--with-backdrop h1 em {
  color: oklch(0.78 0.01 250);
}
.hero--with-backdrop .btn-ghost {
  color: oklch(0.96 0.005 250);
  border-color: oklch(0.96 0.005 250 / 0.25);
}
.hero--with-backdrop .btn-ghost:hover {
  background: oklch(0.96 0.005 250 / 0.08);
}
[data-theme="dark"] .hero-graph {
  background: oklch(0.13 0.01 70);
}
.hero-graph canvas {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-graph-meta {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  z-index: 2;
  pointer-events: none;
}
.hero-graph-meta span:first-child {
  color: color-mix(in oklch, var(--accent) 70%, var(--ink-2));
}
.hero-graph-meta span:first-child::before {
  content: "";
}

/* Hero visual card — terminal-ish chat transcript */
.hero-visual {
  margin-top: clamp(48px, 6vw, 80px);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.hv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hv-head .tabs { display: flex; gap: 18px; }
.hv-head .tabs span { opacity: 0.5; }
.hv-head .tabs span.active { opacity: 1; color: var(--ink); }
.hv-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 380px;
}
@media (max-width: 760px) {
  .hv-body { grid-template-columns: 1fr; }
}
.hv-left {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--rule);
}
.hv-msg {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  animation: msgIn .5s cubic-bezier(.2,.8,.2,1) both;
}
.hv-msg:nth-child(1) { animation-delay: .1s; }
.hv-msg:nth-child(2) { animation-delay: .7s; }
.hv-msg:nth-child(3) { animation-delay: 1.4s; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.hv-msg .who {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 2px;
  min-width: 64px;
  flex-shrink: 0;
}
.hv-msg.agent .who { color: var(--accent-ink); }
.hv-msg .txt { flex: 1; }
.hv-msg .txt strong { font-weight: 600; }
.hv-msg .chip {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 2px 6px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 2px;
  color: var(--ink-2);
}

.hv-right {
  padding: 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
}
.hv-right .label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.hv-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
}
.hv-stat:last-of-type { border-bottom: 0; }
.hv-stat .k { color: var(--ink-3); }
.hv-stat .v {
  font-family: var(--f-serif);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hv-stat .v em { font-style: italic; color: var(--accent-ink); }

/* ── Logos strip ─────────────────────────────────────────────────────── */
.logos {
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.logos-row {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.logos-row .lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.logos-row .client {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
  opacity: 0.7;
  transition: opacity .2s ease, color .2s ease;
}
.logos-row .client:hover { opacity: 1; color: var(--ink); }

/* ── Como funciona ───────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.step {
  padding: 36px 28px 40px;
  border-right: 1px solid var(--rule);
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.step:last-child { border-right: 0; }
.step .step-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.step h3 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.step h3 em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.step p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  max-width: 38ch;
}
.step .step-vis {
  margin-top: auto;
  padding-top: 28px;
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .step:last-child { border-bottom: 0; }
}

/* Step visualizations (pure CSS) */
.sv-pipe {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sv-pipe .node {
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
}
.sv-pipe .node.active {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 18%, var(--bg));
  color: var(--accent-ink);
}
.sv-pipe .arr { color: var(--rule-2); }

.sv-bars { display: flex; align-items: flex-end; gap: 4px; height: 60px; }
.sv-bars span {
  flex: 1;
  background: var(--ink);
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}
.sv-bars span:nth-child(1) { height: 30%; }
.sv-bars span:nth-child(2) { height: 52%; }
.sv-bars span:nth-child(3) { height: 68%; }
.sv-bars span:nth-child(4) { height: 75%; background: var(--accent); opacity: 1; }
.sv-bars span:nth-child(5) { height: 88%; background: var(--accent); opacity: 1; }
.sv-bars span:nth-child(6) { height: 92%; background: var(--accent); opacity: 1; }

.sv-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.sv-grid i {
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--bg);
}
.sv-grid i.on { background: var(--accent); border-color: var(--accent); }

/* ── Agentes (cards grid) ────────────────────────────────────────────── */
.agents {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.agent {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s ease, transform .2s ease;
  position: relative;
  overflow: hidden;
}
.agent:hover { border-color: var(--ink-2); }
.agent-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.agent-head .tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.agent-head .state {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.agent-head .state::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.agent h4 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}
.agent h4 em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.agent p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  max-width: 34ch;
}
.agent .skills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.agent .skills span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-2);
}
.agent .metric {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 2px;
  border-top: 1px dashed var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
}
.agent .metric .k { color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.agent .metric .v { color: var(--ink); font-variant-numeric: tabular-nums; }

@media (max-width: 960px) { .agents { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .agents { grid-template-columns: 1fr; } }

/* ── Integrações ─────────────────────────────────────────────────────── */
.integrations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.integ {
  aspect-ratio: 1.4 / 1;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
  transition: background .2s ease;
  position: relative;
}
.integ:hover { background: var(--bg-2); }
.integ:nth-child(n+5) { border-bottom: 0; }
.integ-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 44px;
  margin: 6px 0 0;
  filter: grayscale(1);
  opacity: .85;
  transition: filter .2s ease, opacity .2s ease;
}
.integ:hover .integ-logo { filter: grayscale(0); opacity: 1; }
.integ-logo img { height: 36px; width: auto; max-width: 70%; object-fit: contain; object-position: left center; }
.integ-logo--file { filter: none; opacity: 1; }
.integ-logo--file img { height: 40px; }
.integ-logo--invert img { filter: invert(1) hue-rotate(180deg); }
.integ-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--bg-2);
}
.integ .name {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.integ .cat {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.integ .mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg-2);
}
@media (max-width: 720px) {
  .integrations { grid-template-columns: repeat(2, 1fr); }
  .integ:nth-child(n+5) { border-bottom: 1px solid var(--rule); }
  .integ:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ── Casos de uso ────────────────────────────────────────────────────── */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.case {
  padding: 44px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 340px;
  position: relative;
}
.case:nth-child(even) { border-right: 0; }
.case .case-kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
}
.case h3 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 18ch;
}
.case h3 em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.case p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  max-width: 46ch;
}
.case .case-stats {
  display: flex;
  gap: 32px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.case .case-stats .stat .n {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.case .case-stats .stat .n em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 0.85em;
}
.case .case-stats .stat .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
  max-width: 20ch;
  line-height: 1.3;
}
@media (max-width: 760px) {
  .cases { grid-template-columns: 1fr; }
  .case { border-right: 0; }
}

/* ── Preços ──────────────────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg);
  position: relative;
}
.plan.featured {
  border-color: var(--ink);
  background: var(--bg-2);
}
.plan.featured::before {
  content: "Mais escolhido";
  position: absolute;
  top: -10px; left: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.plan-head .tier {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.plan-head h4 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 4px 0 0;
}
.plan-head h4 em { font-style: normal; font-family: var(--f-mono); font-size: 0.75em; color: var(--accent); margin-left: 4px; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 0 6px;
  border-bottom: 1px dashed var(--rule);
}
.plan-price .amt {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 48px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price .unit {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-price .custom {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink-2);
}
.plan-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.plan-feats li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.plan-feats li::before {
  content: "+";
  font-family: var(--f-mono);
  color: var(--accent-ink);
  font-weight: 600;
  flex-shrink: 0;
}
.plan-feats li.muted { color: var(--ink-3); }
.plan-feats li.muted::before { content: "—"; color: var(--rule-2); }
.plan .plan-cta { margin-top: auto; }
.plan .plan-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 960px) {
  .pricing { grid-template-columns: 1fr; }
}

/* ── CTA final ───────────────────────────────────────────────────────── */
.cta-final {
  padding: clamp(80px, 10vw, 160px) 0;
  text-align: left;
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, color-mix(in oklch, var(--accent) 28%, transparent), transparent 50%),
    radial-gradient(circle at 15% 80%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.cta-final .wrap { position: relative; z-index: 1; }
.cta-final h2 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
  max-width: 16ch;
  text-wrap: balance;
}
.cta-final h2 em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.cta-final .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cta-final .tag-line {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-final .tag-line span::before {
  content: "●";
  color: var(--accent);
  margin-right: 6px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h5 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-grid .col-brand h5 { display: none; }
.footer-grid .col-brand p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink-2);
  max-width: 28ch;
  margin: 16px 0 0;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-grid li a {
  color: var(--ink-2);
  transition: color .15s ease;
}
.footer-grid li a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .col-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Ticker ──────────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  background: var(--bg-2);
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tickerMove 40s linear infinite;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ticker-track span::before {
  content: "✦";
  color: var(--accent);
  margin-right: 14px;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Alt hero variant */
body[data-hero="split"] .hero h1 {
  font-size: clamp(44px, 6.2vw, 88px);
}
body[data-hero="split"] .hero-lower {
  grid-template-columns: 1.2fr 1fr;
}


/* ── Faixa de prova ──────────────────────────────────────────────────── */
.proof {
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
  overflow: hidden;
}
.proof-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.proof-num {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.25em;
}
.proof-num em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 0.32em;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: center;
  transform: translateY(-0.4em);
}
.proof-lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: 22ch;
}
.proof-divider {
  width: 1px;
  background: var(--rule);
  align-self: stretch;
}
@media (max-width: 880px) {
  .proof-row { flex-wrap: wrap; gap: 24px 36px; }
  .proof-item { flex: 1 1 calc(50% - 36px); }
  .proof-divider { display: none; }
}

/* ── Por que a gente ─────────────────────────────────────────────────── */
.section--why { background: var(--bg-2); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.why-card {
  padding: 44px 36px 36px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.why-card:last-child { border-right: 0; }
.why-num {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.why-card h3 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.why-card h3 em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 0.78em;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.why-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 38ch;
}
.why-vis {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
}

/* ops shifts pill row */
.ops-shifts {
  display: flex;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.ops-shifts .shift {
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-3);
}
.ops-shifts .shift.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* deflect bar */
.deflect-bar {
  display: flex;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.deflect-bar .d-ai,
.deflect-bar .d-hu { white-space: nowrap; min-width: 0; overflow: hidden; }
.deflect-bar .d-ai {
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 500;
}
.deflect-bar .d-hu {
  background: var(--ink-2);
  color: var(--bg);
  display: flex;
  align-items: center;
  padding: 0 12px;
}

/* cost line */
.cost-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.cost-line em {
  font-style: normal;
  color: var(--ink);
  font-size: 14px;
}
.cost-line .cl-new em { color: var(--accent); }
.cost-line .cl-arr { color: var(--ink-3); }

@media (max-width: 880px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card { border-right: 0; border-bottom: 1px solid var(--rule); }
  .why-card:last-child { border-bottom: 0; }
}

/* ── Fluxo de operação ───────────────────────────────────────────────── */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.flow-step {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid transparent;
}
.flow-step--ai { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.flow-step--human { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.flow-step--csat { background: transparent; }
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  color: var(--ink-3);
  font-size: 22px;
  padding: 0 6px;
}
.flow-time {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-block;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.flow-step--ai .flow-time { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--rule)); }
.flow-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.flow-step h3 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.flow-step h3 em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 0.78em;
  color: var(--accent);
}
.flow-step--ai h3 em { color: var(--accent); }
.flow-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 32ch;
}
.flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.flow-chips span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
@media (max-width: 1100px) {
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }
  .flow-step {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
}


/* ===== Cookie banner LGPD ===== */
/* Cores fixas (não dependem do tema) — sempre legível em claro e escuro */
/* === Cookie banner v2 — compacto, canto inferior esquerdo === */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: auto;
  z-index: 9997;
  max-width: 360px;
  width: calc(100vw - 40px);
  pointer-events: none;
  /* respeita safe-area iPhone */
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: calc(20px + env(safe-area-inset-left, 0px));
  animation: cookie-slide-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
#cookie-banner .cookie-card {
  pointer-events: auto;
  background: #ffffff;
  color: #111111;
  border-radius: 16px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    0 20px 48px -12px rgba(0, 0, 0, 0.30),
    0 8px 16px -8px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
}
#cookie-banner .cookie-card::before {
  /* ícone de cookie estilizado */
  content: "🍪";
  position: absolute;
  top: -10px;
  left: 18px;
  font-size: 20px;
  background: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
}
#cookie-banner .cookie-text strong {
  font-family: var(--f-sans, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: #0A0A0A;
  display: block;
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
}
#cookie-banner .cookie-text p {
  font-family: var(--f-sans, system-ui, sans-serif);
  font-size: 12.5px;
  line-height: 1.5;
  color: #525252;
  margin: 0;
}
#cookie-banner .cookie-text a {
  color: #3B5BFF;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
#cookie-banner .cookie-text a:hover {
  color: #2D4BEF;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
}
#cookie-banner .cookie-actions button {
  flex: 1;
  height: 38px;
  font-size: 12.5px;
  font-family: var(--f-sans, system-ui, sans-serif);
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
  border: 1px solid;
}
#cookie-banner .cookie-actions button:active { transform: scale(0.97); }
#cookie-banner .cookie-actions button[data-cookie="essential"] {
  background: #ffffff;
  color: #525252;
  border-color: #E4E4E7;
}
#cookie-banner .cookie-actions button[data-cookie="essential"]:hover {
  background: #FAFAFA;
  border-color: #A1A1AA;
  color: #18181B;
}
#cookie-banner .cookie-actions button[data-cookie="all"] {
  background: #0A0A0A;
  color: #FFFFFF;
  border-color: #0A0A0A;
}
#cookie-banner .cookie-actions button[data-cookie="all"]:hover {
  background: #27272A;
  border-color: #27272A;
}

@keyframes cookie-slide-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  #cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    width: auto;
  }
  #cookie-banner .cookie-card { padding: 16px; }
  #cookie-banner .cookie-text p { font-size: 12px; }
  #cookie-banner .cookie-actions button { height: 40px; font-size: 12px; }
}

/* Dark theme do site (data-theme="dark") — mantém o card branco mas ajusta sombra */
body[data-theme="dark"] #cookie-banner .cookie-card {
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.55),
    0 10px 20px -8px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  #cookie-banner { animation: none; }
}

/* ===== Form de contato ===== */
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}
.contact-form .field {
  display: grid;
  gap: 6px;
}
.contact-form label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,91,255,0.15);
}
.contact-form textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--f-sans);
}
.contact-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form .submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.contact-form .form-msg {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.contact-form .form-msg.ok { color: var(--accent); }
.contact-form .form-msg.err { color: #C0392B; }
.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.contact-form .consent input {
  margin-top: 3px;
}
.contact-form .consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 480px) {
  .contact-form .row-2 { grid-template-columns: 1fr; }
}


/* ===== CTA Final + Form layout ===== */
.cta-final-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.cta-final-left h2 {
  margin-top: 0;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.cta-final-right {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 32px;
}
.cta-final-right .form-kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.cta-final-right .contact-form {
  max-width: 100%;
}
@media (max-width: 900px) {
  .cta-final-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ===== WhatsApp floating button + balão ===== */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--f-sans, system-ui, -apple-system, sans-serif);
  /* respeita safe-area do iPhone */
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
}
.wa-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0,0,0,0.18);
  transition: transform .15s ease, box-shadow .15s ease;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.wa-icon svg {
  display: block;
}
.wa-fab:hover .wa-icon {
  transform: scale(1.06);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55), 0 3px 8px rgba(0,0,0,0.22);
  animation: none;
}
.wa-bubble {
  background: #ffffff;
  color: #0A0A0A;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.08);
  white-space: nowrap;
  position: relative;
  opacity: 0;
  transform: translateX(20px) scale(0.92);
  animation: wa-bubble-in 0.6s ease-out 1.5s forwards, wa-bubble-bounce 2.5s ease-in-out 2.5s infinite;
  transform-origin: bottom right;
}
.wa-bubble::after {
  /* "rabo" do balão de chat */
  content: "";
  position: absolute;
  right: -6px;
  bottom: 12px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 2px -2px 4px rgba(0,0,0,0.04);
}

.wa-fab.wa-fab-bubble-hidden .wa-bubble {
  animation: wa-bubble-out 0.4s ease-in forwards;
  pointer-events: none;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0,0,0,0.18), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0,0,0,0.18), 0 0 0 14px rgba(37, 211, 102, 0); }
}
@keyframes wa-bubble-in {
  0% { opacity: 0; transform: translateX(20px) scale(0.92); }
  60% { opacity: 1; transform: translateX(-4px) scale(1.02); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes wa-bubble-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  10% { transform: translateY(-4px) scale(1.04); }
  20% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-2px) scale(1.02); }
  40%, 90% { transform: translateY(0) scale(1); }
}
@keyframes wa-bubble-out {
  0% { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(10px) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-icon, .wa-bubble { animation: none !important; }
  .wa-bubble { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .wa-bubble {
    font-size: 12.5px;
    padding: 8px 12px;
  }
  .wa-icon {
    width: 52px;
    height: 52px;
  }
  .wa-icon svg {
    width: 26px;
    height: 26px;
  }
}

/* ============================================================
 * Mobile responsiveness pass — overrides finais (≤640px)
 * Conserta bugs identificados: form 2-col não stackava, CTA buttons
 * apertados, submit row sem wrap, tag-line invadindo viewport.
 * ============================================================ */
@media (max-width: 640px) {
  /* Form de contato — stack tudo em 1 coluna */
  .contact-form .row-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact-form .submit-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .contact-form .submit-row .btn {
    width: 100%;
    justify-content: center;
  }
  .contact-form .form-msg {
    text-align: center;
  }

  /* CTA final — botões empilhados full-width */
  .cta-final .cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .cta-final .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-final .tag-line {
    gap: 12px 18px;
    font-size: 10.5px;
  }
}

/* Telas muito estreitas (<400px) — refinos finais */
@media (max-width: 400px) {
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px; /* evita zoom automático do iOS Safari ao focar */
  }
}

/* Anti horizontal-scroll global — `clip` não quebra `position: sticky` (nav fixo) */
html, body {
  max-width: 100vw;
  overflow-x: clip;
}

/* Botão Entrar no nav — esconde "Agendar demo" antes em telas estreitas
   pra evitar 2 botões empilhados no mobile (que já tem botão flutuante WA + form CTA) */
@media (max-width: 540px) {
  .nav-cta .btn-primary { display: none; }
  .nav-cta .nav-login { padding: 0 14px; }
}
