/* ====================================================================
   ESTILOS DA OPÇÃO B: DIÁRIO SCROLLYTELLING (SCROLLYTELLING.CSS)
   ==================================================================== */

.scrolly-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 90px 20px 35px 20px;
}

/* ====================================================================
   HERO SECTION
   ==================================================================== */
.scrolly-hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 40px 20px;
}

.scrolly-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-rose-dark);
  background: rgba(254, 205, 211, 0.4);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 20px;
  font-weight: 600;
}

.scrolly-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-burgundy);
  margin-bottom: 12px;
}

.scrolly-subtitle {
  font-family: var(--font-handwriting);
  font-size: 2.2rem;
  color: var(--color-rose);
  margin-bottom: 20px;
}

/* ====================================================================
   FOTO DE DESTAQUE NA CAPA (HERO PHOTO)
   ==================================================================== */
.hero-photo-container {
  margin: 10px 0 28px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 5;
}

.hero-photo-card {
  background: #ffffff;
  padding: 14px 14px 22px 14px;
  border-radius: 4px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  box-shadow: 0 16px 36px -8px rgba(136, 19, 55, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  width: 310px;
  max-width: 90vw;
  transform: rotate(-1.5deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.hero-photo-card:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow: 0 24px 50px -10px rgba(136, 19, 55, 0.28), 0 8px 20px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.hero-photo-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: rgba(254, 205, 211, 0.85);
  backdrop-filter: blur(4px);
  border-left: 2px dashed rgba(244, 63, 94, 0.4);
  border-right: 2px dashed rgba(244, 63, 94, 0.4);
  box-shadow: 0 2px 6px rgba(136, 19, 55, 0.1);
  z-index: 2;
}

.hero-photo-inner {
  width: 100%;
  height: 290px;
  overflow: hidden;
  border-radius: 2px;
  background: #fdf2f8;
  position: relative;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-photo-card:hover .hero-photo-img {
  transform: scale(1.06);
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(136, 19, 55, 0.28);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.hero-photo-card:hover .hero-photo-overlay {
  opacity: 1;
}

.hero-photo-zoom-tag {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-burgundy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.hero-photo-card:hover .hero-photo-zoom-tag {
  transform: translateY(0);
}

.hero-photo-caption {
  font-family: var(--font-handwriting);
  font-size: 1.55rem;
  color: var(--color-burgundy);
  text-align: center;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.25;
}

.hero-photo-heart {
  color: var(--color-rose);
  display: inline-block;
  animation: pulseHeroHeart 1.8s infinite ease-in-out;
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
}

@keyframes pulseHeroHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.scrolly-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.quote-music-note {
  color: var(--color-rose);
  font-size: 1.1em;
  font-style: normal;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.85;
  margin: 0 4px;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 30px;
  animation: bounceDown 2.2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ====================================================================
   SEÇÕES GERAIS DE CAPÍTULOS
   ==================================================================== */
.scrolly-chapter {
  margin-bottom: 90px;
  position: relative;
}

.scrolly-chapter:last-child {
  margin-bottom: 0;
}

.chapter-heading {
  text-align: center;
  margin-bottom: 40px;
}

.chapter-number-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-rose);
  background: var(--color-rose-light);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.chapter-main-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-burgundy);
  margin-bottom: 8px;
}

.chapter-sub-title {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* ====================================================================
   CAPÍTULO 1: O PRÓLOGO (EDITORIAL COM FOTO E TEXTO)
   ==================================================================== */
.prologue-editorial-card {
  background: var(--color-paper);
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.prologue-text-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prologue-text-side p {
  color: #3b3634;
  line-height: 1.85;
  font-size: 1.05rem;
  text-align: justify;
  text-justify: inter-word;
  text-indent: 2em;
  letter-spacing: 1pt;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.prologue-callout {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-burgundy);
  border-left: 3px solid var(--color-rose);
  padding: 14px 18px;
  background: rgba(244, 63, 94, 0.04);
  border-radius: 0 12px 12px 0;
  margin-top: 10px;
  line-height: 1.7;
  letter-spacing: 0.5pt;
  text-align: left;
}

.prologue-image-side {
  position: relative;
}

.prologue-image-side .polaroid-frame {
  max-width: 340px;
  margin: 0 auto;
}

/* ====================================================================
   CAPÍTULO 2: LINHA DO TEMPO VERTICAL
   ==================================================================== */
.vertical-timeline {
  position: relative;
  max-width: 750px;
  margin: 40px auto 0 auto;
  padding: 20px 0;
}

.vertical-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--color-rose-light), var(--color-rose), var(--color-rose-light));
  transform: translateX(-50%);
}

.timeline-row {
  display: flex;
  align-items: center;
  margin-bottom: 45px;
  position: relative;
  width: 100%;
}

.timeline-row:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content-box {
  width: 45%;
  background: var(--color-paper);
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}

.timeline-content-box:hover {
  transform: translateY(-4px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--color-rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.2);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-row:hover .timeline-dot {
  transform: translateX(-50%) scale(1.18);
  background: var(--color-rose-light);
}

.timeline-dot-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.timeline-dot-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-rose);
  stroke-width: 2.5;
}

.timeline-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-rose);
  margin-bottom: 4px;
}

.timeline-tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeline-tag-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-rose);
  stroke-width: 2.2;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-burgundy);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ====================================================================
   CAPÍTULO 3: MURAL DE POLAROIDS GRID
   ==================================================================== */
.polaroids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 30px;
}

/* ====================================================================
   CAPÍTULO 5: PÁGINAS EM BRANCO (FUTURO)
   ==================================================================== */
.future-dreams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.dream-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
  border: 1px dashed rgba(244, 63, 94, 0.35);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.3s ease;
}

.dream-card:hover {
  border-style: solid;
  border-color: var(--color-rose);
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.12);
  transform: translateY(-3px);
}

.dream-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--color-rose);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.dream-icon-bubble svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-rose);
  stroke-width: 2;
  transition: stroke 0.3s ease, transform 0.3s ease;
}

.dream-icon-bubble .icon-emoji {
  display: inline-block;
  line-height: 1;
}

.dream-card:hover .dream-icon-bubble {
  background: var(--color-rose);
  color: #ffffff;
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.3);
}

.dream-card:hover .dream-icon-bubble svg {
  stroke: #ffffff;
  transform: scale(1.05);
}

.dream-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-burgundy);
}

.dream-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ====================================================================
   O GRAN FINALE: CARTÃO DE AMOR 3D (FORMATO A6 - 148mm x 105mm)
   ==================================================================== */
.card-finale-section {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 0 !important;
}

.card-scene-wrapper {
  perspective: 2500px;
  -webkit-perspective: 2500px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 15px 5px 15px;
  min-height: 435px;
  position: relative;
  overflow: visible;
}

/* Container do Cartão em proporção A6 (148 / 105 ≈ 1.4095) */
.greeting-card-3d {
  position: relative;
  width: 592px;
  height: 420px; /* 592 / 420 = 1.4095 (Exato 148 : 105) */
  max-width: 94vw;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 1.25s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(136, 19, 55, 0.22), 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

/* Quando aberto no Desktop (min-width: 1220px):
   Dois painéis A6 lado a lado = 1184px de largura.
   Desloca 296px (metade da largura) para centralizar a dupla página perfeitamente */
@media (min-width: 1220px) {
  .greeting-card-3d.is-open {
    transform: translateX(296px);
  }
}

@media (min-width: 860px) and (max-width: 1219px) {
  .greeting-card-3d {
    width: 480px;
    height: 340px; /* Proporção A6 */
  }
  .greeting-card-3d.is-open {
    transform: translateX(240px);
  }
}

/* ====================================================================
   PARTE MÓVEL: A CAPA A6 (DOBRADIÇA À ESQUERDA)
   ==================================================================== */
.card-cover-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 1.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
  z-index: 20;
  cursor: pointer;
  border-radius: 18px;
}

/* Efeito elegante de elevação suave ao passar o mouse com o cartão fechado (sem distorção 3D) */
.greeting-card-3d:not(.is-open):hover {
  transform: translateY(-6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 32px 75px -12px rgba(136, 19, 55, 0.28), 0 12px 28px -5px rgba(0, 0, 0, 0.1);
}

.greeting-card-3d:not(.is-open):hover .card-open-prompt {
  transform: translateX(-50%) scale(1.06);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.6);
}

/* Quando aberto: a capa gira 180 graus para a esquerda como um cartão real */
.greeting-card-3d.is-open .card-cover-flap {
  transform: rotateY(-180deg);
  z-index: 10;
}

/* Faces da Capa (Frente e Verso) */
.card-cover-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* ====================================================================
   FACE 1: A CAPA A6 EXTERNA (ARTE PERSONALIZADA)
   ==================================================================== */
.card-cover-front {
  transform: rotateY(0deg);
  background: #ffffff;
  border: 1px solid rgba(197, 155, 39, 0.35);
  box-shadow: 0 15px 35px rgba(136, 19, 55, 0.15);
  padding: 0;
}

.card-a6-art-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
}

.card-cover-a6-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* Selo / Lacre Interativo com Pulso */
.card-open-prompt {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.95), rgba(159, 18, 57, 0.95));
  color: #ffffff;
  padding: 9px 22px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  animation: sealPulse 2.4s infinite ease-in-out;
  cursor: pointer;
  z-index: 5;
}

@keyframes sealPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 10px 28px rgba(225, 29, 72, 0.6);
  }
}

.open-seal-icon {
  font-size: 1.1rem;
}

.open-seal-sparkle {
  font-size: 0.9rem;
}

/* ====================================================================
   FACE 2: O VERSO DA CAPA A6 (INTERNO ESQUERDO)
   ==================================================================== */
.card-cover-inside {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #fffbf7 0%, #fff1f4 100%);
  border: 1px solid rgba(244, 63, 94, 0.15);
  padding: 26px 30px;
  box-shadow: inset -22px 0 25px -12px rgba(0, 0, 0, 0.12); /* Sombra da dobra central */
}

.inside-left-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
}

.inside-watermark-heart {
  font-size: 2.4rem;
  color: rgba(244, 63, 94, 0.18);
  line-height: 1;
}

.inside-postmark-stamp {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px dashed rgba(225, 29, 72, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  background: rgba(255, 255, 255, 0.45);
}

.postmark-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.postmark-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: #be123c;
  letter-spacing: 0.08em;
}

.postmark-text {
  font-size: 0.58rem;
  font-weight: 800;
  color: #9f1239;
  letter-spacing: 0.12em;
}

.inside-romantic-quote {
  padding: 0 12px;
}

.quote-symbol {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1;
  color: #fb7185;
  margin-bottom: -12px;
}

.quote-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: #4c0519;
  line-height: 1.55;
}

.quote-author-sign {
  font-family: var(--font-handwriting);
  font-size: 1.5rem;
  color: #be123c;
  margin-top: 6px;
}

.btn-card-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #9f1239;
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-card-close:hover {
  background: #fff;
  border-color: #e11d48;
  color: #e11d48;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
}

/* ====================================================================
   PARTE FIXA: A BASE DO CARTÃO A6 (INTERNO DIREITO - A CARTA)
   ==================================================================== */
.card-base-inside {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  background-image: radial-gradient(rgba(244, 63, 94, 0.1) 0.6px, transparent 0.6px);
  background-size: 22px 22px;
  border-radius: 18px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  padding: 22px 30px;
  box-shadow: inset 24px 0 25px -12px rgba(0, 0, 0, 0.1); /* Sombra da dobra central */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Revela a base interna perfeitamente ao abrir o cartão */
.greeting-card-3d.is-open .card-base-inside {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.35s ease 0.12s;
}

.card-letter-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.stationery-stamp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.stationery-date-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9f1239;
  font-weight: 700;
}

.stationery-stamp-mini {
  width: 28px;
  height: 32px;
  border: 1.5px dashed rgba(244, 63, 94, 0.4);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transform: rotate(6deg);
}

.card-letter-content .letter-salutation {
  font-family: var(--font-handwriting);
  font-size: 1.75rem;
  color: var(--color-burgundy);
  margin-bottom: 8px;
  text-align: left;
  line-height: 1.15;
}

.card-letter-content .letter-paragraphs {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.card-letter-content .letter-paragraphs p {
  color: #38302e;
  line-height: 1.55;
  font-size: 0.92rem;
}

.card-letter-content .letter-signature-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 4px;
  margin-bottom: 12px;
}

.letter-closing-phrase {
  font-size: 0.78rem;
  color: #78716c;
}

.card-letter-content .letter-sign {
  font-family: var(--font-handwriting);
  font-size: 1.95rem;
  color: var(--color-rose-dark);
  line-height: 1;
  margin-top: 2px;
}

.card-actions-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px dashed rgba(244, 63, 94, 0.15);
}

.card-actions-wrapper .btn-celebrate {
  padding: 8px 24px;
  font-size: 0.88rem;
}

.btn-card-close-subtle {
  background: none;
  border: none;
  color: #a8a29e;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.btn-card-close-subtle:hover {
  color: #e11d48;
  background: rgba(244, 63, 94, 0.08);
}

/* Destaque romântico mobile (oculto no desktop) */
.mobile-inside-decor {
  display: none;
}

/* ====================================================================
   RESPONSIVIDADE MOBILE DO CARTÃO A6
   ==================================================================== */
@media (max-width: 859px) {
  .card-scene-wrapper {
    overflow-x: clip;
    padding: 10px 8px 5px 8px;
    min-height: auto;
  }

  .greeting-card-3d {
    width: min(94vw, 420px);
    height: calc(min(94vw, 420px) * 105 / 148);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), height 0.5s ease;
  }

  .greeting-card-3d.is-open {
    transform: none;
    height: auto;
    min-height: 520px;
  }

  /* Na abertura mobile, a capa gira suavemente e desvanece para não sobrar fora da tela */
  .greeting-card-3d.is-open .card-cover-flap {
    transform: rotateY(-180deg);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.75s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease 0.5s;
  }

  .greeting-card-3d:not(.is-open) .card-cover-flap {
    transform: rotateY(0deg);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.75s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
  }

  .card-base-inside {
    padding: 24px 20px;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(136, 19, 55, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    height: auto;
    min-height: 520px;
    overflow-y: visible;
  }

  .mobile-inside-decor {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.5), rgba(255, 241, 242, 0.7));
    border: 1px dashed rgba(244, 63, 94, 0.3);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.05);
  }

  .mobile-stamp-pill {
    font-size: 0.68rem;
    font-weight: 700;
    color: #9f1239;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .mobile-quote-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.98rem;
    color: #881337;
    line-height: 1.45;
    margin: 0;
  }

  .mobile-quote-sign {
    font-family: var(--font-handwriting);
    font-size: 1.25rem;
    color: #be123c;
    display: inline-block;
    margin-left: 6px;
    font-style: normal;
  }

  .stationery-stamp-header {
    display: none; /* No mobile, o topo já é preenchido pelo mobile-inside-decor */
  }

  .card-letter-content .letter-salutation {
    font-size: 1.7rem;
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .card-letter-content .letter-paragraphs {
    gap: 10px;
    margin-bottom: 16px;
  }

  .card-letter-content .letter-paragraphs p {
    font-size: 0.95rem;
    line-height: 1.62;
    color: #292524;
  }

  .card-letter-content .letter-signature-box {
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .card-letter-content .letter-sign {
    font-size: 2.1rem;
  }

  .card-actions-wrapper {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    width: 100%;
    padding-top: 10px;
  }

  .card-actions-wrapper .btn-celebrate {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .btn-card-close-subtle {
    justify-content: center;
    padding: 8px;
    font-size: 0.85rem;
  }
}

/* Responsividade Mobile para Scrollytelling */
@media (max-width: 768px) {
  .scrolly-title {
    font-size: 2.4rem;
  }
  .scrolly-subtitle {
    font-size: 1.7rem;
  }
  .hero-photo-card {
    width: 275px;
    padding: 10px 10px 18px 10px;
  }
  .hero-photo-inner {
    height: 245px;
  }
  .hero-photo-caption {
    font-size: 1.35rem;
    margin-top: 10px;
    gap: 6px;
  }
  .hero-photo-heart {
    font-size: 1rem;
  }
  .prologue-editorial-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
  .prologue-text-side p {
    text-indent: 1.4em;
    font-size: 0.98rem;
    line-height: 1.75;
  }
  .vertical-timeline::before {
    left: 20px;
  }
  .timeline-row, .timeline-row:nth-child(even) {
    flex-direction: row;
    padding-left: 45px;
  }
  .timeline-dot {
    left: 20px;
  }
  .timeline-content-box {
    width: 100%;
  }
  .future-dreams-grid {
    grid-template-columns: 1fr;
  }
  .love-letter-wrapper {
    padding: 30px 20px;
  }
  .time-counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ====================================================================
   BARRA DE PROGRESSO DE LEITURA
   ==================================================================== */
.reading-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(244, 63, 94, 0.08);
  z-index: 10000;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-rose) 0%, #fbbf24 100%);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
  transition: width 0.1s linear;
}

/* ====================================================================
   LIGHTBOX / ZOOM NAS FOTOS POLAROID
   ==================================================================== */
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.lightbox-content {
  background: #ffffff;
  padding: 16px 16px 28px 16px;
  border-radius: 4px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-rose);
  color: #fff;
  border: 2px solid #fff;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
  background: var(--color-burgundy);
}

.lightbox-content img {
  width: 100%;
  max-height: 65vh;
  object-fit: cover;
  border-radius: 2px;
}

.lightbox-caption {
  font-family: var(--font-handwriting);
  font-size: 1.6rem;
  text-align: center;
  color: var(--color-burgundy);
  margin-top: 14px;
  line-height: 1.35;
  word-break: break-word;
}

/* ====================================================================
   ENVELOPE SELADO INTERATIVO COM LACRE DE CERA
   ==================================================================== */
.wax-envelope-card {
  background: linear-gradient(145deg, #fff7f7 0%, #ffeef0 100%);
  border: 2px dashed rgba(244, 63, 94, 0.35);
  border-radius: 24px;
  padding: 50px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.1);
}

.wax-envelope-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(244, 63, 94, 0.2);
  border-color: var(--color-rose);
}

.wax-seal {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e11d48, #881337);
  box-shadow: 0 6px 18px rgba(136, 19, 55, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  margin: 0 auto 18px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.wax-envelope-card:hover .wax-seal {
  transform: scale(1.1) rotate(5deg);
}

.wax-envelope-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-burgundy);
  margin-bottom: 6px;
}

.wax-envelope-hint {
  font-size: 0.85rem;
  color: var(--color-rose-dark);
  font-weight: 600;
}

/* ====================================================================
   ESTATÍSTICAS REAIS DO CASAL (+17.000 MENSAGENS)
   ==================================================================== */
.couple-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px auto;
  max-width: 820px;
}

.stat-item-card {
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: 20px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
}

.stat-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-rose);
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.12);
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-burgundy);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ====================================================================
   MENSAGENS DO WHATSAPP ESTILIZADAS (O PRIMEIRO "OI")
   ==================================================================== */
.chat-conversation-wrapper {
  background: #efeae2;
  background-image: radial-gradient(#d1c7bc 0.75px, transparent 0.75px);
  background-size: 18px 18px;
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  max-width: 440px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.chat-bubble.from-clara {
  align-self: flex-start;
  background: #ffffff;
  color: #111b21;
  border-bottom-left-radius: 3px;
}

.chat-bubble.from-paulo {
  align-self: flex-end;
  background: #d9fdd3;
  color: #111b21;
  border-bottom-right-radius: 3px;
}

.chat-sender-name {
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.from-clara .chat-sender-name {
  color: var(--color-rose-dark);
}

.from-paulo .chat-sender-name {
  color: #075e54;
}

.chat-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: #667781;
  margin-top: 4px;
}

.chat-ticks {
  color: #53bdeb;
  font-weight: bold;
}

@media (max-width: 768px) {
  .couple-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


