/* ===================================================================
   base.css . o CSS da landing, compartilhado entre as paginas estaticas.

   Ate 16/09/2026 este bloco vivia inline dentro de public/index.html.
   Saiu de la quando a pagina /sobre/ nasceu: header, rodape, botoes e
   tokens sao os mesmos nas duas, e mante-los em duplicata garantiria que
   uma hora as duas versoes divergiriam (o link novo no menu ja obrigaria
   a editar os dois arquivos no mesmo commit).

   O arquivo saiu de index.html INTEIRO, sem fatiar: as regras especificas
   da home (.hero, .fluxo, .flow-embed...) continuam aqui e simplesmente
   nao casam com nada em /sobre/. Separar "compartilhado" de "da home" era
   possivel, mas exigia julgar 740 linhas uma a uma para economizar alguns
   KB gzipados . nao vale o risco de mexer no que esta no ar.

   Quem usa: /index.html e /sobre/index.html.
   Regras exclusivas de /sobre/ ficam num <style> na propria pagina.
   =================================================================== */

  /* ===============================================================
     TOKENS — extraídos das variáveis do Figma (node 2130:20 / V1).
     A paleta neutra deste design usa #1f1f1f/#595959/#f7f5f0
     (difere do index.html antigo, que usa navy nos títulos).
     =============================================================== */
  :root {
    --lima: #e9ff81;
    --lima-hover: #dcf46a;
    --lima-border: #d8d4ca;   /* offwhite/600 — borda dos botões pill */
    --navy: #02152b;          /* brand/navy/500 */
    --navy-300: #556271;      /* brand/navy/300 */
    --bg: #f7f5f0;            /* surface/background */
    --surface: #ffffff;       /* surface/base */
    --offwhite-100: #f9f8f5;  /* seção "Três frentes" */
    --heading: #1f1f1f;       /* text/heading/900 */
    --body: #595959;          /* text/heading/600 · neutral/600 */
    --muted: #82807a;         /* offwhite/800 */
    --white: #ffffff;
    --radius-card: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --pill: 122px;
    --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --content: 1200px;
    --t: .2s ease;
  }

  /* ===============================================================
     BASE
     =============================================================== */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  [id] { scroll-margin-top: 96px; }
  body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--heading); line-height: 1.2; font-weight: 400; }
  p { margin: 0; }
  ul { margin: 0; padding: 0; list-style: none; }
  a { color: inherit; text-decoration: none; }
  img, svg { display: block; max-width: 100%; }
  button { font-family: inherit; }

  .inner { max-width: var(--content); margin: 0 auto; padding: 0 24px; width: 100%; }

  /* ---------- Botões pill ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 32px; font-family: var(--font-display); font-size: 14px; font-weight: 500;
    border-radius: var(--pill); border: 1px solid var(--lima-border); background: transparent;
    color: var(--heading); cursor: pointer; white-space: nowrap;
    transition: background var(--t), border-color var(--t), transform .08s ease, color var(--t);
  }
  .btn:active { transform: translateY(1px); }
  .btn--primary { background: var(--lima); }
  .btn--primary:hover { background: var(--lima-hover); }
  .btn--ghost { background: var(--bg); } /* #f7f5f0 */
  .btn--ghost:hover { border-color: var(--heading); }
  .btn--sm { padding: 10px 24px; }
  .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(2,21,43,.22); }

  /* ===============================================================
     0. BARRA DE AVISO (navy)
     =============================================================== */
  .announce { background: var(--navy); color: var(--white); position: relative; z-index: 40; }
  .announce__inner {
    max-width: var(--content); margin: 0 auto; padding: 14px 44px;
    display: flex; justify-content: center; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 500; text-align: center;
  }
  .announce a { color: var(--lima); font-weight: 700; text-decoration: underline; }
  .announce__close {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--white); opacity: .6; cursor: pointer;
    font-size: 18px; line-height: 1; padding: 4px;
  }
  .announce__close:hover { opacity: 1; }
  .announce.is-hidden { display: none; }

  /* ===============================================================
     1. HEADER
     =============================================================== */
  .appbar { position: sticky; top: 0; z-index: 30; background: var(--bg); }
  .appbar__inner {
    max-width: var(--content); margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
  }
  .brand { display: inline-flex; align-items: center; }
  .brand img { height: 24px; width: auto; }
  .nav { display: flex; align-items: center; gap: 32px; }
  /* Desktop: o wrapper some (display:contents) e a ordem vira links → CTA → idioma */
  .nav__panel { display: contents; }
  .nav__links { display: flex; align-items: center; gap: 24px; order: 1; }
  .nav__links a {
    font-family: var(--font-display); font-size: 14px; color: var(--heading);
    padding-bottom: 2px; border-bottom: 1.5px solid transparent; transition: border-color var(--t);
  }
  .nav__links a:hover { border-color: var(--heading); }
  .nav__cta { order: 2; }
  .lang { order: 3; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--heading); cursor: pointer; background: none; border: none; padding: 0; }
  .lang { text-decoration: none; }
  .lang img { width: 18px; height: 18px; }
  .lang .chev { width: 14px; height: 14px; }
  /* Botão hambúrguer (só aparece no mobile) */
  .nav__toggle { order: 4; display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 9px; background: none; border: none; cursor: pointer; }
  .nav__toggle span { display: block; width: 100%; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .appbar.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .appbar.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .appbar.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ===============================================================
     2. HERO
     =============================================================== */
  .hero { position: relative; overflow: hidden; padding: 120px 0 0; }
  .hero__inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 0 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.06; letter-spacing: -.02em; color: #171717; }
  .hero__sub { max-width: 680px; font-size: 18px; line-height: 1.5; color: var(--body); }
  .hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
  /* Ilustração animada, 40px abaixo dos botões */
  .hero__illo { margin-top: 40px; padding: 0 24px; }
  /* Altura só como fallback pré-JS: o iframe se ajusta sozinho ao conteúdo
     (postMessage 'glow-height'). 536px = os 700px da cena menos as faixas
     vazias que o embed apara — ver a conta em hero-src/app/embed/page.tsx. */
  .hero__illo-frame { display: block; width: 100%; max-width: 960px; margin: 0 auto; border: 0; height: 536px; background: transparent; color-scheme: light; }
  @media (max-width: 760px) { .hero__illo-frame { height: 460px; } }

  /* ===============================================================
     3. PARCEIROS (faixas de logos)
     =============================================================== */
  .partners { background: var(--bg); padding: 20px 20px 80px; text-align: center; }
  .partners__label { font-size: 14px; color: var(--body); margin-bottom: 24px; }
  .partners__row { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; opacity: .7; padding: 8px 0; }
  .partners__row img { height: 40px; width: auto; object-fit: contain; }
  .partners--tall .partners__row img { height: 28px; }
  /* +16px de respiro no topo e base desta seção (40 → 56) */
  .partners--tall { padding-top: 56px; padding-bottom: 56px; }

  /* Marquee "Nossos parceiros" — rolagem infinita, fade nas bordas, pausa no hover.
     Sem JS / movimento reduzido: vira um logo cloud estático e centralizado. */
  .marquee { position: relative; width: 100%; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
  .marquee__track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 24px 56px; width: 100%; opacity: .7; }
  .marquee__item { height: 40px; width: auto; object-fit: contain; flex: 0 0 auto; }
  .marquee.is-live .marquee__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0;
    animation: marquee-scroll 36s linear infinite; }
  .marquee.is-live .marquee__item { padding-inline: 48px; }
  .marquee.is-live:hover .marquee__track { animation-play-state: paused; }
  @keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .marquee { -webkit-mask-image: none; mask-image: none; } }

  /* ===============================================================
     4. TRÊS FRENTES (texto | imagem | passos)
     =============================================================== */
  .frentes { background: var(--offwhite-100); padding: 80px 0; }
  .frentes__grid { display: grid; grid-template-columns: 1fr 1.05fr 0.92fr; gap: 40px; align-items: stretch; }
  .frentes__text { display: flex; flex-direction: column; gap: 16px; }
  .frentes__text h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -.02em; }
  .frentes__text p { font-size: 16px; color: var(--body); max-width: 380px; }
  /* Frame agora é um box de conteúdo (sem imagem): fundo lima, 600px no desktop */
  .frentes__box { background: var(--lima); border-radius: var(--radius-lg); height: 600px; overflow: hidden; padding: 20px; }

  /* --- Ilustração de produto: a conversa corretor ↔ lugui dentro do box lima --- */
  .chat {
    --chat-ink: #808c47;          /* texto dos balões da lugui */
    --chat-client-ink: #64625d;   /* texto dos balões do corretor */
    --chat-client-line: #f5f5f5;  /* stroke 1px do balão do corretor */
    height: 100%; display: flex; flex-direction: column;
    background: var(--white); border-radius: var(--radius-card); padding: 20px 18px;
  }
  .chat__viewport { position: relative; flex: 1; overflow: hidden; }
  /* fade no topo: mensagem antiga sai sem corte seco */
  .chat__viewport::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 28px; z-index: 2; pointer-events: none;
    background: linear-gradient(to bottom, var(--white), rgba(255, 255, 255, 0));
  }
  .chat__stack {
    position: relative; display: flex; flex-direction: column; gap: 9px;
    padding-top: 28px;            /* mesma altura do fade, pro 1º balão não nascer lavado */
  }
  /* A conversa é dividida em três atos (análise, coleta, contrato). Sem JS eles
     ficam empilhados; com animação, cada um ocupa o mesmo espaço e entra na sua vez. */
  .chat__act { display: flex; flex-direction: column; gap: 9px; }
  .chat__msg { display: flex; flex-direction: column; }
  .chat__msg--lugui { align-items: flex-start; }
  .chat__msg--client { align-items: flex-end; }
  .chat__msg.is-stick { margin-top: -5px; }   /* colada na anterior do mesmo lado */
  .chat__sender { margin: 0 0 6px 12px; font-size: 12px; font-weight: 500; color: var(--chat-ink); opacity: .62; }
  .chat__bubble {
    margin: 0; max-width: min(88%, 420px); padding: 11px 15px;
    font-size: 14px; line-height: 1.4; letter-spacing: -.005em;
    border-radius: 18px; will-change: transform, opacity;
  }
  .chat__msg--lugui .chat__bubble { background: var(--lima); color: var(--chat-ink); font-weight: 500; border-bottom-left-radius: 6px; }
  .chat__msg--lugui.is-stick .chat__bubble { border-top-left-radius: 6px; }
  .chat__msg--client .chat__bubble { background: var(--white); color: var(--chat-client-ink); border: 1px solid var(--chat-client-line); border-bottom-right-radius: 6px; }
  .chat__msg--client.is-stick .chat__bubble { border-top-right-radius: 6px; }
  .chat__typing {
    position: absolute; top: 0; display: flex; align-items: center; gap: 4px;
    padding: 13px 15px; background: var(--lima);
    border-radius: 18px; border-bottom-left-radius: 6px;
    opacity: 0; pointer-events: none; will-change: transform, opacity;
  }
  .chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--chat-ink); opacity: .45; }
  /* separador de conversa: sinaliza que a Lugui trocou de interlocutor */
  .chat__divider {
    align-self: center; margin: 3px 0; padding: 5px 12px;
    font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--muted);
    background: var(--offwhite-100); border-radius: 100px; will-change: transform, opacity;
  }
  /* balão de documento: a análise entregue em PDF */
  .chat__bubble--doc { display: flex; align-items: center; gap: 10px; }
  .chat__doc-ic {
    flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .55); border-radius: 9px;
  }
  .chat__doc-ic svg { width: 15px; height: 15px; fill: currentColor; }
  .chat__doc-n { display: block; }
  .chat__doc-s { display: block; font-size: 12px; font-weight: 400; opacity: .7; }
  /* card de cotação de garantias */
  .chat__bubble--opts { max-width: min(94%, 420px); }
  .chat__opts-t { display: block; font-size: 12px; font-weight: 400; opacity: .72; margin-bottom: 7px; }
  /* a coluna é estreita: rótulo em cima, condição embaixo */
  .chat__opt { display: block; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .5); }
  .chat__opt b { display: block; font-weight: 500; }
  .chat__opt span { display: block; font-size: 12px; font-weight: 400; opacity: .74; }
  .steps { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
  .step { display: flex; flex-direction: column; gap: 7px; padding: 0 0 20px; border-bottom: 1px solid var(--lima-border); }
  .step:last-child { border-bottom: none; padding-bottom: 0; }
  .step__num { font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #000; }
  .step__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #000; }
  .step__desc { font-size: 15px; color: var(--body); }

  /* ===============================================================
     5. BOAS ESCOLHAS (cards com imagem)
     =============================================================== */
  .features { background: var(--surface); padding: 80px 0; }
  .features__head { text-align: center; max-width: 860px; margin: 0 auto 64px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
  .features__head h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -.02em; }
  .features__head p { font-size: 16px; color: var(--muted); }
  .break-mobile { display: none; }
  .features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1100px; margin: 0 auto; }
  /* Cada card é um frame único: gradiente ao fundo (via .feature__bg — depois
     trocável por um gradiente em movimento) e o texto por cima, no rodapé. */
  .feature { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 400px; display: flex; align-items: flex-end; }
  .feature__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(140deg, #998454, #dfd9c6 45%, #c6f05c); }
  .feature__bg canvas { position: absolute; inset: 0; }
  /* Véu suave no rodapé: garante legibilidade do texto sobre qualquer gradiente */
  .feature::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
    background: linear-gradient(to top, #f9f8f5 6%, rgba(249, 248, 245, .82) 34%, rgba(249, 248, 245, 0)); z-index: 1; pointer-events: none; }
  .feature__body { position: relative; z-index: 2; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
  .feature__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--heading); }
  .feature__body p { font-size: 16px; color: var(--body); }

  /* ===============================================================
     6. ESTATÍSTICAS (navy)
     =============================================================== */
  .stats { background: var(--navy); padding: 80px 0; text-align: center; }
  .stats h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -.02em; color: var(--white); margin-bottom: 40px; }
  /* 2x2 com quatro numeros. Quatro em uma linha so dariam ~258px de card no
     container de 1200px, e "700 mil" quebraria no tamanho da fonte. Em duas
     colunas o card fica nos mesmos 340px de quando eram tres. Abaixo de 960px
     a grade colapsa para uma coluna (ver media query). */
  .stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 40px; justify-content: center; }
  .stat { background: var(--lima); border-radius: var(--radius-lg); padding: 40px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
  .stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5vw, 64px); color: var(--heading); line-height: 1; }
  .stat__desc { font-size: 18px; color: var(--heading); }

  /* ===============================================================
     7. CTA FINAL (card branco sobreposto ao rodapé)
     =============================================================== */
  .cta { background: var(--bg); padding: 0 24px; }
  .cta__card {
    max-width: 1236px; margin: 0 auto -60px; position: relative; z-index: 2;
    background: var(--surface); border-radius: var(--radius-xl);
    padding: 96px 40px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 40px;
  }
  .cta__text { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .cta__card h2 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; color: var(--navy); max-width: 900px; }
  .cta__card h2 em { font-style: italic; font-weight: 600; }
  .cta__card p { font-size: 20px; line-height: 1.6; color: var(--navy-300); max-width: 790px; }

  /* ===============================================================
     8. RODAPÉ (lima, cantos superiores arredondados)
     =============================================================== */
  .footer { background: var(--lima); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 120px 24px 50px; }
  .footer__inner { max-width: 1120px; margin: 0 auto; }
  .footer__cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
  .footer__brand svg { height: 30px; width: auto; color: var(--navy); margin-bottom: 24px; }
  .footer__desc { font-size: 16px; color: var(--heading); max-width: 340px; }
  .footer__desc p + p { margin-top: 16px; }
  .footer__social { display: inline-flex; gap: 12px; margin-top: 24px; }
  .footer__social img { width: 30px; height: 30px; }
  .footer__contact h4 { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--heading); margin-bottom: 16px; }
  /* Coluna "Navegar" . nasceu em 16/09/2026 junto com a pagina /sobre/.
     Ate entao o rodape tinha marca e contato e nenhum caminho de volta para o
     conteudo, o que bastava num site de uma pagina so. Com a segunda pagina,
     o rodape passou a ser o unico lugar onde alguem que rolou tudo consegue ir
     para outro lugar sem voltar ao topo. Vive aqui, e nao no <style> de uma das
     paginas, porque as duas usam. */
  .footer__nav h4 { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--heading); margin-bottom: 16px; }
  .footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
  .footer__nav a { font-size: 16px; color: var(--heading); }
  .footer__nav a:hover { text-decoration: underline; }
  .footer__contact p { font-size: 16px; color: var(--heading); }
  .footer__divider { border: none; border-top: 1px solid rgba(2,21,43,.18); margin: 48px 0 24px; }
  .footer__legal { display: flex; gap: 40px; font-size: 14px; color: var(--heading); flex-wrap: wrap; }
  .footer__legal a { text-decoration: underline; }

  /* ===============================================================
     ANIMAÇÃO (GSAP)
     Estado inicial só é aplicado quando o JS liga `.gsap-anim` no <html>
     (e nunca sob prefers-reduced-motion) — sem JS o site fica 100% visível.
     =============================================================== */
  .gsap-anim [data-reveal] { opacity: 0; will-change: transform, opacity; }
  .gsap-anim .hero h1,
  .gsap-anim .hero__sub,
  .gsap-anim .hero__actions { opacity: 0; }
  /* Sem JS ou com movimento reduzido, a conversa aparece inteira e parada */
  .gsap-anim .chat__bubble,
  .gsap-anim .chat__divider,
  .gsap-anim .chat__sender { opacity: 0; }
  /* com animação, os três atos se sobrepõem: só um roda por vez */
  .gsap-anim .chat__stack { display: block; height: 100%; padding-top: 0; }
  .gsap-anim .chat__act {
    position: absolute; inset: 0 0 auto 0;
    padding-top: 28px; will-change: transform, opacity;
  }
  /* Header ganha hairline + leve sombra ao rolar */
  .appbar { transition: box-shadow var(--t), background var(--t); }
  .appbar.is-scrolled {
    background: rgba(247, 245, 240, .85);
    -webkit-backdrop-filter: saturate(1.2) blur(8px);
    backdrop-filter: saturate(1.2) blur(8px);
    box-shadow: 0 1px 0 rgba(2, 21, 43, .07);
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }

  /* ===============================================================
     RESPONSIVO
     =============================================================== */
  @media (max-width: 960px) {
    /* Menu mobile: hambúrguer + painel dropdown, CTA continua na barra */
    .nav { gap: 12px; }
    .nav__toggle { display: inline-flex; }
    .nav__panel {
      display: none; position: absolute; top: calc(100% + 4px); right: 16px;
      min-width: 240px; flex-direction: column; align-items: stretch; gap: 4px;
      background: var(--surface); border: 1px solid rgba(2, 21, 43, .08);
      border-radius: 14px; padding: 10px; box-shadow: 0 12px 32px rgba(2, 21, 43, .12); z-index: 50;
    }
    .appbar.is-open .nav__panel { display: flex; }
    .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav__links a { padding: 12px 14px; border-radius: 10px; border-bottom: none; }
    .nav__links a:hover { background: var(--bg); border-color: transparent; }
    .lang { justify-content: flex-start; padding: 12px 14px; border-radius: 10px; }
    .lang:hover { background: var(--bg); }
    .nav__cta { height: 44px; padding: 0 20px; }

    .frentes__grid { grid-template-columns: 1fr; }
    .frentes__text { align-items: center; text-align: center; }
    .frentes__text p { max-width: none; }
    .frentes__box { height: 420px; padding: 16px; }
    .chat { padding: 16px 14px; }
    .features__grid { grid-template-columns: 1fr; max-width: 420px; }
    .stats__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  }
  @media (max-width: 720px) {
    .hero { padding: 72px 0 40px; }
    .cta__card { padding: 64px 24px; }
    .cta__card h2 { line-height: 1.2; }
    .cta__card p { font-size: 16px; line-height: 1.4; }
    .footer__cols { flex-direction: column; }
    .feature__body h3 { font-size: 16px; }
    .announce__inner { flex-direction: column; gap: 2px; padding: 14px 44px; }
    .break-mobile { display: block; }
  }

  /* ===============================================================
     4b. FLUXO INTERATIVO (a locação inteira, um palco só)
     Portado de "_archive/product-illustration-prototypes/lugui-prototipo-interativo_v3.html".
     Tudo prefixado com .flow-embed: os tokens do protótipo (--radius-*,
     --shadow-*) colidiriam com os da LP se ficassem no :root.
     =============================================================== */
  .fluxo { background: var(--surface); padding: 80px 0; }
  /* Mesma grade da seção "Três frentes" (1fr 1.05fr 0.92fr / gap 40): o texto
     ocupa a 1ª coluna e o palco as outras duas, então a borda esquerda do
     embed cai exatamente onde começa o box lima de cima. O palco escala
     sozinho pela largura do container (fit() no script).
     Um bloco só: as regras do bloco espelhado (.fluxo__grid--flip) saíram daqui
     quando os dois palcos viraram um. Se a gente voltar para dois, elas estão
     no historico deste arquivo (git log -p public/index.html). */
  .fluxo__grid {
    display: grid; grid-template-columns: 1fr 1.05fr 0.92fr;
    gap: 40px; align-items: center;
  }
  /* título da seção: acima de tudo, alinhado à esquerda com a coluna de texto */
  .fluxo__head { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -.02em; max-width: 720px; margin-bottom: 56px; }
  .fluxo__text { grid-column: 1; display: flex; flex-direction: column; gap: 12px; }
  /* A quebra é a do <br> no HTML ("Um pedido seu / e a gente conduz o resto").
     Sem balance nem max-width apertado: os dois seriam mais uma quebra em cima
     dessa. O nowrap garante que cada uma das duas linhas fique inteira. */
  .fluxo__text h3 {
    font-family: var(--font-display); font-weight: 700; font-size: 20px;
    letter-spacing: -.01em; white-space: nowrap;
  }
  .fluxo__text p { font-size: 16px; color: var(--body); max-width: 420px; }
  .flow-embed { grid-column: 2 / -1; }

  .flow-embed {
    /* tokens oficiais do protótipo, escopados para não vazar na LP */
    --lugui-white: #FFFFFF;
    --lugui-offwhite-50: #FBF8F0;
    --lugui-offwhite: #EDE9DE;
    --lugui-lima: #E9FF81;
    --lugui-navy: #02152B;
    --lugui-teal: #234248;
    --lugui-text: #02152B;
    --lugui-text-secondary: #234248;
    --lugui-text-tertiary: #606A73;
    --lugui-text-disabled: #9AA0A1;
    --lugui-border: #D9D6CC;
    --lugui-hairline: #E7E4DB;
    --fx-radius-sm: 6px; --fx-radius-md: 10px; --fx-radius-lg: 16px; --fx-radius-xl: 24px;
    --fx-shadow-md: 0 4px 14px rgba(2,21,43,.06);
    --fx-shadow-lg: 0 12px 32px rgba(2,21,43,.10);
    --fx-fast: .15s; --fx-base: .25s;
    --lugui-font-display: var(--font-display);
    --lugui-font-sans: var(--font-sans);
    --lugui-focus-ring: 0 0 0 3px rgba(35,66,72,.25);
    /* cores do WhatsApp — do app real, não da paleta da marca */
    --wa-header: #075E54; --wa-bg: #ECE5DD; --wa-user: #DCF8C6;
    /* geometria do palco: [card da lugui] — conector — [um telefone].
       O palco é desenhado em 872px e reduzido por scale() (~0.86 na coluna
       atual), então os respiros aqui são maiores que os finais: 50px viram
       ~43px e 70px no topo deixam ~40px acima do rótulo do telefone. */
    --stage-w: 872px; --lugui-w: 388px; --split-link: 72px; --slot-w: 256px;
    --split-gap: 28px; --stage-pad-x: 50px; --stage-pad-t: 70px; --stage-pad-b: 48px;
    /* piso da altura: telefone (553) + respiros. fit() cresce se precisar */
    --stage-h: 672px;
    /* telefone: h = w × 2.16 */
    --phone-w: 256px; --phone-h: 553px;
    font-family: var(--lugui-font-sans); color: var(--lugui-text);
  }
  .flow-embed *, .flow-embed *::before, .flow-embed *::after { margin: 0; padding: 0; box-sizing: border-box; }

  /* --- moldura do app --- */
  .flow-embed .frame {
    border: 1px solid var(--lugui-border); border-radius: var(--fx-radius-xl);
    background: var(--lugui-white); box-shadow: var(--fx-shadow-md); overflow: hidden;
  }

  /* --- barra superior: personas + play --- */
  .flow-embed .toolbar {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
    padding: 12px 14px; border-bottom: 1px solid var(--lugui-hairline); background: var(--lugui-white);
  }
  .flow-embed .segmented { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
  .flow-embed .seg {
    position: relative; display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--lugui-font-sans); font-size: 13px; font-weight: 500;
    color: var(--lugui-text-tertiary); background: transparent;
    border: 1.5px solid var(--lugui-border); padding: 7px 13px; border-radius: var(--fx-radius-md);
    cursor: pointer; white-space: nowrap;
    transition: color var(--fx-fast), background var(--fx-fast), border-color var(--fx-fast);
  }
  .flow-embed .seg:hover { color: var(--lugui-navy); border-color: var(--lugui-navy); background: var(--lugui-offwhite-50); }
  .flow-embed .seg:focus-visible { outline: none; box-shadow: var(--lugui-focus-ring); }
  .flow-embed .seg[aria-selected="true"] { background: var(--lugui-lima); border-color: var(--lugui-lima); color: var(--lugui-navy); font-weight: 600; }
  .flow-embed .toolbar .right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }
  .flow-embed .ctl {
    width: 30px; height: 30px; flex: none; border-radius: 50%;
    border: 1.5px solid var(--lugui-navy); background: transparent; color: var(--lugui-navy);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background var(--fx-fast);
  }
  .flow-embed .ctl:hover { background: var(--lugui-lima); }
  .flow-embed .ctl:focus-visible { outline: none; box-shadow: var(--lugui-focus-ring); }
  .flow-embed .ctl svg { width: 11px; height: 11px; fill: currentColor; max-width: none; }

  /* --- palco --- */
  .flow-embed .stage-outer {
    position: relative; background: var(--lugui-offwhite-50); overflow: hidden;
    background-image: radial-gradient(var(--lugui-border) 1px, transparent 1px);
    background-size: 22px 22px;
  }
  /* O palco tem largura fixa (--stage-w) e é reduzido por scale(). Com
     transform-origin no centro, quando a coluna é mais estreita que o palco o
     conteúdo escalado saía deslocado para a direita e cortava o telefone.
     Fixando a largura do scaler e escalando a partir do canto esquerdo, o
     resultado ocupa exatamente a largura disponível — e continua centralizado
     (margin auto) quando sobra espaço. */
  .flow-embed .scaler { transform-origin: top left; width: var(--stage-w); margin: 0 auto; }
  .flow-embed .stage-view { width: var(--stage-w); height: var(--stage-h); overflow: hidden; position: relative; margin: 0 auto; }
  .flow-embed .split {
    height: 100%; display: flex; align-items: center; justify-content: center;
    gap: var(--split-gap);
    padding: var(--stage-pad-t) var(--stage-pad-x) var(--stage-pad-b);
  }
  .flow-embed .col-lugui { flex: 0 0 var(--lugui-w); }
  /* Mesma linguagem da animação do hero: trilha pontilhada navy 17% e um
     pontinho lima correndo por cima — é o bloom que faz o ponto existir. */
  .flow-embed .connector { flex: 0 0 var(--split-link); height: 10px; position: relative; --conn-dash: rgba(2,21,43,.17); }
  .flow-embed .connector::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%;
    height: 1.3px; margin-top: -.65px;
    background-image: repeating-linear-gradient(to right, var(--conn-dash) 0 5px, transparent 5px 11.5px);
  }
  .flow-embed .connector::after {
    content: ""; position: absolute; top: 50%; left: 0;
    width: 4.2px; height: 4.2px; margin: -2.1px 0 0 -2.1px; border-radius: 50%;
    background: var(--lugui-lima); opacity: 0;
    filter: drop-shadow(0 0 3px rgba(233,255,129,1)) drop-shadow(0 0 9px rgba(233,255,129,.9));
  }
  .flow-embed .connector.live::after { animation: connPulso 1.5s linear infinite; }
  @keyframes connPulso {
    0% { left: 0; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { left: 100%; opacity: 0; }
  }
  .flow-embed .col-slot { flex: 0 0 var(--slot-w); height: 100%; position: relative; }
  .flow-embed .slot-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

  /* --- iPhone (h = w × 2.16) --- */
  .flow-embed .phone {
    position: relative; width: var(--phone-w); height: var(--phone-h); flex: none;
    background: var(--lugui-navy); border-radius: 40px; padding: 10px; box-shadow: var(--fx-shadow-lg);
  }
  .flow-embed .phone .btn-r { position: absolute; right: -3px; top: 120px; width: 3px; height: 76px; border-radius: 2px; background: var(--lugui-navy); filter: brightness(1.7); }
  .flow-embed .phone .btn-l1 { position: absolute; left: -3px; top: 74px; width: 3px; height: 26px; border-radius: 2px; background: var(--lugui-navy); filter: brightness(1.7); }
  .flow-embed .phone .btn-l2 { position: absolute; left: -3px; top: 112px; width: 3px; height: 52px; border-radius: 2px; background: var(--lugui-navy); filter: brightness(1.7); }
  .flow-embed .screen { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--wa-bg); display: flex; flex-direction: column; }
  .flow-embed .island { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 64px; height: 17px; border-radius: 11px; background: var(--lugui-navy); z-index: 5; }
  .flow-embed .homebar { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 78px; height: 4px; border-radius: 3px; background: rgba(2,21,43,.28); z-index: 5; }
  /* Topo do iPhone: barra de status + header do WhatsApp atual (iOS), claro e
     translúcido. Fica SOBRE o chat com backdrop-filter, então as mensagens
     passam desfocadas por baixo ao rolar — é o que dá o efeito de vidro. */
  .flow-embed .wa-top {
    position: absolute; top: 0; left: 0; right: 0; z-index: 4;
    border-radius: 31px 31px 0 0;   /* mesmo raio da .screen */
    background: rgba(252,251,249,.78);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: .5px solid rgba(2,21,43,.10);
    color: #0B0B0C;
  }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .flow-embed .wa-top { background: rgba(252,251,249,.97); }
  }
  .flow-embed .wa-status { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px 0 15px; }
  .flow-embed .wa-status .hora { font-size: 10.5px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
  .flow-embed .wa-status .esq, .flow-embed .wa-status .dir { display: flex; align-items: center; gap: 4px; }
  .flow-embed .wa-status svg { display: block; }
  .flow-embed .wa-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 11px 10px; }
  .flow-embed .wa-back {
    flex: none; display: flex; align-items: center; justify-content: center;
    width: 25px; height: 25px; padding: 0 1px 0 0; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.85);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px rgba(2,21,43,.10), inset 0 .5px 0 rgba(255,255,255,.9);
    color: #0B0B0C;
  }
  .flow-embed .wa-head .av { width: 29px; height: 29px; border-radius: 50%; overflow: hidden; flex: none; background: var(--lugui-lima); }
  .flow-embed .wa-head .av svg { display: block; width: 100%; height: 100%; }
  .flow-embed .wa-head .nm { font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
  .flow-embed .chat-body {
    flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
    padding: 81px 9px 12px; display: flex; flex-direction: column; gap: 7px; scrollbar-width: none;
  }
  .flow-embed .chat-body::-webkit-scrollbar { display: none; }
  /* empurra as primeiras mensagens para baixo, como no WhatsApp de verdade */
  .flow-embed .chat-body::before { content: ""; flex: 0 0 auto; margin-top: auto; }
  .flow-embed .chat-empty {
    flex: 0 0 auto; align-self: center; text-align: center; margin-bottom: auto;
    font-size: 11.5px; line-height: 1.45; color: var(--lugui-text-tertiary);
    background: rgba(255,255,255,.75); border-radius: 10px; padding: 9px 12px; max-width: 92%;
  }
  .flow-embed .msg {
    display: none; flex: 0 0 auto; max-width: 88%; padding: 7px 10px; border-radius: 11px;
    font-size: 12px; line-height: 1.32; overflow: hidden;
    box-shadow: 0 1px 1px rgba(2,21,43,.07); flex-direction: column;
  }
  .flow-embed .msg.bot { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
  .flow-embed .msg.me { background: var(--wa-user); align-self: flex-end; border-top-right-radius: 3px; }
  .flow-embed .msg .meta { font-size: 9px; color: var(--lugui-text-tertiary); align-self: flex-end; margin-top: 3px; }
  .flow-embed .msg.doc .row { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .flow-embed .msg.doc .row > span:last-child { min-width: 0; }
  .flow-embed .msg.doc .ic {
    width: 26px; height: 26px; flex: none; border-radius: var(--fx-radius-sm);
    background: var(--lugui-teal); color: var(--lugui-lima);
    display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 600; letter-spacing: .03em;
  }
  .flow-embed .msg.doc .fn { font-size: 10.5px; font-weight: 600; display: block; overflow-wrap: anywhere; line-height: 1.25; }
  .flow-embed .msg.doc .fs { font-size: 9px; color: var(--lugui-text-tertiary); display: block; margin-top: 1px; }
  .flow-embed .typing { display: none; flex: 0 0 auto; align-self: flex-start; background: #fff; border-radius: 11px; border-top-left-radius: 3px; padding: 9px 12px; gap: 4px; box-shadow: 0 1px 1px rgba(2,21,43,.07); }
  .flow-embed .typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--lugui-text-disabled); display: block; }
  .flow-embed .wa-input { flex: none; padding: 7px 9px 14px; display: flex; align-items: center; gap: 7px; background: var(--wa-bg); }
  .flow-embed .wa-input .box {
    flex: 1; background: #fff; border-radius: 16px; padding: 7px 11px; min-height: 30px;
    font-size: 11.5px; color: var(--lugui-text); line-height: 1.3;
    display: flex; align-items: center; box-shadow: 0 1px 1px rgba(2,21,43,.06);
  }
  .flow-embed .wa-input .box:empty::before { content: "Mensagem"; color: var(--lugui-text-disabled); }
  .flow-embed .wa-input .caret { display: inline-block; width: 1.5px; height: 13px; background: var(--lugui-teal); margin-left: 1px; }
  .flow-embed .wa-input .send { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--wa-header); display: flex; align-items: center; justify-content: center; }
  .flow-embed .wa-input .send svg { width: 15px; height: 15px; fill: #fff; max-width: none; }
  .flow-embed .phone-name {
    position: absolute; top: -22px; left: 50%; transform: translateX(-50%); line-height: 1;
    font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    color: var(--lugui-text-tertiary); white-space: nowrap;
  }

  /* --- card central da lugui --- */
  .flow-embed .lugui-card {
    width: 100%; background: var(--lugui-white);
    border: 1px solid var(--lugui-border); border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-md); overflow: hidden; transition: box-shadow var(--fx-base);
  }
  /* anel lima quando ela está executando algo — o card nunca sai de cena */
  .flow-embed .lugui-card.acting { box-shadow: 0 0 0 3px var(--lugui-lima), var(--fx-shadow-md); }
  /* conversas abertas em paralelo */
  .flow-embed .convos { margin-top: 4px; border-top: 1px solid var(--lugui-hairline); padding-top: 11px; }
  .flow-embed .convos .ct { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lugui-text-tertiary); margin-bottom: 8px; }
  .flow-embed .convo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 3px 0; }
  .flow-embed .convo .who { font-size: 13px; color: var(--lugui-text-secondary); }
  .flow-embed .convo .stt { font-size: 11.5px; color: var(--lugui-text-tertiary); text-align: right; white-space: nowrap; }
  .flow-embed .convo.done .who { color: var(--lugui-text); font-weight: 500; }
  .flow-embed .convo.done .stt { color: var(--lugui-teal); font-weight: 500; }
  .flow-embed .lugui-card .lc-head { display: flex; align-items: center; gap: 11px; padding: 15px 17px; border-bottom: 1px solid var(--lugui-hairline); }
  .flow-embed .lugui-card .lc-av { width: 38px; height: 38px; border-radius: var(--fx-radius-md); overflow: hidden; flex: none; }
  .flow-embed .lugui-card .lc-av svg { display: block; width: 100%; height: 100%; }
  .flow-embed .lugui-card .lc-name { font-family: var(--lugui-font-display); font-weight: 700; font-size: 17px; color: var(--lugui-text); }
  .flow-embed .lugui-card .lc-status { font-size: 12.5px; color: var(--lugui-text-tertiary); margin-top: 1px; }
  .flow-embed .lc-body { padding: 17px; position: relative; display: flex; flex-direction: column; }
  .flow-embed .lc-block { display: none; flex: 1 1 auto; flex-direction: column; gap: 9px; }
  .flow-embed .lc-block .bt { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lugui-text-tertiary); margin-bottom: 2px; }
  .flow-embed .task { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.35; color: var(--lugui-text-secondary); }
  .flow-embed .task .mark {
    width: 19px; height: 19px; flex: none; border-radius: var(--fx-radius-sm);
    border: 1.5px solid var(--lugui-border); display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: transparent; margin-top: 1px;
  }
  .flow-embed .task.done .mark { background: var(--lugui-lima); border-color: var(--lugui-lima); color: var(--lugui-navy); }
  .flow-embed .task.done { color: var(--lugui-text); }
  .flow-embed .lc-idle { align-items: center; justify-content: center; text-align: center; }
  .flow-embed .lc-idle .big { font-family: var(--lugui-font-display); font-weight: 700; font-size: 19px; color: var(--lugui-text-tertiary); }
  .flow-embed .lc-idle .sm { font-size: 13px; color: var(--lugui-text-disabled); margin-top: 6px; }
  .flow-embed .alert { background: var(--lugui-lima); border-radius: var(--fx-radius-md); padding: 15px 16px; }
  .flow-embed .alert .ah { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lugui-navy); opacity: .7; margin-bottom: 6px; }
  .flow-embed .alert .ab { font-size: 14px; line-height: 1.4; color: var(--lugui-navy); font-weight: 500; }
  .flow-embed .meter { height: 6px; background: var(--lugui-hairline); border-radius: 3px; overflow: hidden; margin-top: 4px; }
  .flow-embed .meter i { display: block; height: 100%; width: 0; background: var(--lugui-navy); border-radius: 3px; }

  /* A faixa navy de recado ("regra da casa") saiu do palco: o recado virou
     texto corrido na descrição da seção. */

  /* --- faixa de status: abaixo do palco --- */
  /* min-height é só o piso: sizeStatusbar() no script reserva a altura do aviso
     mais longo do fluxo, senão a faixa cresce 6px quando o texto do beat passa
     de uma linha para duas — e empurra o trilho e a página inteira. */
  .flow-embed .statusbar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-top: 1px solid var(--lugui-hairline);
    background: var(--lugui-offwhite-50); min-height: 50px;
  }
  .flow-embed .pill {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px;
    border: 1.5px solid var(--lugui-navy); color: var(--lugui-navy); background: transparent;
  }
  .flow-embed .pill.acting { background: var(--lugui-lima); border-color: var(--lugui-lima); }
  .flow-embed .statusbar .note { font-size: 14px; line-height: 1.35; color: var(--lugui-text-secondary); }

  /* --- trilho de progresso --- */
  /* Rótulo da etapa: texto, não botão. A interface é usada principalmente no
     celular, então não acrescentamos controles clicáveis — o trilho continua
     com as três barras e o nome da etapa aparece aqui, sozinho. */
  .flow-embed .rail-wrap { background: var(--lugui-white); }
  .flow-embed .rail-head {
    padding: 13px 16px 0; font-size: 11px; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase; color: var(--lugui-text-tertiary);
  }
  .flow-embed .rail-head b { color: var(--lugui-navy); font-weight: 700; }
  .flow-embed .rail-wrap .rail { padding-top: 10px; }
  .flow-embed .rail { display: flex; gap: 3px; align-items: center; padding: 13px 16px 15px; background: var(--lugui-white); }
  .flow-embed .rail-seg {
    position: relative; flex: 1; height: 4px; overflow: hidden; cursor: pointer;
    border: 0; padding: 0; border-radius: 2px; background: var(--lugui-hairline);
    transition: background var(--fx-fast);
  }
  .flow-embed .rail-seg:hover { background: var(--lugui-border); }
  .flow-embed .rail-seg:focus-visible { outline: none; box-shadow: var(--lugui-focus-ring); z-index: 1; }
  .flow-embed .rail-seg .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--lugui-navy); }
  .flow-embed .rail-seg::after { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }

  @media (prefers-reduced-motion: reduce) {
    .flow-embed .connector.live::after { animation: none; opacity: 1; left: 50%; top: 50%; }
  }
  @media (max-width: 980px) {
    .fluxo__grid { grid-template-columns: 1fr; gap: 32px; }
    .fluxo__text, .flow-embed { grid-column: 1 / -1; }
    .fluxo__head { text-align: center; margin: 0 auto 32px; }
    .fluxo__text { align-items: center; text-align: center; }
    .fluxo__text p { max-width: none; }
    .flow-embed { margin: 0 auto; }
  }
  @media (max-width: 900px) {
    /* empilhado: telefone em cima (é o protagonista), Lugui logo abaixo — os
       dois continuam visíveis juntos, que é o ponto do layout */
    /* no celular 40px de cada lado comeriam metade da tela: aqui o respiro
       horizontal é 18px e o palco ocupa a largura toda */
    .flow-embed {
      --stage-w: 328px; --lugui-w: 292px; --slot-w: 292px; --split-link: 2px;
      --split-gap: 0px; --stage-h: 620px;
      --stage-pad-x: 18px; --stage-pad-t: 48px; --stage-pad-b: 28px;
      --phone-w: 232px; --phone-h: 501px;
    }
    .fluxo { padding: 56px 0; }
    .flow-embed .split { flex-direction: column; justify-content: flex-start; gap: 0; }
    .flow-embed .col-slot { order: 1; flex: 0 0 512px; width: 100%; }
    .flow-embed .connector { order: 2; flex: 0 0 26px; width: 10px; height: 26px; }
    .flow-embed .col-lugui { order: 3; width: 100%; }
    .flow-embed .connector::before {
      left: 50%; right: auto; top: 0; bottom: 0; width: 1.3px; height: auto; margin: 0 0 0 -.65px;
      background-image: repeating-linear-gradient(to bottom, var(--conn-dash) 0 5px, transparent 5px 11.5px);
    }
    .flow-embed .connector::after { left: 50%; top: 0; }
    .flow-embed .connector.live::after { animation: connPulsoV 1.5s linear infinite; }
    @keyframes connPulsoV {
      0% { top: 0; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { top: 100%; opacity: 0; }
    }
    /* três abas cabem numa linha só com respiro menor */
    .flow-embed .seg { padding: 6px 10px; font-size: 12px; }
    .flow-embed .toolbar { gap: 8px; padding: 10px 10px; }
    .flow-embed .lc-idle { min-height: 150px; }
    .flow-embed .statusbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  }
