/* The invite landing page (/app/invite). Layout for the sections the design
   boards call WebInvite*; tokens and type come from styles.css. */

.inv-hero {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand) 70%, var(--ground) 100%);
  padding-block: clamp(48px, 2rem + 5vw, 88px) clamp(40px, 2rem + 2.5vw, 64px);
}
.inv-hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }

.inv-avatar {
  width: 96px; height: 96px; border-radius: 50%; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--glow); border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
  font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 44px; color: var(--accent);
  font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0;
}
.inv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inv-avatar svg { width: 40px; height: 40px; }

.inv-title {
  font-size: clamp(1.625rem, 1.25rem + 1.7vw, 2.125rem); line-height: 1.18;
  max-width: 760px; text-wrap: balance; margin: 0;
}
.inv-title strong { font-weight: 600; }
.inv-handle { margin: 8px 0 0; font-size: 1rem; font-weight: 500; color: var(--sub); }
.inv-ask { margin: 8px 0 0; font-size: var(--t-lede); color: var(--sub); }
.inv-ask strong { color: var(--ink); font-weight: 700; }
.inv-head { display: flex; flex-direction: column; align-items: center; }

.inv-card {
  width: 100%; max-width: 560px; margin-top: 10px; text-align: left;
  background: var(--raised); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: clamp(20px, 1rem + 1.2vw, 28px);
}
.inv-card h2 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0; overflow-wrap: anywhere; }
.inv-snippet { position: relative; margin-top: 10px; max-height: 132px; overflow: hidden; font-size: var(--t-body); line-height: 1.55; overflow-wrap: anywhere; }
.inv-snippet::after { content: ""; position: absolute; inset: auto 0 0 0; height: 63px; background: linear-gradient(180deg, transparent, var(--raised) 92%); }
.inv-count { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; }
.inv-card.sealed { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 36px; color: var(--sub); font-size: var(--t-body); line-height: 1.55; }
.inv-card.sealed p { margin: 0; max-width: 360px; }
.inv-lockbadge { width: 54px; height: 54px; border-radius: 50%; background: var(--glow); border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.inv-lockbadge svg { width: 26px; height: 26px; }
.inv-message { margin: 0; max-width: 560px; font-size: var(--t-body); font-style: italic; color: var(--sub); overflow-wrap: anywhere; }

.inv-role { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--sel); font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.inv-role svg { width: 16px; height: 16px; color: var(--accent); }

.inv-actions { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 14px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.badges a, .badges span { display: block; line-height: 0; border-radius: 8px; }
.badges img { display: block; height: 48px; width: auto; }
.badges.soon img { filter: grayscale(1); opacity: 0.42; }
.soon-note { margin: 0 0 -6px; font-size: 0.9375rem; font-weight: 600; color: var(--sub); }
.inv-open { margin: 0; font-size: 1rem; color: var(--sub); }
.inv-open a { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 1px; }
.inv-rule { width: 56px; height: 1px; background: var(--line); margin-top: 6px; }
.inv-installed { max-width: 540px; margin: 0; font-size: 0.906rem; line-height: 1.5; color: var(--sub); }
.inv-what { max-width: 440px; margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--sub); }
.inv-retry { font: inherit; font-weight: 700; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px; cursor: pointer; }

[hidden] { display: none !important; }
.inv-actions.wait { visibility: hidden; }

.skel { background: color-mix(in srgb, var(--line) 80%, transparent); border-radius: 8px; animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.skel-av { width: 96px; height: 96px; border-radius: 50%; }
.skel-line { height: 30px; width: min(420px, 80%); }
.skel-sub { height: 16px; width: 110px; }
.skel-card { width: 100%; max-width: 560px; height: 210px; border-radius: 16px; margin-top: 10px; }

/* bands */
.band-head { text-align: center; padding-top: clamp(64px, 3rem + 4vw, 104px); }
.band-head h2 { font-size: clamp(1.75rem, 1.35rem + 2vw, 2.5rem); margin: 0 0 10px; }
.band-head p { margin: 0 auto clamp(32px, 2rem + 2vw, 52px); max-width: 540px; font-size: var(--t-body); line-height: 1.5; color: var(--sub); }
.cards { display: grid; gap: 24px; grid-template-columns: 1fr; padding-bottom: clamp(64px, 3rem + 4vw, 104px); }
.card { background: var(--raised); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: var(--t-h3); line-height: 1.3; font-weight: 700; letter-spacing: -0.1px; }
.card p { margin: 0; font-size: 0.906rem; line-height: 1.5; color: var(--sub); }
.card .ico { width: 52px; height: 52px; border-radius: 10px; background: var(--brand); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.card .ico svg { width: 26px; height: 26px; }
.cards.three .card { padding: 18px 18px 28px; }
.cards.three .card .txt { padding: 6px 8px 0; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 600px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.tile { height: 196px; border-radius: 10px; background: var(--brand); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0 12px; }
.cur { width: 100%; max-width: 290px; font-size: 14px; line-height: 46px; color: var(--ink); }
.cur div { white-space: nowrap; }
.caret { position: relative; display: inline-block; width: 2px; height: 19px; vertical-align: -4px; margin: 0 1px; background: var(--c); }
.caret b { position: absolute; left: -1px; bottom: 19px; padding: 2px 7px 2px 6px; border-radius: 5px 5px 5px 0; background: var(--c); color: #fff; font-size: 11px; line-height: 14px; font-weight: 700; }
.sel { background: color-mix(in srgb, var(--c) 22%, transparent); }
.faces { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.faces > div { display: flex; }
.face { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--brand); display: flex; align-items: center; justify-content: center; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 19px; color: #1B2A41; margin-left: -8px; }
.face:first-child { margin-left: 0; }
.faces small { font-size: 13px; font-weight: 600; color: var(--sub); letter-spacing: 0.01em; }
.sealed-art { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sealed-art .lockc { width: 56px; height: 56px; border-radius: 50%; background: var(--glow); border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.sealed-art .lockc svg { width: 26px; height: 26px; }
.bars { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bars div { display: flex; gap: 6px; }
.bars i { height: 8px; border-radius: 4px; background: var(--line); display: block; }

/* platforms */
.platforms { background: var(--brand); border-top: 1px solid var(--line); }
.platforms .band-head { padding-top: clamp(56px, 2.5rem + 3vw, 80px); }
.platforms .band-head h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem); }
.devs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; padding-bottom: clamp(56px, 2.5rem + 3vw, 80px); align-items: end; }
@media (min-width: 900px) { .devs { grid-template-columns: repeat(4, 1fr); } }
.dev { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px; text-align: center; }
.dev .stage { height: 250px; display: flex; align-items: flex-end; justify-content: center; }
.dev b { display: block; font-size: 1.0625rem; }
.dev span.l { display: block; font-size: 0.875rem; color: var(--sub); margin-top: 2px; }
.shot { display: block; height: auto; max-width: 100%; border-radius: 14px; filter: drop-shadow(0 16px 22px rgba(27,42,65,.28)); }
.shot.phone { width: 112px; } .shot.tablet { width: 236px; } .shot.mac { width: 252px; }
@media (prefers-color-scheme: dark) { .shot { filter: drop-shadow(0 16px 22px rgba(0,0,0,.5)); } }

.collects { padding-block: 36px 24px; text-align: center; font-size: 0.875rem; line-height: 1.5; color: var(--sub); }
.collects p { max-width: 520px; margin: 0 auto; }

.inv-title, .band-head h2 { font-variation-settings: "opsz" 48, "SOFT" 0, "WONK" 0; letter-spacing: -0.012em; word-spacing: 0.02em; }
.dev { min-width: 0; }
@media (max-width: 479px) { .shot.phone { width: 96px; } .shot.tablet { width: 164px; } .shot.mac { width: 164px; } .dev .stage { height: 210px; } }
