/* Hero da página inicial — variante A «Da mesa ao dossier» (founder, página de decisões de design, 16-nov-2026: m2 variante A,
   p9 novos tempos). Especificação: wte-work/design-ux-20261116/maquetes/hero-a/ e as ressalvas de REVISAO-HERO.md.
   O título fica à esquerda; à direita (por baixo, no telemóvel) a folha «Your plan», legível desde o instante 0: régua de graus
   no topo, linha de rota a ligar os quatro vistos, rosa-dos-ventos que aponta a linha que acende. O caos (portais, passaportes,
   formulários) é criado pelo animated-hero.js só quando a animação vai correr e entra, cartão a cartão, na sua linha.
   Só transform e opacity; corre uma vez; com movimento reduzido ou sem JS o plano está pronto e não se pede nenhuma imagem. */
.wte-animated-hero{--ink:#082F2B;--green:#1A5C50;--green2:#15594F;--orange:#A84A20;--paper:#F8F8F3;--mint:#EDF5F3;--line:#D8E1D9;--apricot:#FFB37A;--ease:cubic-bezier(.22,1,.36,1);
 --serif:WF,Fraunces,Georgia,"Times New Roman",serif;--sans:WI,Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
 --w:min(100vw - 32px,560px);--h:212px;--hd:48px;--rh:40px;--lz:204px;--zw:min(var(--w) - var(--lz) + 12px,200px);--k:.052;--s:.3;
 position:relative;overflow:hidden;margin:0;padding:0;color:var(--ink);font-family:var(--sans);color-scheme:light;border-bottom:1px solid var(--line);
 background:var(--paper) linear-gradient(rgba(8,47,43,.045) 1px,transparent 1px) 0 0/28px 28px}
.wte-animated-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,47,43,.045) 1px,transparent 1px) 0 0/28px 28px;pointer-events:none}
.wte-animated-hero *,.wte-animated-hero *::before,.wte-animated-hero *::after{box-sizing:border-box}
.wte-animated-hero a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
.wte-animated-hero button{font:inherit;-webkit-tap-highlight-color:transparent}
.wte-animated-hero a:focus-visible,.wte-animated-hero button:focus-visible{outline:3px solid var(--green);outline-offset:3px;border-radius:8px}
.wte-animated-hero .hero-in{position:relative;display:grid;gap:14px;max-width:1228px;margin:0 auto;padding:16px 16px 56px}
.wte-animated-hero .hero-copy{min-width:0}
.wte-animated-hero .hero-copy h1{margin:0;font:530 clamp(27px,7.9vw,34px)/1.1 var(--serif);letter-spacing:-.018em;color:var(--ink);text-wrap:balance;max-width:none}
.wte-animated-hero .hero-copy h1 em{position:relative;display:inline-block;font-style:normal;color:var(--orange)}
/* sublinhado que se desenha em «where» e «how» (só scaleX); o título nunca fica escondido */
.wte-animated-hero .hero-copy h1 em::after{content:"";position:absolute;left:0;right:0;bottom:.03em;height:max(2px,.045em);border-radius:2px;background:currentColor;transform-origin:0 50%;animation:wah-uline .6s var(--ease) 2s backwards}
.wte-animated-hero .hero-copy h1 em:last-of-type::after{animation-delay:2.25s}
.wte-animated-hero .hero-money{margin:8px 0 0;font:500 clamp(16px,4.4vw,18px)/1.35 var(--sans);color:var(--ink)}
.wte-animated-hero .cta{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:12px;min-height:54px;padding:0 24px;border-radius:8px;background:var(--orange);color:#fff;font:600 17px/1 var(--sans);box-shadow:0 12px 22px -16px rgba(8,47,43,.55)}
.wte-animated-hero .cta svg{width:22px;height:22px;flex:none}
.wte-animated-hero .cta:hover{background:#9C4720}
.wte-animated-hero .hero-copy>p:last-child{margin:9px 0 0;font:500 clamp(12.5px,3.5vw,14px)/1.4 var(--sans);color:var(--green2);text-wrap:balance}

/* Palco: a folha «Your plan» é um registo de atlas */
.wte-animated-hero .hero-stage{position:relative;width:var(--w);height:var(--h);margin:0 auto}
.wte-animated-hero .hero-rose{position:absolute;left:50%;top:58%;width:calc(var(--w)*1.12);height:auto;aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none;clip-path:inset(calc(50% - var(--h)*.58 - 4px) 0 0)}
.wte-animated-hero .hero-scene,.wte-animated-hero .hero-sheet-wrap{position:absolute;inset:0}
.wte-animated-hero .hero-sheet-wrap::before,.wte-animated-hero .hero-sheet-wrap::after{content:"";position:absolute;inset:6px 9px -5px;border:1px solid var(--line);border-radius:16px;background:#F5F1E8;transform:rotate(-1.1deg)}
.wte-animated-hero .hero-sheet-wrap::after{inset:4px 5px -3px;background:#FFFEF8;transform:rotate(.8deg)}
.wte-animated-hero .hero-sheet{position:absolute;inset:0;z-index:1;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px rgba(8,47,43,.05),0 20px 36px -26px rgba(8,47,43,.32);overflow:hidden}
/* régua cartográfica: marca curta a cada 6 px, comprida a cada 30 px */
.wte-animated-hero .hero-sheet::before{content:"";position:absolute;left:14px;right:14px;top:0;height:9px;pointer-events:none;
 background:linear-gradient(90deg,rgba(8,47,43,.16) 1px,transparent 1px) 0 0/30px 9px repeat-x,linear-gradient(90deg,rgba(8,47,43,.13) 1px,transparent 1px) 0 0/6px 5px repeat-x}
.wte-animated-hero .hero-sheet h2{margin:0;height:calc(var(--hd) - 1px);padding:3px 14px 0;font:520 21px/calc(var(--hd) - 4px) var(--serif);letter-spacing:-.01em!important;color:var(--ink)}
.wte-animated-hero .hero-cmp{position:absolute;right:8px;top:calc(var(--hd)/2 - 19px);width:40px;height:40px}
.wte-animated-hero .needle{transform-origin:24px 24px;transform:rotate(-90deg)}
/* linha de rota: liga os quatro pontos de passagem (os vistos) */
.wte-animated-hero .hero-route{position:absolute;z-index:1;left:22px;top:calc(var(--hd) + var(--rh)/2);width:2px;height:calc(var(--rh)*3);background:var(--line)}
.wte-animated-hero .hero-route u{display:block;height:100%;background:var(--apricot);transform-origin:50% 0}
.wte-animated-hero .hero-sheet ol{list-style:none;margin:0;padding:0}
.wte-animated-hero .hero-sheet li{position:relative;display:flex;align-items:center;gap:8px;height:var(--rh);padding:0 12px;border-top:1px solid var(--line)}
.wte-animated-hero .hl{position:absolute;z-index:0;inset:0;background:var(--mint);opacity:0}
.wte-animated-hero .ok,.wte-animated-hero .tx,.wte-animated-hero .ic{position:relative;z-index:2}
.wte-animated-hero .ok{flex:none;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1.5px #267A6B}
.wte-animated-hero .ic svg,.wte-animated-hero .ok svg{display:block;width:100%;height:100%}
.wte-animated-hero .tx{flex:1;min-width:0;display:flex;align-items:center;gap:9px}
.wte-animated-hero .tx b{font:600 13.5px/1.2 var(--sans);color:var(--ink);white-space:nowrap}
.wte-animated-hero .bar{flex:1;min-width:8px;height:6px;border-radius:4px;background:var(--mint);overflow:hidden}
.wte-animated-hero .bar u{display:block;height:100%;border-radius:4px;background:var(--line);transform-origin:0 50%}
.wte-animated-hero .b2{display:none}
.wte-animated-hero .ic{flex:none;width:20px;height:20px;color:var(--green)}
.wte-animated-hero .r1{--t:2.05s}.wte-animated-hero .r2{--t:2.55s}.wte-animated-hero .r3{--t:3.1s}.wte-animated-hero .r4{--t:3.6s}

/* Só com a classe .run (posta pelo JS quando a animação vai correr): linhas «por fazer» que acendem quando recebem os seus cartões */
.wte-animated-hero .run .ok svg{animation:wah-ok .35s var(--ease) var(--t) backwards}
.wte-animated-hero .run .bar u{animation:wah-fill .3s ease-out var(--t) backwards}
.wte-animated-hero .run .ic{animation:wah-ic .3s ease-out var(--t) backwards}
.wte-animated-hero .run .hl{animation:wah-hl .9s ease-out var(--t)}
.wte-animated-hero .run .hero-route u{animation:wah-route 3.6s cubic-bezier(.4,0,.2,1) backwards}
.wte-animated-hero .run .needle{animation:wah-needle 4.3s cubic-bezier(.45,0,.2,1) backwards}

/* Mesa: os cartões vivem à direita das etiquetas; o recorte à esquerda faz cada cartão entrar por baixo da coluna das etiquetas, sem nunca as tapar */
.wte-animated-hero .hero-desk{position:absolute;inset:0;z-index:2;pointer-events:none;clip-path:inset(calc(var(--hd) - 2px) -16px -40px var(--lz))}
.wte-animated-hero .hero-warns{position:absolute;inset:0;z-index:3;pointer-events:none}
.wte-animated-hero .card{position:absolute;left:0;top:0;width:calc(var(--zw)*var(--cw));font-size:max(5.5px,calc(var(--zw)*var(--k)));transform-origin:0 0;animation:wah-tuck .6s cubic-bezier(.5,0,.2,1) var(--d) both}
.wte-animated-hero .in{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;box-shadow:0 14px 26px -16px rgba(8,47,43,.4);animation:wah-mess .45s cubic-bezier(.3,0,.2,1) calc(1s + var(--i)*.03s) backwards}
.wte-animated-hero .in img{display:block;width:100%;height:auto;background:#E7EEE7}
.wte-animated-hero .photo .in{padding:.4em}
.wte-animated-hero .pb{display:flex;align-items:center;gap:.35em;height:2.3em;padding:0 .7em;background:var(--mint);border-bottom:1px solid var(--line);font:500 1em/1 var(--sans);color:var(--green2);white-space:nowrap}
.wte-animated-hero .pb i{flex:none;width:.5em;height:.5em;border-radius:50%;background:var(--line)}
.wte-animated-hero .pb span{margin-left:.5em;overflow:hidden;text-overflow:ellipsis}
.wte-animated-hero .vf{padding:1em 1.1em 1.2em;display:grid;gap:.75em;font:500 .9em/1.2 var(--sans);color:var(--green2)}
.wte-animated-hero .vf strong{font:700 1.05em/1.2 var(--sans);letter-spacing:.05em;text-transform:uppercase;color:var(--ink)}
.wte-animated-hero .vf p{margin:0;display:flex;align-items:flex-end;gap:.6em;white-space:nowrap}
.wte-animated-hero .vf p i{flex:1;border-bottom:1px solid var(--line)}
/* avisos em Inter sobre papel (sem a fonte mono: menos 31 kB); somem aos 0,78 s, o primeiro cartão mexe ao 1,0 s */
.wte-animated-hero .warn{position:absolute;left:0;top:0;--wx:calc(var(--w) + 6px - 100%);display:inline-flex;align-items:center;gap:5px;padding:5px 8px 5px 7px;border:1px solid var(--orange);border-radius:6px;background:#fff;color:var(--orange);font:600 12px/1.2 var(--sans);white-space:nowrap;box-shadow:0 8px 16px -12px rgba(8,47,43,.5);opacity:0;
 transform:translate(var(--wx),calc(var(--hd) + var(--rh)*var(--row) + var(--rh)*.5 - 13px)) rotate(0deg) scale(.9);animation:wah-warn .28s ease-in .5s backwards}
.wte-animated-hero .warn svg{width:13px;height:13px;flex:none}
/* cartões: --row linha de destino (0–3), --cw largura e --ax posição (fracções da zona à direita das etiquetas), --ay altura (fracção do palco), --r inclinação, --d partida */
.wte-animated-hero .c1{--i:0;--row:0;--cw:.8;--ax:.1;--ay:.21;--r:-5deg;--d:1.5s}
.wte-animated-hero .c2{--i:1;--row:1;--cw:.56;--ax:.42;--ay:.36;--r:6deg;--d:2s}
.wte-animated-hero .c3{--i:2;--row:2;--cw:.66;--ax:.08;--ay:.57;--r:4deg;--d:2.5s}
.wte-animated-hero .c5{--i:3;--row:2;--cw:.62;--ax:.4;--ay:.69;--r:-7deg;--d:2.62s}
.wte-animated-hero .c4{--i:4;--row:3;--cw:.76;--ax:.18;--ay:.62;--r:-3deg;--d:3s}
.wte-animated-hero .w2{--row:3;--r:2deg}.wte-animated-hero .w3{--row:2;--r:-3deg}

/* Pause e Replay por baixo da folha, à esquerda (fora da folha do plano) */
.wte-animated-hero .toolbar{position:absolute;left:-11px;top:calc(100% + 6px);z-index:6;display:flex}
.wte-animated-hero .toolbar[hidden]{display:none}
.wte-animated-hero .toolbar button{width:44px;height:44px;padding:0;display:grid;place-items:center;border:0;border-radius:8px;background:none;color:var(--green);cursor:pointer}
.wte-animated-hero .toolbar button:hover{color:var(--ink);background:var(--mint)}
.wte-animated-hero .toolbar svg{width:20px;height:20px}
.wte-animated-hero .toolbar .play-icon,.wte-animated-hero .toolbar .is-paused .pause-icon{display:none}
.wte-animated-hero .toolbar .is-paused .play-icon{display:block}
.wte-animated-hero .toolbar [aria-disabled=true]{cursor:default}.wte-animated-hero .toolbar [aria-disabled=true] svg{opacity:.4}

@keyframes wah-tuck{0%{opacity:1;transform:translate(calc(var(--lz) + var(--zw)*var(--ax)),calc(var(--h)*var(--ay))) scale(1)}72%{opacity:1}
 100%{opacity:0;transform:translate(calc(var(--lz) - var(--zw)*var(--cw)*var(--s)),calc(var(--hd) + var(--rh)*var(--row) + var(--rh)*.5 - var(--zw)*var(--cw)*var(--s)*.4)) scale(var(--s))}}
@keyframes wah-mess{from{transform:rotate(var(--r))}to{transform:rotate(0deg)}}
@keyframes wah-warn{from{opacity:1;transform:translate(var(--wx),calc(var(--hd) + var(--rh)*var(--row) + var(--rh)*.5 - 13px)) rotate(var(--r)) scale(1)}}
@keyframes wah-fill{from{transform:scaleX(0)}}
@keyframes wah-ok{from{opacity:0;transform:scale(.5)}}
@keyframes wah-ic{from{opacity:.3}}
@keyframes wah-hl{0%{opacity:0}22%{opacity:1}100%{opacity:0}}
@keyframes wah-uline{from{transform:scaleX(0)}}
@keyframes wah-route{0%,57%{transform:scaleY(0)}71%{transform:scaleY(.333)}86%{transform:scaleY(.667)}100%{transform:scaleY(1)}}
/* a agulha hesita enquanto há caos, aponta cada linha quando ela acende e pára virada para o título do plano */
@keyframes wah-needle{0%{transform:rotate(14deg)}8%{transform:rotate(-22deg)}18%{transform:rotate(24deg)}33%{transform:rotate(6deg)}47%,52%{transform:rotate(-105deg)}59%,64%{transform:rotate(-118deg)}71%,77%{transform:rotate(-128deg)}83%,91%{transform:rotate(-136deg)}100%{transform:rotate(-90deg)}}
.wte-animated-hero .hero-scene.paused *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.wte-animated-hero .hero-scene *,.wte-animated-hero .hero-copy h1 em::after{animation:none!important}}

@media(max-width:359px){.wte-animated-hero{--lz:198px}.wte-animated-hero .tx b{font-size:13px}}
/* telemóvel com altura para isso (ex.: 390×664): mais ar e folha maior, ainda inteira no primeiro ecrã */
@media(min-width:370px) and (max-width:759px) and (min-height:640px){
 .wte-animated-hero{--h:236px;--hd:50px;--rh:46px}
 .wte-animated-hero .hero-in{gap:16px;padding-top:22px;padding-bottom:58px}
 .wte-animated-hero .hero-copy h1{font-size:clamp(31px,8.5vw,35px)}
 .wte-animated-hero .hero-money{margin-top:10px}.wte-animated-hero .cta{margin-top:16px}.wte-animated-hero .hero-copy>p:last-child{margin-top:10px}
}
@media(min-width:760px) and (max-width:999px){.wte-animated-hero .hero-in{padding-top:32px;padding-bottom:64px;max-width:608px}.wte-animated-hero .cta{display:inline-flex}}
@media(min-width:1000px){
 .wte-animated-hero{--w:clamp(440px,43vw,520px);--h:470px;--hd:78px;--rh:92px;--lz:276px;--zw:calc(var(--w) - var(--lz) + 20px);--k:.04}
 .wte-animated-hero .hero-in{grid-template-columns:minmax(0,1fr) var(--w);align-items:center;gap:clamp(28px,4.4vw,64px);padding:58px 24px 62px}
 .wte-animated-hero .hero-copy h1{font-size:clamp(42px,4.3vw,62px);line-height:1.05;letter-spacing:-.022em;max-width:11.2em}
 .wte-animated-hero .hero-money{margin-top:20px;font-size:21px}
 .wte-animated-hero .cta{display:inline-flex;margin-top:30px;min-height:58px;padding:0 30px;font-size:18px}
 .wte-animated-hero .hero-copy>p:last-child{margin-top:18px;font-size:14.5px}
 .wte-animated-hero .hero-rose{top:50%;width:calc(var(--w)*1.3);clip-path:none}
 .wte-animated-hero .hero-sheet-wrap::before{inset:8px 12px -7px}.wte-animated-hero .hero-sheet-wrap::after{inset:5px 7px -4px}
 .wte-animated-hero .hero-sheet::before{left:26px;right:26px}
 .wte-animated-hero .hero-sheet h2{padding:8px 28px 0;font-size:31px;line-height:calc(var(--hd) - 10px)}
 .wte-animated-hero .hero-cmp{right:22px;top:15px;width:52px;height:52px}
 .wte-animated-hero .hero-route{left:39px}
 .wte-animated-hero .hero-sheet li{gap:16px;padding:0 26px}
 .wte-animated-hero .ok{width:28px;height:28px}
 .wte-animated-hero .tx{display:grid;gap:9px;align-items:start}
 .wte-animated-hero .tx b{font-size:16.5px;justify-self:start}
 .wte-animated-hero .bar{flex:none;height:8px;width:84%}.wte-animated-hero .b2{display:block;width:56%}
 .wte-animated-hero .r2 .bar{width:72%}.wte-animated-hero .r2 .b2{width:60%}.wte-animated-hero .r3 .bar{width:80%}.wte-animated-hero .r3 .b2{width:44%}.wte-animated-hero .r4 .bar{width:66%}.wte-animated-hero .r4 .b2{width:50%}
 .wte-animated-hero .ic{width:44px;height:44px;padding:11px;border-radius:10px;background:var(--mint)}
 .wte-animated-hero .hero-desk{clip-path:inset(calc(var(--hd) - 8px) -30px -34px var(--lz))}
 .wte-animated-hero .c1{--cw:.64;--ax:.05;--ay:.16;--r:-6deg}
 .wte-animated-hero .c6{--i:5;--row:0;--cw:.56;--ax:.46;--ay:.175;--r:5deg;--d:1.62s}
 .wte-animated-hero .c7{--i:6;--row:1;--cw:.44;--ax:.06;--ay:.4;--r:-8deg;--d:2.12s}
 .wte-animated-hero .c2{--cw:.46;--ax:.54;--ay:.37;--r:7deg}
 .wte-animated-hero .c8{--i:7;--row:2;--cw:.46;--ax:.3;--ay:.5;--r:10deg;--d:2.72s}
 .wte-animated-hero .c3{--cw:.52;--ax:.05;--ay:.6;--r:4deg}
 .wte-animated-hero .c5{--cw:.5;--ax:.5;--ay:.63;--r:-7deg}
 .wte-animated-hero .c4{--cw:.62;--ax:.08;--ay:.74;--r:-4deg}
 .wte-animated-hero .c9{--i:8;--row:3;--cw:.58;--ax:.43;--ay:.78;--r:3deg;--d:3.12s}
 .wte-animated-hero .warn{--wx:calc(var(--lz) + var(--zw)*var(--ax))}
 .wte-animated-hero .w1{--row:.55;--ax:.2;--r:-4deg}.wte-animated-hero .w2{--row:2.05;--ax:.36;--r:3deg}.wte-animated-hero .w3{--row:3.2;--ax:.04;--r:-3deg}
 .wte-animated-hero .toolbar{left:-12px;top:calc(100% + 8px)}
}

/* DES-014 (maquete m3) na página inicial: o hero é dono do laranja, por isso o botão do cabeçalho passa a contorno
   (a regra central exclui a .wte-home; o cabeçalho, protegido por pin, não muda de marcação). */
body:has(.wte-animated-hero .cta) .site-header.site-header--approved a.site-header__cta.site-header__cta{background:transparent !important;color:#A84A20 !important;box-shadow:inset 0 0 0 1.5px #A84A20 !important}
body:has(.wte-animated-hero .cta) .site-header.site-header--approved a.site-header__cta.site-header__cta:hover{background:#FDF0EA !important;color:#A84A20 !important}

.hero-context{padding:24px 0;text-align:center;font:12px/1.8 WI,Arial,sans-serif;color:#48605a}
.hero-context a{text-underline-offset:4px}.hero-context p+p{margin-top:8px}
@media(max-width:700px){.hero-context{padding:20px 0}}

/* Founder, 17-nov-2026 («em termos de grafia ficou terrível»): a regra geral .card do site (design-system.final10.css: fundo de
   papel, moldura, raio e enchimento, com !important) apanhava os cartões do hero e mostrava-os cortados dentro de caixas vazias a
   meio da animação. Na maquete aprovada (m2, variante A) os cartões estão sozinhos: aqui volta a ser assim. */
.wte-animated-hero .card{background:none!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;transition:none!important}
/* Founder, 17-nov-2026 («e centra o texto»): título, frase, botão e linha «Free · No payment…» centrados na sua coluna. */
.wte-animated-hero .hero-copy{text-align:center}
.wte-animated-hero .hero-copy h1,.wte-animated-hero .hero-copy p{margin-left:auto;margin-right:auto}
/* Verificador, 17-nov-2026: a regra geral `.wte-home h2` (36px/1.2, com !important) ganhava ao título «Your plan» da folha, que
   na maquete aprovada tem 21px (31px no computador) e a altura do cabeçalho da folha; a entrelinha geral dos parágrafos esticava
   os formulários dos cartões. Mesma classe de defeito do `.card`: aqui volta a valer a maquete. */
.wte-home .wte-animated-hero .hero-sheet h2{font-size:21px!important;font-weight:520!important;line-height:calc(var(--hd) - 4px)!important}
.wte-animated-hero .vf p{line-height:1.2!important}
@media(min-width:1000px){.wte-home .wte-animated-hero .hero-sheet h2{font-size:31px!important;line-height:calc(var(--hd) - 10px)!important}}

/* Pequenos acertos (bloco 5, 17-nov-2026): «Your plan» com o espaço entre letras da maquete (-0,01em); a regra geral
   h2{letter-spacing:-0.015em!important} da folha central ganhava a esta. */
