/* NexoHub — site de vendas.
   Cores: tokens do Design System do app (docs/DESIGN-SYSTEM.md do produto).
   Tipografia: Funnel Display (títulos) + Funnel Sans (texto). */

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #111827;
  --ink-2: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --hover: #f3f4f6;

  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-active: #1e40af;
  --blue-soft: #eff6ff;
  --blue-subtle: #dbeafe;
  --blue-text: #1d4ed8;

  --violet: #7c3aed;
  --violet-soft: #f5f3ff;
  --violet-text: #6d28d9;

  --green: #16a34a;
  --green-soft: #f0fdf4;
  --green-text: #15803d;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --amber-text: #b45309;
  --pink: #db2777;

  --night: #0b1120;
  --night-card: #111827;
  --night-line: #1f2937;
  --night-ink: #f3f4f6;
  --night-ink-2: #d1d5db;

  --font-display: "Funnel Display", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Funnel Sans", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(17, 24, 39, 0.14);
  --shadow-lg: 0 32px 64px -24px rgba(30, 64, 175, 0.28), 0 8px 20px -12px rgba(17, 24, 39, 0.16);

  --wrap: 1160px;
  --gutter: 24px;
}

/* Registrada como número para poder ser animada (o avanço da linha do topo) */
@property --progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

svg {
  display: block;
  flex: none;
}

.i {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
}

.skip:focus {
  top: 16px;
}

/* ---------- Tipos ---------- */

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  max-width: 62ch;
  text-wrap: pretty;
}

.head {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.head .h2 {
  max-width: 22ch;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 150ms, border-color 150ms, color 150ms, transform 150ms;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.6);
}

.btn--primary:hover {
  background: var(--blue-hover);
}

.btn--primary:active {
  background: var(--blue-active);
  transform: translateY(1px);
}

.btn--ghost {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--hover);
}

.btn--quiet {
  color: var(--blue-text);
  padding-inline: 12px;
}

.btn--quiet:hover {
  background: var(--blue-soft);
}

.btn--lg {
  min-height: 56px;
  padding-inline: 30px;
  font-size: 1.0625rem;
}

.btn--onnight {
  background: #fff;
  color: var(--ink);
}

.btn--onnight:hover {
  background: var(--blue-subtle);
}

/* ---------- Aviso e navegação ---------- */

.announce {
  background: var(--night);
  color: var(--night-ink);
  font-size: 0.875rem;
  text-align: center;
  padding: 9px 0;
}

.announce a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}

.nav.is-stuck {
  border-bottom-color: var(--line);
}

.nav__in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.brand b {
  font-weight: inherit;
  color: var(--blue);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}

.nav__links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 150ms, color 150ms;
}

.nav__links a:hover {
  background: var(--hover);
  color: var(--ink);
}

.nav__actions {
  display: flex;
  gap: 10px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto;
  height: 760px;
  z-index: -1;
  background:
    radial-gradient(42% 52% at 28% 30%, rgba(37, 99, 235, 0.16), transparent 70%),
    radial-gradient(38% 48% at 74% 22%, rgba(124, 58, 237, 0.14), transparent 70%);
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.dot--ig {
  background: var(--pink);
}

.dot--fb {
  background: var(--blue);
}

.dot--wa {
  background: var(--green);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 1.1rem + 6.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-inline: auto;
}

.hero__line {
  display: block;
}

/* Palavra que troca no título: as quatro portas de entrada de um cliente */
.swapper {
  position: relative;
  display: inline-grid;
  justify-items: start;
  white-space: nowrap;
  transition: width 560ms cubic-bezier(0.3, 0.7, 0.2, 1);
}

.swapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.02em;
  height: 0.07em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.swapper__word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(6px);
  transition:
    opacity 420ms ease,
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 420ms ease;
}

.swapper__word.is-on {
  opacity: 1;
  transform: none;
  filter: none;
}

.swapper__word.is-out {
  transform: translateY(-0.4em);
}

.hero__sub {
  margin: 24px auto 0;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Linha do nexo: os quatro momentos de um lead. É também o controle da tela abaixo. */

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 720px;
  margin: 36px auto 0;
}

.journey::before,
.journey::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 12.5%;
  height: 2px;
  border-radius: 2px;
}

.journey::before {
  right: 12.5%;
  background: var(--line-strong);
}

.journey::after {
  width: calc(75% * var(--progress));
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

/* Ponto que corre pela linha enquanto a demonstração avança sozinha */
.journey__runner {
  position: absolute;
  top: 5px;
  left: calc(12.5% + 75% * var(--progress));
  z-index: 2;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.22), 0 0 14px 2px rgba(124, 58, 237, 0.55);
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}

.journey.is-auto .journey__runner {
  opacity: 1;
}

.journey__step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0 4px 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
}

.journey__node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  transition: border-color 300ms, background-color 300ms, box-shadow 300ms;
}

.journey__step.is-done .journey__node {
  border-color: var(--blue);
  background: var(--blue);
}

.journey__step.is-active {
  color: var(--ink);
  font-weight: 600;
}

.journey__step.is-active .journey__node {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 5px var(--blue-subtle);
}

.journey__step:hover {
  color: var(--ink);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  margin-top: 32px;
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.ticks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticks svg {
  color: var(--green);
}

/* ---------- Janela do app (demonstração feita em HTML) ---------- */

.app {
  margin: clamp(32px, 4vw, 48px) auto 0;
  max-width: 1040px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: 0;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.45;
  overflow: hidden;
}

.app--boxed {
  margin: 0;
  max-width: none;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.app__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.8125rem;
}

.app__dots {
  display: flex;
  gap: 6px;
}

.app__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.app__body {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 420px;
}

.app__side {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
}

.app__side .brand {
  display: block;
  font-size: 1.125rem;
  padding: 0 10px 14px;
}

.app__side li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-weight: 500;
}

.app__side li.is-active {
  background: var(--blue-soft);
  color: var(--blue-text);
}

.app__main {
  position: relative;
  padding: 20px;
  background: var(--bg);
  min-width: 0;
}

.screen[hidden] {
  display: none;
}

.screen__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag--blue {
  background: var(--blue-soft);
  color: var(--blue-text);
}

.tag--violet {
  background: var(--violet-soft);
  color: var(--violet-text);
}

.tag--green {
  background: var(--green-soft);
  color: var(--green-text);
}

.tag--amber {
  background: var(--amber-soft);
  color: var(--amber-text);
}

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-subtle);
  color: var(--blue-text);
  font-size: 0.75rem;
  font-weight: 700;
  flex: none;
}

.avatar--v {
  background: var(--violet-soft);
  color: var(--violet-text);
}

.avatar--g {
  background: var(--green-soft);
  color: var(--green-text);
}

.avatar--a {
  background: var(--amber-soft);
  color: var(--amber-text);
}

/* Tela 1 e 2: comentário que vira DM */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.post__media {
  height: 120px;
  border-radius: var(--r-sm);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(124, 58, 237, 0.9)),
    var(--blue);
  margin-bottom: 12px;
}

.post__caption {
  color: var(--ink-2);
}

.comment {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.comment strong,
.conv strong,
.deal strong {
  display: block;
  font-weight: 600;
}

.rule {
  display: grid;
  gap: 10px;
}

.rule__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line);
}

.rule__row svg {
  color: var(--violet);
}

.rule__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-text);
  font-weight: 600;
}

/* Conversa */

.thread {
  display: grid;
  gap: 8px;
  align-content: start;
}

.thread__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.thread__head .tag {
  margin-left: auto;
}

.bubble {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 16px 16px 16px 4px;
  background: var(--hover);
  justify-self: start;
}

.bubble--out {
  justify-self: end;
  border-radius: 16px 16px 4px 16px;
  background: var(--blue);
  color: #fff;
}

.bubble small {
  display: block;
  margin-top: 4px;
  font-size: 0.6875rem;
  opacity: 0.75;
}

/* Inbox */

.inbox {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
}

.convs {
  padding: 6px;
}

.conv {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--r-sm);
}

.conv.is-active {
  background: var(--blue-soft);
}

.conv > div {
  min-width: 0;
  flex: 1;
}

.conv > div > span {
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Kanban */

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.col {
  background: var(--hover);
  border-radius: var(--r-md);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.col__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 4px;
  font-weight: 600;
}

.col__head span {
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.col__head::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stage, var(--muted));
  margin-right: -2px;
}

.col__head b {
  margin-right: auto;
  font-weight: inherit;
}

.deal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.deal__value {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.deal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deal.is-new {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-subtle);
}

/* ---------- Faixas ---------- */

.band {
  padding: clamp(72px, 9vw, 128px) 0;
}

.band--white {
  background: var(--card);
  border-block: 1px solid var(--line);
}

.band--white + .band--white {
  border-top: 0;
}

.band--violet {
  background: var(--violet-soft);
}

.band--tint {
  background: var(--blue-soft);
}

.hero + .strip {
  position: relative;
  background: var(--card);
  border-block: 1px solid var(--line);
}

/* Faixa de recursos: parada e quebrada em linhas por padrão; o script liga a rolagem */
.marquee {
  padding: 24px var(--gutter);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.marquee__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 44px;
}

.marquee__track li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.marquee__track svg {
  color: var(--blue);
}

.marquee.is-running {
  display: flex;
  padding-inline: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee.is-running .marquee__track {
  flex: none;
  flex-wrap: nowrap;
  padding-right: 44px;
  animation: marquee 46s linear infinite;
}

.marquee.is-running:hover .marquee__track {
  animation-play-state: paused;
}

/* ---------- Problema ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.split__head {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
}

.pains li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line-strong);
}

.pains li:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.pains svg {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--amber);
}

.pains h3 {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.pains p {
  grid-column: 2;
  color: var(--ink-2);
  max-width: 54ch;
}

/* ---------- Automações (abas + fluxo) ---------- */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 20px;
  align-items: stretch;
}

.demo__tabs {
  display: grid;
  gap: 6px;
  align-content: start;
}

.demo__tab {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  color: var(--ink-2);
  transition: background-color 150ms, border-color 150ms, color 150ms;
}

.demo__tab strong {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.demo__tab span {
  font-size: 0.9375rem;
}

.demo__tab:hover {
  background: var(--bg);
}

.demo__tab[aria-selected="true"] {
  background: var(--blue-soft);
  border-color: var(--blue-subtle);
}

.demo__tab[aria-selected="true"] strong {
  color: var(--blue-text);
}

.flow {
  height: 100%;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-xl);
  background: var(--night);
  color: var(--night-ink);
  display: grid;
  align-content: center;
  gap: 0;
}

.flow[hidden] {
  display: none;
}

.flow__node {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 2px 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--night-card);
  border: 1px solid var(--night-line);
}

.flow__node + .flow__node {
  margin-top: 28px;
}

.flow__node + .flow__node::before {
  content: "";
  position: absolute;
  left: 37px;
  top: -29px;
  height: 28px;
  width: 2px;
  background: linear-gradient(var(--blue), var(--violet));
}

.flow__node svg {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

.flow__node--action svg {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}

.flow__node small {
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.2;
}

.flow__node p {
  grid-column: 2;
  font-weight: 500;
  line-height: 1.35;
}

.flow__result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--night-line);
  color: var(--night-ink-2);
  font-size: 0.9375rem;
}

/* ---------- Blocos de recurso (texto + tela) ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.feature--flip .feature__text {
  order: 2;
}

.feature__text {
  display: grid;
  gap: 20px;
}

.checks {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.checks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  color: var(--ink-2);
}

.checks li strong {
  color: var(--ink);
  font-weight: 600;
}

.checks svg {
  margin-top: 2px;
  color: var(--blue);
}

.band--violet .checks svg {
  color: var(--violet);
}

.note {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 60ch;
}

.kanban-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}

.kanban-wrap .app {
  min-width: 760px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: clamp(32px, 4vw, 48px);
}

.facts li {
  padding-top: 16px;
  border-top: 2px solid var(--blue);
  color: var(--ink-2);
  font-size: 0.9688rem;
}

.facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Rastreamento: do anúncio ao valor fechado */

.trace {
  display: grid;
  gap: 0;
}

.trace__row {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.trace__row + .trace__row {
  border-top: 1px solid var(--line);
}

.trace__row svg {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}

.trace__row > div > span {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}

.trace__row strong {
  font-weight: 600;
}

/* IA */

.ai-card {
  background: var(--card);
  border: 1px solid #ddd6fe;
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: 0 24px 48px -28px rgba(109, 40, 217, 0.45);
  font-size: 0.875rem;
  line-height: 1.45;
  display: grid;
  gap: 12px;
}

.ai-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-text);
  font-size: 0.8125rem;
}

.switch i {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--violet);
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

.bubble--ai {
  justify-self: end;
  border-radius: 16px 16px 4px 16px;
  background: var(--violet-soft);
  color: var(--ink);
  border: 1px solid #ddd6fe;
}

/* ---------- Módulos ---------- */

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.modules li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.modules svg {
  color: var(--blue);
  margin-bottom: 6px;
}

.modules h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.modules p {
  color: var(--ink-2);
  font-size: 0.9688rem;
}

/* ---------- Comparativo ---------- */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
}

.compare th,
.compare td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare tr:last-child td,
.compare tr:last-child th {
  border-bottom: 0;
}

.compare thead th {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
}

.compare tbody th {
  font-weight: 600;
  width: 30%;
}

.compare td {
  color: var(--ink-2);
}

.compare .is-us {
  background: var(--blue-soft);
  color: var(--ink);
  width: 36%;
}

.compare thead .is-us {
  color: var(--blue-text);
}

.compare td.is-us {
  font-weight: 500;
}

/* ---------- Planos ---------- */

/* As linhas são compartilhadas (subgrid) para preço, botão e lista ficarem alinhados entre os planos */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: 24px;
  max-width: 1000px;
  margin-inline: auto;
}

.tier {
  position: relative;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tier__top {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(24px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
}

.tier__top > * {
  position: relative;
}

.tier__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.tier__for {
  color: var(--ink-2);
  max-width: 36ch;
}

.tier__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.tier__value small {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tier__value span {
  font-size: clamp(4rem, 3rem + 4vw, 5.5rem);
}

.tier__value em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.tier__top .btn {
  margin-top: 8px;
  width: 100%;
}

.tier__fine {
  margin-top: -4px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.tier__list {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(24px, 3.5vw, 40px);
}

.tier__list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.9688rem;
}

.tier__list svg {
  margin-top: 3px;
  color: var(--blue);
}

/* Recursos de IA fora do plano: riscados, com ícone de X (não só a cor) */
.tier__list .is-off {
  color: var(--muted);
}

.tier__list .is-off > span {
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.tier__list .is-off svg {
  color: var(--muted);
}

/* Plano Completo: escuro, com destaque */
.tier--featured {
  background: var(--night);
  color: var(--night-ink);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.tier--featured .tier__top {
  border-bottom-color: var(--night-line);
  overflow: hidden;
}

.tier--featured .tier__top::before {
  content: "";
  position: absolute;
  inset: 30% -30% -60% -10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(37, 99, 235, 0.5), rgba(124, 58, 237, 0.25) 55%, transparent 75%);
  pointer-events: none;
}

.tier--featured .tier__for,
.tier--featured .tier__list li {
  color: var(--night-ink-2);
}

.tier--featured .tier__value em {
  color: #9ca3af;
}

.tier--featured .tier__list svg {
  color: #93c5fd;
}

.tier--featured .tier__list .is-ai {
  color: #fff;
  font-weight: 500;
}

.tier--featured .tier__list .is-ai svg {
  color: #c4b5fd;
}

.tier__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.tier__badge--trial {
  background: var(--green-soft);
  color: var(--green-text);
}

.tier__note {
  margin: -8px clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px);
  padding-top: 16px;
  border-top: 1px dashed var(--night-line);
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ---------- Passos ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 20px 0 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.steps li::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 40px;
  right: 0;
  height: 2px;
  background: var(--blue-subtle);
}

.steps li:last-child::after {
  display: none;
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.steps p {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* ---------- Dúvidas ---------- */

.faq details {
  border-top: 1px solid var(--line-strong);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms;
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(225deg);
}

.faq details p {
  padding: 0 40px 24px 0;
  color: var(--ink-2);
  max-width: 64ch;
}

/* ---------- Chamada final e rodapé ---------- */

.final {
  background: var(--night);
  color: var(--night-ink);
  text-align: center;
  padding: clamp(80px, 10vw, 144px) 0;
  position: relative;
  overflow: hidden;
}

.final::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 520px;
  background:
    radial-gradient(40% 60% at 30% 50%, rgba(37, 99, 235, 0.4), transparent 70%),
    radial-gradient(40% 60% at 70% 50%, rgba(124, 58, 237, 0.35), transparent 70%);
  pointer-events: none;
}

.final .wrap {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 24px;
}

.final .h2 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.75rem);
}

.final p {
  color: var(--night-ink-2);
  max-width: 52ch;
  font-size: 1.125rem;
}

.foot {
  background: var(--night);
  color: #9ca3af;
  border-top: 1px solid var(--night-line);
  padding: 32px 0;
  font-size: 0.9375rem;
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.foot .brand {
  color: #fff;
  font-size: 1.25rem;
}

.foot .brand b {
  color: #60a5fa;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot a:hover {
  color: #fff;
}

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

@media (max-width: 1000px) {
  .nav__links {
    display: none;
  }

  .nav__actions {
    margin-left: auto;
  }

  .split,
  .feature,
  .demo,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Um plano embaixo do outro: cada cartão volta a ter as próprias linhas */
  .plans {
    grid-template-rows: none;
    row-gap: 24px;
  }

  .tier {
    grid-row: auto;
    grid-template-rows: none;
  }

  .split__head {
    position: static;
  }

  /* Abas de automação viram uma fileira rolável, com o fluxo logo abaixo */
  .demo__tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .demo__tab {
    flex: none;
    padding: 10px 16px;
    border-color: var(--line);
    border-radius: 999px;
  }

  .demo__tab strong {
    font-size: 1rem;
  }

  .demo__tab span {
    display: none;
  }

  .feature--flip .feature__text {
    order: 0;
  }

  .modules,
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .steps li {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 18px;
    padding-right: 0;
  }

  .steps li::before {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .steps li::after {
    top: 40px;
    left: 19px;
    right: auto;
    width: 2px;
    height: calc(100% - 12px);
  }

  .steps h3 {
    align-self: end;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  .nav__actions .btn--ghost {
    display: none;
  }

  .journey {
    margin-top: 32px;
  }

  .journey__step {
    font-size: 0.8125rem;
  }

  .app__body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .app__side {
    display: none;
  }

  .app__main {
    padding: 14px;
  }

  .duo,
  .inbox {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modules {
    grid-template-columns: minmax(0, 1fr);
  }

  .modules li {
    padding: 22px 20px;
  }

  .pains li {
    grid-template-columns: minmax(0, 1fr);
  }

  .pains svg {
    grid-row: auto;
    margin-bottom: 8px;
  }

  .pains p {
    grid-column: 1;
  }

  .faq details p {
    padding-right: 0;
  }

  .hero__cta .btn--lg {
    width: 100%;
  }

  /* As três linhas do título cabem inteiras, sem quebra no meio */
  .hero__title {
    font-size: clamp(1.75rem, 9vw, 3.4rem);
  }

  .app__bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ping--c {
    display: none;
  }

  .ping--a {
    right: 10px;
  }

  .ping--b {
    left: 10px;
  }

  .ticks {
    display: grid;
    justify-content: center;
    text-align: left;
  }

  .ticks li {
    align-items: flex-start;
  }

  .ticks svg {
    margin-top: 3px;
  }
}

/* ---------- Movimento ----------
   As classes .fx e [data-animate] são colocadas pelo script.js, e só quando a pessoa
   não pediu menos movimento. Sem script, tudo aparece parado e visível. */

.fx {
  --delay: calc(var(--i, 0) * var(--step, 140ms));
  opacity: 0;
  transform: translateY(12px);
}

.fx.bubble,
.fx.conv {
  transform: translateX(-14px);
}

.fx.bubble--out,
.fx.bubble--ai {
  transform: translateX(14px);
}

.fx.tag,
.fx.comment,
.fx.rule__status,
.fx.deal__meta {
  transform: scale(0.86);
  transform-origin: left center;
}

.is-in .fx {
  opacity: 1;
  transform: none;
  transition:
    opacity 420ms ease var(--delay),
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay);
}

/* Fluxo de automação: a linha desce de um passo para o outro */
.flow[data-animate] .flow__node + .flow__node::before {
  transform: scaleY(0);
  transform-origin: top;
}

.flow.is-in .flow__node + .flow__node::before {
  transform: none;
  transition: transform 300ms ease var(--delay);
}

/* Primeiros passos: os números aparecem e a linha avança */
.steps[data-animate] li::before {
  transform: scale(0);
}

.steps[data-animate] li::after {
  transform: scale(0);
  transform-origin: 0 0;
}

.steps.is-in li::before {
  transform: none;
  transition: transform 520ms cubic-bezier(0.3, 1.5, 0.5, 1) var(--delay);
}

.steps.is-in li::after {
  transform: none;
  transition: transform 520ms ease calc(var(--delay) + 260ms);
}

/* IA: o agente "digita" e depois mostra o rascunho */
.swap {
  display: grid;
  justify-items: end;
}

.swap > * {
  grid-area: 1 / 1;
}

.typing {
  display: inline-flex;
  gap: 5px;
  align-self: start;
  padding: 13px 15px;
  border-radius: 16px 16px 4px 16px;
  background: var(--violet-soft);
  border: 1px solid #ddd6fe;
  opacity: 0;
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
}

.ai-card .bubble--ai.fx {
  --delay: 2100ms;
}

.ai-card .deal__meta.fx {
  --delay: 2700ms;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(37, 99, 235, 0.7);
}

/* Abas de automação: barra de tempo na aba aberta enquanto avançam sozinhas */
.demo__tabs {
  position: relative;
}

.demo__tab {
  position: relative;
  overflow: hidden;
}

/* Kanban: cursor que arrasta o card e contadores que mudam quando ele cai */
.deal--arrive {
  position: relative;
}

.deal--arrive::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -9px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8-6 2-2 6z' fill='%23111827' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
}

[data-land],
[data-countup] {
  display: inline-block;
  font-weight: inherit;
}

.bump {
  animation: bump 520ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

/* Inbox: avisos dos três canais em volta da tela */
.feature__art {
  position: relative;
}

.ping {
  position: absolute;
  z-index: 3;
}

.ping--a {
  top: -18px;
  right: 24px;
}

.ping--b {
  bottom: -16px;
  left: 24px;
}

.ping--c {
  bottom: -16px;
  right: 24px;
}

.ping__in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Miniaturas animadas dos módulos ---------- */

.viz {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 96px;
  margin-bottom: 10px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
}

.viz i,
.viz b {
  display: block;
  flex: none;
}

/* Calendário: posts caindo nos dias */
.viz--cal {
  gap: 6px;
}

.viz--cal i {
  position: relative;
  flex: 1;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.viz--cal .on::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 5px;
  background: var(--blue);
}

.viz--cal .on:nth-child(4)::after {
  background: var(--violet);
}

/* Automações: o sinal passa de um passo para o outro */
.viz--flow {
  justify-content: space-between;
  padding: 0 30px;
}

.viz--flow::before {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 46px;
  right: 46px;
  height: 2px;
  background: var(--line-strong);
}

.viz--flow i {
  position: relative;
  width: 32px;
  height: 32px;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  background: var(--card);
}

.viz--flow b {
  position: absolute;
  top: calc(50% - 5px);
  left: 41px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
  opacity: 0;
}

/* Inbox: mensagens dos três canais chegando */
.viz--inbox,
.viz--tasks {
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  padding: 0 20px;
}

.viz--inbox i {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
}

.viz--inbox i::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}

.viz--inbox i::after {
  content: "";
  width: var(--w);
  height: 5px;
  border-radius: 3px;
  background: var(--line-strong);
}

.viz--inbox .ig {
  --c: var(--pink);
  --w: 62%;
}

.viz--inbox .wa {
  --c: var(--green);
  --w: 78%;
}

.viz--inbox .fb {
  --c: var(--blue);
  --w: 46%;
}

/* Pipelines: o card anda de etapa em etapa */
.viz--pipe {
  align-items: stretch;
  padding: 14px 18px;
}

.viz--pipe i {
  flex: 1;
  border-radius: 8px;
  background: var(--hover);
}

.viz--pipe b {
  position: absolute;
  top: 22px;
  left: 24px;
  width: calc((100% - 52px) / 3 - 12px);
  height: 26px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

/* Contatos: ficha com tags */
.viz--contact {
  justify-content: flex-start;
  gap: 12px;
  padding: 0 22px;
}

.viz--contact .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-subtle);
}

.viz--contact span {
  display: grid;
  flex: 1;
  gap: 7px;
}

.viz--contact span > i {
  width: 70%;
  height: 6px;
  border-radius: 3px;
  background: var(--line-strong);
}

.viz--contact span > i + i {
  width: 44%;
}

.viz--contact em {
  display: flex;
  gap: 5px;
}

.viz--contact em b {
  width: 32px;
  height: 12px;
  border-radius: 6px;
  background: var(--blue-subtle);
}

.viz--contact em b:nth-child(2) {
  background: #ddd6fe;
}

.viz--contact em b:nth-child(3) {
  background: #bbf7d0;
}

/* Atividades: tarefas sendo concluídas */
.viz--tasks {
  gap: 10px;
  padding: 0 24px;
}

.viz--tasks i {
  display: flex;
  align-items: center;
  gap: 9px;
}

.viz--tasks i::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  background: var(--card);
}

.viz--tasks i::after {
  content: "";
  width: var(--w);
  height: 5px;
  border-radius: 3px;
  background: var(--line-strong);
}

/* Catálogo: produtos em destaque, um por vez */
.viz--catalog i {
  position: relative;
  width: 44px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.viz--catalog i::before {
  content: "";
  position: absolute;
  inset: 6px 6px 20px;
  border-radius: 5px;
  background: var(--blue-subtle);
}

.viz--catalog i::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 14px;
  bottom: 9px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
}

/* Rastreamento: resultado por campanha */
.viz--track {
  align-items: flex-end;
  gap: 10px;
  padding: 16px 30px 0;
}

.viz--track i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: var(--blue-subtle);
  transform-origin: bottom;
}

.viz--track i:nth-child(2) {
  background: var(--blue);
}

/* Equipe: pessoas entrando */
.viz--team {
  gap: 0;
}

.viz--team i {
  width: 40px;
  height: 40px;
  margin-left: -10px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--blue-subtle);
}

.viz--team i:first-child {
  margin-left: 0;
}

.viz--team i:nth-child(2) {
  background: #ddd6fe;
}

.viz--team i:nth-child(3) {
  background: #bbf7d0;
}

.viz--team i:nth-child(4) {
  background: #fde68a;
}

@supports (interpolate-size: allow-keywords) {
  .faq details {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    block-size: 0;
    opacity: 0;
    overflow: clip;
    transition:
      block-size 320ms ease,
      opacity 320ms ease,
      content-visibility 320ms allow-discrete;
  }

  .faq details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Entrada do topo: uma sequência só, ao abrir a página */
  .hero .chips,
  .hero__sub,
  .hero .journey,
  .hero__cta,
  .hero .ticks {
    animation: rise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .hero__title {
    animation: rise-title 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 90ms both;
  }

  .hero__sub {
    animation-delay: 240ms;
  }

  .hero .journey {
    animation-delay: 360ms;
  }

  .hero__cta {
    animation-delay: 460ms;
  }

  .hero .ticks {
    animation-delay: 540ms;
  }

  .hero .app {
    animation: rise-app 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) 560ms both;
  }

  .hero::before {
    animation: drift 16s ease-in-out infinite alternate;
  }

  .final::before {
    animation: breathe 8s ease-in-out infinite alternate;
  }

  .journey__step.is-active .journey__node {
    animation: pulse 1800ms ease-out infinite;
  }

  /* Brilho que cruza o botão principal de tempos em tempos */
  .btn--lg.btn--primary {
    position: relative;
    overflow: hidden;
  }

  .btn--lg.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: sheen 5200ms ease-in-out 1800ms infinite;
  }

  /* Kanban: o card sai da etapa anterior e cai em "Ganho" */
  .is-in .deal--arrive {
    position: relative;
    z-index: 2;
    animation: deal-arrive 1500ms cubic-bezier(0.5, 0, 0.2, 1) 900ms both;
  }

  .is-in .typing {
    animation: typing 1700ms ease 500ms both;
  }

  .is-in .typing i {
    animation: dot 900ms ease-in-out infinite;
  }

  .is-in .typing i:nth-child(2) {
    animation-delay: 150ms;
  }

  .is-in .typing i:nth-child(3) {
    animation-delay: 300ms;
  }

  .is-in .deal--arrive::after {
    animation: cursor-life 1500ms ease 900ms both;
  }

  .btn--lg.btn--onnight {
    position: relative;
    overflow: hidden;
  }

  .btn--lg.btn--onnight::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(37, 99, 235, 0.2) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: sheen 5200ms ease-in-out 900ms infinite;
  }

  .demo__tabs.is-auto .demo__tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    transform-origin: left;
    animation: tab-progress var(--dwell, 5200ms) linear both;
  }

  .is-in .ping__in {
    animation: floaty 4600ms ease-in-out infinite alternate;
  }

  .is-in .ping--b .ping__in {
    animation-delay: -1500ms;
  }

  .is-in .ping--c .ping__in {
    animation-delay: -3000ms;
  }

  .tier--featured .tier__top::before {
    animation: breathe 7s ease-in-out infinite alternate;
  }

  /* Miniaturas: só rodam enquanto a grade está na tela (.is-live vem do script) */
  .is-live .viz--cal .on::after {
    animation: viz-pop 6s ease infinite both;
  }

  .is-live .viz--cal .on:nth-child(4)::after {
    animation-delay: 700ms;
  }

  .is-live .viz--cal .on:nth-child(6)::after {
    animation-delay: 1400ms;
  }

  .is-live .viz--flow b {
    animation: viz-run 4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  }

  .is-live .viz--flow i {
    animation: viz-node 4s ease infinite;
  }

  .is-live .viz--flow i:nth-child(2) {
    animation-delay: 1700ms;
  }

  .is-live .viz--flow i:nth-child(3) {
    animation-delay: 3300ms;
  }

  .is-live .viz--inbox i {
    animation: viz-msg 5s ease infinite both;
  }

  .is-live .viz--inbox i:nth-child(2) {
    animation-delay: 500ms;
  }

  .is-live .viz--inbox i:nth-child(3) {
    animation-delay: 1000ms;
  }

  .is-live .viz--pipe b {
    animation: viz-drag 5.5s cubic-bezier(0.5, 0, 0.2, 1) infinite;
  }

  .is-live .viz--contact em b {
    animation: viz-pop 5s ease infinite both;
  }

  .is-live .viz--contact em b:nth-child(1) {
    animation-delay: 300ms;
  }

  .is-live .viz--contact em b:nth-child(2) {
    animation-delay: 700ms;
  }

  .is-live .viz--contact em b:nth-child(3) {
    animation-delay: 1100ms;
  }

  .is-live .viz--tasks i::before {
    animation: viz-check 5s ease infinite both;
  }

  .is-live .viz--tasks i:nth-child(1)::before {
    animation-delay: 400ms;
  }

  .is-live .viz--tasks i:nth-child(2)::before {
    animation-delay: 1200ms;
  }

  .is-live .viz--tasks i:nth-child(3)::before {
    animation-delay: 2000ms;
  }

  .is-live .viz--catalog i {
    animation: viz-pick 6s ease infinite;
  }

  .is-live .viz--catalog i:nth-child(2) {
    animation-delay: 1500ms;
  }

  .is-live .viz--catalog i:nth-child(3) {
    animation-delay: 3000ms;
  }

  .is-live .viz--catalog i:nth-child(4) {
    animation-delay: 4500ms;
  }

  .is-live .viz--track i {
    animation: viz-grow 5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite both;
  }

  .is-live .viz--track i:nth-child(2) {
    animation-delay: 150ms;
  }

  .is-live .viz--track i:nth-child(3) {
    animation-delay: 300ms;
  }

  .is-live .viz--track i:nth-child(4) {
    animation-delay: 450ms;
  }

  .is-live .viz--team i {
    animation: viz-pop 6s ease infinite both;
  }

  .is-live .viz--team i:nth-child(2) {
    animation-delay: 250ms;
  }

  .is-live .viz--team i:nth-child(3) {
    animation-delay: 500ms;
  }

  .is-live .viz--team i:nth-child(4) {
    animation-delay: 750ms;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

@keyframes tab-progress {
  from {
    transform: scaleX(0);
  }
}

@keyframes cursor-life {
  0% {
    opacity: 0;
  }
  10%,
  84% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes bump {
  from {
    transform: scale(1.7);
    color: var(--green-text);
  }
}

@keyframes floaty {
  from {
    transform: translateY(-5px);
  }
  to {
    transform: translateY(5px);
  }
}

@keyframes viz-pop {
  0%,
  8% {
    opacity: 0;
    transform: scale(0);
  }
  16%,
  86% {
    opacity: 1;
    transform: none;
  }
  95%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes viz-run {
  0% {
    left: 41px;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  88% {
    left: calc(100% - 51px);
    opacity: 1;
  }
  100% {
    left: calc(100% - 51px);
    opacity: 0;
  }
}

@keyframes viz-node {
  0%,
  16% {
    border-color: var(--violet);
    background: var(--violet-soft);
  }
  30%,
  100% {
    border-color: var(--line-strong);
    background: var(--card);
  }
}

@keyframes viz-msg {
  0%,
  6% {
    opacity: 0;
    transform: translateX(-16px);
  }
  16%,
  86% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: translateX(10px);
  }
}

@keyframes viz-drag {
  0% {
    opacity: 0;
    transform: none;
  }
  6%,
  18% {
    opacity: 1;
    transform: none;
  }
  32%,
  50% {
    transform: translateX(calc(100% + 20px));
    border-color: var(--blue);
  }
  64%,
  90% {
    opacity: 1;
    transform: translateX(calc(200% + 40px));
    border-color: var(--green);
  }
  100% {
    opacity: 0;
    transform: translateX(calc(200% + 40px));
    border-color: var(--green);
  }
}

@keyframes viz-check {
  0%,
  10% {
    border-color: var(--line-strong);
    background-color: var(--card);
  }
  18%,
  88% {
    border-color: var(--green);
    background-color: var(--green);
  }
  100% {
    border-color: var(--line-strong);
    background-color: var(--card);
  }
}

@keyframes viz-pick {
  0%,
  3% {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
  }
  8%,
  20% {
    transform: translateY(-5px);
    border-color: var(--blue);
    box-shadow: 0 8px 14px -8px rgba(37, 99, 235, 0.5);
  }
  27%,
  100% {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
  }
}

@keyframes viz-grow {
  0%,
  6% {
    transform: scaleY(0);
  }
  26%,
  86% {
    transform: none;
  }
  98%,
  100% {
    transform: scaleY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes rise-title {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(8px);
  }
}

@keyframes rise-app {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.98);
  }
}

@keyframes drift {
  to {
    transform: translate3d(4%, 5%, 0) scale(1.12);
  }
}

@keyframes breathe {
  from {
    opacity: 0.65;
    transform: translateY(6%);
  }
}

@keyframes pulse {
  from {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  }
  to {
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
  }
}

@keyframes sheen {
  0%,
  70% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes deal-arrive {
  0% {
    transform: translate(var(--from-x, -110%), var(--from-y, 70px));
  }
  18% {
    transform: translate(var(--from-x, -110%), calc(var(--from-y, 70px) - 8px)) rotate(-3deg) scale(1.04);
    box-shadow: 0 18px 30px -12px rgba(17, 24, 39, 0.35);
  }
  82% {
    transform: translate(0, -8px) rotate(-3deg) scale(1.04);
    box-shadow: 0 18px 30px -12px rgba(17, 24, 39, 0.35);
  }
  100% {
    transform: none;
  }
}

@keyframes typing {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  12%,
  88% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

@keyframes dot {
  0%,
  100% {
    transform: none;
    opacity: 0.45;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
