/* Invite-only beta pages (INVITE_BETA in scripts/lib/site-chrome.mjs): /waitlist and the invite landing page
   (invite.html, served at /i/<code>). One calm column: eyebrow, title, a line or two, then cards side by side on
   wide screens (the waitlist form, the "Have an invite link?" box). js/invite.js shows one state at a time. */
.inv { padding-bottom: var(--section); }
.inv-hero { padding: clamp(32px, 5vw, 64px) 0 0; }
.inv-wrap { max-width: 980px; }
.inv h1 { margin: 0 0 var(--s-4); max-width: 18em; color: var(--brand); }
.inv h1:focus { outline: none; }
.inv .lede { color: var(--ink); max-width: 38em; }
.inv .lede + .lede { margin-top: var(--s-3); }
.inv-grid { display: grid; gap: var(--s-5); margin-top: var(--s-6); align-items: start; }
@media (min-width: 860px) { .inv-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.inv-grid:not(:has(> :not([hidden]))) { display: none; }
.inv-card { background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--pop); padding: clamp(20px, 3vw, 28px); min-width: 0; }
.inv-card h2 { font-size: var(--fs-h3); margin: 0 0 var(--s-3); }
.inv-card > p { margin: 0 0 var(--s-2); }
.inv-form .field-row:first-child { margin-top: 0; }
.inv-form .btn { margin-top: var(--s-2); }
.inv-code form .btn { margin-top: var(--s-2); }
.inv-done h2 { margin-top: 0; }
.inv-done p { margin: 0 0 var(--s-4); }
.inv-done:focus { outline: none; }
.inv-state .btn-row { margin-top: var(--s-5); }
.inv-steps { margin-top: var(--s-6); max-width: 640px; }
.inv-steps .prompt-line { background: var(--surface); }
.inv-steps .hint { margin-top: var(--s-3); }
.inv-steps .or { margin: var(--s-5) 0; }
.inv-small { margin-top: var(--s-4); }
.inv-loading { margin: var(--s-5) 0; color: var(--muted); font-size: var(--fs-lede); }
.inv noscript .btn-row { margin-top: var(--s-5); }

/* The invite landing page (owner 2026-10-23, body.inv-page): one calm, centred column with the big logo, one step at a
   time (js/invite.js: Accept, What you can do, your email, Check your inbox; Back goes to the previous step), no site
   nav and no footer columns (only the legal links and the language switch). On a phone each step fills the screen and
   its main button sits low, within reach of a thumb. */
.inv-page .site-head, .inv-page .foot-top, .inv-page .foot-copy, .inv-page .foot-note { display: none; }
.inv-page .foot-legal li:nth-child(n+3) { display: none; }
.inv-page .site-foot { margin-top: 0; padding: 0 0 var(--s-3); background: transparent; border-top: 0; }
.inv-page .foot-base { margin-top: 0; padding-top: var(--s-2); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 var(--s-5); }
.inv-page .foot-legal ul { justify-content: center; }
.inv-page .inv { padding-bottom: 0; }
.inv-page .inv-hero { padding: 0; }
.inv-col { max-width: 480px; margin: 0 auto; padding: var(--s-5) var(--gutter) var(--s-5); min-height: calc(100svh - 72px); display: flex; flex-direction: column; text-align: center; }
.inv-logo { display: block; align-self: center; margin: var(--s-2) 0 var(--s-6); border-radius: var(--radius-sm); }
.inv-logo img { display: block; width: 136px; height: auto; }
.inv-page .inv h1 { margin: 0 0 var(--s-4); max-width: none; font-size: clamp(30px, 2.2vw + 22px, 42px); line-height: 1.12; text-wrap: balance; }
.inv-page .inv .lede { margin: 0 auto; text-wrap: pretty; }
.inv-page .eyebrow { margin-bottom: var(--s-3); }
.inv-step:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
.inv-step > form:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
.inv-actions { margin-top: auto; padding-top: var(--s-6); display: grid; gap: var(--s-3); }
.inv-actions .inv-small { margin: var(--s-1) 0 0; }
.inv-page .inv-small { color: var(--muted); font-size: var(--fs-sm); }
.inv-page .inv-msg .inv-small { margin-top: var(--s-4); }
.inv-points { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-4); text-align: left; }
.inv-points li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-3); align-items: start; margin: 0; }
.inv-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--field); border: 2px solid var(--line-strong); color: var(--brand); font: 700 var(--fs-ui)/1 var(--display); }
.inv-points h2 { font-size: var(--fs-body); line-height: 1.3; margin: 4px 0 2px; color: var(--ink); }
.inv-points p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
.inv-exclusive { margin-top: var(--s-6); padding: var(--s-4); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); text-align: left; font-size: var(--fs-sm); }
.inv-exclusive p { margin: 0; }
.inv-exclusive p + p { margin-top: var(--s-2); }
.inv-exclusive strong { color: var(--brand); }
.inv-redeem .field-row { margin: var(--s-5) 0 0; text-align: left; }
.inv-redeem .hint, .inv-redeem .form-status { text-align: left; }
.inv-redeem .hint { margin-top: var(--s-2); }
.inv-page [data-inbox] .hint { margin-top: var(--s-4); }
.inv-page .inv-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-top: var(--s-6); text-align: left; }
.inv-page .inv-card { box-shadow: none; border-width: 1px; border-color: var(--line); padding: var(--s-5); }
.inv-page .inv-msg .inv-actions { margin-top: var(--s-6); }
.inv-page .inv-loading { margin: auto 0; }
@media (min-width: 720px) {
  .inv-col { padding-top: clamp(32px, 7vh, 80px); }
  .inv-logo { margin-bottom: var(--s-7); }
  .inv-logo img { width: 181px; }
  .inv-step:not([hidden]), .inv-step > form:not([hidden]) { flex: 0 0 auto; }
  .inv-actions { margin-top: 0; padding-top: var(--s-6); }
}
/* Shown only if js/invite.js never starts (blocked, failed, or JavaScript off): it hides this at once, so the reveal
   waits a moment instead of flashing on every load. */
.inv-fallback { animation: inv-reveal 0.2s ease 2.5s both; }
@keyframes inv-reveal { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
/* Tap targets of at least 44 px: the inline Log in links and the footer line. */
.inv-page .inv-small a, .inv-page .foot-base a, .inv-page .foot-base summary { display: inline-flex; align-items: center; min-height: 44px; }
