:root {
  --paper: #fffaf5;
  --ink: #4c2a2d;
  --muted: #7b5e60;
  --accent: #df7358;
  --accent2: #9f3346;
  --line: #ecd9cf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: linear-gradient(165deg, #654336 0%, #79503d 36%, #654338 71%, #50372f 100%);
  color: #fff1e5;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(1020px, calc(100% - 34px)); margin-inline: auto; }
h1, h2 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.topline {
  padding: 11px;
  background: #493126;
  color: #fff4e8;
  text-align: center;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
.hero {
  padding: 70px 0 33px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(231, 170, 121, .19) 0%, transparent 34%),
    radial-gradient(circle at 85% 25%, rgba(238, 181, 132, .12) 0%, transparent 33%),
    linear-gradient(130deg, #845640 0%, #6b4738 60%, #77503c 100%);
  border-bottom: 1px solid rgba(255, 243, 230, .19);
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #ffd7b3;
}
h1 {
  margin: 13px 0 15px;
  font-size: clamp(49px, 8.2vw, 87px);
  font-weight: 500;
  letter-spacing: -.055em;
  color: #fff7ef;
}
h1 span { color: #ffd1ac; }
.hero p { margin: 0 auto; max-width: 690px; font-size: 17px; font-weight: 500; color: #fff0e5; }
.campaign-dates {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  border: 1px solid #e6a786;
  border-radius: 50px;
  background: #f7dec8;
  color: #70283a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  box-shadow: 0 5px 18px #0002;
}
.nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 31px; }
.nav a, .buy-button {
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
  background: #a44b3f;
  color: #fff;
  border-radius: 7px;
  box-shadow: 0 5px 13px #8c2e3b28;
  transition: background-color .18s ease, box-shadow .2s ease, transform .2s ease;
}
.nav a { padding: 12px 20px; font-weight: 700; font-size: 13px; }
.nav a:hover, .nav a:focus-visible, .buy-button:hover, .buy-button:focus-visible {
  background: #803a31;
  transform: translateY(-2px);
  box-shadow: 0 9px 18px #3b241b42;
}
.nav a.secondary { background: #f9e9d9; color: #754536; border: 1px solid #efd0b6; }
.nav a.secondary:hover, .nav a.secondary:focus-visible { background: #efd0b6; }
a:focus-visible, input:focus-visible { outline: 3px solid #ffd1ac; outline-offset: 4px; }
.section { padding: 28px 0 42px; scroll-margin-top: 20px; }
.sectionhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.sectionhead > div { min-width: 0; }
.sectionhead h2 { font-size: clamp(29px, 4vw, 40px); font-weight: 500; margin: 3px 0 0; color: #fff7ef; }
.discount {
  padding: 8px 13px;
  border: 1px solid #efc6a9;
  border-radius: 6px;
  background: #fbe0c9;
  color: #834536;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.sheet { background: var(--paper); border: 1px solid #dcc6bc; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 28px #40281f45; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { background: #f5e5d9; text-transform: uppercase; letter-spacing: .08em; color: #845849; text-align: left; font-size: 10px; font-weight: 700; padding: 17px 15px; }
td { padding: 18px 15px; border-top: 1px solid #eee0d5; color: var(--ink); }
th:not(:first-child), td:not(:first-child) { text-align: right; }
th:nth-child(2), td.product-cell { text-align: left; }
@media (min-width: 951px) {
  tbody tr:nth-child(even) td { background: #fff6f0; }
}
tbody tr {
  transition: box-shadow .2s ease, transform .2s ease;
}
tbody tr:hover, tbody tr:focus-within {
  position: relative;
  z-index: 1;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px #40281f26;
}
.product-cell { font-weight: 600; overflow-wrap: anywhere; }
td .desc { font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.old { color: #9d8c82; text-decoration: line-through; white-space: nowrap; }
.percent { color: #a64e3d; font-weight: 700; }
.new { font-weight: 800; color: #a3433d; font-size: 17px; white-space: nowrap; }
.buy-cell { text-align: right; vertical-align: middle; }
.buy-button { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; letter-spacing: .05em; padding: 12px 15px; white-space: nowrap; text-align: center; line-height: 1; }
.button-label { display: block; min-width: 0; line-height: 1; }
/* Letras e números são centrados pela caixa visível, não pelo espaço reservado a descendentes. */
.button-label, td .old, td .percent, td .new {
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
.note { font-size: 12px; color: #f2dacc; margin: 12px 5px 0; overflow-wrap: anywhere; }
.booknote { background: #fff0e2; border-left: 4px solid #d67852; border-radius: 10px; padding: 16px 20px; margin-top: 14px; font-size: 13px; color: #684648; overflow-wrap: anywhere; }
.photo-cell { width: 100px; min-width: 100px; padding: 10px 10px 10px 18px; text-align: left; }
.photo-placeholder {
  width: 78px;
  height: 78px;
  border: 1.5px dashed #d8978b;
  background: #fff0e3;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a65758;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.photo-placeholder:hover, .photo-placeholder:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 6px 13px #40281f2b;
}
.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease, scale .24s ease;
}
.photo-placeholder:hover img, .photo-placeholder:focus-within img { scale: 1.045; }
.gallery {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.gallery:hover, .gallery:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 17px 31px #40281f52;
}
.gallery > div:nth-child(2) { min-width: 0; }
.gallery-photo { width: 100px; height: 100px; flex: 0 0 100px; }
.gallery h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 25px; font-weight: 500; margin: 0 0 5px; color: var(--ink); overflow-wrap: anywhere; }
.gallery p { font-size: 13px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.galleryprice { text-align: right; min-width: 130px; }
.galleryprice .new { font-size: 27px; }
.galleryprice .old { font-size: 13px; }
.galleryprice .each { font-size: 14px; font-weight: 800; color: var(--accent2); letter-spacing: .04em; }
.gallery .gallery-warning { font-size: 12px; font-weight: 700; color: #9c3343; margin-top: 8px; }
.gallery-buy { margin-top: 12px; }
.coupon-banner {
  background: linear-gradient(110deg, #8d493e 0%, #b46753 100%);
  color: #fff1e5;
  border-radius: 15px;
  padding: 25px 28px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: 0 13px 26px #3b241b40;
  transition: box-shadow .2s ease, transform .2s ease;
}
.coupon-banner:hover, .coupon-banner:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 17px 31px #3b241b52;
}
.coupon-banner > div { min-width: 0; }
main.container > .coupon-banner:first-child { margin-top: 28px; }
.coupon-banner .coupon-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #f9dac9; }
.coupon-banner h2 { font-size: clamp(21px, 3vw, 30px); margin: 7px 0 5px; font-weight: 500; overflow-wrap: anywhere; }
.coupon-banner p { font-size: 14px; margin: 0; color: #fff1e9; overflow-wrap: anywhere; }
.coupon-code {
  max-width: 100%;
  padding: 13px 22px;
  border: 2px dashed #ffc18d;
  border-radius: 9px;
  background: #fff6e7;
  color: #8d2d3c;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: .12em;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: anywhere;
}
.coupon-sub { font-size: 11px; text-align: center; margin-top: 6px; color: #fff1e9; overflow-wrap: anywhere; }
.footer { padding: 50px 0 65px; text-align: center; color: #f1d9cc; }
.footer .brand { font-family: 'Playfair Display', Georgia, serif; font-size: 25px; color: #fff1e6; }
.footer p { font-size: 12px; max-width: 540px; margin: 15px auto; overflow-wrap: anywhere; }
.divider { height: 1px; background: rgba(255, 244, 231, .2); margin-top: 28px; }
.hero-banner {
  --banner-opacity: 1;
  --banner-shift: 0px;
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  background: #79503d;
  text-align: center;
  opacity: var(--banner-opacity);
  transform: translate3d(0, var(--banner-shift), 0);
  transform-origin: top center;
  transition: opacity .12s linear, transform .12s ease;
  will-change: opacity, transform;
}
.hero-banner img { display: block; width: 100%; height: auto; object-fit: contain; }
.hero-banner img[hidden] { display: none; }
.hero-banner.loaded + .hero { padding-top: 24px; }
.hero-banner.banner-faded { pointer-events: none; }

/* Com JS habilitado, os alvos continuam visíveis até o IntersectionObserver ser validado. */
html.js-reveal .reveal-target {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .42s ease, transform .42s ease;
}
html.js-reveal .reveal-target.is-visible { opacity: 1; transform: none; }
html.js-reveal .coupon-banner.reveal-target.is-visible:hover,
html.js-reveal .coupon-banner.reveal-target.is-visible:focus-within { transform: translateY(-2px); }

/* Até 950 px: cartões consistentes, sem uma coluna de título larga vazia no tablet. */
@media (max-width: 950px) {
  .container { width: min(1020px, calc(100% - 28px)); }
  .hero { padding: 50px 0 28px; }
  .section { padding: 24px 0 34px; }
  .sectionhead { align-items: flex-start; flex-wrap: wrap; }
  .sheet { background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
  .sheet.gallery { background: var(--paper); border: 1px solid #dcc6bc; border-radius: 12px; box-shadow: 0 8px 18px #40281f26; }
  table, tbody { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  tbody { display: grid; gap: 12px; }
  tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    width: 100%;
    margin: 0;
    padding: 14px;
    border: 1px solid #dcc6bc;
    border-radius: 12px;
    background: var(--paper) !important;
    box-shadow: 0 8px 18px #40281f26;
  }
  tbody tr:first-child { border-top: 1px solid #dcc6bc; }
  td { display: block; min-width: 0; padding: 0; border: 0; background: transparent; }
  td.photo-cell { flex: 0 0 82px; width: 82px; min-width: 0; padding: 0; text-align: left; }
  .photo-placeholder { width: 82px; height: 82px; }
  td.product-cell {
    flex: 1 0 calc(100% - 94px);
    min-height: 82px;
    align-content: center;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    text-align: left;
    overflow-wrap: anywhere;
  }
  td .desc { font-size: 11px; line-height: 1.4; }
  td.price-old-cell, td.discount-cell, td.price-new-cell {
    display: flex;
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #efe0d5;
    border-radius: 8px;
    background: #fff8f2;
    padding: 8px 10px;
    text-align: left;
    font-size: 12px;
  }
  td.price-old-cell::before, td.discount-cell::before, td.price-new-cell::before {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    flex: 0 0 auto;
    line-height: 1;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
  td.price-old-cell::before { content: 'DE'; }
  td.discount-cell::before { content: 'DESCONTO'; }
  td.price-new-cell::before { content: 'POR'; }
  td.price-old-cell > span, td.discount-cell > span, td.price-new-cell > span { display: block; margin: 0; line-height: 1; white-space: nowrap; }
  td.price-old-cell .old { color: #89776e; font-size: 12px; }
  td.price-new-cell .new { color: #9f3346; font-size: 17px; font-weight: 800; line-height: 1; white-space: nowrap; }
  #cursos td.price-new-cell {
    flex: 0 0 100%;
    max-width: 100%;
    min-height: 52px;
    border-color: #dcae9c;
    background: linear-gradient(100deg, #f9e7db, #fff2e8);
    padding: 9px 12px;
  }
  #cursos td.price-new-cell::before { content: 'PREÇO ESPECIAL'; font-size: 9px; }
  #cursos td.price-new-cell .new { font-size: clamp(20px, 2.4vw, 25px); }
  td.buy-cell { display: block; flex: 0 0 100%; max-width: 100%; min-width: 0; margin: 0; text-align: center; }
  td.buy-cell::before { content: none; }
  td.buy-cell .buy-button { display: flex; align-items: center; justify-content: center; width: 100%; max-width: none; min-height: 46px; padding: 12px 16px; white-space: normal; line-height: 1; text-align: center; font-size: 12px; }
  .gallery { gap: 15px; padding: 20px; }
  .galleryprice { min-width: 132px; }
  .gallery-buy { min-width: 132px; white-space: normal; }
  .coupon-banner { gap: 16px; }
  .coupon-banner p { max-width: 54ch; margin-inline: auto; text-wrap: pretty; }
}

/* Celular: cabeçalho foto/nome, dois valores comparáveis e uma chamada principal de preço. */
@media (max-width: 560px) {
  .container { width: calc(100% - 24px); }
  .topline { padding: 10px 12px; font-size: 9px; letter-spacing: .11em; }
  .hero { padding: 40px 0 24px; }
  .hero p { font-size: 15px; line-height: 1.45; }
  .nav { gap: 8px; margin-top: 24px; }
  .nav a { flex: 1 1 120px; min-width: 0; padding: 10px 12px; }
  .section { padding: 22px 0 30px; }
  .sectionhead { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
  .sectionhead h2 { font-size: clamp(27px, 8vw, 34px); }
  .discount { max-width: 100%; white-space: normal; font-size: 11px; padding: 7px 9px; }
  main.container > .coupon-banner:first-child { margin-top: 18px; }
  .coupon-banner { flex-direction: column; align-items: stretch; gap: 13px; padding: 18px 15px; text-align: center; }
  .coupon-banner h2 { font-size: clamp(21px, 7vw, 28px); }
  .coupon-banner p { max-width: 42ch; margin: 0 auto; font-size: 14px; line-height: 1.45; text-wrap: balance; word-break: normal; }
  .coupon-code { align-self: center; max-width: 100%; padding: 11px 16px; font-size: clamp(21px, 7vw, 25px); white-space: normal; }
  .coupon-sub { line-height: 1.35; }
  tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 13px 12px; }
  #ebooks tbody tr { display: flex; flex-wrap: wrap; gap: 10px; }
  td.photo-cell { grid-column: auto; grid-row: auto; flex: 0 0 clamp(62px, 20vw, 72px); width: clamp(62px, 20vw, 72px); align-self: center; }
  .photo-placeholder { width: clamp(62px, 20vw, 72px); height: clamp(62px, 20vw, 72px); }
  td.product-cell { grid-column: auto; grid-row: auto; flex: 1 1 180px; width: auto; min-height: 0; align-content: center; font-size: 15px; line-height: 1.25; }
  td .desc { margin-top: 4px; font-size: 11px; line-height: 1.4; }
  td.price-old-cell, td.discount-cell, td.price-new-cell { flex: 0 0 calc(50% - 5px); max-width: calc(50% - 5px); grid-column: auto; grid-row: auto; min-height: 44px; justify-content: center; gap: 8px; padding: 8px 9px; font-size: 11px; }
  td.price-old-cell, td.discount-cell { align-self: stretch; }
  td.price-old-cell::before, td.discount-cell::before, td.price-new-cell::before { font-size: 9px; }
  td.price-old-cell .old { font-size: 11px; }
  td.price-new-cell .new { font-size: 16px; }
  #cursos td.price-new-cell { flex: 0 0 100%; max-width: 100%; min-height: 56px; justify-content: center; gap: 14px; padding: 9px 12px; }
  #cursos td.price-new-cell::before { font-size: 9px; }
  #cursos td.price-new-cell .new { font-size: clamp(21px, 5.7vw, 26px); }
  #ebooks td.photo-cell { grid-column: auto; grid-row: auto; }
  #ebooks td.price-new-cell { justify-content: center; }
  #ebooks td.price-new-cell .new { font-size: clamp(15px, 4.6vw, 19px); }
  td.buy-cell { flex: 0 0 100%; max-width: 100%; grid-column: auto; grid-row: auto; }
  td.buy-cell .buy-button { min-height: 48px; padding: 12px 14px; font-size: 12px; }
  .gallery { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 14px; text-align: center; }
  .gallery-photo { align-self: center; width: 82px; height: 82px; flex-basis: 82px; }
  .gallery h3 { font-size: 22px; }
  .galleryprice { width: 100%; min-width: 0; border-top: 1px solid #ecd9cf; padding-top: 14px; text-align: center; }
  .galleryprice .new { font-size: 27px; }
  .galleryprice .each { font-size: 12px; }
  .gallery-buy { width: min(100%, 240px); }
  .booknote { padding: 14px 16px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 18px); }
  .topline { font-size: 8px; letter-spacing: .08em; }
  .hero { padding-top: 34px; }
  .nav a { flex-basis: 100%; }
  tbody tr { grid-template-columns: 58px minmax(0, 1fr); column-gap: 10px; row-gap: 9px; padding: 12px 10px; }
  #ebooks tbody tr { grid-template-columns: 58px minmax(0, 1fr); }
  td.photo-cell { flex-basis: 58px; width: 58px; }
  .photo-placeholder { width: 58px; height: 58px; }
  td.product-cell { min-height: 58px; font-size: 14px; }
  td.price-old-cell, td.discount-cell, td.price-new-cell { min-height: 42px; gap: 7px; padding: 7px 8px; font-size: 10px; }
  td.price-old-cell::before, td.discount-cell::before, td.price-new-cell::before { font-size: 8px; }
  td.price-old-cell .old { font-size: 10px; }
  td.price-new-cell .new { font-size: 14px; }
  #cursos td.price-new-cell { min-height: 52px; gap: 11px; padding: 8px 10px; }
  #cursos td.price-new-cell .new { font-size: 20px; }
  #ebooks td.price-new-cell .new { font-size: 15px; }
  td.buy-cell .buy-button { min-height: 46px; font-size: 11px; letter-spacing: .02em; padding: 10px 9px; }
  .coupon-banner { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, tbody tr, .nav a, .buy-button, .coupon-banner, .gallery, .photo-placeholder, .photo-placeholder img, .hero-banner {
    transition: none !important;
  }
  .nav a:hover, .nav a:focus-visible, .buy-button:hover, .buy-button:focus-visible,
  tbody tr:hover, tbody tr:focus-within, .coupon-banner:hover, .coupon-banner:focus-within,
  .gallery:hover, .gallery:focus-within, .photo-placeholder:hover, .photo-placeholder:focus-within {
    transform: none !important;
  }
  .photo-placeholder:hover img, .photo-placeholder:focus-within img { scale: 1 !important; }
  .hero-banner {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }
  html.js-reveal .reveal-target,
  html.js-reveal .reveal-target.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Fotos reais enquadradas no quadrado, conforme ajuste solicitado. */
.photo-placeholder.has-image { border: 1px solid #ecd9cf; background: #fffaf5; }
.photo-placeholder.has-image img { object-fit: cover; object-position: center; }
.photo-placeholder.photo-book img { transform: scale(1.12); }
.hero h1 .hero-title-primary { color: #fff7ef; }
