/* ============================================================
   Shozap — LandingPage V4
   Sistema visual: fundo neutro, tinta quase preta, UMA cor de marca
   (o laranja do tema) e blocos de cor de ponta a ponta para separar
   os assuntos. O que a Shozap publica (o grupo de ofertas) é a imagem
   do topo; o resto fica quieto em volta.

   O editor do /admin troca as variáveis de :root (script.js ›
   aplicarTema) e aplica as classes ls-* por seção (aplicarEstilos).
   Com o tema padrão nada é sobrescrito e a página sai como está aqui.
   ============================================================ */

/* ---------- 1. Tokens ---------- */

:root {
  /* Marca (tema do /admin) */
  --brand: #ee4d2d;
  --brand-rgb: 238, 77, 45;
  --brand-light: #ff6b35;
  --brand-light-rgb: 255, 107, 53;
  --brand-dark: #c9350f;
  --brand-tint: #ffe9e0;
  --brand-tint-2: #fff4ef;
  /* Só usado onde o admin escolhe "fundo: gradiente". */
  --gradient-brand: linear-gradient(135deg, #ff6b35 0%, #ee4d2d 60%, #d73211 100%);
  /* Texto sobre a cor da marca: o script escolhe tinta ou branco pelo
     contraste. Com o laranja padrão a tinta passa de 4,5:1; o branco não. */
  --on-brand: #171b22;
  --on-brand-inv: #ffffff;

  --bg: #ffffff;
  --bg-soft: #fff8f5;
  --text: #171b22;
  --muted: #5b6472;
  --success: #14a35f;
  --success-rgb: 20, 163, 95;

  /* Cópias fixas do tema: seções escuras trocam --text/--muted, e o que
     fica sobre fundo claro dentro delas volta a estas. */
  --ls-texto: #171b22;
  --ls-texto-suave: #5b6472;
  --ls-escuro: #12161d;

  --font-title: "Sora", "Inter", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  /* Cantos: multiplicador dos raios (data-cantos no <html>). */
  --rk: 1;
  --radius: calc(16px * var(--rk));
  --radius-sm: calc(8px * var(--rk));
  --radius-btn: calc(10px * var(--rk));

  /* Ritmo */
  --gut: 1.25rem;
  --header-h: 60px;
  --sec-pad: clamp(3.5rem, 2rem + 6vw, 7rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Escala de texto (rem + vw; o máximo nunca passa de 2,5x o mínimo) */
  --t-h1: clamp(2.375rem, 1.35rem + 4.4vw, 4.5rem);
  --t-h2: clamp(1.875rem, 1.35rem + 2.2vw, 3rem);
  --t-h3: 1.1875rem;
  --t-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --t-small: 0.875rem;
  --t-label: 0.8125rem;
}

/* Tokens derivados: redeclarados em todo escopo que troca --text ou a marca. */
:root,
.ls-tom-escuro,
.integ-section,
.cta-final,
.site-footer,
.afiliados-section,
.claro {
  --surface: var(--bg);
  --surface-2: color-mix(in srgb, var(--text) 4%, var(--bg));
  --border: color-mix(in srgb, var(--text) 13%, transparent);
  --border-forte: color-mix(in srgb, var(--text) 28%, transparent);
  --accent-text: var(--brand-dark);
  --focus: var(--text);
  --btn-bg: var(--brand);
  --btn-fg: var(--on-brand);
}

@media (min-width: 640px) {
  :root { --gut: 2rem; --header-h: 68px; }
}

@media (min-width: 1024px) {
  :root { --gut: 3rem; }
}

/* Tema: cantos e botões */
:root[data-cantos="reto"] { --rk: 0.25; }
:root[data-cantos="suave"] { --rk: 0.6; }
:root[data-cantos="redondo"] { --rk: 1.45; }
:root[data-botoes="pilula"] { --radius-btn: 999px; }
:root[data-botoes="reto"] { --radius-btn: 3px; }

/* ---------- 2. Base ---------- */

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

* {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3,
.logo-text {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

ul, ol { list-style: none; }

a { color: inherit; }

button { font: inherit; color: inherit; }

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

/* Seções recebem foco só para o link do menu levar o teclado até elas. */
main > section:focus { outline: none; }

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

.container {
  width: min(100% - 2 * var(--gut), 1200px);
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2 * var(--gut), 760px);
  margin-inline: auto;
}

/* Segunda frase de um título: mesma letra, tom mais baixo. */
.titulo-suave { color: var(--muted); }

/* Classe do JS para revelar ao rolar: não esconde mais nada. */
.reveal { opacity: 1; }

/* ---------- 3. Botões e links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, translate 0.18s var(--ease);
}

.btn i {
  font-size: 0.85em;
  transition: translate 0.2s var(--ease);
}

.btn:hover { translate: 0 -1px; }
.btn:active { translate: 0 1px; }
.btn:hover .fa-arrow-right { translate: 3px 0; }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--btn-bg) 88%, var(--btn-fg));
}

.btn-ghost,
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-forte);
}

.btn-ghost:hover,
.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--text);
}

.btn-lg {
  min-height: 3.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1.0625rem;
}

.btn-sm {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn i { transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
  .btn:hover, .btn:active, .btn:hover .fa-arrow-right { translate: none; }
}

/* ---------- 4. Barra de progresso ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 60;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: progresso auto linear;
      animation-timeline: scroll(root);
    }
  }
}

@keyframes progresso {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

:root[data-barra="0"] .scroll-progress { display: none; }

/* ---------- 5. Cabeçalho ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

/* A linha precisa manter a largura natural para o script medir se cabe. */
.header-inner > *,
.site-nav > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0.5rem;
  z-index: 5;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-btn);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  translate: 0 -200%;
}

.skip-link:focus-visible { translate: 0 0; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  text-decoration: none;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: calc(8px * var(--rk));
  background: var(--brand);
  color: #ffffff;
  font-size: 0.9rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo-img {
  height: 2.25rem;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  order: 3;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  order: 2;
}

.account-link {
  display: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 0.25rem;
}

.account-link:hover { text-decoration: underline; text-underline-offset: 0.3em; }

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-forte);
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
}

.menu-toggle-barras {
  display: grid;
  gap: 5px;
  width: 18px;
}

.menu-toggle-barras span {
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: translate 0.2s var(--ease), rotate 0.2s var(--ease), opacity 0.15s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-barras span:nth-child(1) { translate: 0 7px; rotate: 45deg; }
.menu-toggle[aria-expanded="true"] .menu-toggle-barras span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-barras span:nth-child(3) { translate: 0 -7px; rotate: -45deg; }

/* Menu recolhido: folha sob a barra (popover nativo; .open cobre navegador sem popover). */
.main-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  width: auto;
  max-height: calc(100dvh - var(--header-h));
  margin: 0;
  padding: 0.25rem var(--gut) 1.5rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  overflow: auto;
  flex-direction: column;
  display: none;
  scroll-target-group: auto;
}

.main-nav:is(:popover-open, .open) { display: flex; }

.main-nav::backdrop {
  top: var(--header-h, 60px);
  background: rgb(18 22 29 / 0.4);
}

@media (prefers-reduced-motion: no-preference) {
  .main-nav:is(:popover-open) {
    transition: opacity 0.2s ease, translate 0.2s var(--ease);
    @starting-style {
      opacity: 0;
      translate: 0 -8px;
    }
  }
}

.main-nav a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.main-nav a:is(:target-current, .active) {
  box-shadow: inset 3px 0 0 var(--brand);
  padding-left: 0.875rem;
}

.main-nav .nav-login {
  margin-top: 1rem;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid var(--border-forte);
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
}

/* Menu em linha: quando o script mede que cabe (.is-wide) ou, antes de o
   script rodar, em telas largas. */
.site-header.is-wide .site-nav { order: 1; margin-left: clamp(1rem, 3vw, 3rem); }
.site-header.is-wide .menu-toggle { display: none; }
.site-header.is-wide .account-link { display: inline-flex; }

.site-header.is-wide .main-nav {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(1rem, 1.9vw, 1.75rem);
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.site-header.is-wide .main-nav a {
  position: relative;
  min-height: 2.75rem;
  border: 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  box-shadow: none;
  transition: color 0.15s ease;
}

.site-header.is-wide .main-nav a:hover { color: var(--text); }

.site-header.is-wide .main-nav a:is(:target-current, .active) {
  color: var(--text);
}

.site-header.is-wide .main-nav a:is(:target-current, .active)::after {
  content: "";
  position: absolute;
  inset: auto 0 0.4rem;
  border-bottom: 2px solid var(--brand);
}

.site-header.is-wide .main-nav .nav-login { display: none; }

@media (min-width: 1100px) {
  .site-header:not(.is-narrow) .site-nav { order: 1; margin-left: clamp(1rem, 3vw, 3rem); }
  .site-header:not(.is-narrow) .menu-toggle { display: none; }
  .site-header:not(.is-narrow) .account-link { display: inline-flex; }
  .site-header:not(.is-narrow) .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 1.9vw, 1.75rem);
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .site-header:not(.is-narrow) .main-nav a {
    position: relative;
    min-height: 2.75rem;
    border: 0;
    padding: 0;
    font-size: 0.9375rem;
    color: var(--muted);
  }
  .site-header:not(.is-narrow) .main-nav .nav-login { display: none; }
}

.site-header.is-measuring * { transition: none !important; }

/* Celular estreito: o botão do topo encolhe para a barra não estourar. */
@media (max-width: 400px) {
  .header-actions .btn-sm { padding-inline: 0.8rem; font-size: 0.875rem; }
  .logo-text { font-size: 1.125rem; }
}

/* ---------- 6. Topo ---------- */

.hero {
  padding-top: calc(var(--header-h) + clamp(2.25rem, 1rem + 5vw, 5rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.hero-inner {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}

.hero-texto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--muted);
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(var(--success-rgb), 0.18);
}

.hero-title {
  font-size: var(--t-h1);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero-title .titulo-suave { display: block; }

.hero-sub {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (max-width: 480px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (min-width: 960px) {
  .hero { min-height: min(100svh, 58rem); display: grid; align-items: center; }
  .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero-inner > :only-child { grid-column: 1 / -1; }
}

/* Entrada do topo: uma vez, ao carregar. */
@media (prefers-reduced-motion: no-preference) {
  .hero-texto > *,
  .chat-mockup,
  .hero-imagem {
    animation: entra 0.7s var(--ease) both;
  }
  .hero-texto > :nth-child(2) { animation-delay: 0.06s; }
  .hero-texto > :nth-child(3) { animation-delay: 0.12s; }
  .hero-texto > :nth-child(4) { animation-delay: 0.18s; }
  .chat-mockup, .hero-imagem { animation-delay: 0.22s; }
}

@keyframes entra {
  from { opacity: 0; translate: 0 14px; }
}

/* O grupo de ofertas. Cores fixas: é a cara de um app de mensagens, não do tema. */
.chat-mockup {
  --text: #171b22;
  --muted: #5b6472;
  width: 100%;
  max-width: 30rem;
  justify-self: end;
  color: var(--text);
}

.chat-window {
  border: 1px solid rgb(23 27 34 / 0.14);
  border-radius: calc(20px * var(--rk));
  background: #efeae2;
  overflow: hidden;
  box-shadow: 0 30px 60px -36px rgb(23 27 34 / 0.45);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid rgb(23 27 34 / 0.1);
}

.chat-avatar {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
}

.chat-header-texto { min-width: 0; flex: 1; }

.chat-title {
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-members {
  font-size: var(--t-label);
  color: var(--muted);
}

.chat-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--t-label);
  font-weight: 500;
  color: #0f7a47;
  white-space: nowrap;
}

.live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #14a35f;
}

.chat-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  min-height: 21.5rem;
  padding: 1rem;
}

.chat-msg {
  max-width: 90%;
  padding: 0.75rem 0.9rem 0.6rem;
  border-radius: 4px 14px 14px 14px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgb(17 24 39 / 0.1);
  opacity: 0;
  translate: 0 10px;
}

.chat-msg.show {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.35s ease, translate 0.35s var(--ease);
}

.msg-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c9350f;
}

.msg-tag-marca { color: var(--brand-dark); }
.msg-tag-verde { color: #0f7a47; }

.msg-text {
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.msg-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.msg-price s {
  font-size: var(--t-small);
  color: #6b7480;
}

.msg-price strong {
  font-family: var(--font-title);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #5d6b76;
}

.msg-meta i { color: #2a9fd6; }

.chat-typing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 4px 14px 14px 14px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgb(17 24 39 / 0.1);
  opacity: 0;
}

.chat-typing.show { opacity: 1; transition: opacity 0.3s ease; }

.chat-typing em {
  font-style: normal;
  font-size: var(--t-label);
  color: var(--muted);
}

.chat-typing-pontos { display: inline-flex; gap: 3px; }

.chat-typing-pontos span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8696a0;
}

@media (scripting: none) {
  .chat-msg, .chat-typing { opacity: 1; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-msg { translate: none; }
  .chat-msg.show, .chat-typing.show { transition: none; }
}

/* Dois números do dia, presos sob o grupo (nada flutuando por cima). */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  padding-inline: 0.25rem;
}

.chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ls-texto-suave);
}

.chat-chip i { color: var(--brand-dark); }

.ls-tom-escuro .chat-chip { color: rgb(244 245 247 / 0.78); }
.ls-tom-escuro .chat-chip i { color: var(--brand-light); }

.hero-imagem {
  width: 100%;
  justify-self: end;
}

.hero-imagem img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media (max-width: 959px) {
  .chat-mockup, .hero-imagem { justify-self: start; }
}

/* ---------- 7. Faixa de marcas ---------- */

.marquee {
  padding-block: 1.75rem;
  border-block: 1px solid var(--border);
}

.marquee-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.marquee-titulo {
  font-size: var(--t-small);
  color: var(--muted);
}

.marquee-pausa {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: transparent;
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}

.marquee-pausa:hover { color: var(--text); border-color: var(--border-forte); }
.marquee-pausa[hidden] { display: none; }
.marquee-pausa i { font-size: 0.7rem; }

.marquee-janela {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
}

.mk-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 2.75rem;
  padding-inline: clamp(1.25rem, 2.5vw, 2.25rem);
}

.mk-logo {
  width: auto;
  height: 1.75rem;
  max-width: 7.5rem;
  object-fit: contain;
}

.mk-fallback {
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.mk-fallback i { color: var(--accent-text); font-size: 0.95em; }

/* Logos são desenhados para fundo claro. */
.marquee.ls-tom-escuro .mk-item:not(.mk-fallback),
:root[data-tema-escuro="1"] .mk-item:not(.mk-fallback) {
  margin-inline: 0.5rem;
  padding-inline: 1rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: faixa var(--mk-dur, 58s) linear infinite; }
  .marquee.is-pausada .marquee-track,
  .marquee-janela:hover .marquee-track { animation-play-state: paused; }
}

/* Sem movimento: os logos ficam parados, em linhas, sem a cópia do laço. */
@media (prefers-reduced-motion: reduce) {
  .marquee-janela { mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 0.75rem; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee-pausa { display: none; }
}

@keyframes faixa {
  to { translate: -50% 0; }
}

/* ---------- 8. Seções ---------- */

.section {
  padding-block: var(--sec-pad);
}

.alt-section { background: var(--bg-soft); }

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 4rem);
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--accent-text);
}

.section-tag i { font-size: 0.85em; }

.section-title {
  font-size: var(--t-h2);
  max-width: 20ch;
}

.section-sub {
  max-width: 34rem;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--muted);
}

.section-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-small);
  font-weight: 500;
  color: color-mix(in srgb, var(--success) 82%, var(--text));
}

.section-badge-brand { color: var(--accent-text); }

/* Título à esquerda, texto de apoio à direita, na mesma linha de base. */
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 3rem;
    align-items: end;
  }
  .section-head > .section-tag { grid-column: 1 / -1; }
  .section-head > .section-title { grid-column: 1; grid-row: span 2; }
  .section-head > .section-sub,
  .section-head > .section-badge { grid-column: 2; }
}

/* Lista de itens com marcador de "feito" (bullets do CMS). */
.modo-bullets {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.modo-bullets:empty { display: none; }

.modo-bullets li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
}

.modo-bullets li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--accent-text);
}

/* Cartão: uma receita só para a página toda. */
.modo-card,
.pagina-card,
.ls-card,
.depo-card,
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- 9. O que é ---------- */

.about-grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: start;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-content .section-tag { margin-bottom: 1rem; }

.about-text {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

.about-content .btn { margin-top: 2rem; }

.about-features { border-top: 1px solid var(--border); }

.about-feature {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.feature-icon,
.bot-item-icone {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--accent-text);
}

.about-feature h3,
.bot-item h3 {
  font-size: var(--t-h3);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.about-feature p,
.bot-item p {
  margin-top: 0.35rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* ---------- 10. Bot de Ofertas ---------- */

.bot-section { background: var(--bg-soft); }

.bot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "demo" "detalhes";
  gap: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(2rem, 6vw, 6rem);
}

.bot-intro { grid-area: intro; min-width: 0; }
.bot-detalhes { grid-area: detalhes; min-width: 0; }

.bot-intro .section-tag { margin-bottom: 1rem; }
.bot-intro .section-title { max-width: 18ch; }
.bot-intro .section-title .titulo-suave { display: block; }
.bot-intro .section-sub { margin-top: 1.25rem; }

.bot-canais {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.75rem;
}

.bot-canais-label {
  font-size: var(--t-small);
  color: var(--muted);
}

.bot-canais-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.bot-canal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.bot-canal i { font-size: 1.15rem; color: var(--accent-text); }

/* Ícones reais dos canais (img/marcas): cobrem o glifo quando o canal é conhecido. */
.bot-canal:is(.bc-whatsapp, .bc-telegram, .bc-instagram, .bc-facebook) i,
.channel-icon:is(.ch-whatsapp, .ch-telegram, .ch-instagram, .ch-facebook) i {
  display: block;
  width: 1em;
  height: 1em;
  font-size: var(--logo-tam, 1.25rem);
  background: var(--logo) center / contain no-repeat;
}

.bot-canal:is(.bc-whatsapp, .bc-telegram, .bc-instagram, .bc-facebook) i::before,
.channel-icon:is(.ch-whatsapp, .ch-telegram, .ch-instagram, .ch-facebook) i::before {
  content: none;
}

.bc-whatsapp, .ch-whatsapp { --logo: url("img/marcas/whatsapp.svg"); }
.bc-telegram, .ch-telegram { --logo: url("img/marcas/telegram.svg"); }
.bc-instagram, .ch-instagram { --logo: url("img/marcas/instagram.svg"); }
.bc-facebook, .ch-facebook { --logo: url("img/marcas/facebook.svg"); }

.bot-itens {
  display: grid;
  gap: 1.75rem 2.5rem;
}

.bot-item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
}

.bot-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.bot-nota {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: var(--t-small);
  color: var(--muted);
}

.bot-nota i { color: var(--accent-text); }

/* Celular da demonstração */
.bot-demo {
  grid-area: demo;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.bot-demo-controles {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
}

.bot-demo-abas {
  display: inline-flex;
  border: 1px solid var(--border-forte);
  border-radius: var(--radius-btn);
  background: var(--surface);
  overflow: hidden;
}

.bot-demo-aba,
.bot-demo-pausa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 0;
  background: transparent;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.bot-demo-aba + .bot-demo-aba { border-left: 1px solid var(--border); }
.bot-demo-aba:hover, .bot-demo-pausa:hover { color: var(--text); }
.bot-demo-aba:focus-visible { outline-offset: -3px; }

.bot-demo-aba[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.bot-demo-pausa {
  width: 2.75rem;
  padding: 0;
  border: 1px solid var(--border-forte);
  border-radius: var(--radius-btn);
  background: var(--surface);
}

.bot-demo-pausa[hidden] { display: none; }

.bot-demo-aba i { display: none; }

@media (max-width: 400px) {
  .bot-demo-aba { padding: 0 0.6rem; }
}

.bot-fone {
  width: 100%;
  max-width: 330px;
  height: 540px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 8px solid #12151c;
  border-radius: 34px;
  background: #efeae2;
  box-shadow: 0 36px 70px -34px rgb(18 21 28 / 0.55);
  font-family: "Inter", system-ui, sans-serif;
  color: #111b21;
  transition: background-color 0.4s ease;
}

.bot-fone-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 13px 14px 11px;
  background: #075e54;
  color: #ffffff;
}

.bot-fone-topo > div { min-width: 0; line-height: 1.25; }
.bot-fone-topo b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-fone-topo small { font-size: 11px; opacity: 0.85; }

.bot-fone-avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.2);
  font-size: 14px;
}

.bot-fone-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
  overflow: hidden;
  transition: opacity 0.45s ease;
}

.bot-fone-chat.is-saindo { opacity: 0; }
.bot-fone-chat.is-parado { overflow-y: auto; }

.bf-bolha {
  position: relative;
  flex-shrink: 0;
  max-width: 86%;
  padding: 7px 9px 17px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 1px rgb(17 24 39 / 0.1);
}

.bf-bolha.is-bot { align-self: flex-start; background: #ffffff; border-top-left-radius: 3px; }
.bf-bolha.is-eu { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }

.bf-hora {
  position: absolute;
  right: 8px;
  bottom: 3px;
  font-size: 10px;
  color: #667781;
}

.bf-botoes { display: block; margin-top: 8px; }

.bf-botoes span {
  display: block;
  padding: 7px 8px;
  border-top: 1px solid #e9edef;
  color: #027eb5;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

.bf-oferta { width: 76%; font-size: 12.5px; }
.bf-oferta s { color: #8696a0; }
.bf-oferta small { color: #667781; }

.bf-oferta-img {
  display: grid;
  place-items: center;
  height: 62px;
  margin-bottom: 6px;
  border-radius: 7px;
  background: #dfe5ec;
  color: #475569;
  font-size: 23px;
}

.bf-oferta-link {
  display: block;
  margin-top: 3px;
  color: #027eb5;
  font-weight: 600;
}

.bf-aviso {
  flex-shrink: 0;
  align-self: center;
  max-width: 92%;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff3c4;
  color: #54450a;
  font-size: 11.5px;
  line-height: 1.35;
  text-align: center;
}

.bf-dig { display: inline-flex; align-items: center; gap: 4px; padding: 11px 12px; }
.bf-dig i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; }

/* O mesmo celular vestido de Telegram e de Instagram */
.bot-fone.is-tg { background: #cfdfe9; }
.bot-fone.is-tg .bot-fone-topo { background: #229ed9; }
.bot-fone.is-tg .bf-bolha.is-eu { background: #effdde; }
.bot-fone.is-ig { background: #ffffff; }
.bot-fone.is-ig .bot-fone-topo { background: linear-gradient(90deg, #833ab4, #e1306c 55%, #f77737); }
.bot-fone.is-ig .bf-bolha { box-shadow: none; }
.bot-fone.is-ig .bf-bolha.is-bot { background: #efefef; }
.bot-fone.is-ig .bf-bolha.is-eu { background: #3797f0; color: #ffffff; }
.bot-fone.is-ig .bf-bolha.is-eu .bf-hora { color: rgb(255 255 255 / 0.8); }

.bot-demo-legenda {
  max-width: 300px;
  font-size: var(--t-label);
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .bot-fone-chat { scroll-behavior: smooth; }
  .bf-bolha, .bf-aviso { animation: bf-entra 0.32s var(--ease) backwards; }
  .bf-oferta + .bf-oferta { animation-delay: 0.16s; }
  .bf-oferta + .bf-oferta + .bf-oferta { animation-delay: 0.32s; }
  .bf-dig i { animation: bf-ponto 1s infinite ease-in-out; }
  .bf-dig i:nth-child(2) { animation-delay: 0.15s; }
  .bf-dig i:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes bf-entra { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
@keyframes bf-ponto { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Passos para ligar (sequência de verdade: numerada) */
.bot-passos {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.bot-passos-titulo {
  margin-bottom: 1.75rem;
  font-family: var(--font-title);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bot-passos-lista {
  display: grid;
  gap: 1.75rem 2.5rem;
}

.bot-passo {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
}

.bot-passo-icone {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--accent-text);
}

.bot-passo-num,
.timeline-step {
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.bot-passo h3 {
  margin-top: 0.2rem;
  font-size: var(--t-h3);
  letter-spacing: -0.02em;
}

.bot-passo p {
  margin-top: 0.35rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .bot-itens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .bot-passos-lista { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (min-width: 960px) {
  .bot-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    grid-template-areas:
      "intro demo"
      "detalhes demo";
    grid-template-rows: auto 1fr;
    align-items: start;
  }
}

@media (max-width: 600px) {
  .bot-acoes .btn { flex: 1 1 100%; }
  .bot-fone { height: 480px; border-width: 7px; border-radius: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .bot-fone, .bot-fone-chat, .bot-demo-aba { transition: none; }
}

/* ---------- 11. Como funciona (3 passos numerados) ---------- */

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.timeline-icon {
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--accent-text);
}

.timeline-content h3 {
  margin-top: 0.4rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.025em;
}

.timeline-content p {
  margin-top: 0.6rem;
  max-width: 34rem;
  color: var(--muted);
}

@media (min-width: 860px) {
  .timeline {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    column-gap: 3rem;
    border-top: 0;
  }
  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 1.5rem;
    padding-block: 0;
    border-bottom: 0;
  }
  /* A linha do passo: o ícone anda sobre ela, o traço leva ao próximo. */
  .timeline-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .timeline-icon::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border-forte);
    margin-right: -3rem;
  }
  .timeline-item:last-child .timeline-icon::after { margin-right: 0; }
}

/* ---------- 12. Canais ---------- */

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  border-top: 1px solid var(--border);
}

.channel-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.channel-icon {
  --logo-tam: 2.25rem;
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-text);
}

.channel-card h3 {
  margin-top: 1.25rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.025em;
}

.channel-card p {
  margin-top: 0.5rem;
  color: var(--muted);
}

@media (min-width: 760px) {
  .channels-grid { border-top: 0; column-gap: 0; }
  .channel-card {
    padding: 0.25rem 2rem 0.5rem;
    border-bottom: 0;
    border-left: 1px solid var(--border);
  }
  .channel-card:first-child { padding-left: 0; border-left: 0; }
}

@media (min-width: 760px) and (max-width: 1023px) {
  .channels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .channel-card:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* ---------- 13. Modos de postar / Páginas de venda ---------- */

.modos-grid,
.paginas-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

.modo-card,
.pagina-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

/* Três opções, não três passos: sem numeração. */
.modo-num { display: none; }

.modo-badge {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-size: var(--t-label);
  font-weight: 500;
}

.pagina-icon {
  margin-bottom: 1.25rem;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--accent-text);
}

.modo-card h3,
.pagina-card h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.025em;
}

.modo-card > p,
.pagina-card > p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.modo-card .modo-bullets,
.pagina-card .modo-bullets { margin-top: auto; }

.modo-card > p,
.pagina-card > p { margin-bottom: 1.5rem; }

/* ---------- 14. Recursos (índice de funções, sem caixas) ---------- */

.bento {
  display: grid;
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
}

.bento-card {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-content: start;
  padding-block: 1.5rem 1.75rem;
  border-top: 1px solid var(--border);
}

.bento-icon {
  grid-row: 1 / span 3;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--accent-text);
}

.bento-card > :not(.bento-icon) { grid-column: 2; }

.bento-badge {
  justify-self: start;
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--muted);
}

.bento-card h3 {
  font-size: var(--t-h3);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.bento-card p {
  margin-top: 0.4rem;
  color: var(--muted);
}

@media (min-width: 680px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .bento-wide { grid-column: span 2; }
  .bento-wide p { max-width: 44rem; }
}

@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 15. Lojas parceiras ---------- */

.markets-grid {
  display: grid;
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.market-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: 1.5rem 1.75rem;
  border-top: 1px solid var(--border);
}

.market-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
  min-height: 2rem;
}

.market-icon {
  display: inline-flex;
  align-items: center;
  font-size: 1.125rem;
  color: var(--accent-text);
}

/* Logo real da loja (script.js › aplicarLogosLojas): entra no lugar do ícone. */
.market-logo {
  width: auto;
  height: 1.5rem;
  max-width: 6.5rem;
  object-fit: contain;
  object-position: left center;
}

.market-card.tem-logo .market-icon i { display: none; }

/* O logo já diz o nome: o h3 fica só para leitores de tela (e visível na
   prévia do editor, onde é o campo que se edita). */
.market-card.tem-logo:not(.logo-simbolo, .ls-previa *) h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.market-card:not(.tem-logo) .market-logo { display: none; }

.ls-tom-escuro .market-logo,
:root[data-tema-escuro="1"] .market-logo {
  box-sizing: content-box;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: #ffffff;
}

.market-head h3 {
  font-size: var(--t-h3);
  letter-spacing: -0.02em;
}

.market-metodo {
  margin-left: auto;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.market-card > p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.market-destaque {
  margin-top: 0.75rem;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--text);
}

/* ---------- 16. API & Webhooks (bloco escuro) ---------- */

/* Tons de um bloco escuro. Valem para as seções que o admin escurece
   (ls-tom-escuro) e para as que já nascem escuras, enquanto o admin não
   escolher outro fundo para elas. */
.ls-tom-escuro,
.integ-section:not([class*="ls-fundo-"]),
.cta-final:not([class*="ls-fundo-"]),
.site-footer {
  --text: #f4f5f7;
  --muted: rgb(244 245 247 / 0.72);
  --surface: rgb(255 255 255 / 0.06);
  --surface-2: rgb(255 255 255 / 0.08);
  --bg-soft: rgb(255 255 255 / 0.04);
  --accent-text: var(--brand-light);
  color: var(--text);
}

.integ-section:not([class*="ls-fundo-"]),
.cta-final:not([class*="ls-fundo-"]),
.site-footer {
  background: var(--ls-escuro);
}

.integracoes-grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.integracoes-cards { border-top: 1px solid var(--border); }

.integracao-card {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.integracao-icon {
  grid-row: 1 / span 3;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--accent-text);
}

.integracao-card > :not(.integracao-icon) { grid-column: 2; }

.integracao-card h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.025em;
}

.integracao-card > p {
  margin-top: 0.6rem;
  color: var(--muted);
}

/* O exemplo de código é sempre escuro, em qualquer fundo. */
.code-mock {
  min-width: 0;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius);
  background: #0b0e13;
  color: #e6e8ec;
  overflow: hidden;
}

.code-tabs {
  display: flex;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  overflow-x: auto;
  scrollbar-width: none;
}

.code-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.1rem;
  border: 0;
  background: transparent;
  font-size: var(--t-small);
  font-weight: 500;
  color: rgb(230 232 236 / 0.66);
  white-space: nowrap;
  cursor: pointer;
}

.code-tab i { font-size: 0.75rem; }
.code-tab:hover { color: #ffffff; }
.code-tab:focus-visible { outline-color: #ffffff; outline-offset: -3px; }

.code-tab[aria-selected="true"] { color: #ffffff; }

.code-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-bottom: 2px solid var(--brand-light);
}

.code-pane:focus-visible { outline-color: #ffffff; outline-offset: -3px; }

.code-pane pre {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
  tab-size: 2;
}

.code-pane code { font: inherit; }

.c-c { color: #8a94a3; }
.c-m { color: var(--brand-light); font-weight: 600; }
.c-k { color: #9fc5f8; }
.c-s { color: #f3c5a5; }

.code-note {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: var(--t-label);
  color: rgb(230 232 236 / 0.72);
}

.code-note i { color: var(--brand-light); }

@media (min-width: 960px) {
  .integracoes-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .integracoes-grid.ls-sem-codigo { grid-template-columns: minmax(0, 1fr); }
  .ls-sem-codigo .integracoes-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }
}

/* ---------- 17. Resultados ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 2rem 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 0.4rem;
  color: var(--muted);
}

/* ---------- 18. Depoimentos ---------- */

.depo-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 0.25rem;
}

.depo-track::-webkit-scrollbar { display: none; }
.depo-track.sem-rolagem { overflow-x: visible; }

.depo-card {
  flex: 0 0 min(22.5rem, 86%);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  scroll-snap-align: start;
}

.depo-card.vazio { display: none; }

.depo-print {
  position: relative;
  display: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}

.depo-card.tem-print .depo-print { display: block; }

.depo-print img {
  width: 100%;
  max-height: 20rem;
  object-fit: cover;
  object-position: center top;
  transition: scale 0.3s var(--ease);
}

.depo-print:hover img { scale: 1.03; }

.depo-zoom {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(18 22 29 / 0.72);
  color: #ffffff;
  font-size: 0.85rem;
}

.depo-texto {
  font-size: 1.0625rem;
  line-height: 1.55;
}

.depo-autor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.depo-foto {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.depo-quem { display: grid; }
.depo-nome { font-weight: 600; }
.depo-cargo { font-size: var(--t-small); color: var(--muted); }

.depo-card.so-print .depo-autor { display: none; }
.depo-card.so-print .depo-print { flex: 1; }
.depo-card.so-print .depo-print img { height: 100%; max-height: none; object-fit: contain; }

.depo-setas {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.depo-seta {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-forte);
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.depo-seta[hidden] { display: none; }
.depo-seta:hover { background: var(--surface-2); }

@media (prefers-reduced-motion: reduce) {
  .depo-print img { transition: none; }
  .depo-print:hover img { scale: none; }
}

/* Print ampliado (<dialog> nativo) */
.lightbox {
  max-width: min(92vw, 60rem);
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  overflow: visible;
}

.lightbox:modal { overscroll-behavior: contain; }

.lightbox::backdrop {
  background: rgb(10 12 16 / 0.86);
  overflow: hidden;
  overscroll-behavior: contain;
}

.lightbox img {
  max-width: 100%;
  max-height: 88dvh;
  border-radius: var(--radius-sm);
}

.lightbox-fechar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #171b22;
  cursor: pointer;
}

.lightbox-fechar:focus-visible { outline-color: #ffffff; }

/* ---------- 19. Preços ---------- */

.billing-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.billing-label {
  font-weight: 500;
  color: var(--muted);
}

.billing-label.active { color: var(--text); }

.billing-toggle {
  position: relative;
  width: 3.25rem;
  height: 2rem;
  border: 1px solid var(--border-forte);
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Área de toque de 44px sem crescer o desenho. */
.billing-toggle::before {
  content: "";
  position: absolute;
  inset: -0.4rem 0;
}

.billing-knob {
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--text);
  translate: 0 -50%;
  transition: translate 0.2s var(--ease);
}

.billing-toggle.active { background: var(--brand); border-color: var(--brand); }
.billing-toggle.active .billing-knob { translate: 1.25rem -50%; background: var(--on-brand); }

.billing-badge {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(var(--success-rgb), 0.12);
  font-size: var(--t-label);
  font-weight: 500;
  color: color-mix(in srgb, var(--success) 80%, var(--text));
}

.billing-badge:empty { display: none; }

.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  align-items: stretch;
}

.pricing-loading,
.pricing-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 0;
  color: var(--muted);
}

.pricing-empty a { color: var(--accent-text); font-weight: 500; }

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  min-width: 0;
}

.pricing-featured {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.pricing-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.25rem 0 0.9rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--on-brand);
  font-size: var(--t-label);
  font-weight: 600;
}

.pricing-badge i { font-size: 0.65rem; }

.pricing-card h3 {
  font-size: 1.375rem;
  letter-spacing: -0.025em;
}

.pricing-desc {
  margin-top: 0.4rem;
  /* duas linhas reservadas: os preços ficam na mesma altura nos cartões */
  min-height: 2.9em;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.pricing-de {
  margin-top: 1.25rem;
  font-size: var(--t-small);
  color: var(--muted);
}

.pricing-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.pricing-de + .pricing-value { margin-top: 0.25rem; }

.pricing-value .por-label {
  margin-right: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.pricing-value .currency {
  margin-right: 0.3rem;
  font-size: 1.125rem;
}

.pricing-value .price-int { font-size: clamp(2.25rem, 2rem + 1vw, 2.75rem); }
.pricing-value .price-cents { font-size: 1.125rem; }

.pricing-value .period {
  margin-left: 0.3rem;
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.pricing-promo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--accent-text);
}

.pricing-equiv {
  margin-top: 0.4rem;
  font-size: var(--t-small);
  color: var(--muted);
}

.pricing-features {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.pricing-features > li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pricing-features > li > i {
  flex: 0 0 0.9rem;
  margin-top: 0.32em;
  font-size: 0.75rem;
  text-align: center;
}

.pricing-features > li > span { flex: 1 1 auto; min-width: 0; }
.pricing-features li b { font-weight: 600; }
.pricing-features li.feat-on > i { color: var(--success); }
.pricing-features li.feat-off { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.pricing-features li.feat-off > i { color: color-mix(in srgb, var(--muted) 55%, transparent); }

.feat-detail {
  display: inline-block;
  padding: 0 0.4rem;
  border-radius: 5px;
  background: var(--surface-2);
  font-size: var(--t-label);
  font-weight: 500;
  white-space: nowrap;
}

.feat-bonus {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 5px;
  background: var(--brand-tint);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--brand-dark);
  white-space: nowrap;
  flex: 0 0 auto;
}

.pricing-features li.feat-lojas {
  flex-wrap: wrap;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

/* Lojas liberadas no plano: logos reais sobre branco. */
.lojas-chips {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.loja-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.75rem;
  padding: 0 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: var(--t-label);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loja-chip[hidden] { display: none; }

.loja-chip-logo { background: #ffffff; }

.loja-chip-logo img {
  width: auto;
  height: 0.95rem;
  max-width: 5.25rem;
  object-fit: contain;
}

/* Emblemas quase quadrados (Mercado Livre) ganham mais altura para não sumir. */
.loja-chip-logo img[src$="/mercado_livre.svg"],
.loja-chip-logo img[src$="/mercadolivre.svg"] { height: 1.25rem; }

.loja-chip-mais {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lojas-mais {
  position: relative;
  min-height: 1.75rem;
  padding: 0 0.6rem;
  border: 1px dashed var(--border-forte);
  border-radius: 6px;
  background: transparent;
  font-size: var(--t-label);
  font-weight: 600;
  cursor: pointer;
}

.lojas-mais::before { content: ""; position: absolute; inset: -0.5rem -0.25rem; }
.lojas-mais:hover { border-style: solid; background: var(--surface-2); }

.pricing-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  min-height: 2.75rem;
  margin-top: 0.75rem;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.3em;
}

.pricing-more:hover { text-decoration-color: currentColor; }
.pricing-more i { font-size: 0.7rem; }

.pricing-card > .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-card > .pricing-features + .btn,
.pricing-card > .pricing-more + .btn { margin-top: auto; }

.pricing-features { margin-bottom: 1.25rem; }
.pricing-features:has(+ .pricing-more) { margin-bottom: 0; }
.pricing-more { margin-bottom: 0.75rem; }

.pricing-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  margin-top: 1.5rem;
  font-size: var(--t-small);
  color: var(--muted);
}

.pricing-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.pricing-legend i { font-size: 0.7rem; }
.pricing-legend .legend-on i { color: var(--success); }

.pricing-note {
  margin-top: 2rem;
  font-size: var(--t-small);
  color: var(--muted);
}

/* Comparativo */
.pricing-compare {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.pricing-compare:focus { outline: none; }

.pricing-compare-head { margin-bottom: 1.5rem; }

.pricing-compare-head h3 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  letter-spacing: -0.03em;
}

.pricing-compare-head p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.pricing-compare-scroll {
  overflow-x: auto;
  overflow-x: clip; /* não vira contêiner de rolagem: o thead sticky funciona */
  border-top: 1px solid var(--border-forte);
}

.pricing-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.pricing-table th.col-recurso,
.pricing-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 400;
}

.pricing-table tbody th[scope="row"] { padding-left: 0.25rem; }
.pricing-table[data-cols="1"] th.col-recurso { width: 54%; }
.pricing-table[data-cols="2"] th.col-recurso { width: 40%; }
.pricing-table[data-cols="3"] th.col-recurso { width: 31%; }
.pricing-table[data-cols="4"] th.col-recurso { width: 26%; }
.pricing-table[data-cols="5"] th.col-recurso,
.pricing-table[data-cols="6"] th.col-recurso { width: 22%; }

/* Cabeçalho fixo ao rolar (a altura real do header é medida no JS). */
.pricing-table thead th {
  position: sticky;
  top: var(--header-h);
  z-index: 3;
  padding: 1.1rem 0.75rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border-forte);
  vertical-align: bottom;
}

.pricing-table .th-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-table .th-badge i { font-size: 0.6rem; }

.pricing-table .th-nome {
  display: block;
  font-family: var(--font-title);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pricing-table .th-preco {
  display: block;
  margin: 0.15rem 0 0.7rem;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pricing-table .th-preco small { font-weight: 400; font-size: var(--t-label); }

.pricing-table thead .btn {
  width: 100%;
  max-width: 11rem;
  padding-inline: 0.75rem;
}

/* Linha-título do grupo (colapsável). */
.pricing-table .group-row th,
.pricing-table .group-row td {
  padding-block: 0.4rem;
  background: var(--surface-2);
}

.pricing-table .group-row th { padding-left: 0; text-align: left; }

.pricing-table .group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.pricing-table .group-toggle i {
  flex: 0 0 auto;
  font-size: 0.7rem;
  transition: rotate 0.2s var(--ease);
}

.pricing-table .group-toggle[aria-expanded="false"] i { rotate: -90deg; }

.pricing-table .group-toggle .group-n {
  font-size: var(--t-label);
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

.pricing-table .group-count { font-size: var(--t-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.pricing-table .group-count small { font-weight: 400; color: var(--muted); font-size: var(--t-label); }
.pricing-table .group-count.is-zero span { color: var(--muted); font-weight: 400; }
.pricing-table .group-count.is-all span { color: color-mix(in srgb, var(--success) 82%, var(--text)); }

/* Células ✓ / — / valor */
.pricing-table td i { font-size: 0.8rem; vertical-align: middle; }
.pricing-table td.cell-on i { color: var(--success); }
.pricing-table td.cell-off i { color: color-mix(in srgb, var(--muted) 50%, transparent); }

.pricing-table .cell-val {
  display: inline-block;
  margin-left: 0.3rem;
  font-weight: 500;
  vertical-align: middle;
}

.pricing-table td .feat-bonus { margin-left: 0.35rem; vertical-align: middle; }

/* Mini-logo nas linhas de lojas: caixa fixa para os nomes ficarem na mesma coluna. */
.pricing-table .cmp-loja-logo {
  display: inline-block;
  vertical-align: middle;
  width: 62px;
  height: 19px;
  margin: -2px 0.5rem 0 0;
  object-fit: contain;
  object-position: left center;
}

/* Coluna do plano popular */
.pricing-table .col-popular { background: var(--brand-tint-2); }
.pricing-table thead th.col-popular { box-shadow: inset 0 3px 0 var(--brand); }
.pricing-table .group-row .col-popular { background: var(--brand-tint); }

/* Foco temporário da coluna ("Ver tudo que está incluso") */
.pricing-table .is-focus { box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand); }
.pricing-table thead th.is-focus { box-shadow: inset 0 3px 0 var(--brand), inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand); }
.pricing-table tbody tr:last-child .is-focus { box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand), inset 0 -2px 0 var(--brand); }
.pricing-table thead th:focus { outline: none; }

/* Abas (só no celular) */
.pricing-compare-tabs {
  display: none;
  margin-bottom: 1rem;
  border: 1px solid var(--border-forte);
  border-radius: var(--radius-btn);
  overflow: hidden;
}

.pricing-compare-tabs [role="tab"] {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.6rem;
  border: 0;
  background: transparent;
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.25;
  color: var(--muted);
  overflow-wrap: anywhere;
  cursor: pointer;
}

.pricing-compare-tabs [role="tab"] + [role="tab"] { border-left: 1px solid var(--border); }

/* 4+ planos: abas em grade 2 por linha, com o nome inteiro. */
.pricing-compare-tabs [role="tab"]:first-child:nth-last-child(n + 4),
.pricing-compare-tabs [role="tab"]:first-child:nth-last-child(n + 4) ~ [role="tab"] {
  flex: 1 1 50%;
  border-left: 0;
  box-shadow: inset 0 -1px 0 var(--border), inset -1px 0 0 var(--border);
}

.pricing-compare-tabs [role="tab"][aria-selected="true"] {
  background: var(--text);
  color: var(--bg);
}

.pricing-compare-tabs [role="tab"]:focus-visible { outline-offset: -3px; }

@media (max-width: 720px) {
  .pricing-compare-tabs { display: flex; flex-wrap: wrap; }
  .pricing-compare-tabs[hidden] { display: none; }
  .pricing-table { font-size: var(--t-small); }
  .pricing-table th, .pricing-table td { padding: 0.7rem 0.5rem; }
  .pricing-table .th-nome { white-space: normal; }
  .pricing-table .group-toggle .group-n { display: none; }
  .pricing-table[data-cols="1"] th.col-recurso { width: 50%; }
  .pricing-table td.cell-on { white-space: nowrap; }
}

/* 4 planos em tela média: 2 por linha em vez de 4 espremidos. */
@media (min-width: 620px) and (max-width: 1160px) {
  .pricing-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-table .group-toggle i, .billing-knob { transition: none; }
}

/* ---------- 20. Programa de afiliados (a banda da marca) ---------- */

.afiliados-section:not([class*="ls-fundo-"]) {
  --text: var(--on-brand);
  --muted: color-mix(in srgb, var(--on-brand) 80%, transparent);
  --border: color-mix(in srgb, var(--on-brand) 24%, transparent);
  --border-forte: color-mix(in srgb, var(--on-brand) 40%, transparent);
  --accent-text: var(--on-brand);
  --focus: var(--on-brand);
  --btn-bg: var(--on-brand);
  --btn-fg: var(--on-brand-inv);
  background: var(--brand);
  color: var(--text);
}

.afiliados-card {
  display: grid;
  gap: clamp(2rem, 1rem + 5vw, 5rem);
  align-items: end;
}

.afiliados-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.afiliados-content .section-tag { margin-bottom: 1rem; }

.afiliados-text {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--muted);
}

.afiliados-content .btn { margin-top: 2rem; }

.afiliados-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  container-type: inline-size;
}

.afiliados-visual > i { font-size: 1.75rem; }

/* O número do programa, em letra grande: o único momento tipográfico da página. */
.afiliados-badge {
  font-family: var(--font-title);
  /* cresce com a própria coluna (cqi), para a palavra mais longa caber */
  font-size: clamp(2.75rem, 17cqi, 6.75rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .afiliados-card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* ---------- 21. Perguntas frequentes ---------- */

.faq-grid {
  display: grid;
  gap: 0;
  align-items: start;
}

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

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 1.25rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

/* Marcador logo antes da pergunta: + fechado, × aberto (gira 45°). */
.faq-item summary::before {
  content: "";
  flex: 0 0 0.75rem;
  height: 0.75rem;
  translate: 0 0.05rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  color: var(--accent-text);
}

.faq-item[open] summary::before { rotate: 45deg; }

.faq-item summary:hover { color: var(--accent-text); }

.faq-answer {
  padding: 0 0 1.5rem 1.5rem;
  max-width: 44rem;
  color: var(--muted);
}

.faq-item::details-content {
  overflow: clip;
  contain: layout;
  interpolate-size: allow-keywords;
}

.faq-item:not([open])::details-content { block-size: 0; }

@media (prefers-reduced-motion: no-preference) {
  .faq-item summary::before { transition: rotate 0.2s var(--ease); }
  .faq-item::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.28s;
    transition-timing-function: var(--ease);
    transition-behavior: allow-discrete;
  }
}

@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(2rem, 6vw, 6rem); }
  .faq-grid > .section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
  }
}

/* ---------- 22. Chamada final e rodapé (um bloco escuro só) ---------- */

.cta-final {
  padding-block: var(--sec-pad);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-bolt {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--accent-text);
}

.cta-final h2 {
  font-size: clamp(2.125rem, 1.4rem + 3.4vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 18ch;
}

.cta-final p {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--muted);
}

.cta-final .btn { margin-top: 2.25rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
}

.footer-brand > p {
  margin-top: 1rem;
  max-width: 26rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-forte);
  border-radius: var(--radius-btn);
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.footer-social a:hover {
  background: var(--text);
  color: var(--ls-escuro);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  align-content: start;
}

.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-block: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.footer-bottom {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding-block: 1.5rem;
  /* espaço para os botões flutuantes não cobrirem o texto no celular */
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: var(--t-small);
  color: var(--muted);
}

@media (max-width: 719px) {
  .footer-bottom { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2rem, 6vw, 6rem); }
}

/* ---------- 23. Flutuantes: voltar ao topo e WhatsApp ---------- */

.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: var(--radius-btn);
  background: var(--ls-escuro);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: opacity 0.2s ease, translate 0.2s var(--ease), visibility 0.2s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.back-to-top:focus-visible { outline-color: var(--brand); }

:root[data-topo="0"] .back-to-top { display: none !important; }

.wa-widget {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  pointer-events: none;
}

.wa-widget > * { pointer-events: auto; }

.wa-float {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1faf38;
  color: #ffffff;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgb(18 22 29 / 0.5);
  transition: translate 0.18s var(--ease);
}

.wa-float:hover { translate: 0 -2px; }
.wa-float:focus-visible { outline-color: var(--ls-escuro); }

.wa-float-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #d92d20;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.wa-bubble {
  position: relative;
  width: min(18rem, calc(100vw - 2rem));
  border: 1px solid rgb(23 27 34 / 0.14);
  border-radius: calc(14px * var(--rk));
  background: #ffffff;
  color: #171b22;
  box-shadow: 0 20px 44px -24px rgb(18 22 29 / 0.5);
  display: none;
}

.wa-bubble.show { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .wa-bubble.show { animation: entra 0.35s var(--ease) both; }
}

.wa-bubble-link {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 2.5rem 0.9rem 0.9rem;
  text-decoration: none;
}

.wa-bubble-avatar {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1faf38;
  color: #ffffff;
  font-size: 1.1rem;
}

.wa-bubble-body { display: grid; gap: 0.15rem; }
.wa-bubble-name { font-size: var(--t-small); font-weight: 600; }
.wa-bubble-text { font-size: var(--t-small); line-height: 1.45; color: #5b6472; }

.wa-bubble-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #5b6472;
  cursor: pointer;
}

.wa-bubble-close:hover { color: #171b22; }

@media (prefers-reduced-motion: reduce) {
  .back-to-top, .wa-float { transition: opacity 0.2s ease, visibility 0.2s; }
  .back-to-top, .back-to-top.show, .wa-float:hover { translate: none; }
}

/* ============================================================
   Editor visual do /admin (Site › Landing Page)
   Tema, aparência de cada seção, seções novas (blocos) e o modo
   prévia. As classes ls-* são aplicadas pelo script.js a partir do
   documento do CMS; sem elas a página fica exatamente como acima.
   ============================================================ */

/* ---------- 24. Páginas legais (termos.html, politica-privacidade.html) ---------- */

.legal-hero {
  padding-block: calc(var(--header-h, 68px) + clamp(2.5rem, 1.5rem + 5vw, 5rem)) clamp(2rem, 1.5rem + 3vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}

.legal-hero-content { max-width: 46rem; }

.legal-hero h1 {
  font-size: var(--t-h1);
  text-wrap: balance;
}

.legal-hero p {
  margin-top: 1.25rem;
  font-size: var(--t-lead);
  color: var(--muted);
  text-wrap: pretty;
}

.legal-updated {
  display: block;
  margin-top: 1.5rem;
  font-size: var(--t-small);
  color: var(--muted);
}

.legal-layout {
  display: grid;
  gap: 2.5rem;
  max-width: calc(72rem + 2 * var(--gut));
  margin-inline: auto;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--gut) clamp(3.5rem, 3rem + 4vw, 6rem);
}

.legal-toc {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-toc h2 {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}

.legal-toc a {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  padding-block: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.legal-content { min-width: 0; max-width: 44rem; }

.legal-content section {
  scroll-margin-top: calc(var(--header-h, 68px) + 1.5rem);
  margin-bottom: 3rem;
}

.legal-content h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: var(--t-h3);
  letter-spacing: -0.02em;
}

.legal-content h2 .num {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--accent-text);
}

.legal-content h3 {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
}

.legal-content p,
.legal-content ul li {
  color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.legal-content p { margin-bottom: 1rem; }

.legal-content ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.legal-content ul li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.75em;
  width: 0.5rem;
  border-top: 2px solid var(--brand);
}

.legal-content a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.legal-content a:hover { color: var(--text); }

.legal-content strong { font-weight: 600; color: var(--text); }

.legal-callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
}

.legal-callout p:last-child,
.legal-contact-card p:last-child { margin-bottom: 0; }

.legal-contact-card {
  margin-top: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-contact-card p { margin-bottom: 0.5rem; }

.legal-contact-card i {
  width: 1.25rem;
  margin-right: 0.5rem;
  text-align: center;
  color: var(--accent-text);
}

/* A tabela rola dentro da própria moldura no celular, sem empurrar a página. */
.legal-table-wrap {
  margin: 0.5rem 0 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
  line-height: 1.55;
}

.legal-table tr:last-child td { border-bottom: 0; }

.legal-table th {
  background: var(--surface-2);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--text);
}

.legal-table td { color: var(--muted); }

.legal-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

@media (min-width: 900px) {
  .legal-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
  }

  .legal-toc {
    position: sticky;
    top: calc(var(--header-h, 68px) + 1.5rem);
    align-self: start;
    max-height: calc(100dvh - var(--header-h, 68px) - 3rem);
    padding-bottom: 0;
    border-bottom: 0;
    overflow-y: auto;
  }
}

/* ---------- Tema: efeitos ---------- */

:root[data-animacoes="0"] *:not(.marquee-track),
:root[data-animacoes="0"] *::before,
:root[data-animacoes="0"] *::after {
  animation: none !important;
}

/* ---------- Aparência por seção: fundo ---------- */

[data-ls-secao].ls-fundo-branco { background: var(--bg); }
[data-ls-secao].ls-fundo-suave { background: var(--bg-soft); }
[data-ls-secao].ls-fundo-cor { background: var(--ls-bg-cor, var(--bg-soft)); }
[data-ls-secao].ls-fundo-gradiente { background: var(--gradient-brand); }
[data-ls-secao].ls-fundo-escuro { background: var(--ls-escuro); }

[data-ls-secao].ls-fundo-imagem {
  background:
    linear-gradient(rgb(10 12 16 / 0.66), rgb(10 12 16 / 0.66)),
    var(--ls-bg-img, none) center / cover no-repeat;
}

[data-ls-secao].ls-fundo-imagem.ls-img-clara {
  background:
    linear-gradient(rgb(255 255 255 / 0.84), rgb(255 255 255 / 0.84)),
    var(--ls-bg-img, none) center / cover no-repeat;
}

/* Sobre o gradiente o botão principal vira claro. */
.ls-fundo-gradiente {
  --btn-bg: #ffffff;
  --btn-fg: var(--brand-dark);
  --accent-text: #ffffff;
}

.ls-fundo-gradiente .titulo-suave { color: rgb(255 255 255 / 0.82); }

/* Cartões que continuam claros por dentro de um bloco escuro. */
.ls-tom-escuro :is(.modo-card, .pagina-card, .ls-card, .depo-card, .pricing-card, .pricing-compare, .bot-demo-abas, .bot-demo-pausa),
.claro {
  --text: var(--ls-texto);
  --muted: var(--ls-texto-suave);
  --bg: #ffffff;
  --bg-soft: #fff8f5;
  --surface: #ffffff;
  --surface-2: #f4f4f3;
  --border: rgb(23 27 34 / 0.13);
  --border-forte: rgb(23 27 34 / 0.28);
  --accent-text: var(--brand-dark);
  --focus: #171b22;
  color: var(--text);
}

.ls-tom-escuro .pricing-compare {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #ffffff;
}

.ls-tom-escuro .pricing-legend,
.ls-tom-escuro .pricing-note { color: var(--muted); }

/* ---------- Aparência por seção: espaçamento ---------- */

.section.ls-esp-compacto, .cta-final.ls-esp-compacto { padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section.ls-esp-amplo, .cta-final.ls-esp-amplo { padding-block: clamp(5.5rem, 3rem + 9vw, 10rem); }
.hero.ls-esp-compacto { min-height: 0; padding-bottom: 2.5rem; }
.hero.ls-esp-amplo { padding-bottom: clamp(5rem, 3rem + 8vw, 9rem); }
.marquee.ls-esp-compacto { padding-block: 1rem; }
.marquee.ls-esp-amplo { padding-block: 2.75rem; }

/* ---------- Aparência por seção: alinhamento ---------- */

.ls-alinha-esquerda .section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ls-alinha-centro :is(.section-head, .hero-texto, .cta-inner, .ls-bloco-conteudo, .about-content, .afiliados-content) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ls-alinha-centro :is(.section-title, .section-sub, .hero-sub, .cta-final h2, .cta-final p, .about-text, .afiliados-text) { margin-inline: auto; }
.ls-alinha-centro :is(.hero-actions, .ls-bloco-cta, .billing-switch, .pricing-legend) { justify-content: center; }
.ls-alinha-centro :is(.pricing-note, .pricing-compare-head) { text-align: center; }
.hero.ls-alinha-centro .hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero.ls-alinha-centro :is(.chat-mockup, .hero-imagem) { justify-self: center; }
.ls-alinha-centro.faq-section .faq-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.ls-alinha-centro.faq-section .faq-grid > .section-head { margin-bottom: 2.5rem; }

/* ---------- Aparência por seção: esconder no celular / computador ---------- */

@media (max-width: 720px) {
  .ls-oculto-mobile { display: none !important; }
}

@media (min-width: 721px) {
  .ls-oculto-desktop { display: none !important; }
}

/* ---------- Seções novas (blocos) ---------- */

.ls-bloco-conteudo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ls-bloco-conteudo .section-tag { margin-bottom: 1rem; }

.ls-bloco-texto .ls-bloco-grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.ls-paragrafos { display: grid; gap: 1rem; margin-top: 1.25rem; }
.section-head > .ls-paragrafos { margin-top: 0; }

.ls-paragrafo {
  max-width: 38rem;
  white-space: pre-line;
  font-size: 1.0625rem;
  color: var(--muted);
}

.ls-bloco-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.ls-bloco-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ls-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000000;
}

.ls-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ls-video-vazio {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: rgb(255 255 255 / 0.75);
  font-size: 0.9375rem;
  text-align: center;
}

.ls-video-vazio i { display: block; margin-bottom: 0.6rem; font-size: 2.25rem; }

/* Chamada: um bloco na cor da marca, como a banda de afiliados. */
.ls-chamada-card {
  --text: var(--on-brand);
  --muted: color-mix(in srgb, var(--on-brand) 80%, transparent);
  --focus: var(--on-brand);
  --btn-bg: var(--on-brand);
  --btn-fg: var(--on-brand-inv);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(2rem, 1.25rem + 4vw, 4.5rem);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--text);
}

.ls-chamada-icone { margin-bottom: 1.25rem; font-size: 1.5rem; }

.ls-chamada-card h2 {
  font-size: var(--t-h2);
  max-width: 20ch;
}

.ls-chamada-card .ls-paragrafo { color: var(--muted); }

.ls-alinha-centro .ls-chamada-card { align-items: center; text-align: center; }

.ls-cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.ls-card { padding: clamp(1.5rem, 1.25rem + 1vw, 2rem); }

.ls-card-icone {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--accent-text);
}

.ls-card h3 { font-size: var(--t-h3); letter-spacing: -0.02em; }

.ls-card p {
  margin-top: 0.5rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .ls-bloco-texto .ls-bloco-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .ls-bloco-texto.ls-img-esquerda .ls-bloco-media { order: -1; }
  .ls-bloco-texto.ls-sem-imagem .ls-bloco-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Modo prévia (iframe do editor no /admin) ---------- */

.ls-previa { scroll-behavior: auto; }

.ls-previa .chat-msg,
.ls-previa .chat-typing { opacity: 1; translate: none; }

.ls-previa :is(.hero-texto > *, .chat-mockup, .hero-imagem) { animation: none; }

.ls-previa [data-ls-secao] { scroll-margin-top: 72px; }

.ls-previa main > [data-ls-secao],
.ls-previa .site-footer {
  position: relative;
}

.ls-editando [data-ls-secao]:hover {
  outline: 2px dashed rgba(var(--brand-rgb), 0.55);
  outline-offset: -3px;
  cursor: pointer;
}

.ls-editando [data-ls-secao].ls-selecionada {
  outline: 2px solid var(--brand);
  outline-offset: -3px;
}

.ls-editando :is([data-cms], [data-cms-field], [data-ls-caminho]):hover {
  outline: 1px dashed rgba(var(--brand-rgb), 0.85);
  outline-offset: 3px;
  border-radius: 3px;
  cursor: text;
}

.ls-editando .ls-campo-ativo {
  outline: 2px solid var(--brand) !important;
  outline-offset: 3px;
  border-radius: 3px;
}

.ls-previa [contenteditable] {
  outline: 2px solid var(--brand) !important;
  outline-offset: 3px;
  background: rgba(var(--brand-rgb), 0.07);
  border-radius: 3px;
  cursor: text;
}

.ls-rotulo {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--brand);
  color: var(--on-brand);
  font: 600 0.75rem/1.3 var(--font-body);
  pointer-events: none;
}

.site-header .ls-rotulo { top: auto; bottom: -26px; }

/* ---------- Tema com fundo escuro (cor de fundo do site escura) ---------- */

:root[data-tema-escuro="1"] {
  --accent-text: var(--brand-light);
  color-scheme: dark;
}

:root[data-tema-escuro="1"] :is(.feat-bonus, .pricing-table .col-popular) {
  background: rgba(var(--brand-rgb), 0.18);
  color: var(--text);
}

:root[data-tema-escuro="1"] .pricing-table .cmp-loja-logo {
  background: #ffffff;
  border-radius: 4px;
  padding: 1px 3px;
}

/* Alto contraste do sistema: os indicadores desenhados com fundo ganham borda. */
@media (forced-colors: active) {
  .btn, .modo-badge, .pricing-badge, .bot-demo-aba[aria-pressed="true"] { border: 1px solid ButtonText; }
  .faq-item summary::before { background: none; border: 2px solid currentColor; border-radius: 50%; }
}
