:root {
  --verde-noite: #0F211B;
  --verde-900: #14302A;
  --verde-800: #1B3A31;
  --verde-600: #2F5A4A;
  --ouro-claro: #F3D79A;
  --ouro: #D9A94C;
  --ouro-escuro: #C08F38;
  --bronze: #B9822F;
  --creme: #F8F3EA;
  --creme-2: #F1E8DA;
  --papel: #FBF7EF;
  --tinta: #24201B;
  --texto: #3A352D;
  --texto-suave: #6B6257;
  --fonte-titulo: Bitter, Georgia, serif;
  --fonte-texto: Karla, system-ui, sans-serif;
  --mola: cubic-bezier(0.2, 0.8, 0.2, 1);
  --saida: cubic-bezier(0.16, 0.84, 0.28, 1);
  color-scheme: only light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a,
button,
summary,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:focus:not(:focus-visible) {
  outline: none;
}

body {
  margin: 0;
  font-family: var(--fonte-texto);
  color: var(--tinta);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--fonte-titulo);
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--ouro);
  outline-offset: 3px;
}

.destaque-ouro {
  background: linear-gradient(115deg, var(--ouro-claro), var(--ouro));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.botao-compra {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--ouro-claro), var(--ouro) 58%, var(--ouro-escuro));
  color: #16302A;
  font-family: var(--fonte-texto);
  font-weight: 700;
  font-size: 17.5px;
  line-height: 1.2;
  padding: 19px 28px;
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(217, 169, 76, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.4s var(--mola), box-shadow 0.4s var(--mola), filter 0.4s ease;
  will-change: transform;
}

.botao-compra svg {
  flex: 0 0 auto;
  transition: transform 0.4s var(--mola);
}

@media (hover: hover) and (pointer: fine) {
  .botao-compra:hover {
    transform: scale(1.05);
    filter: brightness(1.06);
    box-shadow: 0 22px 44px rgba(217, 169, 76, 0.5), 0 0 0 6px rgba(240, 208, 138, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
}

@media (hover: hover) and (pointer: fine) {
  .botao-compra:hover svg {
    transform: translateX(5px);
  }
}

.botao-compra:active {
  transform: scale(0.98);
}

.botao-compra--pequeno {
  font-size: 13.5px;
  padding: 10px 18px;
  box-shadow: 0 6px 16px rgba(217, 169, 76, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@media (hover: hover) and (pointer: fine) {
  .botao-compra--pequeno:hover {
    transform: scale(1.07);
    box-shadow: 0 10px 24px rgba(217, 169, 76, 0.48), 0 0 0 4px rgba(240, 208, 138, 0.16);
  }
}

.brilho {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-130%) skewX(-18deg);
}

[data-brilho]:hover .brilho,
[data-brilho]:focus-visible .brilho,
.brilhando .brilho {
  animation: varrerBrilho 0.9s ease;
}

.brilho--continuo {
  animation: brilhoCapa 6.5s ease-in-out infinite;
}

@keyframes varrerBrilho {
  0% { transform: translateX(-130%) skewX(-18deg); }
  100% { transform: translateX(260%) skewX(-18deg); }
}

@keyframes brilhoCapa {
  0% { transform: translateX(-130%) skewX(-18deg); }
  55%, 100% { transform: translateX(260%) skewX(-18deg); }
}

@keyframes flutuar {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(-1.4deg); }
}

@keyframes flutuarCurto {
  0%, 100% { transform: translateY(0) rotate(1.6deg); }
  50% { transform: translateY(-9px) rotate(0.4deg); }
}

@keyframes flutuarFolha {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-11px) rotate(0.6deg); }
}

@keyframes respirar {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.07); }
}

.halo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: respirar 12s ease-in-out infinite;
}

.capa {
  position: relative;
  aspect-ratio: 3 / 4.15;
  flex: 0 0 auto;
}

.capa__folha {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 5px 14px 14px 5px;
  border-left: 8px solid var(--verde-600);
  background: linear-gradient(155deg, #FBF7EF 0%, #F1E5D0 58%, #E6D6BB 100%);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 8% 9%;
}

.capa__titulo {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--verde-noite);
}

.capa__traco {
  height: 3px;
  width: 22%;
  margin: 8% 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ouro), var(--bronze));
}

.capa__sub {
  line-height: 1.4;
  font-weight: 600;
  color: #5B5346;
}

.capa__assinatura {
  margin-top: auto;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--verde-600);
}

.capa__folha .brilho {
  width: 46%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0) 100%);
}

.js [data-revelar] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s var(--saida);
  transition-delay: var(--atraso, 0s);
}

.js [data-revelar].revelado {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-revelar] {
    opacity: 1;
    transform: none;
  }
}
