/* Base compartilhada por todas as páginas: menu, rodapé, grade, cruzes de registro e holofote.
   Carregada depois do tema.css. */
.h-wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
/* menu */
nav { display: flex; align-items: center; justify-content: space-between; position: fixed; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logo img { height: 28px; width: auto; }
.nav-r { display: flex; align-items: center; gap: 1.6rem; }
.nav-dl { font-size: .8rem; padding: .42rem .9rem; }

.h-x { position: relative; }
.h-x > i.x { position: absolute; width: 13px; height: 13px; pointer-events: none; z-index: 4;
  background: linear-gradient(#fff, #fff) center / 1px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 1px no-repeat; opacity: .5; }
.h-x > i.x.a { top: -7px; left: -7px; } .h-x > i.x.b { top: -7px; right: -7px; }
.h-x > i.x.c { bottom: -7px; left: -7px; } .h-x > i.x.d { bottom: -7px; right: -7px; }

/* holofote que segue o cursor */
.h-spot { position: relative; isolation: isolate; }
.h-spot::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(79,209,255,.13), transparent 62%); }
.h-spot:hover::before { opacity: 1; }
.h-spot::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent 65%); mix-blend-mode: screen; }
.h-spot:hover::after { opacity: 1; }
.h-prod.h-spot::after { display: none; }

/* rodapé */
.h-foot { border-top: 1px solid var(--brd); padding: 3.5rem 0 2rem; }
.h-foot .fgrid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.h-foot .brand img { height: 26px; width: auto; margin-bottom: 1rem; opacity: .95; }
.h-foot .brand p { font-size: .84rem; color: var(--muted); max-width: 34ch; line-height: 1.6; }
.h-foot h4 { font-size: .8rem; font-weight: 550; color: #fff; margin-bottom: .9rem; text-transform: none; letter-spacing: 0; }
.h-foot li { list-style: none; margin-bottom: .55rem; }
.h-foot li a { font-size: .84rem; color: var(--muted); transition: color .15s; } .h-foot li a:hover { color: #fff; }
.h-foot .bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--brd); font-size: .76rem; color: var(--muted); }
.h-foot .bot .mono { font-family: var(--mono); }

.h-foot .bot a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.nav-r a[aria-current] { color: #fff !important; }
.nav-r, .nav-r a { font-family: var(--fonte); }
@media (max-width: 960px) { .h-foot .fgrid { grid-template-columns: 1fr 1fr; } .h-foot .brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .nav-r .nav-lk { display: none; } }
@media (max-width: 460px) { .h-foot .fgrid { grid-template-columns: 1fr; } }

/* ═══ Páginas internas: cabeçalho de página comum ═══ */
.pg-prod, .pg-inst { font-family: var(--fonte); }
.pg-prod .bc, .pg-inst .bc { padding-top: 84px !important; background: none !important; border: 0 !important; }
.bc-inner { font-family: var(--mono); font-size: .72rem !important; color: var(--muted); }
.bc-inner a:hover { color: #fff; }
.pg-prod h1, .pg-prod .hero-h, .pg-inst h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem) !important; letter-spacing: -.055em !important; line-height: 1.02 !important; font-weight: 600 !important; color: #fff;
  background: linear-gradient(180deg, #fff 55%, #a0a0a6 130%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-wrap: balance; }
.pg-prod .hero-sub, .pg-inst .sub { font-size: clamp(1rem, 1.4vw, 1.12rem) !important; color: var(--dim) !important; line-height: 1.6; max-width: 54ch; }
.pg-prod .prod-badge, .pg-inst .eyebrow {
  display: inline-flex !important; align-items: center; gap: .5rem; font-family: var(--mono) !important; font-size: .74rem !important; letter-spacing: 0 !important; text-transform: none !important;
  color: var(--dim) !important; border: 1px solid var(--brd2) !important; background: rgba(255,255,255,.03) !important; border-radius: 100px !important; padding: .3rem .8rem !important; margin-bottom: 1.4rem; }
.pg-inst .eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sinal); box-shadow: 0 0 0 3px var(--sinal-f), 0 0 10px var(--sinal); }

/* seções e títulos */
.pg-prod section > [class*="-h"]:not(.hero-h), .pg-prod .sec-h, .pg-inst .sec-h, .pg-prod h2 {
  letter-spacing: -.045em !important; font-weight: 600 !important; color: #fff; }
.pg-prod .sec-eyebrow, .pg-prod .eyebrow, .pg-prod .sec-tag, .pg-prod .spec-label { font-family: var(--mono) !important; color: var(--sinal) !important; font-size: .76rem !important; text-transform: none !important; letter-spacing: 0 !important; }

/* grades de cartões: filetes, holofote */
.pg-prod .feat-grid, .pg-inst .grid { gap: 1px !important; background: var(--brd) !important; border: 1px solid var(--brd) !important; border-radius: 12px !important; overflow: visible !important; }
.pg-prod .feat, .pg-inst .card { background: #000 !important; border-radius: 0 !important; }
.pg-prod .feat-grid > :first-child, .pg-inst .grid > :first-child { border-top-left-radius: 11px !important; }
.pg-prod .feat-h, .pg-inst .card b { color: #fff; font-weight: 600 !important; letter-spacing: -.02em; }
.pg-prod .feat-p, .pg-inst .card span { color: var(--dim) !important; line-height: 1.6; }
.pg-prod .plat, .pg-prod .price-card, .dl-card, .pg-prod .spec-block, .pg-prod .status-table, .pg-prod .cta-box {
  background: #050505 !important; border: 1px solid var(--brd2) !important; border-radius: 12px !important; box-shadow: none !important; }
.pg-prod .price-card.featured, .dl-live { border-color: var(--sinal-b) !important; background: linear-gradient(180deg, rgba(79,209,255,.06), transparent 50%), #050505 !important; }
.pg-prod .price-val { font-family: var(--mono) !important; font-weight: 500 !important; letter-spacing: -.05em !important; }
.pg-prod .stats-bar { background: var(--brd) !important; gap: 1px !important; border: 1px solid var(--brd) !important; border-radius: 12px !important; overflow: visible !important; }
.pg-prod .stats-bar .stat { background: #000 !important; border-radius: 0 !important; }
.pg-prod .stat-n { font-family: var(--mono) !important; font-weight: 500 !important; color: #fff; }

/* molduras de tela */
.pg-prod .screen-frame, .pg-prod .screen-wrap { border-radius: 12px !important; border: 1px solid var(--brd2) !important;
  box-shadow: 0 40px 100px -30px #000, 0 0 90px -40px rgba(255,255,255,.35) !important; }
.pg-prod .screen-topbar { background: #0a0a0a !important; }
.pg-prod .phone-frame { background: #151517 !important; border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 0 0 1px #000, 0 40px 100px -20px #000, 0 0 80px -30px rgba(255,255,255,.4), inset 0 1px 0 rgba(255,255,255,.25) !important; }
.pg-prod .hero { position: relative; }

/* chamada final das páginas de produto */
.pg-prod .cta-box { background: radial-gradient(60% 100% at 50% 100%, rgba(255,255,255,.1), transparent 70%), #050505 !important; }

/* institucionais: texto longo */
.pg-inst .prose { font-size: 1rem; }
.pg-inst .prose h2 { font-size: 1.35rem !important; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--brd); }
.pg-inst .prose p, .pg-inst .prose li { font-size: .95rem !important; line-height: 1.75; color: var(--text); }
.pg-inst .prose a, .pg-inst details p a { color: #fff !important; text-decoration-color: var(--sinal) !important; }
.pg-inst .meta { font-family: var(--mono); font-size: .72rem !important; }
.pg-inst .ok, .pg-inst .aviso { border-radius: 10px !important; }
.pg-inst .ok { border-color: var(--sinal-b) !important; background: var(--sinal-f) !important; } .pg-inst .ok b { color: var(--sinal) !important; }
.pg-inst summary::after { color: var(--sinal) !important; font-family: var(--mono); }
.pg-inst .busca input:focus { border-color: var(--sinal) !important; }
.pg-inst .tag { font-family: var(--mono); color: var(--sinal) !important; background: var(--sinal-f) !important; border: 1px solid var(--sinal-b); }
.pg-inst th { font-family: var(--mono); }
.pg-inst .skip { background: var(--sinal) !important; }
.pg-inst .btn-p, .pg-prod .btn-p { background: #fff !important; color: #000 !important; }

/* correções de colisão com o CSS antigo das páginas */
footer.h-foot { display: block !important; padding: 3.5rem 0 2rem !important; margin: 0 !important; background: #000 !important; height: auto !important; text-align: left; }
footer.h-foot .fgrid > div { min-width: 0; }
.pg-prod .stats-bar { padding: 0 !important; }
.pg-prod h1, .pg-prod .hero-h { font-size: clamp(2.3rem, 4.4vw, 3.7rem) !important; }
.nav-r .nav-dl[aria-current] { color: #000 !important; }
/* grade institucional: cartões soltos (o fundo cinza aparecia nas células vazias) */
.pg-inst .grid { gap: .75rem !important; background: none !important; border: 0 !important; }
.pg-inst .grid .card { border: 1px solid var(--brd2) !important; border-radius: 10px !important; background: #050505 !important; }
.pg-inst .grid > :first-child { border-top-left-radius: 10px !important; }
.pg-prod, .pg-inst { overflow-x: clip; }
@media (max-width: 720px) { .h-x > i.x { display: none; } }

/* carta do fundador (Sobre) */
/* texto longo alinhado à esquerda com o título da página */
.pg-inst .wrap.prose { max-width: 1100px; }
.pg-inst .wrap.prose > * { max-width: 74ch; }
.carta { max-width: 720px; }
.carta { margin: 1rem 0 3rem; padding: 2.4rem 2.4rem 2rem; border: 1px solid var(--brd2); border-radius: 12px;
  background: radial-gradient(80% 60% at 0 0, rgba(79,209,255,.06), transparent 70%), #050505; }
.carta-k { font-family: var(--mono); font-size: .76rem; color: var(--sinal); margin-bottom: .9rem; }
.carta h2 { font-size: clamp(1.5rem, 2.6vw, 2rem) !important; letter-spacing: -.04em !important; line-height: 1.1 !important; color: #fff; margin: 0 0 1.4rem !important; font-weight: 600 !important; }
.carta p:not(.carta-k) { font-size: 1.02rem; line-height: 1.75; color: var(--text); margin-bottom: 1rem; max-width: 60ch; }
.carta-ass { display: flex; align-items: center; gap: .9rem; margin-top: 1.8rem; padding-top: 1.3rem; border-top: 1px solid var(--brd); }
.carta-ass img { height: 22px; width: auto; }
.carta-ass span { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
@media (max-width: 560px) { .carta { padding: 1.6rem 1.3rem 1.4rem; } }

/* ═══ Menu de download: escolha do sistema operacional ═══ */
.dl-menu { position: relative; display: inline-flex; }
.dl-btn { display: inline-flex !important; align-items: center; gap: .5rem; cursor: pointer; border: 0; font: inherit; }
.dl-seta { transition: transform .18s ease; }
.dl-btn[aria-expanded="true"] .dl-seta { transform: rotate(180deg); }
.dl-pop { position: absolute; z-index: 60; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 288px; text-align: left;
  padding: .45rem; border-radius: 12px; background: #0a0a0a; border: 1px solid var(--brd2);
  box-shadow: 0 24px 60px -16px #000, 0 0 0 1px #000, inset 0 1px 0 rgba(255,255,255,.06);
  animation: dl-in .16s ease-out; }
.dl-pop[hidden] { display: none; }
@keyframes dl-in { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translate(-50%, 0); } }
.hero-btns .dl-pop { left: 0; transform: none; animation: none; }
.dl-pop-h { font-family: var(--mono); font-size: .68rem; color: var(--muted); padding: .35rem .6rem .45rem; margin: 0; }
.dl-op { display: flex; align-items: center; gap: .75rem; padding: .6rem; border-radius: 8px; color: #fff !important; text-decoration: none !important; border: 1px solid transparent; }
.dl-op:hover, .dl-op:focus-visible { background: rgba(255,255,255,.06); outline: none !important; border-color: var(--brd2); }
.dl-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--brd2); background: #111; color: #fff; }
.dl-ic svg { width: 15px; height: 15px; }
.dl-tx { flex: 1; min-width: 0; }
.dl-tx b { display: block; font-size: .88rem; font-weight: 550; line-height: 1.2; }
.dl-tx small { display: block; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.dl-rec { display: none; font-style: normal; font-family: var(--mono); font-size: .62rem; color: var(--sinal); border: 1px solid var(--sinal-b); background: var(--sinal-f); border-radius: 100px; padding: .12em .55em; white-space: nowrap; }
.dl-op.rec .dl-rec { display: inline-block; }
.dl-op.rec .dl-ic { border-color: var(--sinal-b); color: var(--sinal); background: var(--sinal-f); }
.dl-nota { font-size: .76rem; color: var(--dim); padding: .5rem .6rem 0; margin: 0; }
.dl-mais { display: block; margin-top: .35rem; padding: .6rem .6rem .45rem; border-top: 1px solid var(--brd); font-size: .76rem; color: var(--muted) !important; text-decoration: none !important; }
.dl-mais:hover, .dl-mais:focus-visible { color: #fff !important; outline: none !important; }
@media (prefers-reduced-motion: reduce) { .dl-pop { animation: none; } .dl-seta { transition: none; } }
@media (max-width: 560px) {
  .dl-pop { left: 0; transform: none; width: min(288px, calc(100vw - 2.5rem)); animation: none; }
}
