/* Lemund Hub — página de apresentação (estática).
   Paleta, fonte e raios são os do painel (apps/web/src/styles.css). */

@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('assets/fonts/dm-sans-latin-wght-normal.woff2') format('woff2');
}

:root {
  --bg: #f4f5fb;
  --surface: #ffffff;
  --surface-2: #fafafe;
  --border: #e8e9f3;
  --border-strong: #dbdded;
  --text: #161a26;
  --text-2: #5a6076;
  --text-3: #949bb0;
  --accent: #6c4cf1;
  --accent-hover: #5a3ce6;
  --accent-soft: #efecfe;
  --accent-soft-border: #ded7fd;
  --green-bg: #e7f7ee;
  --green-fg: #12a150;
  --amber-bg: #fbf1de;
  --amber-fg: #b7791f;
  --red-bg: #fceceb;
  --red-fg: #d6453f;
  --blue-bg: #e9f0fe;
  --blue-fg: #2f6fed;
  --gray-bg: #f0f2f6;
  --gray-fg: #5b6472;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22, 26, 44, 0.04), 0 12px 32px rgba(22, 26, 44, 0.05);
  --font:
    'DM Sans Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  text-wrap: balance;
}

.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

/* ── Topo ─────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 24px;
  z-index: 20;
  height: 0; /* flutua sobre a folha do hero, sem ocupar espaço */
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(880px, 100% - 32px);
  margin-inline: auto;
  padding: 8px 8px 8px 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(22, 26, 44, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14.5px;
  color: var(--text-2);
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 550;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.btn-dark {
  background: var(--text);
  color: #fff;
}

.btn-dark:hover {
  background: #262b3b;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-3);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

/* A primeira dobra é uma folha só: o hero (com um tom lilás) e, na base dela,
   a faixa de canais. O cinza da página aparece em volta e segue para baixo. */
.fold {
  margin: 12px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 148px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 100% 0%, #ebe6ff 0%, rgba(235, 230, 255, 0) 62%),
    linear-gradient(180deg, #f7f5ff 0%, #ffffff 100%);
}

/* Quadriculado fino que some para baixo e para a esquerda, e um clarão roxo
   atrás do feed. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 78% 38%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 75% at 78% 38%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  right: max(-120px, calc(50% - 760px));
  top: 40px;
  background: radial-gradient(closest-side, rgba(108, 76, 241, 0.16), transparent);
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-kicker span {
  margin: 0 6px;
  color: var(--accent);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.1vw, 66px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: pretty;
}

/* Os logos dentro do título: empilhados, levemente sobrepostos. */
.h1-logos {
  display: inline-flex;
  align-items: center;
  vertical-align: -0.1em;
  margin: 0 0.08em;
  white-space: nowrap;
}

.h1-logos img,
.h1-logos em {
  width: 0.86em;
  height: 0.86em;
  border-radius: 0.24em;
  border: 0.05em solid #fff;
  box-shadow: 0 2px 8px rgba(22, 26, 44, 0.12);
  object-fit: cover;
}

.h1-logos img + img,
.h1-logos em {
  margin-left: -0.2em;
}

.h1-logos img:nth-child(odd) {
  transform: rotate(-4deg);
}

.h1-logos img:nth-child(even) {
  transform: rotate(3deg);
}

.h1-logos em {
  display: grid;
  place-items: center;
  background: var(--text);
  color: #fff;
  font-style: normal;
  font-size: 0.3em;
  font-weight: 600;
  letter-spacing: 0;
  width: 2.87em;
  height: 2.87em;
  border-radius: 0.8em;
  border-width: 0.17em;
  margin-left: -0.67em;
}

.hero-sub {
  margin-top: 24px;
  max-width: 520px;
  font-size: 18px;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.hero-actions .btn {
  padding: 12px 22px;
  font-size: 15.5px;
}

.link-arrow {
  font-size: 15.5px;
  font-weight: 550;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}

.link-arrow span {
  display: inline-block;
  transition: transform 0.2s;
}

.link-arrow:hover span {
  transform: translateX(4px);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
  max-width: 520px;
  font-size: 14px;
  color: var(--text-2);
}

.hero-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent);
}

/* O palco: o feed e os logos soltos em volta. */
.hero-stage {
  position: relative;
  padding: 26px 18px;
}

.feed {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(22, 26, 44, 0.05),
    0 24px 60px rgba(46, 32, 120, 0.14);
  overflow: hidden;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.feed-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feed-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
}

.feed-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-fg);
  box-shadow: 0 0 0 0 rgba(18, 161, 80, 0.5);
  animation: live 2s infinite;
}

@keyframes live {
  70% {
    box-shadow: 0 0 0 7px rgba(18, 161, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(18, 161, 80, 0);
  }
}

.feed-list {
  height: 340px; /* 5 linhas de 68px: a sexta some no degradê */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
  mask-image: linear-gradient(#000 72%, transparent);
}

.ev {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  transition:
    margin-top 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.55s ease,
    background 1.6s ease;
}

.ev.enter {
  margin-top: -68px;
  opacity: 0;
}

.ev.fresh {
  background: var(--accent-soft);
}

.ev > img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex: none;
}

.ev-main {
  flex: 1;
  min-width: 0;
}

.ev-main b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ev-main span {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-main .st {
  font-style: normal;
  color: #f2b100;
  letter-spacing: 1px;
}

.ev-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none;
}

.ev-side time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

.float {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  border: 3px solid var(--surface);
  box-shadow: 0 10px 26px rgba(22, 26, 44, 0.16);
  animation: bob 7s ease-in-out infinite;
}

.float.f1 {
  top: -2px;
  left: -10px;
  --r: -8deg;
}

.float.f2 {
  top: 6px;
  right: -8px;
  --r: 7deg;
  animation-delay: -2s;
}

.float.f3 {
  bottom: 14px;
  left: -14px;
  --r: 6deg;
  animation-delay: -4s;
}

.float.f4 {
  bottom: -4px;
  right: 6px;
  --r: -6deg;
  animation-delay: -5.5s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r));
  }
  50% {
    transform: translateY(-9px) rotate(var(--r));
  }
}

@media (prefers-reduced-motion: reduce) {
  .float,
  .feed-live i {
    animation: none;
  }

  .float {
    transform: rotate(var(--r));
  }
}

@media (max-width: 960px) {
  .fold {
    margin: 8px;
    border-radius: 22px;
  }

  .nav {
    top: 16px;
  }

  .hero {
    padding: 108px 0 56px;
  }

  .hero-in {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stage {
    padding: 22px 6px;
  }
}

/* ── Seções ───────────────────────────────────────────────────────────── */

.section {
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.kicker b {
  font-weight: 500;
  color: var(--accent);
}

.section h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.section h2 span {
  color: var(--text-3);
}

.section-head p {
  color: var(--text-2);
  font-size: 16.5px;
  max-width: 440px;
  justify-self: end;
}

/* ── Canais: os treze logos numa doca, na base da folha do hero ───────── */

.channels {
  padding: 8px 0 60px;
  text-align: center;
}

.dock-lead {
  font-size: 16px;
  color: var(--text-3);
}

.dock-lead strong {
  font-weight: 550;
  color: var(--text);
}

/* Altura fixa: os ícones crescem para cima, sem empurrar o que vem depois. */
.dock-area {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 124px;
  margin-top: 6px;
}

.dock {
  --size: 54px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: calc(var(--size) + 22px);
  padding: 0 14px 11px;
  border-radius: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(22, 26, 44, 0.05),
    0 18px 44px rgba(46, 32, 120, 0.1);
}

.dock-app {
  position: relative;
  flex: none;
  width: calc(var(--size) * var(--s, 1));
  height: calc(var(--size) * var(--s, 1));
  padding: 0;
  border: 0;
  background: none;
  cursor: default;
  outline: none;
}

.dock-app img {
  width: 100%;
  height: 100%;
  border-radius: 24%;
  box-shadow:
    0 0 0 1px rgba(22, 26, 44, 0.07),
    0 4px 10px rgba(22, 26, 44, 0.1);
}

/* O nome, acima do ícone ativo. */
.dock-app::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.12s,
    transform 0.18s;
}

.dock-app.is-on::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dock-app:focus-visible img {
  box-shadow:
    0 0 0 2px var(--surface-2),
    0 0 0 4px var(--accent);
}

.dock-sep {
  align-self: center;
  width: 1px;
  height: 34px;
  margin: 0 4px;
  background: var(--border-strong);
}

/* Fora do mouse, os ícones voltam ao tamanho com uma transição. */
.dock:not(.is-live) .dock-app {
  transition:
    width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dock-info {
  height: 24px;
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--text-2);
}

.dock-info b {
  font-weight: 600;
  color: var(--text);
}

.dock-info i {
  font-style: normal;
  margin: 0 8px;
  color: var(--border-strong);
}

.only-touch {
  display: none;
}

.dock-info-idle {
  color: var(--text-3);
}

.dock-info > span {
  display: inline-block;
  animation: dock-info-in 0.25s ease;
}

@keyframes dock-info-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}

.logo-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  flex: none;
}

@media (max-width: 960px) {
  .dock-area {
    height: auto;
    margin-top: 20px;
  }

  .dock {
    --size: 46px;
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    max-width: 380px;
    padding: 14px;
  }

  .dock-sep {
    display: none;
  }

  .dock-info {
    height: auto;
    min-height: 44px;
  }
}

/* ── Grade com pedaços do sistema ─────────────────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

/* Card genérico (cobertura, passos, fluxo). */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card h3 {
  margin-top: 16px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.card > p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}

/* Uma peça: o recorte do painel em cima, o texto embaixo. */
.piece {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.piece-view {
  position: relative;
  height: 316px;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(108, 76, 241, 0.07), transparent 70%), var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.piece-text {
  padding: 24px 28px 28px;
}

.piece-text h3 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.piece-text p {
  margin-top: 6px;
  max-width: 520px;
  font-size: 15px;
  color: var(--text-2);
}

/* A "janela": um pedaço do painel que passa da borda de baixo do recorte. */
.win {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 16px 40px rgba(46, 32, 120, 0.09);
  padding-bottom: 40px;
}

.piece-view:has(.win)::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 56px;
  background: linear-gradient(transparent, var(--surface-2));
  pointer-events: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}

.chip.green {
  background: var(--green-bg);
  color: var(--green-fg);
}

.chip.blue {
  background: var(--blue-bg);
  color: var(--blue-fg);
}

.chip.amber {
  background: var(--amber-bg);
  color: var(--amber-fg);
}

.chip.red {
  background: var(--red-bg);
  color: var(--red-fg);
}

.chip.gray {
  background: var(--gray-bg);
  color: var(--gray-fg);
}

.chip.violet {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Pedidos */
.o-head,
.o-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.o-head {
  grid-template-columns: 148px 1fr 124px 78px;
  height: 40px;
  font-size: 11.5px;
  color: var(--text-3);
}

.o-head span:last-child,
.o-row b {
  text-align: right;
}

.o-row {
  grid-template-columns: 24px 112px 1fr 124px 78px;
  height: 58px;
  font-size: 13px;
}

.o-row img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.o-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}

.o-track em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}

.trail {
  display: block;
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: #e9eaf3;
  overflow: hidden;
}

.trail i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.trail.amber i {
  background: #e0a63f;
}

.trail.red i {
  background: var(--red-fg);
}

.trail.green i {
  background: var(--green-fg);
}

.o-row .chip {
  justify-self: start;
}

.o-row b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Carrinhos */
.view-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.gauge {
  position: relative;
  width: 260px;
}

.gauge svg {
  display: block;
  width: 100%;
}

.gauge line {
  stroke: #e3e4ef;
  stroke-width: 5;
  stroke-linecap: round;
}

.gauge line.on {
  stroke: var(--accent);
}

.gauge-mid {
  position: absolute;
  inset: auto 0 2px;
  text-align: center;
}

.gauge-mid b {
  display: block;
  font-size: 44px;
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1;
}

.gauge-mid span {
  font-size: 13px;
  color: var(--text-2);
}

.cart-stats {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.cart-stats div {
  padding: 12px 20px;
}

.cart-stats div + div {
  border-left: 1px solid var(--border);
}

.cart-stats b {
  display: block;
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.cart-stats small {
  font-size: 0.68em;
  font-weight: 550;
  color: var(--text-2);
}

.cart-stats span {
  font-size: 12.5px;
  color: var(--text-3);
}

/* Avaliações */
.rating {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.rating-score b {
  display: block;
  font-size: 46px;
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stars {
  display: block;
  color: #f2b100;
  font-size: 13px;
  letter-spacing: 2px;
}

.stars i {
  font-style: normal;
  color: #dcdeea;
}

.rating-score .stars {
  margin-top: 8px;
}

.rating-score small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3);
}

.dist-row {
  display: grid;
  grid-template-columns: 12px 1fr 28px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.dist-row + .dist-row {
  margin-top: 5px;
}

.dist-row span {
  height: 6px;
  border-radius: 999px;
  background: #e9eaf3;
  overflow: hidden;
}

.dist-row span i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--green-fg);
}

.dist-row.mid span i {
  background: #f2b100;
}

.dist-row.low span i {
  background: var(--red-fg);
}

.dist-row em {
  font-style: normal;
  text-align: right;
}

.quote {
  position: absolute;
  width: 47%;
  max-width: 250px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(46, 32, 120, 0.12);
}

.quote p {
  margin: 6px 0 10px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text);
}

.quote div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
}

.quote div img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.quote.q1 {
  left: 20px;
  bottom: 22px;
  transform: rotate(-2.5deg);
}

.quote.q2 {
  right: 16px;
  bottom: -18px;
  transform: rotate(2deg);
}

/* Devoluções e reclamações */
.c-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.c-tabs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-2);
}

.c-tabs i {
  font-style: normal;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gray-bg);
}

.c-tabs .is-on {
  background: var(--text);
  color: #fff;
}

.c-tabs .is-on i {
  background: rgba(255, 255, 255, 0.18);
}

.c-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.c-row.is-hot {
  box-shadow: inset 3px 0 0 var(--red-fg);
}

.c-row img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
}

.c-main {
  flex: 1;
  min-width: 0;
}

.c-main b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.c-main em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Anúncios */
.l-grid {
  position: absolute;
  inset: 0 28px;
  align-content: center;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.l-card {
  min-width: 0;
  padding: 8px 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(46, 32, 120, 0.07);
}

.l-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
}

.l-cover img {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(22, 26, 44, 0.14);
}

.l-cover .chip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 11px;
  background-color: var(--surface);
}

.l-card b {
  display: block;
  margin: 10px 4px 0;
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l-foot {
  margin: 6px 4px 0;
}

.l-foot strong {
  display: block;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.l-foot em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-3);
}

/* Promoções */
.view-promo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 0 28px;
}

.p-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(46, 32, 120, 0.07);
}

.p-head,
.m-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-head img,
.m-head img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: none;
}

.p-head span:nth-child(2),
.m-head span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.p-head b,
.m-head b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-head em,
.m-head em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}

.p-price s {
  font-size: 14px;
  color: var(--text-3);
}

.p-price b {
  font-size: 30px;
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1;
}

.p-price .chip {
  align-self: center;
}

.p-split {
  display: flex;
  gap: 3px;
  height: 8px;
  margin-top: 18px;
}

.p-split i {
  border-radius: 999px;
  background: var(--accent);
}

.p-split i + i {
  background: #cfd3e1;
}

.p-legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}

.p-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.p-legend i.b {
  background: #cfd3e1;
}

.p-coupon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1.5px dashed var(--accent-soft-border);
  border-radius: 14px;
  font-size: 12.5px;
  color: var(--text-2);
}

.p-coupon b {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.p-coupon em {
  margin-left: auto;
  font-style: normal;
  color: var(--text-3);
}

/* Atendimento */
.m-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.m-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.m-body p {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.4;
}

.m-in {
  align-self: flex-start;
  background: var(--gray-bg);
  border-bottom-left-radius: 4px !important;
}

.m-out {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px !important;
}

.m-mkt {
  background: var(--amber-bg);
}

.m-mkt small {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--amber-fg);
}

/* Clientes */
.k-tiers {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.k-bar {
  display: flex;
  gap: 3px;
  height: 8px;
}

.k-bar i {
  border-radius: 999px;
}

.k-legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}

.k-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
}

.k-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.k-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.k-main {
  flex: 1;
  min-width: 0;
}

.k-main b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.k-main em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.k-logos {
  display: flex;
  flex: none;
}

.k-logos img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--surface);
}

.k-logos img + img {
  margin-left: -7px;
}

.k-row strong {
  width: 84px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── "E também": grade de fios, como a dos canais ─────────────────────── */

.also {
  position: relative;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-strong);
}

.also-lead {
  position: absolute;
  top: -11px;
  left: 0;
  padding-right: 14px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.also-item {
  position: relative;
  padding: 36px 24px 30px;
}

.also-item:nth-child(4n + 2) {
  padding-left: 0;
}

.also-item:not(:nth-child(4n + 2))::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-strong);
}

.also-item:nth-child(n + 6) {
  border-top: 1px dashed var(--border-strong);
}

.also-item:nth-child(n + 6):not(:nth-child(4n + 2))::before {
  background: linear-gradient(to bottom, var(--border-strong) 40%, transparent);
}

.also-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.also-item h3 {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.also-item p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-2);
}

/* ── Cobertura por canal: canais nas colunas, tipos de dado nas linhas ── */

.cv {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 28px 26px;
  overflow-x: auto;
}

.cv-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.cv-table th:first-child {
  width: 230px;
}

.cv-gap {
  width: 28px;
}

.cv-count {
  width: 84px;
}

.cv-groups th {
  padding: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}

.cv-table thead tr:last-child th {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cv-logo {
  position: relative;
  display: inline-block;
}

.cv-logo img,
.cv-logo .logo-fallback {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 16px;
  font-style: normal;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cv-logo:hover img,
.cv-logo:hover .logo-fallback {
  transform: translateY(-3px);
}

.cv-logo::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.2s;
  z-index: 3;
}

.cv-logo:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cv-table tbody th {
  padding: 0 12px 0 0;
  text-align: left;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cv-table tbody td {
  height: 46px;
  padding: 3px;
  text-align: center;
}

.cv-table tbody tr:first-child > * {
  padding-top: 15px;
  height: 58px;
}

/* Cada célula é um ladrilho: lilás com o visto quando o Hub lê, cinza vazio
   quando não. */
.cv-on,
.cv-off {
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: 10px;
}

.cv-on {
  background: var(--accent-soft);
  color: var(--accent);
}

.cv-on svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cv-off {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
  opacity: 0.7;
}

.cv-table tbody tr:hover .cv-on {
  background: var(--accent);
  color: #fff;
}

.cv-table tbody tr:hover th {
  color: var(--accent);
}

.cv-table td.cv-count {
  padding-left: 14px;
  text-align: right;
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cv-count b {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.matrix-note {
  margin-top: 16px;
  padding: 0 4px;
  font-size: 13.5px;
  color: var(--text-3);
}

/* ── Como funciona: uma folha, três colunas e o fluxo na base ─────────── */

.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.how-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.how-step + .how-step {
  border-left: 1px solid var(--border);
}

.how-view {
  height: 236px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.how-text {
  padding: 24px 28px 30px;
}

.how-text .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.how-text h3 {
  margin-top: 10px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.how-text p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-2);
}

/* 01: contas conectadas */
.acct {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.acct img,
.acct > i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
}

.acct > i {
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 18px;
  color: var(--text-3);
  border: 1.5px dashed var(--border-strong);
}

.acct span:nth-of-type(1) {
  flex: 1;
  min-width: 0;
}

.acct b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.acct em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
}

.acct.is-new {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
}

.acct.is-new b {
  font-weight: 500;
  color: var(--text-2);
}

/* 02: linha do tempo da leitura */
.tl {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl li {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  column-gap: 26px;
  padding-bottom: 14px;
}

.tl li:last-child {
  padding-bottom: 0;
}

.tl time {
  grid-row: span 2;
  padding-top: 1px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
}

.tl li::before {
  content: '';
  position: absolute;
  left: 71px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.tl li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 75px;
  top: 18px;
  bottom: -2px;
  width: 1px;
  background: var(--border-strong);
}

.tl li.is-soft::before {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--text-3);
}

.tl b {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.tl em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-2);
}

/* 03: o evento que chega no sistema do cliente */
.code {
  margin: 0;
  padding: 16px 18px;
  background: #151824;
  border-radius: 14px;
  color: #c9cee0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  overflow: hidden;
}

.code .c-dim {
  color: #907bff;
}

.code .c-key {
  color: #e9ebf4;
}

.code .c-str {
  color: #7fd6a8;
}

/* O mapa, na base da folha: canais → Hub → painel e sistema do cliente.
   Tamanho fixo (1040 × 470) e escala por JS em telas menores. */
.flow {
  grid-column: 1 / -1;
  padding: 28px 0 32px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(42% 60% at 50% 46%, rgba(108, 76, 241, 0.06), transparent 70%), var(--surface);
}

.map-wrap {
  position: relative;
  height: 470px;
  overflow: hidden;
}

.map {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1040px;
  height: 470px;
  transform: translateX(-50%) scale(var(--map-scale, 1));
  transform-origin: top center;
}

.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}

.map-rings circle {
  stroke: var(--border);
}

.map-lines path {
  stroke: var(--border-strong);
  stroke-dasharray: 3 4;
}

.map-meteors path {
  stroke: var(--accent);
  stroke-width: 2;
}

.map-meteors .is-head {
  stroke-width: 2.6;
  stroke-linecap: round;
}

.mp-cap {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.mp-box {
  position: absolute;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(22, 26, 44, 0.05),
    0 10px 28px rgba(46, 32, 120, 0.08);
}

.mp-left {
  left: 40px;
  top: 158px;
  grid-template-columns: repeat(4, 55px);
}

.mp-top {
  left: 380px;
  top: 35px;
  grid-template-columns: repeat(5, 55px);
}

.mp-right {
  left: 820px;
  top: 148px;
  width: 180px;
}

.mp-bottom {
  left: 340px;
  top: 384px;
  grid-template-columns: repeat(3, 119px);
}

.mp-cell {
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--surface);
  transition: background 0.4s ease;
}

.mp-cell img,
.mp-cell .logo-fallback {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
  font-style: normal;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mp-cell.is-hit {
  background: var(--accent-soft);
}

.mp-cell.is-hit img,
.mp-cell.is-hit .logo-fallback {
  transform: scale(1.16);
}

.mp-row,
.mp-tab {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 550;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

.mp-tab {
  height: 52px;
  justify-content: center;
}

.mp-row.is-hit,
.mp-tab.is-hit {
  background: var(--accent-soft);
  color: var(--accent);
}

.mp-hub {
  position: absolute;
  left: 478px;
  top: 173px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--border),
    0 10px 30px rgba(46, 32, 120, 0.16);
}

.mp-hub .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 22px;
}

.mp-hub.is-hit {
  animation: hub-bump 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes hub-bump {
  40% {
    transform: scale(1.07);
  }
}

.mp-pulse {
  position: absolute;
  left: 478px;
  top: 173px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}

.mp-pulse.is-on {
  animation: hub-pulse 1.1s ease-out;
}

@keyframes hub-pulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.9);
  }
}

.mp-pill {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.mp-pill.is-code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
}

.mp-pill.is-swap {
  opacity: 0;
}

/* ── Folha escura: API e webhooks ─────────────────────────────────────── */

.dark {
  margin: 0 12px;
  border-radius: 28px;
  background:
    radial-gradient(50% 45% at 50% 0%, rgba(144, 123, 255, 0.16), transparent 70%), #0d0f15;
  color: #e9ebf4;
  padding: 120px 0 104px;
}

.api-head {
  max-width: 900px;
  margin: 0 auto 64px;
  text-align: center;
}

.api-head .kicker {
  justify-content: center;
  color: #6f7690;
}

.api-head .kicker b {
  color: #907bff;
}

.api-head h2 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.api-head h2 span {
  color: #6f7690;
}

.api-head p {
  max-width: 540px;
  margin: 22px auto 0;
  font-size: 17px;
  color: #a6adc0;
}

/* A janela: à esquerda o que se escolhe, à direita o que trafega. */
.api-win {
  background: #12141d;
  border: 1px solid #262b3b;
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.api-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #262b3b;
}

.api-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: #0d0f15;
  box-shadow: inset 0 0 0 1px #262b3b;
}

.api-switch button {
  height: 32px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6f7690;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.api-switch button:hover {
  color: #a6adc0;
}

.api-switch button.is-on {
  background: #262b3b;
  color: #e9ebf4;
}

.api-hint {
  padding-right: 8px;
  font-size: 13.5px;
  color: #6f7690;
}

.api-main {
  display: grid;
  grid-template-columns: 372px 1fr;
  min-height: 452px;
}

.api-list {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-right: 1px solid #262b3b;
}

.api-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s;
}

.api-item[hidden] {
  display: none;
}

.api-item code {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: #a6adc0;
  transition: color 0.2s;
}

.api-item span {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  color: #6f7690;
}

.api-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.api-item.is-on {
  background: #1b1e2c;
}

.api-item.is-on code {
  color: #a495ff;
}

.api-item.is-on span {
  color: #a6adc0;
}

/* Enquanto roda sozinha, uma linha fina marca o tempo do item ativo. */
.api-win.is-auto .api-item.is-on::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1.5px;
  background: #907bff;
  transform-origin: left;
  animation: api-tick 5s linear forwards;
}

@keyframes api-tick {
  from {
    transform: scaleX(0);
  }
}

.api-pane {
  min-width: 0;
  padding: 30px 36px;
  overflow-x: auto;
}

.api-code {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #c9cee0;
  white-space: pre;
  animation: api-in 0.35s ease;
}

@keyframes api-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.api-code .c-dim {
  color: #907bff;
}

.api-code .c-h {
  color: #6f7690;
}

.api-code .c-key {
  color: #e9ebf4;
}

.api-code .c-str {
  color: #7fd6a8;
}

.api-code .c-num {
  color: #e0a63f;
}

.api-code .c-mute {
  color: #5a6078;
}

/* O que acompanha a entrega: uma fileira discreta, sem ícone. */
.api-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.api-facts div {
  padding-top: 20px;
  border-top: 1px solid #262b3b;
}

.api-facts h3 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.api-facts p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #8a91a8;
}

/* ── Perguntas ────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.faq-lead {
  position: sticky;
  top: 108px;
}

.faq-lead p {
  margin-top: 16px;
  max-width: 300px;
  font-size: 16px;
  color: var(--text-2);
}

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

.qa {
  border-bottom: 1px solid var(--border-strong);
}

.qa-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 2px;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 17.5px;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: var(--text);
  cursor: pointer;
}

.qa-q:hover span {
  color: var(--accent);
}

.qa-q span {
  transition: color 0.2s;
}

/* O "+" que vira "−": dois traços, um deles gira e some. */
.qa-q i {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong);
  transition:
    background 0.25s,
    box-shadow 0.25s;
}

.qa-q i::before,
.qa-q i::after {
  content: '';
  position: absolute;
  left: 9.500px;
  top: 14.250px;
  width: 11px;
  height: 1.500px;
  border-radius: 2px;
  background: var(--text);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.25s;
}

.qa-q i::after {
  transform: rotate(90deg);
}

.qa.is-open .qa-q i {
  background: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.qa.is-open .qa-q i::before,
.qa.is-open .qa-q i::after {
  background: #fff;
}

.qa.is-open .qa-q i::after {
  transform: rotate(0deg);
}

/* Abre e fecha pela altura do conteúdo (0fr → 1fr). Sem JS, tudo aberto. */
.qa-a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .qa:not(.is-open) .qa-a {
  grid-template-rows: 0fr;
}

.qa-a > div {
  overflow: hidden;
}

.qa-a p {
  max-width: 560px;
  padding: 0 60px 26px 2px;
  font-size: 16px;
  color: var(--text-2);
}

.qa-a a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Rodapé ───────────────────────────────────────────────────────────── */

.footer {
  margin-top: 24px;
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer-in {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 260px;
  font-size: 14.5px;
  color: var(--text-2);
}

.footer-in nav {
  display: flex;
  gap: 72px;
}

.footer-in nav h3 {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-in nav a {
  display: block;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--text-2);
}

.footer-in nav a:hover,
.footer-base a:hover {
  color: var(--text);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-3);
}

.wordmark {
  margin: 40px 0 -0.24em;
  text-align: center;
  font-size: clamp(64px, 17vw, 240px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(#e2e4f0, rgba(226, 228, 240, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* ── Entrada suave (só com JS e sem "reduzir movimento") ──────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Telas menores ────────────────────────────────────────────────────── */

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

  .nav-in .btn {
    margin-left: auto;
  }

  .section {
    padding: 72px 0;
  }

  .section-head,
  .faq {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head p {
    justify-self: start;
  }

  .span-7,
  .span-5 {
    grid-column: span 12;
  }

  .also {
    grid-template-columns: repeat(2, 1fr);
  }

  .also-item,
  .also-item:nth-child(4n + 2) {
    padding: 28px 20px 24px 0;
    border-top: 0;
  }

  .also-item::before {
    display: none !important;
  }

  .also-item:nth-child(n + 4) {
    border-top: 1px dashed var(--border-strong);
  }

  .how {
    grid-template-columns: 1fr;
  }

  .dark {
    margin: 0 8px;
    border-radius: 22px;
    padding: 72px 0 64px;
  }

  .api-main {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .api-list {
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #262b3b;
  }

  .api-item {
    width: auto;
    flex: none;
    padding: 9px 12px;
  }

  .api-item span,
  .api-hint {
    display: none;
  }

  .api-pane {
    min-height: 380px;
    padding: 22px 20px;
  }

  .api-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 44px;
  }

  .how-step + .how-step {
    border-left: 0;
    border-top: 1px solid var(--border);
  }



  .faq-lead {
    position: static;
  }

  .footer-in {
    flex-direction: column;
  }

  .footer-in nav {
    gap: 40px;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .api-facts {
    grid-template-columns: 1fr;
  }

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

  .k-logos,
  .k-legend span:nth-child(n + 3) {
    display: none;
  }

  .also {
    grid-template-columns: 1fr;
  }

  .also-item:nth-child(n + 3) {
    border-top: 1px dashed var(--border-strong);
  }

  .quote.q2 {
    display: none;
  }

  .o-head,
  .o-row {
    grid-template-columns: 24px 1fr 78px;
  }

  .o-head span:nth-child(1),
  .o-head span:nth-child(3),
  .o-row .o-id,
  .o-row .chip {
    display: none;
  }
}

/* ── Celular e telas estreitas ────────────────────────────────────────── */

/* Colunas de grade com 1fr esticam pelo conteúdo; minmax(0, …) as prende. */
@media (max-width: 960px) {
  .hero-in,
  .section-head,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: 30px;
  }

  /* Topo */
  .nav-in {
    width: calc(100% - 28px);
  }

  /* Hero */
  .hero {
    padding: 100px 0 44px;
  }

  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.1;
  }

  .hero-kicker {
    font-size: 11px;
    line-height: 1.6;
  }

  .hero-sub {
    font-size: 16.5px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 16px 20px;
  }

  .hero-note {
    margin-top: 28px;
    align-items: flex-start;
  }

  .hero-note svg {
    margin-top: 2px;
  }

  .hero-stage {
    padding: 20px 0 4px;
  }

  .float {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .float.f1 {
    left: -6px;
  }

  .float.f2 {
    right: -6px;
  }

  .float.f3,
  .float.f4 {
    display: none;
  }

  .ev {
    padding: 0 14px;
    gap: 10px;
  }

  .feed-head {
    padding: 14px;
  }

  /* Canais */
  .channels {
    padding: 4px 0 40px;
  }

  .dock-lead {
    font-size: 15px;
    text-wrap: balance;
  }

  .dock {
    --size: 44px;
    max-width: 320px;
    gap: 9px;
  }

  .dock-app::after {
    display: none;
  }

  .only-mouse {
    display: none;
  }

  .only-touch {
    display: inline;
  }

  /* Peças do painel */
  .piece {
    border-radius: 20px;
  }

  .piece-view {
    height: 288px;
  }

  .piece-text {
    padding: 20px 20px 24px;
  }

  .win,
  .rating {
    left: 16px;
    right: 16px;
    top: 16px;
  }

  .o-head,
  .o-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    padding: 0 14px;
    gap: 10px;
  }

  .o-head span:nth-child(1) {
    grid-column: span 2;
    display: block;
  }

  .o-head span:nth-child(2),
  .o-head span:nth-child(3),
  .o-row .o-id,
  .o-row .chip {
    display: none;
  }

  .trail {
    width: 96px;
  }

  .rating {
    gap: 16px;
    padding: 16px;
  }

  .rating-score b {
    font-size: 38px;
  }

  .quote {
    width: 62%;
  }

  .quote.q1 {
    left: 12px;
    bottom: 16px;
  }

  .quote.q2 {
    display: none;
  }

  .c-row {
    padding: 0 14px;
    gap: 10px;
  }

  .c-row .chip {
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .c-tabs span:nth-child(3) {
    display: none;
  }

  .l-grid {
    inset: 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .l-card:nth-child(n + 3) {
    display: none;
  }

  .view-promo,
  .view-cart {
    height: auto;
    padding: 22px 16px;
  }

  .k-legend span:nth-child(n + 3) {
    display: inline;
  }

  .p-head .chip {
    display: none;
  }

  .p-legend {
    flex-direction: column;
    gap: 4px;
  }

  .p-coupon {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .m-head .chip {
    display: none;
  }

  .k-legend {
    gap: 12px;
    flex-wrap: wrap;
  }

  .k-row {
    padding: 0 14px;
    gap: 10px;
  }

  .k-row .chip,
  .k-logos {
    display: none;
  }

  .also {
    margin-top: 48px;
  }

  /* Cobertura */
  .cv {
    padding: 16px 0 18px 16px;
    border-radius: 20px;
  }

  .cv-table {
    min-width: 760px;
  }

  .cv-table th:first-child {
    width: 190px;
  }

  .cv-table tbody th {
    font-size: 14px;
    /* A primeira coluna fica presa enquanto a tabela rola para o lado. */
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
    white-space: normal;
  }

  .cv-logo::after {
    display: none;
  }

  /* Como funciona: o mapa vira uma pilha vertical. */
  .how {
    border-radius: 20px;
  }

  .how-text {
    padding: 20px 20px 26px;
  }

  .how-view {
    height: auto;
    min-height: 200px;
    padding: 20px;
  }

  .code {
    font-size: 11.5px;
    overflow-x: auto;
  }

  .flow {
    padding: 28px 16px;
  }

  .map-wrap {
    height: auto !important;
    overflow: visible;
  }

  .map {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .map-svg,
  .mp-pulse {
    display: none;
  }

  .map > * {
    position: static !important;
    left: auto !important;
    top: auto !important;
  }

  .mp-cap {
    margin: 0 0 8px;
  }

  .mp-left {
    order: 2;
  }

  .mp-top {
    order: 4;
  }

  .cap-m {
    order: 1;
  }

  .cap-l {
    order: 3;
    margin-top: 18px;
  }

  .cap-s {
    order: 8;
  }

  .mp-pill {
    transform: none;
    margin: 30px 0;
  }

  /* As pílulas fazem as vezes das linhas: um tracejado acima e outro abaixo. */
  .mp-pill::before,
  .mp-pill::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1px;
    height: 22px;
    background: repeating-linear-gradient(to bottom, var(--border-strong) 0 3px, transparent 3px 7px);
  }

  .mp-pill {
    position: relative !important;
  }

  .mp-pill::before {
    bottom: calc(100% + 4px);
  }

  .mp-pill::after {
    top: calc(100% + 4px);
  }

  .pill-in {
    order: 5;
  }

  .mp-hub {
    order: 6;
    position: relative !important;
  }

  #mp-event {
    order: 7;
  }

  .mp-right {
    order: 9;
    width: 279px;
    grid-template-columns: repeat(3, 1fr);
  }

  .mp-row {
    justify-content: center;
    padding: 0 6px;
    font-size: 13px;
  }

  .pill-panel {
    order: 10;
  }

  .mp-bottom {
    order: 11;
    width: 279px;
    grid-template-columns: repeat(3, 1fr);
  }

  .mp-tab {
    height: 44px;
    font-size: 13px;
  }

  /* API */
  .dark {
    padding: 64px 0 56px;
  }

  .api-head {
    margin-bottom: 36px;
  }

  .api-head h2 {
    font-size: 32px;
  }

  .api-head p {
    font-size: 16px;
  }

  .api-win {
    border-radius: 18px;
  }

  .api-top {
    padding: 10px;
  }

  .api-pane {
    min-height: 0;
    padding: 18px 16px 22px;
  }

  .api-code {
    font-size: 11.5px;
    line-height: 1.7;
  }

  .api-facts {
    margin-top: 36px;
    gap: 22px;
  }

  /* Perguntas */
  .faq {
    gap: 28px;
  }

  .qa-q {
    padding: 20px 0;
    font-size: 16px;
  }

  .qa-a p {
    padding: 0 0 22px;
    font-size: 15.5px;
  }

  /* Rodapé */
  .footer {
    padding-top: 48px;
  }

  .footer-in nav {
    gap: 28px 36px;
  }

  .footer-base {
    margin-top: 40px;
  }
}
