/* ==========================================================================
   FLEETSTUDIO — ANTIGRAVITY EXPERIENCE STYLESHEET
   Design System: Editorial Light Premium / Kinetic Product SaaS Experience
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Cores Principais (Tema Claro Editorial Premium) */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.88);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-light: #94a3b8;

  /* Acentos de Marca (Ciano Límpido & Violeta Profundo) */
  --brand-cyan: #00b4d8;
  --brand-cyan-light: #38bdf8;
  --brand-cyan-dim: rgba(0, 180, 216, 0.12);
  --brand-violet: #6366f1;
  --brand-violet-dark: #4f46e5;
  --brand-violet-dim: rgba(99, 102, 241, 0.12);

  --gradient-brand: linear-gradient(135deg, #00b4d8 0%, #6366f1 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(0, 180, 216, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);

  /* Seções Escuras (Demonstração & Fechamento) */
  --dark-bg: #090d16;
  --dark-surface: #111827;
  --dark-surface-glass: rgba(17, 24, 39, 0.75);
  --dark-border: rgba(255, 255, 255, 0.1);
  --dark-text: #f8fafc;
  --dark-text-muted: #94a3b8;

  /* Bordas e Sombras */
  --border-subtle: rgba(148, 163, 184, 0.2);
  --border-glass: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 4px 12px -4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 50px -10px rgba(99, 102, 241, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shell-max: 1200px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.25, 0.64, 1);
}

/* Reset Básico e Estrutura */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.55;
}

header, main, footer { position: relative; z-index: 1; }

/* Acessibilidade */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  padding: 12px 20px;
  background: var(--brand-violet);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
  text-decoration: none;
}
.skip-link:focus {
  top: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* Canvas Backgrounds (WebGL & 2D fallback) */
.canvas-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: .9;
}

.webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

html.webgl-active .webgl-canvas {
  opacity: 1;
}

/* Layout Shell */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Tipografia Base */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.8rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cursor Vertical de Digitação */
.typing-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  vertical-align: -0.12em;
  margin-left: 4px;
  background: var(--brand-violet);
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.char-token {
  display: inline;
}

/* Ícone SVG Check */
.check-icon-svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: #10b981;
  display: inline-block;
  vertical-align: middle;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.btn--primary {
  background: var(--text-main);
  /* Inverso de --text-main, não branco fixo: no tema escuro --text-main vira
     quase branco (botão claro) e um "color: #fff" deixava o texto invisível
     em cima do próprio fundo do botão. */
  color: var(--bg-page);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}
.btn--primary:hover {
  /* filter em vez de um #1e293b fixo: esse tom só clareia o botão escuro do
     tema claro — no tema escuro o botão já nasce claro, e escurecer ainda
     mais o fundo (mantendo o texto var(--bg-page), também escuro) apagava o
     texto de novo no hover. brightness() ajusta o botão como ele estiver. */
  filter: brightness(1.15);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.btn--ghost {
  background: var(--bg-glass-strong);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  background: #ffffff;
  border-color: var(--brand-violet);
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-sm);
}

.btn--large {
  padding: 15px 32px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Navigation Bar */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: padding var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.nav-wrap.is-scrolled {
  padding: 10px 0;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-icon-svg {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.brand span {
  color: var(--brand-violet);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.login-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}
.login-link:hover {
  color: var(--text-main);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

/* Seções */
.section {
  padding-block: clamp(60px, 9vw, 110px);
  position: relative;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-violet);
  margin-bottom: 12px;
}

/* 1. HERO SECTION */
.hero {
  padding-top: clamp(120px, 16vw, 175px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  text-align: center;
  align-items: center;
  max-width: 960px;
  margin-inline: auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-inline: auto;
}

.hero-pill__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  margin-bottom: 18px;
}

.hero-subhead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.microcopy-line {
  font-size: 0.86rem;
  color: var(--text-dim);
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 10px;
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Hero Stage / Live Interface Mockup */
.hero-stage-container {
  margin-top: 24px;
  perspective: 1200px;
}

.hero-stage {
  background: var(--bg-surface);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.app-window-controls {
  display: flex;
  gap: 6px;
}

.app-window-controls i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.app-window-controls i:nth-child(1) { background: #ff5f56; }
.app-window-controls i:nth-child(2) { background: #ffbd2e; }
.app-window-controls i:nth-child(3) { background: #27c93f; }

.app-window-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-window-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 380px;
  background: #ffffff;
}

.app-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-top: 10px;
  margin-bottom: 4px;
  padding-inline: 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
}

.sidebar-item.is-active {
  background: #ffffff;
  color: var(--brand-violet);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.app-main-pane {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-summary-header h3 {
  font-size: 1.15rem;
  margin-top: 2px;
}

.progress-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #dbeafe;
  color: #1d4ed8;
}

.progress-track {
  height: 6px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  width: 67%;
  height: 100%;
  background: var(--gradient-brand);
}

.pipeline-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pipeline-card {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.pipeline-card.is-done {
  border-color: #cbd5e1;
}

.pipeline-card.is-active {
  background: #ffffff;
  border-color: var(--brand-violet);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.pipeline-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
}

.pipeline-card-badge {
  font-size: 0.72rem;
  color: #10b981;
}

.pipeline-card.is-active .pipeline-card-badge {
  color: var(--brand-violet);
}

.pipeline-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.pipeline-card p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.next-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.05) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
}

.next-action-strip small {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-violet);
  display: block;
  letter-spacing: 0.05em;
}

.next-action-strip strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.next-action-btn {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-violet);
}

/* Floating Context Chips in Hero */
.floating-chips-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.context-chip {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  animation: floatChip 6s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}

.context-chip img, .context-chip svg {
  width: 16px;
  height: 16px;
}

@keyframes floatChip {
  0% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
  100% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

/* 2. O PROBLEMA */
.problem-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.tools-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tool-badge img {
  width: 15px;
  height: 15px;
}

.reframe-box {
  padding: 18px 22px;
  background: var(--bg-surface-subtle);
  border-left: 3px solid var(--brand-violet);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-main);
}

.chaos-visual-stage {
  position: relative;
  min-height: 380px;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
}

.chaos-core-node {
  text-align: center;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.chaos-core-node small {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 0.08em;
  display: block;
}

.chaos-core-node strong {
  font-size: 1.1rem;
  color: var(--text-main);
}

.scatter-field {
  position: absolute;
  inset: 0;
}

.scatter-chip {
  position: absolute;
  top: var(--start-y);
  left: var(--start-x);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--start-r, 0deg));
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

.scatter-chip img {
  width: 14px;
  height: 14px;
}

/* 3. A CONVERGÊNCIA (Solução) */
.convergence-architecture {
  margin-top: 36px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.convergence-hub-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}

.convergence-hub {
  padding: 16px 32px;
  background: var(--gradient-brand);
  color: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
  text-align: center;
}

.convergence-hub small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.9;
  display: block;
}

.convergence-hub strong {
  font-size: 1.25rem;
  font-weight: 800;
}

.arch-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.arch-card {
  padding: 18px 20px;
  background: var(--bg-surface-subtle);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.arch-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-violet);
}

.arch-card-icon {
  font-size: 1.2rem;
  margin-bottom: 8px;
  display: block;
}

.arch-card b {
  font-size: 0.95rem;
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.arch-card span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* 4. EXPLORADOR INTERATIVO DE MÓDULOS (Núcleo) */
.module-explorer-wrap {
  margin-top: 32px;
  background: #ffffff;
  /* Este card é sempre claro (mockup do produto), nos dois temas do site.
     Sem isso, no tema escuro o texto herdava --text-main do body (quase
     branco) e ficava ilegível em cima do próprio fundo branco do card —
     fixando as variáveis de texto aqui, tudo que usa var(--text-*) dentro
     do card (h3, p, ícones etc.) volta a ler certo nos dois temas. */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  /* `color` herda o VALOR JÁ COMPUTADO do body, não a variável em si — só
     redeclarar --text-main acima não muda o que os filhos herdam. Precisa
     reler a variável aqui pra recomputar `color` com o valor certo. */
  color: var(--text-main);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.module-tabs-bar {
  display: flex;
  overflow-x: auto;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px;
  gap: 6px;
}

.module-tab {
  background: none;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.module-tab:hover {
  color: var(--text-main);
  background: rgba(226, 232, 240, 0.6);
}

.module-tab.is-active {
  background: #ffffff;
  color: var(--brand-violet);
  box-shadow: var(--shadow-sm);
}

.module-explorer-body {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  padding: clamp(24px, 4vw, 40px);
  align-items: center;
}

.module-info-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.module-info-pane h3 {
  font-size: 1.55rem;
}

.module-info-pane p {
  font-size: 0.98rem;
  line-height: 1.6;
}

.module-stage-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.02);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.module-stage-card.is-transitioning {
  opacity: 0.4;
  transform: scale(0.98);
}

.stage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.stage-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: #ede9fe;
  color: #6d28d9;
  border-radius: var(--radius-full);
}

.stage-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.exp-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.exp-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.exp-item-head strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.exp-item-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
}

.exp-item-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.stage-next-action {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stage-next-action small {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-violet);
  letter-spacing: 0.05em;
}

.stage-next-action strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

/* 4b. MOCKUPS POR ABA — cada módulo tem sua própria cara (não é o mesmo
   card genérico reaproveitado, ver index.html) */
.module-stage-viewport {
  position: relative;
}

.module-mock {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.02);
  animation: mockFadeIn 0.25s ease;
}

.module-mock[hidden] {
  display: none;
}

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

.mock-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.mock-title-sm {
  font-size: 1rem;
  color: var(--text-main);
}

/* Banco de Ideias — grid de cards */
.idea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.idea-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.idea-card strong {
  font-size: 0.85rem;
  color: var(--text-main);
}

.idea-card p {
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.idea-tag {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6d28d9;
  background: #ede9fe;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.idea-card.is-selected {
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}

.idea-card-ghost {
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--text-dim);
}

.idea-card-ghost .idea-tag {
  background: transparent;
  color: var(--text-dim);
}

/* Esteira — kanban de verdade */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 2px 8px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 8px;
}

.kanban-col-head em {
  font-style: normal;
  background: #e2e8f0;
  color: var(--text-dim);
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.kanban-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.74rem;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kanban-card.is-focus {
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.kanban-card.is-done {
  color: #10b981;
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.kanban-chip {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  background: #ede9fe;
  color: #6d28d9;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* Prompt Board — lista */
.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prompt-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.prompt-row strong {
  font-size: 0.85rem;
  color: var(--text-main);
}

.prompt-row p {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 2px;
  font-style: italic;
}

.prompt-tag {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  color: var(--text-dim);
  white-space: nowrap;
}

.prompt-tag-ok { background: #d1fae5; color: #047857; }
.prompt-tag-live { background: #ede9fe; color: #6d28d9; }

/* Calendário — grade semanal de verdade */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  min-height: 76px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-day-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
}

.cal-post {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 5px;
  border-radius: 4px;
  line-height: 1.25;
}

.cal-post-yt { background: #fee2e2; color: #b91c1c; }
.cal-post-tt { background: #e0e7ff; color: #3730a3; }
.cal-post-rl { background: #fce7f3; color: #a21caf; }

.cal-legend {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Voz & Transcrição — player + transcrição */
.voice-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.voice-play {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-violet);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.voice-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
}

.voice-wave i {
  flex: 1;
  height: var(--h, 40%);
  background: var(--brand-violet);
  opacity: 0.55;
  border-radius: 2px;
}

.voice-time {
  flex-shrink: 0;
  font-size: 0.74rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.voice-transcript {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.voice-line {
  font-size: 0.8rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-line em {
  font-style: normal;
  margin-left: auto;
  font-size: 0.68rem;
  color: #10b981;
}

.voice-line.is-pending em {
  color: var(--text-dim);
}

.voice-ts {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .idea-grid { grid-template-columns: 1fr; }
  .kanban-board { grid-template-columns: repeat(2, 1fr); }
  .cal-grid { grid-template-columns: repeat(4, 1fr); }
  .cal-day:nth-child(n+5) { display: none; }
}

/* 5. SEÇÃO DE RECURSOS PREMIUM (Flow / Veo) */
.premium-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
  margin-top: 32px;
}

.premium-feature-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.premium-feature-badge {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.12) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--brand-violet-dark);
  border-radius: var(--radius-full);
}

.premium-batch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.premium-batch-card {
  background: var(--bg-surface-subtle);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.premium-batch-card small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-violet);
}

.premium-batch-card strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.premium-batch-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.premium-tagline-strip {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--bg-surface-subtle);
  border-left: 3px solid var(--brand-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 6. DEMONSTRAÇÃO DO PRODUTO (Dark Cinematic Mode) */
.section.on-dark {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

.section.on-dark h2, .section.on-dark h3 {
  color: #ffffff;
}

.section.on-dark p {
  color: var(--dark-text-muted);
}

.demo-simulator-box {
  margin-top: 36px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.demo-stepper-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.demo-step-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.demo-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.demo-pill.is-active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.demo-nav-btns {
  display: flex;
  gap: 8px;
}

.demo-arrow-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.demo-arrow-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.demo-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.demo-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
}

.demo-info-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-step-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-cyan-light);
}

.demo-info-col h3 {
  font-size: 1.45rem;
}

.demo-live-preview-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.preview-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.preview-card-header small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-cyan-light);
  display: block;
}

.preview-card-header strong {
  font-size: 1.05rem;
  color: #ffffff;
}

.preview-status-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  color: #94a3b8;
  margin-bottom: 16px;
}

.preview-action-box {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.preview-action-box small {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-cyan-light);
  display: block;
  letter-spacing: 0.05em;
}

.preview-action-box strong {
  font-size: 0.92rem;
  color: #ffffff;
}

/* 7. MULTIPLATAFORMA */
.multiplatform-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}

.mp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.mp-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-surface-subtle);
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
}

.mp-versions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mp-version-card {
  background: var(--bg-surface-subtle);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-platform-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.mp-version-card time {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.mp-status-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #dcfce7;
  color: #15803d;
}

.mp-version-card.is-draft .mp-status-tag {
  background: #f1f5f9;
  color: #475569;
}

/* 8. CONTEXTO DE CRIAÇÃO */
.proof-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.image-frame {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.founder-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.founder-profile img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-violet);
}

.founder-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
}

.founder-info span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.legal-caption {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   9. SEÇÃO DE PLANOS & SELETOR DE COBRANÇA
   ========================================================================== */

/* Oferta de lançamento — 20% off na 1ª mensalidade (pedido do Victor,
   03/09/2026). O preço em plans-data.js JÁ é o valor real/normal; isto é um
   desconto de verdade sobre ele, não um "de/por" com preço inventado. */
.launch-offer-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 620px;
  margin: 0 auto 28px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
}

.launch-offer-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.launch-offer-card strong {
  display: block;
  font-size: 0.95rem;
  color: #92400e;
  margin-bottom: 3px;
}

.launch-offer-card p {
  font-size: 0.82rem;
  color: #a16207;
  line-height: 1.5;
}

.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}

.billing-toggle {
  display: inline-flex;
  position: relative;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px;
  border-radius: var(--radius-full);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04);
}

.billing-slider-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  background: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.08);
  pointer-events: none;
  z-index: 1;
  transition: transform var(--transition-spring), width var(--transition-spring);
}

.billing-toggle button {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
}

.billing-toggle button:hover {
  color: var(--text-main);
}

.billing-toggle button.active {
  color: var(--text-main);
  font-weight: 700;
}

.save-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: #dcfce7;
  color: #166534;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

/* Grid dos Cards de Planos */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tier-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tier-card.is-featured {
  border-color: var(--brand-violet);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.tier-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-violet);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.tier-name {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.tier-price-box {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
}

.tier-price {
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-val {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ANIMAÇÃO DOS NÚMEROS SUBINDO PRA CIMA */
.amount {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  display: inline-block;
  vertical-align: baseline;
  overflow: hidden;
  position: relative;
}

.ticker-digit-val {
  display: inline-block;
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.34s ease;
  will-change: transform, opacity;
}

/* O número antigo sai subindo pra cima */
.ticker-slide-out-up {
  transform: translateY(-120%) !important;
  opacity: 0 !important;
}

/* O número novo entra vindo de baixo pra cima */
.ticker-slide-in-up {
  transform: translateY(120%) !important;
  opacity: 0 !important;
}

.period {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.cycle-legend {
  display: block;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.3;
}

.tier-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 2.8em;
}

.tier-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.tier-benefits li {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tier-footer {
  margin-top: auto;
}

/* Card de Desconto do Primeiro Mês */
.first-month-discount-card {
  background: #ffffff;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.discount-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-violet);
  display: block;
  margin-bottom: 4px;
}

.first-month-discount-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.first-month-discount-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.discount-status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-dim);
  white-space: nowrap;
}

/* 10. FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color var(--transition-fast);
}

.faq-list details[open] {
  border-color: var(--brand-violet);
}

.faq-list summary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

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

.faq-list summary span {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--brand-violet);
  transition: transform var(--transition-fast);
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* 11. CTA FINAL */
.final-cta-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 70px) 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.final-cta-card h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.final-cta-card p {
  color: var(--dark-text-muted);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 32px;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding-block: 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

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

/* Sticky Mobile CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-glass-strong);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  padding: 12px 20px;
  z-index: 99;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
  display: none;
}

.mobile-sticky-cta.in {
  transform: translateY(0);
}

/* Animações de Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsividade */
@media (max-width: 1023px) {
  .webgl-canvas {
    display: none !important;
  }

  .nav-links {
    display: none;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: var(--shadow-md);
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Páginas secundárias não usam botão hamburger: mantém a navegação acessível
     em telas estreitas, sem links presos em display:none. */
  html[data-page]:not([data-page="home"]) .nav {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  html[data-page]:not([data-page="home"]) .nav-links {
    display: flex;
    order: 3;
    flex: 0 0 100%;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
  }

  html[data-page]:not([data-page="home"]) .nav-links a {
    font-size: 0.82rem;
  }

  html[data-page]:not([data-page="home"]) .mobile-menu-btn {
    display: none;
  }

  .problem-layout,
  .module-explorer-body,
  .demo-content-grid,
  .proof-layout,
  .faq-grid,
  .first-month-discount-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .arch-flow-grid,
  .premium-batch-grid,
  .mp-versions-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-cta {
    display: block;
  }
}

/* Home: no mobile overlap between header, navigation and hero badge. */
@media (max-width: 767px) {
  .nav-wrap { padding: 10px 0; }
  .nav { flex-wrap: wrap; gap: 10px; padding-inline: 16px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand strong { font-size: 1.05rem; }
  .nav-actions { order: 3; flex: 1 0 100%; justify-content: flex-end; gap: 8px; }
  .nav-actions .login-link { font-size: .84rem; }
  .nav-actions .btn { padding: 10px 14px; font-size: .84rem; }
  .mobile-menu-btn { display: none; }
  .nav-links, .nav-links.is-open { display: none; }
  .hero { padding-top: 156px; }
  .hero-layout { gap: 24px; }
  .hero-pill { max-width: calc(100% - 24px); text-align: center; white-space: normal; }
  .floating-chips-field { display: none !important; }
}

@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  *, *::before, *::after { box-sizing: border-box; }
  .shell { width: 100%; max-width: 100%; padding-left: 16px; padding-right: 16px; }
  .nav { padding-inline: 16px; }
  .hero h1 { font-size: clamp(2.2rem, 12vw, 4rem); overflow-wrap: anywhere; }
  .hero p, .section-head p { max-width: 100%; }
  .btn { min-height: 44px; white-space: normal; }
  .plans-grid, .modules-grid, .feature-grid { grid-template-columns: 1fr !important; }
  .tier-card, .module-card, .feature-card { min-width: 0; }
  .mobile-sticky-cta { left: 12px; right: 12px; width: auto; }
  .app-window-body {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .pipeline-cards-row {
    grid-template-columns: 1fr;
  }

  .floating-chips-field {
    display: none;
  }
}

/* Redução de Movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .ticker-digit-val,
  .billing-slider-indicator,
  .tier-price {
    transition: none !important;
  }
}
