/* ============================================================
   FLIPEI — Landing Page
   Folha de estilo única, organizada por seção na mesma ordem
   em que os blocos aparecem no index.html.

   COMO EDITAR CORES, FONTES E ESPAÇAMENTOS:
   tudo que é decisão de marca está nas variáveis do :root
   logo abaixo. Alterar ali reflete em toda a página.
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS DE DESIGN
   ------------------------------------------------------------ */
:root {
  /* Roxos da marca — do mais escuro (fundos) ao mais claro (destaques) */
  --color-purple-950: #1e0031;
  --color-purple-900: #240540;
  --color-purple-800: #2a0055;
  --color-purple-700: #45106b;
  --color-purple-600: #4b1f74;
  --color-brand-700: #662f88;
  --color-brand-600: #7a2fb0;
  --color-brand-500: #b47ce0;
  --color-brand-400: #d4b3e6;

  /* Textos */
  --color-ink: #1a1a2e;
  --color-ink-muted: #4a4a6a;
  --color-ink-soft: #8a7b98;
  --color-ink-on-dark: #ffffff;
  --color-ink-on-dark-muted: #d4b3e6;
  --color-ink-on-dark-soft: #918ca2;

  /* Superfícies */
  --surface-white: #ffffff;
  --surface-lilac-50: #faf7fd;
  --surface-lilac-100: #f8f6fd;
  --surface-lilac-150: #faf6fc;
  --surface-lilac-200: #f5f0f8;
  --surface-lilac-250: #f4eefe;
  --surface-lilac-300: #f0eaf5;
  --surface-lilac-400: #f1e8fa;
  --surface-answer: #f6f2fc;

  /* Bordas e linhas */
  --border-lilac: #d4b3e6;
  --border-lilac-soft: #f0e7f7;
  --border-lilac-softer: #eee1f6;
  --border-header: #eadff2;
  --border-table: #f2ecf8;
  --border-on-dark: rgba(212, 179, 230, 0.18);
  --border-on-dark-strong: rgba(212, 179, 230, 0.4);

  /* Degradês */
  --gradient-brand: linear-gradient(95deg, #7a2fb0 0%, #1e0031 100%);
  --gradient-brand-diagonal: linear-gradient(150deg, #7a2fb0 0%, #1e0031 100%);
  --gradient-hero-fallback: linear-gradient(180deg, #1e0031 0%, #2a0055 100%);
  --gradient-cta: radial-gradient(120% 130% at 0% 0%, #45106b 0%, #2a0546 42%, #1e0031 78%);
  --gradient-footer: linear-gradient(180deg, #240540 0%, #1e0031 100%);

  /* Sombras */
  --shadow-sm: 0 10px 30px rgba(30, 0, 49, 0.05);
  --shadow-md: 0 14px 34px rgba(30, 0, 49, 0.06);
  --shadow-lg: 0 18px 44px rgba(30, 0, 49, 0.07);
  --shadow-card: 0 18px 50px rgba(30, 0, 49, 0.1);
  --shadow-featured: 0 26px 64px rgba(102, 47, 136, 0.16);
  --shadow-button: 0 16px 34px rgba(122, 47, 176, 0.42);

  /* Tipografia */
  --font-sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Raios */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Medidas de layout */
  --container-width: 1200px;
  --container-width-wide: 1240px;
  --container-padding: 20px;
  --header-height: 74px;

  /* Espaçamento vertical padrão das seções */
  --section-padding-y: clamp(64px, 9vw, 112px);
  --section-padding-y-sm: clamp(56px, 8vw, 96px);

  /* Curva de animação usada em todas as transições de entrada */
  --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------
   2. RESET E BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-ink);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  width: 100%;
  max-width: 100%;
  position: relative;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

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

a {
  color: var(--color-brand-700);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #7a3da3;
}

button {
  font-family: inherit;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Foco visível e consistente para navegação por teclado */
:focus-visible {
  outline: 3px solid var(--color-brand-500);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   3. UTILITÁRIOS COMPARTILHADOS
   ------------------------------------------------------------ */

/* Faixa central de conteúdo */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-inline: var(--container-padding);
}

.container--wide {
  max-width: var(--container-width-wide);
}

/* Seções: variações de fundo */
.section {
  padding-block: var(--section-padding-y);
  overflow: hidden;
  contain: paint;
  max-width: 100%;
}

.section--white {
  background: var(--surface-white);
}

.section--lilac {
  background: var(--surface-lilac-200);
}

.section--lilac-soft {
  background: var(--surface-lilac-100);
}

.section--lilac-warm {
  background: var(--surface-lilac-150);
}

.section--lilac-muted {
  background: var(--surface-lilac-300);
}

.section--dark {
  background-color: var(--color-purple-950);
  color: var(--color-ink-on-dark);
}

/* Pílula que abre cada seção ("Funcionalidades", "Depoimentos"...) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--border-lilac);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
font-weight: bold;  
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brand-700);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-600);
}

/* Versão da pílula sobre fundo escuro */
.eyebrow--on-dark {
  border-color: rgba(212, 179, 230, 0.35);
  color: var(--color-ink-on-dark-muted);
}

.eyebrow--on-dark::before {
  background: var(--color-brand-500);
}

/* Variante destacada usada na seção Mentoria */
.eyebrow--highlight {
  border-color: rgba(180, 124, 224, 0.55);
  background: rgba(122, 47, 176, 0.18);
  color: #e5d4f5;
}

.eyebrow--highlight::before {
  background: var(--color-brand-500);
}

/* Títulos de seção */
.section-title {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--color-ink);
}

.section-title--sm {
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.03em;
}

.section-title--tight {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.035em;
}

.section-title--on-dark {
  color: var(--color-ink-on-dark);
}

/* Palavra ou trecho em roxo dentro de um título */
.accent {
  color: var(--color-brand-500);
}

/* Número grande com preenchimento em degradê (etapas e perfis de sócio) */
.gradient-number {
  display: block;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  background: var(--gradient-brand-diagonal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Texto de apoio abaixo do título */
.section-lead {
  font-size: 17px;
  line-height: 1.68;
  color: var(--color-ink-muted);
}

.section-lead--on-dark {
  color: #cbbcd9;
}

/* Cabeçalho de seção (pílula + título + texto) */
.section-header {
  max-width: 760px;
  margin-bottom: clamp(38px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.section-header--centered {
  max-width: 720px;
  margin-inline: auto;
  align-items: center;
  text-align: center;
}

/* Botões
   .btn--primary  → degradê roxo, ação principal
   .btn--outline  → contorno, ação secundária sobre fundo claro
   .btn--ghost    → contorno claro sobre fundo escuro
   .btn--solid    → roxo chapado, usado no cabeçalho */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 30px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s, background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--gradient-brand);
  color: var(--color-ink-on-dark);
}

.btn--primary:hover {
  filter: brightness(1.12);
  color: #ffffff !important;
}

.btn--primary:focus:not(:hover),
.btn--primary:active,
.btn--primary.active {
  filter: none;
  background: var(--gradient-brand);
  color: #ffffff !important;
  box-shadow: none;
}

.btn--outline {
  border: 1px solid var(--color-brand-600);
  background: transparent;
  color: var(--color-brand-600);
  padding: 16px 24px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.btn--outline:hover {
  background: var(--color-brand-700);
  border-color: var(--color-brand-700);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(102, 47, 136, 0.2);
}

.btn--outline:focus:not(:hover),
.btn--outline:active,
.btn--outline.active {
  background: transparent;
  color: var(--color-brand-600) !important;
  border-color: var(--color-brand-600);
  box-shadow: none;
}

.btn--ghost {
  border: 1px solid var(--border-on-dark-strong);
  background: transparent;
  color: var(--color-ink-on-dark);
  font-weight: 600;
  padding: 16px 28px;
}

.btn--ghost:hover,
.btn--ghost:focus,
.btn--ghost:active,
.btn--ghost.active {
  background: rgba(212, 179, 230, 0.12);
  color: var(--color-ink-on-dark) !important;
}

.btn--solid {
  background: var(--color-brand-700);
  color: var(--color-ink-on-dark);
}

.btn--solid:hover,
.btn--solid:focus,
.btn--solid:active,
.btn--solid.active {
  background: #7a3da3;
  color: #ffffff !important;
}

/* Cantos levemente arredondados (em vez de pílula) — usado no CTA final */
.btn--squared {
  border-radius: 14px;
}

/* Bloco que centraliza o botão de conversão no fim de uma seção */
.section-action {
  display: flex;
  justify-content: center;
  margin-top: clamp(34px, 4vw, 52px);
}

/* Lê-se apenas em leitores de tela */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Animação de entrada: JS adiciona .is-visible quando o bloco entra na tela.
   Sem JS, os blocos permanecem visíveis (ver regra .no-js abaixo). */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out-soft), transform 0.65s var(--ease-out-soft);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   4. CABEÇALHO
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-header);
}

.site-header__inner {
  position: relative;
  z-index: 75;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 14px var(--container-padding);
  display: flex;
  align-items: center;
  gap: 24px;
  background: #ffffff;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 45px;
  width: auto;
  /* O logo é JPG com fundo branco; multiply remove o retângulo */
  mix-blend-mode: multiply;
}

/* Navegação desktop — escondida no mobile, exibida a partir de 940px */
.main-nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 28px;
}

.main-nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink-muted);
}

.main-nav__link:hover {
  color: var(--color-brand-700);
}

.site-header__cta {
  margin-left: auto;
  font-size: 14px;
  padding: 12px 22px;
}

/* Botão hambúrguer — só aparece no mobile */
.nav-toggle {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5.5px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus,
.nav-toggle:active {
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav-toggle span {
  width: 22px;
  height: 2.2px;
  border-radius: 2px;
  background: var(--color-brand-700);
}

/* Menu mobile aberto pelo hambúrguer — flutua sobre o conteúdo */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  flex-direction: column;
  padding: 8px 20px 20px;
  background: var(--surface-white);
  border-top: 1px solid var(--border-header);
  border-bottom: 1px solid var(--border-lilac-soft);
  box-shadow: 0 16px 36px rgba(69, 16, 107, 0.16);
  box-sizing: border-box;
  z-index: 70;
}

.mobile-nav.is-open {
  display: flex;
}

/* Fundo escuro em blur cobrindo a área ociosa ao abrir o menu mobile */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(15, 0, 25, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 55;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  touch-action: none;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
  border-bottom: 1px solid var(--surface-lilac-200);
}

.mobile-nav__link:last-child {
  border-bottom: none;
}

.mobile-nav__link:hover {
  color: var(--color-brand-700);
}

@media (min-width: 940px) {
  .main-nav {
    display: flex;
  }

  .site-header__cta {
    margin-left: 0;
  }

  .nav-toggle,
  .mobile-nav,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
.hero {
  padding-block: clamp(52px, 8vw, 96px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--color-purple-950);
  background-image: var(--gradient-hero-fallback);
}

.hero__content {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1250px) {
  .hero__content {
    max-width: 600px;
  }
}

.hero__title {
  max-width: 680px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--color-ink-on-dark);
  margin: 26px 0 24px;
}

.hero__lead {
  max-width: 580px;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.6;
  color: var(--color-ink-on-dark-soft);
  margin-bottom: 34px;
}

.hero__lead strong {
  color: var(--color-brand-500);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  width: 100%;
  max-width: 480px;
}

@media (max-width: 580px) {
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    padding: 14px 6px;
    font-size: 13.5px;
    letter-spacing: -0.01em;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
  }
}

/* Três destaques do Hero: ocupam 100% da largura da linha */
.hero__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 0;
  list-style: none;
}

.hero__highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.hero__highlight img {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}

.hero__highlight-text {
  font-size: 13px;
  line-height: 1.25;
  color: var(--color-ink-on-dark);
  min-width: 0;
}

.hero__highlight-text strong {
  display: block;
  font-weight: 700;
  white-space: nowrap;
}

.hero__highlight-text span {
  display: block;
  font-size: 11.5px;
  color: var(--color-ink-on-dark-soft);
  font-weight: 500;
  white-space: nowrap;
}

@media (min-width: 580px) {
  .hero__highlights {
    gap: 16px;
  }

  .hero__highlight {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .hero__highlight img {
    width: 32px;
  }

  .hero__highlight-text {
    font-size: clamp(13px, 1.6vw, 15px);
    line-height: 1.3;
  }

  .hero__highlight-text span {
    font-size: 0.92em;
  }
}

@media (min-width: 768px) {
  .hero__highlights {
    gap: 0;
  }

  .hero__highlight + .hero__highlight {
    border-left: 1px solid rgba(212, 179, 230, 0.22);
    padding-left: clamp(14px, 2.5vw, 24px);
    margin-left: clamp(14px, 2.5vw, 24px);
  }
}

@media (min-width: 1250px) {
  /* Banner do imóvel entra à direita, com degradês por cima
     para garantir a legibilidade do texto */
  .hero {
    background-image:
      linear-gradient(180deg, #1e0031 0, rgba(30, 0, 49, 0) 14%, rgba(30, 0, 49, 0) 86%, #1e0031 100%),
      linear-gradient(95deg, #1e0031 0, rgba(30, 0, 49, 0.96) calc(max(20px, 50% - 620px) + 520px), rgba(30, 0, 49, 0) calc(max(20px, 50% - 620px) + 880px)),
      url("../assets/banner-hero.webp"),
      var(--gradient-hero-fallback);
    background-repeat: no-repeat;
    background-position: center, center, right center, center;
    background-size: cover, cover, contain, cover;
    min-height: min(43.2vw, 700px);
  }
}

/* ------------------------------------------------------------
   6. ETAPAS ("Por que escolher o FLIPEI")
   ------------------------------------------------------------ */
.steps {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 30px);
}

.step-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-lilac-250);
}

.step-card__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  padding: clamp(19px, 4vw - 15px, 41px) clamp(34px, 4vw, 56px);
}

.step-card__number {
  font-size: clamp(58px, 7vw, 88px);
  margin-bottom: 26px;
}

.step-card__title {
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: var(--color-ink);
}

.step-card__title--sm {
  font-size: clamp(24px, 2.9vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.step-card__title .accent {
  color: var(--color-brand-600);
}

.step-card__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink-muted);
  max-width: 474px;
}

/* Aviso destacado dentro da etapa 02 */
.step-card__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e0cdf0;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-brand-700);
}

.step-card__note svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.step-card__visual {
  width: 100%;
  height: auto;
  justify-self: end;
}

@media (min-width: 900px) {
  .step-card__inner {
    grid-template-columns: 460px minmax(0, 1fr);
  }

  .step-card--first .step-card__inner {
    grid-template-columns: 480px minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------
   7. FUNCIONALIDADES
   ------------------------------------------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--surface-lilac-50);
  border-radius: 18px;
  padding: 26px 22px;
  align-items: start;
}

/* Espaço reservado para o print real da funcionalidade.
   Substituir esta div pela <img> quando as telas estiverem prontas. */
.shot-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-lilac-400);
  background-image: repeating-linear-gradient(135deg, rgba(212, 179, 230, 0.45) 0 12px, rgba(212, 179, 230, 0.16) 12px 24px);
}

.shot-placeholder__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-brand-700);
  background: var(--surface-white);
  border: 1px solid var(--border-lilac);
  border-radius: 6px;
  padding: 8px 14px;
}

.feature-card__body {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.feature-card__icon {
  width: 46px;
  height: auto;
  align-self: start;
  margin-top: 2px;
}

.feature-card__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.25;
  color: var(--color-ink);
}

.feature-card__text {
  font-size: 15px;
  line-height: 1.62;
  color: var(--color-ink-muted);
}

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

  .feature-card__title {
    font-size: 18px;
  }
}

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

/* ------------------------------------------------------------
   8. MÓDULOS ("Cada módulo, por dentro")
   ------------------------------------------------------------ */
.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.module-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  background: var(--surface-lilac-50);
  border-radius: var(--radius-lg);
}

.module-card__shot {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.module-card__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand-700);
  margin-bottom: 20px;
}

.module-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.48;
  color: var(--color-ink);
}

.module-card__item--ai {
  color: var(--color-brand-600) !important;
  font-weight: 600;
}

.module-card__list svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.module-card__item--ai svg {
  margin-top: 2px;
}

@media (min-width: 560px) {
  .module-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .module-card__list {
    gap: 6px;
  }

  .module-card__list li {
    font-size: 13px;
    line-height: 1.4;
  }

  .module-card__list svg {
    margin-top: 2px;
  }

  .module-card__item--ai svg {
    margin-top: 1px;
  }
}

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

/* ------------------------------------------------------------
   9. TOUR DO SISTEMA (carrossel)
   ------------------------------------------------------------ */
.tour {
  padding-block: clamp(64px, 9vw, 104px);
  overflow: hidden;
}

.tour__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(30px, 4vw, 44px);
  text-align: center;
}

.tour__header .section-title {
  max-width: 640px;
}

.tour__header .section-lead {
  max-width: 520px;
}

.tour__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tour__nav-button {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, filter 0.2s;
}

.tour__nav-button--prev {
  border: 1px solid var(--border-lilac);
  background: var(--surface-white);
  color: var(--color-brand-700);
}

.tour__nav-button--prev:hover {
  background: var(--surface-lilac-200);
}

.tour__nav-button--next {
  border: none;
  background: var(--color-brand-700);
  color: var(--color-ink-on-dark);
}

.tour__nav-button--next:hover {
  filter: brightness(1.12);
}

/* Área arrastável do carrossel */
.tour__viewport {
  overflow: hidden;
  padding: 26px 0 34px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.tour__viewport.is-dragging {
  cursor: grabbing;
}

/* Trilho deslocado por --tour-index (card ativo) e --tour-drag (arraste) */
.tour__track {
  --tour-card-width: min(86vw, 760px);
  --tour-gap: 18px;
  --tour-index: 0;
  --tour-drag: 0px;
  display: flex;
  gap: var(--tour-gap);
  align-items: center;
  padding-inline: calc(50% - var(--tour-card-width) / 2);
  transform: translateX(calc(-1 * var(--tour-index) * (var(--tour-card-width) + var(--tour-gap)) + var(--tour-drag)));
  transition: transform 0.55s var(--ease-out-soft);
  will-change: transform;
}

.tour__track.is-dragging {
  transition: none;
}

/* Cards vizinhos ficam menores e mais apagados; o ativo volta ao tamanho real */
.screen-card {
  flex: 0 0 var(--tour-card-width);
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 14px 14px 0;
  box-shadow: var(--shadow-card);
  transform: scale(0.86);
  opacity: 0.4;
  transition: transform 0.55s var(--ease-out-soft), opacity 0.45s ease, box-shadow 0.45s ease;
}

.screen-card.is-active {
  transform: scale(1);
  opacity: 1;
}

/* Print da tela no carrossel */
.screen-card__shot {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--border-lilac-softer);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-lilac-50);
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.screen-card__shot:hover {
  border-color: var(--color-brand-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 47, 136, 0.15);
}

.screen-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.screen-card__shot:hover .screen-card__img {
  transform: scale(1.02);
}

.screen-card__zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-brand-700);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-lilac);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  box-shadow: 0 4px 12px rgba(15, 0, 25, 0.12);
  transition: all 0.2s ease;
  pointer-events: none;
}

.screen-card__shot:hover .screen-card__zoom-badge {
  background: var(--color-brand-700);
  color: #ffffff;
  border-color: var(--color-brand-700);
}

.screen-card__body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 12px 26px;
  text-align: left;
}

.screen-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-lilac-400);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-card__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.screen-card__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-ink-muted);
}

/* Indicadores de posição */
.tour__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.tour__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 3px;
  background: none;
  border: none;
  cursor: pointer;
}

.tour__dot span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--border-lilac);
  transition: width 0.25s, background 0.25s;
}

.tour__dot.is-active span {
  width: 26px;
  background: var(--color-brand-700);
}

/* ------------------------------------------------------------
   10. MODO MENTORIA
   ------------------------------------------------------------ */
.mentorship {
  padding-block: clamp(56px, 8vw, 104px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.mentorship__content {
  max-width: 520px;
}

.mentorship__title {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--color-ink-on-dark);
  margin: 24px 0 26px;
}

.mentorship__text {
  margin-bottom: 22px;
}

.mentorship__text:last-of-type {
  margin-bottom: 34px;
}

.mentorship__text strong {
  color: var(--color-ink-on-dark);
  font-weight: 700;
}

.mentorship__badge {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(180, 124, 224, 0.3);
  background: rgba(122, 47, 176, 0.14);
  border-radius: var(--radius-md);
}

.mentorship__badge img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.mentorship__badge-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink-on-dark);
  line-height: 1.35;
}

.mentorship__badge-text {
  font-size: 14.5px;
  color: #a996b8;
  line-height: 1.4;
  margin-top: 3px;
}

@media (min-width: 1100px) {
  /* Foto entra à direita, com degradês para o texto continuar legível */
  .mentorship {
    background-image:
      linear-gradient(180deg, #1e0031 0, rgba(30, 0, 49, 0) 18%, rgba(30, 0, 49, 0) 82%, #1e0031 100%),
      linear-gradient(90deg, #1e0031 0, #1e0031 calc(100% - min(38vw, 600px) * 1.777), rgba(30, 0, 49, 0) calc(100% - min(38vw, 600px) * 1.777 + 300px)),
      url("../assets/bg-mentoria.webp");
    background-repeat: no-repeat;
    background-position: center, center, right center;
    background-size: cover, cover, contain;
    min-height: min(38vw, 600px);
  }
}

/* ------------------------------------------------------------
   11. SÓCIOS DO PROJETO
   ------------------------------------------------------------ */
.partners__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

.partners__intro-text {
  max-width: 520px;
}

.partners__intro-text .section-title {
  margin: 22px 0;
}

.partners__intro-image {
  width: 100%;
  height: auto;
  justify-self: end;
}

.role-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2vw, 26px);
}

.role-card {
  position: relative;
  overflow: hidden;
  padding: 34px 30px 36px;
  background: var(--surface-white);
  border: 1px solid var(--border-lilac-soft);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

/* Ilustração decorativa no canto superior direito do card */
.role-card__icon {
  position: absolute;
  top: 26px;
  right: 18px;
  width: clamp(88px, 9vw, 118px);
  height: auto;
  opacity: 0.95;
}

.role-card__number {
  position: relative;
  font-size: clamp(44px, 4.6vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 26px;
}

.role-card__title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.role-card__label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brand-700);
}

.role-card__name {
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--color-purple-950);
}

.role-card__text {
  position: relative;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-ink-muted);
  max-width: 300px;
}

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

@media (min-width: 940px) {
  .partners__intro {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.4fr);
  }

  /* A imagem sangra um pouco para fora da faixa de conteúdo */
  .partners__intro-image {
    width: calc(100% + 40px);
    max-width: none;
    margin-right: -40px;
  }
}

/* ------------------------------------------------------------
   12. DICAS DO ESPECIALISTA
   ------------------------------------------------------------ */
#dicas {
  overflow: hidden;
  contain: paint;
}

#dicas .container {
  position: relative;
}

.tips__header {
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.tips__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--color-ink);
  margin: 18px 0 0;
}

.tips__lead {
  position: relative;
  z-index: 2;
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--color-ink-muted);
  margin: 16px 0 0;
}

.tips__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: start;
}

/* Card do Especialista Carlos Beil */
.carlos-card {
  margin: 0 auto;
  width: 100%;
  max-width: 440px;
  padding: 22px 22px 20px;
  background: var(--surface-white);
  border: 1px solid var(--border-lilac-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.carlos-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carlos-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--color-brand-600);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.carlos-card__info {
  flex: 1;
  min-width: 0;
}

.carlos-card__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-purple-950);
  margin: 0 0 2px;
  line-height: 1.2;
}

.carlos-card__role {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-brand-600);
  margin: 0 0 8px;
  line-height: 1.3;
}

.carlos-card__steps {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-purple-900);
  line-height: 1;
}

.carlos-card__steps svg {
  color: var(--color-brand-600);
  flex-shrink: 0;
}

.carlos-card__divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border-lilac-soft) 0%, #eee6f6 100%);
  margin: 16px 0;
}

.carlos-card__bio {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--color-ink-muted);
}

.carlos-card__bio p {
  margin: 0;
}

.tips__list-wrap {
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 1.8vw, 26px);
  position: relative;
  z-index: 5;
}

/* Trilho de linhas à esquerda da lista (decorativo, só no desktop) */
.tips__rail {
  display: none;
  width: 64px;
  height: auto;
  align-self: stretch;
  object-fit: fill;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.tips__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
  flex: 1;
  position: relative;
  z-index: 5;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--surface-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 5;
}

.tip-item__check {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f1eafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-item__divider {
  width: 1px;
  align-self: stretch;
  background: #eee6f6;
  flex-shrink: 0;
}

.tip-item__text {
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--color-ink);
}

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

@media (min-width: 980px) {
  .tips__wrap {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(20px, 2.2vw, 32px);
    align-items: start;
  }

  .tips__rail {
    display: block;
  }

  .tips__list-wrap {
    margin-top: 0;
    position: relative;
    z-index: 5;
  }

  .carlos-card {
    margin: 0;
    max-width: 100%;
  }
}

/* ------------------------------------------------------------
   13. INTELIGÊNCIA ARTIFICIAL
   ------------------------------------------------------------ */
.ai__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
  align-items: start;
}

.ai__intro {
  position: relative;
}

.ai__intro .eyebrow,
.ai__title {
  position: relative;
  z-index: 1;
}

.ai__title {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--color-ink);
  margin-top: 22px;
}

/* Esfera decorativa de fundo */
.ai__orb {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 12px auto 0;
}

.ai-card {
  background: var(--surface-lilac-50);
  border-radius: var(--radius-xl);
  padding: clamp(26px, 2.6vw, 36px);
}

.ai-card__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2vw, 30px);
  align-items: center;
}

.ai-card__title {
  font-size: clamp(19px, 1.9vw, 23px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--color-ink);
}

.ai-card__text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-ink-muted);
}

.ai-card__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

@media (min-width: 560px) {
  .ai-card__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  }
}

@media (min-width: 1040px) {
  .ai__wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .ai__intro {
    align-self: center;
    z-index: 0;
  }

  /* A esfera passa a flutuar atrás dos cards */
  .ai__orb {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 330px;
    margin: 0;
    z-index: 0;
    pointer-events: none;
  }

  .ai-card {
    position: relative;
    z-index: 2;
  }
}

/* ------------------------------------------------------------
   14. DEPOIMENTOS
   ------------------------------------------------------------ */
.testimonials {
  padding-block: var(--section-padding-y-sm);
}

.testimonials__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 2.6vw, 34px);
  align-items: stretch;
}

.testimonials__video {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: var(--color-purple-950);
  aspect-ratio: 3 / 4;
}

.testimonials__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonials__audio-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(18, 3, 32, 0.78);
  border: 1px solid rgba(212, 179, 230, 0.3);
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.testimonials__audio-btn:hover {
  background: var(--color-brand-600);
  border-color: var(--color-brand-400);
  transform: scale(1.05);
}

.testimonials__audio-btn.is-muted .testimonials__audio-icon-unmuted {
  display: none;
}

.testimonials__audio-btn.is-unmuted .testimonials__audio-icon-muted {
  display: none;
}

.testimonials__audio-btn.is-unmuted {
  background: rgba(102, 47, 136, 0.85);
  border-color: var(--color-brand-400);
}

.testimonials__video-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 24px 24px;
  background: linear-gradient(180deg, rgba(30, 0, 49, 0) 0%, rgba(30, 0, 49, 0.86) 100%);
}

.testimonials__video-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-ink-on-dark);
}

.testimonials__video-meta {
  font-size: 13.5px;
  color: var(--color-ink-on-dark-muted);
  margin-top: 4px;
}

/* Área das colunas em rolagem contínua */
.testimonials__columns-wrap {
  position: relative;
  height: clamp(460px, 46vw, 620px);
  overflow: hidden;
}

.testimonials__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
  height: 100%;
}

.quote-column {
  overflow: hidden;
}

/* A segunda coluna só aparece quando há largura para as duas */
.quote-column--second {
  display: none;
}

/* Cada trilha tem os depoimentos duplicados no HTML,
   por isso o loop desloca exatamente -50% */
.quote-column__track {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 20px);
  padding-bottom: clamp(14px, 1.6vw, 20px);
}

.quote-column__track--up {
  animation: quotes-scroll-up 46s linear infinite;
}

.quote-column__track--down {
  animation: quotes-scroll-down 46s linear infinite;
}

@keyframes quotes-scroll-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

@keyframes quotes-scroll-down {
  from { transform: translate3d(0, -50%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.quote-card {
  background: var(--surface-white);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
}

.quote-card blockquote {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-ink-muted);
  margin-bottom: 18px;
}

.quote-card figcaption {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
}

.quote-card figcaption span {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-ink-soft);
  margin-top: 2px;
}

/* Esfumaçado no topo e na base para o loop não "cortar" os cards */
.testimonials__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--surface-lilac-200) 0%, rgba(245, 240, 248, 0) 16%, rgba(245, 240, 248, 0) 84%, var(--surface-lilac-200) 100%);
}

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

  .quote-column--second {
    display: block;
  }
}

@media (min-width: 980px) {
  .testimonials__wrap {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  }

  .testimonials__video {
    max-width: none;
  }
}

/* ------------------------------------------------------------
   15. PLANOS E COMPARATIVO
   ------------------------------------------------------------ */
.pricing__header {
  max-width: 720px;
  margin-bottom: clamp(38px, 5vw, 58px);
}

.pricing__header .section-title {
  margin: 16px 0;
}

.pricing__header .section-lead {
  line-height: 1.62;
}

.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.2vw, 26px);
  align-items: stretch;
  max-width: 100%;
}

.plan-grid > * {
  min-width: 0;
  max-width: 100%;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 30px 34px;
  background: var(--surface-white);
  border: 1px solid var(--border-lilac-softer);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(30, 0, 49, 0.05);
  max-width: 100%;
  box-sizing: border-box;
}

/* Plano em destaque (DUO) */
.plan-card--featured {
  border: 2px solid var(--color-brand-600);
  padding: 30px 30px 34px;
  box-shadow: var(--shadow-featured);
}

.plan-card__ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--gradient-brand);
  color: var(--color-ink-on-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.plan-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-lilac-soft);
}

.plan-card__name {
  font-family: var(--font-mono);
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-brand-600);
  margin: 0;
  line-height: 1.1;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}

.plan-card__price-installments {
  font-size: 15px;
  color: var(--color-ink-soft);
}

.plan-card__price-value {
  font-size: clamp(29px, 2.9vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-purple-600);
}

.plan-card__summary {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--color-ink-muted);
  background: var(--surface-lilac-200);
  border: 1px solid var(--border-lilac-soft);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  margin-bottom: 24px;
  text-align: center;
}

.plan-card__summary strong {
  color: var(--color-brand-700);
  font-weight: 700;
  white-space: nowrap;
}

.plan-card__summary-sep {
  color: var(--color-brand-400);
  font-weight: 700;
}

.plan-card__benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.plan-card__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-ink-muted);
}

.plan-card__benefits svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-card__cta {
  margin-top: auto;
  width: 100%;
}

/* Selos de confiança abaixo dos planos */
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: clamp(26px, 3vw, 34px);
  border-top: 1px solid var(--border-lilac-soft);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-item img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.trust-item__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-ink);
}

.trust-item__text {
  font-size: 13px;
  color: var(--color-ink-soft);
  margin-top: 2px;
}

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

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

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

/* Comparativo completo (sempre visível) */
.comparison {
  margin-top: clamp(48px, 6vw, 72px);
  max-width: 100%;
  overflow: hidden;
  contain: paint;
}

.comparison__title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-purple-950);
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.comparison__panel {
  border: 1px solid var(--border-lilac-soft);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-white);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  width: 100%;
  contain: paint;
}

.comparison__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
  width: 100%;
  touch-action: pan-x pan-y;
}

.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.comparison-table thead th {
  padding: 26px 14px 22px;
  background: var(--surface-white);
  text-align: center;
}

.comparison-table thead th:first-child {
  text-align: left;
  padding: 26px 24px 22px;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-ink);
}

.comparison-table__plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-ink);
}

/* Coluna do DUO: fundo lilás e selo no topo */
.comparison-table thead th.is-featured {
  background: #f6f1fd;
  position: relative;
  padding-top: 32px;
}

.comparison-table thead th.is-featured .comparison-table__plan {
  color: var(--color-brand-600);
}

.comparison-table__ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--gradient-brand);
  color: var(--color-ink-on-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
}

.comparison-table tbody td,
.comparison-table tbody th {
  padding: 15px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-muted);
  background: var(--surface-white);
  border-top: 1px solid var(--border-table);
  vertical-align: middle;
}

.comparison-table tbody td svg {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 auto;
}

/* Primeira coluna: nome do recurso */
.comparison-table tbody th[scope="row"] {
  padding: 15px 24px;
  text-align: left;
  font-size: 14.5px;
  color: var(--color-ink);
}

.comparison-table tbody .is-featured {
  background: #f8f4fd;
}

/* Zebrado: linhas pares recebem fundo levemente lilás */
.comparison-table tbody tr:nth-child(even) td,
.comparison-table tbody tr:nth-child(even) th {
  background: var(--surface-lilac-50);
}

.comparison-table tbody tr:nth-child(even) .is-featured {
  background: #f3ecfb;
}

/* Linha de agrupamento de recursos (ex: Inteligência Artificial) */
.comparison-table tbody tr.comparison-table__group-row th,
.comparison-table tbody tr.comparison-table__group-row:nth-child(even) th {
  padding: 11px 24px;
  background: #f0e6fa;
  text-align: left;
  border-top: 1px solid var(--border-lilac-soft);
  border-bottom: 1px solid var(--border-lilac-soft);
}

.comparison-table__group-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-700);
}

/* Última linha (preços) em negrito */
.comparison-table tbody tr:last-child td,
.comparison-table tbody tr:last-child th {
  font-weight: 700;
}

.comparison-table tbody tr:last-child .is-featured {
  color: var(--color-brand-600);
}

.comparison__note {
  padding: 16px 24px;
  background: var(--surface-white);
  border-top: 1px solid var(--border-table);
  font-size: 13px;
  color: var(--color-ink-soft);
}

/* ------------------------------------------------------------
   16. FAQ
   ------------------------------------------------------------ */
#faq {
  overflow: hidden;
  contain: paint;
  max-width: 100%;
}

.faq__inner {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.faq__header {
  margin-bottom: clamp(30px, 4vw, 44px);
}

.faq__header .section-title {
  margin: 22px 0 16px;
}

.faq__header .section-lead {
  max-width: 620px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.faq-item {
  background: var(--surface-white);
  border: 1px solid var(--border-lilac-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(30, 0, 49, 0.06);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: var(--border-lilac);
}

.faq-item__question {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.faq-item__question-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-ink);
  transition: color 0.2s ease;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1;
}

.faq-item__question:hover .faq-item__question-text {
  color: var(--color-brand-700);
}

.faq-item__marker {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-lilac-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

/* O ícone "+" gira 45° virando um "X" com animação suave */
.faq-item__marker svg {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item__question[aria-expanded="true"] .faq-item__marker {
  background: var(--surface-lilac-400);
}

.faq-item__question[aria-expanded="true"] .faq-item__marker svg {
  transform: rotate(45deg);
}

/* Transição fluida de abertura e fechamento via CSS Grid */
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s ease;
  opacity: 0;
  visibility: hidden;
}

.faq-item__question[aria-expanded="true"] + .faq-item__answer {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.faq-item__answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item__answer-box {
  margin: 0 26px 26px;
  padding: 20px 24px;
  background: var(--surface-answer);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.faq-item__answer-box p {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--color-ink-muted);
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------
   17. CTA FINAL
   ------------------------------------------------------------ */
.cta-contact {
  background: var(--gradient-cta);
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
  overflow: hidden;
  contain: paint;
  max-width: 100%;
}

.cta-contact__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
}

.cta-contact__inner > * {
  min-width: 0;
  max-width: 100%;
}

.cta-contact__title {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--color-ink-on-dark);
  margin: 22px 0 18px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.cta-contact__lead {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--color-ink-on-dark-muted);
  margin-bottom: 34px;
  max-width: 480px;
}

.cta-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 100%;
}

.cta-contact__actions .btn {
  max-width: 100%;
}

.cta-contact__actions .btn--primary {
  box-shadow: var(--shadow-button);
}

.cta-contact__image-wrap {
  display: flex;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}

.cta-contact__image {
  width: 100%;
  max-width: 560px;
  height: auto;
}

/* ------------------------------------------------------------
   18. RODAPÉ
   ------------------------------------------------------------ */
.site-footer {
  background: var(--gradient-footer);
  padding: clamp(44px, 6vw, 68px) 0 30px;
  border-top: 1px solid var(--border-on-dark);
  overflow: hidden;
  contain: paint;
  max-width: 100%;
}

/* As colunas usam flex-basis diferentes: identidade, navegação,
   contato e o card de dica, que é o mais largo. */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 3.5vw, 48px);
  align-items: stretch;
}

.footer-brand {
  flex: 1.05 1 250px;
}

.footer-brand__logo {
  height: 38px;
  width: auto;
}

.footer-brand__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-ink-on-dark-muted);
  margin-top: 20px;
  max-width: 270px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(212, 179, 230, 0.1);
  border: 1px solid var(--border-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.social-links a:hover {
  background: rgba(180, 124, 224, 0.28);
}

.footer-column--nav {
  flex: 0.65 1 160px;
}

.footer-column--contact {
  flex: 0.85 1 200px;
}

.footer-column__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand-500);
  margin-bottom: 18px;
}

.footer-column__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column__links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--color-ink-on-dark);
}

.footer-column__links a:hover {
  color: var(--color-ink-on-dark);
  opacity: 0.75;
}

.footer-column__links svg {
  flex-shrink: 0;
}

/* Card "Dica do especialista" */
.footer-tip {
  flex: 1.45 1 340px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 32px;
  background: rgba(212, 179, 230, 0.08);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-lg);
}

.footer-tip__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(180, 124, 224, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-tip__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink-on-dark);
  margin-bottom: 10px;
}

.footer-tip__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-ink-on-dark-muted);
  margin-bottom: 18px;
}

.footer-tip__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-brand-500);
}

.footer-tip__link:hover {
  color: var(--color-ink-on-dark);
}

.footer-bottom {
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 24px;
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-ink-on-dark-muted);
}

.footer-bottom__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-bottom__legal a,
.footer-bottom__legal button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--color-ink-on-dark-muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-bottom__legal a:hover,
.footer-bottom__legal button:hover {
  color: var(--color-ink-on-dark);
}

.footer-bottom__legal a:focus,
.footer-bottom__legal button:focus,
.footer-bottom__legal a:focus-visible,
.footer-bottom__legal button:focus-visible {
  outline: none;
  box-shadow: none;
  color: var(--color-ink-on-dark);
}

.footer-bottom__separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(212, 179, 230, 0.5);
}

/* Bloqueio de rolagem da página quando o modal estiver aberto */
body.is-modal-open {
  overflow: hidden;
}

/* ------------------------------------------------------------
   19. LIGHTBOX DO TOUR
   ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 0, 25, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out;
}

/* Botão Fechar: Opaco no canto superior direito externo ao card */
.lightbox__close {
  position: fixed;
  top: clamp(14px, 2.5vh, 24px);
  right: clamp(14px, 2.5vw, 28px);
  z-index: 130;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: none;
  color: #120320;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.lightbox__close:hover {
  background-color: var(--color-brand-600);
  color: #ffffff;
  transform: scale(1.08);
}

.lightbox__close:active {
  transform: scale(0.95);
}

/* Botões de navegação lateral */
.lightbox__nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 125;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(18, 3, 32, 0.85);
  border: 1px solid rgba(212, 179, 230, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lightbox__nav-btn:hover {
  background-color: #ffffff;
  color: #120320;
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.lightbox__nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox__nav-btn--prev {
  left: clamp(12px, 2.5vw, 32px);
}

.lightbox__nav-btn--next {
  right: clamp(12px, 2.5vw, 32px);
}

/* Diálogo enquadrado perfeitamente em proporção 16:9 sem sobras laterais */
.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(88vw, 1280px, calc((86vh - 85px) * 16 / 9));
  background-color: #120320;
  border: 1px solid rgba(212, 179, 230, 0.25);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 8px 30px rgba(102, 47, 136, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
}

.lightbox__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0d0117;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.lightbox__img.is-waiting-load {
  opacity: 0;
  transition: none;
}

.lightbox__img.is-fading-out {
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.lightbox__img.is-fading-in {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

/* Indicador de carregamento */
.lightbox__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0d0117;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.lightbox__loader.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(212, 179, 230, 0.2);
  border-top-color: var(--color-brand-400, #934cb8);
  border-radius: 50%;
  animation: lightbox-spin 0.75s linear infinite;
}

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

.lightbox__footer {
  padding: 16px 28px 20px;
  background: #18052a;
  border-top: 1px solid rgba(212, 179, 230, 0.15);
  flex-shrink: 0;
}

.lightbox__title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.lightbox__desc {
  font-size: 13.5px;
  color: #c4b5d4;
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .lightbox__nav-btn {
    width: 40px;
    height: 40px;
  }

  .lightbox__nav-btn--prev {
    left: 8px;
  }

  .lightbox__nav-btn--next {
    right: 8px;
  }

  .lightbox__footer {
    padding: 12px 16px 16px;
  }

  .lightbox__title {
    font-size: 15px;
  }

  .lightbox__desc {
    font-size: 12.5px;
  }
}

/* ------------------------------------------------------------
   20. MODAIS INSTITUCIONAIS (TERMOS E PRIVACIDADE)
   Backdrop escurecido com desfoque e diálogo com design institucional.
   ------------------------------------------------------------ */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* Fundo escuro com desfoque padronizado com o sistema /flip */
.legal-modal__backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 0, 25, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}

.legal-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  max-height: min(88vh, 820px);
  background-color: var(--surface-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-lilac-soft);
  box-shadow: 0 24px 60px rgba(15, 0, 25, 0.35), 0 8px 24px rgba(102, 47, 136, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.26s var(--ease-out-soft);
}

.legal-modal.is-open .legal-modal__dialog {
  transform: scale(1) translateY(0);
}

/* Botão Fechar (X) no topo direito */
.legal-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-lilac-200);
  border: 1px solid var(--border-lilac);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.legal-modal__close:hover {
  background: var(--color-brand-600);
  border-color: var(--color-brand-600);
  color: #ffffff;
  transform: scale(1.06);
}

.legal-modal__close:focus-visible {
  outline: 2px solid var(--color-brand-600);
  outline-offset: 2px;
}

/* Header do Modal */
.legal-modal__header {
  padding: 32px 36px 20px 36px;
  border-bottom: 1px solid var(--border-table);
  background: linear-gradient(180deg, var(--surface-lilac-50) 0%, var(--surface-white) 100%);
  padding-right: 68px; /* Espaço para o botão X */
}

.legal-modal__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--color-purple-950);
  letter-spacing: -0.02em;
  margin-top: 8px;
  margin-bottom: 6px;
}

.legal-modal__lead {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--color-ink-muted);
}

/* Corpo com Rolagem */
.legal-modal__body {
  padding: 24px 36px 32px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--color-ink);
  font-size: 15px;
  line-height: 1.7;
}

/* Estilização suave da barra de rolagem */
.legal-modal__body::-webkit-scrollbar {
  width: 8px;
}

.legal-modal__body::-webkit-scrollbar-track {
  background: var(--surface-lilac-100);
}

.legal-modal__body::-webkit-scrollbar-thumb {
  background: var(--border-lilac);
  border-radius: 4px;
}

.legal-modal__body::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-500);
}

/* Tipografia e Seções do Conteúdo */
.legal-modal__section {
  margin-bottom: 0;
}

.legal-modal__section + .legal-modal__section {
  margin-top: 32px;
}

.legal-modal__section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-brand-700);
  margin-top: 0;
  margin-bottom: 10px;
}

.legal-modal__list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-modal__list li {
  position: relative;
  padding-left: 20px;
}

.legal-modal__list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--color-brand-600);
  font-weight: bold;
}

.legal-modal__list strong {
  color: var(--color-purple-950);
}

.legal-modal__date {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-lilac);
  font-size: 13.5px;
  font-style: italic;
  color: var(--color-ink-soft);
}

/* Rodapé do Modal */
.legal-modal__footer {
  padding: 16px 36px;
  background: var(--surface-lilac-50);
  border-top: 1px solid var(--border-table);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 640px) {
  .legal-modal__header {
    padding: 24px 20px 16px 20px;
    padding-right: 56px;
  }

  .legal-modal__body {
    padding: 18px 20px 24px 20px;
    font-size: 14px;
  }

  .legal-modal__footer {
    padding: 14px 20px;
  }

  .legal-modal__close {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
  }
}

/* ------------------------------------------------------------
   20. CHECKOUT MODAL
   ------------------------------------------------------------ */
.checkout-modal__dialog {
  max-width: 660px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.checkout-modal__header {
  padding: 32px 36px 16px 36px;
  position: relative;
}

.checkout-modal__title {
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 800;
  color: var(--color-ink);
  margin-top: 4px;
  margin-bottom: 6px;
}

.checkout-modal__lead {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--color-ink-muted);
  margin: 0;
}

/* Banner de Resumo do Plano */
.checkout-banner {
  margin: 0 36px 22px 36px;
  padding: 16px 20px;
  background: var(--surface-lilac-50);
  border: 1px solid var(--color-brand-700);
  border-radius: 14px;
  position: relative;
}

.checkout-banner__badge {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--color-brand-700);
  color: #ffffff;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(102, 47, 136, 0.25);
}

.checkout-banner__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.checkout-banner__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-muted);
  margin-bottom: 5px;
}

.checkout-banner__plan-selector {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.checkout-plan-pill {
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--border-lilac);
  background: #ffffff;
  color: var(--color-brand-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-plan-pill:hover {
  border-color: var(--color-brand-600);
}

.checkout-plan-pill.is-active {
  background: var(--color-brand-700);
  color: #ffffff;
  border-color: var(--color-brand-700);
  box-shadow: 0 2px 8px rgba(102, 47, 136, 0.2);
}

.checkout-plan-pill:disabled,
.checkout-plan-pill.is-locked {
  cursor: default;
  pointer-events: none;
}

.checkout-plan-pill.is-locked:not(.is-active) {
  opacity: 0.4;
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.checkout-banner__pricing {
  text-align: right;
}

.checkout-banner__main-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-brand-700);
  line-height: 1.1;
}

.checkout-banner__installments {
  font-size: 15px;
  font-weight: 700;
  margin-right: 2px;
}

.checkout-banner__pix-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink-muted);
  margin-right: 4px;
}

.checkout-banner__total {
  font-size: 12px;
  color: var(--color-ink-soft);
  margin: 4px 0 0;
}

/* Corpo e Etapas */
.checkout-modal__body {
  padding: 0 36px 36px 36px;
  max-height: calc(85vh - 160px);
  overflow-y: auto;
}

.checkout-step__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-step__number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-brand-700);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-step__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
}

.checkout-step__subtitle {
  font-size: 12.5px;
  color: var(--color-ink-muted);
  margin: 2px 0 0;
}

.checkout-btn-back {
  background: none;
  border: none;
  color: var(--color-brand-700);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.checkout-btn-back:hover {
  background: var(--surface-lilac-200);
}

/* Formulário e Campos */
.checkout-form {
  display: flex;
  flex-direction: column;
}

.checkout-field {
  margin-bottom: 14px;
}

.checkout-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 5px;
}

.checkout-field input,
.checkout-field select,
.checkout-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-lilac);
  font-family: inherit;
  font-size: 14px;
  color: var(--color-ink);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-select:focus {
  border-color: var(--color-brand-600);
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 47, 176, 0.12);
}

/* Integração refinada do Bootstrap 5.3 no modal de checkout */
.checkout-modal .form-control,
.checkout-modal .form-select {
  border-color: var(--border-lilac);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--color-ink);
  padding: 8px 12px;
}

.checkout-modal .form-control-sm,
.checkout-modal .form-select-sm {
  height: 36px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.4;
}

.checkout-modal .form-control:focus,
.checkout-modal .form-select:focus {
  border-color: var(--color-brand-600);
  box-shadow: 0 0 0 3px rgba(122, 47, 176, 0.14);
}

.checkout-modal .form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-ink);
}

/* Grupo de Input do Cupom */
.checkout-modal .input-group-sm {
  height: 36px;
}

.checkout-modal .input-group-sm > .form-control {
  height: 36px;
  font-size: 13px;
  padding: 6px 12px;
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none;
}

.checkout-modal .input-group-sm > .form-control:focus {
  border-right: 1px solid var(--color-brand-600);
  z-index: 3;
}

.checkout-modal .input-group-sm > .btn {
  height: 36px;
  font-size: 13px;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Botão Aplicar Cupom — mesma cor e hover do botão Confirmar Pagamento (.btn--solid) */
.checkout-modal .btn--coupon-apply {
  padding: 0 20px;
  background-color: var(--color-brand-700);
  border-color: var(--color-brand-700);
  color: var(--color-ink-on-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s;
}

.checkout-modal .btn--coupon-apply:hover:not(:disabled),
.checkout-modal .btn--coupon-apply:focus:not(:disabled) {
  background-color: #7a3da3;
  border-color: #7a3da3;
  color: var(--color-ink-on-dark);
}

.checkout-modal .btn--coupon-apply:disabled {
  background-color: var(--color-brand-700);
  border-color: var(--color-brand-700);
  color: var(--color-ink-on-dark);
  opacity: 0.7;
  cursor: not-allowed;
}

.checkout-modal .btn--coupon-remove {
  padding: 0 16px;
  font-weight: 700;
}

/* Utilitários de Tipografia (estilo /flip) */
.fs-10 { font-size: 10px !important; }
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }
.fs-15 { font-size: 15px !important; }
.fs-16 { font-size: 16px !important; }
.fs-18 { font-size: 18px !important; }
.fs-20 { font-size: 20px !important; }
.fs-22 { font-size: 22px !important; }
.fs-24 { font-size: 24px !important; }

small, .small {
  font-size: 11.5px;
}

.checkout-modal small,
.checkout-modal .small {
  font-size: 11.5px;
  color: var(--color-ink-soft);
  line-height: 1.4;
}

.checkout-field__hint {
  font-size: 11.5px;
  color: var(--color-ink-soft);
  margin-top: 4px;
  display: block;
}

.checkout-input-icon-wrap {
  position: relative;
}

.checkout-input-icon-wrap input {
  padding-right: 44px;
}

.checkout-card-brand {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-brand-700);
  pointer-events: none;
}

.checkout-grid {
  display: grid;
  gap: 12px;
}

.checkout-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.checkout-grid--3 {
  grid-template-columns: 1fr 1fr 2fr;
}

/* Tabs de Pagamento */
.checkout-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.checkout-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-lilac);
  background: var(--surface-lilac-50);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.checkout-tab svg {
  color: var(--color-ink-soft);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.checkout-tab strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-ink);
}

.checkout-tab small {
  display: block;
  font-size: 11.5px;
  color: var(--color-brand-700);
  font-weight: 600;
}

.checkout-tab:hover:not(.is-active) {
  border-color: var(--color-brand-500);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 47, 136, 0.12);
}

.checkout-tab:hover:not(.is-active) svg {
  color: var(--color-brand-600);
}

.checkout-tab.is-active {
  border-color: var(--color-brand-600);
  background: var(--surface-answer);
  box-shadow: 0 4px 14px rgba(102, 47, 136, 0.08);
}

.checkout-tab.is-active svg {
  color: var(--color-brand-700);
}

.badge-pix-discount {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32 !important;
  font-weight: 700 !important;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px !important;
}

/* Cupom de Desconto */
.checkout-coupon-box {
  margin-bottom: 16px;
}

.checkout-coupon-input-wrap {
  display: flex;
  gap: 8px;
}

.checkout-coupon-input {
  flex: 1;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-lilac);
  font-size: 13.5px;
}

.btn--coupon {
  padding: 0 16px;
  background: var(--surface-lilac-200);
  color: var(--color-brand-700);
  border: 1px solid var(--border-lilac);
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--coupon:hover {
  background: var(--surface-lilac-300);
}

.checkout-coupon-msg {
  font-size: 12px;
  margin: 6px 0 0;
  font-weight: 600;
}

/* Compartimento com borda para os dados do cartão */
.checkout-card-group {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background-color: #f8fafc;
  margin-top: 14px;
  margin-bottom: 8px;
}

/* Aviso de Segurança */
.checkout-security-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--color-ink-muted);
  margin: 6px 0 6px;
  padding: 0;
  background: none;
}

.checkout-security-notice svg {
  flex-shrink: 0;
}

/* Botões de Ação */
.checkout-actions {
  margin-top: 8px;
}

.checkout-btn-next,
.checkout-btn-submit {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Tela PIX Gerado */
.checkout-pix-display {
  text-align: center;
  padding: 4px 0;
}

.checkout-pix-status-bar {
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.checkout-pix-waiting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--color-ink-muted);
  font-weight: 500;
}

.checkout-pix-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-brand-600);
  box-shadow: 0 0 0 0 rgba(122, 47, 176, 0.7);
  animation: pulse-dot 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

.checkout-pix-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface-lilac-100);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--color-brand-700);
  font-weight: 600;
}

.checkout-pix-qrcode-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.checkout-pix-qrcode-box {
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border-lilac);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(30, 0, 49, 0.06);
}

.btn--copied {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

.checkout-step .btn--outline.btn--squared {
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
}

@keyframes pulse-dot {
  to {
    box-shadow: 0 0 0 12px rgba(122, 47, 176, 0);
  }
}

/* Tela de Sucesso */
.checkout-success {
  text-align: center;
  padding: 20px 10px;
}

.checkout-success__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.checkout-success__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-ink);
  margin: 0 0 6px;
}

.checkout-success__lead {
  font-size: 15px;
  color: var(--color-ink-muted);
  margin: 0 0 18px;
}

.checkout-success__details {
  padding: 16px 20px;
  background: var(--surface-lilac-50);
  border-radius: 12px;
  border: 1px solid var(--border-lilac-soft);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--color-ink);
  line-height: 1.6;
}

.checkout-success__details p {
  margin: 0;
}

.checkout-success__details p + p {
  margin-top: 8px;
  color: var(--color-ink-muted);
  font-size: 13px;
}

.checkout-success__btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Loading Overlay */
.checkout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: var(--radius-lg);
}

.checkout-overlay[hidden],
.checkout-step[hidden],
.checkout-form[hidden] {
  display: none !important;
}

.checkout-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--surface-lilac-300);
  border-top-color: var(--color-brand-700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 14px;
}

.checkout-overlay__text {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-brand-700);
  margin: 0;
}

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

@media (max-width: 640px) {
  .checkout-modal__header {
    padding: 24px 20px 14px;
  }

  .checkout-banner {
    margin: 0 20px 18px;
    padding: 14px 16px;
  }

  .checkout-modal__body {
    padding: 0 20px 24px;
  }

  .checkout-grid--2,
  .checkout-grid--3 {
    grid-template-columns: 1fr;
  }

  .checkout-tabs {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   22. CHATBOT FLUTUANTE (ESPECIALISTA FLIPEI - IA)
   ------------------------------------------------------------ */

/* Botão Flutuante (FAB) */
.chat-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 9990;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand-600) 0%, var(--color-purple-950) 100%);
  color: #ffffff;
  border: 1px solid rgba(212, 179, 230, 0.35);
  box-shadow: 0 10px 28px rgba(122, 47, 176, 0.42), 0 3px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, background 0.3s ease;
  outline: none;
}

.chat-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 34px rgba(122, 47, 176, 0.55), 0 4px 10px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #8a37c7 0%, #1e0031 100%);
}

.chat-fab:active {
  transform: translateY(0) scale(0.96);
}

.chat-fab__icon-open,
.chat-fab__icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.chat-fab__icon-open {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.chat-fab__icon-close {
  position: absolute;
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

.chat-fab.chat-fab--active .chat-fab__icon-open {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

.chat-fab.chat-fab--active .chat-fab__icon-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Ponto pulsante de status no FAB */
.chat-fab__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #10b981;
  border: 2.5px solid #1e0031;
  border-radius: 50%;
  animation: pulse-fab-badge 2.4s infinite;
}

@keyframes pulse-fab-badge {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Janela de Diálogo do Chat */
.chat-widget {
  position: fixed;
  bottom: 96px;
  right: 26px;
  z-index: 9995;
  width: 380px;
  max-width: calc(100% - 32px);
  height: 590px;
  max-height: calc(100vh - 120px);
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(30, 0, 49, 0.22), 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(122, 47, 176, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-widget[hidden] {
  display: none !important;
}

.chat-widget.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Cabeçalho do Chat */
.chat-widget__header {
  background: linear-gradient(135deg, #1e0031 0%, #3b0e5c 50%, #662f88 100%);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.chat-widget__agent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-widget__avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-widget__status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  background-color: #10b981;
  border: 2px solid #1e0031;
  border-radius: 50%;
}

.chat-widget__info {
  display: flex;
  flex-direction: column;
}

.chat-widget__title {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.chat-widget__subtitle {
  font-size: 11.5px;
  color: var(--color-ink-on-dark-muted);
  margin: 2px 0 0;
  line-height: 1.2;
}

.chat-widget__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-widget__btn-action {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  padding: 0;
}

.chat-widget__btn-action:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}

/* Área de Mensagens */
.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--surface-lilac-50);
  scroll-behavior: smooth;
  outline: none;
}

/* Scrollbar fina e elegante */
.chat-widget__messages::-webkit-scrollbar {
  width: 5px;
}
.chat-widget__messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-widget__messages::-webkit-scrollbar-thumb {
  background: rgba(122, 47, 176, 0.2);
  border-radius: 10px;
}
.chat-widget__messages::-webkit-scrollbar-thumb:hover {
  background: rgba(122, 47, 176, 0.4);
}

/* Balões de Mensagem */
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  animation: chatMsgFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chatMsgFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg--ia {
  align-self: flex-start;
}

.chat-msg--user {
  align-self: flex-end;
}

.chat-msg__content {
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
}

.chat-msg--ia .chat-msg__content {
  background-color: #ffffff;
  color: var(--color-ink);
  border: 1px solid var(--border-lilac-soft);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 2px 6px rgba(122, 47, 176, 0.04);
}

.chat-msg--user .chat-msg__content {
  background: linear-gradient(135deg, var(--color-brand-600) 0%, var(--color-brand-700) 100%);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 3px 10px rgba(122, 47, 176, 0.22);
}

.chat-msg__time {
  font-size: 10.5px;
  color: var(--color-ink-soft);
  margin-top: 3px;
  padding: 0 4px;
}

.chat-msg--user .chat-msg__time {
  align-self: flex-end;
}

.chat-msg--ia .chat-msg__time {
  align-self: flex-start;
}

/* Formatação do conteúdo dentro do balão de IA */
.chat-msg__content strong {
  font-weight: 700;
  color: var(--color-purple-950);
}

.chat-msg--user .chat-msg__content strong {
  color: #ffffff;
}

.chat-msg__content .chat-list {
  margin: 6px 0 6px 16px;
  padding: 0;
}

.chat-msg__content .chat-list li {
  margin-bottom: 4px;
}

/* Links no chat */
.chat-link {
  color: var(--color-brand-600);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s ease;
  word-break: break-word;
}

.chat-link:hover {
  color: var(--color-purple-950);
}

.chat-link--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-weight: 700;
  text-decoration: none;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 6px;
  margin: 2px 0;
  white-space: nowrap;
  word-break: normal;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chat-link--whatsapp:hover {
  background-color: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.chat-link--email {
  color: var(--color-brand-700);
  font-weight: 600;
  white-space: nowrap;
  word-break: normal;
}

/* Indicador de Digitação (Typing Indicator) */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 4px;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  background-color: var(--color-brand-500);
  border-radius: 50%;
  animation: chatBounce 1.3s infinite ease-in-out both;
}

.chat-typing span:nth-child(1) {
  animation-delay: -0.32s;
}
.chat-typing span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes chatBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.15);
    opacity: 1;
    background-color: var(--color-brand-600);
  }
}

/* Formulário de Input */
.chat-widget__form {
  padding: 12px 14px 14px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-lilac-soft);
  flex-shrink: 0;
}

.chat-widget__input-wrap {
  display: flex;
  align-items: stretch;
  background-color: var(--surface-lilac-50);
  border: 1.5px solid var(--border-lilac-soft);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chat-widget__input-wrap:focus-within {
  border-color: var(--color-brand-600);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(122, 47, 176, 0.12);
}

.chat-widget__input {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  font-family: inherit;
  font-size: 16px; /* Evita zoom automático forçado pelo iOS Safari / WebKit em telas móveis */
  line-height: 1.35;
  color: var(--color-ink);
  outline: none;
  padding: 10px 12px 10px 14px;
  margin: 0;
  min-height: 22px;
  max-height: 90px;
  display: block;
  touch-action: manipulation;
}

.chat-widget__input::placeholder {
  color: var(--color-ink-soft);
  font-size: 15px;
}

.chat-widget__send {
  width: 52px;
  min-height: 100%;
  border-radius: 0;
  background: linear-gradient(135deg, var(--color-brand-600) 0%, var(--color-brand-700) 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.18s ease, opacity 0.18s ease, background 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  touch-action: manipulation;
}

.chat-widget__send:hover {
  filter: brightness(1.12);
  background: linear-gradient(135deg, #8a37c7 0%, var(--color-brand-700) 100%);
}

.chat-widget__send:disabled {
  opacity: 1;
  cursor: pointer;
}

/* Responsividade Mobile para o Chat */
@media (max-width: 640px) {
  .chat-fab {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .chat-widget {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    overscroll-behavior: contain;
    transform: none;
  }

  .chat-widget:not(.is-open) {
    display: none !important;
  }

  .chat-widget.is-open ~ .chat-fab {
    display: none;
  }

  .chat-widget__input {
    font-size: 16px;
  }

  /* Ajustes da seção de planos no mobile */
  .plan-card {
    padding: 24px 18px 28px;
  }

  .plan-card--featured {
    padding: 28px 18px 30px;
  }

  .plan-card__summary {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Ajustes da parte inferior (FAQ, CTA e Rodapé) para prevenir overflow lateral */
  .faq-item__question {
    padding: 18px 16px;
    gap: 12px;
  }

  .faq-item__question-text {
    font-size: 15.5px;
  }

  .faq-item__marker {
    width: 32px;
    height: 32px;
  }

  .faq-item__answer-box {
    margin: 0 14px 18px;
    padding: 16px 14px;
  }

  .cta-contact {
    padding: 48px 0 36px;
  }

  .cta-contact__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-contact__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-contact__actions .btn {
    width: 100%;
    padding: 14px 18px;
    white-space: normal;
    text-align: center;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-brand,
  .footer-column--nav,
  .footer-column--contact,
  .footer-tip {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }

  .footer-tip {
    padding: 22px 18px;
  }
}

/* ------------------------------------------------------------
   23. PREFERÊNCIA POR MENOS MOVIMENTO
   Respeita quem desativou animações no sistema operacional.
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .quote-column__track--up,
  .quote-column__track--down {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .tour__track,
  .screen-card,
  .legal-modal,
  .legal-modal__dialog,
  .chat-widget,
  .chat-fab {
    transition: none !important;
  }

  .chat-fab__badge,
  .chat-typing span {
    animation: none !important;
  }
}

