/* GOAT — redesign (2026-11-06). Carrega depois de app.css e só mexe no aspeto: as páginas, os dados
   e as línguas são os mesmos. Para voltar ao aspeto anterior, basta tirar este ficheiro e motion.js
   do index.html.
   Palete GOAT: Void Eclipse #0B0B0B, Abyss Blue #2B3B79, Silver Mist #E4E4E4.
   Letras: Schibsted Grotesk (títulos), Geist (texto), Geist Mono (códigos). Cobrem latim e cirílico;
   árabe, hindi, chinês, japonês e coreano continuam na Adwaita Sans. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-cyrillic.woff2?v=6894439694") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-latin-ext.woff2?v=824f485b5d") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Geist"; src: url("/assets/fonts/Geist-latin.woff2?v=19f9c92546") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; 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: "Geist Mono"; src: url("/assets/fonts/GeistMono-latin-ext.woff2?v=1a189eb997") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Geist Mono"; src: url("/assets/fonts/GeistMono-latin.woff2?v=684ad5b531") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; 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: "Schibsted Grotesk"; src: url("/assets/fonts/SchibstedGrotesk-latin-ext.woff2?v=ee9eeb232c") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Schibsted Grotesk"; src: url("/assets/fonts/SchibstedGrotesk-latin.woff2?v=4c8b93f431") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; 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; }

:root {
  --font: "Geist", "Adwaita Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Schibsted Grotesk", "Geist", "Adwaita Sans", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ink-1: #111216;
  --ink-2: #181A21;
  --ink-3: #22252F;
  --line: rgba(228, 228, 228, .08);
  --line-2: #2F3341;
  --abyss-lo: #18204A;

  --hover: rgba(228, 228, 228, .07);
  --pressed: rgba(228, 228, 228, .14);
  --selected: rgba(228, 228, 228, .08);
  --hairline: var(--line);

  --glass: rgba(17, 18, 22, .78);
  --glass-strong: rgba(17, 18, 22, .96);
  --glass-sheen: linear-gradient(180deg, rgba(24, 26, 33, .6), rgba(17, 18, 22, 0));
  --glass-border: linear-gradient(180deg, rgba(228, 228, 228, .11), rgba(228, 228, 228, .05));
  --glass-blur: blur(18px) saturate(140%);

  --r-control: 12px;
  --r-card: 14px;
  --r-panel: 22px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: 180ms;
  --t-med: 260ms;
}
@media (prefers-reduced-motion: reduce) { :root { --t-fast: 0ms; --t-med: 0ms; } }

/* ---------- fundo: luz azul lenta (motion.js desenha no #aurora) em vez da paisagem ---------- */
body::before {
  background:
    radial-gradient(120% 70% at 15% -10%, rgba(43, 59, 121, .55), transparent 60%),
    radial-gradient(90% 60% at 85% -15%, rgba(58, 79, 160, .35), transparent 60%),
    var(--bg);
}
body::after {
  opacity: .045 !important;
  transition: none;
  background-image: radial-gradient(rgba(228, 228, 228, .5) .5px, transparent .6px);
  background-size: 3px 3px;
}
#aurora { position: fixed; inset: 0 0 auto 0; width: 100%; height: 640px; z-index: -1; pointer-events: none; }
/* O botão dia/noite mudava a paisagem; sem paisagem, sai. */
#scene { display: none; }
:root .auth-foot,
:root .section-title,
:root .crumb,
:root main .muted:not(.card .muted) { color: var(--text-2); }

/* ---------- tipografia ---------- */
h1, h2, .dlg-head h2, .product h2 { font-family: var(--display); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 10px; }
h1.xl { font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.5rem); letter-spacing: -.04em; }
h2 { font-weight: 700; letter-spacing: -.015em; }
.sub { font-size: var(--fs-17); line-height: 1.55; max-width: 60ch; }
.section-title, .crumb {
  font: 500 var(--fs-12)/1 var(--mono);
  letter-spacing: .14em;
  color: var(--sky) !important;
}
.section-title { display: flex; align-items: center; gap: 10px; margin: var(--s-7) 0 var(--s-3); }
.section-title::before { content: ""; width: 18px; height: 1px; background: currentColor; flex: none; }
.crumb svg.i { color: currentColor; }
.dl-code, .tv-code, .nearby-code, .adm-log { font-family: var(--mono); }
.dl-code { font-weight: 500; letter-spacing: .12em; }
.badge { font-family: var(--font); }

/* ---------- barra de cima ---------- */
header.top { background: rgba(11, 11, 11, .62); border-bottom: 1px solid var(--line); }
.brand span { font: 800 var(--fs-17)/1 var(--display); letter-spacing: .14em; }
.logo { width: 30px; height: 30px; }
nav.tabs-nav { position: relative; background: rgba(24, 26, 33, .7); border: 1px solid var(--line); }
nav.tabs-nav a { position: relative; z-index: 1; font-weight: 500; color: var(--text-3); transition: color .3s var(--ease); }
nav.tabs-nav a:hover { background: transparent; color: var(--text); }
nav.tabs-nav a.on { background: transparent; color: var(--text); }
/* Cápsula azul que desliza para a secção ativa (motion.js põe-na no sítio). Sem JS, o .on fica azul. */
.nav-pill {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 999px; z-index: 0;
  background: var(--brand);
  box-shadow: 0 6px 24px -8px rgba(58, 79, 160, .9), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .5s var(--spring), width .5s var(--spring), opacity .2s var(--ease);
  opacity: 0;
}
.nav-pill.is-ready { opacity: 1; }
html:not(.motion) nav.tabs-nav a.on { background: var(--brand); }
.avatar { background: linear-gradient(135deg, var(--brand-hover), var(--abyss-lo)); border: 1px solid rgba(124, 146, 224, .35); font-family: var(--display); font-size: var(--fs-13); width: 36px; height: 36px; }
.avatar:hover { background: linear-gradient(135deg, #4A60B5, var(--abyss-lo)); }
.avatar.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--sky); }

/* ---------- painéis ---------- */
.card, dialog, .toast { background: linear-gradient(180deg, rgba(24, 26, 33, .80), rgba(17, 18, 22, .80)); }
.card { border-radius: var(--r-panel); padding: var(--s-5); overflow: hidden; isolation: isolate; }
.card.list-card { overflow: hidden; }
/* Luz que segue o rato (motion.js atualiza --mx/--my). */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -40%), rgba(124, 146, 224, .12), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover::after { opacity: 1; }
dialog { border-radius: var(--r-panel); background: linear-gradient(180deg, #1A1C23, #121318); }
dialog[open] { animation: dlg-in .45s var(--spring); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
dialog::backdrop { background: rgba(11, 11, 11, .7); }
.toast { border-radius: 14px; background: linear-gradient(180deg, #1E2029, #15161B); animation: toast-in .5s var(--spring); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ---------- botões ---------- */
.btn {
  border-radius: var(--r-control);
  font-weight: 500;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  transition: transform .25s var(--spring), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { background: var(--ink-3); transform: translateY(-1px); }
.btn:active { background: var(--ink-3); transform: translateY(0) scale(.98); }
.btn:disabled, .btn:disabled:hover { transform: none; }
.btn.primary { border-color: rgba(124, 146, 224, .35); box-shadow: 0 10px 30px -14px rgba(58, 79, 160, .95), inset 0 1px 0 rgba(255, 255, 255, .1); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.danger-solid { background: rgba(242, 119, 126, .1); border-color: rgba(242, 119, 126, .25); }
.copy-btn, .handle, .pl-actions .btn, .app-actions .btn, .org-actions .btn { border-color: transparent; background: transparent; }
.copy-btn:hover, .pl-actions .btn:hover, .app-actions .btn:hover, .org-actions .btn:hover { background: var(--hover); transform: none; }
.copy-btn.copied { color: var(--success); }

/* Foco: anel azul (o site é para usar com rato e teclado; as apps da TV têm o seu foco). */
.btn:focus-visible,
nav.tabs-nav a:focus-visible,
.seg button:focus-visible,
.avatar:focus-visible,
.brand:focus-visible,
.crumb:focus-visible,
a.product:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.btn:focus-visible { background: var(--ink-3); color: var(--text); }
.btn.primary:focus-visible { background: var(--brand-hover); color: var(--on-brand); }
nav.tabs-nav a:focus-visible { background: transparent; color: var(--text); }
.seg button:focus-visible { background: var(--hover); color: var(--text); }
.avatar:focus-visible { background: linear-gradient(135deg, var(--brand-hover), var(--abyss-lo)); color: var(--text); }
.brand:focus-visible, .crumb:focus-visible { background: transparent; color: inherit; }
a.product:focus-visible { background: linear-gradient(180deg, rgba(30, 32, 41, .9), rgba(20, 21, 27, .9)); color: var(--text); }
a.product:focus-visible .muted, a.product:focus-visible .stats { color: var(--text-3); }
a.product:focus-visible .product-ico { background: linear-gradient(160deg, var(--brand-hover), var(--abyss-lo)); color: var(--text); }

/* Separadores em cápsula. */
.seg { background: rgba(24, 26, 33, .7); border-color: var(--line); }
.seg button { font-weight: 500; transition: background .3s var(--ease), color .3s var(--ease); }
.seg button.on { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px -10px rgba(58, 79, 160, .9); }

/* ---------- campos ---------- */
input, select, textarea {
  background-color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
input:hover, select:hover, textarea:hover { background-color: #1C1E26; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(124, 146, 224, .16); }
.field > span { font-weight: 500; color: var(--text-2); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E4E4E4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.lang-pick select { background-color: rgba(24, 26, 33, .7); border-color: var(--line); }
.switch span { background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.switch input:checked + span { background: var(--brand); box-shadow: inset 0 0 0 1px rgba(124, 146, 224, .4); }
.switch span::after { transition: transform .4s var(--spring), background var(--t-fast) var(--ease); }

/* Caixas do código da TV. */
.code-box {
  font: 500 var(--fs-24)/1 var(--mono);
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  caret-color: var(--sky);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform .35s var(--spring);
}
.code-box:hover { background: #1C1E26; }
.code-box:focus { outline: none; background: var(--ink-2); color: var(--text); border-color: var(--sky); box-shadow: 0 0 0 5px rgba(124, 146, 224, .15); transform: translateY(-2px); }
.code-box.pop { animation: pop .35s var(--spring); border-color: rgba(124, 146, 224, .6); }
@keyframes pop { 0% { transform: scale(.88); } 100% { transform: scale(1); } }
.code-boxes.err .code-box:not(:focus) { box-shadow: none; border-color: var(--error); animation: shake .4s var(--ease); }
@keyframes shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }

/* ---------- entrar / ativar ---------- */
.auth-head .logo { filter: drop-shadow(0 12px 30px rgba(58, 79, 160, .55)); }
.auth-head .sub { color: var(--text-2); }
.result-ico { background: rgba(76, 195, 138, .12); color: var(--success); }
.result-ico.ok { color: var(--success); animation: pop .6s var(--spring); }

/* ---------- início ---------- */
.products { gap: var(--s-4); }
.card.product { border-radius: var(--r-panel); transition: transform .4s var(--ease), background var(--t-fast) var(--ease); }
a.product:hover { background: linear-gradient(180deg, rgba(30, 32, 41, .85), rgba(20, 21, 27, .85)); transform: translateY(-2px); }
.product-ico, .dev-ico, .pl-ico, .empty .big-ico, .install-head .dev-ico {
  background: linear-gradient(160deg, var(--brand-hover), var(--abyss-lo));
  border: 1px solid rgba(124, 146, 224, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  color: var(--text);
}
.pl-ico.m3u { color: var(--text); background: linear-gradient(160deg, #2F4290, #121836); }
.product .stats { font-family: var(--font); }
.product .stats span[dir="ltr"], .stats [dir="ltr"] { font-family: var(--mono); letter-spacing: .06em; }

/* ---------- listas e TVs ---------- */
.pl { border-radius: var(--r-card); transition: background var(--t-fast) var(--ease); }
#list > .pl:hover, .org-row:hover, .app-row:hover { background: rgba(34, 37, 47, .45); }
.pl-title { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.pl-status.ok .dot { background: var(--success); position: relative; }
.pl-status.ok .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--success); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.pl-status.ok { color: var(--text-2); }
.dev { transition: background var(--t-fast) var(--ease); }
.dev:hover { background: rgba(34, 37, 47, .4); }
.dev-name { font-weight: 600; }
.badge { background: rgba(228, 228, 228, .06); border: 1px solid var(--line); color: var(--text-2); }
.alert { border-radius: var(--r-control); border: 1px solid var(--line); background: rgba(24, 26, 33, .7); }
.alert.err { border-color: rgba(242, 119, 126, .25); }
.skeleton { border-radius: var(--r-card); background: linear-gradient(90deg, rgba(228, 228, 228, .03), rgba(124, 146, 224, .09), rgba(228, 228, 228, .03)); background-size: 200% 100%; }

/* ---------- instalar as apps ---------- */
.install-app { background: rgba(11, 11, 11, .45); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color var(--t-fast) var(--ease); }
.install-app:hover { border-color: rgba(124, 146, 224, .25); }
.install-name b { font-family: var(--display); }

/* ---------- rodapé ---------- */
.site-foot .wrap { border-top-color: var(--line); }

/* ---------- entrada de cada página (motion.js mete .enter e --i em #view) ---------- */
#view.enter > * { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: .001; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- telemóvel: navegação em baixo ---------- */
@media (max-width: 720px) {
  header.top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 11, 11, .92); }
  header.top .wrap { grid-template-columns: auto 1fr auto; }
  .brand span { display: inline; }
  nav.tabs-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    justify-self: stretch; width: auto;
    display: flex; justify-content: space-around; gap: 2px;
    margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line);
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: rgba(11, 11, 11, .9);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  nav.tabs-nav[hidden] { display: none; }
  nav.tabs-nav a { flex: 1; flex-direction: column; gap: 3px; width: auto; height: 52px; padding: 6px 4px; border-radius: 14px; font-size: 11px; justify-content: center; }
  nav.tabs-nav a span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-pill { top: 6px; height: 52px; border-radius: 14px; }
  body:has(nav.tabs-nav:not([hidden])) main { padding-bottom: 120px; }
  body:has(nav.tabs-nav:not([hidden])) .site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  body:has(nav.tabs-nav:not([hidden])) #toasts { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  h1 { font-size: 2rem; }
  h1.xl { font-size: 2.5rem; }
  .card { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  #view.enter > *, .code-box.pop, dialog[open], .toast, .result-ico.ok, .code-boxes.err .code-box { animation: none !important; }
  .pl-status.ok .dot::after { display: none; }
  #aurora { display: none; }
  .btn:hover, a.product:hover { transform: none; }
}

/* "Xtream Codes", "Stalker / MAG": o &nbsp; já separa as palavras; tira o espaço do flex. */
.seg button .seg-long { margin-inline-start: calc(var(--s-2) * -1); }

/* Imagem de perfil (bode na montanha). */
.avatar:has(img) { padding: 0; overflow: hidden; background: var(--abyss-lo); }
.avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.avatar.lg:has(img) { width: 72px; height: 72px; box-shadow: 0 0 0 1px rgba(124, 146, 224, .35), 0 16px 40px -18px rgba(58, 79, 160, .9); }

/* ---------- página inicial: a tua conta + plataformas e apps ---------- */
.hub-me { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.hub-me-text { flex: 1 1 200px; min-width: 0; }
.hub-me-mail { font: 700 var(--fs-17)/1.3 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.hub-me + .products { margin-top: var(--s-4); }
.products .product[hidden] { display: none; }
.dev-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dev-chips:empty { display: none; }
.hub-none { margin: var(--s-3) 0 0; }
.plat-tabs { margin-top: var(--s-4); }
.plat-tabs button span { overflow: hidden; text-overflow: ellipsis; }
.plat-hint { margin: var(--s-3) 0 0; }
.plats .install-apps { margin-top: var(--s-3); }
@media (max-width: 640px) {
  .plat-tabs { grid-auto-flow: row; grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .plat-tabs button { border-radius: 14px; }
  .hub-me .btn { width: 100%; }
}
/* Dentro do separador de uma plataforma, o nome da plataforma em cada app é repetido: sai. */
.plats .install-plat { display: none; }
.plats .install-row { grid-template-areas: "code btn" "note note"; }

/* Fundo do GoatLauncher: o seletor cresce até ao nome mais comprido (Wikimedia Commons – …). */
.wp-row { grid-template-columns: minmax(240px, max-content) minmax(0, 1fr); }
@media (max-width: 560px) { .wp-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- página de entrada: entrar + fotografias + as três apps (2026-12-06, SHOWCASE.md) ---------- */
.lp-hero { display: grid; grid-template-columns: minmax(0, 440px); justify-content: center; gap: var(--s-8); align-items: center; padding: var(--s-4) 0 var(--s-8); }
.lp-hero.with-stage { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); justify-content: stretch; }
.lp-head { text-align: center; }
/* Computador: o título, o cartão de entrar e os textos ficam na coluna da esquerda, cada um na sua linha;
   os aparelhos ocupam as duas primeiras linhas e assentam na base do cartão de entrar. */
@media (min-width: 961px) {
  .lp-hero.with-stage { row-gap: 0; align-items: start; }
  .lp-hero.with-stage .lp-intro { display: contents; }
  .lp-hero.with-stage .lp-head { grid-column: 1; grid-row: 1; }
  .lp-hero.with-stage .lp-intro > .card { grid-column: 1; grid-row: 2; align-self: end; }
  .lp-hero.with-stage .lp-intro > .auth-foot { grid-column: 1; }
  .lp-hero.with-stage .lp-stage { grid-column: 2; grid-row: 1 / 3; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); }
  .lp-hero.with-stage .lp-pitch { padding-top: 6px; }
}
.lp-intro .card .btn.block { margin-top: var(--s-5); }
.lp-hero.with-stage .lp-head { text-align: start; }
.lp-hero.with-stage .lp-head .logo { margin: 0 0 var(--s-4); }
.lp-hero.with-stage .lp-head .sub { margin: 0; max-width: 380px; }
.lp-hero.with-stage .lp-intro .auth-foot { text-align: start; }

/* topo: os três aparelhos (imagem fixa): GoatTV atrás em cima à direita, GoatLauncher à frente em baixo à esquerda,
   GoatRemote à frente à direita. Clicar leva ao cartão da app. */
.lp-devices { position: relative; aspect-ratio: 100 / 63.2; }
.lp-dev { position: absolute; padding: 0; overflow: hidden; background: #05060a; border: 5px solid #0c0e13; cursor: pointer;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .10);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); animation: lp-rise .8s var(--ease) both; }
.lp-dev:hover { transform: translateY(-6px); }
.lp-dev:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.lp-dev img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-user-drag: none; }
.lp-tv { aspect-ratio: 16 / 9; border-radius: 12px; }
.lp-tv-main { width: 66%; right: 11%; top: 0; z-index: 1; animation-delay: .05s; }
.lp-tv-side { width: 56%; left: 0; bottom: 0; z-index: 2; animation-delay: .2s; }
.lp-phone { width: 18%; right: 0; bottom: 0; aspect-ratio: 9 / 19.5; border-radius: 24px; border-width: 6px; z-index: 3; animation-delay: .35s; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(18px); } }
.lp-pitch { text-align: center; margin-bottom: var(--s-6); }
.lp-tagline { margin: 0 auto var(--s-4); max-width: 520px; font: 800 clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem)/1.12 var(--display); letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.lp-chips button { display: inline-flex; align-items: center; gap: var(--s-2); padding: 8px 14px 8px 10px; border-radius: var(--r-pill); cursor: pointer;
  font: 600 var(--fs-13)/1 var(--font); color: var(--text); background: var(--hover); border: 1px solid var(--line); transition: background var(--t-fast) var(--ease); }
.lp-chips button:hover { background: var(--selected); }
.lp-chips .i { width: 16px; height: 16px; color: var(--sky); }
.lp-app.lp-flash { animation: lp-flash 1.4s var(--ease); }
@keyframes lp-flash { 0%, 100% { box-shadow: none; } 25% { box-shadow: 0 0 0 2px var(--sky), 0 0 40px rgba(124, 146, 224, .35); } }

/* sequências de imagens nos cartões: fundido, zoom lento, arrastar ou deslizar */
.lp-stage { position: relative; min-width: 0; }
.lp-glow { position: absolute; inset: -40px -40px -60px; z-index: -1; background: radial-gradient(60% 60% at 50% 45%, rgba(58, 79, 160, .45), transparent 70%); filter: blur(20px); pointer-events: none; }
.lp-slides { position: absolute; inset: 0; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; outline-offset: -3px; }
.lp-slides.dragging { cursor: grabbing; }
.lp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); overflow: hidden; }
.lp-slide.on { opacity: 1; }
.lp-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.lp-slide.on img { animation: lp-zoom 6s linear both; }
.lp-blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(18px) brightness(.45) saturate(1.2); display: none; }
.lp-slide.portrait .lp-blur { display: block; }
.lp-slide.portrait img { object-fit: contain; padding: 12px 0; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .6)); }
.lp-slide.portrait.on img { animation: none; }
@keyframes lp-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.lp-dots { display: flex; gap: 6px; flex: none; }
.lp-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .25s var(--ease), background .25s; }
.lp-dots button.on { width: 22px; background: var(--sky); }

/* as apps */
.lp-sec-h { margin: 0 0 var(--s-5); }
.lp-sec-h h2 { font-size: var(--fs-32); margin: 0; }
.lp-sec-h p { margin: var(--s-1) 0 0; color: var(--text-2); max-width: 640px; }
.lp-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); padding-bottom: var(--s-8); }
.lp-app { display: flex; flex-direction: column; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 26, 33, .80), rgba(17, 18, 22, .80)); }
.lp-pic { position: relative; aspect-ratio: 16 / 10; background: #05060a; overflow: hidden; }
.lp-pic[hidden] { display: none; }
.lp-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: 28px 10px 10px; background: linear-gradient(transparent, rgba(5, 6, 10, .75)); pointer-events: none; }
.lp-cap { font-size: var(--fs-12); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-bar .lp-cap { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.lp-bar .lp-dots { pointer-events: auto; gap: 5px; }
.lp-bar .lp-dots button { width: 6px; height: 6px; background: rgba(255, 255, 255, .45); }
.lp-bar .lp-dots button.on { width: 18px; background: #fff; }
.lp-prog { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--sky); z-index: 1; pointer-events: none; }
.lp-prog.run { animation: lp-prog linear forwards; }
@keyframes lp-prog { to { width: 100%; } }
.lp-body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4) var(--s-4) var(--s-5); flex: 1; }
.lp-name { display: flex; align-items: center; gap: var(--s-2); }
.lp-name h3 { margin: 0; font: 700 var(--fs-20)/1.2 var(--display); }
.lp-name .install-repo { margin-inline-start: auto; }
.lp-desc { margin: 0; color: var(--text-2); font-size: var(--fs-15); line-height: 1.5; }
.lp-plats { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-plats button { font: 600 var(--fs-12)/1 var(--font); padding: 8px 12px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--line); background: var(--hover); color: var(--text-2); transition: background var(--t-fast) var(--ease); }
.lp-plats button:hover { color: var(--text); }
.lp-plats button.on { background: var(--brand); border-color: transparent; color: var(--on-brand); }
.lp-get { margin-top: auto; display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3); min-height: 68px;
  border-radius: var(--r-card); background: var(--hover); border: 1px solid var(--line); }
.lp-get-main { flex: 1; min-width: 0; margin: 0; }
.lp-get-lbl { display: block; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.lp-code { font-size: 22px; }
.lp-get-note { font-size: var(--fs-12); color: var(--text-2); line-height: 1.4; }
.lp-get .btn { flex: none; }

/* galeria */
dialog.lp-gallery { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border-radius: 0;
  background: rgba(5, 6, 10, .94); display: none; align-items: center; justify-content: center; }
dialog.lp-gallery[open] { display: flex; }
dialog.lp-gallery::before { display: none; }
dialog.lp-gallery img { max-width: min(92vw, 1600px); max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); user-select: none; touch-action: pan-y; }
.lp-gallery .btn { position: absolute; color: #fff; }
.lp-gal-close { top: 16px; inset-inline-end: 16px; }
.lp-gal-prev, .lp-gal-next { top: 50%; transform: translateY(-50%); }
.lp-gal-prev { inset-inline-start: 16px; }
.lp-gal-next { inset-inline-end: 16px; }
.lp-gal-prev svg { transform: scaleX(-1); }
[dir="rtl"] .lp-gal-prev svg { transform: none; }
[dir="rtl"] .lp-gal-next svg { transform: scaleX(-1); }
.lp-gal-cap { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: var(--fs-13); }

@media (max-width: 960px) {
  .lp-hero.with-stage { grid-template-columns: minmax(0, 1fr); }
  .lp-hero.with-stage .lp-intro { max-width: 440px; width: 100%; margin: 0 auto; }
  .lp-hero.with-stage .lp-head { text-align: center; }
  .lp-hero.with-stage .lp-head .logo { margin: 0 auto var(--s-4); }
  .lp-hero.with-stage .lp-head .sub { margin: 0 auto; }
  .lp-hero.with-stage .lp-intro .auth-foot { text-align: center; }
  .lp-apps { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .lp-sec-h { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 520px) { .lp-sec-h h2 { font-size: var(--fs-24); } }
/* Telemóvel: só entrar e os cartões das apps; a imagem dos aparelhos fica para ecrãs maiores. */
@media (max-width: 720px) { .lp-stage { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .lp-slide, .lp-dots button { transition: none; }
  .lp-slide.on img, .lp-dev, .lp-app.lp-flash { animation: none; }
  .lp-dev:hover { transform: none; }
}

/* recuperar a password (MAIL.md): link discreto por baixo da password; título do formulário de pedir o link */
.forgot-link { display: block; margin-top: var(--s-2); text-align: end; font-size: var(--fs-13); color: var(--sky); }
.forgot-link.back { text-align: center; margin-top: var(--s-4); }
.forgot-h { margin: 0 0 var(--s-2); font-size: var(--fs-20); }
#ragain { margin-top: var(--s-4); }
