/* Keep the grid as a local atmospheric detail rather than a persistent page texture. */
body { background: var(--ink); }

/* Consent is handled on first visit; keep the persistent settings control out of the layout. */
.cookie-settings { display: none !important; }

.hero,
.manifesto,
.stories {
  background-image:
    linear-gradient(90deg, var(--ink) 0%, rgba(17, 17, 16, .96) 34%, rgba(17, 17, 16, .50) 72%, rgba(10, 20, 27, .82) 100%),
    linear-gradient(rgba(108, 126, 133, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 126, 133, .18) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  background-position: center;
}

.hero { background-color: #101111; }

.hero-image img { object-position: 50% 45%; }

.book-frame { padding: 0; border: 1px solid var(--pink); background: transparent; }
.story-grid article:first-child img { object-position: center 52%; }
.story-grid article:nth-child(2) img { object-fit: contain; }

.stats .stat-key { font: 700 26px/.95 "DM Sans", sans-serif; letter-spacing: -.06em; }
.stats span { font-size: 13px; text-transform: none; }
.stats span b { font-weight: 700; }

/* The offer is now an editorial close: a single book mockup over an atmospheric grid. */
.offer {
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 76% 28%, rgba(0, 141, 160, .16), transparent 28%),
    linear-gradient(90deg, rgba(17, 17, 16, .95) 0%, rgba(17, 17, 16, .63) 58%, rgba(7, 23, 28, .80) 100%),
    linear-gradient(rgba(108, 126, 133, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 126, 133, .22) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
}

.offer-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; gap: 30px; }
.offer-grid > img { width: min(270px, 68%); max-width: none; margin: 0 auto; transform: none; }
.offer-actions { margin-top: 34px; text-align: center; }
.offer-price { margin: 0 0 24px; text-align: center; }
.offer-price .price-before { margin: 0 0 4px; }
.offer-price .price { margin: 0; }

/* Fade the technical grid into the media cards instead of ending it on a hard divider. */
.story-grid {
  padding-top: 72px;
  background: linear-gradient(to bottom, transparent 0%, rgba(17, 17, 16, .7) 46%, var(--ink) 100%);
}

.story-grid article { border-top: 0; }

.hero-actions { width: fit-content; margin: 0 auto; text-align: center; }
.hero-actions .launch-note { margin-bottom: 0; }

@media (max-width: 720px) {
  .hero-actions { margin-inline: auto; }
}

.manifesto {
  background-color: #131313;
  background-image:
    radial-gradient(circle at 82% 45%, rgba(0, 143, 165, .15), transparent 27%),
    linear-gradient(90deg, var(--ink) 0%, rgba(17, 17, 16, .98) 35%, rgba(17, 17, 16, .68) 73%, rgba(10, 21, 26, .88) 100%),
    linear-gradient(rgba(108, 126, 133, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 126, 133, .14) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
}

.stories {
  background-color: #111110;
  background-image:
    radial-gradient(circle at 78% 8%, rgba(0, 134, 154, .12), transparent 25%),
    linear-gradient(90deg, var(--ink) 0%, rgba(17, 17, 16, .93) 50%, rgba(17, 17, 16, .62) 100%),
    linear-gradient(rgba(108, 126, 133, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 126, 133, .12) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
}

@media (max-width: 720px) {
  .hero-grid { padding-top: 78px; }
  .hero h1 { font-size: 48px; }
  .hero-copy > .kicker { margin-bottom: 17px; }
  .hero-copy .lead { margin-block: 20px; font-size: 14px; line-height: 1.52; }
  .hero-actions .launch-note { margin-top: 15px; }
  .hero-image { margin-top: 96px; }
  .manifesto-copy .button { display: flex; width: fit-content; margin: 44px auto 0; }
  .stories h2 { margin-bottom: 35px; }
  .story-grid { padding-top: 25px; }
  .story-grid article { padding-top: 0; }
  .story-grid article:nth-child(2) { border-top: 1px solid rgba(242, 234, 220, .28); padding-top: 28px; }
  .offer .price-before, .offer .price, .offer .safe-note { text-align: center; }
  .offer .buy-button { display: flex; width: fit-content; margin-inline: auto; }
  #acao-compra { scroll-margin-top: 45svh; }
  .offer { padding-bottom: 210px; }

  .hero,
  .manifesto,
  .stories {
    background-size: auto, 30px 30px, 30px 30px;
  }

  .manifesto,
  .stories {
    background-size: auto, auto, 30px 30px, 30px 30px;
  }
}
