/* ============================================================
   SETUP TECH v4 — landing de campanha v2 (layout v4-lp-v3)
   Carregado só pelo layout v4-lp-v3, depois do site.css. Afina a base .lp do bloco
   "Landing de campanha" do site.css; tudo sob .lp-v3 (wrapper do layout) ou .ck--lpv3
   (banner compacto), para não vazar para a v1 nem para o resto do site.
   Valores: tokens do site.css / DESIGN.md (container 1100, secção 80/60/48, cartão 32/30,
   curva cubic-bezier(0.4,0,0.2,1) e 0.38s do acordeão). Sem cores novas.
   ============================================================ */

/* ---------- 1. Container único: nav, conteúdo e rodapé na mesma coluna de 1100px ----------
   A v1 misturava 1100 (conteúdo), 1200 (cartões), 860 (FAQ) e 1366 (nav). */
.lp-v3 .lp-inner, .lp-v3 .lp-inner--wide { max-width: 1100px; }
.lp-v3 .nav--lp { max-width: calc(1100px + 32px); }            /* padding 16 do .nav → logo na aresta do conteúdo */
.lp-v3 .lp-faq { max-width: none; }
.lp-v3 .faq-item__a { max-width: 72ch; }                       /* medida de leitura dentro do cartão largo */
/* grelhas: a moldura ::after sai 8px para a direita/baixo — reservar só esse lado, para
   a aresta esquerda dos cartões coincidir com a do título e do texto */
.lp-v3 .grid-3, .lp-v3 .grid-2, .lp-v3 .process-grid { padding: 0 8px 8px 0; }

/* ritmo vertical: todas as secções 80px (site: 60–110; a do serviço usa 80), sem excepções */
.lp-v3 .section { padding-top: 80px; padding-bottom: 80px; }
.lp-v3 .h2-wrap { margin-bottom: 64px; }
.lp-v3 .eyebrow { color: rgba(26,24,30,0.7); }                  /* 4. excepção local AA (0.5 → 3.3:1) */

/* ---------- 5. Nav: CTA com 44px no desktop ---------- */
.lp-v3 .lp-nav__cta { min-height: 44px; }

/* ---------- 6. Cartões alinhados entre si (subgrid) ----------
   Título, corpo (e número/unidade nos casos) partilham as linhas da grelha-mãe: o título
   de 2 linhas do cartão 03 empurra a linha inteira e os corpos começam à mesma altura. */
.lp-v3 .feat-card h3, .lp-v3 .pstep h3, .lp-v3 .lp-case__sector { text-wrap: balance; }
@media (min-width: 641px) {
  .lp-v3 .grid-3 { row-gap: 40px; }
  .lp-v3 .grid-3 > .feat-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
  .lp-v3 .grid-3 > .feat-card h3 { margin: 0; }
  /* grelha de factores (sem ilustração): 2 linhas por cartão em vez de 3 e o último ocupa o resto da linha, sem cartão oco nem buraco */
  .lp-v3 .grid-3--factores > .feat-card { grid-row: span 2; }
  .lp-v3 .grid-3--factores > .feat-card:last-child { grid-column: span 2; }

  .lp-v3 .process-grid > .pstep { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }

  .lp-v3 .grid-2 { row-gap: 0; }
  .lp-v3 .grid-2 > .lp-case { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .lp-v3 .grid-2 > .lp-case .lp-case__foot { align-self: end; }
}

/* ---------- Revisão 2 · Q5: ícone por capacidade (padrão do .svc-card__head de /servicos:
   SVG rosa quadrado 44px em /servicos; aqui 40px, cartão mais pequeno). Decorativo, alt="". */
.lp-v3 .feat-card__icon { display: block; width: 40px; height: 40px; object-fit: contain; margin: 0 0 10px 0; }

/* ---------- Revisão 2 · Q6a: métricas do hero com a mesma altura de linha ----------
   A seta de «8 h → 2 h» vem de uma fonte de recurso; com line-height: normal a linha
   ficava com a altura dessa fonte (46px vs 39px) e a legenda descia 7px. Com line-height
   fixo as duas linhas medem o mesmo e as legendas alinham. */
.lp-v3 .hero__metric-num { line-height: 1.1; }

/* ---------- Revisão 2 · T5/Q4: nav de campanha fixa e compacta no desktop ----------
   Estado pelo v4/lp-v3-nav.js (.is-fixed / .is-shown). O .lp-nav-slot guarda a altura. */
@media (min-width: 1001px) {
  .lp-v3 .nav--lp.is-fixed { position: fixed; top: 0; left: 0; right: 0; max-width: none; margin: 0;
    padding: 10px max(40px, calc((100% - 1100px) / 2));               /* mesma aresta do conteúdo */
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.15);
    transform: translateY(-100%); transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
  .lp-v3 .nav--lp.is-fixed.is-shown { transform: none; }
  .lp-v3 .nav--lp.is-fixed .nav__logo { width: 168px; }
}
@media (min-width: 1001px) and (prefers-reduced-motion: reduce) {
  .lp-v3 .nav--lp.is-fixed { transition: none; }
}

/* ---------- 2. Cartões dos casos ---------- */
.lp-v3 .lp-case { padding: 32px; }                               /* padding do .card do site */
.lp-v3 .lp-case__sector { margin-bottom: 20px; }
.lp-v3 .lp-case__num { font-variant-numeric: tabular-nums; }

/* ---------- 6. FAQ: ícone desenhado em CSS, roda com a curva do painel ----------
   O site.js troca o textContent (+/−) do [data-faq-icon]; o glifo fica no DOM mas
   transparente. As duas barras são pseudo-elementos: aberto = a vertical deita-se sobre a
   horizontal (−) enquanto o ícone dá meia volta. */
.lp-v3 .faq-item__icon { position: relative; width: 20px; height: 20px; line-height: 20px; text-align: center;
  color: transparent; user-select: none; transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1); }
.lp-v3 .faq-item__icon::before, .lp-v3 .faq-item__icon::after { content: ''; position: absolute; left: 3px; right: 3px; top: 9px;
  height: 2px; border-radius: 1px; background: var(--pink); transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1); }
.lp-v3 .faq-item__icon::after { transform: rotate(90deg); }
.lp-v3 .faq-item.is-open .faq-item__icon { transform: rotate(180deg); }
.lp-v3 .faq-item.is-open .faq-item__icon::after { transform: rotate(0deg); }
@media (prefers-reduced-motion: reduce) {
  .lp-v3 .faq-item__icon, .lp-v3 .faq-item__icon::before, .lp-v3 .faq-item__icon::after { transition: none; }
}

/* ---------- 2. Rodapé de campanha ---------- */
.lp-v3 .lp-foot__inner { max-width: 1100px; }
/* Telefone no texto do rodapé da /apps: área de toque ≥ 24 px sem mexer na linha (a margem negativa anula o padding). */
.lp-v3 .lp-foot__tel { display: inline-block; padding: 4px 0; margin: -4px 0; }

/* ---------- 3. Banner de cookies compacto (≤140px em todas as larguras) ---------- */
.ck--lpv3 .ck__caixa { padding: 20px 28px; }
.ck--lpv3 .ck__texto a.ck__link { font-weight: 500; }

/* ---------- Tablet / telemóvel ---------- */
@media (max-width: 1000px) {
  .lp-v3 .section { padding-top: 60px; padding-bottom: 60px; }
  .lp-v3 .nav--lp { max-width: none; }
  /* 9 + 2. barra fixa: fora do ecrã também fora da árvore de foco/toque (visibility),
     área segura do iPhone, mesma curva do site */
  .lp-v3 .stickybar { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.25s; }
  .lp-v3 .stickybar.is-visible { visibility: visible; transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s; }
  .lp-v3 .lp-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .ck--lpv3 .ck__caixa { padding: 18px 24px; }
}

@media (max-width: 640px) {
  .lp-v3 .section { padding-top: 48px; padding-bottom: 48px; }
  .lp-v3 .h2-wrap { margin-bottom: 40px; }

  /* 2. hero compacto: o CTA fica acima do banner aberto a 360×640 */
  .lp-v3 .nav--lp { padding-top: 14px; padding-bottom: 14px; }
  .lp-v3 .lp-hero { padding: 8px 0 0 0; }
  .lp-v3 .lp-hero__eyebrow { margin-bottom: 12px; }
  .lp-v3 .lp-hero__h1 { margin-bottom: 14px; }
  .lp-v3 .lp-hero__sub { margin-bottom: 20px; }
  .lp-v3 .lp-hero__note { margin-top: 20px; }
  .lp-v3 .hero__metrics { margin-top: 32px; }
  .lp-v3 .lp-hero-wrap { padding-bottom: 48px; }

  .lp-v3 .grid-3, .lp-v3 .process-grid, .lp-v3 .grid-2 { gap: 32px; }
  .lp-v3 .lp-case { padding: 28px 24px; }
  .lp-v3 .feat-card__icon { margin-bottom: 16px; }

  /* Revisão 2 · Q6b: «Como trabalhamos» em lista compacta — número pequeno à esquerda,
     título e texto à direita, no mesmo cartão (a moldura ::after mantém-se). */
  .lp-v3 .process-grid { gap: 20px; }
  .lp-v3 .process-grid > .pstep { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px;
    align-items: start; padding: 28px 12px 12px 28px; }  /* moldura ::after deslocada 8px para baixo/direita: +8 em cima/esquerda → 20/20 */
  .lp-v3 .process-grid .pstep__num { grid-row: span 2; font-size: 28px; line-height: 1.1; margin: 0; }
  .lp-v3 .process-grid .pstep h3 { margin: 0 0 6px 0; line-height: 1.3; }
  .lp-v3 .process-grid .pstep p { grid-column: 2; }

  /* rodapé: morada por cima, links em 2 colunas iguais */
  .lp-v3 .lp-foot__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lp-v3 .lp-foot__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; width: 100%; }

  /* banner: texto 13px em 3 linhas até 360px (margem 16px = a do .ck do site), uma
     linha de botões. Links do texto: 20 + 2×12 = 44px de alvo, sem empurrar as linhas. */
  .ck--lpv3 .ck__caixa { gap: 10px; padding: 10px 16px 12px 16px; }
  .ck--lpv3 .ck__texto { font-size: 13px; line-height: 1.45; }
  .ck--lpv3 .ck__link { line-height: 20px; }
  .ck--lpv3 .ck__accoes { gap: 10px; }
}

/* métricas do hero empilhadas: as duas centradas (a base .lp alinha à esquerda) */
@media (max-width: 640px) {
  .lp-v3 .hero__metrics { justify-content: center; text-align: center; }
  .lp-v3 .hero__metrics > div { flex: 1 1 100%; }
}
/* ≤340px: banner compacto dentro dos 140px e sem tapar o CTA do hero */
/* ≤340px: hero mais compacto (o CTA sobe) e banner compacto dentro dos 140px, com os
   botões numa linha — o CTA do hero fica visível acima do banner a 320×568 */
@media (max-width: 340px) {
  .lp-v3 .nav--lp { padding-top: 10px; padding-bottom: 10px; }
  .lp-v3 .lp-hero { padding-top: 4px; }
  .lp-v3 .lp-hero__eyebrow { font-size: 12px; margin-bottom: 8px; }
  .lp-v3.lp .dark-block .lp-hero__h1 { font-size: 28px !important; margin-bottom: 12px; }
  .lp-v3 .lp-hero__sub { font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
  .lp-v3 .lp-hero__actions .btn { font-size: 15px; padding-left: 12px; padding-right: 12px; }
  .ck--lpv3 .ck__caixa { gap: 6px; padding: 6px 12px 8px 12px; }
  .ck--lpv3 .ck__texto { font-size: 12px; line-height: 1.35; }
  .ck--lpv3 .ck__accoes { gap: 8px; flex-wrap: nowrap; }
  .ck--lpv3 .ck__accoes .ck__btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
}

/* ============================================================
   Proposta v3 — «fábrica digital em movimento»
   Ilustrações SVG sem texto (aria-hidden) + movimento só em transform/opacity/stroke-dashoffset.
   Estados por omissão = estado FINAL e legível (sem JS, com reduced-motion, ou se o
   v4/lp-v3-anim.js falhar). Só com html.lpa (posto pelo próprio lp-v3-anim.js, que é quem
   revela) é que os decorativos partem do estado inicial. O TEXTO nunca é escondido.
   Loops contínuos pausam com .is-paused (fora do ecrã) — ver lp-v3-anim.js.
   ============================================================ */
.lp-v3 .is-paused, .lp-v3 .is-paused * { animation-play-state: paused !important; }

/* ---------- Hero: 2 colunas no desktop ---------- */
.lp-v3 .lp-art { display: none; }
@media (min-width: 1001px) {
  .lp-v3 .lp-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 56px;
    align-items: center; text-align: left; padding-top: 56px; padding-left: 0; padding-right: 0; }  /* mesma aresta do logo e das secções */
  .lp-v3 .lp-hero__h1 { font-size: clamp(52px, 3.9vw, 56px); }
  .lp-v3 .hero__metrics > div { flex: none; }
  .lp-v3 .hero__metric-label { white-space: nowrap; }
  .lp-v3 .lp-hero__sub { margin-left: 0; margin-right: 0; font-size: 18px; }
  .lp-v3 .lp-hero__actions { justify-content: flex-start; }
  .lp-v3 .hero__metrics { justify-content: flex-start; }
  .lp-v3 .lp-art { display: block; }
}
.lp-v3 .lp-art { position: relative; z-index: 1; transform: rotate(2deg); animation: lpa-float 6s ease-in-out infinite; }
/* cartão = chassis do .codecard da home (vidro escuro + borda + sombra), moldura deslocada da marca */
.lp-v3 .lp-art__card { position: relative; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.lp-v3 .lp-art__card::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(8,242,176,0.45); border-radius: 14px;
  transform: translate(10px, 10px); pointer-events: none; }
.lp-v3 .lp-art__bar { display: flex; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.lp-v3 .lp-art__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.lp-v3 .lp-art__bar span:first-child { background: var(--pink); }
.lp-v3 .lp-art__bar span:last-child { background: var(--mint); }
.lp-v3 .lp-art__svg { display: block; width: 100%; height: auto; padding: 22px 22px 24px; box-sizing: border-box; overflow: visible; }
@keyframes lpa-float { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-10px); } }

/* Gantt: barras encaixam, a urgente (rosa) entra na linha 2 e empurra o resto — ciclo de 9s.
   Estado por omissão (sem animação) = plano já com a urgente encaixada. */
.lp-v3 .ga *, .lp-v3 .ln *, .lp-v3 .sy * { transform-box: fill-box; }
.lp-v3 .ga__row2 { transform: translateX(28px); animation: lpa-push 9s cubic-bezier(0.2,0,0,1) infinite; }
.lp-v3 .ga__urg { animation: lpa-urg 9s cubic-bezier(0.2,0,0,1) infinite; }
.lp-v3 .ga__b { animation: lpa-bar 9s cubic-bezier(0.2,0,0,1) infinite; transform-origin: left center; }
.lp-v3 .ga__b2 { animation-delay: 0.08s; } .lp-v3 .ga__b3 { animation-delay: 0.16s; } .lp-v3 .ga__b4 { animation-delay: 0.24s; }
.lp-v3 .ga__b5 { animation-delay: 0.32s; } .lp-v3 .ga__b6 { animation-delay: 0.4s; } .lp-v3 .ga__b7 { animation-delay: 0.48s; }
.lp-v3 .ga__head { animation: lpa-head 9s linear infinite; }
@keyframes lpa-bar { 0% { transform: scaleX(0); opacity: 0; } 8% { transform: scaleX(1); opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lpa-push { 0%, 34% { transform: translateX(-120px); } 42%, 100% { transform: translateX(28px); } }
@keyframes lpa-urg { 0%, 30% { transform: translateY(-46px); opacity: 0; } 38% { transform: translateY(0); opacity: 1; } 92% { opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes lpa-head { 0% { transform: translateX(-170px); opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { transform: translateX(170px); opacity: 0; } }

/* Linha de produção: peça a correr, fluxo tracejado, nós a pulsar em sequência */
.lp-v3 .ln__flow { animation: lpa-flow 1.6s linear infinite; }
.lp-v3 .ln__item { opacity: 0; animation: lpa-item 4s linear infinite; }
.lp-v3 .ln__pulse { transform-origin: center; opacity: 0; animation: lpa-pulse 4s ease-out infinite; }
.lp-v3 .ln__p2 { animation-delay: 1s; } .lp-v3 .ln__p3 { animation-delay: 2s; } .lp-v3 .ln__p4 { animation-delay: 3s; }
@keyframes lpa-flow { to { stroke-dashoffset: -40; } }
@keyframes lpa-item { 0% { transform: translateX(0); opacity: 0; } 5%, 92% { opacity: 1; } 100% { transform: translateX(396px); opacity: 0; } }
@keyframes lpa-pulse { 0% { transform: scale(1); opacity: 0.9; } 40%, 100% { transform: scale(2.6); opacity: 0; } }

/* ERP ⇄ sistema: pontos em ambos os sentidos, barras do ecrã a respirar */
.lp-v3 .sy__dot { opacity: 0; }
.lp-v3 .sy__r1, .lp-v3 .sy__r2 { animation: lpa-right 3s cubic-bezier(0.4,0,0.2,1) infinite; }
.lp-v3 .sy__l1, .lp-v3 .sy__l2 { animation: lpa-left 3s cubic-bezier(0.4,0,0.2,1) infinite; animation-delay: 0.75s; }
.lp-v3 .sy__r2 { animation-delay: 1.5s; } .lp-v3 .sy__l2 { animation-delay: 2.25s; }
.lp-v3 .sy__bar { transform-origin: bottom center; animation: lpa-grow 3s ease-in-out infinite; }
.lp-v3 .sy__bar2 { animation-delay: 0.4s; } .lp-v3 .sy__bar3 { animation-delay: 0.8s; } .lp-v3 .sy__bar4 { animation-delay: 1.2s; }
@keyframes lpa-right { 0% { transform: translateX(0); opacity: 0; } 10%, 85% { opacity: 1; } 100% { transform: translateX(212px); opacity: 0; } }
@keyframes lpa-left { 0% { transform: translateX(0); opacity: 0; } 10%, 85% { opacity: 1; } 100% { transform: translateX(-212px); opacity: 0; } }
@keyframes lpa-grow { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.6); } }

/* blobs do hero e do CTA: deriva lenta */
.lp-v3 .lp-hero-wrap .blob--pink { animation: lpa-blob-p 22s ease-in-out infinite alternate; }
.lp-v3 .lp-hero-wrap .blob--mint { animation: lpa-blob-m 26s ease-in-out infinite alternate; }
@keyframes lpa-blob-p { from { transform: translateX(50%) rotate(-45deg); } to { transform: translateX(34%) translateY(80px) rotate(-30deg); } }
@keyframes lpa-blob-m { from { transform: rotate(-45deg); } to { transform: translateX(90px) translateY(-60px) rotate(-60deg); } }

/* ---------- Dores: caos que se arruma + ✕ em sequência ---------- */
.lp-v3 .lp-split__col { min-width: 0; }
.lp-v3 .lp-chaos { display: block; width: 100%; max-width: 360px; height: auto; margin-top: 48px; overflow: visible; }
.lp-v3 .lp-chaos .ch { transform-box: fill-box; transform-origin: center; transition: transform 0.9s cubic-bezier(0.2,0,0,1); }
.lp-v3 .lp-chaos .ch-x { opacity: 0; transition: opacity 0.4s ease; }
.lp-v3 .lp-chaos .ch-ok { transition: opacity 0.4s ease 0.7s; }
.lpa .lp-v3 [data-lpa]:not(.is-in) .ch1 { transform: translate(30px, 40px) rotate(-14deg); }
.lpa .lp-v3 [data-lpa]:not(.is-in) .ch2 { transform: translate(-20px, 70px) rotate(11deg); }
.lpa .lp-v3 [data-lpa]:not(.is-in) .ch3 { transform: translate(70px, -30px) rotate(8deg); }
.lpa .lp-v3 [data-lpa]:not(.is-in) .ch4 { transform: translate(-40px, -50px) rotate(-19deg); }
.lpa .lp-v3 [data-lpa]:not(.is-in) .ch5 { transform: translate(-60px, 10px) rotate(9deg); }
.lpa .lp-v3 [data-lpa]:not(.is-in) .ch-x { opacity: 1; }
.lpa .lp-v3 [data-lpa]:not(.is-in) .ch-ok { opacity: 0; transition-delay: 0s; }
.lp-v3 .lp-chaos .ch2 { transition-delay: 0.08s; } .lp-v3 .lp-chaos .ch3 { transition-delay: 0.16s; }
.lp-v3 .lp-chaos .ch4 { transition-delay: 0.24s; } .lp-v3 .lp-chaos .ch5 { transition-delay: 0.32s; }

.lp-v3 .xlist__x { display: inline-block; transition: transform 0.35s cubic-bezier(0.2,0,0,1), opacity 0.35s ease; }
.lp-v3 .xlist__row:nth-child(2) .xlist__x { transition-delay: 0.12s; }
.lp-v3 .xlist__row:nth-child(3) .xlist__x { transition-delay: 0.24s; }
.lp-v3 .xlist__row:nth-child(4) .xlist__x { transition-delay: 0.36s; }
.lpa .lp-v3 [data-lpa]:not(.is-in) .xlist__x { transform: scale(0) rotate(-90deg); opacity: 0; }

/* ---------- O que fazemos: painel ilustrado + hover com elevação ---------- */
.lp-v3 .feat-card { transition: transform 0.3s cubic-bezier(0.2,0,0,1); }
@media (hover: hover) { .lp-v3 .feat-card:hover { transform: translate(-4px, -4px); } }   /* só com rato: no toque o :hover fica preso depois do toque */
.lp-v3 .feat-card__art { position: relative; height: 104px; margin: 0 0 12px 0; border-radius: 8px; background: rgba(255,11,113,0.06);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lp-v3 .feat-card__art::before { content: ''; position: absolute; inset: 0; background: rgba(8,242,176,0.14); opacity: 0; transition: opacity 0.3s ease; }
@media (hover: hover) { .lp-v3 .feat-card:hover .feat-card__art::before { opacity: 1; } }
.lp-v3 .feat-card__art svg { position: relative; width: 160px; height: 88px; overflow: visible; }
.lp-v3 .feat-card__art svg * { transform-box: fill-box; }
.lp-v3 .fa-draw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s cubic-bezier(0.2,0,0,1) 0.2s; }
.lp-v3 .fa-b, .lp-v3 .fa-g, .lp-v3 .fa-dot { transition: transform 0.45s cubic-bezier(0.2,0,0,1), opacity 0.45s ease; }
.lp-v3 .fa-b { transform-origin: left center; } .lp-v3 .fa-g { transform-origin: bottom center; }
.lp-v3 .fa-b2, .lp-v3 .fa-g2 { transition-delay: 0.08s; } .lp-v3 .fa-b3, .lp-v3 .fa-g3 { transition-delay: 0.16s; }
.lpa .lp-v3 [data-lpa]:not(.is-in) .fa-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lpa .lp-v3 [data-lpa]:not(.is-in) .fa-b { transform: scaleX(0); }
.lpa .lp-v3 [data-lpa]:not(.is-in) .fa-g { transform: scaleY(0); }
.lpa .lp-v3 [data-lpa]:not(.is-in) .fa-dot { opacity: 0; }
/* hover: o plano reorganiza-se, os dados trocam de lado, os indicadores sobem (só com rato) */
@media (hover: hover) {
  .lp-v3 .feat-card:hover .fa-b2 { transform: translateX(-24px); }
  .lp-v3 .feat-card:hover .fa-b3 { transform: translateX(-10px) scaleX(1.15); }
  .lp-v3 .feat-card:hover .fa-dot1 { transform: translateX(32px); }
  .lp-v3 .feat-card:hover .fa-dot2 { transform: translateX(-32px); }
  .lp-v3 .feat-card:hover .fa-g1 { transform: scaleY(1.5); }
  .lp-v3 .feat-card:hover .fa-g3 { transform: scaleY(1.3); }
}
@media (min-width: 641px) { .lp-v3 .grid-3 > .feat-card .feat-card__art { margin: 0 0 6px 0; } }

/* ---------- Resultados: 1 bloco = 1 hora ----------
   Têxtil: 8 blocos rosa; 6 caem em sequência e ficam como «fantasmas» menta (tempo ganho), ficam 2.
   O «8 h» está lá desde o início; «→ 2 h» só entra quando o último bloco cai.
   Metalomecânica: 6 blocos de introdução manual riscados e removidos (fantasmas menta); o resto
   do trabalho manual, que o caso não quantifica, fica como cauda tracejada sem número. «−6 h» no fim.
   ~1,8 s no total, uma vez, quando o cartão está 40% visível (lp-v3-anim.js: data-lpa-40).
   Por omissão (sem JS / reduced-motion) = estado final estático. */
.lp-v3 .lp-viz { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; height: 22px; margin: 2px 0 24px 0; }
.lp-v3 .lp-viz i { position: relative; border-radius: 4px; background: rgba(8,242,176,0.28); box-shadow: inset 0 0 0 1px rgba(8,242,176,0.9); }
.lp-v3 .lp-viz i::before { content: ''; position: absolute; inset: 0; border-radius: 4px; background: var(--pink); }
.lp-v3 .lp-viz--shrink i:nth-child(n+3)::before { opacity: 0; transform: translateY(18px) rotate(10deg); }
.lp-v3 .lp-viz--cut i::before { background: var(--ink); opacity: 0; transform: translateY(18px) rotate(-10deg); }
.lp-v3 .lp-viz--cut i::after { content: ''; position: absolute; left: -3px; right: -3px; top: 10px; height: 2px; border-radius: 1px; background: var(--pink);
  opacity: 0; transform-origin: left center; }
.lp-v3 .lp-viz__rest { grid-column: 7 / span 2; border-radius: 4px; border: 1.5px dashed rgba(26,24,30,0.35); }
.lp-v3 .lp-num-a, .lp-v3 .lp-num-b { display: inline-block; }

/* estado inicial (só com html.lpa, antes de entrar) */
.lpa .lp-v3 .lp-case[data-lpa]:not(.is-in) .lp-viz i::before { opacity: 1; transform: none; }
.lpa .lp-v3 .lp-case[data-lpa]:not(.is-in) .lp-num-b { opacity: 0; transform: translateX(-12px); }
.lpa .lp-v3 .lp-case[data-lpa]:not(.is-in) .lp-case__num > .lp-num-b:only-child { opacity: 0.15; transform: none; }
/* coreografia */
.lpa .lp-v3 .lp-case.is-in .lp-viz--shrink i:nth-child(n+3)::before { animation: lpa-fall 0.5s cubic-bezier(0.55, 0, 0.85, 0.35) both; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--shrink i:nth-child(8)::before { animation-delay: 0.15s; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--shrink i:nth-child(7)::before { animation-delay: 0.27s; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--shrink i:nth-child(6)::before { animation-delay: 0.39s; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--shrink i:nth-child(5)::before { animation-delay: 0.51s; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--shrink i:nth-child(4)::before { animation-delay: 0.63s; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--shrink i:nth-child(3)::before { animation-delay: 0.75s; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--shrink i:nth-child(-n+2)::before { animation: lpa-keep 0.4s cubic-bezier(0.2, 0, 0, 1) 1.25s both; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--cut i::before { animation: lpa-cut 0.7s cubic-bezier(0.55, 0, 0.85, 0.35) both; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--cut i::after { animation: lpa-strike 0.7s cubic-bezier(0.2, 0, 0, 1) both; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--cut i:nth-child(2)::before, .lpa .lp-v3 .lp-case.is-in .lp-viz--cut i:nth-child(2)::after { animation-delay: 0.13s; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--cut i:nth-child(3)::before, .lpa .lp-v3 .lp-case.is-in .lp-viz--cut i:nth-child(3)::after { animation-delay: 0.26s; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--cut i:nth-child(4)::before, .lpa .lp-v3 .lp-case.is-in .lp-viz--cut i:nth-child(4)::after { animation-delay: 0.39s; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--cut i:nth-child(5)::before, .lpa .lp-v3 .lp-case.is-in .lp-viz--cut i:nth-child(5)::after { animation-delay: 0.52s; }
.lpa .lp-v3 .lp-case.is-in .lp-viz--cut i:nth-child(6)::before, .lpa .lp-v3 .lp-case.is-in .lp-viz--cut i:nth-child(6)::after { animation-delay: 0.65s; }
.lpa .lp-v3 .lp-case.is-in .lp-num-b { animation: lpa-num 0.45s cubic-bezier(0.2, 0, 0, 1) 1.35s both; }
/* metalomecânica: o «−6 h» é o único número do cartão — em vez de um buraco vazio até ao fim,
   começa esbatido e acende quando os 6 blocos saem */
.lpa .lp-v3 .lp-case.is-in .lp-case__num > .lp-num-b:only-child { animation-name: lpa-num-ghost; animation-delay: 1.1s; }
@keyframes lpa-num-ghost { from { opacity: 0.15; transform: none; } to { opacity: 1; transform: none; } }
@keyframes lpa-fall { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(18px) rotate(10deg); } }
@keyframes lpa-cut { 0%, 40% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(18px) rotate(-10deg); } }
@keyframes lpa-strike { 0% { opacity: 1; transform: scaleX(0); } 40% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: translateY(18px) scaleX(1); } }
@keyframes lpa-keep { 0% { transform: none; } 45% { transform: scaleY(1.25); } 100% { transform: none; } }
@keyframes lpa-num { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@media (min-width: 641px) { .lp-v3 .grid-2 > .lp-case { grid-row: span 6; } }

/* ---------- Como trabalhamos: linha do tempo que se desenha com o scroll ----------
   --tl (0–1) posto pelo lp-v3-anim.js; sem JS fica completa. */
.lp-v3 .lp-tl { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; padding-right: 8px; height: 18px; margin: -28px 0 24px 0; }
.lp-v3 .lp-tl::before, .lp-v3 .lp-tl__line { content: ''; position: absolute; left: 9px; right: 8px; top: 8px; height: 2px; border-radius: 1px; }
.lp-v3 .lp-tl::before { background: rgba(26,24,30,0.12); }
.lp-v3 .lp-tl__line { background: var(--pink); transform-origin: left center; transform: scaleX(var(--tl, 1)); }
.lp-v3 .lp-tl__node { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-sizing: border-box; }
.lp-v3 .lp-tl__node::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--mint);
  transition: transform 0.3s cubic-bezier(0.2,0,0,1); }
.lpa .lp-v3 .lp-tl__node:not(.is-lit)::after { transform: scale(0); }
.lp-v3 .process-grid > .pstep { transition: transform 0.35s cubic-bezier(0.2,0,0,1); }
.lpa .lp-v3 .process-grid > .pstep:not(.is-lit) { transform: translateY(8px); }
@media (max-width: 1000px) and (min-width: 641px) { .lp-v3 .lp-tl { display: none; } }

/* ---------- CTA final: brilho em deriva + triângulo da marca + botão com micro-interacção ---------- */
.lp-v3 .lp-callout__glow { animation: lpa-glow 12s ease-in-out infinite alternate; }
.lp-v3 .lp-callout__glow--pink { top: auto; right: auto; bottom: -80px; left: -60px; width: 34%; background: var(--pink); opacity: 0.28;
  animation: lpa-glow2 14s ease-in-out infinite alternate; }
.lp-v3 .lp-callout__tri { position: absolute; top: 36px; right: 48px; opacity: 0.9; animation: lpa-tri 7s ease-in-out infinite; }
@keyframes lpa-glow { from { transform: rotate(-45deg); } to { transform: translate(-180px, 60px) rotate(-30deg); } }
@keyframes lpa-glow2 { from { transform: rotate(-45deg); } to { transform: translate(200px, -40px) rotate(-60deg); } }
@keyframes lpa-tri { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
.lp-v3 .dark-callout .btn--mint { overflow: hidden; transition: background 0.3s, transform 0.18s cubic-bezier(0.2,0,0,1); }
.lp-v3 .dark-callout .btn--mint::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent); transform: translateX(-120%) skewX(-18deg); }
@media (hover: hover) {
  .lp-v3 .dark-callout .btn--mint:hover { transform: translateY(-2px); }
  .lp-v3 .dark-callout .btn--mint:hover::after { transform: translateX(320%) skewX(-18deg); transition: transform 0.7s cubic-bezier(0.2,0,0,1); }
}
.lp-v3 .dark-callout .btn--mint:active { transform: translateY(4px); }

/* ---------- Tablet / telemóvel ---------- */
@media (max-width: 1000px) {
  .lp-v3 .lp-art { display: block; max-width: 440px; margin: 48px auto 0; }
  .lp-v3 .lp-chaos { max-width: 300px; margin-top: 32px; }
  .lp-v3 .lp-callout__tri { top: 24px; right: 24px; width: 56px; height: 49px; }
}
@media (max-width: 640px) {
  .lp-v3 .lp-art { max-width: 340px; margin-top: 40px; padding: 0 10px 10px 0; }
  .lp-v3 .lp-art__svg { padding: 14px 14px 16px; }
  .lp-v3 .lp-chaos { display: none; }
  .lp-v3 .lp-callout__tri { display: none; }
  /* linha do tempo vertical, à esquerda dos passos */
  .lp-v3 .lp-tl { display: none; }
  .lp-v3 .process-grid { position: relative; padding-left: 30px; }
  .lp-v3 .process-grid::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 28px; width: 2px; background: rgba(26,24,30,0.12); }
  .lp-v3 .process-grid::after { content: ''; position: absolute; left: 8px; top: 20px; bottom: 28px; width: 2px; background: var(--pink);
    transform-origin: top center; transform: scaleY(var(--tl, 1)); }
  .lp-v3 .process-grid > .pstep::before { content: ''; position: absolute; z-index: 1; left: -30px; top: 28px; width: 18px; height: 18px; border-radius: 50%;
    box-sizing: border-box; border: 2px solid var(--ink); background: var(--mint); box-shadow: inset 0 0 0 2px var(--paper); transition: background 0.3s; }
  .lpa .lp-v3 .process-grid > .pstep:not(.is-lit)::before { background: var(--paper); }
}

/* ---------- Sem movimento: tudo estático no estado final ---------- */
@media (prefers-reduced-motion: reduce) {
  .lp-v3 .lp-art, .lp-v3 .lp-art *, .lp-v3 .lp-viz i::before, .lp-v3 .lp-viz i::after, .lp-v3 .lp-num-b, .lp-v3 .blob, .lp-v3 .lp-callout__glow, .lp-v3 .lp-callout__tri { animation: none !important; }
  .lp-v3 .ln__item, .lp-v3 .ln__pulse, .lp-v3 .sy__dot { opacity: 0; }
  .lp-v3 .sy__r1, .lp-v3 .sy__l1 { opacity: 1; transform: translateX(0); }
  .lp-v3 .lp-chaos *, .lp-v3 .xlist__x, .lp-v3 .feat-card, .lp-v3 .feat-card__art *, .lp-v3 .feat-card__art::before,
  .lp-v3 .lp-tl *, .lp-v3 .pstep, .lp-v3 .dark-callout .btn--mint, .lp-v3 .dark-callout .btn--mint::after { transition: none !important; }
  .lp-v3 .feat-card:hover, .lp-v3 .dark-callout .btn--mint:hover, .lp-v3 .dark-callout .btn--mint:active { transform: none; }
  .lp-v3 .feat-card:hover .feat-card__art svg * { transform: none; }
}

/* ---------- FAQ em duas colunas no desktop (pedido 2026-09-29) ----------
   1 pergunta por coluna, alinhadas pelo topo; com as duas abertas os cartões ficam da mesma
   altura (stretch; a linha 1fr da resposta absorve a diferença). Com alguma fechada volta a
   start, para o cartão fechado não ficar alto e vazio. Sem :has() → start (alturas próprias).
   ≤1000px: uma coluna, como antes. Acordeão, aria-expanded e ícone não mudam. */
@media (min-width: 1001px) {
  .lp-v3 .lp-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .lp-v3 .lp-faq:not(:has(.faq-item:not(.is-open))) { align-items: stretch; }
  .lp-v3 .lp-faq .faq-item { align-content: start; }
  .lp-v3 .lp-faq .faq-item__q { align-items: flex-start; }
  .lp-v3 .lp-faq .faq-item__icon { margin-top: 1px; }
}

/* ============================================================
   Telemóvel — toque, teclado, landscape e animações mais leves (optimização mobile 2026-09-29)
   Nada aqui muda o desktop com rato: :active só com (hover: none), landscape só ≤1000px de
   largura e ≤500px de altura, animações cortadas só ≤640px. Sem cores novas.
   ============================================================ */

/* Toque: sem o realce por omissão do Android (rgba(51,181,229,0.4), azul fora da marca) e sem o
   duplo-toque-zoom nos controlos; em troca, um :active visível em cada alvo (tecto de 150 ms). */
.lp-v3 a, .lp-v3 button, .ck--lpv3 a, .ck--lpv3 button, .modal-overlay--lpv3 a, .modal-overlay--lpv3 button,
.modal-overlay--lpv3 input, .modal-overlay--lpv3 label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .lp-v3 .btn:active, .modal-overlay--lpv3 .btn:active, .ck--lpv3 .ck__btn:active { transform: translateY(2px); transition-duration: 0.08s; }
  .lp-v3 .lp-nav__tel:active, .lp-v3 .lp-foot a:active, .lp-v3 .faq-item__q:active, .ck--lpv3 .ck__link:active,
  .modal-overlay--lpv3 .wiz-terms a:active { opacity: 0.7; }
  .modal-overlay--lpv3 .wiz-opt:active { border-color: var(--ink); }                    /* = :hover do site */
  .modal-overlay--lpv3 .modal__close:active { border-color: var(--pink); color: var(--pink); }  /* = :hover do site */
}

/* Área segura (iPhone): banner e barra fixa acima do indicador de início e fora dos recortes
   laterais. Nota: sem viewport-fit=cover no <meta viewport> o iOS devolve 0 nestes env() —
   ficam prontos, sem efeito até essa decisão (que obriga a padding lateral em todas as secções). */
/* >640: banner flutuante, 16px das arestas (.ck / .ck--lp do site); ≤640: colado ao fundo (.ck--lp
   padding 0) → a área segura entra no padding da caixa (12px / 8px ≤340, os de cima) */
.ck--lpv3 { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) {
  .ck--lpv3 { padding: 0; }
  .ck--lpv3 .ck__caixa { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
@media (max-width: 340px) {
  .ck--lpv3 .ck__caixa { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
}
@media (max-width: 1000px) {
  .lp-v3 .stickybar { padding-left: max(var(--gutter-m), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter-m), env(safe-area-inset-right, 0px)); }
}

/* Modal de orçamento: svh (não dvh — o padding não salta quando a barra do browser entra/sai) e,
   com o teclado aberto, --lp-kb (v4/lp-v3.js) somado ao fundo: o «Continuar» pode subir acima do
   teclado. Sem teclado --lp-kb = 0 → igual ao site (5vh / 3vh ≤640). */
.modal-overlay--lpv3 { padding-top: 5svh; padding-bottom: calc(5svh + var(--lp-kb, 0px)); }
@media (max-width: 640px) { .modal-overlay--lpv3 { padding-top: 3svh; padding-bottom: calc(3svh + var(--lp-kb, 0px)); } }
/* alvos de 44px no modal (opções 40px, fechar 40px no site) */
@media (max-width: 1000px) {
  .modal-overlay--lpv3 .wiz-opt { min-height: 44px; }
  .modal-overlay--lpv3 .modal__close { width: 44px; height: 44px; top: 16px; right: 16px; }
  /* link dos T&C: 14px de altura → 44px de alvo sem mexer nas linhas (padrão do .ck__link do site) */
  .modal-overlay--lpv3 .wiz-terms a { display: inline-block; padding: 15px 0; margin: -15px 0; }
  .modal-overlay--lpv3 .wiz-field--terms label.wiz-terms { padding: 12px 0; margin: -12px 0; }   /* linha da checkbox: 21 → 45px */
}

/* Landscape de telemóvel (ex.: 844×390): o H1 fluido de tablet (52px) enchia o ecrã e o CTA ficava
   abaixo da dobra (topo a 505px). Mesma compactação do hero ≤640 + H1 no mínimo da escala ≤1000
   (40px, clamp do site.css) → CTA a 282px. Com 34px o LCP passava a ser o subtítulo; a 40px
   continua o H1 (medido a 844×390, 932×430, 667×375, 568×320). */
@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  .lp-v3 .nav--lp { padding-top: 10px; padding-bottom: 10px; }
  .lp-v3 .lp-hero { padding: 4px 0 0 0; }
  .lp-v3 .lp-hero__eyebrow { font-size: 13px; letter-spacing: 0.2em; margin-bottom: 12px; }
  .lp-v3.lp .dark-block .lp-hero__h1 { font-size: 40px !important; margin-bottom: 14px; }
  .lp-v3 .lp-hero__sub { font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
}
/* landscape no telemóvel (844×390, 667×375): hero compacto como na v2, CTA inteiro acima do banner */
@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  .lp-v3 .nav--lp { padding-top: 8px; padding-bottom: 8px; }
  .lp-v3 .lp-hero__eyebrow { margin-bottom: 8px; }
  .lp-v3.lp .dark-block .lp-hero__h1 { font-size: 34px !important; margin-bottom: 10px; }
  .lp-v3 .lp-hero__sub { font-size: 14px; line-height: 1.5; margin-bottom: 14px; max-width: 480px; }   /* o H1 continua a ser o LCP */
  .lp-v3 .lp-hero__actions { flex-direction: row; justify-content: flex-start; }
}

/* Animações mais leves ≤640px. Medido a 390×844, CPU 6×, ilustração no ecrã: pulsos, fluxo
   tracejado e barras do ecrã eram ~30% do recálculo de estilo por segundo (SVG anima no thread
   principal). Os blobs e os brilhos do CTA param na posição inicial (= base do site.css): são
   camadas enormes com filter: blur(120–140px), recompostas pela GPU a cada frame enquanto mexem.
   O Gantt, a peça na linha e os pontos ERP ⇄ sistema continuam a mexer. */
@media (max-width: 640px) {
  .lp-v3 .lp-hero-wrap .blob, .lp-v3 .lp-callout__glow,
  .lp-v3 .ln__pulse, .lp-v3 .ln__flow, .lp-v3 .sy__bar { animation: none; }
}

.modal-overlay--lpv3 .wiz__nav .btn { min-height: 44px; }
/* landscape no telemóvel: banner numa linha (como na v2), para não tapar o CTA do hero */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1000px) {
  .ck--lpv3 { padding: 0; }
  .ck--lpv3 .ck__caixa { flex-direction: row; align-items: center; gap: 16px; border-radius: 0; border-width: 1px 0 0 0; box-shadow: none;
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .ck--lpv3 .ck__texto { font-size: 13px; line-height: 1.45; }
  .ck--lpv3 .ck__accoes { flex-wrap: nowrap; gap: 10px; }
  .ck--lpv3 .ck__accoes .ck__btn { flex: none; white-space: nowrap; }
}
/* landscape estreito (667×375): o banner tem 2 linhas → H1 e subtítulo mais contidos */
@media (max-width: 740px) and (max-height: 500px) and (orientation: landscape) {
  .lp-v3.lp .dark-block .lp-hero__h1 { font-size: 30px !important; }
  .lp-v3 .lp-hero__eyebrow { margin-bottom: 6px; }
  .lp-v3 .lp-hero__sub { max-width: 420px; margin-bottom: 12px; }
}
