/* O acento da página muda com a cor escolhida (o app.js põe --a em linha; sem ele vale o volt).
   Registado como cor para a mudança ser suave. */
@property --a { syntax: "<color>"; inherits: true; initial-value: #C8FF2E; }
:root {
  --a-volt: #C8FF2E;       /* ← o acento "volt" da cor 1, por confirmar com o Manuel: trocar SÓ aqui */
  --a: var(--a-volt);
  transition: --a .6s ease;
  --bg: #0A0A0C;
  --tx: #F2F2F4;
  --tx2: #B9B9C2;
  --tx3: #A3A3AC;
  --m: clamp(20px, 4.2vw, 64px);
  --col: max(var(--m), calc((100vw - 1180px) / 2)); /* margem das folhas e do rodapé: coluna de 1180 px, centrada */
  --larga: "Archivo", "Arial Black", Impact, sans-serif;
  --texto: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); color: var(--tx); scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { font: 400 16px/1.5 var(--texto); overflow-x: hidden; }
a { color: inherit; }
em { font-style: normal; color: var(--a); }

/* ---------- carregar ---------- */
.carregar { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-content: center; gap: 14px; text-align: center; transition: opacity .6s ease, visibility .6s; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--tx3); }
.carregar.pronto { opacity: 0; visibility: hidden; }
.carregar__linha { width: min(260px, 60vw); height: 2px; background: rgba(255,255,255,.14); margin: 0 auto; }
.carregar__linha span { display: block; height: 100%; width: 0; background: var(--a); }

/* ---------- palco (palavra + 3D) ---------- */
.palco { position: fixed; inset: 0; z-index: 0; pointer-events: none; will-change: transform; }
.palco__palavra { position: absolute; left: 0; right: 0; top: 24%; text-align: center; font: 900 clamp(76px, 17vw, 300px)/1 var(--larga); font-stretch: 125%; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.2); will-change: transform, opacity; }
#cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.palco__poster { display: none; position: absolute; left: 50%; top: 40%; width: min(940px, 92vw); height: auto; transform: translate(-50%, calc(-50% + var(--oy, 0px))); mix-blend-mode: lighten; }
.palco__poster[data-modelo="journey"] { visibility: hidden; }
.sem-webgl .palco__poster { display: block; }
.sem-webgl #cena { display: none; }
/* sem WebGL o scroll não mexe em nada: as secções altas encurtam */
.sem-webgl .abertura { height: 500vh; }
.sem-webgl .abertura--j { height: 300vh; }
.sem-webgl .nota { left: var(--m); bottom: var(--m); width: min(420px, calc(100vw - 2 * var(--m))); }
.sem-webgl .nota--esq { text-align: left; }
/* nem o JavaScript do 3D carregou (o CDN falhou): só os heróis, sem texto empilhado */
.sem-js .abertura, .sem-js .abertura--j { height: 100vh; height: 100svh; }
.sem-js [data-j]:not(.bloco--hero):not(.specs), .sem-js .linhas, .sem-js .cores__area, .sem-js .prog, .sem-js .prog-num { display: none; }
.sem-js .palco__poster[data-modelo="journey"] { display: none; }

/* ---------- topo ---------- */
.topo { position: fixed; z-index: 5; top: 0; left: 0; right: 0; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 var(--m); font-size: 14px; color: #d8d8de; background: linear-gradient(rgba(10,10,12,.94) 35%, rgba(10,10,12,0)); }
.topo__marca { font: 900 30px/1 var(--larga); font-stretch: 125%; font-style: italic; letter-spacing: -.04em; color: #fff; text-decoration: none; }
.topo__menu { display: flex; gap: 34px; }
.topo__menu a { text-decoration: none; padding: 8px 0; }
.topo__menu a[aria-current] { color: #fff; }
.topo__menu a:hover, .topo__menu a:focus-visible { color: var(--a); }
.topo--solido { background: rgba(10,10,12,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.1); }
.topo__carrinho { white-space: nowrap; text-decoration: none; }
/* alvos de toque com pelo menos 44 px de altura (o desenho do menu não muda) */
.topo__marca, .topo__menu a, .topo__carrinho { display: inline-flex; align-items: center; min-height: 44px; }
.topo__carrinho:hover, .topo__carrinho:focus-visible { color: var(--a); }
.aviso-lateral { position: fixed; z-index: 5; left: 14px; top: 50%; transform: rotate(-90deg) translateX(-50%); transform-origin: left top; font-size: 11px; letter-spacing: .2em; color: #A3A3AC; text-transform: uppercase; white-space: nowrap; }

/* ---------- a secção alta, com o texto fixo ---------- */
.abertura { position: relative; z-index: 2; height: 1200vh; }
.abertura--j { height: 600vh; }
.abertura--j .bloco--hero { max-width: 660px; }
.fixo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
[data-j] { will-change: opacity, transform; pointer-events: none; }
[data-j] a, [data-j] button { pointer-events: auto; }
.saltar { position: fixed; z-index: 60; left: 12px; top: -80px; background: var(--a); color: var(--bg); font: 700 14px/1 var(--texto); padding: 14px 20px; border-radius: 30px; text-decoration: none; }
.saltar:focus { top: 12px; }

.bloco--hero { position: absolute; left: var(--m); bottom: var(--m); max-width: 560px; }
.kicker { font: 600 13px/1 var(--texto); letter-spacing: .14em; text-transform: uppercase; color: var(--a); margin-bottom: 12px; }
h1, .h1 { font: 800 clamp(30px, 3.4vw, 54px)/1.05 var(--larga); font-stretch: 125%; margin-bottom: 10px; }
.bloco__sub { color: var(--tx2); margin-bottom: 14px; }
.preco { font: 800 26px/1 var(--larga); margin-bottom: 20px; }
.botao { display: inline-flex; gap: 10px; align-items: center; background: var(--a); color: var(--bg); font: 700 15px/1 var(--texto); padding: 16px 28px; border-radius: 40px; text-decoration: none; min-height: 48px; }
.botao:hover, .botao:focus-visible { background: #fff; }
button.botao { border: 0; cursor: pointer; }
.botao--sec { background: transparent; color: var(--tx); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); margin-top: 16px; }
.botao--sec:hover, .botao--sec:focus-visible { background: #fff; color: var(--bg); }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.specs { position: absolute; right: var(--m); bottom: var(--m); display: flex; gap: 34px; text-align: right; }
.specs div { display: flex; flex-direction: column-reverse; }
.specs dd { font: 800 clamp(20px, 2vw, 28px)/1.1 var(--larga); font-stretch: 125%; white-space: nowrap; }
.specs dt { font: 500 12px/1 var(--texto); color: var(--tx3); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }

.desliza { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 11px; letter-spacing: .2em; color: var(--tx3); text-transform: uppercase; text-align: center; }
.desliza i { display: block; width: 1px; height: 34px; margin: 8px auto 0; background: linear-gradient(var(--a), transparent); }

.titulo { position: absolute; left: var(--m); bottom: var(--m); font: 900 clamp(44px, 7vw, 118px)/.95 var(--larga); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em; }
.titulo--3 { font-size: clamp(48px, 6vw, 104px); top: 130px; bottom: auto; }

.texto { position: absolute; max-width: 340px; font-size: 17px; line-height: 1.45; color: #d6d6dc; }
.texto h3 { font: 800 22px/1.2 var(--larga); font-stretch: 125%; color: #fff; margin-bottom: 8px; }
.texto--unidade { left: var(--m); bottom: calc(var(--m) + 8px); }

/* ---------- anotações do interior ---------- */
.linhas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.linhas path { fill: none; stroke: var(--a); stroke-width: 1; }
.linhas circle { fill: var(--a); }
.linhas .anel { fill: none; stroke: var(--a); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulso 1.8s ease-out infinite; }
@keyframes pulso { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.nota { position: absolute; z-index: 2; width: 300px; font-size: 16px; line-height: 1.45; color: #d6d6dc; }
.nota h3 { font: 800 21px/1.2 var(--larga); font-stretch: 125%; color: #fff; margin-bottom: 6px; }
.nota__n { font: 700 13px/1 var(--texto); letter-spacing: .14em; color: var(--a); margin-bottom: 10px; }
.nota--esq { text-align: right; }

/* ---------- escolher a cor ---------- */
.cores__area { position: absolute; inset: 0; z-index: 0; pointer-events: none; touch-action: pan-y; cursor: grab; }
.cores__area.ativa { pointer-events: auto; }
.cores__area.arrasta { cursor: grabbing; }
.cores { position: absolute; z-index: 3; left: var(--m); bottom: var(--m); width: min(440px, 44vw); }
.cores .kicker { margin-bottom: 14px; }
.cores__nome { font: 800 clamp(22px, 2.3vw, 34px)/1.12 var(--larga); font-stretch: 125%; margin-bottom: 8px; min-height: 2.24em; }
.cores__estilo { font-size: 13px; letter-spacing: .08em; color: var(--tx3); margin-bottom: 18px; }
.cores__estilo span { color: var(--tx2); }
.cores__lista { display: flex; gap: 14px; margin-bottom: 22px; }
.cor { appearance: none; border: 0; padding: 0; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--c1) 0 50%, var(--c2) 50% 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); position: relative; }
.cor::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; transition: border-color .25s ease; }
.cor[aria-checked="true"]::after { border-color: var(--a); }
.cor:hover::after { border-color: rgba(255,255,255,.5); }
.cor[aria-checked="true"]:hover::after { border-color: var(--a); }
.cores__dica { margin-top: 18px; font-size: 13px; color: var(--tx3); }

.rotulo { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; font: 700 13px/1 var(--texto); letter-spacing: .12em; text-transform: uppercase; color: var(--a); white-space: nowrap; }
.rotulo::before { content: ""; width: clamp(40px, 8vw, 110px); height: 1px; background: var(--a); }

.prog { position: absolute; right: 26px; top: 120px; bottom: 120px; width: 2px; background: rgba(255,255,255,.14); }
.prog i { position: absolute; left: 0; top: 0; width: 2px; height: 0; background: var(--a); }
.prog-num { position: absolute; right: 50px; top: 100px; font: 700 13px/1 var(--texto); color: var(--tx3); letter-spacing: .1em; }

/* ---------- folhas (comparar, comprar, perguntas) ---------- */
.folha { position: relative; z-index: 3; background: var(--bg); padding: clamp(72px, 10vw, 140px) var(--col) clamp(56px, 7vw, 96px); border-top: 1px solid rgba(255,255,255,.1); }
.folha .kicker { margin-bottom: 14px; }
.folha__titulo { font: 900 clamp(40px, 6.2vw, 104px)/.95 var(--larga); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: clamp(32px, 5vw, 64px); }
.folha__nota { font-size: 13px; line-height: 1.55; color: var(--tx3); margin-top: 16px; }

.tabela-caixa { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ficha { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 16px; line-height: 1.45; }
.ficha th, .ficha td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-top: 1px solid rgba(255,255,255,.14); }
.ficha thead td { border: 0; }
.ficha thead th { font: 800 clamp(20px, 2.4vw, 34px)/1.1 var(--larga); font-stretch: 125%; border-top: 0; padding-bottom: 22px; color: #fff; }
.ficha tbody th { font: 600 12px/1.6 var(--texto); letter-spacing: .12em; text-transform: uppercase; color: var(--tx3); padding-top: 21px; }
.ficha td { color: #e4e4ea; }
.ficha col:first-child { width: 20%; }
.ficha tbody tr:first-child td { font: 800 clamp(22px, 2.6vw, 36px)/1.1 var(--larga); font-stretch: 125%; color: var(--a); }

.compra { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.compra__rotulo { font: 600 12px/1 var(--texto); letter-spacing: .14em; text-transform: uppercase; color: var(--tx3); margin: 0 0 14px; }
.compra__col > .compra__rotulo:not(:first-child) { margin-top: 34px; }
.compra__modelos { display: grid; gap: 12px; }
.opcao { appearance: none; text-align: left; cursor: pointer; display: grid; gap: 4px; padding: 16px 20px; border-radius: 14px; border: 0; background: rgba(255,255,255,.05); color: var(--tx); font: 400 15px/1.3 var(--texto); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); min-height: 56px; }
.opcao strong { font: 800 clamp(18px, 1.8vw, 24px)/1.2 var(--larga); font-stretch: 125%; }
.opcao span { color: var(--tx2); }
.opcao[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--a); background: rgba(255,255,255,.09); }
.compra__cores .cor-nome { font: 700 17px/1.3 var(--larga); font-stretch: 112%; margin-bottom: 16px; }
.compra__cores[hidden] { display: none; }
.compra__cores .cores__lista { margin-bottom: 0; }
.compra__tamanhos { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px; }
.tamanho { appearance: none; cursor: pointer; min-height: 48px; border: 0; border-radius: 10px; background: rgba(255,255,255,.05); color: var(--tx); font: 600 15px/1 var(--texto); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.tamanho:hover { background: rgba(255,255,255,.12); }
.tamanho[aria-checked="true"] { background: var(--a); color: var(--bg); box-shadow: none; }
.compra__fecho { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.compra__preco { font: 800 clamp(30px, 3vw, 44px)/1 var(--larga); font-stretch: 125%; margin-bottom: 10px; }
.compra__resumo { color: var(--tx2); font-size: 14px; line-height: 1.5; min-height: 3em; margin-bottom: 18px; }
.compra__aviso { color: var(--a); font-size: 14px; min-height: 1.5em; margin-top: 12px; }

.perguntas { display: grid; gap: 0; }
.perguntas details { border-top: 1px solid rgba(255,255,255,.14); }
.perguntas details:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.perguntas summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; min-height: 56px; font: 700 clamp(17px, 1.8vw, 22px)/1.3 var(--larga); font-stretch: 112%; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; flex: none; font: 400 28px/1 var(--texto); color: var(--a); transition: transform .25s ease; }
.perguntas details[open] summary::after { transform: rotate(45deg); }
.perguntas details p { max-width: 720px; padding: 0 0 24px; color: #d6d6dc; line-height: 1.6; }

.dialogo { margin: auto; max-width: min(520px, calc(100vw - 40px)); padding: 32px; border: 0; border-radius: 20px; background: #16161a; color: var(--tx); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 30px 80px rgba(0,0,0,.6); }
.dialogo::backdrop { background: rgba(0,0,0,.7); }
.dialogo h2 { font: 800 clamp(22px, 3vw, 30px)/1.15 var(--larga); font-stretch: 125%; margin-bottom: 12px; }
.dialogo p { color: var(--tx2); line-height: 1.55; margin-bottom: 14px; }
.dialogo .dialogo__resumo { color: #fff; font-weight: 600; }

/* ---------- rodapé ---------- */
.rodape { position: relative; z-index: 3; background: var(--bg); border-top: 1px solid rgba(255,255,255,.12); padding: 48px var(--col) 56px; display: grid; gap: 14px; font-size: 13px; line-height: 1.6; color: var(--tx3); }
.rodape p { max-width: 900px; }
.rodape strong { color: var(--tx2); }
.rodape a { color: var(--tx2); }
.rodape a:hover, .rodape a:focus-visible { color: var(--a); }

:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }

/* ---------- portátil e tablet ---------- */
@media (max-width: 1100px) {
  .specs { gap: 22px; }
  .topo__menu { gap: 22px; }
}
/* portátil estreito e tablet deitado: o texto ao lado da pilha tem de ser mais estreito */
@media (max-width: 1199px) and (min-aspect-ratio: 1/1) {
  .nota { width: 230px; font-size: 15px; }
  .nota h3 { font-size: 18px; }
}

/* ---------- telemóvel ---------- */
@media (max-width: 700px), (max-aspect-ratio: 1/1) {
  .topo { height: 64px; }
  .topo__marca { font-size: 24px; }
  .topo__menu { display: none; }
  .aviso-lateral { display: none; }
  .palco__palavra { top: 17%; }
  .compra { grid-template-columns: 1fr; }
  .ficha { font-size: 15px; }
  /* sem deslizar para o lado: cada linha da tabela vira um cartão com os dois modelos lado a lado */
  .ficha, .ficha tbody { display: block; }
  .ficha thead { display: none; }
  .ficha tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); }
  .ficha th, .ficha td { border: 0; padding: 0; }
  .ficha tbody th { grid-column: 1 / -1; margin-bottom: 10px; padding-top: 0; }
  .ficha td::before { content: attr(data-l); display: block; font: 600 11px/1.4 var(--texto); letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); margin-bottom: 4px; }
  .ficha tbody tr:first-child td { font-size: 24px; }
  .bloco--hero { right: var(--m); max-width: none; }
  .bloco__sub { font-size: 14px; }
  .specs { display: none; }
  .titulo { bottom: 44px; }
  .texto--unidade { right: var(--m); max-width: none; bottom: 40px; font-size: 15px; }
  .texto--unidade h3 { font-size: 19px; }
  .titulo--3 { top: 84px; bottom: auto; font-size: 54px; }
  .rotulo { display: none; }
  .nota { left: var(--m); right: var(--m); width: auto; bottom: 36px; font-size: 15px; text-align: left; }
  .nota--esq { text-align: left; }
  .nota h3 { font-size: 19px; }
  .nota__n { margin-bottom: 8px; }
  .cores { left: var(--m); right: var(--m); width: auto; bottom: 28px; }
  .cores .kicker { margin-bottom: 8px; }
  .cores__nome { font-size: 19px; min-height: 0; margin-bottom: 4px; }
  .cores__estilo { margin-bottom: 14px; }
  .cores__lista { gap: 12px; margin-bottom: 14px; }
  .cor { width: 48px; height: 48px; }
  .cores .preco { font-size: 22px; margin-bottom: 0; }
  .cores__dica { display: none; }
  .prog { right: 10px; top: 90px; bottom: 90px; }
  .prog-num { right: 20px; top: 74px; font-size: 11px; }
}

/* movimento reduzido: o scroll continua a comandar a abertura (é o conteúdo), mas saem a pulsação, as transições e os deslizes */
@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  .carregar { transition: none; }
  .linhas .anel { animation: none; opacity: .5; }
  .cor::after, .perguntas summary::after { transition: none; }
}
