/* Ajustes locais. O CSS e os recursos da captura permanecem no HTML. */
:root {
  --ink: #13384b;
  --deep: #102f40;
  --forest: #075d7d;
  --text: #233e4c;
  --muted: #526772;
  --line: #d5dee2;
}
html { scroll-behavior: auto; }
.site-header { height: 86px; }
.hero { min-height: 580px; }
.hero-copy { padding: 56px 4vw 44px 0; }
.hero h1 { margin-top: 20px; font-size: clamp(48px, 5.8vw, 82px); line-height: 1.04; }
.hero-lead { margin: 24px 0 22px; font-size: 19px; line-height: 1.6; }
.hero-support { margin: 0 0 24px; line-height: 1.65; }
.hero-buttons { gap: 24px; }
.trust-row { margin-top: 28px; padding-top: 24px; gap: 14px; }
.hero-visual { min-height: 580px; padding: 32px; }
.image-frame { height: min(520px, 72vh); }
.floating-note { bottom: 32px; padding: 16px 20px; }
.section, .featured-section, .reading-section, .voices-section, .journal-section {
  padding: 64px clamp(24px, 6vw, 96px);
}
.journal-section { gap: 32px 6vw; }
.section-heading, .featured-heading, .voices-heading { margin-bottom: 30px; gap: 18px 4vw; }
.section-number { display: none; }
.section-heading h2, .types-intro h2, .featured-heading h2, .journal-section h2,
.reading-copy h2, .voices-heading h2 {
  font-size: clamp(30px, 3.3vw, 48px); line-height: 1.15; letter-spacing: -.03em;
}
.journal-section h2 { margin: 18px 0 20px; }
.journal-copy > p:not(.overline) { margin-bottom: 24px; line-height: 1.7; }
.journal-facts div { padding: 16px 0; }
.journal-facts strong { font-size: 26px; }
.journal-facts span { margin-top: 6px; }
.journal-pillars { margin-top: 0; }
.journal-pillars article { min-height: 190px; padding: 24px 20px; }
.journal-pillars h3 { margin: 14px 0 10px; font-size: 21px; }
.editorial-guidance { gap: 24px; padding: 24px; }
.steps-grid { gap: 16px; }
.step-card { min-height: 250px; padding: 48px 22px 22px; }
.step-content { padding: 12px 0; }
.step-card h3 { margin-bottom: 12px; font-size: 25px; }
.step-card p { font-size: 15px; line-height: 1.65; }
.step-figure svg { width: 150px; height: 150px; }
.step-card:nth-child(2) { background: #e8eff3; }
.guidance-strip { margin-top: 24px; padding: 22px 26px; }
.types-section { gap: 6vw; }
.types-intro .overline, .reading-copy .overline { margin-bottom: 14px; }
.types-intro h2, .reading-copy h2 { margin-bottom: 18px; }
.type-item { min-height: 64px; }
.featured-section { background: var(--deep); }
.featured-layout { gap: 36px; }
.video-placeholder { min-height: 390px; padding: 28px; background: #173f52; }
.video-orbit { width: 130px; height: 130px; top: 26px; }
.video-orbit::before { width: 174px; height: 174px; }
.video-orbit::after { width: 212px; height: 212px; }
.play-mark { width: 58px; height: 58px; }
.video-placeholder h3 { font-size: 26px; }
.article-card { min-height: 130px; padding: 22px 0; gap: 16px; }
.article-card h3 { font-size: 21px; margin-bottom: 10px; }
.article-card div > span { margin-bottom: 9px; }
.article-card p { color: #cfdae1; font-size: 12px; }
.reading-section { gap: 4vw; }
.ebook-cover { min-height: 280px; padding: 22px; }
.ebook-cover img { height: 280px; }
.ebook-content { padding: 24px; }
.ebook-card h3 { font-size: 23px; }
.health-book .ebook-cover { background: var(--deep); }
.voice-card, .voice-card + .voice-card { min-height: 180px; padding: 28px; }
.voice-person { margin-top: 20px; }
.voices-soon { margin-top: 20px; color: var(--muted); line-height: 1.6; text-align: center; }
.final-cta { padding: 56px 24px 64px; }
.impact-strip { margin-bottom: 36px; }
.impact-strip div { padding: 22px; }
.cta-seal { width: 106px; height: 106px; margin-bottom: 24px; }
.cta-seal span { font-size: 18px; }
.final-cta h2 { font-size: clamp(36px, 4.4vw, 62px); margin: 18px 0 20px; line-height: 1.1; }
.final-cta > p:not(.overline) { margin-bottom: 24px; font-size: 17px; }
footer { min-height: 130px; background: var(--deep); padding-top: 26px; padding-bottom: 26px; }
.button { min-height: 48px; box-shadow: none; }
.button-large { min-height: 52px; }
.button:hover, .floating-note:hover, .type-item:hover svg { transform: none; }
.button, .floating-note, .type-item, .article-card, .ebook-actions a { transition: none; }
.button-primary { color: var(--deep); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--editorial-blue); outline-offset: 4px;
}
.featured-section a:focus-visible, footer a:focus-visible { outline-color: var(--gold-light); }
/* Os três blocos são filhos diretos: capa, apresentação e oferta. */
#ebook-gratuito.free-ebook {
  padding: 48px clamp(24px, 3vw, 48px); background: #fff;
  border-block: 1px solid var(--line); display: grid;
  grid-template-areas: "cover presentation offer";
  grid-template-columns: clamp(260px, 20vw, 280px) minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: clamp(20px, 2vw, 28px); align-items: center;
}
#ebook-gratuito > .free-ebook-cover { grid-area: cover; }
#ebook-gratuito > .free-ebook-presentation { grid-area: presentation; }
#ebook-gratuito > .free-ebook-offer { grid-area: offer; }
#ebook-gratuito > * { min-width: 0; }
.free-ebook-presentation { display: block; min-width: 0; }
.free-ebook-cover { width: 100%; max-width: 280px; margin: 0 auto; }
.free-ebook-cover img { display: block; width: 100%; height: auto; object-fit: contain; }
.free-ebook h2 { margin: 14px 0; color: var(--ink); font: 400 clamp(30px, 2.5vw, 38px)/1.18 Georgia, serif; letter-spacing: -.025em; }
.free-ebook-subtitle { color: var(--forest); font: 400 19px/1.5 Georgia, serif; margin: 0 0 16px; }
.free-ebook-copy { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }
.free-ebook-topics { margin: 0 0 22px; padding-left: 22px; list-style: disc; color: var(--text); }
.free-ebook-topics li { padding: 6px 0; line-height: 1.55; }
.free-ebook .button { cursor: pointer; white-space: normal; text-align: center; }
.ebook-pending { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.ebook-dialog {
  width: min(560px, calc(100% - 32px)); max-width: 560px;
  max-height: calc(100dvh - 32px); margin: auto; padding: 28px;
  overflow-y: auto; overscroll-behavior: contain; background: var(--paper);
  color: var(--text); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 20px 60px #102f4033; font-size: 15px; line-height: 1.6;
}
.ebook-dialog:not([open]) { display: none; }
.ebook-dialog::backdrop { background: #102f40b3; }
html.ebook-modal-open, html.ebook-modal-open body { overflow: hidden; }
.ebook-dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ebook-dialog h2 { margin: 0; color: var(--ink); font: 400 28px/1.2 Georgia, serif; }
.ebook-dialog p { margin: 0 0 16px; }
.ebook-close { flex: 0 0 44px; min-height: 44px; background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-size: 24px; }
.ebook-field { margin-top: 16px; }
.ebook-field label { display: block; margin-bottom: 6px; font-weight: 700; }
.ebook-field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #82939d; border-radius: 2px; background: #fff; font-size: 16px; }
.ebook-field input[aria-invalid="true"] { border-color: #a52d36; }
.ebook-error { display: block; color: #972c34; font-size: 13px; margin-top: 4px; }
.ebook-error:empty { display: none; }
.ebook-consent { display: flex; align-items: start; gap: 12px; margin: 20px 0 16px; font-size: 14px; cursor: pointer; }
.ebook-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--forest); }
.ebook-privacy { font-size: 13px; color: var(--muted); }
.ebook-status { padding: 12px 14px; background: var(--cream); border-left: 3px solid var(--forest); font-size: 14px; }
.ebook-dialog .button { width: 100%; white-space: normal; text-align: center; margin-top: 8px; }
.ebook-dialog button:disabled { cursor: not-allowed; background: #e0e5e7; color: #425561; box-shadow: none; }
.ebook-dialog [hidden] { display: none !important; }
@media (max-width: 1023px) {
  #ebook-gratuito.free-ebook {
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-areas: "cover presentation" "offer offer";
    gap: 24px;
  }
  #ebook-gratuito > .free-ebook-cover { max-width: 240px; }
}
@media (max-width: 700px) {
  #ebook-gratuito.free-ebook {
    padding: 40px 24px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "cover" "presentation" "offer";
  }
}
@media (max-width: 1060px) {
  .hero h1 { font-size: clamp(45px, 6vw, 66px); }
  .trust-row { grid-template-columns: 1fr; gap: 10px; }
  .reading-section { gap: 30px; }
  .featured-layout { gap: 28px; }
}
@media (max-width: 820px) {
  .site-header { height: 78px; }
  .hero { min-height: 0; }
  .hero-copy { padding: 40px 24px 32px; }
  .hero h1 { font-size: clamp(42px, 8vw, 60px); }
  .hero-buttons { gap: 18px; }
  .hero-visual { min-height: 0; padding: 28px 24px 58px; }
  .image-frame { height: 440px; max-height: none; }
  .floating-note { bottom: 20px; }
  .section, .featured-section, .journal-section, .reading-section, .voices-section { padding: 44px 24px; }
  .journal-section { gap: 28px; }
  .section-heading, .featured-heading, .voices-heading { gap: 16px; margin-bottom: 24px; }
  .journal-pillars article { min-height: 0; padding: 22px 16px; }
  .step-card { min-height: 220px; padding: 44px 24px 24px; }
  .types-section { gap: 28px; }
  .video-placeholder { min-height: 370px; }
  .reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ebook-cover { min-height: 240px; }
  .ebook-cover img { height: 240px; }
  .ebook-content { padding: 20px; }
  .voice-card, .voice-card + .voice-card { padding: 24px 0; min-height: 0; }
  .impact-strip { margin-bottom: 28px; }
  .final-cta { padding: 44px 24px; }
}
@media (max-width: 520px) {
  .hero-copy { padding: 36px 20px 30px; }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .hero-lead { font-size: 17px; margin: 20px 0 18px; }
  .hero-support { margin: 0 0 22px; }
  .image-frame { height: 380px; }
  .floating-note { right: 24px; left: 24px; justify-content: center; padding: 12px; }
  .section-heading h2, .types-intro h2, .featured-heading h2, .journal-section h2,
  .reading-copy h2, .voices-heading h2 { font-size: 30px; }
  .journal-pillars article { padding: 20px 0; }
  .reading-grid { grid-template-columns: minmax(0, 1fr); }
  .ebook-cover { min-height: 250px; }
  .ebook-cover img { height: 250px; }
  .free-ebook .button { width: 100%; }
  .ebook-dialog { padding: 20px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .ebook-dialog h2 { font-size: 25px; }
  .impact-strip div { padding: 18px; }
}

/* Destaque restrito à oferta do e-book. */
#ebook-gratuito .free-ebook-offer {
  display: block; min-width: 0;
  padding: clamp(24px, 2.2vw, 32px); background: #e3f2e5;
  border: 2px solid #83b48d; border-radius: 10px;
  box-shadow: 0 12px 30px #245b3420;
}
.free-ebook-offer .overline { color: #245b34; }
.free-ebook-offer h3 {
  margin: 12px 0 18px; color: var(--ink);
  font: 400 clamp(24px, 2vw, 28px)/1.25 Georgia, serif;
}
#ebook-open, #ebook-submit {
  display: inline-flex; justify-content: center; align-items: center;
  width: 100%; min-height: 60px; padding: 16px 20px;
  cursor: pointer; white-space: normal; text-align: center;
  background: #175438; color: #fff; border: 2px solid #103e29;
  border-radius: 6px; box-shadow: 0 5px 12px #103e2933;
  font-size: 16px; line-height: 1.45; font-weight: 700;
}
#ebook-open:hover, #ebook-submit:not(:disabled):hover { background: #103e29; color: #fff; }
#ebook-open:focus-visible, #ebook-submit:focus-visible { outline: 3px solid #175438; outline-offset: 5px; }
#ebook-submit:disabled { background: #4b6655; color: #fff; border-color: #3b5143; box-shadow: none; cursor: not-allowed; }
.free-ebook-offer .ebook-pending { color: #365b40; }
@media (prefers-reduced-motion: no-preference) {
  #ebook-gratuito .free-ebook-offer { animation: ebook-offer-pulse 3s ease-in-out infinite; }
  #ebook-open { animation: ebook-cta-pulse 3s ease-in-out infinite; }
}
@keyframes ebook-offer-pulse {
  0%, 100% { box-shadow: 0 12px 30px #245b3420, 0 0 0 0 #4c925c00; }
  50% { box-shadow: 0 14px 34px #245b3430, 0 0 0 8px #4c925c26; }
}
@keyframes ebook-cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 5px 12px #103e2933; }
  50% { transform: scale(1.025); box-shadow: 0 7px 18px #103e2952; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
