/* ==========================================================================
   TOPOS PRÓPRIOS (partials/nz/topos/*) — 2026-12-02, o Fabio: "não gostei de nenhuma das imagens e continua muito repetitivo todas as páginas terem este layout".
   Cada serviço tem um banner feito do próprio serviço, sem fotografias de banco de imagens; os formulários, o blog e os textos legais têm um topo simples e baixo.
   O "Recorte" (css/nz/pg-base.css, .pg-topo) ficou em Quem somos e nas páginas dos projetos. Movimento: js/nz/pg-topos.js (só com o rato ou com o scroll).
   Prefixo tb- (topo-banner): comum, ix índice, sites, cb código de barras, pc peças, ta tarefas, li linhas, ab abre, en endereço, pd por dentro, simples.
   A 2026-12-02 as lojas, o desenvolvimento e o branding passaram para a família do marketing, que foi o de que o Fabio gostou: fundo branco, o título enorme em cima à
   esquerda e um desenho de linhas que enche o resto e fica azul junto ao rato. Cada um tem o seu desenho.
   Depois de pg-base.css por ordem alfabética.
   ========================================================================== */
.tb { --tb-m: calc(20px + clamp(24px, 4.2vw, 80px)); position: relative; display: flex; flex-direction: column; height: clamp(640px, 100svh, 1000px); padding: 120px var(--tb-m) 36px; overflow: clip; font-family: var(--ad-body); color: var(--ad-ink); container-type: inline-size; }
/* em cartão: com os 20px à volta e os cantos dos outros cartões; as margens de dentro alinham com o logótipo do menu */
.tb--cartao { --tb-m: clamp(24px, 4.2vw, 80px); height: clamp(620px, calc(100svh - 40px), 960px); margin: 20px 20px 0; padding-top: 100px; border-radius: 20px; }
.nz-main .tb__t { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 500; line-height: .92; letter-spacing: -.055em; color: inherit; }
.tb__t > span { display: block; }
.nz-main .tb__lead { max-width: 34em; margin: 0; font-family: var(--ad-body); font-size: 18px; line-height: 1.5; letter-spacing: -.01em; color: #3c3d42; }
.tb .pg-migalhas ol { margin: 0; }
.tb .pg-topo__acoes { margin-top: 16px; }
/* ---------- ÍNDICE (serviços) ---------- */
.tb-ix { height: auto; min-height: clamp(640px, 100svh, 1000px); padding-bottom: 28px; }
.tb-ix__cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 60px; margin: 16px 0 clamp(20px, 4svh, 40px); }
.nz-main .tb-ix .tb__t { font-size: clamp(30px, 3.1vw, 48px); line-height: 1; letter-spacing: -.045em; }
.nz-main .tb-ix .tb__lead { font-size: 17px; }
.tb-ix__l { margin: auto 0 0; padding: 0; list-style: none; border-top: 1px solid #dfe1e5; }
.tb-ix__l li { border-bottom: 1px solid #dfe1e5; }
.tb-ix__l a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px) 34px; gap: 20px; align-items: center; color: var(--ad-ink); }
.tb-ix__l b { padding: .1em 0 .15em; font: 500 clamp(32px, min(5.2vw, calc((100svh - 330px) / 9)), 92px)/1 'Space Grotesk', sans-serif; letter-spacing: -.055em; transition: transform .5s var(--ad-o), opacity .3s; }
.tb-ix__l span { font-size: 16px; line-height: 1.45; color: #5d5d63; transition: opacity .3s; }
.tb-ix__l i { justify-self: end; font: 400 26px/1 'Space Grotesk', sans-serif; transition: transform .4s var(--ad-o); }
@media (hover: hover) {
  .tb-ix__l:has(a:hover) a:not(:hover) :is(b, span, i) { opacity: .28; }
  .tb-ix__l a:hover b { transform: translateX(.18em); }
  .tb-ix__l a:hover i { transform: translate(4px, -4px); }
}
.tb-ix__foto { position: absolute; left: 0; top: 0; z-index: 2; width: clamp(260px, 25vw, 400px); aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: #f2f2f4; border: 1px solid #cfd2d8; pointer-events: none; opacity: 0; clip-path: inset(50% 0 round 16px); transition: opacity .2s, clip-path .5s var(--ad-o); }
.tb-ix__foto.is-visivel { opacity: 1; clip-path: inset(0 round 16px); }
.tb-ix__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* ---------- SITES (criação de websites) ---------- */
.nz-main .tb-sites .tb__t { margin-top: clamp(12px, 2.2svh, 22px); font-size: min(11.5cqi, 24svh); white-space: nowrap; }
.tb-sites__txt { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-top: clamp(18px, 3svh, 30px); }
.tb-sites__txt .pg-topo__acoes { margin: 0; }
.nz-main .tb-sites .tb__lead { max-width: 44em; }
.tb-sites__fila { position: absolute; left: 20px; right: 20px; bottom: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; height: clamp(220px, calc(min(100svh, 1000px) - 262px - 11.5cqi), 620px); margin: 0; padding: 0; overflow: hidden; list-style: none; }
.tb-sites__fila li { transform: translateY(var(--y, 24%)); }
.tb-sites__fila li:nth-child(2) { --y: 6%; } .tb-sites__fila li:nth-child(3) { --y: 34%; } .tb-sites__fila li:nth-child(4) { --y: 14%; } .tb-sites__fila li:nth-child(5) { --y: 40%; } .tb-sites__fila li:nth-child(6) { --y: 10%; }
.tb-sites__fila a { display: block; overflow: hidden; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(13, 13, 15, .1); }
.tb-sites__fila img { position: relative; z-index: -1; display: block; width: 100%; height: auto; }

/* ---------- CÓDIGO DE BARRAS (lojas online) ---------- */
.tb-cb { padding-bottom: 26px; }
.nz-main .tb-cb .tb__t { margin-top: clamp(12px, 2.2svh, 22px); font-size: min(16.6cqi, 25svh); white-space: nowrap; }
.tb-cb__txt { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-top: clamp(16px, 2.6svh, 28px); }
.tb-cb__txt .pg-topo__acoes { margin: 0; }
.nz-main .tb-cb .tb__lead { max-width: 40em; }
.tb-passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(22px, 4.4svh, 46px) 0 clamp(20px, 3.4svh, 34px); padding: 0; list-style: none; }
.tb-passos li { padding-right: 16px; color: #a9acb3; transition: color .35s; }
.tb-passos b { display: block; font: 500 clamp(19px, 1.8vw, 28px)/1.15 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
.tb-passos span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; }
.tb-passos .is-on { color: var(--ad-ink); }
.tb-passos .is-on span { color: #5d5d63; }
.tb-cb__cod { position: relative; flex: 1; min-height: 150px; cursor: crosshair; }
.tb-cb__fita { position: absolute; inset: 0 auto 0 0; width: max(100%, 1000px); }
/* a frase curta, à largura do ecrã, só no telemóvel (partials/nz/topos/codigo) */
.tb-cb__fita--curta { display: none; width: 100%; }
@media (max-width: 767px) { .tb-cb__fita:not(.tb-cb__fita--curta) { display: none; } .tb-cb__fita--curta { display: block; } }
.tb-cb__barras { position: absolute; inset: 0 0 34px; }
.tb-cb__barras i { position: absolute; top: 0; bottom: 0; background: #0d0d0f; transform-origin: 50% 100%; }
.tb-cb__fita > span { position: absolute; bottom: 0; font: 500 clamp(13px, 1.25cqi, 18px)/1 'Space Grotesk', sans-serif; transform: translateX(-50%); }
.tb-cb__cod u { position: absolute; top: -10px; bottom: 24px; left: var(--p, 0%); width: 3px; margin-left: -1.5px; background: #3fa8f4; box-shadow: 0 0 22px 3px rgba(63, 168, 244, .55); }

/* ---------- PEÇAS (desenvolvimento) ---------- */
.tb-pc { padding-bottom: 28px; }
.tb-pc__cab { position: relative; }
.nz-main .tb-pc .tb__t { margin: clamp(12px, 2.2svh, 22px) 0 0; font-size: min(11.4cqi, 15.6svh); }
.tb-pc__txt { position: absolute; right: 0; bottom: 4px; width: min(40cqi, 520px); }   /* ao lado da segunda linha do título, que é curta */
.tb-pc__linha { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 30px; margin-top: clamp(16px, 3.4svh, 38px); }
.tb-pc__linha .pg-topo__acoes { margin: 0; }
.tb-pc__linha .pg-topo__orc { display: none; }   /* o pedido está na barra, com as peças escolhidas */
.nz-main .tb-pc__dica { margin: 0; font-family: var(--ad-body); font-size: 16px; color: #5d5d63; }
.tb-pc__l { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; min-height: 170px; margin: 0; padding: 40px 0 0; list-style: none; }
.tb-pc__l li { min-height: 0; }
.tb-pc__l button { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 14px 16px 16px; border: 2px solid #0d0d0f; border-bottom-width: 0; border-radius: 16px 16px 0 0; background: #fff; text-align: left; color: #0d0d0f; cursor: pointer; transition: transform .5s var(--ad-o), border-color .3s, color .3s, border-radius .4s; }
.tb-pc__l b { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font: 500 clamp(17px, 1.7cqi, 24px)/1.2 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
.tb-pc__l b::after { content: '−'; font-weight: 400; color: #8a8c92; }
.tb-pc__l svg { flex: 1; width: 100%; min-height: 0; margin-top: 14px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tb-pc__l svg * { vector-effect: non-scaling-stroke; }
.tb-pc__l .a { stroke: #3fa8f4; stroke-width: 3; }
/* de fora: solta, por cima da barra, a cinzento */
.tb-pc__l [aria-pressed="false"] { border: 2px dashed #cdd0d6; border-radius: 16px; color: #b3b6bc; transform: translateY(-26px); }
.tb-pc__l [aria-pressed="false"] b { color: #7d7f86; }
.tb-pc__l [aria-pressed="false"] b::after { content: '+'; }
.tb-pc__l [aria-pressed="false"] .a { stroke: currentColor; }
@media (hover: hover) { .tb-pc__l button:hover { color: #3fa8f4; } .tb-pc__l button:hover b { color: #0d0d0f; } .tb-pc__l [aria-pressed="false"]:hover { border-color: #3fa8f4; transform: translateY(-14px); } }
.tb-pc__l button:focus-visible { outline: 3px solid #3fa8f4; outline-offset: 3px; }
.tb-pc__barra { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 26px; border-radius: 0 0 20px 20px; background: #0d0d0f; color: #fff; }
.tb-pc__barra b { font: 500 clamp(20px, 1.9cqi, 28px)/1.1 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
.tb-pc__barra a { padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .45); font: 16px/1.4 var(--ad-body); color: #fff; transition: border-color .2s, color .2s; }
.tb-pc__barra a:hover { border-color: #3fa8f4; color: #3fa8f4; }
.tb-pc__barra a:focus-visible { outline: 2px solid #3fa8f4; outline-offset: 4px; }

/* ---------- TAREFAS (IA e automação) ---------- */
.tb-ta__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 16px; }
.nz-main .tb-ta .tb__t { font-size: clamp(30px, 3.1vw, 48px); line-height: 1; letter-spacing: -.045em; }
.nz-main .tb-ta__conta { margin: 0; font-size: 16px; color: #5d5d63; white-space: nowrap; }
.tb-ta__conta b { font: 500 26px/1 'Space Grotesk', sans-serif; color: var(--ad-ink); }
.tb-ta__l { margin: auto 0; padding: 0; list-style: none; }
.tb-ta__l button { display: block; width: 100%; padding: 0; border: 0; background: none; font: 500 clamp(27px, min(6.1vw, calc((100svh - 400px) / 5.6)), 108px)/1.08 'Space Grotesk', sans-serif; letter-spacing: -.055em; text-align: left; color: var(--ad-ink); cursor: pointer; }
/* o risco: uma linha azul que atravessa o texto da esquerda para a direita */
.tb-ta__l span { background: linear-gradient(#3fa8f4, #3fa8f4) 0 58% / 0 .075em no-repeat; transition: background-size .6s var(--ad-o), color .5s; }
.tb-ta__l [aria-pressed="true"] span { background-size: 100% .075em; color: #b6b9bf; }
.tb-ta__l button:focus-visible { outline: 2px solid #3fa8f4; outline-offset: 4px; }
.tb-ta__fim { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 60px; align-items: start; min-height: 110px; padding-top: 20px; border-top: 1px solid #dfe1e5; }
.nz-main .tb-ta__resp { max-width: 24em; margin: 0; font: 500 clamp(19px, 1.7vw, 26px)/1.25 'Space Grotesk', sans-serif; letter-spacing: -.025em; color: var(--ad-ink); }
.nz-main .tb-ta__fim .tb__lead { font-size: 16px; }
.tb-ta__fim .pg-topo__acoes { margin-top: 12px; }

/* ---------- LINHAS (marketing digital) ---------- */
.tb-li__txt { position: relative; pointer-events: none; }
.tb-li__txt a { pointer-events: auto; }
.nz-main .tb-li .tb__t { margin: clamp(14px, 2.6svh, 26px) 0 26px; font-size: min(13.4cqi, 25svh); }
.tb-li__g { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 20px; }
.tb-li__g i { flex: none; width: 3px; height: 100%; border-radius: 3px 3px 0 0; background: #0d0d0f; transform: scaleY(.1); transform-origin: 50% 100%; }

/* ---------- ABRE (branding) ---------- */
/* o topo fica preso (sticky) enquanto a pista passa por trás: é esse caminho que faz andar o desenho. --h é a altura dele (js): se for mais alto do que o ecrã (o telemóvel),
   prende quando o fundo dele chega ao fundo do ecrã, para o desenho estar sempre à vista */
.tb-ab { position: sticky; top: min(0px, calc(100svh - var(--h, 0px))); height: 100svh; min-height: 580px; }
.tb.tb-ab { padding-bottom: 0; }
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) { .tb-pista { height: calc(max(100svh, 580px) + 150svh); } }
.tb-ab__fases { margin-top: clamp(22px, 4.2svh, 44px); }
.tb-ab__prog { position: relative; height: 5px; border-radius: 5px; background: #e3e5e9; }
.tb-ab__prog i { position: absolute; inset: 0; border-radius: inherit; background: #3fa8f4; transform: scaleX(var(--x, .25)); transform-origin: 0 50%; }
.tb-ab .tb-passos { margin-top: 0; }
.tb-ab .tb-passos li { padding: 0; }
.tb-ab .tb-passos button { display: block; width: 100%; padding: 14px 16px 10px 0; border: 0; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.tb-ab .tb-passos button:hover { color: var(--ad-ink); }
.tb-ab .tb-passos button:focus-visible { outline: 2px solid #3fa8f4; outline-offset: 2px; }
.nz-main .tb-ab .tb__t { margin-top: clamp(12px, 2.2svh, 22px); font-size: min(9.9cqi, 22svh); white-space: nowrap; }
.tb-ab .tb-passos { margin-bottom: 0; }
/* o desenho vai de um lado ao outro do ecrã e até ao fundo; em cima desvanece, para a grelha não acabar a direito */
.tb-ab__d { position: relative; flex: 1; min-height: 180px; margin: 0 calc(var(--tb-m) * -1); overflow: hidden; -webkit-mask: linear-gradient(180deg, transparent, #000 24px); mask: linear-gradient(180deg, transparent, #000 24px); }
.tb-ab__d svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tb-ab__d svg :is(path, circle, rect) { vector-effect: non-scaling-stroke; }
:is(.tb-ab__grelha, .tb-ab__constr, .tb-ab__cont, .tb-ab__regras) { fill: none; stroke-width: 1; }
.tb-ab__grelha { stroke: #e6e8ec; }
.tb-ab__constr { stroke: #0d0d0f; }
.tb-ab__d .tb-ab__cont path { vector-effect: none; stroke: #3fa8f4; stroke-width: .75; stroke-dasharray: 1; }   /* sem o non-scaling-stroke: com ele o tracejado não segue o pathLength e o contorno desenhava-se aos bocados */
.tb-ab__regras { stroke: #3fa8f4; opacity: 0; }
.tb-ab__regras rect { stroke-dasharray: 6 6; }
.tb-ab__regras circle { stroke-dasharray: 3 3; }
.tb-ab__logo { fill: #0d0d0f; }

/* ---------- ENDEREÇO (alojamento) ---------- */
.tb-en { justify-content: space-between; background: #efefed; }
.tb-en__cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 60px; margin-top: 16px; }
.nz-main .tb-en .tb__t { font-size: clamp(34px, 4.4vw, 68px); line-height: 1; letter-spacing: -.05em; }
.tb-en__barra { --fs: 7.4cqi; display: flex; align-items: center; height: clamp(84px, 13.5cqi, 210px); padding: 0 clamp(20px, 4cqi, 64px) .04em; overflow: hidden; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(13, 13, 15, .08), 0 40px 80px -50px rgba(13, 13, 15, .5); font: 500 var(--fs)/1 'Space Grotesk', sans-serif; letter-spacing: -.055em; color: #b6b9bf; cursor: text; transition: box-shadow .25s; }
.tb-en__barra:focus-within { box-shadow: 0 0 0 3px #3fa8f4, 0 40px 80px -50px rgba(13, 13, 15, .5); }
.tb-en__barra input { flex: none; width: 6.5em; height: 1.3em; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; letter-spacing: inherit; color: var(--ad-ink); outline: 0; box-shadow: none; caret-color: #3fa8f4; }
.tb-en__fins { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.tb-en__fins button { padding: 10px 17px; border: 1px solid #cdd0d6; border-radius: 999px; background: none; font: 500 17px/1 'Space Grotesk', sans-serif; letter-spacing: -.02em; color: var(--ad-ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.tb-en__fins button:hover { border-color: #0d0d0f; }
/* o botão de procurar, no fim da barra */
.tb-en__ir { flex: none; display: grid; place-items: center; width: clamp(52px, 7cqi, 104px); aspect-ratio: 1; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: #0d0d0f; color: #fff; cursor: pointer; transition: background-color .2s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.tb-en__ir svg { width: 40%; height: 40%; }
.tb-en__ir:hover { background: #088ae8; }
.tb-en__ir:active { transform: scale(.94); }
.tb-en__ir:focus-visible { outline: 3px solid #3fa8f4; outline-offset: 3px; }
.tb-en.is-a-procurar .tb-en__ir svg { animation: tb-en-gira .9s linear infinite; }
@keyframes tb-en-gira { to { transform: rotate(360deg); } }
/* as terminações depois de procurar: livre (um ponto verde) ou ocupada (riscada, mais clara) */
/* no telemóvel as terminações ficam numa linha que desliza para o lado, até à borda do cartão (a margem negativa é a do cartão, --tb-m), a desvanecer onde corta */
@media (max-width: 767px) {
  .tb-en__fins { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--tb-m) * -1); padding: 2px var(--tb-m) 6px; scrollbar-width: none; scroll-padding-inline: var(--tb-m);
    -webkit-mask: linear-gradient(90deg, transparent, #000 var(--tb-m), #000 calc(100% - 36px), transparent); mask: linear-gradient(90deg, transparent, #000 var(--tb-m), #000 calc(100% - 36px), transparent); }
  .tb-en__fins::-webkit-scrollbar { display: none; }
  .tb-en__fins button { flex: none; }
}
.tb-en__fins button[data-estado="livre"]::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #1f9d6b; vertical-align: .1em; }
.tb-en__fins button[data-estado="ocupado"] { color: #9a9ca2; text-decoration: line-through; text-decoration-color: rgba(13, 13, 15, .35); }
.tb-en__fins button[data-estado="ocupado"][aria-pressed="true"] { color: rgba(255, 255, 255, .7); }
/* a linha de resultado: a dica antes, o estado, o email e o pedido depois */
.tb-en__res { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; min-height: 64px; font-family: var(--ad-body); }
html:not(.nz-js) .tb-en__res { visibility: hidden; }
.nz-main .tb-en__res p { margin: 0; }
.nz-main .tb-en__dica { font-size: 15px; color: #6d6e74; }
.tb-en__dica kbd { display: inline-grid; place-items: center; min-width: 26px; height: 24px; margin-right: 6px; padding: 0 6px; border: 1px solid #cdd0d6; border-bottom-width: 2px; border-radius: 6px; background: #fff; font: 13px/1 var(--ad-body); color: #3c3d42; }
.nz-main .tb-en__estado { display: flex; align-items: center; gap: 10px; font: 500 clamp(20px, 1.9vw, 28px)/1.2 'Space Grotesk', sans-serif; letter-spacing: -.03em; color: var(--ad-ink); overflow-wrap: anywhere; }
.tb-en__estado i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #9a9ca2; }
.tb-en__res.is-livre .tb-en__estado i { background: #1f9d6b; box-shadow: 0 0 0 5px rgba(31, 157, 107, .16); }
.tb-en__res.is-ocupado .tb-en__estado i { background: #d1453b; }
.nz-main .tb-en__sub { margin-top: 6px; font-size: 15px; line-height: 1.45; color: #5d5e64; }
.tb-en__sub small { display: block; font-size: 13px; color: #8a8c92; }
.tb-en__quero { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; background: #0d0d0f; font: 500 16px/1 var(--ad-body); color: #fff; transition: background-color .2s; }
.tb-en__quero::after { content: '→'; }
.tb-en__quero:hover { background: #088ae8; color: #fff; }
.tb-en__res > div { animation: tb-en-entra .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes tb-en-entra { from { opacity: 0; transform: translateY(8px); } }
.tb-en__fins [aria-pressed="true"] { border-color: #0d0d0f; background: #0d0d0f; color: #fff; }
.tb-en__fins button:focus-visible { outline: 2px solid #3fa8f4; outline-offset: 3px; }

/* ---------- POR FORA E POR DENTRO (backoffice) ---------- */
.tb-pd { align-items: center; background: #e6e8ec; text-align: center; }
.tb-pd > .pg-migalhas { align-self: flex-start; }
.nz-main .tb-pd .tb__t { margin-top: -4px; font-size: clamp(38px, min(5.6vw, 10svh), 88px); }
.nz-main .tb-pd .tb__lead { max-width: 44em; margin-top: 14px; font-size: 17px; }
.tb-pd .pg-topo__acoes { justify-content: center; margin-top: 12px; }
.tb-pd__legs { display: flex; justify-content: space-between; gap: 20px; width: min(100%, 1180px); margin-top: clamp(16px, 3svh, 32px); font-size: 15px; line-height: 1.3; color: #3c3d42; }
.tb-pd__janela { position: relative; flex: none; width: min(100%, 1180px); aspect-ratio: 16 / 10; margin-top: 12px; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(13, 13, 15, .1), 0 50px 100px -40px rgba(13, 13, 15, .5); cursor: ew-resize; touch-action: pan-y; }
.tb-pd__janela img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; user-select: none; }
.tb-pd__dentro { clip-path: inset(0 calc(100% - var(--p, 50%)) 0 0); }
.tb-pd__div { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 3px; margin-left: -1.5px; background: #3fa8f4; }
/* a pega: uma seta dupla em SVG (o carácter ↔ aparecia como emoji no iPhone) */
.tb-pd__div::after { content: ''; position: absolute; left: 50%; top: 220px; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%;
  background: #3fa8f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M8 8l-4 4 4 4M16 8l4 4-4 4'/%3E%3C/svg%3E") center / 24px no-repeat; }
.tb-pd__janela:focus-visible { outline: 3px solid #3fa8f4; outline-offset: 3px; }

/* ---------- SIMPLES (formulários, blog, utilidades, textos legais) ---------- */
.tb-simples { max-width: 1650px; margin-inline: auto; padding: 136px 15px 0; font-family: var(--ad-body); color: var(--ad-ink); }
.tb-simples .pg-migalhas ol { margin: 0; }
.tb-simples__g { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px clamp(30px, 6vw, 110px); align-items: end; margin-top: 18px; padding-bottom: clamp(24px, 3vw, 44px); border-bottom: 1px solid #dfe1e5; }
.nz-main .tb-simples .tb__t { font-size: clamp(40px, 7vw, 120px); text-wrap: balance; }
.nz-main .tb-simples .tb-simples__t--p { font-size: clamp(32px, 4.2vw, 70px); line-height: 1; letter-spacing: -.045em; }
.tb-simples__img { display: block; width: 100%; max-height: 78svh; margin-top: 24px; border-radius: 20px; object-fit: cover; }
/* a seguir a um topo simples as secções não precisam do espaço todo por cima */
.tb-simples + .pg-sec { padding-top: clamp(36px, 4vw, 60px); }
.tb-simples:has(+ .pg-sec :is(.pg-ut-lista, .er-l)) .tb-simples__g { border-bottom: 0; }   /* a lista das utilidades e a da 404 já começam com uma linha */
.tb-simples:has(+ .pg-sec .pg-ut-lista) + .pg-sec { padding-top: 0; }

@media (max-width: 1023px) { .tb { --tb-m: 24px; padding-top: 104px; } .tb--cartao { --tb-m: 16px; height: clamp(600px, calc(100svh - 16px), 940px); margin: 8px 8px 0; padding-top: 92px; } .tb-sites__fila { left: 8px; right: 8px; gap: 8px; } }
@media (max-width: 991px) {
  .tb-pc { height: auto; min-height: clamp(640px, 100svh, 1000px); }
  .tb-pc__txt { position: static; width: auto; margin-top: 18px; }
  /* as peças em grelha, inteiras e sem encaixe: a barra fica por baixo, solta */
  .tb-pc__l { flex: none; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 0; padding-top: 14px; }
  .tb-pc__l li:last-child { grid-column: span 2; }
  .tb-pc__l button { height: 190px; overflow: hidden; border-width: 2px; border-radius: 14px; }
  .tb-pc__l svg { flex: none; width: 104px; height: 120px; margin: 8px 0 0; align-self: flex-end; }
  .tb-pc__l [aria-pressed="false"] { border-radius: 14px; transform: none; }
  .tb-pc__barra { margin-top: 8px; border-radius: 14px; }
  .tb-simples__g, .tb-ta__fim { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .tb-ix__l a { grid-template-columns: minmax(0, 1fr) 24px; gap: 0 12px; padding: 10px 0 12px; }
  .tb-ix__l span { grid-column: 1; }
  .tb-ix__l i { grid-column: 2; grid-row: 1; font-size: 20px; }
  .tb-ta, .tb-en, .tb-pd { height: auto; min-height: clamp(620px, calc(100svh - 16px), 940px); }
  .tb-ta__l { margin: 34px 0; }
  .tb-en { gap: 40px; }
}
@media (max-width: 767px) {
  .tb { --tb-m: 20px; padding-bottom: 24px; }
  .tb--cartao { --tb-m: 14px; }
  .nz-main .tb__lead { font-size: 16px; }
  .tb-ix__l b { font-size: 31px; }
  .tb-ix__l span { font-size: 15px; }
  .tb-ix__foto { display: none; }
  .nz-main .tb-sites .tb__t { font-size: 15.6cqi; white-space: normal; }
  .tb-sites__fila { grid-template-columns: repeat(6, 36%); height: min(38svh, 340px); }
  .tb-ta__l li { padding: 7px 0; }
  .tb-ta__l button { font-size: clamp(25px, 7.4vw, 34px); }
  .nz-main .tb-li .tb__t { font-size: 18cqi; }
  .tb-li__g i { width: 2px; }
  .tb-en__barra { --fs: 8.2cqi; }
  .tb-cb { height: auto; min-height: clamp(640px, 100svh, 940px); }
  .nz-main .tb-cb .tb__t { font-size: 17cqi; }
  .tb-passos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .tb-cb__cod { min-height: 190px; }
  .nz-main .tb-pc .tb__t { font-size: 12.8cqi; }
  /* no telemóvel (2026-12-04): cartões numa fila que desliza (até à borda do cartão do topo, a desvanecer onde corta), cada um com o nome, o desenho e, no
     canto, um visto azul (está no sistema) ou um + (está de fora, e fica a cinzento). Sem o "subir" das que estão de fora nem o tracejado do computador */
  .tb-pc__l { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--tb-m) * -1); padding: 16px var(--tb-m) 6px;
    scroll-padding-inline: var(--tb-m); scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .tb-pc__l::-webkit-scrollbar { display: none; }
  .tb-pc__l li, .tb-pc__l li:last-child { flex: none; grid-column: auto; width: 138px; scroll-snap-align: start; }
  .tb-pc__l button { position: relative; height: 168px; padding: 13px 13px 10px; border: 1.5px solid #0d0d0f; border-radius: 16px; background: #fff; color: #0d0d0f; transform: none; }
  .tb-pc__l b { padding-right: 30px; font-size: 16px; color: inherit; }
  .tb-pc__l b::after { content: none; }
  .tb-pc__l svg { display: block; flex: 1; width: 100%; height: auto; min-height: 0; margin: 8px 0 0; }
  .tb-pc__l button::after { content: '✓'; position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #3fa8f4; font: 600 13px/1 var(--ad-body); color: #fff; }
  .tb-pc__l [aria-pressed="false"] { border: 1.5px solid transparent; border-radius: 16px; background: #eceef1; color: #a5a8ae; transform: none; }
  .tb-pc__l [aria-pressed="false"] b { color: #5d5e64; }
  .tb-pc__l [aria-pressed="false"]::after { content: '+'; background: #fff; font-size: 17px; font-weight: 400; color: #5d5e64; box-shadow: inset 0 0 0 1.5px #cdd0d6; }
  .tb-pc__barra { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; }
  .tb-ab { height: auto; min-height: 100svh; }
  .tb-ab .tb-passos { gap: 4px 12px; }
  .tb-ab .tb-passos button { padding: 10px 0 4px; }
  .nz-main .tb-ab .tb__t { font-size: 17cqi; white-space: normal; }
  .tb-ab__d { min-height: 300px; }
  .tb-cb__barras { bottom: 22px; }
  .tb-cb__cod u { bottom: 14px; }
  .nz-main .tb-pd .tb__t { margin-top: 14px; }
  .tb-pd__janela { flex: 1 0 300px; aspect-ratio: auto; }
  .tb-pd__div::after { top: 46%; width: 38px; height: 38px; margin-left: -19px; background-size: 19px; }
  .tb-pd__legs { font-size: 13px; }
  .tb-pd__legs span + span { text-align: right; }
  .tb-simples { padding-top: 104px; padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) { .tb *, .tb-ix__foto { transition: none !important; } }
