/* Help, legal, invite and 404 pages */

/* ---------- documents ---------- */
.doc-head { position: relative; padding: 150px 0 56px; background: radial-gradient(60% 120% at 80% 0%, rgba(43, 110, 158, .22), transparent 70%), linear-gradient(180deg, #0B1626 0%, #07090D 100%); }
.doc-title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .92; max-width: 12em; text-wrap: balance; }
.doc-meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.doc-lede { margin-top: 20px; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; color: #C3CAD6; max-width: 58ch; }
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); padding-top: 48px; padding-bottom: clamp(96px, 12vw, 160px); }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); background: rgba(255, 255, 255, .05); }
.toc:empty { display: none; }

.prose { max-width: 720px; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 56px; font-size: clamp(1.3rem, 1.8vw, 1.5rem); font-weight: 600; line-height: 1.3; scroll-margin-top: 96px; }
.prose h3 { margin-top: 28px; font-size: 1.1rem; font-weight: 600; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.7; color: #B3BCCB; }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { margin-top: 14px; padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--dim); }
.prose strong { color: var(--text); font-weight: 600; }
.prose table { width: 100%; margin-top: 20px; border-collapse: separate; border-spacing: 0 4px; font-size: 15px; }
.prose th { padding: 0 16px 6px; text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); }
.prose td { padding: 14px 16px; vertical-align: top; line-height: 1.55; color: #B3BCCB; background: rgba(255, 255, 255, .03); }
.prose td:first-child { color: var(--text); font-weight: 500; border-radius: 12px 0 0 12px; }
.prose td:last-child { border-radius: 0 12px 12px 0; }
.prose td:only-child { border-radius: 12px; }
.summary { padding: 26px 28px; border-radius: 24px; background: linear-gradient(135deg, rgba(143, 211, 255, .10), rgba(143, 211, 255, .02)); }
.summary h2 { margin-top: 0; }
.summary ul { margin-top: 12px; }

.confirm-buttons { display: grid; gap: 12px; max-width: 420px; margin-top: 18px; }
.confirm-buttons .small { margin-top: 4px; font-size: 14px; }
.confirm-buttons[hidden] { display: none; }

/* ---------- invite and 404 ---------- */
.page-band { position: relative; height: clamp(250px, 38vh, 380px); overflow: hidden; background: linear-gradient(180deg, #03050A 0%, #0A1422 55%, #132338 86%, #07090D 100%); }
.page-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 68% 30%, rgba(143, 212, 255, .14), transparent 30%); pointer-events: none; }
.page-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-ridges { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.plain-wrap { position: relative; margin-top: clamp(-96px, -6vw, -40px); padding-bottom: clamp(96px, 12vw, 160px); }
.plain-title { font-size: clamp(3rem, 7.4vw, 6.4rem); max-width: 10em; text-shadow: 0 2px 30px rgba(7, 9, 13, .6); }
.plain-wrap > .lede { margin-top: 22px; }
.plain-actions { margin-top: 32px; }

.invite { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: 8px; }
.invite-title { max-width: 9.5em; }
.invite-main { max-width: 560px; }
.invite-lede { margin-top: 22px; }
.code-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 20px 24px; border-radius: 22px; background: linear-gradient(120deg, rgba(143, 211, 255, .12), rgba(143, 211, 255, .03)); }
.code-label { font-size: 13px; color: var(--muted); }
.code { font-family: var(--f-mono); font-weight: 500; font-size: clamp(30px, 5vw, 42px); letter-spacing: .06em; color: var(--ice); margin-top: 2px; }
.code-copy { font-size: 15px; font-weight: 600; color: var(--ice); padding: 8px 4px; }
.steps { margin: 28px 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.45; }
.steps li p { padding-top: 1px; }
.steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .08); }
.steps b { font-family: var(--f-mono); font-weight: 500; color: var(--ice); white-space: nowrap; }
.invite-price { margin-top: 16px; }
.invite-qr { display: grid; justify-items: center; gap: 14px; padding-top: 32px; }
.invite-qr .qr { width: 196px; height: 196px; padding: 12px; border-radius: 20px; }
.invite-qr p { font-size: 13px; color: var(--muted); max-width: 22ch; text-align: center; }
.no-code .code-card, .no-code .invite-qr { display: none; }

@media (max-width: 900px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .toc { display: none; }
  .doc-head { padding-top: 120px; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tr { margin-top: 8px; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .03); }
  .prose td { background: none; padding: 10px 16px 0; border-radius: 0 !important; }
  .prose td:last-child { padding-bottom: 14px; }
  .invite { grid-template-columns: minmax(0, 1fr); }
  .invite-qr { display: none; }
}

.get-lede { margin-top: 22px; }
.page-get .badges, .page-get .soon { margin-top: 28px; }
.get-fine { margin-top: 14px; }
.plain-wrap .soon { font-size: 1.05rem; font-weight: 500; }

/* ---------- print: the legal pages, on paper ---------- */
@media print {
  body { background: #fff; color: #000; }
  .nav, .footer, .toc, .skip, .page-band { display: none !important; }
  .doc-head { padding: 0 0 12px; background: none; }
  .doc-title { color: #000; font-size: 28pt; }
  .doc-grid { display: block; padding: 0; }
  .doc-lede, .doc-meta, .prose p, .prose li, .prose td, .prose th { color: #000; }
  .prose h2 { break-after: avoid; }
  .prose td { background: none; border-bottom: 1px solid #ccc; }
  .summary { background: none; border: 1px solid #ccc; }
  .link { color: #000; }
}
