/* ==========================================================================
   Convite Marcela 15 anos — Jardim Encantado
   ========================================================================== */
:root {
  color-scheme: light;
  --blush-50: #fff8f7;
  --blush-100: #fdf2f1;
  --blush-200: #fbe4e6;
  --blush-300: #f6cdd5;
  --pink-400: #ec9fb3;
  --rose-500: #c0607c;
  --rose-600: #93405b;
  --rose-700: #7c3049;
  --gold-300: #f7dccd;
  --gold-400: #e8b9a3;
  --gold-500: #c48a73;
  --gold-600: #9a5a46;
  --gold-700: #84473a;
  --plum-900: #1f0c22;
  --plum-800: #26102b;
  --plum-700: #3a1a3e;
  --ink: #4a2230;
  --line: rgba(196, 138, 115, .38);
  --card: rgba(255, 255, 255, .62);
  --shadow-soft: 0 24px 50px -30px rgba(122, 48, 73, .45);

  --font-script: 'Pinyon Script', 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: 20px;

  --gold-text: linear-gradient(135deg, #8a4636 0%, #b8735d 26%, #eab9a4 44%, #f8dccd 52%, #c98b74 64%, #9a5a46 82%, #7c3a2c 100%);
  --gold-text-deep: linear-gradient(135deg, #84473a 0%, #a8634e 45%, #c48a73 60%, #7c3a2c 100%);
  --shine: linear-gradient(100deg, transparent 42%, rgba(255, 246, 240, .95) 50%, transparent 58%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--blush-200);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-sans);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html.has-opener body { overflow: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--rose-600); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 1rem;
  font: 500 .75rem/1.4 var(--font-sans);
  letter-spacing: .3em; text-transform: uppercase;
}
.spark-ico { width: .95em; height: .95em; fill: currentColor; flex: none; }
.h2 {
  margin: 0 0 1.25rem;
  font: 500 clamp(2.25rem, 8.6vw, 3.9rem)/1.06 var(--font-serif);
  letter-spacing: -.01em;
}
.h2 em { font-style: italic; color: var(--theme-accent); }
.lede { font: 400 clamp(1.3rem, 4.8vw, 1.6rem)/1.4 var(--font-serif); margin: 0 0 1rem; }
.script { font-family: var(--font-script); font-weight: 400; line-height: 1.3; }

/* Texto rosé com brilho: gradiente + faixa de luz que passa */
.gold {
  display: inline-block;
  padding: .2em .34em .28em;
  margin: -.2em -.34em -.28em;
  background-image: var(--shine), var(--gold-text);
  background-size: 260% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .gold { animation: shine 7s var(--ease-in-out) 2.4s infinite; }
}
@keyframes shine {
  0% { background-position: 100% 0, 0 0; }
  28%, 100% { background-position: 0% 0, 0 0; }
}

/* ---------- Capítulos (troca de cor suave entre seções) ---------- */
.chapter {
  position: relative;
  padding-block: clamp(5rem, 14vh, 8rem);
  background: var(--theme-bg);
  color: var(--theme-ink);
  overflow: hidden;
  overflow: clip;
}
.chapters[data-chapter-theme="live"] { background: var(--chapter-bg); color: var(--chapter-ink); }
.chapters[data-chapter-theme="live"] .chapter { background: transparent; color: inherit; }
.accent { color: var(--theme-accent); }
.chapters[data-chapter-theme="live"] .accent,
.chapters[data-chapter-theme="live"] .h2 em { color: var(--chapter-accent-text); }

/* ---------- Barra de leitura + parallax (native-scroll-timeline, MIT) ---------- */
.read-progress {
  display: none; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-400), var(--rose-500), var(--pink-400));
}
html.has-opener .read-progress { visibility: hidden; }
@keyframes nst-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nst-parallax { from { transform: translateY(-9%); } to { transform: translateY(9%); } }
@supports (animation-timeline: view()) and (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-nst="parallax"]:not([data-nst-fallback]) { animation: nst-parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    [data-nst="progress"]:not([data-nst-fallback]) { display: block; animation: nst-grow linear both; animation-timeline: scroll(root block); }
  }
}
[data-nst="parallax"][data-nst-fallback] { transform: translateY(calc(-9% + 18% * var(--nst-p, .5))); }
[data-nst="progress"][data-nst-fallback] { display: block; transform: scaleX(var(--nst-p, 0)); }

/* ---------- Brilhos (estrelinhas) ---------- */
.twinkles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.tw {
  position: absolute; width: var(--s, 10px); height: var(--s, 10px);
  background: radial-gradient(circle, #fff 0%, #fff6ef 35%, #f6c7d3 70%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: .9;
}
@media (prefers-reduced-motion: no-preference) {
  .tw { opacity: 0; animation: twinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* ---------- Borboletas ---------- */
.flutter { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bfly-layer { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.bfly { position: absolute; left: 0; top: 0; width: var(--size, 44px); pointer-events: none; will-change: transform; }
.bfly svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 5px 6px rgba(122, 48, 73, .2)); }
.bfly .wing-l, .bfly .wing-r { transform-box: fill-box; }
.bfly .wing-l { transform-origin: 100% 50%; }
.bfly .wing-r { transform-origin: 0% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .bfly .wing-l { animation: flap-l var(--flap, .3s) ease-in-out infinite alternate; }
  .bfly .wing-r { animation: flap-r var(--flap, .3s) ease-in-out infinite alternate; }
}
@keyframes flap-l { from { transform: scaleX(1); } to { transform: scaleX(.16) skewY(-10deg); } }
@keyframes flap-r { from { transform: scaleX(1); } to { transform: scaleX(.16) skewY(10deg); } }
.is-paused .tw, .is-paused .bfly .wing-l, .is-paused .bfly .wing-r { animation-play-state: paused; }

/* ---------- Abertura (envelope) ---------- */
.opener { display: none; }
html.has-opener .opener {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  padding: 24px;
  background: radial-gradient(120% 80% at 50% 28%, #fff6f6 0%, #fbe2e6 48%, #f2c6d0 100%);
  overflow: hidden;
  transition: opacity .95s var(--ease-out), transform .95s var(--ease-out), visibility 0s linear .95s;
}
.opener::before {
  content: ""; position: absolute; inset: -4%;
  background: url("../img/jardim.webp") center / cover no-repeat;
  opacity: .42; filter: blur(3px) saturate(1.05);
  transform: scale(1.04);
}
.opener::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 50% 50%, rgba(255, 246, 246, .75), transparent 75%);
}
.opener.is-leaving { opacity: 0; transform: scale(1.08); visibility: hidden; pointer-events: none; }
.opener__sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.opener__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1.75rem; width: min(100%, 400px); }
.opener__kicker {
  margin: 0; text-align: center; text-wrap: balance;
  font: 500 .78rem/1.6 var(--font-sans); letter-spacing: .3em; text-transform: uppercase;
  color: var(--rose-700);
  animation: fade-up 1.1s var(--ease-out) .2s backwards;
  transition: opacity .35s;
}
.opener__hint {
  margin: 0; color: var(--rose-700);
  font: italic 400 1.2rem/1.3 var(--font-serif);
  animation: fade-up 1.1s var(--ease-out) .7s backwards;
  transition: opacity .35s;
}
.is-opening .opener__kicker, .is-opening .opener__hint { opacity: 0; }

.envelope {
  position: relative;
  width: min(84vw, 340px); aspect-ratio: 1.42;
  perspective: 1100px;
  cursor: pointer;
  filter: drop-shadow(0 26px 30px rgba(122, 48, 73, .28));
  animation: env-in 1.3s var(--ease-out) both;
}
.envelope__back, .envelope__pocket, .envelope__flap, .envelope__letter { position: absolute; }
.envelope__back { inset: 0; border-radius: 12px; background: linear-gradient(160deg, #eeb5c3, #e2a1b3); }
.envelope__letter {
  left: 6%; right: 6%; top: 5%; height: 90%; z-index: 1;
  display: grid; place-content: center; justify-items: center; gap: .1rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf8, #fdeef0);
  box-shadow: 0 2px 12px rgba(122, 48, 73, .15), inset 0 0 0 1px rgba(196, 138, 115, .35);
  transition: transform 1s var(--ease-out) .7s;
}
.envelope__name { font: 400 clamp(2.6rem, 13vw, 3.6rem)/1.2 var(--font-script); color: var(--gold-600); }
.envelope__age { font: 500 .78rem/1 var(--font-serif); letter-spacing: .42em; text-transform: uppercase; color: var(--gold-600); margin-right: -.42em; }
.envelope__pocket {
  inset: 0; z-index: 2; border-radius: 12px;
  background:
    linear-gradient(to top right, rgba(255, 255, 255, .0) 49.5%, rgba(176, 96, 118, .22) 50%, rgba(255, 255, 255, 0) 50.6%) left bottom / 50.2% 62% no-repeat,
    linear-gradient(to top left, rgba(255, 255, 255, .0) 49.5%, rgba(176, 96, 118, .22) 50%, rgba(255, 255, 255, 0) 50.6%) right bottom / 50.2% 62% no-repeat,
    linear-gradient(180deg, #f9d6de 0%, #f2bfcc 100%);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.envelope__flap {
  left: 0; right: 0; top: 0; height: 60%; z-index: 3;
  transform-origin: 50% 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #e9a9b9 0%, #dc97aa 100%);
  border-radius: 12px 12px 0 0;
  transition: transform .85s var(--ease-in-out) .15s, z-index 0s linear .55s;
}
.seal {
  position: absolute; z-index: 4;
  left: calc(50% - 38px); top: calc(60% - 40px);
  width: 76px; height: 76px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 34% 28%, #da7a96 0%, #b14a68 46%, #842e4a 100%);
  box-shadow: 0 6px 16px rgba(122, 48, 73, .45), inset 0 2px 3px rgba(255, 255, 255, .35), inset 0 -4px 7px rgba(70, 20, 40, .45);
  animation: seal-pulse 2.4s ease-in-out 1.4s infinite;
}
.seal::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 1.5px solid rgba(255, 220, 228, .5);
}
.seal__m { font: 400 46px/1 var(--font-script); color: #fde4ea; transform: translate(1px, 5px); text-shadow: 0 1px 0 rgba(90, 20, 40, .55), 0 -1px 0 rgba(255, 255, 255, .25); }
.seal:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@keyframes seal-pulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(122, 48, 73, .45), inset 0 2px 3px rgba(255, 255, 255, .35), inset 0 -4px 7px rgba(70, 20, 40, .45), 0 0 0 0 rgba(192, 96, 124, .5); }
  60% { box-shadow: 0 6px 16px rgba(122, 48, 73, .45), inset 0 2px 3px rgba(255, 255, 255, .35), inset 0 -4px 7px rgba(70, 20, 40, .45), 0 0 0 18px rgba(192, 96, 124, 0); }
}
.is-opening .seal { animation: seal-pop .55s var(--ease-in-out) forwards; pointer-events: none; }
.is-opening .envelope__flap { transform: rotateX(180deg); z-index: 0; }
.is-opening .envelope__letter { transform: translateY(-56%); }
.is-leaving .envelope__letter { transform: translateY(-56%) scale(1.12); }
@keyframes seal-pop {
  35% { transform: scale(1.18); }
  100% { transform: scale(0) rotate(-30deg); opacity: 0; }
}
@keyframes env-in { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 1. Capa ---------- */
/* Capa = exatamente uma tela (svh: cabe mesmo com a barra do navegador aparecendo).
   Duas linhas: o conteúdo centralizado e o aviso "role" no rodapé, com respiro. */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; justify-items: center;
  padding: calc(3.5rem + env(safe-area-inset-top)) var(--gutter) calc(1.75rem + env(safe-area-inset-bottom));
  text-align: center;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; overflow: clip; }
.hero__bg img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; object-position: 50% 40%; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(75% 40% at 50% 47%, rgba(255, 248, 248, .9) 0%, rgba(255, 242, 244, .7) 45%, rgba(251, 228, 230, .12) 78%, transparent 100%),
    linear-gradient(180deg, rgba(251, 228, 230, .25) 0%, transparent 25%, transparent 65%, rgba(253, 242, 241, .92) 100%);
}
.petals, .fireflies { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.petals { z-index: -1; }
.hero__content { position: relative; z-index: 2; align-self: center; display: grid; justify-items: center; max-width: 44rem; }
.hero__eyebrow { color: var(--rose-600); margin-bottom: .4rem; }
.hero__title { margin: 0; display: grid; justify-items: center; font-weight: 400; outline: none; }
.hero__name {
  font-size: clamp(5.4rem, 26vw, 11.5rem);
  line-height: 1.22;
  filter: drop-shadow(0 2px 14px rgba(255, 250, 248, .85));
}
.ornament { display: flex; align-items: center; gap: .8rem; width: min(68vw, 300px); margin-top: -.1em; color: var(--gold-500); }
.ornament__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament__line:last-child { background: linear-gradient(270deg, transparent, currentColor); }
.ornament__heart { width: 15px; height: 15px; fill: currentColor; flex: none; }
.hero__age {
  margin-top: .9rem; margin-right: -.5em;
  font: 500 clamp(1.2rem, 5.2vw, 1.75rem)/1 var(--font-serif);
  letter-spacing: .5em; text-transform: uppercase;
  color: var(--gold-700);
}
.hero__date { margin: 1.1rem 0 0; font: italic 500 clamp(1.2rem, 4.8vw, 1.55rem)/1.3 var(--font-serif); color: var(--ink); }
.scroll-cue {
  position: relative; z-index: 2;
  display: grid; justify-items: center; gap: .7rem;
  margin-top: 1.5rem; padding: .4rem 1rem;
  font: 500 .7rem/1 var(--font-sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--rose-600); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.scroll-cue__icon {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(147, 64, 91, .32);
  background: rgba(255, 250, 250, .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px -10px rgba(147, 64, 91, .45);
}
.scroll-cue__icon svg { width: 20px; height: 20px; }
.scroll-cue__icon::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid rgba(192, 96, 124, .55); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  /* Em repouso a setinha só respira; sem rolar por ~3 s, o aviso começa a pular e pulsar. */
  .scroll-cue__icon svg { animation: chevron-drift 2.6s ease-in-out infinite; }
  .scroll-cue.is-nudging .scroll-cue__icon { animation: nudge-bounce 1.5s cubic-bezier(.28, .84, .42, 1) infinite; }
  .scroll-cue.is-nudging .scroll-cue__icon::after { animation: nudge-ring 1.5s var(--ease-out) infinite; }
  .scroll-cue.is-nudging .scroll-cue__label { animation: nudge-label 1.5s ease-in-out infinite; }
}
.scroll-cue.is-nudging .scroll-cue__icon { background: rgba(255, 255, 255, .8); border-color: rgba(147, 64, 91, .55); }
@keyframes chevron-drift { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes nudge-bounce {
  0%, 100% { transform: translateY(0); }
  28% { transform: translateY(-13px); }
  48% { transform: translateY(0); }
  62% { transform: translateY(-5px); }
  76% { transform: translateY(0); }
}
@keyframes nudge-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.75); } }
@keyframes nudge-label { 0%, 100% { opacity: .7; } 40% { opacity: 1; } }

/* Entrada da capa (depois do envelope) */
.hero [data-enter="1"] { --i: 0; }
.hero [data-enter="2"] { --i: 1; }
.hero [data-enter="3"] { --i: 5; }
.hero [data-enter="4"] { --i: 6; }
.hero [data-enter="5"] { --i: 8; }
.hero [data-enter="6"] { --i: 11; }
@media (prefers-reduced-motion: no-preference) {
  html.js .hero [data-enter] { opacity: 0; }
  html.js.is-entered .hero [data-enter] { animation: enter-up 1.1s var(--ease-out) calc(var(--i) * 120ms + 120ms) both; }
  html.js.is-entered .hero .hero__name { animation: write 2s var(--ease-out) calc(var(--i) * 120ms + 120ms) both, shine 7s var(--ease-in-out) 3.2s infinite; }
  html.js.is-entered .hero .ornament { animation: grow-x 1.2s var(--ease-out) calc(var(--i) * 120ms + 120ms) both; }
  html.js.is-entered .hero .hero__age { animation: spread 1.4s var(--ease-out) calc(var(--i) * 120ms + 120ms) both; }
  /* Se algo falhar, o texto aparece mesmo assim */
  html.js:not(.has-opener):not(.is-entered) .hero [data-enter] { animation: show-anyway 0s linear 3s forwards; }
}
@keyframes enter-up { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes write {
  from { opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(4px) drop-shadow(0 2px 14px rgba(255, 250, 248, .85)); }
  15% { opacity: 1; }
  to { opacity: 1; clip-path: inset(0 0 0 0); filter: drop-shadow(0 2px 14px rgba(255, 250, 248, .85)); }
}
@keyframes grow-x { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes spread { from { opacity: 0; letter-spacing: 1.1em; filter: blur(5px); } to { opacity: 1; letter-spacing: .5em; filter: none; } }
@keyframes show-anyway { to { opacity: 1; } }

/* ---------- Revelação ao rolar ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.fx-ready [data-reveal]:not(.is-in):not([data-reveal="arch"]) { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  html.fx-ready [data-reveal] { transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s), filter 1s var(--ease-out) var(--d, 0s); }
}

/* ---------- 2. Convite ---------- */
.invite__grid { display: grid; gap: 3.5rem; align-items: center; }
.invite__text { text-align: center; }
.invite__text p { max-width: 34rem; margin-inline: auto; }
.invite__text .h2 { max-width: 14ch; margin-inline: auto; }
.signature { margin: 1.25rem 0 0; font-size: clamp(3.2rem, 13vw, 4.6rem); }
@media (min-width: 860px) {
  .invite__grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
  .invite__text { text-align: left; }
  .invite__text p, .invite__text .h2 { margin-inline: 0; }
}
.arch { position: relative; width: min(76vw, 400px); margin: 0 auto; }
.arch::before {
  content: ""; position: absolute; inset: -12px;
  border: 1px solid var(--line); border-radius: 999px 999px 38px 38px;
}
.arch__frame {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 999px 999px 26px 26px;
  box-shadow: 0 40px 70px -40px rgba(122, 48, 73, .6);
  background: var(--blush-300);
}
.arch__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.arch__flower, .arch__leaf { position: absolute; pointer-events: none; }
.arch__flower--a { width: 34%; aspect-ratio: 1; left: -14%; bottom: -7%; }
.arch__flower--b { width: 21%; aspect-ratio: 1; right: -9%; bottom: 14%; }
.arch__leaf--a { width: 26%; aspect-ratio: 2; left: 10%; bottom: -8%; transform: rotate(-18deg); }
.arch__leaf--b { width: 20%; aspect-ratio: 2; right: -10%; bottom: 8%; transform: rotate(-60deg); }
@media (prefers-reduced-motion: no-preference) {
  html.fx-ready .arch .arch__frame { clip-path: inset(100% 0 0 0 round 999px 999px 26px 26px); transition: clip-path 1.6s var(--ease-out); }
  html.fx-ready .arch .arch__frame img { transform: scale(1.18); transition: transform 2.2s var(--ease-out); }
  html.fx-ready .arch .arch__flower, html.fx-ready .arch .arch__leaf { opacity: 0; scale: .2; rotate: -90deg; transition: opacity .8s var(--ease-out) 1s, scale 1.2s var(--ease-out) 1s, rotate 1.4s var(--ease-out) 1s; }
  html.fx-ready .arch.is-in .arch__frame { clip-path: inset(0 0 0 0 round 999px 999px 26px 26px); }
  html.fx-ready .arch.is-in .arch__frame img { transform: none; }
  html.fx-ready .arch.is-in .arch__flower, html.fx-ready .arch.is-in .arch__leaf { opacity: 1; scale: 1; rotate: 0deg; }
  html.fx-ready .arch.is-in .arch__flower--b { transition-delay: 1.25s; }
  html.fx-ready .arch.is-in .arch__leaf { transition-delay: 1.15s; }
}

/* ---------- 3. Contagem (jardim à noite) ---------- */
.countdown {
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center;
  padding-bottom: clamp(9rem, 24vh, 13rem);
  text-align: center;
  isolation: isolate;
}
.countdown :focus-visible { outline-color: var(--gold-300); }
.countdown .fireflies { z-index: -1; }
.countdown .twinkles { z-index: -1; }
.moon {
  position: absolute; top: 8%; right: 9%; z-index: -1;
  width: 70px; height: 70px; border-radius: 50%;
  box-shadow: inset -15px 9px 0 0 #fbe6ee;
  filter: drop-shadow(0 0 20px rgba(251, 214, 228, .55));
  transform: rotate(-18deg);
}
.countdown__inner { position: relative; }
.countdown .h2 { max-width: 15ch; margin-inline: auto; }
.timer {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.45rem, 2.4vw, 1.25rem);
  max-width: 640px; margin: 2.5rem auto 1.75rem;
}
.timer__cell {
  padding: 1.15rem .2rem 1rem;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03));
  border: 1px solid rgba(247, 220, 205, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 20px 40px -24px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.timer__num {
  position: relative; display: block; height: 1.08em; overflow: hidden;
  font: 500 clamp(2.3rem, 11vw, 4.5rem)/1.08 var(--font-serif);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--gold-300);
}
.timer__val {
  position: absolute; inset: 0;
  background-image: var(--gold-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: linear-gradient(160deg, #fbe7dc 0%, #f2c7b3 45%, #fff3ec 60%, #e2a790 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .timer__val.is-in { animation: roll-in .6s var(--ease-out) both; }
  .timer__val.is-out { animation: roll-out .6s var(--ease-out) both; }
}
@keyframes roll-in { from { transform: translateY(70%); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes roll-out { to { transform: translateY(-70%); opacity: 0; filter: blur(4px); } }
.timer__label { display: block; margin-top: .6rem; font: 500 .68rem/1 var(--font-sans); letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.countdown__status { margin: 0 0 1.5rem; font: italic 500 1.5rem/1.3 var(--font-serif); color: var(--gold-300); }
.countdown__date { margin: 0 0 1.75rem; font: italic 500 clamp(1.2rem, 4.6vw, 1.5rem)/1.4 var(--font-serif); }
.garden-silhouette { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(90px, 16vh, 150px); z-index: -1; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .85rem 1.6rem;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 1rem/1.15 var(--font-sans); letter-spacing: .02em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease-out), box-shadow .3s, background-color .3s, border-color .3s;
}
.btn:active { transform: scale(.97); }
.btn__ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ad5274 0%, #93405b 58%, #7c3049 100%);
  box-shadow: 0 14px 30px -14px rgba(147, 64, 91, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn--primary::after, .btn--glow::after, .fab::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (prefers-reduced-motion: no-preference) {
  .btn--primary::after, .btn--glow::after, .fab::after { animation: btn-shine 5s var(--ease-in-out) 2s infinite; }
}
@keyframes btn-shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@media (hover: hover) {
  .btn--primary:hover { box-shadow: 0 18px 36px -14px rgba(147, 64, 91, .9), inset 0 1px 0 rgba(255, 255, 255, .3); transform: translateY(-1px); }
  .btn--ghost:hover { background: rgba(255, 255, 255, .7); }
}
.btn--ghost { color: var(--rose-700); background: rgba(255, 255, 255, .4); border-color: rgba(147, 64, 91, .35); }
.btn--glow {
  color: #3a1530;
  background: linear-gradient(135deg, #fbe3d6 0%, #eebfaa 50%, #f9dfd2 100%);
  box-shadow: 0 0 34px -6px rgba(247, 200, 180, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn--wa { color: #fff; background: #0f7a40; box-shadow: 0 12px 26px -14px rgba(15, 122, 64, .8); }
.btn--sm { min-height: 46px; padding: .7rem 1.2rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; }
.link-btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  padding: .5rem .25rem; border: 0; background: none; cursor: pointer;
  font: 500 .95rem/1.3 var(--font-sans); color: var(--rose-600);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}

/* ---------- 4. Quando e onde ---------- */
.details { text-align: center; }
.details .h2 { max-width: 16ch; margin-inline: auto; }
.info-cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  margin: 2.5rem 0 1rem;
}
.info-card, .venue {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.info-card { padding: 1.7rem 1.25rem 1.6rem; border-radius: 24px; }
.info-card h3, .venue h3 {
  margin: .85rem 0 .45rem;
  font: 500 .72rem/1 var(--font-sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--rose-600);
}
.info-card p { margin: 0; font: 500 1.5rem/1.25 var(--font-serif); }
.info-card__ico { width: 34px; height: 34px; color: var(--gold-600); fill: currentColor; }
.venue { display: grid; border-radius: 28px; overflow: hidden; margin-top: 1rem; }
@media (min-width: 860px) { .venue { grid-template-columns: 1fr 1.25fr; } }
.venue__info { display: grid; justify-items: center; align-content: center; padding: 2rem 1.4rem; }
.venue__name { margin: 0; font: 500 1.65rem/1.2 var(--font-serif); }
.venue__address { margin: .35rem 0 0; max-width: 26rem; }
.venue__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.25rem; }
.venue__map { position: relative; min-height: 300px; background: linear-gradient(160deg, #fdeaee, #f6d3dc); }
.venue__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-soon { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 1.1rem; padding: 1.5rem; text-align: center; }
.map-soon__path { position: absolute; inset: 0; width: 100%; height: 100%; color: #d58b9d; }
.map-soon__pin {
  position: relative; width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--rose-600);
  box-shadow: 0 12px 30px -10px rgba(147, 64, 91, .55);
}
.map-soon__pin svg { width: 30px; height: 30px; fill: currentColor; }
.map-soon__pin::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1.5px solid rgba(192, 96, 124, .45);
}
@media (prefers-reduced-motion: no-preference) {
  .map-soon__pin::before { animation: ping 2.6s var(--ease-out) infinite; }
  .map-soon__pin { animation: bob 3.2s ease-in-out infinite; }
}
@keyframes ping { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.map-soon__text { position: relative; max-width: 17rem; margin: 0; font: italic 500 1.3rem/1.35 var(--font-serif); color: var(--ink); }

/* ---------- 5. Confirmação ---------- */
.rsvp { text-align: center; }
.rsvp__wrap { max-width: 580px; position: relative; }
.rsvp .h2 { max-width: 13ch; margin-inline: auto; }
.rsvp__flower { position: absolute; pointer-events: none; opacity: .5; }
.rsvp__flower--a { width: 170px; height: 170px; top: 5%; left: -60px; transform: rotate(-12deg); }
.rsvp__flower--b { width: 130px; height: 130px; bottom: 6%; right: -44px; transform: rotate(20deg); }
.rsvp__card {
  position: relative; margin-top: 2rem;
  padding: clamp(1.35rem, 5vw, 2.4rem);
  border-radius: 30px; text-align: left;
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(122, 48, 73, .5), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.rsvp__card::before {
  content: ""; position: absolute; top: -1px; left: 18%; right: 18%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}
.choice { margin: 0 0 1.2rem; padding: 0; border: 0; min-width: 0; }
.choice__opts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choice__opt { position: relative; display: block; }
.choice__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__opt span {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 56px; padding: .7rem .6rem;
  border: 1.5px solid rgba(147, 64, 91, .26); border-radius: 18px;
  background: rgba(255, 255, 255, .75);
  font-weight: 500; line-height: 1.2; text-align: center;
  transition: border-color .25s, background .25s, box-shadow .25s, color .25s;
}
.choice__opt input:checked + span {
  border-color: var(--rose-600); color: #6c2740;
  background: linear-gradient(135deg, #fde4ea, #f6cdd8);
  box-shadow: 0 10px 22px -12px rgba(147, 64, 91, .7);
}
.choice__opt input:focus-visible + span { outline: 2px solid var(--rose-600); outline-offset: 2px; }
.choice__ico { width: 1.1em; height: 1.1em; fill: var(--rose-500); }
.field { margin: 0 0 1.1rem; }
.field__label { display: block; margin: 0 0 .45rem; padding: 0; font-weight: 500; font-size: .97rem; line-height: 1.35; }
.field__label small { font-weight: 400; opacity: .72; font-size: .88em; }
.field__input {
  width: 100%; padding: .9rem 1rem;
  border: 1.5px solid rgba(147, 64, 91, .24); border-radius: 15px;
  background: rgba(255, 255, 255, .92);
  font: 400 16px/1.4 var(--font-sans); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: rgba(74, 34, 48, .45); }
.field__input:focus { outline: none; border-color: var(--rose-600); box-shadow: 0 0 0 4px rgba(192, 96, 124, .18); }
.field__input[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 4px rgba(179, 38, 30, .12); }
textarea.field__input { resize: vertical; min-height: 96px; }
.stepper { display: inline-flex; align-items: center; gap: .25rem; padding: 4px; border: 1.5px solid rgba(147, 64, 91, .24); border-radius: 999px; background: #fff; }
.stepper__btn { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--blush-200); color: var(--rose-700); font: 400 1.5rem/1 var(--font-sans); cursor: pointer; transition: background .2s, transform .2s; }
.stepper__btn:active { transform: scale(.92); background: var(--blush-300); }
.stepper__value { width: 3.2rem; border: 0; background: transparent; text-align: center; font: 500 1.3rem/1 var(--font-sans); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper__value::-webkit-outer-spin-button, .stepper__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
[data-when-going][hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field__note { margin: .25rem 0 1.25rem; font-size: .86rem; line-height: 1.5; opacity: .82; }
.form-status { min-height: 1.5em; margin: .9rem 0 0; text-align: center; font-size: .95rem; }
.form-status.is-error { color: #a1251b; }
.rsvp__done { text-align: center; padding: .5rem 0; outline: none; }
.rsvp__done-icon { width: 76px; height: 76px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #fde4ea, #f3c3cf); box-shadow: 0 14px 30px -14px rgba(147, 64, 91, .7); }
.rsvp__done-icon svg { width: 34px; height: 34px; fill: var(--rose-500); }
@media (prefers-reduced-motion: no-preference) {
  .rsvp__done:not([hidden]) .rsvp__done-icon { animation: heartbeat 1.6s var(--ease-out) both; }
}
@keyframes heartbeat { 0% { transform: scale(0); } 40% { transform: scale(1.15); } 60% { transform: scale(.95); } 100% { transform: scale(1); } }
.rsvp__done-title { margin: 1rem 0 .4rem; font: 500 2rem/1.15 var(--font-serif); }
.rsvp__done p { margin: 0 auto; max-width: 26rem; }
.rsvp__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.5rem 0 .5rem; }
.rsvp__alt { margin: 1.5rem 0 0; font-size: .95rem; }

/* ---------- 6. Lista ---------- */
.guests { text-align: center; padding-bottom: clamp(6rem, 18vh, 10rem); }
.guests .h2 { max-width: 14ch; margin-inline: auto; }
.guests__count { margin: 0 0 2rem; font: 500 1.3rem/1.3 var(--font-serif); }
.guests__count strong {
  display: block; margin-bottom: .2rem;
  font: 500 clamp(3.4rem, 15vw, 4.8rem)/1 var(--font-serif);
  background-image: var(--gold-text-deep); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.guest-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; max-width: 860px; margin: 0 auto; padding: 0; list-style: none; }
.guest {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem .5rem .55rem; border-radius: 999px;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--line);
  box-shadow: 0 8px 18px -12px rgba(122, 48, 73, .45);
  font-size: .98rem; line-height: 1.25; text-align: left;
}
.guest svg { width: 24px; height: 24px; flex: none; }
.guest__plus { font-size: .8rem; font-weight: 500; color: var(--rose-600); white-space: nowrap; }
.guest.is-me { background: linear-gradient(135deg, #fde4ea, #f4c6d2); border-color: var(--rose-500); }
@media (prefers-reduced-motion: no-preference) {
  .guest.is-new { animation: bloom .8s var(--ease-out) var(--d, 0s) both; }
}
@keyframes bloom { from { opacity: 0; transform: scale(.4) rotate(-6deg); } to { opacity: 1; transform: none; } }
.guest-empty { margin: 0; font: italic 500 1.3rem/1.4 var(--font-serif); }
.guest-empty[hidden] { display: none; }

/* ---------- Rodapé ---------- */
.site-footer {
  min-height: min(92vh, 760px);
  display: grid; align-content: center;
  padding: 4.5rem 0 calc(3rem + env(safe-area-inset-bottom));
  text-align: center;
  color: #fbe9ef;
  background: radial-gradient(120% 80% at 50% 0%, #3d1b42 0%, #1f0c22 62%);
  overflow: hidden; overflow: clip;
}
.site-footer :focus-visible { outline-color: var(--gold-300); }
.site-footer__inner {
  display: grid; justify-items: center;
  transform: translateY(calc((1 - var(--reveal-progress, 1)) * 48px)) scale(calc(.96 + .04 * var(--reveal-progress, 1)));
}
.seal-ring { position: relative; width: min(66vw, 290px); }
.seal-ring__svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--gold-400); }
.seal-ring text { font: 500 33px/1 var(--font-serif); letter-spacing: .2em; text-transform: uppercase; fill: #f0c9b6; }
.seal-ring__m {
  position: absolute; inset: 0; display: grid; place-items: center; padding-top: .12em;
  font: 400 min(24vw, 112px)/1 var(--font-script);
  background-image: linear-gradient(160deg, #fbe7dc 0%, #e9b8a2 45%, #fff3ec 58%, #d79a82 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.site-footer__line { margin: 1.75rem 0 0; font: 500 clamp(1.55rem, 6.4vw, 2.3rem)/1.2 var(--font-serif); }
.site-footer__line em { font-style: italic; color: #f4bccd; }
.site-footer__sign { margin: .3rem 0 1rem; font-size: clamp(3rem, 13vw, 4.6rem); }
.site-footer__meta { margin: 0; font-size: .85rem; letter-spacing: .1em; opacity: .9; }
.site-footer__meta a { text-underline-offset: 3px; }
.site-footer__credit { margin: 2.75rem 0 0; }
.site-footer__credit a {
  display: inline-flex; align-items: center; gap: .35em; min-height: 44px; padding: .4rem .9rem;
  border: 1px solid rgba(240, 201, 182, .28); border-radius: 999px;
  font: 400 .72rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(251, 233, 239, .78); text-decoration: none;
  transition: color .25s, border-color .25s, background .25s;
}
.site-footer__credit strong { font-weight: 500; color: #f0c9b6; letter-spacing: .2em; }
@media (hover: hover) { .site-footer__credit a:hover { color: #fff; border-color: rgba(240, 201, 182, .6); background: rgba(255, 255, 255, .05); } }

/* ---------- Botão flutuante ---------- */
.fab {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 52px; padding: .8rem 1.45rem;
  border-radius: 999px; overflow: hidden; isolation: isolate;
  color: #fff; text-decoration: none; white-space: nowrap;
  font: 500 1rem/1 var(--font-sans);
  background: linear-gradient(135deg, #ad5274 0%, #93405b 58%, #7c3049 100%);
  box-shadow: 0 16px 34px -12px rgba(122, 48, 73, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
  transform: translate(-50%, 160%); opacity: 0;
  transition: transform .55s var(--ease-out), opacity .4s;
}
.fab.is-visible { transform: translate(-50%, 0); opacity: 1; }
.fab .btn__ico { width: 1.05em; height: 1.05em; }

/* ---------- Faíscas ao tocar ---------- */
.tap-spark {
  position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none;
  width: 12px; height: 12px;
  background: radial-gradient(circle, #fff 0%, #fff3ea 40%, #f3b9c9 75%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

/* ---------- Telas maiores ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .moon { width: 96px; height: 96px; box-shadow: inset -20px 12px 0 0 #fbe6ee; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .timer__label { letter-spacing: .14em; font-size: .62rem; }
  .btn { padding-inline: 1.2rem; }
}
