.wedding-invitation {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  outline: none;
  overflow: clip;
  background: var(--paper);
  box-shadow: var(--shadow);
  container-type: inline-size;
}

.invitation-cover-stage {
  width: 100%;
  background: #183b34;
}

.invitation-cover {
  position: relative;
  width: 100%;
  margin: 0 auto;
  isolation: isolate;
  container-type: inline-size;
  background: #183b34;
}

.invitation-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 887 / 1774;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.invitation-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.hero-actions-slot {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.invitation-scroll-arrow {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 0.7rem;
  width: 0.72rem;
  height: 0.72rem;
  pointer-events: none;
  opacity: 0.72;
  border-right: 1.5px solid rgba(181, 138, 69, 0.92);
  border-bottom: 1.5px solid rgba(181, 138, 69, 0.92);
  filter: drop-shadow(0 1px 1px rgba(255, 253, 248, 0.9));
  transform: translateX(-50%) rotate(45deg);
  animation: invitationArrowHint 2.2s ease-in-out infinite;
}

@keyframes invitationArrowHint {
  0%, 100% {
    opacity: 0.52;
    transform: translate(-50%, -2px) rotate(45deg);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, 2px) rotate(45deg);
  }
}

@media (orientation: portrait) {
  @container (min-width: 340px) {
    .invitation-hero {
      height: min(200cqw, calc(var(--invitation-viewport-height, 100dvh) - 3.75rem));
      aspect-ratio: auto;
    }

    .invitation-art {
      object-fit: cover;
      object-position: center 75%;
    }

    .wedding-actions {
      bottom: 3cqw;
    }

    .invitation-action {
      gap: 0.28rem;
      min-height: 5.25rem;
    }

    .wax-seal-icon {
      width: 3.25rem;
    }

    .invitation-action > span:last-child {
      font-size: clamp(0.64rem, 2.4cqw, 0.72rem);
      letter-spacing: 0;
    }
  }
}

.scroll-cue-container {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.4rem 1rem 0.45rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.88), transparent 72%),
    var(--paper);
  border-top: 1px solid rgba(177, 138, 69, 0.24);
  border-bottom: 1px solid rgba(177, 138, 69, 0.18);
}

.scroll-cue-container::before,
.scroll-cue-container::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(14cqw, 3.8rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(177, 138, 69, 0.5));
}

.scroll-cue-container::before {
  right: calc(50% + 7.2rem);
}

.scroll-cue-container::after {
  left: calc(50% + 7.2rem);
  transform: scaleX(-1);
}

.scroll-cue {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  transition: transform 220ms ease;
  user-select: none;
}

.scroll-cue:active {
  transform: scale(0.97);
}

.scroll-cue-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.52rem 1.35rem 0.52rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(177, 138, 69, 0.38);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 235, 0.9));
  box-shadow:
    0 4px 14px rgba(23, 62, 54, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: border-color 240ms ease, box-shadow 240ms ease, background 240ms ease, transform 240ms ease;
}

.scroll-cue:hover .scroll-cue-pill {
  border-color: var(--gold);
  box-shadow: 0 5px 18px rgba(177, 138, 69, 0.22);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

.scroll-cue-ornament-leaf {
  color: var(--gold);
  font-size: 0.98rem;
  line-height: 1;
  opacity: 0.9;
}

.scroll-cue-copy {
  color: var(--deep-green);
  font-family: var(--sans);
  font-size: clamp(0.72rem, 3cqw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue-chevrons {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold);
  animation: cueFloat 1.8s ease-in-out infinite;
}

.scroll-cue-svg {
  width: 0.88rem;
  height: 0.88rem;
}

@container (max-width: 280px) {
  .scroll-cue-pill {
    gap: 0.38rem;
    padding: 0.48rem 0.72rem 0.48rem 0.68rem;
  }

  .scroll-cue-copy {
    white-space: nowrap;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .scroll-cue-ornament-leaf {
    font-size: 0.78rem;
  }

  .scroll-cue-chevrons {
    width: 1rem;
    height: 1rem;
  }
}

@keyframes cueFloat {
  0%, 100% {
    transform: translateY(-2px);
    opacity: 0.75;
  }
  50% {
    transform: translateY(2px);
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(177, 138, 69, 0.4));
  }
}

.invitation-flow,
.paper-section {
  position: relative;
}

.invitation-flow {
  position: relative;
  padding: 1.6rem 0 2.4rem;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 15% 12%, rgba(139, 167, 157, 0.22), transparent 45%),
    radial-gradient(ellipse at 85% 32%, rgba(181, 140, 73, 0.18), transparent 42%),
    radial-gradient(ellipse at 10% 62%, rgba(139, 167, 157, 0.2), transparent 45%),
    radial-gradient(ellipse at 90% 88%, rgba(20, 61, 52, 0.15), transparent 42%),
    linear-gradient(180deg, #fdfbf7 0%, #f7f1e6 50%, #f0e6d6 100%);
}

.paper-section {
  z-index: 0;
  text-align: center;
}

.paper-section > * {
  position: relative;
  z-index: 1;
}

.invitation-page {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0.95rem;
  padding: clamp(2.4rem, 8cqw, 3.4rem) clamp(1.4rem, 6cqw, 2.2rem);
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(181, 140, 73, 0.55);
  background: rgba(255, 253, 248, 0.92);
  box-shadow:
    0 14px 38px rgba(18, 48, 40, 0.085),
    0 2px 6px rgba(18, 48, 40, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  contain: layout style paint;
  overflow: hidden;
  isolation: isolate;
}

.invitation-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../../img/convite_otimizado_web.webp") center / cover no-repeat;
  opacity: 0.48;
  pointer-events: none;
  border-radius: inherit;
}

.invitation-page::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(181, 140, 73, 0.32);
  border-radius: 9px;
  box-shadow: inset 0 0 10px rgba(181, 140, 73, 0.05);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: clamp(0.7rem, 2.8cqw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.paper-section h2 {
  max-width: 20rem;
  margin: 0 auto;
  color: var(--deep-green);
  font-size: clamp(1.65rem, 7.2cqw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

.section-subtext {
  max-width: 18rem;
  margin: 0.85rem auto 1.5rem;
  color: #556358;
  font-size: clamp(0.95rem, 4cqw, 1.08rem);
  font-style: italic;
  line-height: 1.45;
}

.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: min(100%, 13rem);
  margin: 0 auto 1.3rem;
  color: var(--gold);
}

.section-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.section-ornament span:last-child {
  transform: scaleX(-1);
}

.section-ornament b {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.section-ornament.compact {
  width: 7.5rem;
  margin-bottom: 0.85rem;
}

.wedding-actions {
  position: absolute;
  left: 2%;
  bottom: 3cqw;
  width: 96%;
  padding: 0;
  pointer-events: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.action-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.08rem, 0.7cqw, 0.26rem);
  width: 100%;
}

.invitation-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.3rem, 1.4cqw, 0.44rem);
  min-width: 0;
  min-height: clamp(6.45rem, 27cqw, 7.25rem);
  padding: 0.35rem 0.08rem 0.3rem;
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--deep-green);
  font-size: clamp(0.7rem, 2.8cqw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
}

.invitation-action > span:last-child {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 2.15em;
  color: #0d392f;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(0.8rem, 3.35cqw, 0.98rem);
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: 0.035em;
  line-height: 0.98;
  text-rendering: optimizeLegibility;
  text-wrap: balance;
  -webkit-text-stroke: 0.18px rgba(7, 43, 35, 0.9);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 2px rgba(255, 253, 248, 0.98),
    0 0 5px rgba(255, 253, 248, 0.82);
}

.wax-seal-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(3.15rem, 14.7cqw, 3.9rem);
  aspect-ratio: 1;
  flex: 0 0 auto;
  overflow: hidden;
  color: #e3c477;
  border-radius: 48% 52% 46% 54% / 52% 47% 53% 48%;
  background:
    radial-gradient(circle at 36% 27%, rgba(81, 143, 122, 0.92), transparent 29%),
    radial-gradient(circle at 54% 58%, #194b40 0 43%, #10362e 70%, #08251f 100%);
  box-shadow:
    inset 2px 3px 6px rgba(255, 255, 255, 0.17),
    inset -5px -6px 9px rgba(2, 24, 19, 0.5),
    0 7px 14px rgba(20, 48, 41, 0.26),
    0 0 0 1px rgba(225, 194, 118, 0.32);
  filter: drop-shadow(0 2px 1px rgba(213, 179, 93, 0.24));
  transition: transform 220ms ease, filter 220ms ease;
}


.wax-seal-icon::before,
.wax-seal-icon::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.wax-seal-icon::before {
  inset: 9%;
  border: 1px solid rgba(232, 204, 133, 0.8);
  box-shadow: 0 0 0 2px rgba(5, 36, 30, 0.48), inset 0 0 9px rgba(3, 30, 25, 0.3);
}

.wax-seal-icon::after {
  inset: 17%;
  border: 1px solid rgba(224, 194, 119, 0.22);
}

.wax-seal-icon .icon {
  position: relative;
  z-index: 1;
  width: 50%;
  height: 50%;
  color: currentColor;
  stroke-width: 1.28;
}

.date-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.8rem, 9cqw, 3.8rem);
  background: rgba(255, 253, 248, 0.9);
}

.date-section::before {
  background-image: url("../../img/NOIVOS.png");
  background-position: center 34%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.36;
}

.date-intro {
  position: relative;
  z-index: 1;
}

.date-intro .section-ornament {
  margin-bottom: 0.9rem;
}

.date-section h2 {
  max-width: 18.5rem;
  font-size: clamp(1.7rem, 7.2cqw, 2.15rem);
}

.date-card {
  position: relative;
  z-index: 1;
  width: min(100%, 20rem);
  margin: 1.35rem auto 0;
  padding: 1rem 1.15rem 1.05rem;
  overflow: hidden;
  border: 1px solid rgba(181, 140, 73, 0.46);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% -12%, rgba(223, 199, 141, 0.22), transparent 47%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 243, 234, 0.78));
  box-shadow:
    0 10px 28px rgba(18, 48, 40, 0.08),
    inset 0 0 0 4px rgba(255, 255, 255, 0.38);
}

.date-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border: 1px solid rgba(181, 140, 73, 0.18);
  border-radius: 11px;
}

.date-card-kicker {
  margin: 0 0 0.65rem;
  color: var(--gold-dark);
  font-size: clamp(0.68rem, 2.8cqw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.editorial-date {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-content: center;
  column-gap: clamp(0.7rem, 3cqw, 1rem);
  row-gap: 0;
  width: auto;
  margin: 0 auto;
  padding: 0.35rem 0 0.45rem;
  color: var(--deep-green);
}

.date-day {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  font-size: clamp(4.6rem, 20cqw, 6.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.74;
  color: var(--deep-green);
}

.date-month {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding: 0 0 0.3rem clamp(0.7rem, 2.7cqw, 0.9rem);
  border-left: 1px solid rgba(181, 140, 73, 0.58);
  font-size: clamp(0.78rem, 3.4cqw, 0.96rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
}

.date-year {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  padding: 0.3rem 0 0 clamp(0.7rem, 2.7cqw, 0.9rem);
  border-left: 1px solid rgba(181, 140, 73, 0.58);
  color: var(--gold-dark);
  font-size: clamp(1rem, 4.5cqw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
}

.date-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 3cqw, 0.9rem);
  margin-top: 0.55rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(181, 140, 73, 0.28);
}

.date-weekday {
  color: var(--deep-green);
  font-size: clamp(0.72rem, 3cqw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.date-meta-divider {
  width: 1px;
  height: 1.7rem;
  background: linear-gradient(transparent, var(--gold), transparent);
}

.ceremony-time {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  color: var(--gold);
}

.ceremony-time small {
  color: #6b756e;
  font-size: 0.72rem;
  font-style: italic;
}

.ceremony-time strong {
  font-size: clamp(1.05rem, 4.5cqw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--deep-green);
}

.wedding-countdown {
  margin-top: 1.45rem;
  width: 100%;
}

.countdown-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: min(100%, 9.5rem);
  margin: 0 auto 0.65rem;
  color: var(--gold);
}

.countdown-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.countdown-ornament span:last-child {
  transform: scaleX(-1);
}

.countdown-ornament b {
  font-size: 0.65rem;
  line-height: 1;
  opacity: 0.85;
}

.countdown-label {
  margin: 0 0 0.72rem;
  color: var(--deep-green);
  font-family: var(--serif);
  font-size: clamp(0.68rem, 2.8cqw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 20.5rem;
  margin: 0 auto;
  padding: clamp(0.58rem, 2.4cqw, 0.76rem) clamp(0.3rem, 1.5cqw, 0.5rem);
  border: 1px solid rgba(181, 140, 73, 0.38);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(248, 243, 234, 0.72));
  box-shadow:
    0 7px 20px rgba(18, 48, 40, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.countdown-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.25rem 0.12rem 0.2rem;
}

.countdown-item:first-child {
  flex-grow: 1.16;
}

.countdown-number {
  color: var(--deep-green);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 6.5cqw, 1.95rem);
  font-weight: 600;
  line-height: 1;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  margin-top: 0.3rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(0.52rem, 2.2cqw, 0.64rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown-sep {
  width: 1px;
  height: 2.4rem;
  flex: 0 0 1px;
  overflow: hidden;
  color: transparent;
  background: linear-gradient(transparent, rgba(181, 140, 73, 0.55), transparent);
  font-size: 0;
  opacity: 0.72;
  margin: 0 0.12rem;
  user-select: none;
}

.ceremony-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.8rem, 9cqw, 3.8rem);
  background: rgba(255, 253, 248, 0.9);
}

.ceremony-section::before {
  background-image: url("../../img/fundo%20igreja.png");
  background-position: center 25%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.4;
}

.ceremony-intro {
  position: relative;
  z-index: 1;
}

.ceremony-section h2 {
  max-width: 19rem;
  font-size: clamp(1.85rem, 7.8cqw, 2.35rem);
}

.ceremony-message {
  max-width: 18.5rem;
  margin: 0.9rem auto 0;
  color: #4b5d52;
  font-size: clamp(0.98rem, 4.1cqw, 1.08rem);
  font-style: italic;
  line-height: 1.5;
  text-wrap: balance;
}

.ceremony-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 20rem);
  margin: 3.5rem auto 0;
  padding: 2.7rem 1rem 1rem;
  border: 1px solid rgba(181, 140, 73, 0.52);
  border-radius: 10rem 10rem 18px 18px;
  background:
    radial-gradient(circle at 50% 4%, rgba(223, 199, 141, 0.22), transparent 35%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.91), rgba(247, 241, 231, 0.8));
  box-shadow:
    0 12px 30px rgba(18, 48, 40, 0.09),
    inset 0 0 0 4px rgba(255, 255, 255, 0.38);
}

.ceremony-frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(181, 140, 73, 0.2);
  border-radius: 9.5rem 9.5rem 12px 12px;
}

.ceremony-icon,
.gift-mark,
.heart-mark {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto 1.2rem;
  color: #f0d58e;
  border-radius: 48% 52% 46% 54% / 52% 47% 53% 48%;
  background:
    radial-gradient(circle at 36% 28%, rgba(85, 142, 122, 0.85), transparent 32%),
    radial-gradient(circle, #164238 0 48%, #0d2f28 75%, #08211b 100%);
  box-shadow:
    inset 2px 3px 5px rgba(255, 255, 255, 0.18),
    inset -4px -5px 8px rgba(2, 24, 19, 0.5),
    0 8px 18px rgba(20, 50, 42, 0.18);
  border: 1px solid rgba(226, 196, 120, 0.7);
}

.ceremony-icon .icon,
.gift-mark .icon,
.heart-mark .icon {
  width: 1.9rem;
  height: 1.9rem;
  stroke-width: 1;
}

.ceremony-frame .ceremony-icon {
  position: absolute;
  z-index: 2;
  top: -2.25rem;
  left: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0;
  transform: translateX(-50%);
  box-shadow:
    inset 2px 3px 5px rgba(255, 255, 255, 0.18),
    inset -4px -5px 8px rgba(2, 24, 19, 0.5),
    0 10px 22px rgba(20, 50, 42, 0.24),
    0 0 0 5px rgba(255, 253, 248, 0.72),
    0 0 0 6px rgba(181, 140, 73, 0.3);
}

.ceremony-frame-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 0.9rem;
  color: var(--gold-dark);
  font-size: clamp(0.68rem, 2.8cqw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ceremony-schedule {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.65rem, 3cqw, 0.9rem);
  padding: 0.85rem 0.35rem;
  border-block: 1px solid rgba(181, 140, 73, 0.28);
}

.ceremony-schedule > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.ceremony-schedule small {
  margin-bottom: 0.35rem;
  color: var(--gold-dark);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ceremony-schedule strong {
  color: var(--deep-green);
  font-size: clamp(0.9rem, 3.8cqw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.05;
}

.ceremony-schedule em {
  margin-top: 0.25rem;
  color: #68736c;
  font-size: 0.7rem;
  font-style: italic;
  line-height: 1;
  text-transform: lowercase;
}

.ceremony-schedule > i {
  width: 1px;
  height: 2.8rem;
  background: linear-gradient(transparent, rgba(181, 140, 73, 0.62), transparent);
}

.ceremony-section address {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.26rem;
  max-width: 18rem;
  margin: 0.9rem auto 0.75rem;
  padding: 0.35rem 0.5rem 0.65rem;
  color: #3b4d42;
  font-size: clamp(0.94rem, 3.9cqw, 1.05rem);
  font-style: normal;
  line-height: 1.4;
}

.ceremony-address-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
  color: var(--gold-dark);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ceremony-address-label .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.ceremony-section address strong {
  color: var(--deep-green);
  font-weight: 600;
}

.ceremony-frame .ornate-button {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0;
}

.ceremony-map-note {
  position: relative;
  z-index: 1;
  margin: 0.65rem 0 0;
  color: #69746d;
  font-size: clamp(0.72rem, 2.9cqw, 0.8rem);
  font-style: italic;
  line-height: 1.25;
}

.confirmation-section,
.gift-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.confirmation-section {
  padding-block: clamp(2.8rem, 9cqw, 3.8rem);
}

.confirmation-section::before {
  background-position: center 48%;
  opacity: 0.43;
}

.confirmation-intro {
  position: relative;
  z-index: 1;
}

.confirmation-section .heart-mark {
  margin-bottom: 1rem;
}

.confirmation-section h2 {
  max-width: 19rem;
}

.confirmation-message {
  max-width: 18.5rem;
  margin: 0.9rem auto 0;
  color: #4b5d52;
  font-size: clamp(0.98rem, 4.1cqw, 1.08rem);
  line-height: 1.5;
  text-wrap: balance;
}

.confirmation-action {
  position: relative;
  z-index: 1;
  width: min(100%, 20rem);
  margin: 1.5rem auto 0;
  padding: 1rem;
  border: 1px solid rgba(181, 140, 73, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(223, 199, 141, 0.16), transparent 52%),
    rgba(255, 253, 248, 0.74);
  box-shadow:
    0 8px 22px rgba(18, 48, 40, 0.07),
    inset 0 0 0 4px rgba(255, 255, 255, 0.38);
}

.confirmation-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  color: var(--gold-dark);
  font-size: clamp(0.72rem, 3cqw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirmation-kicker span {
  color: var(--gold);
  font-size: 0.62rem;
}

.confirmation-action .ornate-button {
  margin: 0.5rem auto 0;
}

.confirmation-action .ornate-button {
  width: 100%;
}

.confirmation-channel {
  margin: 0.75rem 0 0;
  color: #637067;
  font-size: clamp(0.76rem, 3.1cqw, 0.86rem);
  font-style: italic;
  line-height: 1.3;
}

.gift-section {
  padding-block: clamp(2.8rem, 9cqw, 3.8rem);
}

.gift-section::before {
  background-position: center 62%;
  opacity: 0.4;
}

.gift-intro {
  position: relative;
  z-index: 1;
}

.gift-section .gift-mark {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
}

.gift-section .gift-mark .icon {
  width: 1.7rem;
  height: 1.7rem;
}

.gift-section h2 {
  max-width: 18.5rem;
}

.gift-message {
  max-width: 19rem;
  margin: 0.9rem auto 0;
  color: #4b5d52;
  font-size: clamp(0.98rem, 4.1cqw, 1.08rem);
  line-height: 1.5;
  text-wrap: balance;
}

.gift-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 18.5rem);
  margin: 1.5rem auto 0;
  padding: 1rem 1rem 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(181, 140, 73, 0.5);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% -18%, rgba(223, 199, 141, 0.25), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 232, 0.94));
  box-shadow:
    0 14px 32px rgba(18, 48, 40, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.92);
}

.gift-card::before,
.gift-card::after {
  content: "";
  position: absolute;
  top: 1.4rem;
  width: 2.8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 140, 73, 0.55));
}

.gift-card::before {
  right: calc(50% + 5.4rem);
}

.gift-card::after {
  left: calc(50% + 5.4rem);
  transform: scaleX(-1);
}

.gift-card-kicker {
  margin: 0 0 0.8rem;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.gift-pix-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.gift-pix-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(181, 140, 73, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.gift-pix-meta span,
.gift-pix-key-label {
  color: #68746c;
  font-size: clamp(0.7rem, 2.9cqw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gift-pix-meta strong {
  color: var(--deep-green);
  font-family: var(--serif);
  font-size: clamp(1rem, 4cqw, 1.12rem);
  font-weight: 600;
}

.gift-pix-key-block {
  width: 100%;
  padding: 0.85rem;
  text-align: left;
  border: 1px solid rgba(181, 140, 73, 0.38);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(18, 48, 40, 0.06);
}

.gift-pix-key {
  display: block;
  margin-top: 0.38rem;
  color: var(--deep-green);
  font-family: var(--sans);
  font-size: clamp(0.82rem, 3.45cqw, 0.96rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  user-select: all;
}

.gift-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  color: #f8ebc4;
  border: 1px solid rgba(226, 196, 120, 0.72);
  border-radius: 999px;
  background: linear-gradient(145deg, #1c5144, #0d3028);
  box-shadow:
    0 7px 16px rgba(18, 48, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  font-family: var(--sans);
  font-size: clamp(0.82rem, 3.4cqw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.gift-copy-button:active {
  transform: scale(0.98);
}

.gift-copy-button:focus-visible {
  outline: 3px solid rgba(181, 140, 73, 0.36);
  outline-offset: 3px;
}

.gift-copy-button.is-copied {
  background: linear-gradient(145deg, #2f735f, #17493c);
}

.gift-copy-button:disabled {
  cursor: wait;
  opacity: 0.82;
}

.gift-copy-symbol {
  position: relative;
  width: 0.82rem;
  height: 0.82rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.gift-copy-symbol::before {
  content: "";
  position: absolute;
  top: -0.28rem;
  left: -0.28rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: #17463a;
  transition: background 180ms ease;
}

.gift-copy-button.is-copied .gift-copy-symbol::before {
  background: #286653;
}

.gift-copy-status {
  min-height: 1.2em;
  margin: 0.65rem 0 0;
  color: #526259;
  font-size: clamp(0.74rem, 3cqw, 0.82rem);
  line-height: 1.35;
  text-wrap: balance;
}

.gift-reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  max-width: 18.5rem;
  margin: 1rem auto 0;
  color: #59675e;
  font-size: clamp(0.84rem, 3.5cqw, 0.94rem);
  font-style: italic;
  line-height: 1.35;
  text-wrap: balance;
}

.gift-reassurance span {
  color: var(--gold);
  font-size: 0.62rem;
  font-style: normal;
}

.invitation-footer {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0.95rem calc(4rem + env(safe-area-inset-bottom));
  padding: clamp(3.2rem, 11cqw, 4.5rem) clamp(1.4rem, 6cqw, 2.2rem) clamp(3rem, 10cqw, 4rem);
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(181, 140, 73, 0.55);
  background: rgba(255, 253, 248, 0.92);
  box-shadow:
    0 16px 42px rgba(18, 48, 40, 0.09),
    0 2px 6px rgba(18, 48, 40, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  contain: layout style paint;
  overflow: hidden;
  isolation: isolate;
}

.invitation-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../../img/convite_otimizado_web.webp") center / cover no-repeat;
  background-position: center 72%;
  opacity: 0.44;
  pointer-events: none;
  border-radius: inherit;
}

.invitation-footer::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(181, 140, 73, 0.32);
  border-radius: 9px;
  box-shadow: inset 0 0 10px rgba(181, 140, 73, 0.05);
}

.closing-seal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 5rem;
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  color: #f0d58e;
  border: 1px solid rgba(225, 194, 118, 0.75);
  border-radius: 48% 52% 46% 54% / 52% 47% 53% 48%;
  background:
    radial-gradient(circle at 36% 28%, rgba(85, 142, 122, 0.85), transparent 32%),
    radial-gradient(circle, #164238 0 48%, #0d2f28 75%, #08211b 100%);
  font-size: 1.68rem;
  line-height: 1;
  box-shadow:
    inset 0 0 0 5px #11362e,
    inset 0 0 0 6px rgba(225, 194, 118, 0.6),
    inset -5px -6px 9px rgba(2, 24, 19, 0.48),
    0 10px 24px rgba(18, 48, 40, 0.22);
}

.closing-seal span {
  font-family: var(--serif);
}

.closing-seal b {
  color: var(--gold-light);
  font-size: 0.58em;
  font-style: italic;
  font-weight: 400;
}

.footer-thank-you {
  position: relative;
  z-index: 1;
}

.footer-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--gold-dark);
  font-size: clamp(0.7rem, 2.8cqw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.invitation-footer h2 {
  max-width: 18.5rem;
  font-size: clamp(1.75rem, 7.4cqw, 2.25rem);
  line-height: 1.12;
}

.footer-message {
  max-width: 19.5rem;
  margin: 1rem auto 0;
  color: #48594f;
  font-size: clamp(0.98rem, 4cqw, 1.08rem);
  line-height: 1.55;
  text-wrap: balance;
}

.footer-couple {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--deep-green);
  font-family: var(--script);
  font-size: clamp(3.1rem, 13.5cqw, 4.35rem);
  line-height: 0.82;
}

.footer-couple b {
  margin-block: 0.2em;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.55em;
  font-style: italic;
  font-weight: 400;
}

.invitation-footer .section-ornament {
  position: relative;
  z-index: 1;
  width: min(100%, 9.5rem);
  margin-top: 1.7rem;
  margin-bottom: 1.7rem;
}

.footer-date {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 2rem auto 0;
  padding: 0.72rem 1.35rem 0.68rem;
  color: #5b685f;
  border: 1px solid rgba(181, 140, 73, 0.38);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow:
    0 5px 15px rgba(18, 48, 40, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  line-height: 1;
}

.footer-date span {
  font-size: clamp(0.68rem, 2.8cqw, 0.78rem);
  font-style: italic;
}

.footer-date strong {
  color: var(--deep-green);
  font-size: clamp(0.78rem, 3.2cqw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

@media (max-width: 350px) {
  .invitation-action {
    gap: 0.18rem;
    min-height: 5.35rem;
    padding-block: 0.18rem 0.08rem;
  }

  .invitation-action > span:last-child {
    font-size: 0.68rem;
    letter-spacing: 0;
    -webkit-text-stroke-width: 0.1px;
  }

  .invitation-page {
    margin-inline: 0.5rem;
    padding-inline: 1rem;
  }

  .invitation-footer {
    margin-inline: 0.5rem;
    padding-inline: 1rem;
  }

}

.qa-preview-narrow .invitation-action {
  gap: 0.18rem;
  min-height: 5.35rem;
  padding-block: 0.18rem 0.08rem;
}

.qa-preview-narrow .invitation-action > span:last-child {
  font-size: 0.68rem;
  letter-spacing: 0;
  -webkit-text-stroke-width: 0.1px;
}

.qa-preview-narrow .invitation-page {
  margin-inline: 0.5rem;
  padding-inline: 1rem;
}

.qa-preview-narrow .invitation-footer {
  margin-inline: 0.5rem;
  padding-inline: 1rem;
}
