/* ============================================================
   BEYOND THE PAGES — site.css
   Estética: cósmico-ocultista, escuro, dourado, editorial.
   Sem frameworks. Paleta extraída da logo.
   ============================================================ */

:root {
  --ink:        #06040c;
  --ink-2:      #0d0817;
  --ink-3:      #150d24;
  --violet:     #6d3bbf;
  --violet-lit: #a06ef0;
  --gold:       #d9a441;
  --gold-lit:   #f3d08a;
  --gold-pale:  #f7e7c3;
  --fog:        #b9aec9;
  --paper:      #f4eee4;

  /* linhas finas douradas — a "moldura" recorrente do site */
  --gold-deep:  #b07f27;

  /* Triplets RGB: permitem rgba(...) e trocam junto com o tema */
  --ink-rgb:        6, 4, 12;
  --ink-2-rgb:      13, 8, 23;
  --ink-3-rgb:      21, 13, 36;
  --violet-rgb:     109, 59, 191;
  --violet-lit-rgb: 160, 110, 240;
  --gold-rgb:       217, 164, 65;
  --gold-lit-rgb:   243, 208, 138;
  --gold-pale-rgb:  247, 231, 195;

  /* Cores das estrelas do canvas (lidas pelo JS) */
  --star-warm: 243, 208, 138;
  --star-cool: 233, 226, 245;

  /* Imagens/vídeo: o tema monocromático dessatura tudo */
  --media-filter: none;

  --line:       rgba(var(--gold-rgb), .16);
  --line-lit:   rgba(var(--gold-rgb), .38);

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-serif:   "Cormorant Garamond", Georgia, serif;
  --font-sans:    "Jost", system-ui, -apple-system, sans-serif;

  --nav-h: 86px;
  --nav-h-small: 64px;
  --container: 1240px;

  --ease-out: cubic-bezier(.22, .61, .21, 1);
  --ease-luxe: cubic-bezier(.65, 0, .18, 1);
}

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: .01em;
  overflow-x: hidden;
  min-height: 100vh;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-lit); text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection { background: var(--violet); color: var(--gold-pale); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Scrollbar discreto, na paleta */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: var(--ink-3);
  border: 2px solid var(--ink);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* ---------- Tipografia ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  /* dourado líquido descendo sobre o título */
  background: linear-gradient(178deg, var(--paper) 20%, var(--gold-pale) 55%, var(--gold) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-pale); /* fallback */
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  color: var(--paper);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--gold-pale);
}

.kicker {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .34em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  flex: none;
}

.section-head--center .kicker::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  flex: none;
}

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.6;
  color: var(--paper);
}

.muted { color: var(--fog); }

/* ---------- Layout ---------- */

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(6rem, 11vw, 10.5rem) 0;
  scroll-margin-top: var(--nav-h-small);
  /* As nebulosas decorativas são posicionadas com left/right negativos.
     `clip` corta o excesso lateral sem criar um contexto de rolagem
     (ao contrário de `hidden`), então sticky/fixed continuam intactos. */
  overflow-x: clip;
}

/* Safari < 16 não conhece `clip`: usa hidden, que aqui também serve. */
@supports not (overflow: clip) {
  .section { overflow: hidden; }
}

.section-head { max-width: 48rem; margin-bottom: clamp(3rem, 5vw, 4.5rem); }

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p { margin-top: 1.1rem; color: var(--fog); }

/* Filete dourado que se "desenha" (scaleX) quando a seção entra na viewport */
.rule {
  display: block;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-lit) 18%, var(--line-lit) 82%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s var(--ease-luxe) .15s;
}

.rule--center { transform-origin: center; }

.visible .rule, .rule.visible { transform: scaleX(1); }

/* Nebulosa: halo radial violeta atrás das seções (parallax) */
.nebula {
  position: absolute;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(var(--violet-rgb), .32), rgba(var(--violet-rgb), .1) 42%, transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.section > .container { position: relative; z-index: 1; }

/* Textura de papel/estrelas sutil em seções alternadas */
.section--textured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/section-texture.jpg") center / cover no-repeat;
  opacity: .07;
  pointer-events: none;
}

/* ---------- Botões ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 2.1rem;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  border-radius: 2px;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .35s var(--ease-out), color .35s var(--ease-out),
              border-color .35s var(--ease-out);
  white-space: nowrap;
}

/* brilho que varre o botão no hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(var(--gold-pale-rgb), .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-luxe);
  pointer-events: none;
}

.btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); }

.btn--gold {
  background: linear-gradient(160deg, var(--gold-lit), var(--gold) 60%, var(--gold-deep));
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(var(--gold-lit-rgb), .35) inset, 0 8px 30px -12px rgba(var(--gold-rgb), .55);
}

.btn--gold:hover, .btn--gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(var(--gold-lit-rgb), .5) inset, 0 14px 40px -12px rgba(var(--gold-rgb), .75);
}

.btn--ghost {
  border: 1px solid var(--line-lit);
  color: var(--gold-pale);
  background: rgba(var(--gold-rgb), .02);
}

.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), .08);
  transform: translateY(-2px);
}

.btn--sm { padding: .62rem 1.4rem; font-size: .74rem; }

/* Link-seta editorial (Alle Bücher ansehen / Zum vollständigen Katalog) */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold);
  transition: color .3s, gap .3s var(--ease-out);
}

.arrow-link::after { content: "→"; font-family: var(--font-serif); transition: transform .3s var(--ease-out); }

.arrow-link:hover { color: var(--gold-lit); gap: 1rem; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Barra de progresso de leitura ---------- */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1001;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lit));
  box-shadow: 0 0 12px rgba(var(--gold-rgb), .7);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ---------- Navegação ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background-color .45s var(--ease-out), border-color .45s var(--ease-out),
              backdrop-filter .45s var(--ease-out), box-shadow .45s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--nav-h);
  transition: height .45s var(--ease-out);
}

/* estado "rolado": encolhe, ganha blur e filete dourado */
.nav.is-scrolled {
  background: rgba(var(--ink-rgb), .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .9);
}

.nav.is-scrolled .nav__inner { height: var(--nav-h-small); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  flex: none;
}

.brand img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 12px rgba(var(--violet-lit-rgb), .45));
  transition: width .45s var(--ease-out), height .45s var(--ease-out), transform .6s var(--ease-out);
}

.brand:hover img { transform: rotate(-4deg) scale(1.06); }

.nav.is-scrolled .brand img { width: 38px; height: 38px; }

.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.brand__text b { font-weight: 700; font-size: .92rem; color: var(--gold-pale); }
.brand__text i { font-style: normal; font-weight: 400; font-size: .66rem; color: var(--gold); letter-spacing: .3em; }

.nav__links {
  display: flex;
  gap: clamp(1.4rem, 3vw, 2.8rem);
  margin-left: auto;
}

.nav__links a {
  position: relative;
  font-size: .8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--fog);
  padding: .4rem 0;
  transition: color .3s;
}

/* sublinhado dourado que cresce do centro */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .4s var(--ease-out);
}

.nav__links a:hover { color: var(--gold-pale); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { flex: none; }

/* Hambúrguer */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex: none;
  z-index: 1101;
}

.burger span {
  display: block;
  height: 1px;
  background: var(--gold-pale);
  transition: transform .45s var(--ease-luxe), opacity .3s, width .45s var(--ease-luxe);
}

.burger span:nth-child(2) { width: 70%; }

body.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Menu mobile (overlay fullscreen) ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(var(--violet-rgb), .28), transparent 70%),
    rgba(var(--ink-rgb), .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility 0s linear .5s;
}

body.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.menu img { width: 88px; height: 88px; }

.menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color .3s;
}

.menu a:not(.btn):hover { color: var(--gold-lit); }

/* stagger de entrada dos itens do menu */
.menu > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}

body.menu-open .menu > * { opacity: 1; transform: none; }
body.menu-open .menu > *:nth-child(1) { transition-delay: .08s; }
body.menu-open .menu > *:nth-child(2) { transition-delay: .15s; }
body.menu-open .menu > *:nth-child(3) { transition-delay: .22s; }
body.menu-open .menu > *:nth-child(4) { transition-delay: .29s; }
body.menu-open .menu > *:nth-child(5) { transition-delay: .36s; }
body.menu-open .menu > *:nth-child(6) { transition-delay: .43s; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
}

/* Vídeo cósmico de fundo, com parallax e máscara p/ fundir no --ink.
   O poster fica como background: aparece instantaneamente e continua
   servindo de fundo se o vídeo não carregar (reduced-motion, economia de dados). */
.hero__bg {
  position: absolute;
  inset: -12% 0;
  background: url("/img/hero-poster.jpg") center center / cover no-repeat;
  opacity: .58;
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* só aparece depois que há quadro suficiente para tocar sem engasgo */
.hero__video.is-ready { opacity: 1; }

.hero__neb {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 45% at 50% 30%, rgba(var(--violet-rgb), .34), transparent 70%),
    radial-gradient(38% 30% at 50% 18%, rgba(var(--gold-rgb), .12), transparent 70%),
    radial-gradient(120% 55% at 50% 108%, var(--ink) 40%, transparent 78%);
  will-change: transform;
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 60rem;
}

.hero__mark {
  width: clamp(120px, 16vw, 176px);
  height: auto;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 0 34px rgba(var(--violet-lit-rgb), .5));
  animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero .kicker { justify-content: center; }

.hero .kicker::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  flex: none;
}

.hero h1 {
  max-width: 17ch;
  filter: drop-shadow(0 10px 40px rgba(var(--ink-rgb), .9));
}

.hero__sub {
  margin-top: 1.4rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--fog);
  letter-spacing: .04em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.6rem;
}

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.8rem;
  font-size: .74rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--fog);
  opacity: .85;
}

.hero__note::before, .hero__note::after {
  content: "✦";
  color: var(--gold);
  font-size: .6rem;
}

/* indicativo de scroll: linha vertical com ponto descendo */
.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  background: var(--line);
  overflow: hidden;
  z-index: 2;
}

.hero__scroll span {
  position: absolute;
  top: -30%;
  left: 0;
  width: 1px;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--gold-lit));
  animation: scrollCue 2.4s var(--ease-luxe) infinite;
}

@keyframes scrollCue {
  0%   { top: -30%; }
  70%, 100% { top: 105%; }
}

/* ---------- Manifest ---------- */

#manifest .nebula { top: -10%; right: -22%; }

.manifest-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.manifest-copy p + p { margin-top: 1.6rem; }

.manifest-copy .lead::first-letter {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 3.1em;
  line-height: .82;
  float: left;
  padding: .08em .12em 0 0;
  color: var(--gold);
}

.manifest-copy p:last-child {
  color: var(--fog);
  font-size: 1.05rem;
}

/* marca fantasma gigante flutuando atrás do manifesto */
.manifest-ghost {
  position: absolute;
  top: 50%;
  left: -8%;
  width: min(46vw, 560px);
  opacity: .07;
  pointer-events: none;
  will-change: transform;
  user-select: none;
}

/* ---------- Themenwelten ---------- */

#welten .nebula { bottom: -18%; left: -24%; }

.welten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.welt {
  position: relative;
  display: block;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  min-height: 15rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: inherit;
  overflow: hidden;
  transition: background-color .5s var(--ease-out);
}

/* halo violeta que acende dentro da célula */
.welt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(75% 90% at 50% 110%, rgba(var(--violet-rgb), .25), transparent 70%);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
  pointer-events: none;
}

.welt:hover::before, .welt:focus-visible::before { opacity: 1; }
.welt:hover { background: rgba(var(--ink-3-rgb), .5); }

.welt__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--gold-rgb), .45);
  line-height: 1;
  margin-bottom: 1.4rem;
  transition: color .5s var(--ease-out), transform .5s var(--ease-out);
}

.welt:hover .welt__num {
  color: rgba(var(--gold-rgb), .8);
  transform: translateY(-4px);
}

.welt h3 {
  font-size: 1.1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .7rem;
  transition: color .4s;
}

.welt:hover h3 { color: var(--gold-lit); }

.welt p { font-size: .95rem; color: var(--fog); }

/* filete inferior dourado que cresce no hover */
.welt::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lit));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-luxe);
}

.welt:hover::after, .welt:focus-visible::after { transform: scaleX(1); }

.welten-foot { margin-top: 2.8rem; text-align: center; }

/* ---------- Katalog ---------- */

#katalog .nebula { top: 6%; right: -26%; }

.katalog-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem 2rem;
  margin-bottom: 2.6rem;
}

.katalog-intro h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--paper);
}

.katalog-intro p { color: var(--fog); max-width: 46rem; }

/* Filtros */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 3rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1rem;
}

.filter-label {
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--gold);
  margin-right: .4rem;
}

.filter-btn {
  padding: .42rem 1.05rem;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--fog);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color .3s, border-color .3s, background-color .3s, opacity .3s;
}

.filter-btn:hover { color: var(--gold-pale); border-color: var(--line); }

.filter-btn.is-active {
  color: var(--gold-pale);
  border-color: var(--line-lit);
  background: rgba(var(--gold-rgb), .07);
}

.filter-btn:disabled {
  opacity: .28;
  pointer-events: none;
}

/* Grid de livros */
.grid-books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.4vw, 2.4rem);
}

/* Card de livro — tilt 3D via CSS vars (--rx/--ry) setadas no JS */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(175deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
  transition: border-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
  will-change: transform;
}

.card:hover {
  --lift: -6px;
  border-color: var(--line-lit);
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, .9),
    0 0 50px -18px rgba(var(--violet-rgb), .45);
}

/* brilho dourado que varre o card acompanhando o cursor */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--gold-rgb), .13), transparent 45%);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}

.card:hover::after { opacity: 1; }

.card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  /* "placa de galeria": os mockups vêm em fundo claro — moldura fina resolve */
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1s var(--ease-luxe), filter 1s var(--ease-luxe);
  filter: saturate(.92);
}

.card:hover .card__media img { transform: scale(1.09); filter: saturate(1); }

/* vinheta violeta unificando as fotos claras com o card escuro */
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 70px rgba(var(--ink-2-rgb), .5);
  background: linear-gradient(200deg, rgba(var(--violet-rgb), .1), transparent 40%);
  pointer-events: none;
}

.card__badge {
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 1;
  padding: .34rem .8rem;
  font-size: .66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold-pale);
  background: rgba(var(--ink-rgb), .78);
  border: 1px solid var(--line-lit);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .8rem;
  padding: 1.6rem 1.5rem 1.5rem;
}

.card__title {
  font-size: 1.28rem;
  letter-spacing: .1em;
}

.card__meta {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fog);
}

.card__desc { font-size: .97rem; color: var(--fog); flex: 1; }

.card__themes {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.card__themes span {
  padding: .22rem .7rem;
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--violet-lit);
  border: 1px solid rgba(var(--violet-lit-rgb), .28);
  border-radius: 999px;
}

.card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.card__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-lit);
  white-space: nowrap;
}

/* ---------- Produktansichten (cenas com parallax) ---------- */

#ansichten .nebula { top: 30%; left: -26%; }

.scenes {
  display: flex;
  flex-direction: column;
  gap: clamp(4.5rem, 8vw, 8rem);
}

.scene {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.scene:nth-child(even) .scene__media { order: 2; }

.scene__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-lit);
  border-radius: 4px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85), 0 0 80px -30px rgba(var(--violet-rgb), .35);
}

/* imagem maior que o quadro: sobra para o deslocamento do parallax */
.scene__media img {
  position: absolute;
  inset: -9% 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}

/* cantoneiras douradas decorativas */
.scene__media::before, .scene__media::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  opacity: .55;
  z-index: 1;
  pointer-events: none;
}

.scene__media::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.scene__media::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.scene__num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--gold-rgb), .5);
  margin-bottom: 1.4rem;
}

.scene__info h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: .1em;
  margin-bottom: .9rem;
}

.scene__info .card__meta { margin-bottom: 1.2rem; }

.scene__info > p:not(.card__meta) { color: var(--fog); max-width: 42rem; }

.scene__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.8rem;
}

.ansichten-foot { margin-top: clamp(3rem, 6vw, 5rem); text-align: center; }

/* ---------- Bestellen (4 passos) ---------- */

#bestellen .nebula { bottom: -20%; right: -22%; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.6rem, 3vw, 3rem);
  counter-reset: none;
  position: relative;
}

/* linha horizontal contínua unindo os passos (desenha no reveal) */
.steps::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-lit) 12%, var(--line-lit) 88%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease-luxe) .2s;
}

.steps.visible::before { transform: scaleX(1); }

.step { position: relative; padding-top: .4rem; }

.step__num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-lit);
  border: 1px solid var(--line-lit);
  border-radius: 50%;
  background: var(--ink);
  transition: box-shadow .5s var(--ease-out), border-color .5s;
}

.step:hover .step__num {
  border-color: var(--gold);
  box-shadow: 0 0 26px -6px rgba(var(--gold-rgb), .6);
}

.step h3 { font-size: 1.05rem; letter-spacing: .06em; margin-bottom: .6rem; }

.step p { font-size: .95rem; color: var(--fog); }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 2.5rem;
  background:
    radial-gradient(70% 90% at 50% 120%, rgba(var(--violet-rgb), .16), transparent 70%),
    var(--ink);
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.footer__brand img { width: 62px; height: 62px; filter: drop-shadow(0 0 14px rgba(var(--violet-lit-rgb), .4)); }

.footer__brand p {
  margin-top: .3rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .98rem;
  color: var(--fog);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
  justify-content: flex-end;
  align-items: center;
  padding-top: .8rem;
}

.footer__links a {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--fog);
  transition: color .3s;
}

.footer__links a:hover { color: var(--gold-lit); }

.footer__note {
  grid-column: 1 / -1;
  margin-top: 1.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--fog);
  opacity: .8;
}

/* ---------- Modal de detalhe ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  visibility: hidden;
}

.modal.is-open { visibility: visible; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--ink-rgb), .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}

.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
  position: relative;
  width: min(100%, 980px);
  max-height: min(88vh, 88svh);
  overflow-y: auto;
  background: linear-gradient(170deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line-lit);
  border-radius: 6px;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95), 0 0 90px -30px rgba(var(--violet-rgb), .4);
  opacity: 0;
  transform: translateY(26px) scale(.96);
  transition: opacity .45s var(--ease-out), transform .5s var(--ease-luxe);
}

.modal.is-open .modal__panel { opacity: 1; transform: none; }

.modal__close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-pale);
  background: rgba(var(--ink-rgb), .7);
  border: 1px solid var(--line-lit);
  border-radius: 50%;
  transition: transform .4s var(--ease-out), border-color .3s, color .3s;
}

.modal__close:hover { transform: rotate(90deg); border-color: var(--gold); color: var(--gold-lit); }

.modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.modal__media {
  position: relative;
  min-height: 100%;
  border-right: 1px solid var(--line);
}

.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(var(--ink-2-rgb), .45);
  pointer-events: none;
}

.modal__info {
  padding: clamp(1.8rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.modal__info .card__badge { position: static; align-self: flex-start; }

.modal__info h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: .1em;
}

.modal__desc { color: var(--fog); font-size: .99rem; }

.modal__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.modal__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-lit);
}

/* ---------- Botão flutuante WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--gold-lit);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-lit);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .9);
  opacity: 0;
  transform: translateY(24px) scale(.85);
  pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-luxe), border-color .3s;
}

.wa-float.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wa-float:hover { border-color: var(--gold); color: var(--gold-pale); }

.wa-float svg { width: 26px; height: 26px; }

/* pulso dourado sutil */
.wa-float::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  animation: waPulse 2.8s ease-out infinite;
}

.wa-float:not(.is-visible)::before { animation-play-state: paused; }

@keyframes waPulse {
  0%   { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Cursor glow (desktop) ---------- */

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  z-index: 800;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--violet-rgb), .16), rgba(var(--violet-rgb), .05) 45%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
}

/* ---------- Scroll reveal ----------
   Estados iniciais SÓ quando o JS está ativo (html.js),
   para nunca esconder conteúdo sem JavaScript. */

html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform, filter;
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* filhos com stagger dentro de um bloco revelado */
html.js .stagger > * {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity .9s var(--ease-out),
    transform .9s var(--ease-out),
    filter .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}

html.js .stagger.visible > * {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Responsivo ---------- */

@media (max-width: 1080px) {
  .grid-books { grid-template-columns: repeat(2, 1fr); }
  .welten-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.6rem 2rem; }
  .steps::before { display: none; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; }

  .manifest-grid { grid-template-columns: 1fr; }

  .scene, .scene:nth-child(even) { grid-template-columns: 1fr; }
  .scene:nth-child(even) .scene__media { order: 0; }
  .scene__media { max-width: 540px; }

  .modal__grid { grid-template-columns: 1fr; }
  .modal__media { border-right: 0; border-bottom: 1px solid var(--line); }
  .modal__media img { aspect-ratio: 16 / 11; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }

  .grid-books { grid-template-columns: 1fr; }
  .welten-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }

  .kicker { letter-spacing: .26em; }

  .card__actions { flex-wrap: wrap; }

  .wa-float { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
}

/* telas muito largas: respiro extra */
@media (min-width: 1800px) {
  :root { --container: 1360px; }
  .section { padding: 12rem 0; }
}

/* ---------- prefers-reduced-motion: desliga tudo ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  html.js .reveal,
  html.js .stagger > * {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .rule, .steps::before { transform: none; }

  .hero__mark, .hero__scroll span, .wa-float::before { animation: none; }

  .hero__scroll { display: none; }
}

/* Bereiche, die im Admin-Panel deaktiviert wurden */
[hidden] { display: none !important; }

/* ============================================================
   Ajustes de uso no celular
   Alvos de toque maiores, filtros numa faixa rolável e o botão
   de pedido sempre ao alcance do polegar.
   ============================================================ */

@media (max-width: 860px) {
  /* Os filtros quebravam em três linhas e empurravam o catálogo para baixo.
     Cada grupo vira uma faixa que rola na horizontal, numa linha só. */
  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: .9rem;
    padding: 1.1rem 0;
  }

  .filter-group {
    flex-wrap: nowrap;
    align-items: center;
    gap: .7rem;
  }

  .filter-label {
    flex: none;
    margin-right: 0;
    min-width: 4.4rem;
    letter-spacing: .18em;
  }

  .filter-opts {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* sangra até a borda da tela, para o último filtro não parecer cortado */
    margin-right: calc(1.5rem * -1);
    padding-right: 1.5rem;
  }

  .filter-opts::-webkit-scrollbar { display: none; }

  .filter-btn {
    flex: none;
    scroll-snap-align: start;
    min-height: 40px;
    padding: .5rem 1.05rem;
    font-size: .85rem;
    border-color: var(--line);
  }
}

@media (max-width: 620px) {
  /* ~46px é o mínimo confortável para o polegar */
  .btn { min-height: 46px; }

  .card__actions { flex-wrap: nowrap; gap: .9rem; }
  .card__actions .btn { flex: 1; }

  .scene__actions { flex-wrap: wrap; gap: .8rem; }
  .scene__actions .btn { flex: 1 1 100%; }

  /* Descrições longas empurravam o botão de pedido para fora da tela.
     Agora ele fica colado no rodapé do modal enquanto se lê. */
  .modal__cta {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -1.8rem -1.8rem;
    padding: 1rem 1.8rem 1.2rem;
    background: linear-gradient(180deg, rgba(var(--ink-2-rgb), 0), var(--ink-3) 30%);
    border-top: 1px solid var(--line);
  }

  .modal__cta .btn { flex: 1; }

  /* botão de fechar mais destacado sobre a imagem do livro */
  .modal__close {
    background: rgba(var(--ink-rgb), .92);
    border-color: var(--line-lit);
  }

  .footer__links { gap: 1.4rem 2rem; }
  .footer__links a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Contador de resultados: mostra que o filtro reagiu ao toque */
.filter-count {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fog);
  align-self: center;
  white-space: nowrap;
}

/* ---------- Correções de legibilidade e de dica de rolagem ---------- */

/* Sobre o vídeo claro do hero, a marca no topo perdia contraste.
   Um véu suave devolve a leitura sem escurecer o vídeo inteiro; some
   assim que a nav ganha o próprio fundo ao rolar. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(var(--ink-rgb), .78), rgba(var(--ink-rgb), 0));
  pointer-events: none;
  transition: opacity .45s var(--ease-out);
}

.nav.is-scrolled::before { opacity: 0; }

@media (max-width: 860px) {
  /* Esmaece a borda direita da faixa de filtros: sinaliza que há mais a ver */
  .filter-opts {
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 82%, transparent 100%);
  }

  /* rolou até o fim: nada mais escondido, tira o esmaecido */
  .filter-opts.is-end {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 620px) {
  /* "Über WhatsApp bestellen" não cabia ao lado do preço e era cortado.
     Preço em cima, botão ocupando a largura toda embaixo. */
  .modal__cta {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .7rem;
  }

  .modal__cta .btn {
    flex: 1 1 100%;
    order: 2;
    padding-inline: 1rem;
    font-size: .76rem;
    letter-spacing: .12em;
  }

  .modal__price {
    order: 1;
    font-size: 1.3rem;
  }
}

/* ============================================================
   Seletor de idioma
   ============================================================ */

.langbar {
  position: relative;
  flex: none;
  z-index: 20;
}

.langbar__toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 40px;
  padding: .4rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-pale);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  background: rgba(var(--ink-rgb), .35);
  transition: border-color .3s, background-color .3s;
}

.langbar__toggle:hover { border-color: var(--gold); background: rgba(var(--gold-rgb), .1); }

.langbar__flag { font-size: 1.05rem; line-height: 1; }

.langbar__caret {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease-out);
}

.langbar.is-open .langbar__caret { transform: rotate(-135deg) translate(-3px, -3px); }

.langbar__list {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  min-width: 12.5rem;
  max-height: min(60vh, 26rem);
  overflow-y: auto;
  list-style: none;
  padding: .4rem;
  border: 1px solid var(--line-lit);
  border-radius: 8px;
  background: linear-gradient(170deg, var(--ink-2), var(--ink-3));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility .28s;
}

.langbar.is-open .langbar__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.langbar__item {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  min-height: 42px;
  padding: .5rem .8rem;
  border-radius: 5px;
  color: var(--fog);
  font-size: .92rem;
  text-align: left;
  transition: background-color .25s, color .25s;
}

.langbar__item:hover { background: rgba(var(--gold-rgb), .1); color: var(--gold-pale); }

.langbar__item.is-active {
  color: var(--gold-lit);
  background: rgba(var(--gold-rgb), .07);
}

/* No menu mobile a lista abre para cima e centralizada */
.langbar--menu .langbar__list {
  top: auto;
  bottom: calc(100% + .6rem);
  right: 50%;
  transform: translate(50%, 8px);
}

.langbar--menu.is-open .langbar__list { transform: translate(50%, 0); }

@media (max-width: 860px) {
  /* na barra fixa fica só a bandeira; a lista completa vive no menu */
  .nav .langbar { margin-left: auto; margin-right: .4rem; }
  .nav .langbar__code { display: none; }
  .nav .langbar__toggle { padding: .4rem .6rem; }
}

/* ============================================================
   TEMA MONOCROMÁTICO — preto, branco e cinza
   Toda a paleta vive em variáveis, então o tema é uma troca de
   tokens; só as mídias precisam de dessaturação explícita.
   ============================================================ */

:root[data-theme="mono"] {
  --ink:        #000000;
  --ink-2:      #0b0b0b;
  --ink-3:      #171717;

  /* o "violeta" passa a ser o cinza das nebulosas e dos halos */
  --violet:     #4a4a4a;
  --violet-lit: #9e9e9e;

  /* o "dourado" passa a ser a prata dos filetes, kickers e botões */
  --gold:       #9c9c9c;
  --gold-lit:   #dcdcdc;
  --gold-pale:  #f4f4f4;
  --gold-deep:  #5f5f5f;

  --fog:        #a5a5a5;
  --paper:      #ffffff;

  --ink-rgb:        0, 0, 0;
  --ink-2-rgb:      11, 11, 11;
  --ink-3-rgb:      23, 23, 23;
  --violet-rgb:     168, 168, 168;
  --violet-lit-rgb: 232, 232, 232;
  --gold-rgb:       222, 222, 222;
  --gold-lit-rgb:   244, 244, 244;
  --gold-pale-rgb:  255, 255, 255;

  --star-warm: 255, 255, 255;
  --star-cool: 186, 186, 186;

  --line:     rgba(255, 255, 255, .15);
  --line-lit: rgba(255, 255, 255, .38);
}

/* Mídias: dessaturadas com um leve ganho de contraste, senão as capas
   dos livros (já quase monocromáticas) ficariam apagadas no preto. */
:root[data-theme="mono"] img,
:root[data-theme="mono"] video {
  filter: grayscale(1) contrast(1.06);
}

/* filtra o poster e o vídeo de uma vez, sem perder o halo dos logos */
:root[data-theme="mono"] .hero__bg { filter: grayscale(1) contrast(1.04); }
:root[data-theme="mono"] .hero__bg video { filter: none; }
:root[data-theme="mono"] .section--textured::before { filter: grayscale(1); }

:root[data-theme="mono"] .brand img {
  filter: grayscale(1) drop-shadow(0 0 12px rgba(255, 255, 255, .38));
}

:root[data-theme="mono"] .hero__mark {
  filter: grayscale(1) drop-shadow(0 0 34px rgba(255, 255, 255, .42));
}

:root[data-theme="mono"] .footer__brand img {
  filter: grayscale(1) drop-shadow(0 0 14px rgba(255, 255, 255, .3));
}

:root[data-theme="mono"] .card__media img {
  filter: grayscale(1) contrast(1.06);
}

/* No preto puro o degradê do H1 precisa de mais amplitude para
   continuar parecendo metal, e não um cinza chapado. */
:root[data-theme="mono"] h1 {
  background: linear-gradient(178deg, #ffffff 12%, #e4e4e4 48%, #8f8f8f 96%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* O botão principal vira prata escovada sobre texto preto */
:root[data-theme="mono"] .btn--gold {
  background: linear-gradient(160deg, #ffffff, #cfcfcf 58%, #8d8d8d);
  color: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset,
              0 8px 30px -12px rgba(255, 255, 255, .3);
}

:root[data-theme="mono"] .btn--gold:hover,
:root[data-theme="mono"] .btn--gold:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset,
              0 14px 40px -12px rgba(255, 255, 255, .45);
}

:root[data-theme="mono"] ::selection { background: #ffffff; color: #000000; }

:root[data-theme="mono"] ::-webkit-scrollbar-thumb:hover { background: #6a6a6a; }

/* ---------- Botão de troca de tema ---------- */

.themetoggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-pale);
  background: rgba(var(--ink-rgb), .35);
  transition: border-color .3s, background-color .3s, transform .45s var(--ease-luxe);
}

.themetoggle:hover {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), .1);
}

.themetoggle svg { width: 18px; height: 18px; display: block; }

/* o ícone de contraste gira meia volta ao alternar */
:root[data-theme="mono"] .themetoggle { transform: rotate(180deg); }

@media (max-width: 860px) {
  .nav .themetoggle { margin-right: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .themetoggle { transition: none; }
}

/* ============================================================
   SEÇÕES DE CONVERSÃO
   ============================================================ */

/* ---------- Selo de confiança (faixa fina abaixo do hero) ---------- */

.trustbar {
  position: relative;
  padding: clamp(2.2rem, 4vw, 3.2rem) 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--ink-3-rgb), .55), transparent);
}

.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
}

.trust-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}

.trust-item__mark {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-lit);
  border-radius: 50%;
  color: var(--gold);
  font-size: .7rem;
  margin-top: .15rem;
}

.trust-item__mark svg { width: 15px; height: 15px; }

.trust-item h3 {
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: .25rem;
}

.trust-item p {
  font-size: .88rem;
  line-height: 1.55;
  color: var(--fog);
}

/* ---------- Por que comprar aqui ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
}

.why-card {
  position: relative;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(165deg, rgba(var(--ink-3-rgb), .7), rgba(var(--ink-2-rgb), .5));
  transition: border-color .4s var(--ease-out), transform .4s var(--ease-out);
}

.why-card:hover { border-color: var(--line-lit); transform: translateY(-4px); }

/* algarismo romano marcando o pilar */
.why-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .28em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.why-card h3 { margin-bottom: .8rem; }
.why-card p { color: var(--fog); font-size: .97rem; }

/* ---------- Depoimentos ---------- */

.voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.voice {
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(var(--ink-2-rgb), .5);
}

.voice__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--paper);
  margin-bottom: 1.2rem;
}

.voice__by {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.voice__by span { color: var(--fog); }

/* ---------- Envio e pagamento ---------- */

.ship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.8rem);
}

.ship-card { padding-top: 1.6rem; border-top: 1px solid var(--line-lit); }
.ship-card h3 { margin-bottom: .7rem; }
.ship-card p { color: var(--fog); font-size: .97rem; }

/* ---------- FAQ (accordion nativo, sem JS) ---------- */

.faq-list {
  max-width: 54rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--gold-pale);
  transition: color .3s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-lit); }

/* cruz que vira menos ao abrir */
.faq-item summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1px 100% no-repeat;
  transition: transform .4s var(--ease-luxe);
}

.faq-item[open] summary::after {
  transform: rotate(90deg);
  background: linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat;
}

.faq-item__answer {
  padding: 0 0 1.5rem;
  max-width: 46rem;
  color: var(--fog);
  animation: faqOpen .45s var(--ease-out);
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.faq-foot { margin-top: 2.4rem; }

/* ---------- Chamada final ---------- */

.finalcta { text-align: center; }

.finalcta__neb { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.finalcta__box {
  position: relative;
  max-width: 48rem;
  margin-inline: auto;
  padding: clamp(2.6rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  border: 1px solid var(--line-lit);
  border-radius: 4px;
  background: linear-gradient(170deg, rgba(var(--ink-3-rgb), .8), rgba(var(--ink-rgb), .8));
}

.finalcta .kicker { justify-content: center; }

.finalcta .kicker::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  flex: none;
}

.finalcta__text {
  margin: 1.4rem auto 2.4rem;
  max-width: 38rem;
  color: var(--fog);
}

.btn--lg { padding: 1.15rem 2.8rem; font-size: .88rem; }

.finalcta__note {
  margin-top: 1.8rem;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fog);
}

/* ---------- Responsivo ---------- */

@media (max-width: 1080px) {
  .trustbar__grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .ship-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .trustbar__grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .why-grid, .ship-grid { grid-template-columns: 1fr; }
  .faq-item summary { padding: 1.15rem 0; gap: .9rem; }
  .btn--lg { width: 100%; }
}
