/* 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 { min-height: auto; background-color: #101111; }

.hero-grid {
  min-height: auto;
  grid-template-columns: 1fr;
  padding-block: 150px 110px;
}

.hero-copy { max-width: 720px; padding-top: 0; }

.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; }

.proof {
  background-color: #111110;
  background-image:
    radial-gradient(circle at 80% 28%, rgba(0, 143, 165, .13), transparent 30%),
    linear-gradient(rgba(108, 126, 133, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 126, 133, .12) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.proof h2 {
  margin-bottom: 48px;
  font-size: clamp(48px, 4.8vw, 68px);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.proof-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(69, 191, 208, .28);
  background: #171b1d;
  box-shadow: 8px 8px 0 rgba(247, 10, 103, .16);
}

.proof-card img {
  display: block;
  width: 100%;
  height: auto;
}

.proof-card:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 9px);
  justify-self: center;
}

.proof-swipe-hint { display: none; }

/* 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; }
.pix-price { margin: 16px 0 3px; color: var(--cyan); font: 700 14px/1.2 "DM Mono", monospace; letter-spacing: .08em; }
.pix-savings { margin: 0; color: #d0c8bb; font: italic 500 17px/1.3 "Playfair Display", serif; }
.stat-icon { display: block; width: 62px; height: auto; }
.offer-format { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 14px; color: var(--pink); font: 700 14px/1 "DM Mono", monospace; letter-spacing: .1em; }
.offer-format img { width: 30px; height: auto; }
.digital-offer { margin-top: 48px; padding-top: 40px; border-top: 1px solid rgba(242, 234, 220, .2); }
.digital-offer .offer-format img { width: 36px; }
.price .price-cents { font-size: .57em; vertical-align: top; letter-spacing: -.05em; }
.digital-details { margin: 28px auto 0; max-width: 420px; padding: 0; color: #cfc6b9; list-style: none; text-align: left; font-size: 14px; line-height: 1.55; }
.digital-details li { position: relative; margin: 12px 0; padding-left: 18px; }
.digital-details li::before { content: "•"; position: absolute; left: 0; color: var(--pink); }
.guarantee-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  max-width: 520px;
  margin: 34px auto 0;
  padding: 24px;
  border: 1px solid rgba(69, 191, 208, .28);
  background: rgba(7, 23, 28, .62);
  text-align: left;
}
.guarantee-card img { display: block; width: 100%; height: auto; }
.guarantee-card p { margin: 0; color: #cfc6b9; font-size: 14px; line-height: 1.52; }
.guarantee-card .guarantee-title {
  margin-bottom: 8px;
  color: var(--cream);
  font: 700 20px/1.1 "DM Sans", sans-serif;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.guarantee-card strong { color: var(--cream); }
.faq ul { margin: 12px 0; padding-left: 22px; color: #5b554e; }
.faq li { margin: 4px 0; }
.faq .installments { columns: 2; }

/* 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; }

.author {
  background-color: #111110;
  background-image:
    radial-gradient(circle at 82% 40%, rgba(0, 143, 165, .14), transparent 28%),
    linear-gradient(90deg, var(--ink) 0%, rgba(17, 17, 16, .94) 52%, rgba(10, 21, 26, .82) 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;
}

.author-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

.author-heading { margin-bottom: 18px; }

.author-frame {
  position: relative;
  border: 1px solid var(--pink);
  transform: rotate(-2deg);
}

.author-frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px -10px -10px 10px;
  background: var(--pink);
}

.author-frame img {
  display: block;
  width: 100%;
  aspect-ratio: .75;
  object-fit: cover;
  object-position: center 36%;
}

.author-copy h2 {
  margin-bottom: 28px;
  font-size: clamp(48px, 5vw, 68px);
}

.author-copy p {
  margin: 0 0 18px;
  color: #d0c8bb;
  font-size: 16px;
  line-height: 1.66;
}

.author-copy p em {
  font-family: "Playfair Display", serif;
}

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

@media (min-width: 721px) {
  .hero-grid { position: relative; }
  .hero-copy { max-width: calc(100% - min(390px, 34vw) - 64px); }
  .hero-book {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    width: min(390px, 34vw);
    max-height: 620px;
    height: auto;
    transform: translateY(-50%);
    object-fit: contain;
    filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .5)) drop-shadow(0 0 18px rgba(39, 192, 210, .14));
    pointer-events: none;
  }
}

@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 {
    background-image:
      radial-gradient(circle at 88% 28%, rgba(0, 161, 184, .12), transparent 25%),
      linear-gradient(90deg, rgba(17, 17, 16, .5), rgba(17, 17, 16, .08)),
      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;
  }
  .hero-grid { padding: 78px 0 70px; }
  .hero-title-row { display: block; }
  .hero-book {
    display: block;
    width: min(220px, 68vw);
    max-width: 100%;
    height: auto;
    margin: 24px auto 4px;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .45)) drop-shadow(0 0 12px rgba(39, 192, 210, .12));
    pointer-events: none;
  }
  .hero h1 { font-size: 36px; }
  .hero h1 br { display: none; }
  .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; }
  .author-grid { grid-template-columns: 1fr; gap: 44px; }
  .author-frame { width: min(340px, 86%); margin-inline: auto; }
  .author-copy h2 { font-size: 46px; }
  .author-copy p { font-size: 15px; line-height: 1.62; }
  .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; }
  .included .stats > div { grid-template-columns: 96px 1fr; }
  .proof h2 { margin-bottom: 30px; font-size: 43px; }
  .proof-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .proof-grid::-webkit-scrollbar { display: none; }
  .proof-card,
  .proof-card:last-child {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
  }
  .proof-swipe-hint {
    display: block;
    margin: 18px 0 0;
    color: var(--cyan);
    font: 500 10px/1.2 "DM Mono", monospace;
    letter-spacing: .11em;
    text-align: right;
  }
  .guarantee-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    margin-top: 30px;
    padding: 20px 16px;
  }
  .guarantee-card .guarantee-title { font-size: 18px; }
  .offer-grid > img { width: min(330px, 86%); }
  .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: 20px; }
  .offer { padding-bottom: 80px; }

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

/* E-book storefront: the offer is intentionally digital-only. */
.ebook-offer .offer-grid > img {
  width: min(460px, 84%);
  border-radius: 24px;
  mix-blend-mode: screen;
}

.ebook-single-offer {
  margin-top: 0;
}

.ebook-single-offer .digital-details {
  max-width: 520px;
}

@media (max-width: 720px) {
  .ebook-offer .offer-grid > img {
    width: min(350px, 92%);
  }
}
