/* ===== CONVITE THEME =====
   Mais descontraído que o romance, mais formal que o aniversário.
   Vibe de convite de casamento moderno: ornamentos simétricos, serif
   clássico (Playfair) pro título da pergunta, Inter pro body.
   3 skins: sunset (default), midnight, botanico. */

.convite {
  /* Default skin: sunset (pôr-do-sol, coral terracota + creme rosado) */
  --c-bg:           #FAF1E8;
  --c-bg-deep:      #F3E4D2;
  --c-text:         #3D2418;
  --c-accent:       #E07856;
  --c-accent-light: #F2A287;
  --c-accent-rgb:   224, 120, 86;
  --c-paper-bg:     #FFFAF3;
  --c-paper-text:   #3D2418;
  --c-rule:         rgba(61, 36, 24, 0.18);

  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Inter', system-ui, sans-serif;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.convite * { -webkit-tap-highlight-color: transparent; }

/* Skin "meia-noite", violeta noturno + champagne dourado */
.convite.skin--midnight {
  --c-bg:           #1A1933;
  --c-bg-deep:      #252146;
  --c-text:         #F5F1E8;
  --c-accent:       #D4A574;
  --c-accent-light: #E2B987;
  --c-accent-rgb:   212, 165, 116;
  --c-paper-bg:     #252146;
  --c-paper-text:   #F5F1E8;
  --c-rule:         rgba(212, 165, 116, 0.32);
  color-scheme: dark;
}

/* Skin "botânico", verde-sage + creme amarelado, vibe pic-nic */
.convite.skin--botanico {
  --c-bg:           #F0F2EA;
  --c-bg-deep:      #E2E6D5;
  --c-text:         #2A3520;
  --c-accent:       #7A8F5F;
  --c-accent-light: #A0B57F;
  --c-accent-rgb:   122, 143, 95;
  --c-paper-bg:     #FFFCF4;
  --c-paper-text:   #2A3520;
  --c-rule:         rgba(42, 53, 32, 0.20);
}

.convite .c-stage {
  padding: 0;
  min-height: 100%;
  position: relative;
  text-align: center;
}

/* ===== ORNAMENT (linha + diamante + linha, separator clássico) ===== */
.convite .c-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 12px auto 0;
  max-width: 280px;
}
.convite .c-ornament::before,
.convite .c-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-rule);
}
.convite .c-ornament__mark {
  font-size: 14px;
  color: var(--c-accent);
  letter-spacing: 0.15em;
  opacity: 0.85;
}

/* ===== HERO ===== */
.convite .c-hero {
  padding: 64px 28px 48px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--c-accent-rgb), 0.10) 0%, transparent 60%),
    var(--c-bg);
  position: relative;
  overflow: hidden;
}
.convite .c-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 4px;
}
.convite .c-recipient {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 32px auto 18px;
  color: var(--c-text);
  max-width: 320px;
}
.convite .c-question {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 14px auto 28px;
  color: var(--c-text);
  max-width: 360px;
}
.convite .c-sender {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-accent);
  opacity: 0.85;
  font-weight: 500;
  margin-top: 24px;
}
.convite .c-sender::before { content: ''; opacity: 0.5; }

/* ===== DETAILS CARD (data + local + dress + programa) ===== */
.convite .c-details {
  padding: 36px 24px 0;
}
.convite .c-details-card {
  background: var(--c-paper-bg);
  color: var(--c-paper-text);
  border: 1px solid var(--c-rule);
  border-radius: 6px;
  padding: 22px 22px 18px;
  text-align: left;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.18);
}
.convite .c-details-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-rule);
}
.convite .c-details-row:last-child { border-bottom: 0; }
.convite .c-details-row__icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 22px;
  line-height: 1.4;
}
.convite .c-details-row__body { flex: 1; min-width: 0; }
.convite .c-details-row__label {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 3px;
}
.convite .c-details-row__value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--c-paper-text);
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}
.convite .c-details-row__value a {
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ===== MESSAGE ===== */
.convite .c-message {
  padding: 40px 28px 16px;
  max-width: 360px;
  margin: 0 auto;
}
.convite .c-message__body {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  text-align: left;
}
.convite .c-message__body::first-letter {
  font-size: 30px;
  font-weight: 600;
  color: var(--c-accent);
}

/* ===== PHOTO ===== */
.convite .c-photo {
  padding: 24px 28px 8px;
}
.convite .c-photo-frame {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 4/5;
  background: var(--c-paper-bg);
  border: 8px solid var(--c-paper-bg);
  box-shadow:
    0 12px 32px -16px rgba(0, 0, 0, 0.25),
    0 0 0 1px var(--c-rule);
  position: relative;
  overflow: hidden;
}
.convite .c-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.convite .c-photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  text-align: center;
  padding: 0 16px;
  line-height: 1.4;
  opacity: 0.65;
  background: var(--c-bg-deep);
}
.convite .c-photo-placeholder svg {
  margin-bottom: 12px;
  opacity: 0.85;
}

/* ===== MUSIC ===== */
.convite .c-music {
  padding: 24px 28px 16px;
  max-width: 380px;
  margin: 0 auto;
}
.convite .c-music__label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.85;
}
.convite .c-music__player {
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-paper-bg);
  border: 1px solid var(--c-rule);
}
.convite .c-music__player iframe {
  display: block;
  border: 0;
  width: 100%;
  min-height: 152px;
}

/* ===== MOTIVOS PRA ACEITAR, stack de post-its arrastáveis ===== */
.convite .c-motivos {
  padding: 44px 24px 24px;
  text-align: center;
}
.convite .c-motivos__label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 14px;
  opacity: 0.85;
}
.convite .c-motivos__hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--c-text);
  opacity: 0.55;
  margin-top: 14px;
  letter-spacing: 0.02em;
}
.convite .c-motivos__stack {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 18px auto 0;
  user-select: none;
  touch-action: pan-y; /* permite scroll vertical, intercepta horizontal */
}
.convite .c-postit {
  position: absolute;
  inset: 0;
  background: var(--postit-bg, #FFF1A0);
  color: #2a2010;
  padding: 30px 22px 22px;
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 14px 30px -14px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(0, 0, 0, 0.06) inset;
  cursor: grab;
  transition: transform .4s cubic-bezier(.22, .8, .2, 1), opacity .3s;
  transform-origin: center top;
  -webkit-user-drag: none;
  word-break: break-word;
}
.convite .c-postit:active { cursor: grabbing; }
/* Fita scotch translúcida no topo */
.convite .c-postit::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 64px;
  height: 14px;
  background: rgba(255, 255, 255, 0.55);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1px;
}
/* Cores rotativas dos post-its */
.convite .c-postit:nth-child(5n+1) { --postit-bg: #FFF1A0; }
.convite .c-postit:nth-child(5n+2) { --postit-bg: #FFCBD9; }
.convite .c-postit:nth-child(5n+3) { --postit-bg: #BFEBC8; }
.convite .c-postit:nth-child(5n+4) { --postit-bg: #B6DFF4; }
.convite .c-postit:nth-child(5n+5) { --postit-bg: #E0CFFA; }

/* Indicador de paginação (bolinhas embaixo da stack) */
.convite .c-motivos__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.convite .c-motivos__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-rule);
  transition: background .25s, transform .25s;
}
.convite .c-motivos__dot.is-active {
  background: var(--c-accent);
  transform: scale(1.4);
}

/* ===== RSVP, botões de resposta interativos ===== */
.convite .c-rsvp {
  padding: 48px 24px 36px;
  text-align: center;
}
.convite .c-rsvp__prompt {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--c-text);
  margin-bottom: 8px;
}
.convite .c-rsvp__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.convite .c-rsvp__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-rule);
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
  font-feature-settings: 'ss01';
}
.convite .c-rsvp__btn:hover {
  transform: translateY(-2px);
  border-color: var(--c-accent);
  background: rgba(var(--c-accent-rgb), 0.06);
}
.convite .c-rsvp__btn--yes {
  background: var(--c-accent);
  color: var(--c-paper-bg);
  border-color: var(--c-accent);
}
.convite .c-rsvp__btn--yes:hover {
  background: var(--c-accent);
  filter: brightness(1.08);
  box-shadow: 0 12px 28px -10px rgba(var(--c-accent-rgb), 0.5);
}

/* RSVP result, mostrado depois do clique */
.convite .c-rsvp-result {
  padding: 32px 28px 16px;
  text-align: center;
  max-width: 380px;
  margin: 0 auto;
  display: none;
}
.convite .c-rsvp.is-answered .c-rsvp__buttons { display: none; }
.convite .c-rsvp.is-answered .c-rsvp__prompt { display: none; }
.convite .c-rsvp.is-answered .c-rsvp-result { display: block; animation: cFadeIn .6s ease-out both; }

.convite .c-rsvp-result__icon {
  font-size: 40px;
  margin-bottom: 12px;
  animation: cPop .6s cubic-bezier(.34, 1.56, .64, 1) both;
}
.convite .c-rsvp-result__title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--c-text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.convite .c-rsvp-result__body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text);
  opacity: 0.78;
}
.convite .c-rsvp-result__details {
  margin: 18px auto 0;
  display: inline-block;
  text-align: left;
  background: var(--c-paper-bg);
  border: 1px solid var(--c-rule);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--c-paper-text);
  font-weight: 500;
}
.convite .c-rsvp-result__details strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

@keyframes cFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cPop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== COUNTDOWN ===== */
.convite .c-countdown {
  margin: 32px 28px 0;
  padding: 18px;
  text-align: center;
  border: 1px solid var(--c-rule);
  border-radius: 6px;
  background: var(--c-paper-bg);
  color: var(--c-paper-text);
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.convite .c-countdown-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.convite .c-countdown-val {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-paper-text);
}

/* ===== FINAL (assinatura / "make yours") ===== */
.convite .c-final {
  padding: 56px 28px 64px;
  text-align: center;
  margin-top: 32px;
  background: var(--c-bg-deep);
  border-top: 1px solid var(--c-rule);
}
.convite .c-final__brand {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--c-accent);
  margin-bottom: 8px;
  opacity: 0.85;
}
.convite .c-final__pitch {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--c-text);
  margin-bottom: 18px;
  line-height: 1.3;
}
.convite .c-final__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--c-text);
  color: var(--c-bg);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .15s;
}
.convite .c-final__cta:hover { transform: translateY(-2px); }

/* ===== TWINKLES, sparkles decorativos sutis (em vez de confete) ===== */
.convite .c-twinkle {
  position: absolute;
  font-size: 12px;
  color: var(--c-accent);
  opacity: 0;
  pointer-events: none;
  animation: cTwinkle 4s ease-in-out infinite;
}
@keyframes cTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  40%, 60% { opacity: 0.75; transform: scale(1); }
}

/* ===== RSVP RESPONSE ANIMATIONS ===== */
/* YES: fogos de artifício */
@keyframes c-fw-burst {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 40px)) scale(0.4); opacity: 0; }
}
/* MAYBE: corações flutuando pra cima */
@keyframes c-float-up {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(var(--drift), -110vh) rotate(20deg); opacity: 0; }
}
/* NO: pétalas caindo com sway */
@keyframes c-petal-fall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.95; }
  100% { transform: translate(var(--sway), 110vh) rotate(var(--rot)); opacity: 0; }
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 380px) {
  .convite .c-recipient { font-size: 36px; }
  .convite .c-question { font-size: 24px; }
  .convite .c-rsvp__prompt { font-size: 20px; }
  .convite .c-details-card { padding: 18px 16px; }
}

/* ===== Scrollbar (tema-aware) ===== */
body.convite {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--c-accent) 55%, transparent) transparent;
}
body.convite::-webkit-scrollbar { width: 12px; height: 12px; }
body.convite::-webkit-scrollbar-track { background: transparent; }
body.convite::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--c-accent) 45%, transparent);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
  transition: background-color .2s;
}
body.convite::-webkit-scrollbar-thumb:hover {
  background-color: color-mix(in srgb, var(--c-accent) 80%, transparent);
}
