/* Convite personalizado e compartilhamento. */
.invite-overlay[hidden], .share-panel[hidden] { display: none !important; }
html.invite-active { overflow: hidden; }
html.invite-active body { background: #151515; }
html.invite-active .journey-header,
html.invite-active .mobile-bottom-nav,
html.invite-active main { pointer-events: none; }
html.invite-active .analytics-consent { visibility: hidden; }

.invite-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  color: #f5f3ed;
  background: rgba(0, 0, 0, .54);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  opacity: 1;
  transition: opacity .42s cubic-bezier(.22,.74,.19,1);
}
.invite-overlay.is-leaving { opacity: 0; pointer-events: none; }
.invite-card {
  position: relative;
  width: min(100%, 630px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  margin: auto;
  padding: clamp(28px, 3.2vw, 36px);
  border: 1px solid rgba(245, 243, 237, .17);
  border-radius: 16px;
  background: rgba(22, 22, 22, .97);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
  scrollbar-width: thin;
  scrollbar-color: #6c6962 transparent;
  text-align: center;
  transition: opacity .32s ease, transform .42s cubic-bezier(.22,.74,.19,1);
}
.invite-overlay.is-leaving .invite-card { opacity: 0; transform: translateY(10px) scale(.985); }
.invite-close {
  position: absolute; top: 20px; right: 22px; z-index: 1;
  width: 38px; height: 38px; padding: 0; border: 0;
  color: #bdbbb5; background: transparent; font: inherit; font-size: 30px;
  line-height: 1; cursor: pointer;
}
.invite-close:hover { color: #fff; }
.invite-mark { position: relative; width: 40px; height: 38px; margin: 0 auto 17px; }
.invite-mark::before {
  content: ""; position: absolute; top: 0; left: 3px; width: 34px; height: 18px;
  border: 2px solid #ffc305; border-bottom: 0; border-radius: 40px 40px 0 0;
}
.invite-mark::after {
  content: ""; position: absolute; left: 18px; bottom: 6px; width: 6px; height: 6px;
  border-radius: 50%; background: #ffc305;
}
.invite-kicker, .share-kicker {
  margin: 0 0 10px; color: #ffc305; font-size: 10px; font-weight: 700;
  letter-spacing: .16em; line-height: 1.4;
}
.invite-card h2 {
  max-width: 550px; margin: 0 auto 17px; color: #f5f3ed;
  font-size: clamp(38px, 4.4vw, 52px); font-weight: 700;
  line-height: 1.04; letter-spacing: -.052em; overflow-wrap: anywhere;
}
.invite-card h2:focus { outline: none; }
.invite-copy { max-width: 530px; margin: 0 auto; font-size: 15px; line-height: 1.5; }
.invite-copy p { margin: 0 0 12px; }
.invite-copy p:first-child { font-size: 1em; }
.invite-copy p:first-child span { color: #bdbbb5; }
.invite-copy strong { color: #fff; font-weight: 700; }
.invite-copy .invite-question { margin: 18px 0 15px; font-weight: 700; }
.invite-enter, .share-primary, .contact-share-button {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 47px; padding: 11px 18px; border: 0; border-radius: 7px;
  color: #151515; background: #f5f3ed; font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.invite-enter::before, .share-primary::before, .contact-share-button::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: #ffc305; transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.75,.2,1);
}
.invite-enter:hover::before, .invite-enter:focus-visible::before,
.share-primary:hover::before, .share-primary:focus-visible::before,
.contact-share-button:hover::before, .contact-share-button:focus-visible::before { transform: scaleX(1); }
.invite-enter:focus-visible, .invite-close:focus-visible, .contact-share-button:focus-visible, .share-panel button:focus-visible,
.share-name-label + input:focus-visible { outline: 2px solid #ffc305; outline-offset: 3px; }
.invite-enter > span, .share-primary > span, .contact-share-button > span,
.invite-enter > svg, .share-primary > svg, .contact-share-button > svg { position: relative; z-index: 1; }
.invite-enter svg, .share-primary svg, .contact-share-button svg { width: 19px; height: 19px; flex: none; }

.contact-share-band {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 21px 0; border-top: 1px solid #55524e; border-bottom: 1px solid #55524e;
}
.contact-share-copy { display: flex; align-items: center; }
.contact-share-copy p { margin: 0; color: #bdbbb5; font-size: 12px; line-height: 1.5; text-align: right; }
.contact-share-copy strong { color: #f5f3ed; font-weight: 600; }
.contact-share-button {
  min-height: 44px; white-space: nowrap; color: #f5f3ed; background: #151515;
  border: 1px solid #f5f3ed; transition: color .2s ease .12s, border-color .2s ease;
}
.contact-share-button svg { display: block; }
.contact-share-button:hover, .contact-share-button:focus-visible { color: #151515; border-color: #ffc305; }
.contact-scene footer { border-top: 0; }
@media (min-width: 1025px) { .contact-layout { padding-bottom: 36px; } }

#prototype-contact button {
  isolation: isolate; color: #151515; background: #f5f3ed; border-color: #f5f3ed;
}
#prototype-contact button::before {
  z-index: 0; background: #ffc305; transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.75,.2,1);
}
#prototype-contact button:hover, #prototype-contact button:focus-visible {
  color: #151515; background: #f5f3ed; border-color: #f5f3ed;
}
#prototype-contact button:hover::before, #prototype-contact button:focus-visible::before { transform: scaleX(1); }

.share-panel {
  position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center;
  padding: 18px; overflow-y: auto; overscroll-behavior: contain;
}
.share-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.share-card {
  position: relative; width: min(100%, 620px); max-height: calc(100dvh - 36px);
  overflow-y: auto; overscroll-behavior: contain; margin: auto; padding: clamp(25px, 4vw, 40px);
  border: 1px solid #393733; border-radius: 15px; color: #f5f3ed; background: #1c1c1c;
  box-shadow: 0 30px 80px rgba(0,0,0,.34); scrollbar-width: thin;
}
.share-close {
  position: absolute; top: 16px; right: 17px; width: 34px; height: 34px; padding: 0;
  border: 0; color: #bdbbb5; background: transparent; font-size: 29px; line-height: 1; cursor: pointer;
}
.share-close:hover { color: #fff; }
.share-card h2 { margin: 0 35px 26px 0; color: #fff; font-size: clamp(28px, 4vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.share-name-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.share-name-label span { color: #aaa7a1; font-weight: 400; }
.share-name-label + input {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid #55524e; border-radius: 7px; color: #fff; background: #252525;
  font: inherit; font-size: 16px;
}
.share-name-label + input::placeholder { color: #8f8c87; }
.share-help { margin: 8px 0 20px; color: #bdbbb5; font-size: 12px; line-height: 1.4; }
.share-message { padding: 18px 0 16px; border-top: 1px solid #494641; border-bottom: 1px solid #494641; }
.share-message-label { margin: 0 0 14px !important; color: #ffc305; font-size: 10px !important; font-weight: 700; letter-spacing: .15em; }
.share-message p { margin: 0 0 12px; color: #dedbd4; font-size: 13px; line-height: 1.5; }
.share-message p:last-of-type { margin-bottom: 10px; }
.share-message output { display: block; overflow-wrap: anywhere; color: #ffc305; font-size: 12px; line-height: 1.45; }
.share-status { min-height: 1.3em; margin: 8px 0 0; color: #ffc305; font-size: 12px; }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.share-primary { min-height: 44px; font-size: 13px; }
.share-secondary, .share-link-only {
  min-height: 44px; padding: 8px 12px; border: 1px solid #6c6962; border-radius: 7px;
  color: #f5f3ed; background: transparent; font: inherit; font-size: 12px; cursor: pointer;
}
.share-link-only { padding-inline: 2px; border-color: transparent; color: #c7c4be; text-decoration: underline; text-underline-offset: 3px; }
.share-secondary:hover, .share-link-only:hover { color: #ffc305; border-color: #ffc305; }

@media (max-width: 600px) {
  .invite-close { top: 12px; right: 14px; }
  .invite-overlay { padding: 14px; }
  .invite-card { max-height: calc(100dvh - 28px); padding: 25px 21px 22px; border-radius: 12px; }
  .invite-mark { margin-bottom: 12px; transform: scale(.85); }
  .invite-kicker { margin-bottom: 10px; font-size: 9px; }
  .invite-card h2 { margin-bottom: 14px; font-size: clamp(34px, 9.4vw, 42px); }
  .invite-copy { font-size: 13px; line-height: 1.43; }
  .invite-copy p { margin-bottom: 9px; }
  .invite-copy .invite-question { margin: 14px 0 12px; }
  .invite-enter { width: 100%; min-height: 44px; gap: 8px; padding: 9px; font-size: 11px; }
  .contact-share-band { flex-direction: column; gap: 12px; max-width: 370px; margin: 20px auto 0; padding: 15px 0; text-align: center; }
  .contact-share-copy { justify-content: center; }
  .contact-share-copy p { font-size: 10px; text-align: center; }
  .contact-share-button { min-height: 40px; font-size: 11px; }
  .contact-share-button svg { display: block; width: 16px; height: 16px; }
  .share-card { padding: 27px 20px 20px; }
  .share-card h2 { margin-bottom: 22px; }
  .share-message p { font-size: 12px; }
  .share-actions { gap: 9px; }
  .share-primary, .share-secondary { flex: 1 1 calc(50% - 5px); padding-inline: 9px; }
  .share-link-only { flex: 1 1 100%; min-height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .invite-overlay, .invite-card { transition: none; }
  .invite-enter::before, .share-primary::before, .contact-share-button::before, #prototype-contact button::before,
  .contact-share-button { transition: none; }
}
