:root {
  --rose: #e8466f;
  --rose-light: #ff8fab;
  --rose-pale: #ffe5ec;
  --wine: #6d1a36;
  --cream: #fff8f3;
  --gold: #d4a373;
  --text: #4a2c35;
  --shadow: 0 15px 40px rgba(109, 26, 54, 0.18);
  --script: "Great Vibes", cursive;
  --display: "Playfair Display", serif;
  --serif: "Cormorant Garamond", serif;
  --sans: "Poppins", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: linear-gradient(180deg, #fff0f3 0%, #ffe5ec 40%, #ffd6e0 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
}

body.locked { overflow: hidden; }

#hearts-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hidden { display: none; }

/* ---------- INTRO / ENVELOPE ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  background: radial-gradient(circle at center, #ffe5ec 0%, #f7b2c4 100%);
  transition: opacity 1s ease, visibility 1s ease;
}

.intro.out { opacity: 0; visibility: hidden; }

.intro__hint {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--wine);
  animation: pulse 2s ease-in-out infinite;
}

.envelope {
  position: relative;
  width: 260px;
  height: 170px;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
  perspective: 800px;
}

.envelope__body {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff 0%, #ffe5ec 100%);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.envelope__body::before,
.envelope__body::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-bottom: 100px solid #ffd1dc;
}
.envelope__body::before { left: 0; border-right: 130px solid transparent; }
.envelope__body::after { right: 0; border-left: 130px solid transparent; }

.envelope__flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 130px solid transparent;
  border-right: 130px solid transparent;
  border-top: 100px solid #ffb3c6;
  transform-origin: top;
  transition: transform 0.8s ease;
  z-index: 3;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.08));
}

.envelope__seal {
  position: absolute;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  z-index: 4;
  box-shadow: 0 4px 10px rgba(232, 70, 111, 0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.envelope.open { animation: none; }
.envelope.open .envelope__flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .envelope__seal { opacity: 0; transform: translateX(-50%) scale(0.3); }

/* ---------- MÚSICA ---------- */
.music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--rose);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 70, 111, 0.45);
  transition: transform 0.3s ease;
}
.music-btn:hover { transform: scale(1.1); }
.music-btn.playing { animation: spin 4s linear infinite; }

/* ---------- LAYOUT ---------- */
.main { position: relative; z-index: 1; }

.section {
  padding: 100px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section__title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  color: var(--rose);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(232, 70, 111, 0.2);
}

.section__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--wine);
  margin-bottom: 3rem;
}

/* Reveal ao rolar */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.visible { opacity: 1; transform: none; }

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

.hero__pre {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--wine);
  letter-spacing: 2px;
}

.hero__names {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  letter-spacing: 0.5px;
  color: var(--rose);
  line-height: 1.2;
  margin: 1rem 0;
  text-shadow: 0 4px 20px rgba(232, 70, 111, 0.25);
  transition-delay: 0.3s;
}

.hero__heart {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.5em;
  vertical-align: middle;
  margin: 0 0.3em;
  animation: heartbeat 1.4s ease-in-out infinite;
}

.hero__typing {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--text);
  min-height: 2.4em;
  max-width: 700px;
}

.cursor { color: var(--rose); animation: blink 0.9s step-end infinite; }

.scroll-down {
  position: absolute;
  bottom: 40px;
  width: 30px;
  height: 50px;
  border: 2px solid var(--rose);
  border-radius: 20px;
}
.scroll-down span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--rose);
  animation: scroll 2s ease-in-out infinite;
}

/* ---------- CONTADOR ---------- */
.counter__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 2rem 0;
}

.counter__item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 24px 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.counter__item:hover { transform: translateY(-6px); }

.counter__item span {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--rose);
}

.counter__item small {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--wine);
}

.counter__since {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
}

/* ---------- GALERIA ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px 30px;
  padding: 0 10px;
}

.polaroid {
  background: #fff;
  padding: 14px 14px 18px;
  box-shadow: var(--shadow);
  border-radius: 4px;
  cursor: pointer;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 1s ease;
}
.polaroid.reveal { transform: rotate(var(--rot, 0deg)) translateY(40px); }
.polaroid.reveal.visible { transform: rotate(var(--rot, 0deg)); }
.polaroid:hover,
.polaroid.reveal.visible:hover {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 25px 50px rgba(109, 26, 54, 0.28);
  z-index: 2;
}

.polaroid__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-pale), #ffc2d1);
  display: grid;
  place-items: center;
}
.polaroid__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.polaroid__placeholder {
  color: var(--rose);
  font-size: 3rem;
  opacity: 0.6;
  animation: heartbeat 1.6s ease-in-out infinite;
}

.polaroid figcaption {
  font-family: var(--script);
  font-size: 1.6rem;
  color: var(--wine);
  margin-top: 10px;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(40, 10, 20, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { text-align: center; transform: scale(0.9); transition: transform 0.4s ease; }
.lightbox.open figure { transform: scale(1); }
.lightbox img {
  max-width: 90vw;
  max-height: 78vh;
  border: 10px solid #fff;
  border-radius: 4px;
}
.lightbox figcaption {
  font-family: var(--script);
  color: #fff;
  font-size: 2rem;
  margin-top: 10px;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
}

/* ---------- LINHA DO TEMPO ---------- */
.timeline__list {
  position: relative;
  margin-top: 3rem;
  text-align: left;
}
.timeline__list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--rose-light), var(--rose));
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 40px 50px;
}
.timeline__item:nth-child(odd) { left: 0; text-align: right; }
.timeline__item:nth-child(even) { left: 50%; }

.timeline__item::before {
  content: "♥";
  position: absolute;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  box-shadow: 0 0 0 6px var(--rose-pale);
}
.timeline__item:nth-child(odd)::before { right: -17px; }
.timeline__item:nth-child(even)::before { left: -17px; }

.timeline__card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.timeline__date {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
}
.timeline__card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--wine);
  margin: 4px 0 6px;
}
.timeline__card p { font-size: 0.95rem; line-height: 1.6; }

/* ---------- MOTIVOS (cartões que viram) ---------- */
.reasons__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.flip-card {
  height: 200px;
  perspective: 1000px;
  cursor: pointer;
}
.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-card__inner { transform: rotateY(180deg); }

.flip-card__face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: var(--shadow);
}
.flip-card__front {
  background: linear-gradient(135deg, var(--rose-light), var(--rose));
  color: #fff;
  flex-direction: column;
}
.flip-card__front span { font-size: 3rem; animation: heartbeat 1.6s ease-in-out infinite; }
.flip-card__front small { font-family: var(--serif); font-size: 1.2rem; margin-top: 6px; }
.flip-card__back {
  background: #fff;
  transform: rotateY(180deg);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--wine);
  line-height: 1.4;
}

/* ---------- CARTA ---------- */
.letter__paper {
  max-width: 720px;
  margin: 2.5rem auto 0;
  background: var(--cream);
  background-image: repeating-linear-gradient(transparent 0 35px, rgba(232, 70, 111, 0.12) 35px 36px);
  /* padding-top múltiplo de 36px para as pautas ficarem embaixo de cada linha de texto */
  padding: 36px 50px 40px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  text-align: left;
  position: relative;
}
.letter__paper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34px;
  width: 1px;
  background: rgba(232, 70, 111, 0.35);
}

.letter__content p {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 36px;
  margin-bottom: 36px;
  white-space: pre-line;
}

.letter__content p { position: relative; }
.letter__ghost { visibility: hidden; }
.letter__typed { position: absolute; inset: 0; }
.letter__typed.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--rose);
  animation: blink 0.8s step-end infinite;
}

.letter__sign {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--rose);
  text-align: right;
  line-height: 36px;
}

/* ---------- FINAL ---------- */
.final { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }

.final__question {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  color: var(--rose);
  max-width: 800px;
  line-height: 1.2;
}

.final__buttons {
  display: flex;
  gap: 24px;
  margin-top: 2.5rem;
  position: relative;
  min-height: 70px;
}

.btn {
  font-family: var(--sans);
  font-size: 1.1rem;
  padding: 14px 38px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn--yes {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 8px 25px rgba(232, 70, 111, 0.45);
  animation: heartbeat 1.6s ease-in-out infinite;
}
.btn--yes:hover { background: var(--wine); }
.btn--no {
  background: #fff;
  color: var(--wine);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, left 0.25s ease, top 0.25s ease;
}

.final__answer {
  margin-top: 2rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.final__answer.show { opacity: 1; transform: scale(1); }
.final__answer h3 { font-family: var(--script); font-weight: 400; font-size: 3.5rem; color: var(--rose); }
.final__answer p { font-family: var(--serif); font-size: 1.5rem; font-style: italic; }

/* Explosão de corações */
.burst-heart {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  user-select: none;
  animation: burst 1.8s ease-out forwards;
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--wine);
}
.footer__heart { color: var(--rose); display: inline-block; animation: heartbeat 1.4s ease-in-out infinite; }

/* ---------- KEYFRAMES ---------- */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
  45% { transform: scale(1.12); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scroll {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(22px); }
}
@keyframes burst {
  0% { transform: translate(0, 0) scale(0.4) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(var(--rot)); opacity: 0; }
}

/* =========================================================
   TRANSITIONS.DEV — tokens e trechos (t-*)
   ========================================================= */
:root {
  /* Card hover tilt */
  --tilt-perspective: 1000px;
  --tilt-return: 1000ms;
  --tilt-return-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tilt-follow: 400ms;
  --tilt-follow-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tilt-glare-opacity: 0.32;
  --tilt-glare-fade: 300ms;
  --tilt-glare-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Toast */
  --toast-open: 350ms;
  --toast-close: 250ms;
  --toast-distance: 16px;
  --toast-blur: 2px;
  --toast-scale: 0.97;
  --toast-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Tabs sliding (cores no tema rosa) */
  --tabs-dur: 250ms;
  --tabs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tabs-text-muted: rgba(109, 26, 54, 0.75);
  --tabs-text-active: #ffffff;
  --tabs-bar-bg: rgba(255, 255, 255, 0.7);
  --tabs-pill-bg: var(--rose);
  /* Texts reveal */
  --stagger-dur: 500ms;
  --stagger-distance: 12px;
  --stagger-stagger: 80ms;
  --stagger-blur: 3px;
  --stagger-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Checkbox check */
  --check-box: 150ms;
  --check-draw: 350ms;
  --check-delay: 0ms;
  --check-uncheck: 150ms;
  --check-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Accordion */
  --acc-expand: 250ms;
  --acc-collapse: 250ms;
  --acc-chevron: 250ms;
  --acc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Like button (maior, para o coração dos beijos) */
  --like-color: #e8466f;
  --like-fill: 150ms;
  --like-pop: 350ms;
  --like-pop-ease: cubic-bezier(0.34, 1.96, 0.64, 1);
  --like-particle-dur: 600ms;
  --like-particle-dist: 46px;
  --like-particle-size: 6px;
  --like-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Number pop-in */
  --digit-dur: 500ms;
  --digit-distance: 8px;
  --digit-stagger: 70ms;
  --digit-blur: 2px;
  --digit-ease: cubic-bezier(0.34, 1.45, 0.64, 1);
  --digit-dir-x: 0;
  --digit-dir-y: 1;
}

/* --- Card hover tilt --- */
.t-tilt { touch-action: none; }
.t-tilt-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transform:
    perspective(var(--tilt-perspective))
    rotateX(var(--tilt-rx, 0deg))
    rotateY(var(--tilt-ry, 0deg));
  transform-style: preserve-3d;
  transition: transform var(--tilt-return) var(--tilt-return-ease);
  will-change: transform;
}
.t-tilt-card.is-tilting {
  transition: transform var(--tilt-follow) var(--tilt-follow-ease);
}
.t-tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle 95px at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
      rgba(255,255,255,0.48), rgba(255,255,255,0.06) 52%, rgba(255,255,255,0) 84%),
    radial-gradient(circle 200px at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
      rgba(255,255,255,0.22), rgba(255,255,255,0.04) 58%, rgba(255,255,255,0) 78%),
    radial-gradient(circle 360px at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
      rgba(255,255,255,0.10), rgba(255,255,255,0) 88%);
  transition: opacity var(--tilt-glare-fade) var(--tilt-glare-ease);
}
.t-tilt.is-hover .t-tilt-glare { opacity: var(--tilt-glare-opacity); }

/* --- Toast --- */
.t-toast {
  opacity: 0;
  transform: translateY(var(--toast-distance)) scale(var(--toast-scale));
  filter: blur(var(--toast-blur));
  will-change: transform, opacity, filter;
  transition:
    opacity var(--toast-close) var(--toast-ease),
    transform var(--toast-close) var(--toast-ease),
    filter var(--toast-close) var(--toast-ease);
}
.t-toast.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity var(--toast-open) var(--toast-ease),
    transform var(--toast-open) var(--toast-ease),
    filter var(--toast-open) var(--toast-ease);
}

/* --- Tabs sliding --- */
.t-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 48px;
  background: var(--tabs-bar-bg);
}
.t-tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  height: 30px;
  padding: 4px 12px;
  color: var(--tabs-text-muted);
  cursor: pointer;
  border-radius: 48px;
  z-index: 1;
  transition: color var(--tabs-dur) var(--tabs-ease);
}
.t-tab:not([aria-selected="true"]):hover,
.t-tab[aria-selected="true"] {
  color: var(--tabs-text-active);
}
.t-tabs-pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: 30px;
  width: 0;
  background: var(--tabs-pill-bg);
  border-radius: 48px;
  transform: translateX(0);
  transition:
    transform var(--tabs-dur) var(--tabs-ease),
    width     var(--tabs-dur) var(--tabs-ease);
  will-change: transform, width;
  z-index: 0;
  pointer-events: none;
}

/* --- Texts reveal --- */
.t-stagger-line {
  display: block;
  opacity: 0;
  transform: translateY(var(--stagger-distance));
  filter: blur(var(--stagger-blur));
  transition:
    opacity   var(--stagger-dur) var(--stagger-ease),
    transform var(--stagger-dur) var(--stagger-ease),
    filter    var(--stagger-dur) var(--stagger-ease);
  will-change: transform, opacity, filter;
}
.t-stagger-line--2 { transition-delay: var(--stagger-stagger); }
.t-stagger.is-shown .t-stagger-line {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.t-stagger.is-hiding .t-stagger-line {
  opacity: 0;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 200ms ease,
    transform 0s linear,
    filter 0s linear;
  transition-delay: 0s;
}

/* --- Checkbox check --- */
.t-check {
  transition:
    background var(--check-box) var(--check-ease),
    box-shadow var(--check-box) var(--check-ease);
}
.t-check svg path {
  stroke-dasharray: var(--check-len, 15);
  stroke-dashoffset: var(--check-len, 15);
  transition: stroke-dashoffset var(--check-uncheck) var(--check-ease);
}
.t-check[aria-checked="true"] svg path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--check-draw) var(--check-ease) var(--check-delay);
}

/* --- Accordion --- */
.t-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel {
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--acc-expand) var(--acc-ease);
}
.t-acc-panel-inner {
  overflow: hidden;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity var(--acc-collapse) var(--acc-ease),
    filter var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel-inner {
  opacity: 1;
  filter: blur(0);
  transition:
    opacity var(--acc-expand) var(--acc-ease),
    filter var(--acc-expand) var(--acc-ease);
}
.t-acc-chevron {
  display: inline-flex;
  transform: scaleY(1);
  transform-origin: center;
  transition: transform var(--acc-chevron) var(--acc-ease);
}
.t-acc-chevron path { vector-effect: non-scaling-stroke; }
.t-acc[data-open="true"] .t-acc-chevron {
  transform: scaleY(-1);
}

/* --- Like button --- */
.t-like-heart { color: currentColor; transition: color var(--like-fill) var(--like-ease); }
.t-like-heart path {
  fill: transparent; stroke: currentColor;
  transition: fill var(--like-fill) var(--like-ease), stroke var(--like-fill) var(--like-ease);
}
.t-like[data-liked="true"] .t-like-heart { color: var(--like-color); }
.t-like[data-liked="true"] .t-like-heart path { fill: currentColor; }
.t-like[data-liked="true"] .t-like-icon { animation: t-like-pop var(--like-pop) var(--like-pop-ease); }
@keyframes t-like-pop { 0% { transform: scale(1); } 30% { transform: scale(0.82); } 100% { transform: scale(1); } }
.t-like-particles { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; color: var(--like-color); }
.t-like-particles i {
  position: absolute;
  left: calc(var(--like-particle-size) * var(--psize, 1) / -2);
  top: calc(var(--like-particle-size) * var(--psize, 1) / -2);
  width: calc(var(--like-particle-size) * var(--psize, 1));
  height: calc(var(--like-particle-size) * var(--psize, 1));
  border-radius: 50%; background: currentColor; opacity: 0;
}
@keyframes t-like-burst {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  20%  { opacity: 1; transform: translate(calc(var(--px) * 0.25), calc(var(--py) * 0.25)) scale(1); }
  100% { opacity: 0; transform: translate(var(--px), var(--py)) scale(var(--p-end-scale, 0.6)); }
}
.t-like.is-bursting .t-like-particles i {
  animation: t-like-burst var(--pdur, var(--like-particle-dur)) ease-out var(--pdelay, 0ms) forwards;
}

/* --- Number pop-in --- */
@keyframes t-digit-pop-in {
  0%   {
    transform: translate(
      calc(var(--digit-distance) * var(--digit-dir-x)),
      calc(var(--digit-distance) * var(--digit-dir-y))
    );
    opacity: 0;
    filter: blur(var(--digit-blur));
  }
  100% { transform: translate(0, 0); opacity: 1; filter: blur(0); }
}
.t-digit-group { display: inline-flex; align-items: baseline; }
.t-digit { display: inline-block; will-change: transform, opacity, filter; }
.t-digit-group.is-animating .t-digit {
  animation: t-digit-pop-in var(--digit-dur) var(--digit-ease) both;
}
.t-digit-group.is-animating .t-digit[data-stagger="1"] { animation-delay: var(--digit-stagger); }
.t-digit-group.is-animating .t-digit[data-stagger="2"] { animation-delay: calc(var(--digit-stagger) * 2); }

@media (prefers-reduced-motion: reduce) {
  .t-tilt-card { transform: none !important; transition: none !important; }
  .t-toast { transition: none !important; }
  .t-tabs-pill, .t-tab { transition: none !important; }
  .t-stagger-line { transition: none !important; }
  .t-check, .t-check svg path { transition: none !important; }
  .t-acc-panel, .t-acc-panel-inner, .t-acc-chevron { transition: none !important; }
  .t-like-icon, .t-like-particles i { animation: none !important; }
  .t-digit-group .t-digit { animation: none !important; }
}

/* =========================================================
   NOVAS SEÇÕES (visual romântico)
   ========================================================= */

/* ---------- CUPONS ---------- */
.coupons__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
}
.coupon { cursor: pointer; }
.coupon .t-tilt-card {
  border-radius: 18px;
  min-height: 190px;
  padding: 26px 22px 22px;
  background: linear-gradient(140deg, #fff 0%, #ffe5ec 55%, #ffc2d1 100%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
/* Picote de ticket */
.coupon .t-tilt-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed rgba(232, 70, 111, 0.35);
  border-radius: 12px;
  pointer-events: none;
}
.coupon__emoji { font-size: 2.4rem; }
.coupon__title { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--wine); }
.coupon__text { font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.35; }
.coupon__stamp {
  position: absolute;
  top: 16px;
  right: -34px;
  width: 140px;
  padding: 4px 0;
  background: var(--rose);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: rotate(35deg) scale(0.6);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.34, 1.36, 0.64, 1);
}
.coupon.redeemed .coupon__stamp { opacity: 1; transform: rotate(35deg) scale(1); }

/* ---------- SONHOS ---------- */
.dreams__tabs { box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.dreams__tabs .t-tab { height: 42px; padding: 6px 20px; font-family: var(--sans); font-size: 0.98rem; }
/* Hover das abas não selecionadas mantém a mesma cor (o branco sumiria no fundo claro) */
.dreams__tabs .t-tab:not([aria-selected="true"]):hover { color: var(--tabs-text-muted); }
.dreams__tabs .t-tabs-pill { height: 42px; box-shadow: 0 6px 18px rgba(232, 70, 111, 0.4); }
.dreams__panel {
  max-width: 640px;
  margin: 2.5rem auto 0;
  min-height: 240px;
}
.dreams__panel .dream-line {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid rgba(232, 70, 111, 0.15);
}
.dreams__panel .dream-line:last-child { border-bottom: 0; }
.dreams__panel .dream-line::before { content: "♥"; color: var(--rose); margin-right: 10px; font-size: 0.85em; }

/* ---------- PROMESSAS ---------- */
.promises__list {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.promise {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.promise:hover { transform: translateY(-3px); }
.promise .t-check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--rose-light);
}
.promise .t-check svg { width: 14px; height: 14px; }
.promise .t-check svg path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.promise[aria-checked="true"] .t-check { background: var(--rose); box-shadow: inset 0 0 0 2px var(--rose); }
.promise__text { transition: color 0.25s ease; }
.promise[aria-checked="true"] .promise__text { color: var(--wine); font-style: italic; }
.promises__done {
  margin-top: 1.6rem;
  font-family: var(--script);
  font-size: 2.2rem;
  color: var(--rose);
  min-height: 1.4em;
}

/* ---------- PERGUNTAS ---------- */
.questions__list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.question {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.question .t-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--wine);
  text-align: left;
}
.question .t-acc-chevron svg { width: 18px; height: 18px; }
.question .t-acc-chevron path { fill: none; stroke: var(--rose); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.question .t-acc-panel-inner p {
  padding: 0 24px 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
}

/* ---------- BEIJOS ---------- */
.kisses__box { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kiss-btn {
  position: relative;
  width: 130px;
  height: 130px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  color: var(--rose-light);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.kiss-btn:hover { transform: translateY(-4px); }
.kiss-btn .t-like-icon { display: inline-flex; }
.kiss-btn .t-like-heart { width: 68px; height: 68px; }
.kiss-btn[data-liked="true"]:not(.is-popping) .t-like-icon { animation: none; }
.kiss-btn.is-popping .t-like-icon { animation: t-like-pop var(--like-pop) var(--like-pop-ease); }
.kisses__count {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3rem;
  color: var(--rose);
  line-height: 1;
}
.kisses__label { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--wine); }

/* ---------- TOAST ---------- */
.love-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  width: min(420px, calc(100vw - 110px));
  margin-left: calc(min(420px, calc(100vw - 110px)) / -2);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(109, 26, 54, 0.28);
  pointer-events: none;
}
.love-toast.is-open { pointer-events: auto; }
.love-toast__icon { font-size: 1.8rem; }
.love-toast strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--wine); }
.love-toast span { font-size: 0.9rem; }

@media (max-width: 480px) {
  .love-toast { left: 16px; margin-left: 0; width: calc(100vw - 100px); bottom: 20px; }
  .dreams__tabs .t-tab { padding: 6px 14px; font-size: 0.9rem; }
  .promise { font-size: 1.1rem; padding: 14px 16px; }
  .question .t-acc-head { font-size: 1.15rem; padding: 18px 18px; }
  .question .t-acc-panel-inner p { padding: 0 18px 18px; }
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 800px) {
  .counter__grid { grid-template-columns: repeat(3, 1fr); }

  .timeline__list::before { left: 17px; }
  .timeline__item,
  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 40px 50px;
  }
  .timeline__item:nth-child(odd)::before,
  .timeline__item:nth-child(even)::before { left: 0; right: auto; }

  .letter__paper { padding: 36px 24px 30px 50px; }
}

@media (max-width: 480px) {
  .section { padding: 70px 16px; }
  .counter__grid { gap: 10px; }
  .counter__item { padding: 16px 6px; }
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; padding: 0; }
  .polaroid { padding: 8px 8px 12px; }
  .polaroid figcaption { font-size: 1.2rem; }
  .letter__content p { font-size: 1.15rem; }
}

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