/* DUON · Loja de Apps — sistema visual. Tema escuro refinado, identidade Unic Tv (turquesa + vermelho só em detalhes). */
@view-transition { navigation: auto; }
:root {
  --bg: #0a1215; --bg-2: #0d171b; --surface: #111c20; --surface-2: #16232a; --surface-3: #1d2d35; --overlay: rgba(4, 10, 12, .72);
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12); --line-3: rgba(255, 255, 255, .2);
  --text: #eef4f5; --text-2: #b0c1c5; --text-3: #8ea3a8;
  --brand: #2cc0cc; --brand-2: #1fa6b1; --brand-ink: #032a2e; --brand-soft: rgba(44, 192, 204, .12); --brand-line: rgba(44, 192, 204, .35);
  --red: #f0482c; --ok: #44d69a; --ok-soft: rgba(68, 214, 154, .12); --warn: #f5c24f; --warn-soft: rgba(245, 194, 79, .12);
  --f-ui: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-tit: 'Nunito', 'Manrope', ui-rounded, system-ui, sans-serif;
  --r-1: 10px; --r-2: 14px; --r-3: 20px; --r-pill: 999px;
  --e-1: 0 1px 2px rgba(0, 0, 0, .3); --e-2: 0 10px 30px -12px rgba(0, 0, 0, .6); --e-3: 0 24px 60px -20px rgba(0, 0, 0, .75);
  --gutter: clamp(16px, 4vw, 40px); --larg: 1240px; --topo: 64px;
  --t-rapida: 140ms; --t-media: 220ms; --curva: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--topo) + 16px); }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 400 clamp(15px, .2vw + 14.4px, 16px)/1.55 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-1); background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.pular:focus { top: 12px; }
.icone { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.conteiner { width: 100%; max-width: calc(var(--larg) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
main { flex: 1; padding-block: clamp(20px, 3vw, 40px) calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { main { padding-bottom: 64px; } }

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--f-tit); line-height: 1.15; letter-spacing: -.015em; margin: 0; }
.t-1 { font-size: clamp(30px, 3.6vw + 12px, 56px); font-weight: 800; }
.t-2 { font-size: clamp(22px, 1.4vw + 14px, 30px); font-weight: 800; }
.t-3 { font-size: clamp(17px, .4vw + 15px, 20px); font-weight: 800; }
.lead { margin: 0; color: var(--text-2); font-size: clamp(16px, .5vw + 14px, 19px); max-width: 60ch; }
.mut { color: var(--text-3); }
.sobre { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand); font: 700 13px var(--f-ui); }
.cabeca-sec { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.secao + .secao { margin-top: clamp(40px, 5vw, 72px); }

/* ---------- cabeçalho ---------- */
.topo { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topo-in { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); height: var(--topo); }
.marca { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font: 800 18px var(--f-tit); white-space: nowrap; }
.marca:hover { text-decoration: none; }
.marca img { width: 40px; height: 40px; flex: none; border-radius: 50%; }
.heroi .sobre, .heroi .logo-grande { justify-self: start; }
.logo-grande { width: 80px; height: 80px; margin-bottom: 0; border-radius: 50%; box-shadow: 0 10px 30px -10px rgba(44, 192, 204, .45); }
.marca small { padding-left: 10px; border-left: 1px solid var(--line-2); color: var(--text-3); font: 700 13px var(--f-ui); }
.nav-topo { display: none; gap: 2px; }
.nav-topo a { padding: 8px 12px; border-radius: var(--r-pill); color: var(--text-2); font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: background var(--t-rapida), color var(--t-rapida); }
.nav-topo a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-topo a[aria-current="page"] { color: var(--text); background: var(--surface-3); }
.busca-topo { margin-left: auto; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--text-3); font-weight: 600; font-size: 14px; }
.busca-topo:hover { border-color: var(--line-3); color: var(--text-2); }
.busca-topo kbd { display: none; padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 6px; font: 600 12px var(--f-ui); color: var(--text-3); }
.busca-topo .rot { display: none; }
@media (min-width: 900px) {
  .nav-topo { display: flex; }
  .busca-topo { width: clamp(200px, 22vw, 300px); }
  .busca-topo .rot { display: inline; flex: 1; text-align: left; }
  .busca-topo kbd { display: inline; }
}

/* ---------- botões, chips, selos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-2); border: 1px solid transparent;
  font: 800 15px var(--f-ui); white-space: nowrap; text-decoration: none !important; transition: background var(--t-rapida), border-color var(--t-rapida), transform var(--t-rapida), filter var(--t-rapida); }
.btn:active { transform: translateY(1px); }
.btn-pri { background: var(--brand); color: var(--brand-ink); }
.btn-pri:hover { filter: brightness(1.08); }
.btn-sec { background: var(--surface-3); color: var(--text); border-color: var(--line-2); }
.btn-sec:hover { border-color: var(--line-3); }
.btn-fant { background: transparent; color: var(--text-2); border-color: var(--line-2); }
.btn-fant:hover { color: var(--text); border-color: var(--line-3); }
.btn-wa { background: #25d366; color: #06301a; }
.btn-p { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: var(--r-1); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn[aria-pressed="true"] .ic-cheio { fill: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: 14px; white-space: nowrap; transition: background var(--t-rapida), color var(--t-rapida), border-color var(--t-rapida); }
.chip:hover { border-color: var(--line-3); color: var(--text); text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip small { opacity: .75; font-weight: 700; }
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font: 700 12.5px var(--f-ui); background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.selo.ok { background: var(--ok-soft); color: var(--ok); }
.selo.aviso { background: var(--warn-soft); color: var(--warn); }
.selo.cat { background: var(--brand-soft); color: var(--brand); }
.selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.selo.sem-ponto::before { display: none; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- busca ---------- */
.campo { position: relative; display: flex; align-items: center; width: 100%; }
.campo .icone { position: absolute; left: 16px; color: var(--text-3); pointer-events: none; }
.campo input { width: 100%; min-height: 52px; padding: 0 48px 0 46px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 16px; transition: border-color var(--t-rapida), box-shadow var(--t-rapida); }
.campo input::placeholder { color: var(--text-3); }
.campo input:focus { outline: none; border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--brand-soft); }
.campo input::-webkit-search-cancel-button { display: none; }
.limpar { position: absolute; right: 6px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text-3); display: grid; place-items: center; }
.limpar:hover { background: var(--surface-3); color: var(--text); }
.campo-lg input { min-height: 60px; font-size: 17px; border-radius: var(--r-3); box-shadow: var(--e-2); }

/* ---------- cartões de app ---------- */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--t-media), transform var(--t-media) var(--curva), box-shadow var(--t-media); }
.card:hover { border-color: var(--line-2); box-shadow: var(--e-2); }
@media (hover: hover) { .card:hover { transform: translateY(-2px); } }
.card-topo { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ic-app { width: 56px; height: 56px; border-radius: 14px; flex: none; object-fit: cover; background: var(--surface-3); }
.card h3 { font: 800 17px/1.25 var(--f-tit); overflow-wrap: anywhere; }
.card h3 a { color: var(--text); }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:hover { text-decoration: none; }
.card .sub { color: var(--text-3); font-size: 13.5px; font-weight: 600; }
.card p { margin: 0; color: var(--text-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-rodape { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.card-rodape .btn { flex: 1 1 auto; }
.codigo { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: var(--r-1); border: 1px dashed var(--line-3); background: var(--surface-2); color: var(--text); font: 800 15px var(--f-ui); letter-spacing: .04em; }
.codigo small { color: var(--text-3); font: 700 11px var(--f-ui); letter-spacing: 0; text-transform: uppercase; }
.codigo:hover { border-color: var(--brand-line); }
.codigo.feito { border-color: var(--ok); color: var(--ok); }
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text-3); display: grid; place-items: center; }
.fav:hover { background: var(--surface-3); color: var(--text); }
.fav[aria-pressed="true"] { color: #ff6b5e; }
.fav[aria-pressed="true"] .icone { fill: currentColor; }
.card h3 { padding-right: 34px; }

/* ---------- catálogo ---------- */
.filtros { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.filtros > * { min-width: 0; }
.filtros-linha { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.filtro-grupo { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 320px; max-width: 100%; }
.filtro-grupo > span { color: var(--text-3); font: 700 12px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; }
.rolagem-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.rolagem-x::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .rolagem-x { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.chave { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 700; font-size: 14px; color: var(--text-2); cursor: pointer; }
.chave input { appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: background var(--t-rapida); margin: 0; }
.chave input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #e7eef0; transition: transform var(--t-media) var(--curva); }
.chave input:checked { background: var(--brand); border-color: var(--brand); }
.chave input:checked::after { transform: translateX(18px); }
.selecao { min-height: 40px; padding: 0 36px 0 12px; border-radius: var(--r-1); border: 1px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238ea3a8' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; color: var(--text); font-weight: 700; font-size: 14px; }
.contagem { color: var(--text-3); font-weight: 700; font-size: 14px; }
.vazio { display: grid; place-items: center; gap: 10px; padding: clamp(32px, 6vw, 64px) 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-3); color: var(--text-2); }
.vazio strong { color: var(--text); font: 800 18px var(--f-tit); }

/* ---------- início ---------- */
.heroi { display: grid; gap: clamp(18px, 2.4vw, 26px); padding-block: clamp(12px, 4vw, 48px) clamp(8px, 2vw, 20px); max-width: 860px; }
.heroi .t-1 span { color: var(--brand); }
.aparelhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.aparelho { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 800; font-size: 15px; transition: border-color var(--t-rapida), background var(--t-rapida); }
.aparelho:hover { border-color: var(--brand-line); background: var(--surface-2); text-decoration: none; }
.aparelho .icone { width: 26px; height: 26px; color: var(--brand); }
.aparelho small { display: block; color: var(--text-3); font-weight: 600; font-size: 12.5px; }
.atalhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.atalho { display: flex; gap: 14px; padding: 18px; border-radius: var(--r-3); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); color: var(--text); }
.atalho:hover { border-color: var(--line-2); text-decoration: none; }
.atalho .icone { width: 26px; height: 26px; color: var(--brand); margin-top: 2px; }
.atalho strong { display: block; font: 800 17px var(--f-tit); margin-bottom: 4px; }
.atalho span { color: var(--text-2); font-size: 14.5px; }

/* ---------- detalhe do app ---------- */
.migalhas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--text-3); font-weight: 600; font-size: 14px; }
.migalhas a { color: var(--text-2); }
.det { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: minmax(0, 1fr); grid-template-areas: "topo" "lado" "corpo"; }
.det-topo { grid-area: topo; } .det-lado { grid-area: lado; } .det-corpo { grid-area: corpo; min-width: 0; }
@media (min-width: 1000px) { .det { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "topo lado" "corpo lado"; align-items: start; } .det-lado { position: sticky; top: calc(var(--topo) + 20px); } }
.det-cabeca { display: flex; gap: clamp(14px, 2vw, 22px); align-items: center; }
.det-cabeca .ic-app { width: clamp(72px, 9vw, 104px); height: clamp(72px, 9vw, 104px); border-radius: 24px; }
.det-cabeca h1 { font-size: clamp(26px, 2.4vw + 14px, 40px); font-weight: 800; margin-bottom: 8px; overflow-wrap: anywhere; }
.painel { padding: clamp(16px, 2vw, 22px); border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line); }
.painel + .painel { margin-top: 14px; }
.painel h2 { font: 800 18px var(--f-tit); margin-bottom: 12px; }
.acoes-col { display: grid; gap: 10px; }
.codigo-grande { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-2); border: 1px dashed var(--line-3); background: var(--surface-2); text-align: left; width: 100%; }
.codigo-grande small { color: var(--text-3); font: 700 12px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; }
.codigo-grande b { font: 800 clamp(26px, 2vw + 14px, 34px) var(--f-ui); letter-spacing: .08em; }
.codigo-grande .dica { color: var(--brand); font: 700 13px var(--f-ui); }
.codigo-grande.feito { border-color: var(--ok); }
.codigo-grande.feito .dica { color: var(--ok); }
.lista-info { margin: 0; display: grid; gap: 10px; }
.lista-info div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.lista-info a { display: inline-flex; align-items: center; min-height: 40px; }
.lista-info div:last-child { border: 0; padding: 0; }
.lista-info dt { color: var(--text-3); font-weight: 600; }
.lista-info dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.notas { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; }
.hash { font: 600 12.5px ui-monospace, Menlo, Consolas, monospace; color: var(--text-2); overflow-wrap: anywhere; }

/* ---------- abas e passo a passo ---------- */
.abas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 18px; }
.abas::-webkit-scrollbar { display: none; }
.aba-painel[hidden] { display: none; }
.passos { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; gap: 10px; }
.passos li { counter-increment: p; position: relative; padding: 14px 16px 14px 58px; border-radius: var(--r-2); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.passos li::before { content: counter(p); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font: 800 14px var(--f-ui); }
.passos b { color: var(--text); }
code { padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text); font: 600 .9em ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.faq { border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.faq + .faq { margin-top: 8px; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; cursor: pointer; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform var(--t-media); flex: none; margin-right: 4px; }
.faq[open] summary::after { transform: rotate(-135deg); }
.faq ul { margin: 0; padding: 0 16px 16px 36px; color: var(--text-2); display: grid; gap: 6px; }
.duas-col { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .duas-col { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }

/* ---------- vídeos ---------- */
.videos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.video { margin: 0; border-radius: var(--r-2); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.video video, .video iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border: 0; }
.video figcaption { padding: 10px 14px; display: grid; gap: 2px; }
.video figcaption b { font-size: 14.5px; }
.video figcaption small { color: var(--text-3); }
.yt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--surface-2); text-align: left; color: var(--text); }
.yt:hover { border-color: var(--line-2); }
.yt .play { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; }
.yt b { display: block; font-size: 14px; }
.yt small { color: var(--text-3); }

/* ---------- treino do controle (modo desenvolvedor) ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--surface-2); margin-bottom: 16px; }
.tv { position: relative; min-width: 0; padding: 12px; border-radius: 12px; background: #04090b; border: 2px solid #1d343a; }
.tv ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.tv li { padding: 7px 10px; border-radius: 8px; color: var(--text-3); font-weight: 700; font-size: 13.5px; transition: background var(--t-media), color var(--t-media); }
.tv li.on { background: var(--brand); color: var(--brand-ink); }
.tv-aviso { position: absolute; inset: auto 10px 10px 10px; padding: 8px; border-radius: 10px; background: var(--ok); color: #06281a; font-weight: 800; text-align: center; font-size: 13.5px; }
.ctl { display: grid; justify-items: center; gap: 8px; min-width: 104px; text-align: center; }
.ok-btn { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--line-3); background: radial-gradient(circle at 35% 30%, #2b4b52, #0e2226); color: var(--text); font-weight: 800; }
.ok-btn.bate { animation: bate .32s var(--curva); }
@keyframes bate { 40% { transform: scale(.88); border-color: var(--brand); box-shadow: 0 0 0 8px var(--brand-soft); } }
.cont { font: 800 22px var(--f-ui); color: var(--brand); }
.ctl small { color: var(--text-3); font-size: 12px; max-width: 130px; line-height: 1.3; }
@media (max-width: 460px) { .demo { grid-template-columns: 1fr; } .ctl { grid-auto-flow: column; align-items: center; justify-content: center; } }

/* ---------- caixa de diálogo, busca flutuante, aviso ---------- */
dialog { padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--surface); color: var(--text); box-shadow: var(--e-3); max-height: min(86dvh, 760px); width: min(640px, calc(100vw - 24px)); overflow: hidden; }
dialog::backdrop { background: var(--overlay); backdrop-filter: blur(4px); }
dialog[open] { animation: entra var(--t-media) var(--curva); }
@keyframes entra { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.busca-flut { margin-top: max(12px, env(safe-area-inset-top)); flex-direction: column; }
.busca-flut[open] { display: flex; }
.bf-topo { display: flex; gap: 10px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.bf-topo .campo input { min-height: 48px; }
.bf-res { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.bf-res a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-2); color: var(--text); }
.bf-res a:hover, .bf-res a:focus-visible, .bf-res a.ativo { background: var(--surface-2); text-decoration: none; }
.bf-res img { width: 40px; height: 40px; border-radius: 10px; }
.bf-res b { display: block; font-size: 15px; }
.bf-res small { color: var(--text-3); font-size: 13px; }
.bf-dica { padding: 10px 16px 14px; color: var(--text-3); font-size: 13px; border-top: 1px solid var(--line); }
.fechar { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: var(--surface-3); color: var(--text); display: grid; place-items: center; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r-pill); background: #f2f6f7; color: #0b1a1e; font-weight: 800; font-size: 14.5px; box-shadow: var(--e-3); animation: entra var(--t-media) var(--curva); }
@media (min-width: 900px) { .toast { bottom: 32px; } }

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom)); color: var(--text-3); font-size: 14px; }
.rodape-in { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rodape a { color: var(--text-2); }
.rodape nav a { display: inline-flex; align-items: center; min-height: 40px; }
@media (max-width: 899px) { .rodape { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* ---------- navegação do celular: botão no canto que abre uma barra deslizando na horizontal ---------- */
.fab { display: none; }
@media (max-width: 899px) {
  .fab { display: flex; align-items: center; position: fixed; z-index: 45; left: max(14px, env(safe-area-inset-left)); bottom: calc(14px + env(safe-area-inset-bottom)); height: 60px; width: 60px; padding: 3px; overflow: hidden;
    border-radius: 999px; border: 1px solid rgba(230, 246, 255, .3); background: rgba(14, 24, 28, .78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5); transition: width .5s cubic-bezier(.3, 1.25, .5, 1), transform .3s var(--curva), opacity .3s; transform-origin: left bottom; }
  .fab.aberto { width: min(calc(100vw - 28px), 380px); }
  .fab.discreto { transform: scale(.82); opacity: .75; }
  .fab-btn { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--brand-ink); background: var(--brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
  .fab-btn .icone { width: 24px; height: 24px; position: absolute; transition: transform .35s var(--curva), opacity .2s; }
  .fab-btn .ic-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
  .fab.aberto .fab-btn .ic-atual { opacity: 0; transform: rotate(90deg) scale(.6); }
  .fab.aberto .fab-btn .ic-x { opacity: 1; transform: none; }
  .fab-itens { display: flex; flex: 1; min-width: 0; }
  .fab-itens a, .fab-itens button { flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: transparent; color: var(--text-2);
    font: 700 10.5px var(--f-ui); text-decoration: none; opacity: 0; transform: translateX(-12px); transition: opacity .2s, transform .4s var(--curva), color .15s; pointer-events: none; }
  .fab.aberto .fab-itens a, .fab.aberto .fab-itens button { opacity: 1; transform: none; pointer-events: auto; transition-delay: calc(var(--i) * 35ms + 100ms); }
  .fab-itens a[aria-current="page"] { color: var(--brand); }
  .fab-itens .icone { width: 22px; height: 22px; }
  .fab-fundo { position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, .35); }
}

/* ---------- 404 ---------- */
.nao-achou { display: grid; place-items: center; text-align: center; gap: 14px; padding-block: clamp(40px, 10vw, 120px); }
.nao-achou .grande { font: 800 clamp(64px, 12vw, 120px)/1 var(--f-tit); color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
@media (forced-colors: active) { .chip[aria-pressed="true"], .btn-pri { border: 2px solid CanvasText; } }

/* ---------- linhas de copiar (código e link direto) ---------- */
.copias { display: grid; gap: 8px; position: relative; z-index: 1; }
.copia { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "rot bt" "val bt"; align-items: center; column-gap: 10px; row-gap: 1px; width: 100%; min-height: 56px; padding: 8px 8px 8px 14px; border-radius: var(--r-2); border: 1px dashed var(--line-3); background: var(--surface-2); color: var(--text); text-align: left; transition: border-color var(--t-rapida), background var(--t-rapida); }
.copia:hover { border-color: var(--brand-line); background: var(--surface-3); }
.copia-rot { grid-area: rot; color: var(--text-3); font: 700 11px var(--f-ui); text-transform: uppercase; letter-spacing: .05em; line-height: 1.2; }
.copia b { grid-area: val; min-width: 0; font: 800 17px/1.3 var(--f-ui); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copia-bt { grid-area: bt; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand); font: 700 13px var(--f-ui); }
.copia-bt .icone { width: 16px; height: 16px; }
.copia.feito { border-color: var(--ok); }
.copia.feito .copia-bt { background: var(--ok-soft); color: var(--ok); }
