:root {
  --lav-1: #b98fd6;
  --lav-2: #ddc7ec;
  --lav-3: #efe1f6;
  --border-soft: #ad8bc9;
  --ink: #1e1524;
  --ink-soft: #4a3b58;
  --accent: #9b5fc9;
  --accent-deep: #7c46a8;
  --paper: #fffaf5;
  --seal: #b39ad9;
  --shadow: 0 18px 45px rgba(60, 30, 80, 0.16);
  --radius: 10px;
  --paper-grad: radial-gradient(ellipse 120% 90% at 50% 0%, #fffdfa 0%, var(--paper) 55%, #f8efe6 100%);
  --paper-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 16px 36px rgba(60, 30, 80, .14), 0 2px 6px rgba(60, 30, 80, .08);
  --frame: rgba(155, 95, 201, .32);

  --font-display: "Playfair Display", "Georgia", serif;
  --font-serif: "EB Garamond", "Georgia", serif;
  --font-round: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;

  --nav-h: 68px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sparkle, .scatter-sparkle { animation: none; }
  .reveal-in { transition: none; }
}

/* ---------- Envelope de entrada ---------- */

.envelope-gate {
  --env-w: min(86vw, 580px, calc(73vh - 24px));
  --rise: -112%;
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 65% at 50% 46%, var(--paper) 0%, var(--lav-2) 58%, var(--lav-1) 100%);
  transition: opacity .8s ease .15s;
}
@supports (height: 1svh) {
  .envelope-gate { --env-w: min(86vw, 580px, calc(73svh - 24px)); }
}
.envelope-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/bg-texture.jpg") center / cover;
  opacity: .28;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.envelope-gate.is-hidden, .envelope-done .envelope-gate { display: none; }
.envelope-gate.is-leaving { opacity: 0; pointer-events: none; }

.envelope-gate__stage {
  position: relative;
  width: var(--env-w);
}
@supports (width: round(down, 100px, 6px)) {
  .envelope-gate__stage { width: round(down, var(--env-w), 6px); }
}

.envelope-gate__hint {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: calc(100% + 26px);
  margin: 0;
  text-align: center;
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-deep);
  animation: envelopeHintPulse 2.4s ease-in-out infinite;
  transition: opacity .3s ease;
}
.is-opening .envelope-gate__hint { opacity: 0; animation: none; }
@keyframes envelopeHintPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.envelope-gate__skip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: max-content;
  margin: 0 auto;
  padding: 8px 14px;
  border: 0;
  background: none;
  font-family: var(--font-round);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .7;
  transition: opacity .25s ease;
}
.envelope-gate__skip:hover, .envelope-gate__skip:focus-visible { opacity: 1; }
.is-present .envelope-gate__skip { opacity: 0; pointer-events: none; }

/* O envelope */

.env {
  position: relative;
  width: 100%;
  cursor: pointer;
}
.is-opening .env { cursor: default; }

.env__body {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  container-type: inline-size;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
@media (hover: hover) {
  .envelope-gate:not(.is-opening) .env:hover .env__body { transform: translateY(-4px); }
  .envelope-gate:not(.is-opening) .env:hover .env__ground { opacity: .7; }
  .envelope-gate:not(.is-opening) .env:hover .env__seal { transform: scale(1.06); }
}
.is-rise .env__body {
  transform: translateY(45%);
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1);
}

.env__ground {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -9%;
  height: 16%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(60, 30, 80, .32) 0%, rgba(60, 30, 80, 0) 70%);
  filter: blur(6px);
  transition: opacity .6s ease;
}

.env__back {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 1cqw;
  background: #f6efe6;
  box-shadow: 0 3cqw 7cqw rgba(60, 30, 80, .26), 0 .6cqw 1.4cqw rgba(60, 30, 80, .14);
  overflow: hidden;
  transition: opacity .6s ease, transform .8s ease;
}
.env__back::before {
  content: "";
  position: absolute;
  inset: 3.2% 2.2% 0;
  background:
    url("../assets/flower-sprig.png") 0 0 / 7% auto repeat,
    url("../assets/bg-texture.jpg") center / cover;
  background-blend-mode: soft-light, normal;
}

/* Aba */

.env__flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  z-index: 6;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.42, 0, .58, 1), opacity .6s ease;
}
.is-flap-open .env__flap { transform: perspective(1600px) rotateX(180deg); }
.is-flap-behind .env__flap { z-index: 2; }

.env__flap-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.env__flap-face--out {
  background: #e3d7c8;
  clip-path: polygon(0 0, 100% 0, 54% 92%, 52.4% 97%, 50% 99%, 47.6% 97%, 46% 92%);
}
.env__flap-face--out::before {
  content: "";
  position: absolute;
  inset: 0 .7% 1.4%;
  background: linear-gradient(180deg, #fdf9f3 0%, #f7f0e6 60%, #efe5d8 100%);
  clip-path: polygon(0 0, 100% 0, 54% 92%, 52.4% 97%, 50% 99%, 47.6% 97%, 46% 92%);
}
.env__flap-face--in {
  transform: rotateX(180deg);
  background: #f6efe6;
  clip-path: polygon(0 100%, 100% 100%, 54% 8%, 52.4% 3%, 50% 1%, 47.6% 3%, 46% 8%);
}
.env__flap-face--in::before {
  content: "";
  position: absolute;
  inset: 7% 2.2% 0;
  background:
    url("../assets/flower-sprig.png") 0 100% / 7% auto repeat,
    url("../assets/bg-texture.jpg") center / cover;
  background-blend-mode: soft-light, normal;
  clip-path: polygon(0 100%, 100% 100%, 54% 8%, 52.4% 3%, 50% 1%, 47.6% 3%, 46% 8%);
}

.env__flap-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  z-index: 5;
  filter: blur(4px);
  transform: translateY(3%);
  pointer-events: none;
  transition: opacity .35s ease;
}
.env__flap-shadow span {
  position: absolute;
  inset: 0;
  background: rgba(60, 30, 80, .22);
  clip-path: polygon(0 0, 100% 0, 54% 92%, 52.4% 97%, 50% 99%, 47.6% 97%, 46% 92%);
}
.is-flap-open .env__flap-shadow { opacity: 0; }

/* Bolso da frente */

.env__pocket {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transition: opacity .6s ease, transform .8s ease;
}

.env__label {
  position: absolute;
  left: 0;
  right: 0;
  top: 75.5%;
  z-index: 5;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4cqw;
  text-align: center;
  pointer-events: none;
  transition: opacity .5s ease;
}
.env__label-small {
  font-family: var(--font-round);
  font-weight: 600;
  font-size: max(9px, 2.2cqw);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .75;
}
.env__label-name {
  max-width: 70cqw;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: max(20px, 6.4cqw);
  line-height: 1.15;
  padding: 0 .25em;
  color: var(--accent-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Selo de cera */

.env__seal {
  position: absolute;
  top: 57%;
  left: 50%;
  z-index: 7;
  width: 18%;
  aspect-ratio: 1;
  margin: -9% 0 0 -9%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  container-type: inline-size;
  filter: drop-shadow(0 1.4cqw 1.6cqw rgba(60, 30, 80, .35));
  transition: transform .15s ease;
}
.env__seal::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .8);
  animation: sealRipple 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes sealRipple {
  0% { transform: scale(.9); opacity: .9; }
  80%, 100% { transform: scale(1.55); opacity: 0; }
}

.env__seal:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 4px; }
.env__seal.is-pressed { transform: scale(.9) !important; }
.is-opening .env__seal::before { animation: none; opacity: 0; }

.env__seal-half {
  position: absolute;
  inset: 0;
}
.env__seal-half img { width: 100%; height: 100%; }
.env__seal-half--left { clip-path: polygon(0 0, 53% 0, 46% 21%, 56% 40%, 45% 60%, 55% 80%, 48% 100%, 0 100%); }
.env__seal-half--right { clip-path: polygon(53% 0, 100% 0, 100% 100%, 48% 100%, 55% 80%, 45% 60%, 56% 40%, 46% 21%); }
.env__seal-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 23cqw;
  letter-spacing: 1px;
  color: #6f4a96;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .45), -1px -1px 1px rgba(60, 30, 90, .45);
  pointer-events: none;
}
.env__seal.is-breaking { pointer-events: none; }
.env__seal.is-breaking .env__seal-half--left { animation: sealCrackLeft .7s cubic-bezier(.3, .6, .4, 1) forwards; }
.env__seal.is-breaking .env__seal-half--right { animation: sealCrackRight .7s cubic-bezier(.3, .6, .4, 1) forwards; }
@keyframes sealCrackLeft {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  25% { transform: translate(-4%, 0) rotate(-4deg); opacity: 1; }
  100% { transform: translate(-30%, 45%) rotate(-28deg); opacity: 0; }
}
@keyframes sealCrackRight {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  25% { transform: translate(4%, 0) rotate(4deg); opacity: 1; }
  100% { transform: translate(30%, 45%) rotate(26deg); opacity: 0; }
}

/* Cartão (dobrado ao meio) */

.env__letter {
  --lx: 0px;
  --ly: 0px;
  --ls: 1;
  position: absolute;
  top: 4%;
  left: 4%;
  width: 92%;
  height: 90%;
  z-index: 3;
  container-type: inline-size;
  perspective: 2200px;
  transform: translateY(0);
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1), opacity .6s ease;
}
.is-rise .env__letter { transform: translateY(var(--rise)); }
.env__letter.is-centered {
  z-index: 8;
  cursor: pointer;
  transform: translate(var(--lx), calc(var(--rise) + var(--ly))) scale(var(--ls));
  transition: transform .85s cubic-bezier(.65, 0, .35, 1);
}
.env__letter.is-unfolded { transition: transform .95s cubic-bezier(.45, 0, .25, 1); }
.is-leaving .env__letter {
  transform: translate(var(--lx), calc(var(--rise) + var(--ly) - 4%)) scale(calc(var(--ls) * 1.05));
  transition: transform .9s cubic-bezier(.4, 0, .2, 1);
}

.letter__panel,
.letter__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, #fffdfa 0%, var(--paper) 55%, #f8efe6 100%);
}
.letter__panel {
  border-radius: 1.4cqw 1.4cqw 0 0;
  padding: 7cqw 9cqw 2cqw;
  justify-content: flex-end;
  box-shadow: 0 2cqw 5cqw rgba(60, 30, 80, .18);
}
.letter__panel::before,
.letter__face::before {
  content: "";
  position: absolute;
  border: 1px solid rgba(155, 95, 201, .35);
  pointer-events: none;
}
.letter__panel::before { inset: 2.6cqw 2.6cqw 0; border-bottom: 0; border-radius: .8cqw .8cqw 0 0; }

.letter__fold {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transform: rotateX(180deg);
  transition: transform .95s cubic-bezier(.45, 0, .25, 1);
}
.is-unfolded .letter__fold { transform: rotateX(0deg); }

.letter__face {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.letter__face--inside {
  border-radius: 0 0 1.4cqw 1.4cqw;
  padding: 1cqw 9cqw 6cqw;
  justify-content: flex-start;
  box-shadow: inset 0 1.8cqw 1.8cqw -1.8cqw rgba(60, 30, 80, .2), 0 2.4cqw 5cqw rgba(60, 30, 80, .2);
}
.letter__face--inside::before { inset: 0 2.6cqw 2.6cqw; border-top: 0; border-radius: 0 0 .8cqw .8cqw; }
.letter__face--inside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(60, 30, 80, .28), rgba(60, 30, 80, .08));
  pointer-events: none;
  transition: opacity .95s ease;
}
.is-unfolded .letter__face--inside::after { opacity: 0; }

.letter__face--cover {
  transform: rotateX(180deg);
  border-radius: 1.4cqw 1.4cqw 0 0;
  justify-content: center;
  gap: 1cqw;
  box-shadow: 0 1.4cqw 3.6cqw rgba(60, 30, 80, .2);
}
.letter__face--cover::before { inset: 2.6cqw; border-radius: .8cqw; }

.letter__flower {
  position: absolute;
  width: 21cqw;
  pointer-events: none;
}
.letter__flower--tl { top: -2.5cqw; left: -2.5cqw; }
.letter__flower--br { bottom: -2.5cqw; right: -2.5cqw; transform: rotate(180deg); }

.letter__eyebrow {
  position: relative;
  max-width: 56cqw;
  margin: 0 0 3cqw;
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 3.3cqw;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.letter__names {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10.5cqw;
  line-height: 1;
  color: var(--ink);
}
.letter__amp {
  display: block;
  margin: .6cqw 0 .2cqw;
  font-style: italic;
  font-size: 7cqw;
  color: var(--accent);
}

.letter__rule {
  display: block;
  margin: 2.4cqw 0 3.4cqw;
  font-size: 3.4cqw;
  line-height: 1;
  color: var(--accent);
}
.letter__rule::before,
.letter__rule::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 12cqw;
  height: 1px;
  margin: 0 2.4cqw;
  background: var(--border-soft);
  opacity: .6;
}
.letter__date {
  position: relative;
  margin: 0 0 1.2cqw;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 4.6cqw;
  color: var(--ink);
}
.letter__place {
  position: relative;
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4.1cqw;
  color: var(--ink-soft);
}
.letter__cta {
  position: relative;
  margin-top: 5cqw;
  padding: max(8px, 2.2cqw) max(18px, 6cqw);
  font-size: max(12.5px, 3.6cqw);
  border-width: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s, transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.is-ready .letter__cta {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility 0s, transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.letter__bouquet { width: 54cqw; margin-bottom: 1cqw; }
.letter__cover-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 6.6cqw;
  color: var(--ink);
}
.letter__cover-date {
  margin: 0;
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 3.2cqw;
  letter-spacing: .3em;
  color: var(--accent-deep);
}

.letter__sparkle {
  position: absolute;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, .95), 0 0 2px var(--accent);
  pointer-events: none;
  opacity: 0;
}
.is-unfolded .letter__sparkle { animation: twinkle 2.6s ease-in-out infinite; }
.ls1 { top: -6%; left: -5%; font-size: 5cqw; }
.ls2 { top: 34%; right: -6%; font-size: 3.6cqw; }
.ls3 { top: 112%; left: -7%; font-size: 4cqw; }
.ls4 { top: 168%; right: -5%; font-size: 5.4cqw; }
.ls5 { top: 204%; left: 14%; font-size: 3.2cqw; }
.is-unfolded .ls2 { animation-delay: .5s; }
.is-unfolded .ls3 { animation-delay: 1.1s; }
.is-unfolded .ls4 { animation-delay: .3s; }
.is-unfolded .ls5 { animation-delay: 1.6s; }

/* Depois de aberto, o cartão fica sem transformações 3D (texto nítido) */
.env__letter.is-settled { perspective: none; }
.is-settled .letter__fold { transform: none; transition: none; }
.is-settled .letter__face { -webkit-backface-visibility: visible; backface-visibility: visible; }
.is-settled .letter__face--cover { display: none; }

/* Partes do envelope somem quando o cartão vai pro centro */
.is-present .env__back,
.is-present .env__pocket { opacity: 0; transform: translateY(10%); }
.is-present .env__flap,
.is-present .env__label,
.is-present .env__ground { opacity: 0; }

@media (min-width: 700px) {
  .envelope-gate__hint { font-size: 14px; }
}

/* Movimento reduzido: sem giros, só troca suave */
.is-reduced .envelope-gate__hint,
.is-reduced .env__seal::before { animation: none; }
.is-reduced .env__body,
.is-reduced .env__flap { transform: none !important; }
.is-reduced .env__letter { opacity: 0; transition: opacity .5s ease .1s !important; }
.is-reduced.is-present .env__letter { opacity: 1; }
.is-reduced .letter__fold { transition: none; }
.is-reduced .env__seal.is-breaking .env__seal-half { animation: none; opacity: 0; transition: opacity .25s ease; }
.is-reduced .letter__sparkle { display: none; }

/* Herói só aparece depois que o envelope é aberto */
.gate-locked .hero .reveal-in { opacity: 0; transform: translateY(22px); }
.hero .reveal-in:nth-child(2) { transition-delay: .12s; }
.hero .reveal-in:nth-child(3) { transition-delay: .24s; }
.hero__names:focus { outline: none; }

body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink-soft);
  background: var(--lav-3);
  overflow-x: hidden;
}
body.gate-locked { overflow: hidden; height: 100%; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

[id] { scroll-margin-top: var(--nav-h); }

.heart-ico { color: var(--seal); }

.sparkle {
  position: absolute;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.9), 0 0 2px var(--accent);
  pointer-events: none;
  animation: twinkle 2.6s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid var(--accent-deep);
  color: var(--ink);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { background: transparent; }
.btn--whats { justify-content: center; }

.reveal-in { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal-in.in-view { opacity: 1; transform: translateY(0); }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--paper);
  box-shadow: 0 2px 12px rgba(60,30,80,0.06);
  transition: box-shadow .3s ease;
}
.topbar.is-scrolled {
  box-shadow: 0 4px 20px rgba(60,30,80,0.14);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.topbar__brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

.topbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  z-index: 90;
}
.topbar__toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.topbar.is-open .topbar__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.is-open .topbar__toggle span:nth-child(2) { opacity: 0; }
.topbar.is-open .topbar__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.topbar__nav {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--lav-2);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
  pointer-events: none;
}
.topbar.is-open .topbar__nav {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear 0s;
}
body.nav-open { overflow: hidden; }

.topbar__nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  transition: color .2s ease;
}
.topbar__nav a.is-active { color: var(--accent-deep); }
.topbar__cta {
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff !important;
  font-family: var(--font-round);
  font-size: 17px !important;
}
.topbar__cta.is-active { background: var(--accent); }

@media (min-width: 860px) {
  .topbar { padding: 0 40px; }
  .topbar__toggle { display: none; }
  .topbar__nav {
    position: static;
    flex-direction: row;
    background: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    gap: 30px;
  }
  .topbar__nav a { font-family: var(--font-round); font-size: 15px; font-weight: 600; }
  .topbar__cta { padding: 9px 20px; }
}

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 20px 60px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, var(--lav-3) 0%, var(--lav-2) 55%, var(--lav-1) 100%),
    url("../assets/bg-texture.jpg") center/cover no-repeat;
  background-blend-mode: normal;
  z-index: -1;
}
.hero__flower { position: absolute; pointer-events: none; opacity: .9; }
.hero__flower--tl { top: var(--nav-h); left: -10px; width: 200px; }
.hero__flower--br { bottom: 5px; right: 5px; width: 240px; transform: scaleX(-1); }
@media (min-width: 700px) {
  .hero__flower--tl { width: 260px; }
  .hero__flower--br { width: 320px; }
}
.hs1 { top: 18%; left: 20%; font-size: 20px; }
.hs2 { top: 28%; right: 16%; font-size: 28px; animation-delay: .6s; }
.hs3 { bottom: 30%; left: 14%; font-size: 18px; animation-delay: 1.2s; }
.hs4 { top: 55%; left: 8%; font-size: 14px; animation-delay: .3s; }
.hs5 { bottom: 12%; right: 10%; font-size: 16px; animation-delay: 1.8s; }

.section, .footer { position: relative; }
.scatter-sparkle {
  position: absolute;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.9), 0 0 2px var(--accent);
  pointer-events: none;
  z-index: 1;
  animation: twinkle 2.6s ease-in-out infinite;
}
.ss1 { top: 6%; left: 8%; font-size: 16px; }
.ss2 { top: 12%; right: 10%; font-size: 22px; animation-delay: .4s; }
.ss3 { top: 45%; left: 4%; font-size: 14px; animation-delay: 1s; }
.ss4 { top: 60%; right: 6%; font-size: 18px; animation-delay: 1.6s; }
.ss5 { bottom: 8%; left: 14%; font-size: 15px; animation-delay: .8s; }
.ss6 { bottom: 15%; right: 18%; font-size: 20px; animation-delay: 2s; }

.hero__content { max-width: 620px; }

.hero__eyebrow {
  font-family: var(--font-round);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent-deep);
  margin: 0 0 10px;
}
.hero__names {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 10vw, 84px);
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}
.hero__names .amp { color: var(--accent); font-style: italic; }

.hero__countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.cd-box {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 12px 10px;
  min-width: 62px;
  text-align: center;
}
.cd-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink); }
.cd-label { display: block; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-soft); font-family: var(--font-round); }

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

.section {
  max-width: 980px;
  margin: 0 auto;
  padding: 90px 24px;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section--tint { max-width: none; background: var(--lav-2); }
.section--tint > * { max-width: 980px; margin-left: auto; margin-right: auto; }

#detalhes.section { max-width: none; padding: 30px 24px; }

.section-block + .section-block { margin-top: 90px; }

.bento-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 290px;
  grid-template-areas: "map dress menu";
  gap: 16px;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}
.bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.bento-card--map { grid-area: map; }
.bento-card--dress { grid-area: dress; }
.bento-card--menu { grid-area: menu; }

.bento-map__frame { width: 100%; height: 100%; border: 0; display: block; }
.bento-overlay {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
}
.bento-overlay strong { display: block; font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.bento-overlay span { font-family: var(--font-round); font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }

.bento-card--dress img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}

.bento-card--menu { padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; }
.bento-card__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-round); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-deep);
}
.bento-card__big { margin: 0 0 14px; font-family: var(--font-display); font-weight: 600; font-size: 23px; color: var(--ink); }
.bento-menu__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bento-menu__list li { font-size: 16.5px; line-height: 1.35; color: var(--ink); }
.bento-menu__list li strong { color: var(--accent-deep); font-weight: 700; }
.bento-card__note { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }

.bento-grid--info {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  grid-template-areas: none;
  width: 100%;
  max-width: 1360px;
  margin: 16px auto 0;
  gap: 16px;
}
.bento-info-card { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.bento-info-card .details-row strong { font-size: 22px; }
.bento-info-card .details-row span { font-size: 16.5px; color: var(--ink); }
.bento-info-card--countdown { align-items: center; text-align: center; }
.bento-info-card--countdown .hero__countdown { margin: 0; gap: 8px; width: 100%; }
.bento-info-card--countdown .cd-box { min-width: 0; flex: 1; padding: 10px 2px; }
.bento-info-card--countdown .cd-num { font-size: 26px; }
.bento-info-card--countdown .cd-label { font-size: 11px; letter-spacing: 0; }
.bento-info-btns { display: flex; flex-direction: column; gap: 10px; }
.bento-info-btns .btn { justify-content: center; padding: 12px 20px; font-size: 15.5px; }


@media (max-width: 1100px) {
  .bento-grid--info { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: "map" "dress" "menu";
  }
  .bento-card--map { min-height: 240px; }
  .bento-card--dress { height: 320px; }
}

@media (max-width: 560px) {
  .bento-grid--info { grid-template-columns: 1fr; }
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5.5vw, 46px);
  color: var(--ink);
  text-align: center;
  margin: 0 0 8px;
}
.section__sub {
  text-align: center;
  font-size: 19px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 48px;
}
.bento-block .section__title { font-size: 32px; margin-bottom: 4px; }
.bento-block .section__sub { font-size: 15px; margin-bottom: 18px; }
.eyebrow {
  font-family: var(--font-round);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent-deep);
  margin: 0 0 14px;
}

.welcome {
  position: relative;
  align-items: center;
}
.welcome::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 90% 70% at 50% 25%, rgba(239, 225, 246, .85) 0%, rgba(221, 199, 236, .7) 65%, rgba(185, 143, 214, .75) 130%);
  z-index: -1;
}
.welcome__letter {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-top: 70px;
  padding: 92px 48px 44px;
  text-align: center;
}
.welcome__bouquet {
  position: absolute;
  top: -78px;
  left: 50%;
  width: 250px;
  margin-left: -125px;
  filter: drop-shadow(0 10px 16px rgba(80, 40, 110, .16));
  pointer-events: none;
}
.welcome__letter .eyebrow { margin-bottom: 22px; }
.msg { font-size: 20px; line-height: 1.6; margin: 0 0 16px; color: var(--ink-soft); }
.msg--accent { color: var(--accent); font-size: 26px; font-family: var(--font-display); font-style: italic; }
.msg--emph { font-size: 22px; color: var(--ink); font-weight: 600; }
.welcome__sign {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--frame);
}
.welcome__sign-names { font-family: var(--font-hand); font-weight: 700; font-size: 30px; color: var(--accent-deep); }

@media (max-width: 560px) {
  .welcome__letter { padding: 78px 26px 34px; }
  .welcome__bouquet { width: 210px; margin-left: -105px; top: -66px; }
  .msg { font-size: 18.5px; }
}

.details-row { display: flex; align-items: flex-start; gap: 16px; }
.details-ico {
  flex: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--lav-3);
  color: var(--accent-deep);
}
.details-ico svg { width: 24px; height: 24px; }
.details-row div { display: flex; flex-direction: column; gap: 3px; }
.details-row strong { font-family: var(--font-display); font-size: 20px; color: var(--ink); font-weight: 600; }
.details-row span, .details-row a { font-size: 15px; color: var(--ink-soft); }
.details-row a { text-decoration: underline; }

.details-btn { align-self: flex-start; font-size: 14px; padding: 11px 20px; }

.rsvp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 900px;
  margin: 0 auto;
}
.rsvp-qr {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}
.rsvp-qr img { width: 160px; margin: 0 auto 14px; }
.rsvp-qr p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.rsvp-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rsvp-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: var(--ink-soft); font-family: var(--font-round); }
.rsvp-form input[type=text], .rsvp-form input[type=number], .rsvp-form textarea {
  font-family: var(--font-serif);
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--lav-3);
  resize: vertical;
}
.rsvp-note { font-size: 14px; color: var(--ink-soft); text-align: center; margin: 0; }
.rsvp-note a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; }

.rsvp-step { display: flex; flex-direction: column; gap: 14px; }
.rsvp-form input#rsvpBusca { font-size: 17px; padding: 12px 14px; }
.rsvp-hint { margin: 0; font-size: 14px; color: var(--ink-soft); font-style: italic; }
.rsvp-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rsvp-result {
  width: 100%;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
  background: var(--lav-3);
  border: 1px solid var(--lav-2);
  border-radius: 10px;
  padding: 11px 14px;
  transition: background .15s ease, border-color .15s ease;
}
.rsvp-result:hover, .rsvp-result:focus-visible { background: var(--lav-2); border-color: var(--border-soft); }
.rsvp-result small { font-family: var(--font-round); font-size: 12.5px; color: var(--accent-deep); }

.rsvp-people__title { margin: 0; font-family: var(--font-round); font-weight: 700; font-size: 15px; color: var(--ink); }
.rsvp-people { display: flex; flex-direction: column; gap: 10px; }
.rsvp-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--lav-2);
  border-radius: 12px;
  background: var(--lav-3);
}
.rsvp-person__name { font-size: 17px; color: var(--ink); flex: 1 1 180px; }
.rsvp-person__opts { display: flex; gap: 6px; }
.rsvp-form .rsvp-pill {
  flex-direction: row;
  position: relative;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid var(--border-soft);
  background: #fff;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.rsvp-pill input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-pill:has(input:checked) { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.rsvp-pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rsvp-change {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-round);
  font-size: 13.5px;
  color: var(--accent-deep);
  text-decoration: underline;
}
.rsvp-error { font-size: 13px; color: #b3261e; text-align: center; margin: 4px 0 0; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rsvp-thanks { position: relative; grid-column: 1 / -1; text-align: center; font-size: 19px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.rsvp-edit { margin-top: 22px; font-size: 14px; padding: 10px 22px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

@media (min-width: 780px) {
  .rsvp-layout { grid-template-columns: 320px 1fr; align-items: start; }
}

.accordion__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

.pix-card, .contact-card {
  position: relative;
  max-width: 560px;
  margin: 30px auto 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
}

.paper-fold::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 34px 34px 0;
  border-color: transparent var(--lav-1) transparent transparent;
  filter: drop-shadow(-2px 3px 3px rgba(60, 30, 80, .3));
  pointer-events: none;
}
.pix-card__title, .contact-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 10px;
}
.pix-card__text, .contact-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.pix-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.pix-qr img, .pix-qr canvas { border-radius: 10px; box-shadow: var(--shadow); }
.pix-copy-msg { font-size: 13px; color: var(--accent-deep); font-weight: 600; margin: 12px 0 0; }

.mural-form {
  max-width: 560px;
  margin: 0 auto 48px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mural-form input[type=text], .mural-form textarea {
  font-family: var(--font-serif);
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--lav-3);
  resize: vertical;
}

.mural-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.mural-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 0;
}
.mural-note {
  --note-rotate: -3deg;
  width: 220px;
  min-height: 190px;
  padding: 24px 20px 20px;
  background: var(--note-bg, #fff4c2);
  box-shadow: 0 10px 22px rgba(60,30,80,.18);
  transform: rotate(var(--note-rotate));
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.mural-note:hover { transform: rotate(0deg) scale(1.03); z-index: 2; }
.mural-note::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  width: 46px; height: 18px;
  margin-left: -23px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.8);
  transform: rotate(-3deg);
}
.mural-note__msg {
  font-family: var(--font-hand);
  font-size: 21px;
  line-height: 1.35;
  color: #3a2f22;
  flex: 1;
  overflow-wrap: break-word;
}
.mural-note__name {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 18px;
  color: #3a2f22;
  text-align: right;
  margin-top: 10px;
}
.mural-note:nth-child(6n+1) { --note-bg: #fff4c2; --note-rotate: -3deg; }
.mural-note:nth-child(6n+2) { --note-bg: #d9f2d3; --note-rotate: 2deg; }
.mural-note:nth-child(6n+3) { --note-bg: #ffd9e6; --note-rotate: -2deg; }
.mural-note:nth-child(6n+4) { --note-bg: #e0d4fb; --note-rotate: 3deg; }
.mural-note:nth-child(6n+5) { --note-bg: #ffe1c2; --note-rotate: -1deg; }
.mural-note:nth-child(6n+6) { --note-bg: #cdeef6; --note-rotate: 2deg; }

.footer {
  text-align: center;
  padding: 60px 20px 50px;
  background: var(--lav-1);
  color: #fff;
}
.footer .wax { margin: 0 auto 6px; }
.footer__names { font-family: var(--font-display); font-size: 24px; margin: 6px 0 4px; }
.footer__date { font-family: var(--font-serif); letter-spacing: 3px; opacity: .85; margin: 0; }

@media (max-width: 480px) {
  .section { padding: 70px 18px; }
}

/* ---------- Papelaria: o resto do site com a mesma cara do envelope ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../assets/bg-texture.jpg") center / cover no-repeat;
  opacity: .45;
  pointer-events: none;
}

/* Papel creme com moldura fina por dentro */
.paper,
.bento-card--menu,
.bento-info-card,
.rsvp-qr,
.rsvp-form,
.rsvp-thanks,
.pix-card,
.contact-card,
.mural-form {
  background: var(--paper-grad);
  border-radius: var(--radius);
  box-shadow: var(--paper-shadow);
  outline: 1px solid var(--frame);
  outline-offset: -11px;
}

/* Fotos e mapa com margem de papel, como uma foto impressa */
.bento-card { border-radius: var(--radius); }
.bento-card--map,
.bento-card--dress {
  padding: 9px;
  background: var(--paper-grad);
  box-shadow: var(--paper-shadow);
}
.bento-card--map .bento-map__frame,
.bento-card--dress img { border-radius: 5px; }
.bento-card--dress img { height: 100%; background: #fff; }
.bento-overlay {
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: var(--paper-grad);
  border-radius: 7px;
  box-shadow: 0 8px 22px rgba(60, 30, 80, .16);
}

/* Herói */
.hero__bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(239, 225, 246, .9) 0%, rgba(221, 199, 236, .78) 55%, rgba(185, 143, 214, .82) 100%),
    url("../assets/bg-texture.jpg") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: calc(var(--nav-h) + 14px) 14px 14px;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .18), inset 0 0 0 6px rgba(255, 255, 255, .5);
  border-radius: 6px;
  pointer-events: none;
}
.hero__date {
  margin: 18px 0 0;
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--accent-deep);
}
.rule-star {
  display: block;
  margin: 0 auto 14px;
  width: 200px;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1;
  color: var(--accent);
  background:
    linear-gradient(90deg, transparent 0, var(--border-soft) 0) left center / calc(50% - 18px) 1px no-repeat,
    linear-gradient(90deg, var(--border-soft) 0, transparent 0) right center / calc(50% - 18px) 1px no-repeat;
}
.hero .reveal-in:nth-child(4) { transition-delay: .36s; }
.hero__actions { margin-top: 34px; }

/* Títulos com o ✦ e as linhas do cartão */
.section__title::after {
  content: "✦";
  display: block;
  width: 200px;
  margin: 10px auto 0;
  font-size: 14px;
  line-height: 1;
  color: var(--accent);
  background:
    linear-gradient(var(--border-soft), var(--border-soft)) left center / calc(50% - 18px) 1px no-repeat,
    linear-gradient(var(--border-soft), var(--border-soft)) right center / calc(50% - 18px) 1px no-repeat;
}
.section__sub { margin-top: 14px; }
.bento-block .section__sub { margin-top: 10px; }

/* Fundo levemente transparente para a textura de aquarela aparecer */
.section--tint { background: rgba(221, 199, 236, .62); }

/* Contagem regressiva em selos postais */
.cd-box {
  --r: 3px;
  border: 0;
  border-radius: 0;
  padding: 12px 6px 10px;
  background:
    radial-gradient(var(--r), #0000 97%, var(--paper)) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(var(--paper) 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  outline: 1px solid var(--frame);
  outline-offset: -7px;
  filter: drop-shadow(0 2px 3px rgba(60, 30, 80, .16));
}
.cd-num { color: var(--accent-deep); font-weight: 600; }
.bento-info-card--countdown .cd-box { padding: 12px 2px 10px; }

/* Campos como linhas de escrever no papel */
.rsvp-form input[type=text],
.rsvp-form input[type=number],
.mural-form input[type=text] {
  padding: 10px 2px 8px;
  border: 0;
  border-bottom: 1.5px solid var(--border-soft);
  border-radius: 0;
  background: transparent;
  font-size: 18px;
  color: var(--ink);
}
.rsvp-form textarea,
.mural-form textarea {
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  font-size: 18px;
  line-height: 32px;
  color: var(--ink);
  background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(173, 139, 201, .45) 31px 32px) local;
  resize: vertical;
}
.rsvp-form input#rsvpBusca { padding: 10px 2px 8px; font-size: 19px; }
.rsvp-form input:focus,
.rsvp-form textarea:focus,
.mural-form input:focus,
.mural-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-deep);
  box-shadow: 0 1.5px 0 var(--accent-deep);
}
.rsvp-form textarea:focus,
.mural-form textarea:focus { box-shadow: none; background-color: rgba(239, 225, 246, .35); }
.rsvp-form ::placeholder,
.mural-form ::placeholder { color: #a48fb5; font-style: italic; }

.rsvp-form,
.mural-form { padding: 34px 32px 30px; }
.rsvp-qr { padding: 32px 28px; }
.rsvp-qr img { padding: 8px; background: #fff; border-radius: 4px; box-shadow: 0 2px 6px rgba(60, 30, 80, .1); }
.rsvp-result { background: rgba(255, 255, 255, .7); }
.rsvp-person { background: rgba(255, 255, 255, .6); }

.pix-card, .contact-card { padding: 38px 34px; }

/* Selo de cera reutilizável */
.wax {
  position: relative;
  display: inline-block;
  flex: none;
  container-type: inline-size;
  filter: drop-shadow(0 4px 6px rgba(60, 30, 80, .3));
}
.wax img { width: 100%; height: auto; }
.wax span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 23cqw;
  color: #6f4a96;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .45), -1px -1px 1px rgba(60, 30, 90, .45);
}
.wax--sm { width: 54px; }
.wax--md { width: 72px; }

/* Rodapé */
.footer {
  background:
    linear-gradient(rgba(108, 62, 148, .9), rgba(108, 62, 148, .9)),
    url("../assets/bg-texture.jpg") center / cover;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  pointer-events: none;
}
.footer__names { margin-top: 10px; }

@media (max-width: 560px) {
  .rsvp-form,
  .mural-form { padding: 30px 24px 26px; }
  .pix-card, .contact-card { padding: 34px 24px; }
  .hero::after { inset: calc(var(--nav-h) + 10px) 10px 10px; }
  .hero__date { font-size: 12.5px; letter-spacing: .24em; }
}

.section--tint > .section__title,
.section--tint > .section__sub { margin-left: auto; margin-right: auto; }

.bento-grid:not(.bento-grid--info) { grid-template-rows: minmax(310px, auto); }
.bento-card--dress img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); }
@media (max-width: 860px) {
  .bento-grid:not(.bento-grid--info) { grid-template-rows: none; }
  .bento-card--map { min-height: 280px; }
}
.bento-card--dress img { object-fit: contain; object-position: center 20%; }
.bento-overlay--link { display: block; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.bento-overlay--link:hover,
.bento-overlay--link:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(60, 30, 80, .22); }
.bento-overlay--link span { display: block; }
.bento-overlay__cta {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-round);
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-deep);
}
.bento-info-btns .btn { align-self: stretch; }

.rsvp-layout { width: 100%; max-width: 680px; }
.rsvp-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.rsvp-qr__code { padding: 8px; background: #fff; border-radius: 4px; box-shadow: 0 2px 6px rgba(60, 30, 80, .1); line-height: 0; }
.rsvp-qr__code img, .rsvp-qr__code canvas { display: block; width: 150px; height: 150px; }
.rsvp-qr p { max-width: 190px; line-height: 1.45; }
.pix-card, .contact-card { width: 100%; max-width: 680px; }
.mural-form { width: 100%; }

@media (min-width: 780px) {
  .rsvp-layout { grid-template-columns: 230px 1fr; align-items: stretch; }
  .rsvp-form { justify-content: center; }
}

@media (max-width: 779px) {
  .rsvp-qr { display: none; }
}

@media (max-width: 860px) {
  .bento-block { display: flex; flex-direction: column; }
  .bento-block > .section__title { order: -3; }
  .bento-block > .section__sub { order: -2; }
  .bento-block > .bento-grid--info { order: -1; margin: 0 0 16px; }
}
