/* ===================================================================
   ATLON TECH — Premium scroll-driven
   Tokens herdados da versão estável (verdes 145/160, sem néon).
   Imagens: ou saem do próprio vídeo (mesma luz, mesmo palco), ou são UI
   do produto. Exceção codificada: screenshots REAIS de apps de clientes
   no portfólio (05) trazem a paleta do cliente — a diversidade de temas
   É a prova do white-label. Continuam proibidos: nomes de clientes em
   texto/alt/ficheiro, pessoas IA, stock, badges de loja, ícones 3D.
   Prova, Planos e FAQ ficam sem imagens.
   =================================================================== */

:root {
    color-scheme: dark;
    --hue: 145;
    --primary: hsl(var(--hue), 85%, 55%);
    --primary-dark: hsl(var(--hue), 85%, 45%);
    --primary-light: hsl(var(--hue), 85%, 72%);
    --teal: hsl(160, 80%, 50%);

    /* O mesmo quase-preto que o vídeo tem no fundo: o canvas dissolve na página */
    --bg: hsl(var(--hue), 15%, 4%);
    --bg-puro: hsl(0, 0%, 0%);
    --bg-eleva: hsl(var(--hue), 16%, 7%);

    --ink: hsl(0, 0%, 100%);
    --ink-2: hsl(var(--hue), 10%, 72%);
    --ink-3: hsl(var(--hue), 8%, 58%);
    /* Texto sobre superfícies verdes: branco dá 1.59:1 e falha AA; este dá ~11:1 */
    --on-primary: hsl(150, 35%, 7%);

    --linha: hsla(var(--hue), 40%, 30%, 0.28);
    --linha-forte: hsla(var(--hue), 50%, 45%, 0.5);

    --e1: 0 1px 2px hsla(0, 0%, 0%, .4);
    --e2: 0 4px 12px hsla(0, 0%, 0%, .5);
    --e3: 0 12px 32px hsla(0, 0%, 0%, .6);

    --r-sm: .375rem;
    --r-md: .5rem;
    --r-lg: .75rem;
    --r-xl: 1rem;
    --r-full: 9999px;

    --fonte: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --topo: 76px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--hue), 10%, 24%) var(--bg);
}

/* Fallback só para motores sem scrollbar-color (Safari, Chromium <121) */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: hsl(var(--hue), 10%, 24%);
    border-radius: 6px;
    border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: hsl(var(--hue), 12%, 32%); }

body {
    margin: 0;
    font-family: var(--fonte);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.025em;
}

p {
    margin: 0;
}

ul,
ol,
dl {
    margin: 0;
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--primary);
    color: var(--on-primary);
    text-shadow: none;
}

/* ============ Foco e skip link ============ */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 3000;
    padding: .625rem 1.25rem;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 600;
    border-radius: var(--r-md);
    transform: translateY(-200%);
    transition: transform .18s var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ============ Layout ============ */
.envolve {
    width: min(1180px, 100% - 2.5rem);
    margin-inline: auto;
}

.envolve--estreita {
    width: min(760px, 100% - 2.5rem);
}

.seccao {
    position: relative;
    padding: clamp(5rem, 12vh, 9rem) 0;
}

/* ============ Botões (alvos ≥44px) ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .875rem 1.5rem;
    border-radius: var(--r-md);
    font: inherit;
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .2s var(--ease), border-color .2s var(--ease),
        transform .2s var(--ease);
}

.btn--primario {
    background: var(--primary);
    color: var(--on-primary);
}

.btn--fantasma {
    background: transparent;
    color: var(--ink);
    border-color: var(--linha-forte);
}

/* Hover só onde hover existe: no touch o estado ficava "preso" após o tap */
@media (hover: hover) {
    .btn--primario:hover {
        background: var(--primary-light);
        transform: translateY(-1px);
    }

    .btn--fantasma:hover {
        border-color: var(--primary);
        background: hsla(var(--hue), 40%, 20%, .3);
    }
}

.btn:active {
    transform: translateY(1px);
    transition-duration: .08s;
}

a,
summary {
    -webkit-tap-highlight-color: transparent;
}

.btn--grande {
    min-height: 56px;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn--compacto {
    min-height: 44px;
    padding: .625rem 1.125rem;
    font-size: .875rem;
}

.btn--bloco {
    display: flex;
    width: 100%;
    margin-top: auto;
}

/* ============ Cabeçalho ============ */
.cabecalho {
    position: absolute;
    inset: 0 0 auto;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
    background: linear-gradient(to bottom, hsla(0, 0%, 0%, .72), transparent);
}

.cabecalho__logo img {
    height: 46px;
    width: auto;
}

/* ============ Barra persistente ============ */
.barra {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: hsla(var(--hue), 15%, 4%, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--linha);
    transform: translateY(-110%);
    transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}

.barra[data-visivel="true"] {
    transform: translateY(0);
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .35);
}

@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .barra { background: hsla(var(--hue), 15%, 4%, .98); }
}

.barra__interior {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1180px, 100% - 2.5rem);
    margin-inline: auto;
    padding: .5rem 0;
}

/* O logótipo da barra é um link para o topo: a imagem tem 34px, mas o alvo
   de toque tem de ter 44px de altura (WCAG 2.5.5). */
.barra__logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.barra__logo img {
    height: 34px;
    width: auto;
}

.barra__progresso {
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* ============ PALCO DO HERÓI ============ */
/* Bloco alto + filho sticky: pina-se e liberta-se sozinho (nada de fixed). */
.palco {
    position: relative;
    /* Piso em px: num telemóvel em paisagem (~380px de altura) 190vh dá pouco
       curso para esfregar 112 frames — o max() garante espaço de scrub sempre. */
    height: max(190vh, 900px);
}

.palco__fixo {
    position: sticky;
    top: 0;
    /* svh: a barra de URL do telemóvel faz o 100vh transbordar */
    height: 100svh;
    min-height: 420px;
    overflow: hidden;
    background: var(--bg);
}

.palco__poster,
.palco__poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.palco__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Véu: garante o contraste do texto sobre o vídeo em qualquer frame */
.palco__veu {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Paragens intermédias (curva ease-out aproximada): sem banding nem
       costura visível onde o véu encontra o vídeo. Âncoras de contraste mantidas. */
    background:
        linear-gradient(to top,
            var(--bg) 4%,
            hsla(145, 15%, 4%, .88) 16%,
            hsla(145, 15%, 4%, .55) 34%,
            hsla(145, 15%, 4%, .26) 50%,
            hsla(145, 15%, 4%, .08) 60%,
            transparent 68%),
        linear-gradient(to right,
            hsla(145, 15%, 4%, .82) 0%,
            hsla(145, 15%, 4%, .58) 22%,
            hsla(145, 15%, 4%, .35) 42%,
            hsla(145, 15%, 4%, .16) 56%,
            hsla(145, 15%, 4%, .05) 63%,
            transparent 68%);
}

.palco__texto {
    position: absolute;
    left: clamp(1.25rem, 6vw, 5rem);
    bottom: clamp(4.5rem, 14vh, 8rem);
    z-index: 2;
    max-width: min(640px, 82vw);
}

.palco__titulo {
    font-size: clamp(2.5rem, 6.4vw, 5rem);
    font-weight: 800;
    letter-spacing: -.038em;
    line-height: 1.02;
    margin: .5rem 0 0;
}

.palco__titulo>span {
    display: block;
}

.palco__sub {
    margin-top: 1rem;
    font-size: clamp(1.0625rem, 2.1vw, 1.375rem);
    color: var(--ink-2);
    font-weight: 500;
}

.palco__fase2 {
    margin-top: 1.25rem;
}

.palco__fase2 .btn {
    margin-top: 1.5rem;
}

/* Máscara de linha: o texto sobe de dentro do seu próprio contentor */
.linha-mascara {
    display: block;
    overflow: hidden;
    /* Folga SÓ em baixo: com line-height 1.02 os descendentes ('p' de App,
       'j' de Lojas) transbordam a caixa e o overflow cortava-os — o erro
       tipográfico mais visível possível num herói. O margin anula o layout. */
    padding-bottom: .12em;
    margin-bottom: -.12em;
}

.linha-mascara>span {
    display: block;
}

.js .linha-mascara>span {
    transform: translateY(115%);
}

.js .linha-mascara.dentro>span {
    transform: translateY(0);
    transition: transform .72s var(--ease);
}

.js .palco__fase2 {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px);
}

.js .palco__fase2.dentro {
    opacity: 1;
    filter: blur(0);
    transform: none;
    transition: opacity .6s var(--ease), filter .6s var(--ease), transform .6s var(--ease);
}

.sobrancelha {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--primary);
}

.palco__indicador {
    position: absolute;
    right: clamp(1.25rem, 4vw, 2.5rem);
    bottom: clamp(4.5rem, 14vh, 8rem);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .625rem;
}

.palco__fio {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, var(--primary));
}

.palco__microlabel {
    font-size: .625rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-3);
    writing-mode: vertical-rl;
}

/* Rag tipográfico: títulos equilibrados, parágrafos sem viúvas */
.palco__titulo,
.seccao__titulo,
.final__titulo,
.dor__titulo,
.cartao h3,
.painel h3 {
    text-wrap: balance;
}

.seccao__intro,
.dor p,
.cartao p,
.painel p,
.plano__para,
.faq__item p,
.rodape__frase {
    text-wrap: pretty;
}

/* ============ Rótulos editoriais numerados ============ */
.rotulo {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 1.25rem;
}

.rotulo__num {
    color: var(--primary);
}

.seccao__titulo {
    font-size: clamp(1.875rem, 4.2vw, 3.25rem);
    font-weight: 700;
    max-width: 20ch;
}

.seccao__intro {
    margin-top: 1.25rem;
    max-width: 56ch;
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    color: var(--ink-2);
}

/* ============ 01 — PROBLEMA (sem verde: a dor não usa a cor da marca) ============ */
.seccao--problema {
    background: var(--bg-puro);
    overflow: hidden;
}

.seccao--problema .rotulo__num {
    color: var(--ink-2);
}

.fantasma {
    position: absolute;
    top: 12%;
    left: 0;
    font-size: clamp(6rem, 19vw, 17rem);
    font-weight: 800;
    letter-spacing: -.05em;
    color: transparent;
    -webkit-text-stroke: 1px hsla(0, 0%, 100%, .07);
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

.preenche {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1.5px hsla(0, 0%, 100%, .55);
    transition: color .5s var(--ease), -webkit-text-stroke-color .5s var(--ease);
}

.preenche.dentro {
    color: var(--ink);
    -webkit-text-stroke-color: transparent;
}

.dores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem 2rem;
    margin-top: 4rem;
}

.dor {
    padding-top: 1.25rem;
    border-top: 1px solid hsla(0, 0%, 100%, .14);
}

.dor__titulo {
    font-size: 1.1875rem;
    font-weight: 650;
    margin-bottom: .625rem;
}

.dor p {
    color: var(--ink-3);
    font-size: .9375rem;
}

/* ============ MARQUEE ============ */
.letreiro {
    overflow: hidden;
    padding: clamp(2rem, 5vh, 3.5rem) 0;
    border-block: 1px solid var(--linha);
    user-select: none;
    /* Palavras dissolvem nas bordas em vez de baterem na moldura */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.letreiro__fita {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    white-space: nowrap;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -.035em;
    text-transform: uppercase;
    color: var(--primary);
    line-height: 1;
}

.letreiro--pequeno .letreiro__fita {
    font-size: clamp(1.5rem, 4.6vw, 3.25rem);
}

.letreiro__fita .vazado {
    color: transparent;
    -webkit-text-stroke: 1px hsla(var(--hue), 60%, 60%, .5);
}

.letreiro__fita i {
    color: hsla(var(--hue), 70%, 55%, .4);
    font-style: normal;
}

/* ============ Ritmo entre secções ============
   Dez tiras com o mesmo fundo e o mesmo padding leem-se como UMA secção
   infinita. Alternar fundo e respiração é o que dá progresso à página. */
.seccao--eco {
    background: var(--bg);
}

.seccao--func {
    background: var(--bg);
    padding-block: clamp(6rem, 15vh, 11rem);
}

.seccao--planos {
    background: var(--bg-puro);
    padding-block: clamp(6rem, 15vh, 11rem);
}

/* ============ 02 — ECOSSISTEMA ============ */
.cartoes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.cartao {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-eleva);
    border: 1px solid var(--linha);
    border-radius: var(--r-xl);
}

.cartao h3 {
    font-size: 1.0625rem;
    font-weight: 650;
    margin-bottom: .5rem;
}

.cartao p {
    font-size: .9375rem;
    color: var(--ink-3);
}

/* Mockups de UI: nítidos, em HTML/CSS — nunca dentro do vídeo */
.mock {
    height: 104px;
    margin-bottom: 1.25rem;
    border-radius: var(--r-lg);
    background: hsl(var(--hue), 18%, 10%);
    border: 1px solid var(--linha);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem;
    overflow: hidden;
}

.mock__pilula {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .375rem .625rem;
    border-radius: var(--r-full);
    border: 1px solid var(--linha-forte);
    color: var(--ink-2);
}

.mock--foto {
    position: relative;
    height: 180px;
    padding: .75rem;
    align-items: flex-end;
    justify-content: flex-start;
    gap: .375rem;
    flex-wrap: wrap;
}

.mock--foto img,
.mock--foto .mock__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    display: block;
}

/* O vídeo não recebe o zoom do hover: em movimento já tem vida própria,
   e escalar frames de vídeo custa mais do que escalar uma imagem. */
.mock--foto .mock__video {
    object-position: 50% 45%;
    transition: none;
}

.mock--foto .mock__pilula {
    position: relative;
    z-index: 1;
    background: hsla(145, 15%, 4%, .72);
}

/* Micro-interação: a imagem respira no hover. Gated a quem tem hover de
   verdade; a regra global de prefers-reduced-motion anula a transition. */
.mock--foto img {
    transition: transform .6s var(--ease);
}

@media (hover: hover) {
    .cartao:hover .mock--foto img {
        transform: scale(1.045);
    }
}

.mock--assin {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.mock__linha {
    width: 100%;
    height: 9px;
    border-radius: 4px;
    background: hsla(var(--hue), 30%, 30%, .5);
}

.mock__linha--curta {
    width: 58%;
}

.mock__selo {
    margin-top: .375rem;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--primary);
}

/* ============ 03 — FUNCIONALIDADES (sticky) ============ */
.func {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.func__fixo {
    position: sticky;
    top: calc(var(--topo) + 2rem);
}

.func__indice {
    margin-top: 2rem;
    display: grid;
    gap: .75rem;
}

.func__indice li {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink-3);
    padding-left: 1.25rem;
    border-left: 2px solid transparent;
    transition: color .3s var(--ease), border-color .3s var(--ease);
}

.func__indice li.ativo {
    color: var(--ink);
    border-left-color: var(--primary);
}

.func__painéis {
    display: grid;
    gap: 1.25rem;
}

.painel {
    padding: 2rem;
    min-height: 46vh;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: var(--bg-eleva);
    border: 1px solid var(--linha);
    border-radius: var(--r-xl);
}

.painel h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.625rem);
    font-weight: 650;
    margin-bottom: .75rem;
}

.painel p {
    color: var(--ink-2);
    max-width: 42ch;
}

/* ============ 05 — FEITO NA ATLON ============ */
.seccao--feito {
    background: var(--bg);
    overflow: hidden;
}

.galeria {
    margin-top: 3.5rem;
    overflow: hidden;
    /* As peças desfilam sozinhas — ninguém tem de descobrir que dá para
       arrastar. Máscara nas bordas: entram e saem em vez de bater na moldura. */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.galeria__fita {
    display: flex;
    gap: 1rem;
    width: max-content;
    /* 2 cópias das peças: a 50% a fita está exatamente onde começou */
    animation: desfilar 46s linear infinite;
}

@keyframes desfilar {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Pausa para quem quiser olhar com calma (rato ou teclado) */
@media (hover: hover) {
    .galeria:hover .galeria__fita { animation-play-state: paused; }
}

.galeria__fita:focus-within { animation-play-state: paused; }

.peca {
    flex: 0 0 min(232px, 64vw);
    margin: 0;
}

.peca img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--r-xl);
    border: 1px solid var(--linha);
    background: var(--bg-eleva);
}

.peca figcaption {
    margin-top: .75rem;
    font-size: .8125rem;
    color: var(--ink-3);
    text-wrap: pretty;
}

.galeria__nota {
    margin-top: 1.5rem;
    font-size: .8125rem;
    color: var(--ink-3);
}

/* ============ ILUSTRAÇÕES DOS PAINÉIS (03) ============
   Desenhadas em CSS, não são screenshots: ilustram a funcionalidade sem
   fingir ser produto. Zero bytes de imagem. Arrancam quando o painel entra
   em vista (.painel.visto) e são anuladas por prefers-reduced-motion.      */
.painel__texto {
    flex: 1;
    min-width: 0;
}

.fig {
    flex-shrink: 0;
    width: min(196px, 32%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .55rem;
    padding: 1.15rem;
    border-radius: var(--r-lg);
    background: hsl(var(--hue), 18%, 9%);
    border: 1px solid var(--linha);
    align-self: stretch;
}

/* --- 0. Treinos com IA: o plano a ser escrito, linha a linha --- */
.fig__faisca {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--primary);
    margin-bottom: .35rem;
    opacity: .9;
}

.fig__linha {
    height: 9px;
    width: var(--w);
    border-radius: 5px;
    background: hsla(var(--hue), 35%, 40%, .55);
}

.js .painel .fig__linha {
    opacity: 0;
    transform: translateX(-10px);
}

.js .painel.visto .fig__linha {
    opacity: 1;
    transform: none;
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.js .painel.visto .fig__linha:nth-of-type(2) { transition-delay: .10s; }
.js .painel.visto .fig__linha:nth-of-type(3) { transition-delay: .22s; }
.js .painel.visto .fig__linha:nth-of-type(4) { transition-delay: .34s; }
.js .painel.visto .fig__linha:nth-of-type(5) { transition-delay: .46s; }

.js .painel .fig__faisca { opacity: 0; transform: scale(.6); }
.js .painel.visto .fig__faisca {
    opacity: .9;
    transform: none;
    transition: opacity .4s var(--ease), transform .5s var(--ease);
}

/* --- 1. Gamificação: barra a encher e medalhas a assentar --- */
.fig__barra {
    height: 10px;
    border-radius: 5px;
    background: hsla(var(--hue), 25%, 22%, .8);
    overflow: hidden;
}

.fig__barra i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.js .painel.visto .fig__barra i {
    width: 78%;
    transition: width 1.1s var(--ease) .15s;
}

.fig__medalhas {
    display: flex;
    gap: .5rem;
    margin-top: .6rem;
}

.fig__medalhas span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid hsla(var(--hue), 45%, 45%, .55);
}

.fig__medalhas span:first-child {
    background: var(--primary);
    border-color: var(--primary);
}

.js .painel .fig__medalhas span { opacity: 0; transform: translateY(-8px) scale(.7); }
.js .painel.visto .fig__medalhas span {
    opacity: 1;
    transform: none;
    transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.js .painel.visto .fig__medalhas span:nth-child(2) { transition-delay: .5s; }
.js .painel.visto .fig__medalhas span:nth-child(3) { transition-delay: .65s; }

/* --- 2. Pagamentos: recebimentos a entrar um a um --- */
.fig__linha-pg {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.fig__linha-pg i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: hsla(var(--hue), 60%, 40%, .35);
}

.fig__linha-pg:first-child i { background: var(--primary); }

.fig__linha-pg b {
    height: 9px;
    flex: 1;
    border-radius: 5px;
    background: hsla(var(--hue), 35%, 40%, .5);
}

.js .painel .fig__linha-pg { opacity: 0; transform: translateY(10px); }
.js .painel.visto .fig__linha-pg {
    opacity: 1;
    transform: none;
    transition: opacity .45s var(--ease), transform .5s var(--ease);
}
.js .painel.visto .fig__linha-pg:nth-child(2) { transition-delay: .18s; }
.js .painel.visto .fig__linha-pg:nth-child(3) { transition-delay: .36s; }

/* --- 3. Área de membros: aulas a empilharem-se --- */
.fig__aula {
    height: 30px;
    border-radius: var(--r-md);
    background: hsla(var(--hue), 25%, 20%, .85);
    border-left: 3px solid var(--primary);
}

.js .painel .fig__aula { opacity: 0; transform: translateY(14px) scale(.97); }
.js .painel.visto .fig__aula {
    opacity: 1;
    transform: none;
    transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.js .painel.visto .fig__aula:nth-child(2) { transition-delay: .14s; }
.js .painel.visto .fig__aula:nth-child(3) { transition-delay: .28s; }

/* ============ 04 — PROVA ============ */
.seccao--prova {
    background: var(--bg-puro);
}

.numeros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 3rem 2rem;
    margin-top: 3rem;
}

.numero dd {
    margin: 0;
    display: flex;
    align-items: baseline;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: .95;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
}

.numero--vazado dd {
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
}

.numero__suf {
    font-size: .42em;
    margin-left: .1em;
}

.numero dt {
    margin-top: .75rem;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ============ 05 — PLANOS ============ */
.planos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
    gap: 1.25rem;
    margin-top: 3.5rem;
    align-items: stretch;
}

.plano {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    background: var(--bg-eleva);
    border: 1px solid var(--linha);
    border-radius: var(--r-xl);
}

.plano--destaque {
    border-color: var(--primary);
}

.plano__selo {
    position: absolute;
    top: -.75rem;
    left: 1.75rem;
    padding: .25rem .75rem;
    border-radius: var(--r-full);
    background: var(--primary);
    color: var(--on-primary);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.plano__nome {
    font-size: 1.5rem;
    font-weight: 700;
}

.plano__para {
    margin-top: .375rem;
    color: var(--ink-3);
    font-size: .9375rem;
}

.plano__limite {
    margin-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--linha);
    color: var(--ink-2);
}

.plano__lista {
    display: grid;
    gap: .625rem;
    margin: 1.25rem 0 2rem;
    font-size: .9375rem;
    color: var(--ink-2);
}

.plano__lista li {
    padding-left: 1.375rem;
    position: relative;
}

.plano__lista li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--primary);
}

/* ============ 07 — SERVIÇOS (compacta: discrição deliberada) ============ */
.seccao--servicos {
    background: var(--bg);
    padding-block: clamp(3.5rem, 8vh, 5.5rem);
}

.seccao__titulo--menor {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.servico {
    padding-top: 1.25rem;
    border-top: 1px solid var(--linha);
}

.servico h3 {
    font-size: 1.0625rem;
    font-weight: 650;
    margin-bottom: .375rem;
}

.servico p {
    font-size: .9375rem;
    color: var(--ink-3);
    text-wrap: pretty;
}

.seccao--servicos .btn {
    margin-top: 2.5rem;
}

/* ============ 08 — FINAL (único clímax de glow da página) ============ */
.seccao--final {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-block: clamp(6rem, 16vh, 11rem);
}

.brilho {
    position: absolute;
    left: 50%;
    top: 34%;
    width: min(1000px, 130vw);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, hsla(var(--hue), 85%, 55%, .5) 0%, transparent 62%);
    filter: blur(70px);
    opacity: 0;
    pointer-events: none;
}

.fantasma-final {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .08;
    filter: grayscale(.65);
    pointer-events: none;
}

.seccao--final .envolve {
    position: relative;
    z-index: 1;
}

.seccao--final .rotulo,
.seccao--final .seccao__intro {
    margin-inline: auto;
}

.final__titulo {
    font-size: clamp(2.25rem, 5.6vw, 4rem);
    font-weight: 800;
    letter-spacing: -.04em;
    margin-bottom: 1.25rem;
}

.seccao--final .btn {
    margin-top: 2rem;
}

/* ============ FAQ ============ */
.faq {
    margin-top: 5rem;
    text-align: left;
}

.faq__item {
    border-top: 1px solid var(--linha);
    padding: 1.25rem 0;
}

.faq__item:last-child {
    border-bottom: 1px solid var(--linha);
}

.faq__item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.0625rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 44px;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "+";
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    transition: transform .28s var(--ease), color .2s var(--ease);
}

/* Rodar o mesmo glifo (vira '×') em vez de trocar para '−': larguras iguais,
   sem salto de alinhamento, e animável. */
.faq__item[open] summary::after {
    transform: rotate(45deg);
}

@media (hover: hover) {
    .faq__item summary:hover::after {
        color: var(--primary-light);
    }
}

.faq__item[open] p {
    animation: faq-revelar .32s var(--ease) both;
}

@keyframes faq-revelar {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.faq__item p {
    margin-top: .75rem;
    color: var(--ink-2);
    max-width: 62ch;
}

/* ============ Rodapé ============ */
.rodape {
    border-top: 1px solid var(--linha);
    padding: 3.5rem 0 2.5rem;
    background: var(--bg-puro);
}

.rodape__interior {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rodape__logo {
    height: 44px;
    width: auto;
}

.rodape__frase {
    margin-top: 1.25rem;
    color: var(--ink-3);
    max-width: 46ch;
}

.rodape__contactos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rodape__contactos a {
    color: var(--ink-2);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.rodape__contactos a:hover {
    color: var(--primary);
}

.rodape__legal {
    margin-top: 2rem;
    font-size: .8125rem;
    color: var(--ink-3);
}

/* ============ Entradas de secção (JS adiciona .dentro) ============ */
.js [data-entrada] .envolve>*,
.js [data-entrada] .dor,
.js [data-entrada] .cartao,
.js [data-entrada] .plano,
.js [data-entrada] .numero {
    opacity: 0;
}

.js [data-entrada="subir"] .envolve>*,
.js [data-entrada="subir"] .cartao {
    transform: translateY(26px);
}

.js [data-entrada="escala"] .envolve>*,
.js [data-entrada="escala"] .plano {
    transform: scale(.965);
}

.js [data-entrada="nitidez"] .envolve>*,
.js [data-entrada="nitidez"] .numero {
    filter: blur(9px);
}

/* Cortina: a galeria desvenda-se de baixo para cima. Aplica-se à fita
   inteira (não peça a peça) — com a fita a desfilar, uma peça ainda não
   observada entraria em cena invisível. */
.js [data-entrada="cortina"] .galeria {
    clip-path: inset(100% 0 0 0);
    transform: translateY(14px);
}

.js [data-entrada="cortina"] .galeria.dentro {
    clip-path: inset(0 0 0 0);
    transition: clip-path .72s var(--ease), opacity .62s var(--ease),
        transform .62s var(--ease);
}

.js [data-entrada] .dentro {
    opacity: 1;
    transform: none;
    filter: none;
    /* ≤0.8s: mais lento que isto e quem faz scroll rápido lê ecrã preto */
    transition: opacity .62s var(--ease), transform .62s var(--ease), filter .62s var(--ease);
}

/* ============ Responsivo ============ */
@media (max-width: 900px) {
    .func {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .func__fixo {
        position: static;
    }

    .func__indice {
        display: none;
    }

    .painel {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .fig {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .palco__texto {
        left: 1.25rem;
        right: 1.25rem;
        max-width: none;
        bottom: clamp(3.5rem, 12vh, 6rem);
    }

    /* Sem zona lateral livre no telemóvel: o véu sobe e o texto assenta nele */
    .palco__veu {
        background: linear-gradient(to top,
            var(--bg) 38%,
            hsla(145, 15%, 4%, .78) 48%,
            hsla(145, 15%, 4%, .5) 62%,
            hsla(145, 15%, 4%, .22) 76%,
            hsla(145, 15%, 4%, .07) 83%,
            transparent 88%);
    }

    .palco__indicador {
        display: none;
    }

    .cabecalho__cta {
        display: none;
    }

    .dores {
        gap: 1.75rem;
    }
}

/* ============ Movimento reduzido ============ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    /* Tudo em repouso legível: nada depende de JS para aparecer */
    .js .linha-mascara>span,
    .js .palco__fase2,
    .js [data-entrada] .envolve>*,
    .js [data-entrada] .dor,
    .js [data-entrada] .cartao,
    .js [data-entrada] .plano,
    .js [data-entrada] .galeria,
    .js [data-entrada] .numero {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
    }

    .preenche {
        color: var(--ink);
        -webkit-text-stroke-color: transparent;
    }

    .js .painel .fig__linha,
    .js .painel .fig__faisca,
    .js .painel .fig__medalhas span,
    .js .painel .fig__linha-pg,
    .js .painel .fig__aula {
        opacity: 1 !important;
        transform: none !important;
    }

    .js .painel .fig__barra i {
        width: 78% !important;
    }

    /* Sem animação, a fita volta a ser uma faixa arrastável manualmente */
    .galeria {
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .galeria__fita {
        animation: none !important;
    }

    .peca {
        scroll-snap-align: start;
    }
}
