/* NW Support — mesma identidade do site Nelsane Wellspring (cores, tipos de letra, vidro). */

@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* Aplicações Android Nelsane Wellspring — identidade do site nelsanewellspring.com:
   banner azul-noite com cantos, vidro fosco, fios dourados, rodapé preto. Sem recursos de terceiros. */

:root {
  --tinta: #15151b;
  --papel: #f7f6f3;
  --ouro: #e2b458;
  --ouro-claro: #f3d58d;
  --ouro-escuro: #8a5d12;   /* dourado para texto sobre claro, contraste ≥ 4.5:1 */
  --azul: #0b142e;
  --azul-claro: #1f2b4d;
  --escuro: #17171c;
  --preto: #09090c;
  --bruma: #4f4f5a;
  --bruma-clara: #c6c3bc;
  --linha: rgba(11, 20, 46, .12);
  --erro: #a61b1b;
  --erro-fundo: #fdeeee;
  --info-fundo: #eef3fb;
  --luz-1: #ffc7a1; --luz-2: #a8c9ff; --luz-3: #d2b6ff; --luz-4: #f6dc9c;
  --vidro: rgba(255, 255, 255, .55);
  --vidro-forte: rgba(255, 255, 255, .78);
  --vidro-borda: rgba(255, 255, 255, .85);
  --vidro-leve: rgba(255, 255, 255, .38);
  --vidro-brilho: inset 0 1px 0 rgba(255, 255, 255, .9);
  --sombra-leve: 0 1px 2px rgba(11, 20, 46, .04), 0 14px 34px -16px rgba(11, 20, 46, .16);
  --sombra: 0 2px 6px rgba(11, 20, 46, .06), 0 30px 70px -24px rgba(0, 0, 0, .55);
  --fio-dourado: linear-gradient(to right, rgba(169, 116, 28, 0), rgba(169, 116, 28, .6), rgba(169, 116, 28, 0));
  --titulos: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --texto: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --margem: clamp(16px, 5vw, 72px);
  --largura: 1180px;
  /* --menu-alto e --barra: definidos em moldura.css (carregada depois), como no site */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--papel); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--texto); font-size: 17px; line-height: 1.6; color: var(--tinta); -webkit-font-smoothing: antialiased; background: var(--papel); }
h1, h2, h3, p, ul, ol, dl, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ouro-escuro); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; word-break: break-all; }

.contentor { width: 100%; max-width: var(--largura); margin: 0 auto; padding-left: max(var(--margem), env(safe-area-inset-left, 0px)); padding-right: max(var(--margem), env(safe-area-inset-right, 0px)); }
main { flex: 1; }

/* Fundo claro com luzes suaves (fixo), por trás das secções claras */
.fundo { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--papel); }
.luz { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; }
.luz-1 { width: 52vw; height: 52vw; right: -12vw; top: 30vh; background: radial-gradient(circle, var(--luz-1) 0%, transparent 66%); }
.luz-2 { width: 60vw; height: 60vw; left: -18vw; bottom: -24vw; background: radial-gradient(circle, var(--luz-2) 0%, transparent 66%); }
.luz-3 { width: 46vw; height: 46vw; right: 6vw; bottom: -20vw; background: radial-gradient(circle, var(--luz-3) 0%, transparent 66%); }
.luz-4 { width: 34vw; height: 34vw; left: 22vw; top: 50vh; opacity: .7; background: radial-gradient(circle, var(--luz-4) 0%, transparent 66%); }
@media (prefers-reduced-motion: no-preference) {
  .luz-1 { animation: deriva-1 16s ease-in-out infinite alternate; }
  .luz-2 { animation: deriva-2 20s ease-in-out infinite alternate; }
  .luz-3 { animation: deriva-3 18s ease-in-out infinite alternate; }
  .luz-4 { animation: deriva-2 24s ease-in-out infinite alternate-reverse; }
  @keyframes deriva-1 { to { transform: translate(-12vw, 10vw) scale(1.15); } }
  @keyframes deriva-2 { to { transform: translate(14vw, -10vw) scale(.9); } }
  @keyframes deriva-3 { to { transform: translate(-16vw, -8vw) scale(1.2); } }
}

/* ---------- Botões ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 17px/1.2 var(--texto); text-decoration: none; padding: 16px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, opacity .15s ease, transform .15s ease; }
.botao-ouro { background: var(--ouro); color: var(--tinta); }
.botao-ouro:hover { background: var(--ouro-claro); }
.botao-escuro { background: var(--azul); color: #fff; }
.botao-escuro:hover { background: var(--azul-claro); }
.botao-vidro { background: var(--vidro-forte); color: var(--tinta); border-color: var(--linha); }
.botao-vidro:hover { background: #fff; }
.botao[disabled] { opacity: .7; cursor: progress; }

/* Menu de cima, idioma, barra do telemóvel e rodapé: assets/css/moldura.css (igual ao site principal). */

/* ================= Aplicações Android ================= */

.botao svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.botao-contorno { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.botao-contorno:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .7); }
.botao.desativado { opacity: .55; cursor: not-allowed; }
.ligacao-ouro { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ouro-escuro); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: rgba(138, 93, 18, .35); }
.ligacao-ouro svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.ligacao-ouro:hover { text-decoration-color: currentColor; }
.ligacao-ouro:hover svg { transform: translateX(3px); }
.botao-mini { display: inline-flex; align-items: center; font: 600 13px/1 var(--texto); padding: 8px 12px; border-radius: 9px; border: 1px solid var(--linha); background: #fff; color: var(--azul); cursor: pointer; }
.botao-mini:hover { background: var(--info-fundo); }

/* ---------- Banner rotativo (4 imagens, transição cruzada) ---------- */
.entrada { position: relative; isolation: isolate; overflow: hidden; overflow: clip; color: #fff; background: var(--azul); min-height: min(92vh, 820px); min-height: min(92svh, 820px); display: flex; align-items: center; padding: calc(var(--menu-alto) + 48px) 0 96px; }
.slides { position: absolute; inset: 0; z-index: -1; background: var(--azul); }
.slide { position: absolute; inset: 0; opacity: 0; background-size: cover; background-position: 75% center; background-repeat: no-repeat; transform-origin: 75% 50%; transition: opacity 1.5s ease-in-out; }
.slide.ativo { opacity: 1; z-index: 2; }
.slide.anterior { opacity: 1; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  /* zoom out lento (114 % para 100 %); o mesmo nome em .ativo e .anterior: ao passar a «anterior» continua, não recomeça */
  .slide.ativo, .slide.anterior { animation: banner-zoom 8.5s linear both; }
  .entrada.pausado .slide, .entrada.oculto .slide { animation-play-state: paused; }
  @keyframes banner-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
}
.slide-1 { background-image: url("../img/banner/secretaria-candeeiro.webp"); }
.slides.pronto .slide-2 { background-image: url("../img/banner/tablet-telemovel.webp"); }
.slides.pronto .slide-3 { background-image: url("../img/banner/noite-ecra.webp"); }
.slides.pronto .slide-4 { background-image: url("../img/banner/ecra-telemoveis.webp"); }
@media (max-width: 760px) {
  .slide-1 { background-image: url("../img/banner/secretaria-candeeiro-m.webp"); }
  .slides.pronto .slide-2 { background-image: url("../img/banner/tablet-telemovel-m.webp"); }
  .slides.pronto .slide-3 { background-image: url("../img/banner/noite-ecra-m.webp"); }
  .slides.pronto .slide-4 { background-image: url("../img/banner/ecra-telemoveis-m.webp"); }
}
/* filtro azul-noite como no site: mais escuro do lado do texto */
.slides::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background:
  linear-gradient(180deg, rgba(11, 20, 46, .5) 0%, rgba(11, 20, 46, 0) 26%, rgba(11, 20, 46, 0) 68%, rgba(11, 20, 46, .55) 100%),
  linear-gradient(90deg, rgba(11, 20, 46, .88) 0%, rgba(11, 20, 46, .7) 38%, rgba(11, 20, 46, .35) 70%, rgba(11, 20, 46, .15) 100%); }
.canto { position: absolute; width: clamp(28px, 4vw, 54px); height: clamp(28px, 4vw, 54px); border: 3px solid rgba(255, 255, 255, .82); pointer-events: none; }
.canto-1 { top: calc(var(--menu-alto) + clamp(8px, 1.4vw, 18px)); left: clamp(14px, 2.4vw, 34px); border-right: 0; border-bottom: 0; }
.canto-2 { top: calc(var(--menu-alto) + clamp(8px, 1.4vw, 18px)); right: clamp(14px, 2.4vw, 34px); border-left: 0; border-bottom: 0; }
.canto-3 { bottom: clamp(14px, 2.4vw, 34px); left: clamp(14px, 2.4vw, 34px); border-right: 0; border-top: 0; }
.canto-4 { bottom: clamp(14px, 2.4vw, 34px); right: clamp(14px, 2.4vw, 34px); border-left: 0; border-top: 0; }
.entrada-conteudo { position: relative; }
/* Catálogo: título com a parte dourada numa linha própria.
   A parte dourada e o texto mudam com a imagem (apps.js); a altura fica reservada para a frase
   mais comprida, por isso o botão não se mexe. */
.entrada.entrada-banner[data-rot] h1 { font-size: clamp(36px, 4.9vw, 68px); line-height: 1.04; max-width: 22ch; }
.entrada.entrada-banner[data-rot] h1 .destaque { display: block; margin-top: .06em; }
.entrada.entrada-banner[data-rot] .intro { line-height: 1.6; max-width: 44ch; }
.entrada-banner h1 .destaque, .entrada-banner .intro > [aria-hidden] { transition: opacity .5s ease; }
.entrada-banner.a-mudar h1 .destaque, .entrada-banner.a-mudar .intro > [aria-hidden] { opacity: 0; }
.so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rotulo { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ouro-claro); margin-bottom: 18px; }
.rotulo::before { content: ""; width: 28px; height: 1px; background: var(--ouro); }
.entrada h1 { font-family: var(--titulos); font-weight: 700; font-size: clamp(36px, 5.2vw, 70px); line-height: 1.03; letter-spacing: -.03em; color: #fff; max-width: 15ch; text-shadow: 0 1px 18px rgba(11, 20, 46, .35); }
.entrada h1 .destaque { color: var(--ouro-claro); display: inline-block; }
.entrada .intro { margin-top: clamp(16px, 2vw, 24px); font-size: clamp(16px, 1.35vw, 19px); color: rgba(255, 255, 255, .9); max-width: 46ch; }
.entrada-accoes { margin-top: clamp(26px, 3.2vw, 38px); display: flex; flex-wrap: wrap; gap: 12px; }
.entrada :focus-visible { outline-color: var(--ouro); }
/* Banner do catálogo em ecrã inteiro, como no site (min-height 100svh) */
.entrada-banner { min-height: 100vh; min-height: 100svh; padding-bottom: clamp(92px, 9vw, 124px); }
/* Cápsula de controlo: uma barra por imagem (a ativa enche a dourado) e botão de pausa */
.banner-controlo { position: absolute; z-index: 2; left: 50%; bottom: clamp(14px, 2.4vw, 30px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: rgba(11, 20, 46, .55); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.banner-controlo[hidden] { display: none; }
.banner-barras { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.banner-barra { display: flex; align-items: center; height: 32px; padding: 0 5px; border: 0; background: none; cursor: pointer; border-radius: 6px; }
.banner-barra span { position: relative; display: block; width: 26px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .38); overflow: hidden; transition: width .4s ease, background-color .2s ease; }
.banner-barra:hover span { background: rgba(255, 255, 255, .6); }
.banner-barra.ativa span { width: 48px; background: rgba(255, 255, 255, .28); }
.banner-barra span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ouro); transform: scaleX(0); transform-origin: left center; }
.banner-barra.ativa span::after { animation: banner-encher 7s linear forwards; }
.entrada.pausado .banner-barra span::after, .entrada.oculto .banner-barra span::after { animation-play-state: paused; }
@keyframes banner-encher { to { transform: scaleX(1); } }
.banner-pausa { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.banner-pausa:hover { background: rgba(255, 255, 255, .12); }
.banner-pausa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.banner-pausa .icone-tocar { fill: currentColor; stroke-width: 1.4; }
.banner-pausa .icone-tocar, .entrada.pausado .banner-pausa .icone-pausa { display: none; }
.entrada.pausado .banner-pausa .icone-tocar { display: block; }
.banner-barra:focus-visible, .banner-pausa:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .canto { animation: enquadrar 1s cubic-bezier(.2, .7, .2, 1) both; }
  .canto-1 { --dx: -30px; --dy: -30px; } .canto-2 { --dx: 30px; --dy: -30px; }
  .canto-3 { --dx: -30px; --dy: 30px; } .canto-4 { --dx: 30px; --dy: 30px; }
  .entrada-conteudo > *, .app-topo, .descarregar { animation: focar .9s ease-out both; }
  .entrada-conteudo > :nth-child(2) { animation-delay: .08s; } .entrada-conteudo > :nth-child(3) { animation-delay: .16s; }
  .entrada-conteudo > :nth-child(4), .descarregar { animation-delay: .24s; }
  @keyframes enquadrar { from { transform: translate(var(--dx), var(--dy)); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes focar { from { filter: blur(12px); opacity: .2; transform: translateY(8px); } to { filter: blur(0); opacity: 1; transform: none; } }
}

/* ---------- Secções claras ---------- */
.seccao { padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(40px, 5vw, 70px); }
.seccao-cabeca { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 40px; }
.seccao-titulo { font-family: var(--titulos); font-weight: 700; font-size: clamp(27px, 3.1vw, 40px); line-height: 1.1; letter-spacing: -.02em; color: var(--azul); }
.seccao-intro { color: var(--bruma); max-width: 52ch; }
/* Cabeçalho «Novidades»: etiqueta dourada com fio, título, subtítulo discreto */
.novidades-cabeca { max-width: 640px; }
.rotulo-claro { color: var(--ouro-escuro); margin-bottom: 14px; }
.rotulo-claro::before { width: 36px; background: var(--ouro-escuro); opacity: .7; }
.novidades-cabeca .seccao-titulo { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.025em; }
.novidades-sub { margin-top: 14px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--bruma); max-width: 48ch; }
.outras-titulo { margin-top: clamp(48px, 6vw, 80px); font-size: clamp(22px, 2.3vw, 30px); }
.vidro { background: var(--vidro-leve); border: 1px solid rgba(255, 255, 255, .72); border-radius: 24px; box-shadow: var(--vidro-brilho), var(--sombra-leve); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }

/* Ícone de aplicação: quadrado arredondado com aro dourado fino */
.app-icone { display: block; flex: none; width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(226, 180, 88, .5), 0 12px 26px -12px rgba(11, 20, 46, .55); background: var(--azul); }
.app-cabeca { display: flex; align-items: center; gap: 16px; }
.app-categoria { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ouro-escuro); }
.selo { display: inline-block; font-size: 11px; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; background: rgba(11, 20, 46, .08); color: var(--azul); }
.selo-demo { background: repeating-linear-gradient(-45deg, #fff6d6, #fff6d6 6px, #ffefb8 6px, #ffefb8 12px); color: #5c4300; border: 1px solid rgba(169, 116, 28, .3); }
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--bruma); }
.app-meta span + span::before { content: "·"; margin-right: 16px; color: var(--ouro-escuro); }
.app-meta .seta::before { display: none; }
.ligacao-esticada { text-decoration: none; color: inherit; }
.ligacao-esticada::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ligacao-esticada:focus-visible { outline: none; }
.ligacao-esticada:focus-visible::after { outline: 3px solid var(--ouro-escuro); outline-offset: 4px; }

/* Destaque: a primeira aplicação, cartão largo com telemóvel a sair do cartão */
.catalogo .app-destaque { margin-top: clamp(28px, 4vw, 48px); }
.app-destaque { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 42px); padding-right: clamp(20px, 3vw, 40px); border-radius: 30px; overflow: hidden; background: rgba(255, 255, 255, .5); transition: transform .3s ease, box-shadow .3s ease; }
.app-destaque::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: var(--fio-dourado); }
.app-destaque::after { content: ""; position: absolute; z-index: -1; right: -10%; bottom: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(226, 180, 88, .35), transparent 65%); }
.app-destaque:hover { transform: translateY(-4px); box-shadow: var(--vidro-brilho), 0 30px 70px -30px rgba(11, 20, 46, .35); }
.app-destaque .app-icone { width: 76px; height: 76px; border-radius: 21px; }
.app-destaque h3 { font-family: var(--titulos); font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; color: var(--azul); margin-top: 4px; }
.destaque-frase { margin-top: 18px; font-size: clamp(17px, 1.4vw, 20px); color: var(--tinta); max-width: 40ch; }
.destaque-pontos { margin-top: 14px; display: grid; gap: 8px; }
.destaque-pontos li { position: relative; padding-left: 22px; color: var(--bruma); }
.destaque-pontos li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border: 1.5px solid var(--ouro-escuro); transform: rotate(45deg); }
.app-destaque .app-meta { margin-top: 18px; }
.app-destaque .telefone { width: clamp(150px, 15.5vw, 200px); }
/* Botão do cartão grande: dourado claro #e2b458, texto azul-escuro (contraste ~9:1) */
.destaque-botao { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 18px; border-radius: 10px; background: #e2b458; color: #0b142e; font-weight: 600; font-size: 15px; line-height: 1.2; transition: background-color .15s ease; }
.destaque-botao svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.app-destaque:hover .destaque-botao { background: #d6a540; }
.app-destaque:hover .destaque-botao svg { transform: translateX(3px); }
.destaque-telefone { justify-self: center; transform: rotate(4deg) translateY(10px); transition: transform .4s ease; }
.app-destaque:hover .destaque-telefone { transform: rotate(2deg) translateY(0); }

/* Moldura de telemóvel para as capturas */
.telefone { display: block; position: relative; width: clamp(170px, 18vw, 230px); aspect-ratio: 360 / 780; padding: 9px; border-radius: 34px; background: linear-gradient(145deg, #2a3150, #0b0f1d); box-shadow: 0 0 0 1px rgba(226, 180, 88, .35), 0 30px 60px -24px rgba(11, 20, 46, .65); border: 0; cursor: pointer; }
.telefone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.telefone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 22%; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .12); transform: translateX(-50%); z-index: 1; }

/* Grelha das outras aplicações */
.grelha-apps { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.app-cartao { position: relative; height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 24px; transition: transform .25s ease, background-color .25s ease; }
.app-cartao:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .62); }
.app-cartao h3 { font-family: var(--titulos); font-size: 21px; font-weight: 700; color: var(--azul); }
.app-cartao > p:not(.app-meta) { color: var(--bruma); font-size: 16px; }
.app-cartao .app-meta { margin-top: auto; justify-content: space-between; }
.app-cartao .seta svg { width: 18px; height: 18px; fill: none; stroke: var(--ouro-escuro); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.app-cartao:hover .seta svg { transform: translateX(4px); }

/* Catálogo vazio (antes da primeira aplicação) */
.vazio { margin-top: clamp(28px, 4vw, 48px); display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); padding: clamp(26px, 4vw, 52px); }
.vazio-icone { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: var(--azul); }
.vazio-icone svg { width: 40px; height: 40px; fill: none; stroke: var(--ouro-claro); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.vazio h3 { font-family: var(--titulos); font-size: clamp(22px, 2.2vw, 28px); color: var(--azul); }
.vazio p { margin-top: 6px; color: var(--bruma); max-width: 56ch; }

/* Como funciona: 3 passos numa faixa de vidro, separados por fios dourados */
.passos { margin-top: clamp(26px, 3.5vw, 44px); padding: clamp(26px, 3.6vw, 52px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.passos li { position: relative; }
.passos li + li::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(clamp(32px, 4vw, 56px) / -2); width: 1px; background: linear-gradient(to bottom, rgba(169, 116, 28, 0), rgba(169, 116, 28, .45), rgba(169, 116, 28, 0)); }
.passo-icone, .func-icone { display: block; width: 42px; height: 42px; color: var(--ouro-escuro); }
.passo-icone svg, .func-icone svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.passos h3 { margin-top: 18px; font-family: var(--titulos); font-size: 21px; font-weight: 700; color: var(--azul); }
.passos p { margin-top: 6px; color: var(--bruma); font-size: 16px; }
/* Precisa de ajuda?: cartão horizontal verde-sálvia, por baixo de «Como funciona» */
.ajuda { padding-bottom: clamp(40px, 5vw, 70px); }
.ajuda-cartao { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); padding: clamp(20px, 2.6vw, 30px) clamp(22px, 3.6vw, 52px); background: #e8f3ec; border: 1px solid #d3e7da; border-radius: 24px; box-shadow: var(--sombra-leve); }
.ajuda-icone { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #2f6b4f; }
.ajuda-icone svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ajuda-texto { flex: 1; min-width: 0; }
.ajuda-texto h2 { font-family: var(--titulos); font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; letter-spacing: -.01em; color: var(--azul); }
.ajuda-texto p { margin-top: 4px; color: var(--bruma); font-size: 16px; max-width: 60ch; }
.botao-verde { flex: none; padding: 12px 22px; font-size: 16px; background: #2f6b4f; color: #fff; }
.botao-verde:hover { background: #24563f; }
.botao-verde:focus-visible { outline: 2px solid #2f6b4f; outline-offset: 3px; }

/* Faixa discreta de apoio (escura, como a zona de contacto do site) */
.apoio-faixa { position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(40px, 5vw, 72px); background: var(--escuro); color: var(--papel); }
.apoio-faixa::before { content: ""; position: absolute; z-index: -1; width: 50vw; height: 50vw; right: -18vw; top: -26vw; border-radius: 50%; filter: blur(80px); opacity: .35; background: radial-gradient(circle, #b8702c 0%, transparent 66%); }
.apoio-faixa-dentro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.apoio-faixa h2 { font-family: var(--titulos); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }
.apoio-faixa p { margin-top: 6px; color: var(--bruma-clara); max-width: 58ch; }
.apoio-faixa .ligacao-ouro { color: var(--ouro-claro); text-decoration-color: rgba(243, 213, 141, .4); }
.apoio-faixa :focus-visible { outline-color: var(--ouro); }

/* ---------- Ficha da aplicação ---------- */
.entrada-app { padding-bottom: clamp(56px, 7vw, 92px); } /* ecrã inteiro (.entrada-banner), como o catálogo */
/* Banner da ficha: a fotografia fica só como ambiente (desfocada e escura, sem os ecrãs de outras apps à vista);
   o texto à esquerda e a própria app, num telemóvel, à direita */
.entrada-app .slides { filter: blur(14px) brightness(.62) saturate(.85); transform: scale(1.08); }
.entrada-app .slide.ativo { animation: none; } /* imagem parada: o desfoque é calculado uma só vez (telemóveis fracos) */
.app-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 96px); }
.app-banner-texto { min-width: 0; }
.app-banner-telefone { position: relative; isolation: isolate; justify-self: end; margin-right: clamp(0px, 2vw, 32px); }
.app-banner-telefone::before { content: ""; position: absolute; z-index: -1; inset: 8% -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 180, 88, .32), transparent); filter: blur(20px); }
.app-banner-telefone .telefone { width: clamp(220px, 21vw, 290px); cursor: default; transform: rotate(3deg); box-shadow: 0 0 0 1px rgba(226, 180, 88, .45), 0 40px 80px -30px rgba(0, 0, 0, .8); }
@media (prefers-reduced-motion: no-preference) {
  .app-banner-telefone .telefone { animation: subir 1s ease-out both .15s; }
  @keyframes subir { from { opacity: 0; transform: rotate(3deg) translateY(24px); } }
}
/* Ao passar o rato: o telemóvel endireita-se e sobe, o brilho dourado aumenta e um reflexo atravessa o ecrã.
   O movimento vai no invólucro (a animação de entrada fica com o transform do .telefone). */
.app-banner-telefone::before { opacity: .75; transition: opacity .5s ease, transform .5s ease; }
.app-banner-telefone .telefone::after { content: ""; position: absolute; inset: 9px; z-index: 2; border-radius: 26px; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 48%, rgba(255, 236, 190, .1) 54%, transparent 66%) no-repeat; background-size: 260% 100%; background-position: 130% 0; }
@media (hover: hover) and (pointer: fine) {
  .app-banner-telefone { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
  .app-banner-telefone .telefone { transition: box-shadow .6s ease; }
  .app-banner-telefone:hover { transform: rotate(-3deg) translateY(-10px) scale(1.03); }
  .app-banner-telefone:hover::before { opacity: 1; transform: scale(1.12); }
  .app-banner-telefone:hover .telefone { box-shadow: 0 0 0 1px rgba(226, 180, 88, .8), 0 0 46px -6px rgba(226, 180, 88, .45), 0 50px 90px -30px rgba(0, 0, 0, .85); }
  .app-banner-telefone:hover .telefone::after { background-position: -30% 0; transition: background-position 1.1s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .app-banner-telefone, .app-banner-telefone:hover { transform: none; }
  .app-banner-telefone:hover .telefone::after { transition: none; background-position: 130% 0; }
}
@media (max-width: 860px) {
  .app-banner { grid-template-columns: 1fr; }
  .app-banner-telefone { display: none; } /* no telemóvel as capturas vêm logo a seguir ao banner */
}
.voltar { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 15px; font-weight: 500; margin-bottom: clamp(22px, 3vw, 36px); }
.voltar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.voltar:hover { color: var(--ouro-claro); }
.voltar:hover svg { transform: translateX(-3px); }
.aviso-demo { margin-bottom: 24px; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #5c4300; background: repeating-linear-gradient(-45deg, #fff6d6, #fff6d6 10px, #ffefb8 10px, #ffefb8 20px); border: 1px solid rgba(169, 116, 28, .3); max-width: 760px; }
.app-topo { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.app-icone-grande { width: clamp(92px, 10vw, 128px); height: clamp(92px, 10vw, 128px); border-radius: clamp(24px, 2.6vw, 34px); box-shadow: 0 0 0 1px rgba(226, 180, 88, .6), 0 24px 50px -18px rgba(0, 0, 0, .7); }
.app-topo .rotulo { margin-bottom: 10px; }
.app-topo h1 { max-width: none; font-size: clamp(36px, 5vw, 64px); }
.app-topo .intro { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.descarregar { margin-top: clamp(26px, 3.4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.descarregar-nota { flex-basis: 100%; font-size: 14px; color: rgba(255, 255, 255, .75); }
.descarregar-nota.em-breve { font-size: 16px; color: var(--ouro-claro); }

/* Capturas: faixa como no Google Play — imagens com cantos arredondados, deslizar, setas redondas brancas
   que só aparecem quando há mais para ver (rato); no telemóvel desliza-se com o dedo. */
.capturas { padding-top: clamp(52px, 6vw, 84px); }
.galeria { position: relative; margin-top: clamp(22px, 3vw, 36px); padding: clamp(18px, 2.6vw, 34px) clamp(18px, 2.6vw, 34px) clamp(8px, 1.4vw, 20px); }
.galeria-faixa { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px 2px 14px; margin: -2px -2px 0; }
.galeria-faixa::-webkit-scrollbar { display: none; }
.galeria-faixa li { flex: none; scroll-snap-align: start; }
.galeria-item { display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 0 0 1px var(--linha), 0 1px 2px rgba(11, 20, 46, .06); }
.galeria-item img { display: block; width: auto; height: clamp(300px, 36vw, 460px); aspect-ratio: 412 / 890; transition: filter .2s ease; }
.galeria-item:hover img { filter: brightness(.95); }
.galeria-item:focus-visible { outline: 3px solid var(--ouro-escuro); outline-offset: 2px; }
.galeria-seta { position: absolute; z-index: 2; top: calc(50% - 7px); transform: translateY(-50%); display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: #fff; color: #3c4043; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .22), 0 4px 14px rgba(0, 0, 0, .14); transition: box-shadow .2s ease, background-color .2s ease; }
.galeria-seta:hover { background: #f8f8f8; box-shadow: 0 2px 5px rgba(0, 0, 0, .25), 0 8px 20px rgba(0, 0, 0, .16); }
.galeria-seta svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.galeria-seta.anterior { left: -28px; }
.galeria-seta.seguinte { right: -28px; }
.galeria-seta:focus-visible { outline: 3px solid var(--ouro-escuro); outline-offset: 2px; }
@media (max-width: 1100px) { .galeria-seta.anterior { left: 10px; } .galeria-seta.seguinte { right: 10px; } }
.galeria-seta[hidden] { display: none; }
@media (hover: none) { .galeria-seta { display: none; } }
@media (max-width: 680px) { .galeria { padding: 14px 14px 4px; border-radius: 20px; } .galeria-faixa { gap: 10px; } .galeria-item { border-radius: 12px; } .galeria-item img { height: min(340px, 50vh); } }
.ampliacao { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.ampliacao::backdrop { background: rgba(9, 9, 12, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ampliacao img { display: block; max-height: 86vh; max-width: 88vw; border-radius: 28px; box-shadow: 0 0 0 1px rgba(226, 180, 88, .4), 0 30px 80px rgba(0, 0, 0, .6); }
.ampliacao-fechar, .ampliacao-nav { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; font: 400 30px/1 var(--texto); cursor: pointer; }
.ampliacao-fechar { top: 20px; right: 20px; }
.ampliacao-nav { top: 50%; transform: translateY(-50%); }
.ampliacao-nav.anterior { left: 20px; } .ampliacao-nav.seguinte { right: 20px; }
.ampliacao button:hover { background: rgba(255, 255, 255, .22); }
.ampliacao :focus-visible { outline-color: var(--ouro); }

.app-corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.app-principal { display: grid; gap: clamp(44px, 5vw, 68px); }
/* Política de privacidade de uma app: 2 colunas no computador (como as páginas legais do site), secções inteiras */
.politica { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); }
.politica-texto { padding: clamp(24px, 4vw, 56px); }
.politica-texto p { margin-top: 10px; font-size: 16.5px; line-height: 1.6; }
.politica-intro { font-size: 18px !important; margin-top: 0 !important; }
.politica-bloco h2 { margin-top: 30px; font-family: var(--titulos); font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; color: var(--azul); }
.politica-ligacoes { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 30px !important; }
@media (min-width: 1000px) {
  .politica-texto { column-count: 2; column-gap: clamp(48px, 5vw, 80px); }
  .politica-intro, .politica-ligacoes { column-span: all; }
  .politica-intro { margin-bottom: 8px; }
  .politica-bloco { break-inside: avoid; }
}
.texto { margin-top: 18px; display: grid; gap: 14px; font-size: 17.5px; max-width: 66ch; }
.funcionalidades { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.funcionalidades li { padding: 22px; }
.funcionalidades h3 { margin-top: 14px; font-family: var(--titulos); font-size: 19px; font-weight: 700; color: var(--azul); }
.funcionalidades p { margin-top: 4px; font-size: 15.5px; color: var(--bruma); }
.versoes { margin-top: 18px; border-left: 1px solid rgba(169, 116, 28, .4); padding-left: 22px; display: grid; gap: 16px; }
.versoes > li { position: relative; }
.versoes > li::before { content: ""; position: absolute; left: -27px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--papel); border: 2px solid var(--ouro-escuro); }
.versoes summary { cursor: pointer; display: flex; align-items: baseline; gap: 12px; font-size: 17px; }
.versoes summary strong { font-family: var(--titulos); color: var(--azul); }
.versoes time { font-size: 14px; color: var(--bruma); }
.versoes ul { margin-top: 8px; display: grid; gap: 4px; color: var(--bruma); list-style: disc; padding-left: 20px; }

.app-lateral { position: sticky; top: 24px; display: grid; gap: 16px; }
.ficha { padding: 26px; }
.ficha h2 { font-family: var(--titulos); font-size: 20px; font-weight: 700; color: var(--azul); }
.ficha dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 15px; }
.ficha dt { color: var(--bruma); }
.ficha dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.ficha h3 { margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--azul); }
.ficha .ligacao-ouro { margin-top: 16px; font-size: 15px; }
.sha { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linha); }
.sha p { font-size: 13px; color: var(--bruma); }
.sha code { display: block; margin: 6px 0 8px; font-size: 12px; line-height: 1.5; }
.permissoes { margin-top: 8px; display: grid; gap: 4px; font-size: 15px; color: var(--bruma); }
.permissoes li::before { content: "– "; color: var(--ouro-escuro); }
.discreto { margin-top: 6px; color: var(--bruma); font-size: 15px; }
.apoio-discreto { display: flex; gap: 12px; padding: 16px 18px; border-radius: 18px; border: 1px dashed rgba(169, 116, 28, .45); background: rgba(255, 255, 255, .3); }
.apoio-discreto svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
/* Coração vermelho a bater (duas batidas e pausa): ficha da app e faixa do catálogo; parado se o sistema pedir menos movimento */
.coracao { fill: #d63a3a; stroke: #b42828; stroke-width: 1.6; stroke-linejoin: round; transform-origin: center; }
.apoio-faixa h2 .coracao { display: inline-block; width: .8em; height: .8em; margin-right: .38em; vertical-align: -.04em; }
@media (prefers-reduced-motion: no-preference) {
  .coracao { animation: bater 1.4s ease-in-out infinite; }
}
@keyframes bater { 0%, 40%, 100% { transform: scale(1); } 10% { transform: scale(1.18); } 20% { transform: scale(1); } 30% { transform: scale(1.12); } }
.apoio-discreto a { font-weight: 600; color: var(--azul); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(11, 20, 46, .25); }
.apoio-discreto a:hover { text-decoration-color: currentColor; }
.apoio-discreto p { margin-top: 2px; font-size: 13.5px; color: var(--bruma); }

.entrada-curta { min-height: min(80vh, 720px); }

/* ---------- Ecrãs médios e telemóvel ---------- */
@media (max-width: 1020px) {
  .entrada[data-banner], .entrada-banner { min-height: calc(100vh - var(--barra)); min-height: calc(100svh - var(--barra)); }
  .app-corpo { grid-template-columns: 1fr; }
  .app-lateral { position: static; }
}
@media (max-width: 860px) {
  .app-destaque { grid-template-columns: 1fr; padding-bottom: 0; }
  .destaque-telefone { transform: rotate(0) translateY(24px); margin-top: -4px; }
  .app-destaque:hover .destaque-telefone { transform: translateY(16px); }
  .passos { grid-template-columns: 1fr; }
  .ajuda-cartao { flex-wrap: wrap; align-items: flex-start; }
  .ajuda-texto { flex-basis: calc(100% - 80px); }
  .ajuda-cartao .botao-verde { margin-left: calc(52px + clamp(16px, 2.4vw, 28px)); }
  .passos li + li::before { top: calc(clamp(32px, 4vw, 56px) / -2); bottom: auto; left: 0; right: 0; width: auto; height: 1px; background: linear-gradient(to right, rgba(169, 116, 28, 0), rgba(169, 116, 28, .45), rgba(169, 116, 28, 0)); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .entrada { min-height: 88svh; padding-bottom: 104px; }
  .entrada-app { padding-bottom: 56px; }
  .app-topo { flex-direction: column; align-items: flex-start; }
  .funcionalidades { grid-template-columns: 1fr; }
  .vazio { flex-direction: column; align-items: flex-start; }
  .descarregar .botao { flex: 1 1 100%; }
  .ampliacao-nav { top: auto; bottom: 20px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .slide { transition: none; }
}
