/* ===== /gig/invite/ — the invitation stage (2026-10-09) ================================
   The /gig/ page's hero, swapped: the same loop edge to edge with an invitation card on
   it — a frosted dark panel with the inviter's photo or the logo, the headline, the code
   if the link carried one, and the store badges. Everything below the stage is /gig/
   itself (gig-ad.css, whose rules are scoped to dual-e, vid and invite). Classes are inv-*.

   Contrast: the card is 78% black (plus blur) under white text — worst case over the
   brightest footage (luminance ≈ 0.9) the text sits on ≤ 0.2 luminance: white 4.6:1+,
   --silver (#a8aeb8) 3.6:1 so body copy on the card is #d9dde3 (6.1:1). Badges keep their
   own #a6a6a6 edge, 3.1:1 on the card (1.4.11). */

/* Masthead rides on the video. */
html[data-variant="invite"] .masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  border-bottom: 0;
  background: transparent;
}

html[data-variant="invite"] .masthead .mark,
html[data-variant="invite"] .masthead .bar__meta {
  color: #ffffff;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.4);
}

html[data-variant="invite"] .masthead .bar__meta {
  opacity: 0.86;
}

html[data-variant="invite"] body {
  overflow-x: clip;
}

.inv {
  flex: 1;
  width: 100%;
}

/* ---- The stage ------------------------------------------------------------------ */
.inv-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 5rem 1rem 1.25rem;
}

.inv-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #1d1d1f;
}

.inv-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.inv-video--still {
  pointer-events: none;
}

/* Lighter than /gig/'s scrim — the card carries its own darkness, the stage stays a scene. */
.inv-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(11 11 13 / 0.35) 0%,
    rgb(11 11 13 / 0.1) 30%,
    rgb(11 11 13 / 0.35) 65%,
    rgb(11 11 13 / 0.8) 92%,
    #0b0b0d 100% /* lands on the page colour: the stage melts into the demo section below */
  );
}

/* ---- The card ------------------------------------------------------------------- */
.inv-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  padding: 1.5rem 1.25rem 1.4rem;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 24px;
  background: rgb(11 11 13 / 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
  color: #ffffff;
}

.inv-avatar {
  display: flex;
  width: 4rem;
  height: 4rem;
}

.inv-avatar__icon {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.35);
}

.inv-avatar__photo {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 2px rgb(255 255 255 / 0.18),
    0 6px 20px rgb(0 0 0 / 0.35);
}

.inv-avatar__mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow:
    0 0 0 2px rgb(255 255 255 / 0.18),
    0 6px 20px rgb(0 0 0 / 0.35);
}

.inv-eyebrow {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #d9dde3;
}

.inv-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 7.5vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.inv-line {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #d9dde3;
}

/* The invite code, as a ticket stub. Only when the link carried a code: the block ships
   with the hidden attribute, which an explicit display would otherwise override. */
.inv-code[hidden] {
  display: none;
}

.inv-code {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgb(255 255 255 / 0.3);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.05);
}

.inv-code__label,
.inv-code__hint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9dde3;
}

.inv-code__hint {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8125rem;
}

.inv-code__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.inv-code__value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.inv-code__copy {
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  background: transparent;
  font: 500 0.8125rem var(--font-sans);
  color: #ffffff;
  cursor: pointer;
}

.inv-code__copy:hover {
  background: rgb(255 255 255 / 0.1);
}

.inv-code__copy--done {
  border-color: var(--volt);
  color: var(--volt);
}

/* Badges: side by side, left-aligned (styles.css would stack them under 480px). */
.inv-cta {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.inv-cta .store-badge {
  display: inline-flex;
  align-items: center;
}

.inv-cta .store-badge img {
  display: block;
  height: 44px;
  width: auto;
}

.inv-demo {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #d9dde3;
}

.inv-demo a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* QR (desktop only — gig-qr.js adds .scan--ready; the pre-paint is-desktop class gates it,
   a phone can't scan its own screen). The .scan rules live in gig-additions.css, which this
   page doesn't load, so the block is restated here in the card's colours. */
.inv-scan {
  display: none;
}

html.is-desktop .inv-scan.scan--ready {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  max-width: 22rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgb(255 255 255 / 0.2);
}

.inv-scan .scan__code {
  flex: none;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
  line-height: 0;
}

.inv-scan .scan__code svg {
  display: block;
  min-width: 72px;
  min-height: 72px;
}

.inv-scan .scan__label {
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.inv-scan .scan__text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #d9dde3;
}

/* Focus and selection on the card. */
.inv-card :focus-visible {
  outline-color: #ffffff;
}

.inv-card ::selection {
  background: #ffffff;
  color: #0b0b0d;
}

/* ---- Footer -------------------------------------------------------------------- */
.inv-footer {
  border-top: 1px solid var(--hairline);
}

/* ---- Wider screens: the card floats in the scene, centred, with more air ------- */
@media (min-width: 760px) {
  .inv-stage {
    justify-content: center;
    padding: 6rem 2rem 4rem;
  }

  .inv-card {
    max-width: 34rem;
    padding: 2.25rem 2.25rem 2rem;
  }

  .inv-scrim {
    background:
      linear-gradient(to bottom, rgb(11 11 13 / 0.35) 0%, rgb(11 11 13 / 0.08) 30%, rgb(11 11 13 / 0.5) 85%, #0b0b0d 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .inv-card {
    transition: none;
  }
}
