/* ==========================================================================
   O Antes do Desistir — Rick Lima · Landing page V1
   --------------------------------------------------------------------------
   1. Fontes          5. Componentes        9. Oferta + FAQ
   2. Tokens          6. Header            10. Encerramento
   3. Base            7. Hero / Seção 02   11. Footer + diálogo
   4. Layout e tipo   8. Livro / Autor     12. Movimento
   ========================================================================== */

/* 1. Fontes (auto-hospedadas, licença OFL) ------------------------------- */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader-latin-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader-latin-ext-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader-latin-opsz-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader-latin-ext-opsz-italic.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/jost-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/jost-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF;
}

/* 2. Tokens --------------------------------------------------------------
   Oficiais (manual Rick Lima): preto, vermelho da cruz, vermelho em fundo
   escuro, creme — e os neutros do próprio manual (#3a3530, #d8d0c4, #1c1a18,
   #a99f94). Complementares: areia, sálvia, carvão quente.
   Contrastes verificados (WCAG): corpo 10.8:1, secundário 6.6:1 no creme e
   5.6:1 na areia, botão 6.9:1.                                            */

:root {
  --ink: #111111;
  --ink-soft: #3a3530;
  --muted: #5c544b;
  --line: #d8d0c4;

  --cream: #f6f2e8;
  --paper: #fbf8f1;
  --sand: #e9dfd1;
  --sand-deep: #ddd0be;
  --sage: #a8ab91;
  --sage-deep: #6b6e58;
  --charcoal: #282521;
  --night: #1c1a18;
  --on-dark: #f6f2e8;
  --on-dark-muted: #a99f94;

  --cross: #a71216;
  --cross-deep: #8e0f12;
  --cross-on-dark: #d23a3e;

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-display: clamp(2.375rem, 1.55rem + 3.3vw, 4.25rem);
  --fs-title: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  --fs-lead: clamp(1.3125rem, 1.15rem + 0.6vw, 1.625rem);

  --gutter: 1.25rem;
  --section-y: clamp(5rem, 3.5rem + 6vw, 9rem);
  --header-h: 4.25rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 3px;
  --shadow-book: 0 1px 1px rgb(40 37 33 / 0.08), 0 6px 12px -4px rgb(40 37 33 / 0.18), 0 28px 56px -18px rgb(40 37 33 / 0.42);
}

@media (min-width: 40em) {
  :root { --gutter: 2rem; --header-h: 4.75rem; }
}
@media (min-width: 64em) {
  :root { --gutter: 3rem; }
}

/* 3. Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
cite { font-style: normal; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: rgb(167 18 22 / 0.16); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--cross);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

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

/* 4. Layout e tipografia ------------------------------------------------- */

.container {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; isolation: isolate; }

.display {
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.018em;
}

.title {
  font-size: var(--fs-title);
  line-height: 1.08;
  letter-spacing: -0.014em;
}

.lead {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  line-height: 1.38;
  font-style: italic;
  color: var(--ink);
}

/* Título de obra: sempre em itálico, na serifada. */
.book-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.06em;
  line-height: 1;
  color: var(--ink);
}

/* Sobretítulo: Jost em caixa alta e espaçamento amplo, como "Pastor · Autor". */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  flex: none;
  width: 1.5rem;
  height: 1px;
  background: var(--cross);
}
.eyebrow--center { justify-content: center; text-align: center; }
@media (max-width: 39.99em) {
  .eyebrow--center { letter-spacing: 0.2em; }
  .eyebrow--center::before, .eyebrow--center::after { width: 1rem; }
}
.eyebrow--center::after {
  content: '';
  flex: none;
  width: 1.5rem;
  height: 1px;
  background: var(--cross);
}

/* 5. Componentes --------------------------------------------------------- */

/* Botões ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 1rem 2rem;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn--primary {
  background: var(--cross);
  color: var(--cream);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.08), 0 14px 30px -14px rgb(167 18 22 / 0.7);
}
.btn--primary:hover {
  background: var(--cross-deep);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.08), 0 20px 36px -14px rgb(167 18 22 / 0.75);
}
.btn--primary:active { background: var(--cross-deep); transform: none; }

.btn--lg { min-height: 4.125rem; padding: 1.1rem 2.5rem; font-size: 1.1875rem; }

.btn--block { width: 100%; }
@media (min-width: 40em) { .btn { white-space: nowrap; } }
@media (max-width: 39.99em) { .btn, .btn--lg { padding-inline: 1.25rem; font-size: 1.0625rem; } }

.btn__icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__icon--right { transform: translateX(4px); }
.btn:hover .btn__icon--down { transform: translateY(2px); }

/* Luz de janela — "a luz entrando em uma casa que antes estava escura":
   um feixe de luz natural, muito suave, sobre a parede. */
.window-light {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(90deg,
    rgb(255 251 240 / 0) 0%,
    rgb(255 250 236 / 0.85) 34%,
    rgb(255 249 233 / 0.55) 66%,
    rgb(255 251 240 / 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 62%, transparent 100%);
  transform: skewX(-24deg);
}

/* Capa do livro ------------------------------------------------------- */
.cover { display: block; }
.cover img { width: 100%; border-radius: 2px; }
.cover--raised img { box-shadow: var(--shadow-book); }

/* Espaço reservado (material ainda não fornecido) ---------------------- */
.placeholder {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgb(221 208 190 / 0.7);
  color: var(--muted);
}
.placeholder::after {
  content: '';
  position: absolute;
  inset: 0.75rem;
  border: 1px solid currentColor;
  opacity: 0.16;
  pointer-events: none;
}
.placeholder .window-light { inset: -10% auto -10% 25%; width: 55%; opacity: 0.8; }
.placeholder__caption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.25rem;
  padding: 1.5rem;
}
.placeholder__tag {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}
.placeholder__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--ink-soft);
}
.placeholder__note { font-size: 0.8125rem; line-height: 1.45; }

/* Etiquetas de placeholder somem quando desativadas no config.js. */
.hide-placeholder-labels [data-placeholder-label] { display: none !important; }

/* Vídeo ---------------------------------------------------------------- */
.video {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--charcoal);
  box-shadow: 0 30px 60px -30px rgb(40 37 33 / 0.55);
}
.video .window-light { inset: -10% auto -10% 22%; width: 45%; opacity: 0.14; z-index: 0; }
.video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 70% 10%, rgb(246 242 232 / 0.08), transparent 60%);
}
.video__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}
.video__play {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgb(246 242 232 / 0.3);
  border-radius: 50%;
  background: transparent;
  color: rgb(246 242 232 / 0.75);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.video__play svg { width: 1.6rem; height: 1.6rem; margin-left: 0.2rem; }
button.video__play { background: rgb(246 242 232 / 0.92); color: var(--cross); border: 0; }
button.video__play:hover { transform: scale(1.05); }
.video__title { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: rgb(246 242 232 / 0.88); }
.video__note { font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-muted); }
.video__poster, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; z-index: 0; }
@media (min-width: 40em) {
  .video__play { width: 5rem; height: 5rem; }
  .video__title { font-size: 1.25rem; }
  .video--hero .video__play { width: 6.5rem; height: 6.5rem; }
  .video--hero .video__play svg { width: 2.1rem; height: 2.1rem; }
  .video--hero .video__title { font-size: 1.5rem; }
}

/* 6. Header -------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.is-scrolled {
  background: rgb(246 242 232 / 0.9);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
.site-header__brand { display: inline-flex; padding-block: 0.5rem; }
.site-header__brand img { height: 2.375rem; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__link {
  display: none;
  min-height: 2.75rem;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.site-nav__link:hover { color: var(--ink); }
.site-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--cross);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-nav__cta:hover { background: var(--cross-deep); }

@media (min-width: 40em) {
  .site-header__brand img { height: 2.75rem; }
}
@media (min-width: 56em) {
  .site-nav__link { display: inline-flex; }
}

/* 7a. Hero — o vídeo como protagonista ---------------------------------
   Largura do vídeo calculada pela altura da tela: título + vídeo + botão
   sempre cabem juntos na primeira dobra (de notebooks a monitores grandes). */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 1.25rem) 0 4.5rem;
  background: linear-gradient(to bottom, var(--cream) 0%, var(--cream) 82%, var(--sand) 100%);
}
.hero > .window-light { top: -4rem; left: 30%; width: 46%; height: 85%; }

.hero__head { text-align: center; }
.hero__title {
  max-width: 24ch;
  margin: 0.875rem auto 0;
  font-size: clamp(1.875rem, 1.4rem + 1.9vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

/* Mobile: vídeo de ponta a ponta, sem moldura. */
.hero__stage { margin: 1.75rem calc(var(--gutter) * -1) 0; }
.video--hero { border-radius: 0; box-shadow: none; }

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.hero__actions .btn { width: 100%; }
.hero__meta { display: flex; align-items: center; justify-content: center; gap: 0.875rem; }
.hero__meta .cover { width: 2.75rem; flex: none; }
.hero__meta .cover img { box-shadow: 0 6px 14px -6px rgb(40 37 33 / 0.45); }
.hero__meta p { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.dot { color: var(--cross); }
.nowrap { white-space: nowrap; }

.hero__intro {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgb(17 17 17 / 0.1);
}
.hero__lead { max-width: 24ch; }
.hero__text { display: grid; gap: 1rem; max-width: 36rem; color: var(--muted); }
.hero__text .hero__closing { color: var(--ink-soft); }

@media (min-width: 40em) {
  .hero { padding-top: calc(var(--header-h) + 1.75rem); }
  .hero__stage {
    width: min(100%, 66rem, max(34rem, calc((100svh - var(--header-h) - 19rem) * 16 / 9)));
    margin: 1.75rem auto 0;
  }
  .video--hero {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgb(40 37 33 / 0.08), 0 40px 80px -36px rgb(40 37 33 / 0.6);
  }
  .hero__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 2rem; }
  .hero__actions .btn { width: auto; }
  .hero__meta p { white-space: nowrap; }
}
@media (min-width: 64em) {
  .hero { padding-bottom: 6rem; }
  .hero__intro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    margin-top: 5.5rem;
    padding-top: 4rem;
  }
  .hero__lead { grid-column: 1 / span 5; }
  .hero__text { grid-column: 7 / span 6; }
}

/* 7b. Seção 02 — scrollytelling ---------------------------------------
   Mobile: a imagem ocupa a tela (sticky) e os cartões de texto passam por
   cima. Desktop: imagem fixa à esquerda, texto avançando à direita.
   As cenas clareiam de passo em passo; o fundo do texto também.         */

.story { position: relative; isolation: isolate; background: var(--night); }

.story__media {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.story__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.story__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 2.4s var(--ease);
}
.story__frame.is-active { opacity: 1; }
.story__frame.is-active img { transform: scale(1); }
.story__frame:nth-child(1) img { object-position: 50% 60%; }
.story__frame:nth-child(2) img { object-position: 48% 50%; }
.story__frame:nth-child(3) img { object-position: 52% 50%; }
.story__frame:nth-child(4) img { object-position: 54% 55%; }

/* Leve escurecimento no mobile para o cartão destacar da foto. */
.story__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(28 26 24 / 0.1), rgb(28 26 24 / 0.35));
  pointer-events: none;
}

.story__progress {
  position: absolute;
  z-index: 1;
  top: calc(var(--header-h) + 1rem);
  left: var(--gutter);
  display: flex;
  gap: 0.375rem;
}
.story__progress span {
  width: 1.75rem;
  height: 2px;
  background: rgb(246 242 232 / 0.35);
  transition: background-color 0.6s var(--ease);
}
.story__progress span.is-active { background: var(--cream); }

.story__steps { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; }
.story__step {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--gutter) calc(8svh + 5rem);
}
.story__card {
  width: 100%;
  max-width: 34rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: rgb(246 242 232 / 0.95);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.story__title { margin-top: 1.25rem; max-width: 17ch; }
.story__text { margin-top: 1.25rem; font-size: 1.0625rem; color: var(--ink-soft); }
.story__silence, .story__turn {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.story__silence { font-style: italic; }
.story__turn { font-size: clamp(1.375rem, 1.2rem + 0.9vw, 2rem); }
.story__statement {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.story__statement strong { font-weight: inherit; }

@media (min-width: 40em) {
  .story__card { padding: 2.25rem 2.25rem 2.5rem; }
}

@media (min-width: 64em) {
  .story {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    background: linear-gradient(to bottom, var(--sand) 0%, var(--sand) 35%, var(--cream) 85%);
  }
  .story__media { grid-column: 1; grid-row: 1; align-self: start; }
  .story__media::after { background: none; }
  .story__progress { top: auto; bottom: 2.5rem; left: 3rem; }
  .story__steps { grid-column: 2; grid-row: 1; margin-top: 0; }
  .story__step {
    align-items: center;
    padding: 0 max(3rem, calc((100vw - 78rem) / 2 + 3rem)) 0 4rem;
  }
  .story__card {
    max-width: 30rem;
    padding: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Faixas de imagem (interlúdios) --------------------------------------- */
.interlude {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 78svh;
  overflow: hidden;
  background: var(--charcoal);
}
.interlude__image { position: absolute; inset: 0; z-index: -1; }
.interlude__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 2.4s var(--ease);
}
.interlude.is-visible .interlude__image img { transform: scale(1); }
.interlude::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(28 26 24 / 0.72) 0%, rgb(28 26 24 / 0.25) 45%, transparent 70%);
}
.interlude__content { padding-block: 4rem; }
.interlude__quote p {
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--cream);
  text-wrap: balance;
}
.interlude__quote footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(246 242 232 / 0.8);
}
.interlude__quote footer::before { content: ''; width: 1.5rem; height: 1px; background: var(--cross-on-dark); }
.interlude__quote cite { font-style: normal; }

.interlude--drawing .interlude__image img { object-position: 50% 58%; }
.interlude--talk .interlude__image img { object-position: 72% 40%; }

@media (min-width: 64em) {
  .interlude { min-height: 88svh; }
  .interlude__content { padding-block: 6rem; }
  /* A parede clara à esquerda da foto do casal recebe o texto em tinta. */
  .interlude--talk { align-items: center; }
  .interlude--talk::after { background: linear-gradient(to right, rgb(246 242 232 / 0.55) 0%, rgb(246 242 232 / 0.15) 40%, transparent 60%); }
  .interlude--talk .interlude__image img { object-position: 50% 40%; }
  .interlude--talk .interlude__quote p { color: var(--ink); }
  .interlude--talk .interlude__quote footer { color: var(--ink-soft); }
  .interlude--talk .interlude__quote footer::before { background: var(--cross); }
}

/* 8a. Seção 03 — o livro -------------------------------------------------- */

.book { background: var(--cream); }
.book__header { display: grid; gap: 2rem; }
.book__title { margin-top: 1.5rem; max-width: 16ch; }
.book__intro { max-width: 30rem; font-size: 1.125rem; }
.book__photo { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.book__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }

.book__invitation {
  margin-top: 4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
}

.benefits {
  display: grid;
  margin-top: 1.75rem;
  counter-reset: benefit;
}
.benefit {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 0.5rem;
  padding-block: 1.5rem 1.75rem;
  border-top: 1px solid var(--line);
  counter-increment: benefit;
}
.benefit::before {
  content: counter(benefit, decimal-leading-zero);
  grid-row: 1 / span 2;
  padding-top: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--cross);
}
.benefit h3 { font-size: 1.5rem; line-height: 1.2; }
.benefit p { margin-top: 0.5rem; color: var(--muted); }

.book__reading {
  display: grid;
  gap: 3rem;
  margin-top: 4.5rem;
}
.book__details { font-size: 1.125rem; color: var(--ink-soft); }
.book__honesty {
  margin-top: 1.75rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--cross);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3125rem;
  line-height: 1.45;
  color: var(--ink);
}
.book__cta { margin-top: 2.25rem; }

/* Vitrine de páginas internas (placeholders) */
.pages {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.5rem 1.5rem 1.5rem;
  background: var(--sand);
}
.pages .window-light { inset: -10% 0 -10% auto; width: 55%; }
.pages__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.page {
  position: relative;
  aspect-ratio: 2 / 3;
  padding: 14% 12% 10%;
  background: var(--paper);
  box-shadow: 0 1px 1px rgb(40 37 33 / 0.06), 0 18px 34px -20px rgb(40 37 33 / 0.4);
}
.page:nth-child(3) { display: none; }
.page__bar { display: block; height: 0.4rem; margin-bottom: 0.55rem; border-radius: 1px; background: rgb(92 84 75 / 0.14); }
.page__bar--title { width: 62%; height: 0.75rem; margin-bottom: 1.1rem; background: rgb(17 17 17 / 0.2); }
.page__bar--short { width: 74%; }
.page__bar--gap { margin-top: 1rem; }
.page__bar--accent { width: 30%; background: rgb(167 18 22 / 0.35); }
.page__num {
  position: absolute;
  inset: auto 0 6%;
  text-align: center;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  color: rgb(92 84 75 / 0.55);
}
.pages__caption { margin-top: 1.25rem; display: grid; gap: 0.15rem; color: var(--muted); }
.pages__caption .placeholder__label { font-size: 1rem; }

@media (min-width: 40em) {
  .pages { padding: 3rem 2.5rem 2rem; }
  .pages__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .page:nth-child(3) { display: block; }
  .page:nth-child(2) { transform: translateY(-1rem); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}
@media (min-width: 64em) {
  .book__header { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: 2rem; row-gap: 2rem; }
  .book__heading { grid-column: 1 / span 6; grid-row: 1; align-self: end; }
  .book__intro { grid-column: 1 / span 5; grid-row: 2; }
  .book__photo { grid-column: 8 / span 5; grid-row: 1 / span 2; aspect-ratio: 4 / 5; }
  .book__invitation { margin-top: 5.5rem; }
  .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; }
  .benefit { grid-template-columns: 1fr; padding-top: 1.75rem; }
  .benefit::before { grid-row: auto; padding: 0 0 1.25rem; }
  .book__reading {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    align-items: center;
    margin-top: 6rem;
  }
  .book__reading-text { grid-column: 1 / span 5; }
  .pages { grid-column: 7 / span 6; padding: 3.5rem 3rem 2.25rem; }
}

/* 8b. Seção 04 — autor ---------------------------------------------------- */

.author { background: var(--sand); }
.author__grid { display: grid; gap: 2.5rem; }
.author__title { margin-top: 1.5rem; max-width: 20ch; }
.author__photo { aspect-ratio: 4 / 5; }
.author__media { max-width: 28rem; }
@media (min-width: 64em) { .author__media { max-width: none; } }
.author__body { max-width: 34rem; }
.author__id {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.author__text { display: grid; gap: 1rem; margin-top: 1.25rem; }
.author__highlight {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(17 17 17 / 0.14);
}
.author__highlight p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  line-height: 1.38;
  color: var(--ink);
}
.author__signature { width: 8.5rem; margin-top: 1.75rem; opacity: 0.9; }

@media (min-width: 64em) {
  .author__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    column-gap: 2rem;
    row-gap: 2.5rem;
  }
  .author__heading { grid-column: 7 / span 6; grid-row: 1; align-self: end; }
  .author__media { grid-column: 1 / span 5; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .author__body { grid-column: 7 / span 5; grid-row: 2; }
}

/* 9. Seção 05 — oferta + FAQ --------------------------------------------- */

.offer { background: var(--cream); }
.offer__heading { text-align: center; }
.offer__title { max-width: 18ch; margin: 1.5rem auto 0; }

.offer__panel {
  display: grid;
  margin-top: 3.5rem;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgb(40 37 33 / 0.45);
}

.offer__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
  background: var(--charcoal);
}
.offer__stage .window-light { inset: -10% auto -10% 18%; width: 55%; opacity: 0.2; }
.offer__stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(246 242 232 / 0.16), transparent 65%);
}
.offer__stage .cover { width: min(58%, 15rem); }
.offer__stage .cover img { box-shadow: 0 2px 2px rgb(0 0 0 / 0.2), 0 30px 60px -20px rgb(0 0 0 / 0.7); }

.offer__details { padding: 2.25rem 1.5rem 2.5rem; }
.offer__product { font-size: clamp(1.875rem, 1.6rem + 1vw, 2.375rem); line-height: 1.1; }
.offer__description { margin-top: 0.75rem; max-width: 32rem; }

.offer__includes { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.offer__includes h4 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.checklist { display: grid; gap: 0.5rem; margin-top: 1.1rem; }
.checklist li { position: relative; padding-left: 1.75rem; line-height: 1.5; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.5em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 1.5px solid var(--cross);
  border-bottom: 1.5px solid var(--cross);
  transform: rotate(-45deg);
}

.offer__buy { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; }
.price__value {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 2.1rem + 1.4vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price__pending {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border: 1px dashed rgb(92 84 75 / 0.5);
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.offer__buy .btn { margin-top: 1.5rem; }
.offer__info { display: grid; gap: 0.4rem; margin-top: 1.25rem; font-size: 0.9375rem; color: var(--muted); }
.offer__info li { display: flex; align-items: center; gap: 0.6rem; }
.offer__info svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--sage-deep); }

@media (min-width: 40em) {
  .offer__details { padding: 3rem 3rem 3.25rem; }
  .offer__stage { padding: 4rem 2rem; }
}
@media (min-width: 64em) {
  .offer__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .offer__stage { padding: 4rem; }
  .offer__stage .cover { width: min(70%, 19rem); }
  .offer__details { padding: 3.75rem 4rem 4rem; }
}

/* FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 1.5rem; margin-top: clamp(4.5rem, 3rem + 5vw, 7rem); }
.faq__title { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
  padding-block: 1.1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--cross); }
.faq__icon {
  position: relative;
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
  color: var(--cross);
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { padding: 0 2.5rem 1.5rem 0; max-width: 40rem; color: var(--muted); }

/* Abertura fluida onde o navegador suporta (degrada para abertura direta). */
.faq__item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

@media (min-width: 64em) {
  .faq { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
  .faq__title { grid-column: 1 / span 4; }
  .faq__list { grid-column: 5 / span 8; }
}

/* 10. Seção 06 — encerramento --------------------------------------------- */

.closing {
  overflow: hidden;
  text-align: center;
  background: linear-gradient(to bottom, var(--cream), var(--paper) 55%, var(--cream));
}
.closing .window-light { top: -20%; left: 18%; width: 55%; height: 110%; }
.closing__inner { max-width: 42rem; margin-inline: auto; }
.closing__scene {
  max-width: 72rem;
  margin: calc(var(--section-y) * -1) auto clamp(3.5rem, 2.5rem + 4vw, 6rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.closing__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@media (min-width: 40em) {
  .closing__scene { aspect-ratio: 21 / 9; margin-top: 0; border-radius: 4px; width: calc(100% - 2 * var(--gutter)); }
}
.closing__title { max-width: 18ch; margin: 1.5rem auto 0; }
.closing__text { display: grid; gap: 1.1rem; margin-top: 2.25rem; font-size: 1.125rem; }
.closing__text p { max-width: 36rem; margin-inline: auto; }
.closing__cta { margin-top: 2.75rem; display: grid; justify-items: center; gap: 1rem; }
.closing__note { font-size: 0.875rem; color: var(--muted); }
.closing__sign { margin-top: 4.5rem; display: grid; justify-items: center; gap: 1.1rem; }
.closing__cross { width: 1.1rem; }
.closing__sign p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); }

/* CTA fixo no mobile ------------------------------------------------------ */
.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgb(246 242 232 / 0.94);
  box-shadow: 0 -1px 0 var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.sticky-cta.is-visible { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
.sticky-cta .btn { min-height: 3.5rem; }
@media (min-width: 56em) { .sticky-cta { display: none; } }

/* 11. Footer e diálogo ----------------------------------------------------- */

.site-footer { background: var(--night); color: var(--on-dark-muted); }
.site-footer__main { display: grid; gap: 3rem; padding-block: 4rem; }
.site-footer__logo { width: 11rem; }
.site-footer__side { display: grid; gap: 2rem; }
.site-footer__slot {
  padding: 0.75rem 1rem;
  border: 1px dashed rgb(169 159 148 / 0.3);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; font-size: 0.875rem; }
.site-footer__links a, .site-footer__links span { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.site-footer__links a { transition: color 0.25s var(--ease); }
.site-footer__links a:hover { color: var(--cream); }
.site-footer__links .is-pending { opacity: 0.7; }
.site-footer__bottom { border-top: 1px solid rgb(246 242 232 / 0.1); }
.site-footer__bottom p { padding-block: 1.5rem; font-size: 0.8125rem; }

@media (min-width: 48em) {
  .site-footer__main { grid-template-columns: 1fr auto; align-items: end; padding-block: 5rem; }
  .site-footer__logo { width: 13rem; }
  .site-footer__side { justify-items: end; }
  .site-footer__links { justify-content: flex-end; }
}

.dialog {
  width: min(28rem, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-soft);
  box-shadow: 0 40px 80px -30px rgb(17 17 17 / 0.5);
}
.dialog::backdrop { background: rgb(28 26 24 / 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog__body { padding: 2rem 1.75rem 1.75rem; }
.dialog__title { font-size: 1.625rem; line-height: 1.15; margin-top: 1rem; }
.dialog__body > p:not(.eyebrow) { margin-top: 0.85rem; }
.dialog .btn { margin-top: 1.75rem; min-height: 3rem; }

/* 12. Movimento ------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  .dialog[open] { animation: dialog-in 0.4s var(--ease); }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(10px); } }
}

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

/* Faixa do desenho: o papel é muito claro — reforça a base escura sob a frase. */
.interlude--drawing::after {
  background: linear-gradient(to top, rgb(28 26 24 / 0.82) 0%, rgb(28 26 24 / 0.5) 40%, rgb(28 26 24 / 0.05) 75%);
}
.interlude__quote p { text-shadow: 0 1px 24px rgb(28 26 24 / 0.35); }
@media (min-width: 64em) {
  .interlude--talk .interlude__quote p { text-shadow: none; }
}
@media (min-width: 64em) {
  .interlude--drawing .interlude__image img { object-position: 50% 80%; }
}
@media (min-width: 64em) {
  .interlude--drawing .interlude__quote { width: fit-content; margin-left: auto; text-align: right; }
  .interlude--drawing .interlude__quote p { margin-left: auto; }
  .interlude--drawing .interlude__quote footer { justify-content: flex-end; }
}
