/* Landing pages em destaque (27/11): abrem a seção #paginas da home. Desde a rodada 2 (27/11), um destaque só:
   o Unifeso (produção da Único); a Viver Univel e as outras páginas vão nos cartões compactos (.lpm, no fim). Carrega depois de /home.css.
   OCULTAR um destaque: acrescente o atributo hidden no <article class="lpd" data-lp="..."> dele no index.html
   (o base.css já tem [hidden] { display: none !important }). O resto da seção não depende dele.
   Cena: notebook (tampa com moldura, janela do navegador e base) e celular na frente, medidos em cqw da cena.
   Com o mouse em cima da cena, a página desce devagar até o fim nas duas telas e volta ao topo quando o mouse sai.
   Sem movimento (prefers-reduced-motion) ou em tela de toque: as telas ficam paradas no topo da página. */

.lpd-lista { margin-top: clamp(48px, 4vw, 120px); display: grid; gap: clamp(88px, 7vw, 200px); }
.lpd { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 2.4vw, 56px); align-items: center; }
@media (min-width: 1100px) {
  .lpd { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 48px); }
  .lpd-txt { grid-column: 1 / 5; grid-row: 1; }
  .lpd-cena { grid-column: 5 / -1; grid-row: 1; }
  /* o segundo destaque espelha: a cena à esquerda, o texto à direita */
  .lpd-inv .lpd-txt { grid-column: 9 / -1; }
  .lpd-inv .lpd-cena { grid-column: 1 / 9; }
}

/* ── texto ── */
.lpd-selo { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 15px 0 12px; border-radius: 999px;
  font-size: var(--t-eyebrow); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  background: var(--lime); color: var(--m0); }
.lpd-selo svg { flex: none; width: .95em; height: 1.2em; }
.lpd-selo.is-ar { background: transparent; color: var(--ink); font-weight: 400; box-shadow: inset 0 0 0 1px var(--linha); }
.lpd-selo.is-ar::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(225, 254, 105, .16); }
.lpd-h { margin-top: clamp(18px, 1.4vw, 32px); }
.lpd-cli { display: block; font-weight: 300; font-size: clamp(42px, 1.4rem + 2.6vw, 100px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.lpd-camp { display: block; margin-top: clamp(10px, .7vw, 18px); font-weight: 400; font-size: var(--t-h3); line-height: 1.3; color: var(--ink-2); text-wrap: balance; }
.lpd-camp em { display: block; font-style: italic; color: var(--acento); }
.lpd-inst { margin-top: clamp(14px, 1vw, 22px); font-size: var(--t-peq); line-height: 1.45; letter-spacing: .02em; color: var(--ink-3); }
.lpd-d { margin-top: clamp(12px, .9vw, 20px); max-width: 44ch; font-size: clamp(16px, .85rem + .25vw, 20px); line-height: 1.6; color: var(--ink-2); }
.lpd-cred { margin-top: 10px; max-width: 44ch; font-size: var(--t-peq); line-height: 1.5; color: var(--ink-3); }
.lpd-acoes { margin-top: clamp(16px, 1.2vw, 28px); }

/* ── cena ── */
.lpd-cena { --cor: var(--arco); position: relative; margin: 0; container-type: inline-size; isolation: isolate; }
.lpd-palco { position: relative; padding-bottom: 6cqw; }
/* halo da cor da campanha atrás do notebook */
.lpd-palco::before { content: ""; position: absolute; z-index: -1; inset: 4% 8% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--cor), transparent); opacity: .28; filter: blur(40px); pointer-events: none; }

/* notebook: a tampa, a janela do navegador dentro dela e a base, um pouco mais larga, com o entalhe */
.lpd-note { position: relative; width: 82cqw; margin-left: 5cqw; }
.lpd-inv .lpd-note { margin-left: 13cqw; }
.lpd-tampa { position: relative; padding: 1.9cqw 1.9cqw 2.3cqw; border-radius: 2.4cqw 2.4cqw .8cqw .8cqw;
  background: linear-gradient(180deg, #1b2335, #0a0e18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .2), 0 70px 120px -56px rgba(0, 0, 0, .9); }
.lpd-tampa::before { content: ""; position: absolute; top: .7cqw; left: 50%; width: .6cqw; height: .6cqw; transform: translateX(-50%);
  border-radius: 50%; background: #2c3651; box-shadow: inset 0 0 0 .14cqw #080b13; }
.lpd-janela { border-radius: .7cqw; overflow: hidden; background: #0d1d44; }
.lpd-nav { display: flex; align-items: center; gap: .7cqw; height: max(20px, 3.4cqw); padding: 0 1.4cqw; background: #0f1a35; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.lpd-nav i { flex: none; width: max(5px, .9cqw); aspect-ratio: 1; border-radius: 50%; background: rgba(241, 243, 248, .22); }
.lpd-url { flex: 0 1 auto; min-width: 0; max-width: 66%; margin: 0 auto; display: flex; align-items: center; gap: .5cqw; height: 66%; padding: 0 1.3cqw;
  border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: max(9px, 1.3cqw); line-height: 1; color: rgba(241, 243, 248, .74); white-space: nowrap; }
.lpd-url svg { flex: none; width: 1.05em; height: 1.05em; opacity: .8; }
.lpd-url span { overflow: hidden; text-overflow: ellipsis; }
/* fundo na cor da campanha, não branco: se o navegador demorar a pintar a captura, a tela não fica em branco */
.lpd-tela { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cor); }
.lpd-base { position: relative; width: 112%; height: 2.3cqw; margin-left: -6%; border-radius: 0 0 2cqw 2cqw / 0 0 1.5cqw 1.5cqw;
  background: linear-gradient(180deg, #4d5874 0%, #283047 28%, #131826 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 34px 44px -26px rgba(0, 0, 0, .95); }
.lpd-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 15%; height: 44%; transform: translateX(-50%);
  border-radius: 0 0 1cqw 1cqw; background: linear-gradient(180deg, #151a28, #2b3349); }

/* celular na frente, no canto de baixo (à direita; no destaque espelhado, à esquerda) */
.lpd-cel { position: absolute; z-index: 2; right: 0; bottom: 0; width: 23cqw; }
.lpd-inv .lpd-cel { right: auto; left: 0; }
.lpd-cel-corpo { padding: .8cqw; border-radius: 3.7cqw; background: linear-gradient(150deg, #2b3249, #070b16 58%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 0 0 .22cqw #090d17, 0 46px 70px -28px rgba(0, 0, 0, .95); }
/* captura do celular com 400 px de largura e decoding="sync": imagem longa e grande demais o Chrome pinta depois e a tela ficava branca (27/11) */
.lpd-cel-tela { position: relative; aspect-ratio: 390 / 844; border-radius: 2.95cqw; overflow: hidden; background: var(--cor); }

/* a página inteira dentro da tela: --vis é a altura visível e --h a altura da captura, na mesma escala */
.lpd-longa { display: block; width: 100%; height: auto; --fim: calc(var(--vis) / var(--h) * 100% - 100%);
  transform: translateY(0); transition: transform 1.2s var(--ease-out); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lpd-cena:hover .lpd-longa { transform: translateY(var(--fim)); transition: transform var(--dur, 20s) cubic-bezier(.42, 0, .58, 1) .2s; }
}
.lpd-dica { margin-top: clamp(12px, 1vw, 22px); font-size: var(--t-peq); color: var(--ink-3); text-align: center; }
@media (hover: none), (prefers-reduced-motion: reduce) { .lpd-dica { display: none; } }

/* o celular sobe até o lugar enquanto a cena entra na tela (só onde o navegador tem a linha do tempo da rolagem) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes lpd-cel-sobe { from { transform: translateY(12cqw); } to { transform: none; } }
    .lpd-cel { animation: lpd-cel-sobe linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  }
}

/* ── as outras seis páginas, compactas (rodada 2, 27/11) ──
   Uma faixa só, que passa de lado com encaixe (no celular com o dedo; no computador também com as setas ao lado do título).
   Cartão inteiro é o link. Com o mouse em cima (ou o foco do teclado), a captura desce até o fim e volta quando sai. */
.lpm { margin-top: clamp(64px, 5vw, 128px); padding-top: clamp(28px, 2vw, 48px); border-top: 1px solid var(--linha); }
.lpm-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.lpd-outras-t { font-weight: 300; font-size: clamp(26px, 1rem + 1.3vw, 54px); line-height: 1.12; letter-spacing: -.018em; text-wrap: balance; }
.lpd-outras-t em { font-style: italic; font-weight: 400; color: var(--acento); }
.lpm-nota { margin-top: 8px; font-size: var(--t-peq); line-height: 1.5; color: var(--ink-3); }
.lpm-dica-toque { display: none; }
@media (hover: none) { .lpm-dica-mouse { display: none; } .lpm-dica-toque { display: inline; } }
@media (prefers-reduced-motion: reduce) { .lpm-dica-mouse { display: none; } }
/* setas (só com JS; o js/vitrines.js tira o hidden) */
.lpm-setas { display: flex; gap: 10px; }
.lpm-seta { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease), opacity .25s var(--ease); }
.lpm-seta svg { width: 18px; height: 18px; }
.lpm-seta:hover:not(:disabled) { border-color: var(--lime); background: rgba(225, 254, 105, .1); }
.lpm-seta:disabled { opacity: .32; cursor: default; }

.lpm-lista { position: relative; margin-top: clamp(20px, 1.8vw, 40px); display: flex; gap: clamp(12px, 1.3vw, 24px); list-style: none;
  padding: 6px 2px 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.lpm-lista::-webkit-scrollbar { display: none; }
.lpm-item { flex: 0 0 clamp(272px, 30%, 410px); min-width: 0; scroll-snap-align: start; }
/* position: relative segura o texto só para leitor de tela (.sr, absoluto) dentro da faixa que rola; sem isso a página ganhava rolagem lateral */
.lpm-link { position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 10px 10px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--linha); color: inherit; text-decoration: none;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .45s var(--ease-out); }
.lpm-link:hover { background: rgba(255, 255, 255, .065); box-shadow: inset 0 0 0 1px rgba(143, 178, 255, .55); transform: translateY(-3px); }
.lpm-link:focus-visible { outline-offset: -2px; }
.lpm-tela { position: relative; display: block; flex: none; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 11px; background: #0d1d44;
  box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .9); }
.lpm-url { position: absolute; z-index: 1; left: 8px; bottom: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; background: rgba(6, 14, 36, .8); font-size: 12px; line-height: 1.2; color: rgba(241, 243, 248, .88); }
/* a página inteira dentro da tela: 750 é a altura visível na mesma escala da captura (1200 de largura) */
.lpm-longa { display: block; width: 100%; height: auto; --fim: calc(750 / var(--h) * 100% - 100%); transform: translateY(0); transition: transform 1s var(--ease-out); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lpm-link:hover .lpm-longa, .lpm-link:focus-visible .lpm-longa { transform: translateY(var(--fim)); transition: transform 10s cubic-bezier(.42, 0, .58, 1) .15s; }
}
.lpm-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 0 8px; }
.lpm-cli { font-weight: 400; font-size: clamp(20px, .9rem + .5vw, 28px); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.lpm-camp { margin-top: 4px; font-size: clamp(15px, .8rem + .14vw, 17px); line-height: 1.35; color: var(--acento); }
.lpm-d { margin-top: 10px; font-size: clamp(16px, .85rem + .2vw, 18px); line-height: 1.55; color: var(--ink-2); }
.lpm-cred { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.lpm-ver { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--lime); }
.lpm-ver b { font-weight: 400; transition: transform .3s var(--ease-out); }
.lpm-link:hover .lpm-ver b { transform: translate(2px, -2px); }

/* celular: a faixa vai de borda a borda e o próximo cartão aparece na beira, como nas soluções; sem setas */
@media (max-width: 699px) {
  .lpm-lista { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-inline: var(--gutter); }
  .lpm-item { flex-basis: 84%; }
  .lpm-link:hover { transform: none; }
  .lpm-setas { display: none; }
}

/* celular: o aparelho cresce para a página dele ficar legível */
@media (max-width: 640px) {
  .lpd-note, .lpd-inv .lpd-note { width: 76cqw; margin-left: 5cqw; }
  .lpd-inv .lpd-note { margin-left: 19cqw; }
  .lpd-cel { width: 28cqw; }
  .lpd-palco { padding-bottom: 10cqw; }
}
