/* Tipografia única para o site todo: mesma família em tudo (também em botões, campos e demos, sem monoespaçada),
   com o estilo "arredondado" da secção Como funciona (negrito, espaçamento apertado).
   Hierarquia: título do hero > títulos de secção > títulos de passo/cartão. Só muda tamanho, peso e cor. */
:root { --mono: var(--sans); --h2-size: clamp(26px, 3vw, 34px); } /* tamanho único dos títulos de secção */
body, button, input, select, textarea, summary, label { font-family: var(--sans); }

/* hero: o maior */
.hero h1 { font-weight: 700; font-size: clamp(34px, 4.8vw, 62px); line-height: 1.05; letter-spacing: -.03em; max-width: 880px; }
.hero .lead { font-size: 18px; line-height: 26px; color: #bdbdbd; max-width: 600px; }

/* títulos de secção: mais pequenos */
#problem .sec-title h2, #features .sec-title h2, #how .sec-title h2, #faq .sec-title h2,
.tl-h, .bx-info h2 { font-weight: 700; font-size: var(--h2-size); line-height: 1.1; letter-spacing: -.03em; }
.sec-title .sub, #how .sec-title .sub, .bx-sub { font-size: 17px; line-height: 25px; color: #bdbdbd; }

/* títulos dentro das secções: mais pequenos ainda, mesmo estilo */
.fxt h2 { font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
.tm-c h3 { font-weight: 700; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.08; letter-spacing: -.025em; }
.tm-k { font-weight: 500; }
.tl-card h3 > span.fg, .tl-sec h3 > span.fg { font-weight: 600; letter-spacing: -.02em; }

/* Mais respiração: margem entre secções e entre título e conteúdo; títulos de secção maiores */
:root { --pad-y: clamp(80px, 9vw, 128px); --h2-size: clamp(30px, 4vw, 46px); }
.tight-top { padding-top: 0; }
.sec-title.center, .sec-title { margin-bottom: clamp(48px, 5.5vw, 72px); }
.tl-grid { margin-top: clamp(36px, 4vw, 56px); }
.tm { margin-top: clamp(72px, 8vw, 104px); }
#faq .fq { margin-top: 0; }
.tl { margin-top: clamp(96px, 10vw, 140px); }
.fxs { gap: clamp(72px, 8vw, 104px); }
/* um só espaço entre secções (em vez de somar o fim de uma com o início da seguinte) */
main > section + section { padding-top: 0; }
main > .hero { padding-bottom: var(--pad-y); }
/* ainda mais espaço entre secções */
:root { --pad-y: clamp(112px, 13vw, 190px); }
/* fundo preto */
:root { --bg: #000; }

/* CTA final: centrado, só texto e botão, com brilho azul difuso por trás */
.cf-in { position: relative; isolation: isolate; text-align: center; max-width: 760px; margin-inline: auto; padding-block: clamp(24px, 4vw, 48px); }
.cf-in::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(640px, 100%); height: 260px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(143, 176, 224, .26), transparent); filter: blur(34px); pointer-events: none; }
.cf-in h2 { margin: 0; font-weight: 700; font-size: var(--h2-size); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.cf-in p { margin: 16px auto 28px; max-width: 46ch; font-size: 17px; line-height: 25px; color: #bdbdbd; }
.cf-in .pill.lg { height: 44px; padding: 0 28px; font-size: 16px; }

/* Rodapé: marca e subtítulo à esquerda, duas colunas à direita (Connect AI com logótipos; Contacto e legal), linha e © centrado */
footer { padding: 64px 0 40px; border-top: .67px solid var(--border); color: var(--muted); font-size: 14px; }
.ft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.ft-brand { grid-column: 1 / -1; }
@media (min-width: 800px) { .ft-grid { grid-template-columns: 1fr auto auto; gap: 40px 96px; } .ft-brand { grid-column: auto; } }
.ft-name { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--fg); font: 500 14px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.ft-name i { width: 11px; height: 11px; border: 1.5px solid var(--fg); border-radius: 50%; border-right-color: transparent; transform: rotate(-30deg); display: block; }
.ft-sub { margin: 14px 0 0; max-width: 32ch; font-size: 16px; line-height: 24px; color: var(--muted); }
footer .ft-small { margin: 14px 0 0; max-width: 40ch; font-size: 12px; line-height: 18px; }
footer .ft-small.pending { margin-top: 8px; }
.ft-col h2 { margin: 0 0 14px; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: var(--fg); }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ft-col li { display: flex; align-items: center; gap: 8px; }
.ft-col img { width: 16px; height: 16px; display: block; flex: none; }
.ft-col a { color: var(--muted); text-decoration: none; transition: color .15s; }
.ft-col a:hover, .ft-col a:focus-visible { color: var(--fg); }
.ft-bottom { margin-top: 56px; padding-top: 24px; border-top: .67px solid var(--border); text-align: center; }
.ft-bottom p { margin: 0; font-size: 14px; color: var(--muted); }
footer .page > p { max-width: none; }

/* sem letras amarelas: o antigo amarelo de aviso passa a branco suave */
:root { --warn: rgba(243, 241, 234, .75); }
.pillchip.before { border-color: rgba(243, 241, 234, .3); }
.sl.hot.on { background: rgba(243, 241, 234, .06); }
.notice { border-color: rgba(243, 241, 234, .16); }
/* rodapé: espaçamento uniforme entre a marca e as colunas */
.ft-grid { gap: 40px 48px; }
@media (min-width: 800px) { .ft-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px 48px; } }
/* rodapé: marca afastada da borda, colunas juntas, o conjunto centrado (sem ficar nos extremos) */
@media (min-width: 800px) {
  .ft-grid { display: flex; justify-content: center; align-items: flex-start; gap: 56px; }
  .ft-brand { margin-right: clamp(32px, 7vw, 112px); max-width: 280px; }
}
/* rodapé: mais espaço entre a marca e as colunas */
@media (min-width: 800px) { .ft-brand { margin-right: clamp(64px, 12vw, 200px); } }
/* rodapé: sem linha no topo e mais perto da secção de cima */
footer { border-top: 0; padding-top: 24px; }
main > .cf { padding-bottom: clamp(24px, 4vw, 48px); }
main > .cf { padding-bottom: 8px; } .cf-in { padding-bottom: 0; }
main > .cf { padding-bottom: 32px; }
main > .cf { padding-bottom: 66px; }
main > .cf { padding-bottom: 120px; }

/* cartões todos arredondados: cartões grandes 22 px, janelas e painéis dentro deles 12–14 px */
.card, .pcard, .fx, .feat, .quote, .media, .tl-card, .tl-sec, .bx, .table-wrap, .consent, .notice { border-radius: 22px; }
.pvis, .fxm { border-radius: 14px; }
.tl-box, .bx-win, .cw, .app { border-radius: 12px; }
.pcard .pvis { overflow: hidden; }

/* secção de compra: fundo do cartão mais escuro */
.bx { background: #0b0b0a; box-shadow: inset 0 0 0 .67px rgba(243, 241, 234, .06); }
.bx-info .consent { background: rgba(243, 241, 234, .05); }

/* Demo do hero: mesma janela de Mac com o Claude das outras demonstrações */
.media .cw.hw { position: relative; inset: auto; z-index: 1; width: 88%; aspect-ratio: 16 / 9; font-size: clamp(10.5px, 1.1vw, 14px); }
@media (max-width: 640px) { .media .cw.hw { width: 100%; aspect-ratio: 4 / 6.4; font-size: 12px; } }
.hw .scene { padding: 1.2em 1.4em; }
.hw .scene.hw-chat { padding: 0; display: block; overflow: hidden; }
.hw .cw-msgs { max-width: 46em; margin-inline: auto; }
.hw .s-title { font-size: 1.9em; font-weight: 700; letter-spacing: -.03em; }
.hw .qcard { background: #1b1b18; border: .67px solid #2b2b26; border-radius: .7em; }

/* Hero: títulos rotativos com efeito de escrita */
.tw-h1 { min-height: 2.2em; display: flex; align-items: center; justify-content: center; }
.tw-h1 .tw { display: inline; }
.tw-caret { display: inline-block; width: .06em; height: .95em; margin-left: .08em; background: currentColor; vertical-align: -.1em; animation: twblink 1s steps(1) infinite; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes twblink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tw-caret { animation: none; } }
@media (max-width: 640px) { .tw-h1 { min-height: 4.4em; } }

/* Segurança / bancos: três cartões com ilustração (estáticos), ao estilo do site de referência */
.sc .tl-h { max-width: none; }
.sc-grid { margin-top: 28px; }
.sc-card { display: flex; flex-direction: column; background: var(--card); border-radius: 22px; overflow: hidden; height: 100%; }
.sc-vis { position: relative; height: 250px; overflow: hidden; display: grid; place-items: center; background: #151513; }
.sc-t { padding: 26px 24px 30px; display: flex; flex-direction: column; flex: 1; }
.sc-e { margin: 0 0 14px; font: 500 12px/1 var(--mono, ui-monospace, monospace); letter-spacing: .16em; color: var(--muted); }
.sc-t h3 { margin: 0; font-size: 24px; line-height: 1.22; letter-spacing: -.02em; font-weight: 500; color: var(--fg); text-wrap: balance; }
.sc-p { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.sc-link { margin-top: auto; padding-top: 18px; color: var(--fg); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #5d5c54; }
.sc-link:hover { text-decoration-color: var(--fg); }
/* 1: ecrã de início de sessão no banco */
.sc-dots { background-image: radial-gradient(#2b2b26 1.2px, transparent 1.3px); background-size: 14px 14px; -webkit-mask-image: none; }
.sc-login { width: min(78%, 280px); background: #1f1f1b; border: .67px solid #2f2f2a; border-radius: 14px; padding: 16px 16px 18px; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.sc-lh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 13px; }
.sc-bk { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); }
.sc-bk b { font-weight: 600; }
.sc-sec { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.sc-fl { margin: 10px 0 5px; font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.sc-in { height: 28px; border-radius: 8px; background: #151513; border: .67px solid #2f2f2a; }
.sc-bt { margin-top: 16px; height: 32px; border-radius: 8px; background: var(--fg); color: #121210; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
/* 2: órbita de instituições */
.sc-orbit { background: radial-gradient(circle at 50% 50%, #1b1f1c 0%, #151513 70%); }
.sc-orbit .r { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: .67px solid #2a302c; transform: translate(-50%, -50%); }
.sc-orbit .r1 { width: 110px; height: 110px; } .sc-orbit .r2 { width: 190px; height: 190px; } .sc-orbit .r3 { width: 270px; height: 270px; }
.sc-c { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--fg); color: #121210; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.sc-b { position: absolute; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.sc-b.b1 { left: 14%; top: 14%; background: #2f5fd0; } .sc-b.b2 { left: 44%; top: 6%; background: #c8342f; } .sc-b.b3 { right: 12%; top: 14%; background: #c9822a; }
.sc-b.b4 { left: 22%; bottom: 14%; background: #1f9d6b; } .sc-b.b5 { right: 26%; bottom: 10%; background: #1e4f73; } .sc-b.b6 { right: -12px; top: 46%; background: #17808a; }
/* 3: mapa de pontos da Europa */
.sc-eu { background: #151513; }
.sc-map { width: 100%; height: 100%; fill: #6a6a60; }
@media (max-width: 767px) { .sc-vis { height: 230px; } }
 }

/* Notas antes de comprar: a lista abre e fecha com a altura a animar (o cartão cresce e recolhe); a demo da esquerda mantém o tamanho */
.bx-notes { margin-top: 18px; padding: 18px 0 0; border-bottom: 0; font-size: 14px; color: var(--muted); }
.bx-notes .nt-s { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 0 18px; background: none; border: 0; border-bottom: .67px solid var(--border); color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.bx-notes .nt-s::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.bx-notes.open .nt-s::after { content: "−"; }
.bx-notes .nt-w { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.bx-notes.open .nt-w { grid-template-rows: 1fr; }
.bx-notes .nt-l { min-height: 0; overflow: hidden; margin: 0; padding: 0 0 0 18px; opacity: 0; transition: opacity .3s ease, padding-top .4s ease; }
.bx-notes.open .nt-l { opacity: 1; padding-top: 14px; }
@media (prefers-reduced-motion: reduce) { .bx-notes .nt-w, .bx-notes .nt-l { transition: none; } }
@media (min-width: 1024px) { .bx-vis { height: 700px; min-height: 0; align-self: start; } }

.fq-a a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #5d5c54; }
.fq-a a:hover { text-decoration-color: var(--fg); }
.cf-in h2 + .pill { margin-top: 40px; }

/* As demos animadas mudam de altura; sem isto o browser "ancora" o scroll a esses elementos e a página desliza sozinha */
html, body, [data-demo], .pvis, .media { overflow-anchor: none; }

/* Barra de idioma (primeira visita): fixa em baixo, retangular, largura toda */
.lp { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #141412; border-top: .67px solid #2b2b26; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform .3s ease; }
.lp.show { transform: none; }
.lp-in { position: relative; max-width: 1200px; margin: 0 auto; padding: 16px 64px 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.lp-t { margin: 0; font-size: 16px; font-weight: 600; color: var(--fg); }
.lp-a { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp-go, .lp-sel { height: 40px; border-radius: 10px; font: inherit; font-size: 15px; cursor: pointer; }
.lp-go { padding: 0 22px; border: 0; background: var(--fg); color: #121210; font-weight: 600; }
.lp-sel { padding: 0 12px; border: .67px solid #3a3a34; background: rgba(243, 241, 234, .06); color: var(--fg); }
.lp-sel option { background: #1b1b18; color: var(--fg); }
.lp-x { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(243, 241, 234, .08); color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 640px) { .lp-in { padding: 14px 56px 14px 16px; } .lp-t { width: 100%; } .lp-go { flex: 1 1 auto; } }
@media (prefers-reduced-motion: reduce) { .lp { transition: none; } }
.lang select { max-width: 140px; }
.lang select { text-align: center; text-align-last: center; padding: 0 14px; }
.lang option { text-align: center; text-align-last: center; }

/* Logótipo: símbolo A+S (SVG) no cabeçalho e no rodapé */
.brand-mark { display: block; flex: none; width: auto; height: 20px; }
.ft-name .brand-mark { height: 18px; }

/* Telemóveis: a moldura das demos nunca colapsa (alguns browsers móveis perdem a altura do aspect-ratio com container-type) */
.fxm { min-height: 360px; }
@media (min-width: 900px) { .fxm { min-height: 0; } }

/* Telemóvel: a janela das demos das funcionalidades ocupa a largura toda do cartão */
@media (max-width: 899px) {
  .fxm .cw { left: 0; right: 0; bottom: 0; top: 8%; border-radius: 12px 12px 0 0; border-left: 0; border-right: 0; }
}

/* iPhone/Safari: com aspect-ratio + container-type, a moldura da demo ficava mais estreita que o cartão e encostada à esquerda.
   Largura explícita a 100% e altura vinda do aspect-ratio (sem esticar na vertical). */
@media (max-width: 899px) {
  .fx { grid-template-columns: minmax(0, 1fr); }
  .fxm { width: 100%; max-width: 100%; justify-self: stretch; align-self: start; height: auto; }
}

/* Os botões de compra levam à parte da compra do cartão (preço e botão), não à demo que está por cima no telemóvel */
#buy { scroll-margin-top: -36px; }
@media (min-width: 1024px) { #buy { scroll-margin-top: 0; } }
