/* ==========================================================================
   MoonLayers — camada de simplificação (redesenho 2026-11)
   Carregada por último em todas as páginas. Não troca classes nem IDs usados
   pelo JavaScript: só ajusta tokens, remove efeitos decorativos e define o
   cabeçalho, o rodapé e a página inicial novos.
   ========================================================================== */

/* Tokens ------------------------------------------------------------------ */
:root {
  --r-1: 4px; --r-2: 6px; --r-3: 8px; --r-4: 10px;
  --fs-7: clamp(24px, 2.6vw, 30px);
  --fs-8: clamp(28px, 3.4vw, 40px);
  --fs-9: clamp(30px, 4vw, 46px);
  --nav-h: 60px;
}
:root,
:is(.ae, .bx, .px__viewport, .px__bar, .xp__frame, .xp__zoom, .custom__try, .duo, .shot, .edpromo__shot, .lightbox) {
  /* Sombras só para camadas que flutuam sobre a página (menus, diálogos, avisos). */
  --shadow-1: none;
  --shadow-2: 0 8px 24px -10px rgb(var(--shadow-rgb) / calc(var(--shadow-a) * 1.4));
  --shadow-3: var(--shadow-2);
  --nav-bg: var(--g-0);
}
@media (max-width: 720px) { :root { --nav-h: 104px; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Base: sem realces em degradê, sem entradas animadas. */
html { scroll-behavior: auto; }
em { font-style: normal; background: none !important; -webkit-text-fill-color: currentColor !important; color: inherit !important; }
.reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.brand:hover .brand__mark { transform: none; }
.btn:active, .btn--primary:active, .btn--ghost:active { transform: none; }
.btn svg { transition: none; }
.btn--sm { border-radius: var(--r-2); }
p a, .qa a, .prose a, .about a:not(.btn) { color: var(--v-300); text-decoration-color: rgb(var(--v-rgb) / .45); }

/* Botão de perigo e de sucesso disponíveis para qualquer página. */
.btn--danger { color: #fff; background: var(--danger-bg); border-color: var(--danger-bg); }
.btn--danger:hover { background: var(--danger-bg-hover); border-color: var(--danger-bg-hover); }

/* Superfícies planas. */
.panel, .pcard, .buy, .about__facts, .about__devs article, .about__feats article, .dialog { box-shadow: none; }
.dialog, .menu__list, .theme__list, .toast, .sysbar { box-shadow: var(--shadow-2); }
.pcard__cover img, .gallery__main img { box-shadow: none; }
.gallery__thumbs button[aria-current="true"] { box-shadow: none; outline: 2px solid var(--v-400); outline-offset: 1px; }
.about__devs article { background: var(--g-2); border-radius: var(--r-3); }
.about__facts { border-radius: var(--r-3); background: var(--g-1); }

/* Cabeçalho --------------------------------------------------------------- */
.nav, .nav.is-scrolled { background: var(--nav-bg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; transition: none; }
.nav__inner { gap: 16px; }
.nav__links { margin-left: 28px; gap: 4px; }
.nav__links a:not(.btn) { padding: 0 10px; font-size: 14.5px; color: var(--ink-2); }
.nav__links a[aria-current="page"], .nav__links a.is-current { color: var(--ink); box-shadow: inset 0 -2px 0 var(--v-400); }
.nav__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.nav__tools .nav__theme { margin-left: 0; }
.nav__tools .nav__account { margin-left: 0; }
.nav__toggle, .nav__cta-mobile { display: none !important; }
.acct-chip { border-radius: var(--r-2); background: transparent; }
.acct-chip[aria-current="page"] { border-color: var(--v-400); }
.acct-chip__av { background: var(--v-wash-strong); color: var(--ink); }
.nav__cart { background: transparent; border-radius: var(--r-2); }
.nav__cart b { background: var(--v-600); }
/* Enquanto a sessão é conferida: espaço reservado neutro, nunca "Entrar". */
.acct-wait { display: inline-block; width: 112px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--g-1); }
@media (max-width: 1200px) { .acct-wait { width: 36px; } }

@media (min-width: 721px) and (max-width: 900px) {
  .nav__links, .nav.is-open .nav__links {
    position: static; height: 100%; flex-direction: row; align-items: stretch; margin-left: 16px; padding: 0; overflow: visible;
    background: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__links a:not(.btn) { padding: 0 10px; border-bottom: 0; font-size: 14.5px; color: var(--ink-2); }
}
@media (max-width: 720px) {
  .nav__inner { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 56px 48px; gap: 0 8px; align-items: center; }
  .nav__inner > .brand { grid-row: 1; grid-column: 1; }
  .nav__tools { grid-row: 1; grid-column: 2; justify-self: end; }
  /* Os destinos principais ficam visíveis numa segunda linha: nada escondido atrás de menu. */
  .nav__links,
  .nav.is-open .nav__links {
    position: static; grid-row: 2; grid-column: 1 / -1; display: flex; flex-direction: row; align-items: stretch; justify-content: flex-start;
    height: 48px; margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 10px); gap: 0;
    border-top: 1px solid var(--line-soft); background: none; opacity: 1; visibility: visible; transform: none; overflow-x: auto; scrollbar-width: none;
  }
  .nav__links a:not(.btn) { flex: 0 0 auto; padding: 0 10px; border-bottom: 0; font-size: 15px; color: var(--ink-2); }
  .nav__links a:not(.btn):hover { color: var(--ink); }
}
@media (max-width: 380px) { .brand__word { font-size: 17px; } .nav__tools { gap: 6px; } }

/* Rodapé ------------------------------------------------------------------ */
.footer { padding-top: 0; background: var(--g-0); }
.footer__simple { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; padding-block: 32px 24px; }
.footer__simple .brand { font-size: 17px; }
.footer__simple .brand__mark { width: 24px; height: 24px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.footer__nav ul { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer__nav h2 { margin-bottom: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.footer__nav a { color: var(--ink-2); }
.footer__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { padding-block: 16px 24px; }

/* Título de páginas internas sem destaque colorido. */
.page__head h1, .about__hero h1 { font-size: var(--fs-8); font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.about__hero h1 { max-width: 28ch; }
.store-head h1 { font-size: var(--fs-8); }
.kicker { font-size: 13.5px; }

/* Página inicial ----------------------------------------------------------- */
.home { padding-top: var(--nav-h); }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 64px); }
.home-hero h1 { font-size: var(--fs-9); font-weight: 650; line-height: 1.12; letter-spacing: -.03em; max-width: 20ch; }
.home-hero__lead { margin-top: 18px; max-width: 54ch; font-size: 17px; color: var(--ink-2); }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.home-hero__actions .btn { --h: var(--ctl-h-lg); }
.home-hero__note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.home-hero__shot { justify-self: center; width: min(100%, 320px); }
.home-hero__shot img { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-3); background: #181818; }
.home-hero__shot figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); text-align: center; }
.link-arrow { color: var(--v-300); font-weight: 500; text-decoration: underline; text-decoration-color: rgb(var(--v-rgb) / .45); text-underline-offset: 4px; }
.link-arrow:hover { text-decoration-color: currentColor; }

.home-sec { padding-block: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.home-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.home-sec h2 { font-size: var(--fs-7); font-weight: 650; letter-spacing: -.02em; }
.home-sec__head p { color: var(--ink-2); }

.featlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.featlist > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.featlist dt { font-weight: 600; color: var(--ink); }
.featlist dt a { color: var(--v-300); text-decoration: underline; text-decoration-color: rgb(var(--v-rgb) / .45); text-underline-offset: 3px; }
.featlist dd { color: var(--ink-2); font-size: 15px; }
.home-more { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; }

.howto { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.howto li { counter-increment: step; padding: 18px 0 4px; }
.howto li::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.howto h3 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.howto p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

.pricetable { width: 100%; max-width: 720px; border-collapse: collapse; font-size: 15px; }
.pricetable th, .pricetable td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pricetable thead th { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.pricetable tbody th { font-weight: 600; }
.pricetable td.num { font-size: 20px; font-weight: 650; white-space: nowrap; color: var(--ink); }
.pricetable td { color: var(--ink-2); }
.home-price__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.home-price__foot p { font-size: 14px; color: var(--ink-3); }

.faqlist { max-width: 820px; border-top: 1px solid var(--line); }
.faqlist details { border-bottom: 1px solid var(--line); }
.faqlist summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 12px 0; cursor: pointer; font-weight: 550; list-style: none; }
.faqlist summary::-webkit-details-marker { display: none; }
.faqlist summary::after { content: "+"; flex: none; width: 20px; text-align: center; font-size: 20px; font-weight: 400; color: var(--ink-3); }
.faqlist details[open] summary::after { content: "−"; }
.faqlist details > div { padding: 0 0 16px; max-width: 70ch; color: var(--ink-2); }
.faqlist details > div p + p { margin-top: 8px; }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero__shot { justify-self: start; width: min(100%, 260px); }
  .featlist { grid-template-columns: 1fr; }
  .howto { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .featlist > div { grid-template-columns: 1fr; }
}

/* Loja e produto ------------------------------------------------------------ */
.pcard { border-radius: var(--r-3); }
.pcard__cover { background: var(--g-1) !important; }
.buy { border-radius: var(--r-3); background: var(--g-1); }
.buy__chips .chip { border-radius: var(--r-1); }
.buy__summary { width: 100%; border-collapse: collapse; font-size: 15px; }
.buy__summary th, .buy__summary td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; color: var(--ink-2); }
.buy__summary td { text-align: right; color: var(--ink); white-space: nowrap; }
.buy__summary tr.is-discount td { color: var(--ok); }
.buy__summary tr.is-total th, .buy__summary tr.is-total td { border-bottom: 0; padding-top: 12px; color: var(--ink); font-weight: 600; }
.buy__summary .price { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.buy__summary .price small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.buy__facts li { align-items: flex-start; }
.paylist { display: grid; gap: 6px; margin: 0; font-size: 14px; color: var(--ink-2); }
.paylist b { color: var(--ink); font-weight: 600; }

/* Conta --------------------------------------------------------------------- */
.acct__nav a[aria-current="page"] { background: var(--g-3); }
.stats, .admin-grid { gap: 0; border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
.stats { margin-bottom: 0; }
.stat { border: 0; border-radius: 0; background: none; box-shadow: inset 1px 0 0 var(--line); margin-left: -1px; }
.stat dd { font-size: 22px; }
.libitem { border-radius: 0; }

/* Lista de pedidos: diálogo "Ver pedido". */
.orderdl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; font-size: 14.5px; }
.orderdl dt { color: var(--ink-3); }
.orderdl dd { color: var(--ink); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.store-how { max-width: 760px; margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.store-how h2 { margin-bottom: 12px; font-size: var(--fs-6); font-weight: 600; letter-spacing: -.01em; }
.store-how .fineprint { margin-top: 12px; }
.buy__type { font-size: 13.5px; color: var(--ink-3); }
.buy h1 { font-size: var(--fs-8); }
.buy__facts { list-style: disc; padding-left: 18px; }
.buy__facts li { display: list-item; }
.buy__note { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.feats { background: none; }
.coupon summary { cursor: pointer; font-size: 14px; color: var(--v-300); text-decoration: underline; text-underline-offset: 3px; }
.coupon form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 10px; }
.coupon form label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.coupon form p { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); }
.dl-help { margin-top: 28px; max-width: 70ch; }
.dl-help h2 { margin-bottom: 8px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.dl-help ul { list-style: disc; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; }
.dl-help a { color: var(--v-300); text-decoration: underline; text-underline-offset: 3px; }
.acct-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 28px; }
@media (max-width: 900px) {
  .product .buy { order: -1; }
  .gallery__main img { max-height: 420px; }
}
.libitem__actions { flex-wrap: wrap; }

/* Sem capturas do painel por enquanto (novas imagens virão depois). */
.home-hero { grid-template-columns: minmax(0, 1fr); }
.home-hero h1 { max-width: 24ch; }
.product { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); }
.product .pdetail { margin-top: 0; }
.product .buy { position: sticky; }
@media (max-width: 900px) { .product { grid-template-columns: minmax(0, 1fr); } .product .buy { position: static; } }
.libitem { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 640px) { .libitem { grid-template-columns: minmax(0, 1fr); } }
.feats article { padding: 14px 20px; }

.legal code { overflow-wrap: anywhere; white-space: normal; }

.product-media { display:grid; gap:24px; }
.product-media figure { margin:0; min-width:0; }
.product-media img,.product-media video { display:block; width:100%; height:auto; max-height:560px; object-fit:contain; border-radius:8px; background:var(--surface-2,#15151c); }
.product-media figcaption { margin-top:8px; color:var(--ink-2); overflow-wrap:anywhere; }
.content-rows { display:grid; gap:20px; }
.content-row { display:grid; gap:12px; padding:16px; border:1px solid var(--line); border-radius:8px; min-width:0; }
.product-content-editor textarea,.product-content-editor input,.product-content-editor select { max-width:100%; }

.product-gallery .gallery__main { padding:12px; margin:0; }
.product-gallery .gallery__main img { display:block; width:100%; max-width:100%; height:auto; max-height:520px; object-fit:contain; border:0; }
.product-gallery .gallery__thumbs { max-width:100%; }
.product-gallery .gallery__thumbs button { width:104px; display:grid; gap:5px; padding:5px; background:var(--g-1); color:var(--ink-1); }
.product-gallery .gallery__thumbs button img { display:block; aspect-ratio:16/10; object-fit:cover; height:auto; }
.product-gallery .gallery__thumbs span { font-size:12px; line-height:1.35; padding-bottom:2px; }

#product-content { min-width:0; }
.product-gallery { min-width:0; max-width:100%; }

/* Animações: preferência do visitante (/js/theme.js) ------------------------
   html[data-motion] é definido no <head>, antes deste CSS. Desligado: nenhuma
   animação nem transição, em qualquer página. O conteúdo nunca depende delas
   para aparecer (os estados de entrada partem do estado final visível). */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
.nav__motion { display: flex; align-items: center; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: var(--r-2); color: var(--ink-2);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.motion-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.motion-toggle:focus-visible { outline: 2px solid var(--v-400); outline-offset: 2px; }
.motion-toggle svg { width: 16px; height: 16px; flex: none; }
.motion-toggle[aria-pressed="true"] svg { color: var(--v-400); }
.motion-toggle__state { display: none; }
@media (max-width: 1100px) {
  .nav__motion .motion-toggle { width: 36px; padding: 0; justify-content: center; }
  .nav__motion .motion-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.motion-toggle--text { height: 32px; padding: 0 10px; font-size: 13px; color: var(--ink-3); }
.motion-toggle--text .motion-toggle__state { display: inline; color: var(--ink-2); }
.motion-toggle--text .motion-toggle__label::after { content: ":"; }
.footer__bottom { align-items: center; }
