/* ============================================================
   mobile.css — overrides mobile ONLY.
   Carregado depois de components.css.
   Nada aqui afeta desktop (>900px).
   ============================================================ */

/* ---------- Mobile menu button (oculto no desktop) ---------- */
.mobile-menu-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.mmb-bar {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 240ms var(--ease, cubic-bezier(.22,.61,.36,1)), opacity 180ms linear, top 240ms var(--ease, cubic-bezier(.22,.61,.36,1));
}
.mmb-bar-1 { top: 13px; }
.mmb-bar-2 { top: 19px; }
.mmb-bar-3 { top: 25px; }
.mmb-bar-1.is-open { top: 19px; transform: rotate(45deg); }
.mmb-bar-2.is-open { opacity: 0; }
.mmb-bar-3.is-open { top: 19px; transform: rotate(-45deg); }

/* ---------- Mobile drawer (oculto no desktop) ---------- */
.mobile-drawer {
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  z-index: 90;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(.22,.61,.36,1), opacity 200ms linear;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-drawer-nav a {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-drawer-nav a:last-child {
  border-bottom: none;
}
.mobile-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  padding-bottom: 8px;
}
.mobile-drawer-cta .link {
  text-align: center;
  padding: 12px;
  color: var(--fg-2);
  font-size: 15px;
}
.mobile-drawer-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 20px;
  font-size: 15px;
}

@media (min-width: 901px) {
  .mobile-drawer { display: none !important; }
  .mobile-menu-btn { display: none !important; }
}

@media (max-width: 900px) {

  /* ---------- VÍDEO: borda do card mais sutil no mobile ---------- */
  .video-card { padding: 6px !important; border-radius: 18px !important; }
  .video-frame { border-radius: 13px !important; }

  /* ---------- HERO LOOP: no mobile vira um celular (retrato), sem card/borda
       — a moldura do telefone é desenhada dentro da animação ---------- */
  .hero-loop {
    width: min(330px, 82vw) !important;
    aspect-ratio: 384 / 560 !important;
    margin: 40px auto 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .hero-loop::after { display: none !important; }

  /* ---------- OVERFLOW GUARD: seções com elementos absolute grandes ---------- */
  html { overflow-x: hidden !important; }
  .hero,
  .final,
  .trustbar-standalone,
  .whatis-engines {
    overflow: hidden !important;
  }

  /* ---------- HERO: headline menor, botões full-width ---------- */
  /* o JSX tem fontSize: 81px inline; !important derrota */
  .hero-headline {
    font-size: clamp(34px, 9vw, 52px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
  }
  .hero-headline br {
    display: none !important;
  }
  .hero-sub {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
  .hero-cta {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-top: 32px !important;
    width: 100% !important;
  }
  .hero-cta .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    white-space: nowrap !important;
  }
  .hero-meta {
    flex-wrap: wrap !important;
    gap: 10px !important;
    font-size: 11px !important;
  }
  .hero-meta .sep {
    display: none !important;
  }
  .hero-chip {
    font-size: 12px !important;
  }
  /* ---------- HEADER: drawer mobile ---------- */
  .site-header .nav,
  .site-header .header-cta .link,
  .site-header .header-cta .btn {
    display: none !important;
  }
  .site-header .mobile-menu-btn {
    display: inline-flex !important;
  }
  /* quando o drawer está aberto, travar o scroll do body */
  body.menu-open {
    overflow: hidden !important;
  }

  /* ---------- USECASES: valores não cabem em 3 colunas ---------- */
  .uc-math {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 4px 0 !important;
  }
  .uc-math-cell {
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    gap: 12px !important;
  }
  .uc-math-sep {
    height: 1px !important;
    width: 100% !important;
  }
  .uc-math-val,
  .uc-math-val-total {
    font-size: 15px !important;
    white-space: nowrap !important;
  }
  .uc-card-body {
    padding: 24px !important;
  }

  /* ---------- FAQ: desgruda o lado esquerdo ---------- */
  #faq .faq-side {
    position: static !important;
    top: auto !important;
  }

  /* ---------- ESCALA: desliga o scrolljack ---------- */
  .escala-scroller {
    height: auto !important;
  }
  .escala-sticky {
    position: static !important;
    height: auto !important;
    display: block !important;
    padding: 72px 0 !important;
    overflow: visible !important;
  }
  .escala-grid {
    display: block !important;
  }
  /* esconde o visual animado (inútil sem o scroll) */
  .escala-visual {
    display: none !important;
  }
  /* esconde a barra de progresso (não faz sentido sem scrolljack) */
  .escala-progress {
    display: none !important;
  }
  /* mostra TODOS os steps empilhados em vez de um por vez */
  .escala-text {
    display: block !important;
  }
  .escala-steps {
    position: static !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 28px !important;
  }
  /* card arredondado, igual aos do Process (Como funciona) */
  .escala-step {
    position: static !important;
    inset: auto !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    padding: 24px 22px 30px !important;
    border-top: none !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    border-radius: 20px !important;
  }
  .escala-steps { gap: 16px !important; }
  /* no mobile, troca o glyph pelo mini-visual rico */
  .escala-step-glyph { display: none !important; }
  .escala-word {
    font-size: clamp(34px, 9vw, 52px) !important;
    margin-bottom: 12px !important;
  }
  .escala-body {
    font-size: 16px !important;
    max-width: none !important;
  }
  .escala-step-kicker {
    margin-bottom: 12px !important;
  }
  .escala-step-kicker span:first-child {
    color: var(--accent) !important;
    font-size: 15px !important;
  }

  /* ---------- PROCESS: desliga o scrolljack ---------- */
  /* o JSX aplica height inline (500vh); !important derrota isso */
  .process {
    height: auto !important;
  }
  .process-sticky {
    position: static !important;
    height: auto !important;
    display: block !important;
    padding: 72px 0 !important;
    overflow: visible !important;
  }
  .process-inner {
    display: block !important;
  }
  /* esconde o canvas à direita */
  .process-right {
    display: none !important;
  }
  /* esconde a barra de progresso */
  .process-progress {
    display: none !important;
  }
  /* header do process aparece normalmente */
  .process-head {
    max-width: none !important;
    margin-bottom: 32px !important;
  }
  /* empilha TODOS os passos visíveis */
  .process-steps-stage {
    position: static !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  /* cada passo vira card com glyph (timeline visual) */
  .process-step-card {
    position: static !important;
    inset: auto !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    padding: 24px 22px !important;
    border-top: none !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    border-radius: 20px !important;
  }
  /* no mobile, troca o glyph pelo mini-visual resumido */
  .step-glyph { display: none !important; }
  .step-kicker { margin-bottom: 12px !important; }
  .step-kicker span:first-child {
    color: var(--accent) !important;
    font-size: 15px !important;
  }
  .step-title-lg {
    font-size: clamp(24px, 6vw, 34px) !important;
  }
  .step-body-lg {
    font-size: 16px !important;
    max-width: none !important;
  }

  /* ---------- PROCESS: visual rico sangrando no topo de cada card (estilo Cobalt) ---------- */
  /* o card tem padding 24px 22px — o visual "vaza" pra encostar nas bordas
     e no topo, virando o cabeçalho visual do card, com backdrop (glow+grid). */
  /* ====== PROCESS (Como funciona) — visual rico no header do card ====== */
  .step-visual {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: -24px -22px 26px;
    padding: 32px 22px 30px;
    min-height: 188px;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background:
      radial-gradient(120% 92% at 50% 0%, rgba(28,128,250,0.12), transparent 62%),
      linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.006));
    position: relative;
    overflow: hidden;
  }
  .step-visual::before {
    content: ''; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 27px 27px;
    -webkit-mask-image: radial-gradient(82% 72% at 50% 28%, #000 35%, transparent 78%);
            mask-image: radial-gradient(82% 72% at 50% 28%, #000 35%, transparent 78%);
    pointer-events: none;
  }
  .mv { position: relative; width: 100%; }

  .mv-prompt {
    border: 1px solid rgba(255,255,255,0.10); border-radius: 14px;
    background: rgba(10,11,15,0.6); padding: 15px 17px;
    box-shadow: 0 16px 40px -22px rgba(0,0,0,0.8);
  }
  .mv-prompt-head {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--fg-muted);
    font-family: var(--font-mono); letter-spacing: 0.04em; margin-bottom: 11px;
  }
  .mv-prompt-body { font-size: 14.5px; line-height: 1.5; color: var(--fg); min-height: 46px; }
  .mv-prompt-tags { display: flex; gap: 8px; margin-top: 13px; }
  .mv-prompt-tags span {
    font-size: 11px; padding: 5px 12px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent);
    border: 1px solid color-mix(in oklch, var(--accent) 40%, transparent);
  }

  .mv-agent { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .mv-agent-stage { position: relative; width: 116px; height: 116px; display: grid; place-items: center; }
  .mv-ring { position: absolute; border-radius: 999px; border: 1px solid rgba(28,128,250,0.30); }
  .mv-ring.r1 { width: 84px; height: 84px; }
  .mv-ring.r2 { width: 104px; height: 104px; border-color: rgba(28,128,250,0.18); }
  .mv-ring.r3 { width: 124px; height: 124px; border-color: rgba(28,128,250,0.10); }
  .mv-agent-portrait { width: 66px; height: 66px; border-radius: 18px; overflow: hidden; box-shadow: 0 0 28px rgba(28,128,250,0.45), 0 8px 20px -6px rgba(0,0,0,0.6); }
  .mv-agent-portrait img { width: 100%; height: 100%; object-fit: cover; }
  .mv-agent-pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 500; color: var(--fg);
    padding: 7px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  }
  .mv-dot { width: 7px; height: 7px; border-radius: 999px; background: #34D399; display: inline-block; }

  .mv-members {
    border: 1px solid rgba(255,255,255,0.10); border-radius: 13px; overflow: hidden;
    background: rgba(10,11,15,0.55); box-shadow: 0 16px 40px -22px rgba(0,0,0,0.8);
  }
  .mv-mem-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 13px; border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.025);
  }
  .mv-mem-bar > span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.16); }
  .mv-mem-bar em { font-style: normal; font-size: 11px; color: var(--fg-muted); margin-left: 8px; font-family: var(--font-mono); }
  .mv-mem-body { display: flex; height: 108px; }
  .mv-mem-side { width: 58px; border-right: 1px solid rgba(255,255,255,0.07); padding: 14px 11px; display: flex; flex-direction: column; gap: 9px; }
  .mv-mem-side i { height: 8px; border-radius: 3px; background: rgba(255,255,255,0.10); }
  .mv-mem-side i.on { background: var(--accent); }
  .mv-mem-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; }
  .mv-mem-core { width: 52px; height: 52px; border-radius: 15px; overflow: hidden; box-shadow: 0 0 0 5px var(--accent-soft); }
  .mv-mem-core img { width: 100%; height: 100%; object-fit: cover; }
  .mv-mem-lines { display: flex; gap: 7px; }
  .mv-mem-lines span { width: 46px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.10); }

  .mv-connect { display: flex; align-items: stretch; gap: 9px; }
  .mv-conn-logo {
    flex: 1; height: 60px; border-radius: 14px;
    background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center;
  }
  .mv-conn-logo img { max-width: 66%; max-height: 30px; object-fit: contain; }

  .mv-control { display: flex; flex-direction: column; gap: 14px; }
  .mv-ctrl-row { display: flex; align-items: center; gap: 13px; }
  .mv-ctrl-row > span {
    font-size: 11px; color: var(--fg-2); width: 72px; flex: 0 0 72px;
    text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-mono);
  }
  .mv-ctrl-bar { flex: 1; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
  .mv-ctrl-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; box-shadow: 0 0 12px rgba(28,128,250,0.5); }

  /* ====== ESCALA — elementos direto no fundo (sem caixa cinza), ======
     dissolvendo no preto. Listas/dados limpos, monocromáticos. */
  .escala-visual-m {
    display: block !important;
    margin: -24px -22px 16px;
    padding: 26px 8px 4px;
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 100%);
  }
  .evm { position: relative; width: 100%; }
  .evm-svg { width: 100%; display: block; }

  /* 01 escala — lista de clientes (inbox), só separadores, no preto */
  .evm-scale { display: flex; flex-direction: column; }
  .evm-client { display: flex; align-items: center; gap: 13px; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .evm-client:first-child { color: var(--fg); }
  .evm-client-av { width: 32px; height: 32px; border-radius: 10px; flex: 0 0 32px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }
  .evm-client-nm { flex: 1; font-size: 15px; font-weight: 500; color: var(--fg); }
  .evm-client-on { width: 7px; height: 7px; border-radius: 999px; background: #34D399; }
  .evm-client-more { font-size: 12.5px; color: var(--fg-muted); padding: 12px 4px 0; }

  /* 02 recorrência — meses (linha de pagamentos), no preto */
  .evm-recorr { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding: 4px 2px; }
  .evm-mon { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
  .evm-mon-amt { font-size: 9.5px; color: var(--fg-2); }
  .evm-mon-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
  .evm-mon-lbl { font-size: 10px; color: var(--fg-muted); letter-spacing: 0.04em; }

  /* 03 previsibilidade — gráfico subindo, no preto */
  .evm-prev { padding-top: 6px; }
  .evm-prev .evm-svg { height: 120px; }
  .evm-prev-val { position: absolute; top: 0; left: 4px; font-size: 11px; color: var(--fg-2); }
  .evm-prev-val b { color: var(--fg); font-size: 15px; font-weight: 600; }

  /* 04 lucro — margem, no preto */
  .evm-lucro { display: flex; flex-direction: column; gap: 12px; }
  .evm-bars { display: flex; gap: 6px; height: 40px; }
  .evm-bar { border-radius: 10px; display: flex; align-items: center; padding: 0 14px; }
  .evm-bar-you { background: var(--accent); color: var(--accent-fg); }
  .evm-bar-you span { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
  .evm-bar-rest { background: rgba(255,255,255,0.08); }
  .evm-lucro-tag { font-size: 11px; color: var(--fg-2); letter-spacing: 0.04em; }
}
