/* ============================================================
   Vitória & Guilherme · site do casamento
   ============================================================ */
:root {
  --paper: #FBF8F2;
  --paper-2: #F4EEE3;
  --card: #FFFDF9;
  --ink: #2F2C27;
  --ink-soft: #5B554B;
  --muted: #8C8377;
  --line: #E5DCCB;
  --gold: #AE8B55;
  --gold-soft: #D8C39F;
  --sage: #74806A;
  --sage-deep: #424D3C;
  --danger: #A2523F;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, .7, .18, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  /* textura sutil de papel */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
section[id] { scroll-margin-top: calc(var(--nav-h) - 10px); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; }
.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; }
.section--tint { background: linear-gradient(180deg, rgba(244, 238, 227, 0) 0, var(--paper-2) 14%, var(--paper-2) 86%, rgba(244, 238, 227, 0) 100%); }

/* ---------- tipografia ---------- */
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; }
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}
.title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0 0 28px;
  color: var(--ink);
}
.title em { font-style: italic; color: var(--sage-deep); }
.section-head { max-width: 640px; margin: 0 auto 64px; }
.section-head p:not(.kicker) { color: var(--ink-soft); margin: 0; }

.ornament { display: flex; align-items: center; gap: 14px; color: var(--gold); margin: 0 0 34px; }
.ornament span { height: 1px; width: 64px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.ornament i { font-size: 18px; }

/* ---------- monograma ---------- */
.mono {
  display: inline-flex; align-items: center; gap: .14em;
  font-family: var(--serif); font-weight: 300; line-height: 1; color: var(--ink);
}
.mono i { display: block; width: 1px; height: 1.15em; background: currentColor; opacity: .55; transform: rotate(22deg); }
.mono span:last-child { transform: translateY(.12em); }
.mono span:first-child { transform: translateY(-.1em); }
.mono--sm { font-size: 26px; }
.mono--md { font-size: 34px; }
.mono--lg { font-size: 54px; }
.mono--xl { font-size: clamp(72px, 12vw, 120px); }

/* ---------- botões ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd); border-radius: 0;
  font-family: var(--sans); font-size: 11.5px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: color .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
  isolation: isolate;
}
.btn i { font-size: 18px; letter-spacing: 0; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--sage-deep);
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--ghost:hover { --fg: var(--paper); --bd: var(--sage-deep); }
.btn--solid { --bg: var(--sage-deep); --fg: #FBF8F2; --bd: var(--sage-deep); }
.btn--solid::before { background: var(--ink); }
.btn--solid:hover { --bd: var(--ink); }
.btn--block { width: 100%; }
.btn:active { transform: scale(.985); }
.btn[disabled] { pointer-events: none; opacity: .8; }
.btn__spin { display: none; width: 16px; height: 16px; border: 1px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-busy .btn__spin { display: block; }
.btn.is-busy .btn__txt { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.link {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: .12em; color: var(--ink-soft);
  text-decoration: underline; text-decoration-color: var(--gold-soft); text-underline-offset: 5px;
  transition: color .3s;
}
.link:hover { color: var(--ink); text-decoration-color: var(--gold); }

/* ---------- ramos botânicos ---------- */
.sprig { position: absolute; fill: none; stroke: var(--gold); stroke-width: .8; stroke-linecap: round; opacity: .7; pointer-events: none; }
.sprig path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-io); }
.sprig path + path { transition-delay: .6s; transition-duration: 2.4s; }
.sprig.is-drawn path, .is-ready .hero .sprig path { stroke-dashoffset: 0; }

/* ============================================================
   Abertura
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--paper);
  transition: clip-path 1.1s var(--ease-io), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.intro.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.intro__inner { text-align: center; }
.intro .mono span { opacity: 0; animation: introLetter 1s var(--ease) forwards; }
.intro .mono span:first-child { animation-delay: .15s; }
.intro .mono span:last-child { animation-delay: .45s; }
.intro .mono i { transform: rotate(22deg) scaleY(0); animation: introLine .9s var(--ease) .3s forwards; }
.intro__date {
  margin: 26px 0 0; font-family: var(--sans); font-size: 11px; letter-spacing: .5em; color: var(--gold);
  opacity: 0; animation: introFade 1s var(--ease) .8s forwards;
}
@keyframes introLetter { from { opacity: 0; filter: blur(6px); translate: 0 14px; } to { opacity: 1; filter: blur(0); translate: 0 0; } }
@keyframes introLine { to { transform: rotate(22deg) scaleY(1); } }
@keyframes introFade { to { opacity: 1; } }

/* ============================================================
   Navegação
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background-color .5s, box-shadow .5s, height .5s var(--ease), transform .6s var(--ease);
}
.nav.is-scrolled {
  --nav-h: 64px;
  background: rgba(251, 248, 242, .86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand { text-decoration: none; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__links a {
  position: relative; text-decoration: none;
  font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft);
  padding: 8px 0; transition: color .3s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 7px; position: relative; z-index: 2;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 26px; height: 1px; background: var(--ink); transition: transform .5s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: var(--paper);
    clip-path: circle(0 at calc(100% - 44px) 38px);
    transition: clip-path .8s var(--ease-io);
  }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 44px) 38px); }
  .nav__links a {
    font-family: var(--serif); font-size: 34px; font-weight: 300; letter-spacing: 0; text-transform: none; color: var(--ink);
    opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease);
  }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links a { opacity: 1; transform: none; }
  .nav.is-open .nav__links a:nth-child(1) { transition-delay: .2s; }
  .nav.is-open .nav__links a:nth-child(2) { transition-delay: .26s; }
  .nav.is-open .nav__links a:nth-child(3) { transition-delay: .32s; }
  .nav.is-open .nav__links a:nth-child(4) { transition-delay: .38s; }
  .nav.is-open .nav__links a:nth-child(5) { transition-delay: .44s; }
}

/* ============================================================
   Início
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(32px, 5vw, 80px);
  padding: calc(var(--nav-h) + 40px) clamp(24px, 6vw, 96px) 90px;
  overflow: hidden;
}
.hero__text { position: relative; z-index: 2; text-align: center; }
.hero__kicker { max-width: 360px; margin-inline: auto; line-height: 2; }
.hero__names { margin: 10px 0 34px; font-weight: 400; line-height: .9; }
.hero__name { display: block; font-size: clamp(72px, 9.2vw, 138px); color: var(--ink); padding: 0 .15em; }
.hero__name--1 { transform: translateX(-.45em); }
.hero__name--2 { transform: translateX(.3em); }
.hero__amp { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(34px, 3.6vw, 52px); color: var(--gold); margin: -.05em 0 -.12em; }
.hero__date {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }

.hero__photo { position: relative; z-index: 1; margin: 0; justify-self: center; width: min(470px, 100%); }
.arch {
  position: relative; overflow: hidden;
  aspect-ratio: 1100 / 1340;
  border-radius: 999px 999px 4px 4px;
  box-shadow: 0 40px 80px -40px rgba(47, 44, 39, .45);
}
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.8s var(--ease); will-change: transform; }
.hero__photo::before {
  content: ''; position: absolute; inset: -16px; z-index: -1;
  border: 1px solid var(--gold-soft); border-radius: 999px 999px 4px 4px;
  opacity: 0; transform: scale(.97); transition: opacity 1.4s var(--ease) 1s, transform 1.4s var(--ease) 1s;
}

.sprig--hero-l { width: 120px; height: 312px; left: clamp(-10px, 2vw, 40px); bottom: 40px; transform: rotate(-12deg); }
.sprig--hero-r { width: 92px; height: 240px; right: clamp(-10px, 2vw, 40px); top: 110px; transform: rotate(168deg); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); text-decoration: none;
  opacity: 0; transition: opacity 1s 2.2s;
}
.scroll-cue i { font-size: 20px; animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(8px); opacity: 1; } }

/* entrada do início (após a abertura) */
.hero__kicker, .hero__amp, .hero__date, .hero__ctas { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.hero__name { clip-path: inset(-30% 100% -30% -10%); transition: clip-path 2s var(--ease-io); }
.is-ready .hero__kicker { opacity: 1; transform: none; transition-delay: .1s; }
.is-ready .hero__name--1 { clip-path: inset(-30% -10% -30% -10%); transition-delay: .35s; }
.is-ready .hero__amp { opacity: 1; transform: none; transition-delay: 1.2s; }
.is-ready .hero__name--2 { clip-path: inset(-30% -10% -30% -10%); transition-delay: 1.35s; }
.is-ready .hero__date { opacity: 1; transform: none; transition-delay: 2s; }
.is-ready .hero__ctas { opacity: 1; transform: none; transition-delay: 2.2s; }
.is-ready .arch img { transform: scale(1.02); }
.is-ready .hero__photo::before { opacity: 1; transform: scale(1); }
.is-ready .scroll-cue { opacity: 1; }
.hero__photo { opacity: 0; transform: translateY(30px); transition: opacity 1.6s var(--ease) .2s, transform 1.6s var(--ease) .2s; }
.is-ready .hero__photo { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 28px); padding-bottom: 110px; gap: 48px; }
  .hero__photo { width: min(400px, 82vw); }
  .hero__name { font-size: clamp(64px, 18vw, 104px); }
  .sprig--hero-l { width: 80px; height: 208px; left: -18px; bottom: auto; top: 46%; }
  .sprig--hero-r { width: 64px; height: 166px; right: -8px; top: 86px; }
  .scroll-cue { display: none; }
}

/* ============================================================
   Revelação ao rolar
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   Nossa história
   ============================================================ */
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.story__photo { position: relative; margin: 0; }
.story__frame { position: relative; }
.story__frame::before {
  content: ''; position: absolute; inset: 0; transform: translate(18px, 18px);
  border: 1px solid var(--gold-soft); transition: transform 1.2s var(--ease);
}
.story__photo.is-visible .story__frame::before { transform: translate(22px, 22px); }
.story__frame img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 50%; box-shadow: 0 30px 60px -36px rgba(47, 44, 39, .5); }
.story__photo figcaption { position: absolute; left: -12px; bottom: -48px; font-size: 54px; color: var(--sage-deep); transform: rotate(-6deg); }
.story__text p { color: var(--ink-soft); margin: 0 0 20px; }
.story__text .lead { font-size: 22px; color: var(--ink); }
.dropcap::first-letter {
  float: left; font-family: var(--serif); font-weight: 300; font-size: 84px; line-height: .82;
  padding: 6px 12px 0 0; color: var(--gold);
}
.story__sign { margin-top: 38px; display: flex; flex-direction: column; }
.story__sign span:first-child { font-style: italic; color: var(--ink-soft); }
.story__sign .script { font-size: 48px; line-height: 1.2; color: var(--ink); }

@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__photo { width: min(440px, 88%); margin-inline: auto; }
  .story__photo figcaption { font-size: 40px; left: -4px; bottom: -50px; }
  .story__text { margin-top: 30px; }
  .story__text .lead { font-size: 20px; }
}

/* ============================================================
   O grande dia
   ============================================================ */
.day { overflow: hidden; }
.sprig--day-l { width: 110px; height: 286px; left: 4%; top: 18%; transform: rotate(-8deg); }
.sprig--day-r { width: 110px; height: 286px; right: 4%; bottom: 14%; transform: rotate(172deg); }
.bigdate { margin: 10px auto 64px; display: inline-flex; flex-direction: column; align-items: center; }
.bigdate__weekday { font-family: var(--sans); font-size: 12px; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; padding-left: .5em; }
.bigdate__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.bigdate__side {
  font-family: var(--sans); font-size: 13px; letter-spacing: .42em; text-transform: uppercase; color: var(--ink-soft);
  padding: 14px 26px; border-block: 1px solid var(--line);
}
.bigdate__side:first-child { text-align: right; }
.bigdate__day { font-family: var(--serif); font-weight: 300; font-size: clamp(110px, 16vw, 180px); line-height: .9; padding: 0 22px; color: var(--ink); }

.countdown { display: flex; justify-content: center; margin: 0 auto 46px; max-width: 640px; }
.countdown__cell { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 6px; position: relative; }
.countdown__cell + .countdown__cell::before { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.countdown__num { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6.4vw, 66px); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.countdown__num.tick { animation: tick .6s var(--ease); }
@keyframes tick { from { opacity: .2; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.countdown__lbl { font-family: var(--sans); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.day__note { font-style: italic; color: var(--ink-soft); margin: 0 0 30px; }
.day__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.day__actions .btn { min-height: 48px; padding: 0 22px; }

@media (max-width: 600px) {
  .bigdate__side { padding: 10px 12px; font-size: 11px; letter-spacing: .3em; }
  .bigdate__day { padding: 0 12px; }
  .sprig--day-l, .sprig--day-r { width: 70px; height: 182px; opacity: .45; }
}

/* ============================================================
   Formulários
   ============================================================ */
.card {
  position: relative; background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 30px 70px -50px rgba(47, 44, 39, .45);
}
.card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(216, 195, 159, .45); pointer-events: none; }

.field { position: relative; margin-bottom: 22px; }
.field input, .field textarea {
  width: 100%; display: block;
  padding: 24px 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: linear-gradient(var(--sage-deep), var(--sage-deep)) no-repeat left bottom / 0% 1px;
  outline: none; resize: vertical;
  font-family: var(--serif); font-size: 20px; color: var(--ink);
  transition: border-color .4s, background-size .6s var(--ease);
}
.field input:focus, .field textarea:focus { background-size: 100% 1px; }
.field textarea { min-height: 54px; line-height: 1.5; }
.field label {
  position: absolute; left: 0; top: 24px; pointer-events: none; white-space: nowrap;
  font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--muted);
  transform-origin: left top; transition: transform .45s var(--ease), color .3s, letter-spacing .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(.68); color: var(--gold); font-style: normal;
  font-family: var(--sans); letter-spacing: .26em; text-transform: uppercase;
}
.field__err { display: block; height: 0; overflow: hidden; font-family: var(--sans); font-size: 11px; letter-spacing: .06em; color: var(--danger); transition: height .3s; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .field__err { height: 20px; padding-top: 6px; }
.field__hint { display: block; padding-top: 6px; font-family: var(--sans); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.field__count { position: absolute; right: 0; bottom: -20px; font-family: var(--sans); font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.form__msg { min-height: 0; margin: 14px 0 0; font-family: var(--sans); font-size: 12px; color: var(--danger); text-align: center; }
.form__msg:empty { display: none; }

/* escolha sim / não */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0 0 22px; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; cursor: pointer;
  border: 1px solid var(--line); font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
  transition: all .4s var(--ease);
}
.choice__opt span i { font-size: 17px; }
.choice__opt input:checked + span { border-color: var(--sage-deep); background: var(--sage-deep); color: var(--paper); }
.choice__opt input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }

/* contador de pessoas */
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 26px; }
.stepper__lbl { font-style: italic; color: var(--ink-soft); line-height: 1.3; }
.stepper__ctrl { display: flex; align-items: center; border: 1px solid var(--line); }
.stepper__ctrl button { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; font-size: 22px; color: var(--ink-soft); transition: background .3s, color .3s; }
.stepper__ctrl button:hover { background: var(--paper-2); color: var(--ink); }
.stepper__ctrl output { min-width: 40px; text-align: center; font-size: 24px; font-variant-numeric: lining-nums; }
.if-going { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--ease), opacity .4s; }
.if-going-inner { min-height: 0; overflow: hidden; }
.is-not-going .if-going { grid-template-rows: 0fr; opacity: 0; }

/* ============================================================
   Confirmação de presença
   ============================================================ */
.rsvp__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.rsvp__intro p:not(.kicker) { color: var(--ink-soft); }
.rsvp__intro strong { font-weight: 500; color: var(--ink); }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 16px; font-style: italic; color: var(--ink-soft); }
.steps span {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold-soft);
  font-style: normal; font-size: 18px; color: var(--gold);
}
.rsvp__panel { position: relative; }
.rsvp__done { text-align: center; }
.rsvp__done[hidden] { display: none; }
.rsvp__done.is-in { animation: rise .9s var(--ease); }
.rsvp__done-title { font-family: var(--serif); font-weight: 300; font-size: 40px; margin: 10px 0 8px; }
.rsvp__done p { color: var(--ink-soft); margin: 0 auto 28px; max-width: 380px; }
.rsvp__done .link { margin-top: 16px; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  margin: 0 0 22px; padding: 14px 16px;
  background: #F6EFE2; border: 1px solid var(--gold-soft); border-left: 2px solid var(--gold);
}
.notice i { flex: none; font-size: 22px; color: var(--gold); margin-top: 1px; }
.notice p { margin: 0 !important; max-width: none !important; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.notice strong { font-weight: 500; color: var(--ink); }
.btn--pulse { overflow: visible; }
.btn--pulse::after {
  content: ''; position: absolute; inset: -1px; border: 1px solid var(--sage-deep); pointer-events: none;
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.06, 1.28); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.checkmark { width: 74px; height: 74px; fill: none; stroke: var(--sage-deep); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.checkmark circle { stroke: var(--gold-soft); stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 1s var(--ease-io) .1s forwards; }
.checkmark path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .6s var(--ease) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
  .rsvp__grid { grid-template-columns: 1fr; }
  .rsvp__intro { text-align: center; }
  .steps { justify-content: center; }
}

/* ============================================================
   Presente
   ============================================================ */
.gift-one {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  width: min(520px, 100%); margin: 0 auto; padding: clamp(48px, 7vw, 68px) clamp(28px, 5vw, 56px) clamp(40px, 6vw, 54px);
  background: var(--sage-deep); color: var(--paper); border: 0; cursor: pointer;
  box-shadow: 0 50px 80px -50px rgba(47, 44, 39, .7);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.gift-one::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(216, 195, 159, .45); pointer-events: none; transition: inset .7s var(--ease); }
.gift-one:hover { transform: translateY(-6px); box-shadow: 0 60px 90px -50px rgba(47, 44, 39, .8); }
.gift-one:hover::before { inset: 16px; }
.gift-one__icon {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  border: 1px solid rgba(216, 195, 159, .5); font-size: 44px; color: var(--gold-soft); margin-bottom: 22px;
  transition: transform .9s var(--ease), background-color .6s;
}
.gift-one:hover .gift-one__icon { transform: rotate(-8deg) scale(1.05); background: rgba(255, 255, 255, .05); }
.gift-one__title { font-size: clamp(42px, 7vw, 58px); line-height: 1.15; margin-bottom: 10px; }
.gift-one__text { font-style: italic; font-size: 19px; color: rgba(251, 248, 242, .82); margin-bottom: 34px; }
.gift-one__cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 30px; min-height: 52px;
  border: 1px solid var(--gold-soft); color: var(--paper);
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.gift-one__cta i { font-size: 19px; letter-spacing: 0; }
.gift-one:hover .gift-one__cta { background: var(--gold-soft); color: var(--sage-deep); }

/* ============================================================
   Envelope do Pix
   ============================================================ */
.pix { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; }
.pix[hidden] { display: none; }
.pix__backdrop {
  position: absolute; inset: 0; background: rgba(38, 35, 30, .62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .6s var(--ease);
}
.pix.is-open .pix__backdrop { opacity: 1; }

.env {
  --w: min(420px, 86vw);
  position: absolute; left: 50%; top: 50%;
  width: var(--w); aspect-ratio: 1.5;
  translate: -50% -50%;
  perspective: 1400px;
  opacity: 0; transform: translateY(80px) scale(.86) rotate(-4deg);
  transition: transform 1s var(--ease), opacity .7s var(--ease);
}
.env.is-in { opacity: 1; transform: none; }
.env__piece { position: absolute; transition: translate .8s var(--ease-io), opacity .6s var(--ease); }
.env__back {
  inset: 0; border-radius: 6px;
  background: linear-gradient(170deg, #E7DCC7, #DDCEB4);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .3) inset;
}
.env__letter {
  position: absolute; left: 7%; right: 7%; top: 7%; height: 86%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding-top: 8%;
  background: var(--card); border: 1px solid #EEE6D8; border-radius: 2px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
  transition: translate 1s var(--ease-io), scale .7s var(--ease), opacity .6s var(--ease);
}
.env__letter::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(216, 195, 159, .55); }
.env__letter .mono { color: var(--gold); }
.env__letter-txt { font-family: var(--sans); font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-soft); text-align: center; line-height: 2; }
.env__front {
  inset: 0; z-index: 3; border-radius: 6px; overflow: hidden;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(0deg, #F1E8D9, #E8DCC6 70%);
}
.env__front svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(120, 96, 60, .16); stroke-width: .5; vector-effect: non-scaling-stroke; }
.env__front svg path { vector-effect: non-scaling-stroke; stroke-width: 1; }
.env__flap {
  left: 0; top: 0; width: 100%; height: 58%; z-index: 4;
  transform-origin: 50% 0; transform: rotateX(0deg);
  transition: transform .9s var(--ease-io), z-index 0s .42s, translate .8s var(--ease-io), opacity .6s var(--ease);
  filter: drop-shadow(0 6px 6px rgba(70, 55, 30, .14));
}
.env__flap i {
  position: absolute; inset: 0; border-radius: 6px 6px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #EEE5D4, #E2D4BC);
}
.env__seal {
  left: 50%; top: 58%; z-index: 5; width: 66px; height: 66px; margin: -33px 0 0 -33px;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #D2B07A, #A8834B 55%, #8A6936);
  box-shadow: 0 0 0 3px rgba(168, 131, 75, .35), 0 6px 14px -4px rgba(60, 40, 10, .5), inset 0 2px 3px rgba(255, 255, 255, .35), inset 0 -3px 6px rgba(60, 40, 10, .35);
  transition: transform .6s var(--ease), opacity .5s var(--ease), translate .8s var(--ease-io);
}
.env__seal::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(255, 240, 210, .35); }
.env__seal span { font-family: var(--script); font-size: 22px; color: rgba(255, 246, 228, .92); text-shadow: 0 1px 1px rgba(80, 55, 20, .6); }

.env.is-unsealed .env__seal { transform: scale(.4) translateY(20px); opacity: 0; }
.env.is-open .env__flap { transform: rotateX(180deg); z-index: 1; }
.env.is-rising .env__letter { translate: 0 -58%; }
.env.is-out .env__piece { translate: 0 110px; opacity: 0; }
.env.is-out .env__letter { scale: 1.35; opacity: 0; transition-delay: .1s; }

.pix__card {
  position: relative; z-index: 2;
  width: min(430px, 100%); max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: 44px 34px 30px; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(-40px) scale(.72); pointer-events: none;
  transition: opacity .6s var(--ease), transform .95s cubic-bezier(.2, .9, .25, 1.12);
  scrollbar-width: thin;
}
.pix__card::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(216, 195, 159, .5); pointer-events: none; }
.pix__card.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.pix__card .kicker { margin-bottom: 8px; }
.pix__close {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; font-size: 22px; color: var(--ink-soft); transition: transform .5s var(--ease), color .3s;
}
.pix__close:hover { transform: rotate(90deg); color: var(--ink); }
.pix__title { font-family: var(--script); font-weight: 400; font-size: clamp(34px, 8vw, 42px); line-height: 1.15; margin: 0 0 6px; color: var(--ink); }
.pix__value { font-family: var(--sans); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 22px; }
.pix__qr { position: relative; width: 210px; margin: 0 auto 20px; padding: 12px; }
.pix__qr img { width: 100%; height: auto; image-rendering: pixelated; }
.pix__corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--gold); }
.pix__corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.pix__corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.pix__corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.pix__corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.pix__hint { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 20px; }
.pix__hint strong { font-weight: 500; color: var(--ink); }
.pix__card .link { margin-top: 10px; }
.pix__fav { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; color: var(--muted); margin: 12px 0 0; }
.pix__fav strong { font-weight: 400; color: var(--ink-soft); }
#copyPix.is-copied { --bg: var(--gold); --bd: var(--gold); }

.pix__note { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; text-align: left; }
.pix__note summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-style: italic; font-size: 16px; color: var(--ink-soft);
}
.pix__note summary::-webkit-details-marker { display: none; }
.pix__note summary i { font-size: 20px; color: var(--gold); }
.pix__note form { padding-top: 10px; }
.pix__note .done { text-align: center; font-style: italic; color: var(--sage-deep); margin: 14px 0 4px; }

@media (max-width: 480px) {
  .pix__card { padding: 40px 22px 24px; }
  .pix__qr { width: 190px; }
}

/* ============================================================
   Mural de recados
   ============================================================ */
.wall__form { max-width: 620px; margin: 0 auto 72px; }
.wall__list { columns: 3 300px; column-gap: 22px; }
.note {
  break-inside: avoid; margin: 0 0 22px; padding: 34px 30px 26px; position: relative;
  background: var(--card); border: 1px solid var(--line);
}
.note.is-new { animation: rise .9s var(--ease) both; }
.note__q { position: absolute; top: 18px; right: 22px; font-size: 30px; color: var(--gold-soft); }
.note__msg { font-style: italic; font-size: 19px; line-height: 1.6; color: var(--ink); margin: 0 0 20px; white-space: pre-line; overflow-wrap: anywhere; }
.note__foot { display: flex; align-items: center; gap: 12px; }
.note__foot::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.note__name { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.note__date { margin-left: auto; font-family: var(--sans); font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.wall__empty { text-align: center; font-style: italic; color: var(--muted); }
#wallMore { margin-top: 30px; }

/* ============================================================
   Rodapé
   ============================================================ */
.footer { position: relative; overflow: hidden; text-align: center; padding: 120px 24px 60px; background: var(--sage-deep); color: var(--paper); }
.footer .mono { color: var(--gold-soft); }
.footer__names { font-size: clamp(48px, 7vw, 72px); margin: 22px 0 6px; line-height: 1.2; }
.footer__date { font-family: var(--sans); font-size: 12px; letter-spacing: .5em; color: var(--gold-soft); margin: 0 0 8px; }
.footer__love { font-style: italic; opacity: .8; margin: 0 0 54px; }
.footer__admin { font-family: var(--sans); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(251, 248, 242, .45); text-decoration: none; transition: color .3s; }
.footer__admin:hover { color: var(--paper); }
.sprig--footer { width: 90px; height: 234px; left: 50%; top: -60px; transform: translateX(-50%) rotate(180deg); stroke: var(--gold-soft); opacity: .35; }

/* ---------- aviso flutuante ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  display: flex; align-items: center; gap: 10px; padding: 14px 22px;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 12px; letter-spacing: .12em;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform .6s var(--ease), opacity .4s;
}
.toast i { font-size: 18px; color: var(--gold-soft); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

.demo-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 120;
  padding: 7px 12px; background: rgba(47, 44, 39, .86); color: #F4EEE3;
  font-family: var(--sans); font-size: 10px; letter-spacing: .12em;
}
.demo-badge[hidden] { display: none; }

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
