/* ==========================================================================
   Scriio — landing page
   Linguagem de design adaptada de um brief de referência (estrutura/ritmo),
   com a paleta e a tipografia padrão do Scriio (Inter) + Space Grotesk só
   para os títulos de destaque desta página.
   ========================================================================== */

:root {
  /* Cor — paleta padrão do Scriio (mesmos valores de frontend/src/theme/tokens.css) */
  --color-ink: #111114;
  --color-muted: #6b6b76;
  /* Fundo da página (canvas com pontos, estilo FigJam) — diferente de --color-bg, que continua
     branco puro pra superfícies (cards, botões, painéis) que flutuam sobre esse canvas. */
  --color-page-bg: #fafafa;
  --color-dot: rgba(17, 17, 20, 0.09);
  --color-bg: #ffffff;
  --color-bg-soft: #f9f9fb;
  --color-tint: #d9ecfd;
  --color-tint-strong: #eaf4fe;
  --color-border: #e2e2e6;
  --color-border-subtle: #d9d9e0;
  --color-accent: #0084f0;
  --color-accent-hover: #0073d1;
  --color-accent-active: #005ca8;
  --color-accent-fg: #ffffff;
  --color-dark: #0a1b33;
  --color-success: #218358;

  /* Tipografia — só Inter (Space Grotesk removida) */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Raio — mesma escala do produto */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Espaçamento — ritmo mais arejado que o app (página de marketing, não UI densa) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 80px;
  --space-6: 128px;

  --container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-page-bg);
  background-image: radial-gradient(circle, var(--color-dot) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* ---- Tipografia de escala ---- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 3vw + 1.8rem, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.2vw + 1.4rem, 2.5rem);
  line-height: 1.2;
  margin: 0;
}

.h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0 0 var(--space-1);
}

.lede, .body-lg {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 12px 0 0;
  max-width: 60ch;
}

.on-dark { color: #ffffff; }
.on-dark-muted { color: rgba(255, 255, 255, 0.72); }

.fine-print {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ---- Botões: altura fixa de 40px, texto 14px médio, sem contorno branco. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  height: 40px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--color-accent); color: var(--color-accent-fg); }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-primary:active { background: var(--color-accent-active); }

.btn-secondary { background: var(--color-bg); color: var(--color-ink); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-bg-soft); }

.btn-ghost { background: transparent; color: var(--color-ink); }
.btn-ghost:hover { background: var(--color-bg-soft); }

.btn-link {
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--color-accent);
  font-weight: 600;
}
.btn-link:hover { color: var(--color-accent-hover); text-decoration: underline; }

/* ---- Top bar: sem sombra nem borda no estado normal; ao rolar a página, vira uma pílula
   flutuante centralizada com sombra leve — some de novo assim que o scroll pára (ver app.js). */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 0;
  background: transparent;
  /* Voltar ao estado expandido é mais lento que encolher (0.3s pra flutuar, 0.7s pra voltar). */
  transition: padding-top 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 72px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  max-width: 100%;
  transition: max-width 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.7s ease, box-shadow 0.7s ease,
    background-color 0.7s ease, padding 0.7s ease, height 0.7s ease;
}

.topbar.is-floating {
  padding-top: 14px;
  transition: padding-top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar.is-floating .topbar-inner {
  max-width: 460px;
  height: 60px;
  padding: 0 var(--space-3);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(17, 17, 20, 0.1);
  transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease, padding 0.3s ease, height 0.3s ease;
}

.logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.logo-mark {
  height: 28px;
  width: auto;
  -webkit-user-drag: none;
  user-select: none;
}

.topbar-actions { display: flex; align-items: center; gap: var(--space-1); }

@media (prefers-reduced-motion: reduce) {
  .topbar, .topbar-inner { transition: none; }
}

/* ---- Seções genéricas ---- */
.section { padding: var(--space-5) 0; }
.section-tint { background: var(--color-tint-strong); }
.section-dark { background: var(--color-dark); }

#planos { padding: 140px 0; }
#faq { padding-bottom: 120px; }

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-4);
  text-align: center;
}
.section-head .body-lg { margin-left: auto; margin-right: auto; }

#planos .section-head { margin-bottom: 120px; }

/* ---- Hero: só o vídeo de marca, sem texto/CTA sobreposto ---- */
.hero { padding: 80px 0 var(--space-4); }

.hero-grid { display: block; }

/* O recorte (border-radius) e a animação de entrada (escala/opacidade) ficam no wrapper, não no
   <video> — direto no vídeo, a camada de composição do navegador vaza uma linha de 1px nos
   cantos arredondados quando combinada com transform (visto em Chromium). */
.hero-video-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-dark);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-video-frame.is-visible {
  opacity: 1;
  transform: scale(1);
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 720px) {
  .hero-video { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-frame { transition: opacity 0.3s ease; transform: none; }
}

/* ---- Vitrine de telas (seção "como funciona") ----
   As classes scr-* abaixo reproduzem, com os mesmos valores (cor, espaçamento, raio, sombra),
   os componentes reais do produto (frontend/src/components/ui/{Tabs,ListToolbar,ProfileCard,Badge}.css
   e app/Shell.css) — não é um componente novo, é o mesmo, em CSS puro. Valores literais porque a
   escala de espaçamento/tipografia do app (frontend/src/theme/tokens.css) é diferente da desta
   página de marketing. */
/* Qualquer seção com o overlay de formas da marca (.showcase-shapes) precisa ser o contexto de
   posicionamento delas e recortar o que passar da borda. */
.floating-shapes-host {
  position: relative;
  overflow: hidden;
}

.section-showcase {
  padding: 40px 0;
}

/* Formas soltas da marca, sobrepostas à seção inteira; seguem o mouse (parallax de profundidade)
   e se deslocam um pouco a mais no scroll — ver assets/app.js. */
.showcase-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  width: 64px;
  height: auto;
  will-change: transform;
}

.shape-blue { top: 4%; left: 6%; width: 56px; }
.shape-burst { top: 2%; right: 8%; width: 76px; }
.shape-flower { top: 40%; left: 1%; width: 52px; z-index: 2; }
.shape-square { top: 46%; right: 3%; width: 60px; z-index: 2; }
.shape-pink { bottom: 6%; left: 7%; width: 60px; }
.shape-green { bottom: 4%; right: 9%; width: 60px; }

/* As duas formas "de borda": filhas do .showcase (não do .showcase-shapes), posicionadas com
   deslocamento negativo pra atravessar o próprio contorno do container escuro. */
.shape-edge { width: 48px; z-index: 3; }
.shape-edge-top { top: -18px; right: 64px; }
.shape-edge-bottom { bottom: -16px; left: 48px; width: 40px; }

@media (max-width: 720px) {
  .shape-flower, .shape-square, .shape-edge { display: none; }
  .shape-blue, .shape-burst, .shape-pink, .shape-green { width: 40px; opacity: 0.7; }
}

/* Container principal: mínimo 40px de padding (--space-4 desta página = 40px), zero embaixo —
   a tela renderizada fica encostada no rodapé do container, cortada pelo próprio raio de 20px
   (overflow: hidden) em vez de sobrar espaço escuro depois dela. */
.showcase {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(180deg, #0d2140 0%, var(--color-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4) 0;
}

.showcase-tabbar {
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
}

.showcase-tabbar[hidden] { display: none; }

/* ---- scr-segmented: réplica exata de components/ui/Tabs.tsx + ListToolbar.css ----
   (usada tal-e-qual nos filtros inline de cada tela — Usar/Evitar, Meus/Sistema). */
.scr-segmented {
  display: inline-flex;
  padding: 2px;
  border: 1px solid #d9d9e0;
  border-radius: 8px;
  background: #f9f9fb;
}

.scr-segmented-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b6b76;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.scr-segmented-option:hover { color: #111114; }

.scr-segmented-option[data-state="active"],
.scr-segmented-option[aria-pressed="true"] {
  background: #ffffff;
  color: #111114;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* A aba principal da vitrine (acima das telas) pede um tratamento maior e centralizado — só aqui,
   os filtros inline de cada tela continuam no tamanho real do componente. */
.showcase-tabbar .scr-segmented {
  padding: 8px;
  gap: 4px;
}

.showcase-tabbar .scr-segmented-option {
  height: auto;
  padding: 8px 12px;
  font-size: 14px;
}

.showcase-tabbar .scr-segmented-option[data-state="active"] {
  font-weight: 600;
}

/* ---- Tela renderizada: sidebar + painel flutuante (Shell.css) ----
   Tamanho fixo (1240x800) que encolhe proporcionalmente em telas menores (aspect-ratio),
   pra caber sem cortar nem desproporcionar os componentes internos. */
.showcase-screen {
  display: flex;
  width: 100%;
  max-width: 1240px;
  aspect-ratio: 1240 / 800;
  margin: 0 auto;
  background: #f4f4f6;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.app-sidebar {
  flex-shrink: 0;
  width: 200px;
  padding-top: 16px;
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: #55555f;
  font-size: 13px;
  white-space: nowrap;
  cursor: default;
}

.app-nav-link svg { flex-shrink: 0; }

.app-nav-link[data-group="voz"],
.app-nav-link[data-group="templates"] {
  cursor: pointer;
}

.app-nav-link:is([data-group="voz"], [data-group="templates"]):hover {
  background: #e9e9ec;
  color: #111114;
}

.app-nav-link.is-active {
  background: #d9ecfd;
  color: #005fb0;
}

/* Painel de conteúdo: mesmo "flutuar sobre a moldura cinza" do .scr-panel real — margem em cima e
   à direita (não à esquerda, encostado na sidebar), cantos arredondados nos 4 lados. Sem margem
   embaixo nesta vitrine (pedido explícito: sem padding inferior, encostado no rodapé do container). */
.app-panel {
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 16px 16px 0 0;
  padding: 24px;
  background: #ffffff;
  border-radius: 20px;
  overflow-y: auto;
}

/* ---- scr-list-toolbar / scr-search: réplica exata de ListToolbar.css ---- */
.scr-list-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.scr-list-toolbar-side { display: flex; align-items: center; }

.scr-search {
  flex: 0 1 320px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e2e2e6;
  border-radius: 8px;
  background: #ffffff;
  color: #6b6b76;
}

.scr-search svg { flex-shrink: 0; }
.scr-search-fake { font-size: 13px; }

/* ---- scr-profile-grid / scr-profile-card: réplica exata de ProfileCard.css ---- */
.scr-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  padding-bottom: 24px;
}

.scr-profile-card {
  text-align: left;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d9d9e0;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.scr-profile-card--interactive:hover { border-color: #b9bbc6; background: #f9f9fb; }

.scr-profile-card.is-selected {
  border-color: #0084f0;
  box-shadow: 0 0 0 3px #d9ecfd;
}

.scr-profile-head { display: flex; align-items: center; gap: 12px; }

.scr-profile-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #d9ecfd;
  color: #005fb0;
}

.scr-profile-icon[data-tone="success"] { background: #e6f6eb; color: #1a6b47; }
.scr-profile-icon[data-tone="danger"] { background: #feebec; color: #ce2c31; }

.scr-profile-head .dd-badge { margin-left: auto; }

.scr-profile-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.scr-profile-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.scr-profile-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b6b76;
}

.scr-profile-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #d9d9e0;
}

.scr-profile-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---- dd-badge: réplica exata de Badge.css ---- */
.dd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 9999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  background: #f9f9fb;
  color: #6b6b76;
}

.dd-badge[data-tone="success"] { background: #e6f6eb; color: #1a6b47; }
.dd-badge[data-tone="error"] { background: #feebec; color: #ce2c31; }

/* ---- Painel estratégico: grade de cartões de número ---- */
.scr-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.scr-stat-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: #f9f9fb;
  border-radius: 12px;
}

.scr-stat-label { font-size: 13px; color: #6b6b76; }
.scr-stat-value { font-size: 24px; font-weight: 700; color: #111114; }

/* ---- Preferências: linhas de configuração ---- */
.scr-pref-rows { display: flex; flex-direction: column; gap: 12px; }

.scr-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #d9d9e0;
  border-radius: 12px;
}

/* ---- Painel estratégico: gráficos ---- */
.scr-chart-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.scr-bar-chart {
  flex: 1;
  min-width: 200px;
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  background: #f9f9fb;
  border-radius: 12px;
}

.scr-bar { flex: 1; height: var(--h, 40%); background: #0084f0; border-radius: 4px 4px 0 0; }

.scr-donut {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#0084f0 var(--pct, 50%), #e2e2e6 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scr-donut::before {
  content: "";
  position: absolute;
  inset: 14px;
  background: #ffffff;
  border-radius: 50%;
}

.scr-donut-label { position: relative; font-weight: 700; font-size: 18px; color: #111114; }

/* ---- Workspace: chat de criação rápida (como no app real) ---- */
.scr-workspace-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  margin-bottom: 20px;
  background: #f9f9fb;
  border-radius: 12px;
}

.scr-workspace-chat-row { display: flex; }
.scr-workspace-chat-row--reply { justify-content: flex-end; }

.scr-workspace-chat-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #ffffff;
  font-size: 13px;
  line-height: 1.4;
  color: #111114;
}

.scr-workspace-chat-bubble--reply {
  border-radius: 14px 14px 4px 14px;
  background: #0084f0;
  color: #ffffff;
}

.scr-workspace-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-top: 4px;
  padding: 0 6px 0 14px;
  background: #ffffff;
  border: 1px solid #d9d9e0;
  border-radius: 9999px;
}

.scr-workspace-composer-input { flex: 1; font-size: 13px; color: #6b6b76; }

.scr-workspace-composer-send {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0084f0;
  color: #ffffff;
}

@media (max-width: 720px) {
  .showcase-screen { aspect-ratio: auto; flex-direction: column; }
  .app-sidebar { width: auto; padding-top: 8px; }
  .app-sidebar-nav { flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .app-nav-link span:last-child { display: none; }
  .app-panel { margin: 0; border-radius: 0; }
  .showcase-tabbar .scr-segmented { flex-wrap: wrap; justify-content: center; }
  .scr-segmented { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .shape { transition: none !important; }
}

/* ---- "Pesquisa, escreve, avalia, edita" ----
   Sem cor de fundo na seção (o canvas com pontos da página aparece); só o .split (container
   interno) é uma superfície branca, sem arredondamento, com respiro de 80px em cima/embaixo. */
.split {
  padding: 80px var(--space-4);
}

.split .section-head { margin-bottom: 40px; }

/* Cards de capacidade: fundo branco, contorno grosso, shape grande da marca à esquerda,
   texto (categoria pequena + título em negrito) à direita. */
.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

@media (max-width: 640px) {
  .capability-list { grid-template-columns: 1fr; }
}

.cap-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 2px 8px -2px rgba(17, 17, 20, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px -10px rgba(17, 17, 20, 0.18);
}

.cap-card-shape {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  transition: transform 0.6s ease;
}

.cap-card:hover .cap-card-shape { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .cap-card-shape { transition: none; }
}

.cap-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cap-card-eyebrow { font-size: 0.8125rem; color: var(--color-muted); }

.cap-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
}

/* ---- Canais: caixa escura com as formas da marca, físicas — caem, colidem e dá pra
   arrastar/jogar (ver assets/app.js). Sem cor de fundo na seção: só a caixa é escura. */
.channels-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 600px;
  padding: var(--space-4);
  background: linear-gradient(180deg, #0d2140 0%, var(--color-dark) 100%);
  border-radius: var(--radius-lg);
}

.channels-box .section-head { position: relative; z-index: 1; margin: 0; pointer-events: none; }

.channels-pieces {
  position: absolute;
  inset: 0;
}

.channel-piece {
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 180px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: grab;
  touch-action: none;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.channel-piece:active { cursor: grabbing; }

.channel-piece-shape {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.channel-piece-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (max-width: 720px) {
  .channels-box { height: 480px; }
  .channel-piece { width: 110px; height: 110px; }
}

/* ---- CTA no meio ----
   Sem cor de fundo na seção: só o .cta-mid-box (container interno) é #10244A. */
.cta-mid-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-5);
  background: linear-gradient(180deg, #0d2140 0%, var(--color-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}

.cta-mid-copy .h2 { margin: 0; }
.cta-mid-copy .body-lg { margin: 12px 0 0; max-width: 44ch; }

.cta-mid-copy .btn { margin-top: var(--space-4); }

.cta-mid-visual {
  position: relative;
  min-height: 300px;
}

.cta-card {
  position: absolute;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
  padding: var(--space-3);
}

.cta-card-chat {
  top: 0;
  left: 6%;
  width: 78%;
  transform: rotate(-4deg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-card-editor {
  bottom: 0;
  right: 2%;
  width: 68%;
  transform: rotate(3deg);
  z-index: 1;
}

.cta-chat-row { display: flex; align-items: flex-start; gap: 8px; }
.cta-chat-row--reply { justify-content: flex-end; }

.cta-chat-avatar {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
}

.cta-chat-bubble {
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--color-bg-soft);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.cta-chat-bubble--reply {
  border-radius: 14px 14px 4px 14px;
  background: var(--color-accent);
  color: var(--color-accent-fg);
}

.cta-editor-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-2);
}

.cta-editor-toolbar span {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--color-bg-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.cta-editor-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-2); }
.cta-editor-line { height: 9px; border-radius: var(--radius-pill); background: var(--color-bg-soft); }
.cta-editor-line.w-90 { width: 90%; }
.cta-editor-line.w-100 { width: 100%; }
.cta-editor-line.w-70 { width: 70%; }

.cta-editor-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-tint);
  color: var(--color-accent-active);
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .cta-mid-box { grid-template-columns: 1fr; }
  .cta-mid-visual { min-height: 260px; }
}

/* ---- Planos ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  align-items: stretch;
}

.price-card {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding: 44px 40px var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}

.price-card-featured {
  border-color: var(--color-border);
  background: var(--color-bg);
}

/* Nome do plano: um badge flutuante centralizado, sobrepondo o topo do card — pílula pra
   Básico/Empresas, o shape azul da marca (o mesmo da logo) pro Pro. */
.price-name {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.price-name-pill {
  display: inline-flex;
  align-items: center;
  background: var(--color-border);
  color: var(--color-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

.price-name-shape {
  top: -56px;
  width: 100px;
  height: 100px;
}

.price-name-shape-icon {
  width: 100%;
  height: 100%;
  animation: price-shape-spin 12s linear infinite;
}

@keyframes price-shape-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .price-name-shape-icon { animation: none; }
}

.price-name-shape .price-name-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin: var(--space-2) 0 0;
}

.price-desc { color: var(--color-muted); margin: var(--space-1) 0 var(--space-3); }

.price-list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9375rem;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.price-card .btn { width: 100%; }

/* ---- FAQ: acordeão nativo (details/summary), sem JS ---- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: var(--space-2) 0 0;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ---- Rodapé ---- */
.footer { border-top: 1px solid var(--color-border); padding: 80px 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.footer-tag { color: var(--color-muted); margin-top: var(--space-1); max-width: 32ch; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: var(--color-muted); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--color-ink); }

.footer-bottom {
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; color: var(--color-muted); font-size: 0.8125rem; }

/* ---- Botão flutuante "voltar ao topo" ---- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 17, 20, 0.18);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
}

.back-to-top:hover { background: var(--color-accent-hover); }

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.2s ease; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar-actions .btn-ghost { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-4) 0; }
  .hero { padding: var(--space-4) 0 var(--space-3); }
}
