/* The invitation page, and the "request an invitation" sheet on the landing page. */
:root { --ink: #131313; --paper: #FAF9F6; --line: #E4E2DC; --soft: #6F6E69; --blue: #6B9DCE; }
.paper { margin: 0; background: var(--paper); color: var(--ink); font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.invite { max-width: 640px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) 20px 48px; }
.invite .home { display: inline-block; font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; }
.invite h1 { margin: clamp(36px, 7vw, 64px) 0 0; font-size: clamp(30px, 5vw, 44px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
.invite .lede { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: var(--soft); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.steps > li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.steps .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.steps h2 { margin: 3px 0 10px; font-size: 16px; font-weight: 600; }
.steps .help, .steps .small { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--soft); }
.steps .small { margin-top: 10px; font-size: 13px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.primary, .quiet, .other summary, .other button, .sheet button { font: inherit; cursor: pointer; }
.primary { padding: 11px 18px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; transition: background 160ms ease; }
.primary:hover { background: #2b2b2b; }
.primary:disabled { opacity: 0.5; cursor: default; }
.quiet { padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); font-size: 14px; }
.quiet:hover { background: rgba(0, 0, 0, 0.04); }
.other { position: relative; font-size: 14px; }
.other summary { list-style: none; padding: 9px 4px; color: var(--soft); }
.other summary::-webkit-details-marker { display: none; }
.other summary:hover { color: var(--ink); }
.other[open] > div, .other[open] { z-index: 2; }
.other button { display: block; width: 100%; margin-top: 4px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; font-size: 14px; }
.other button:hover { background: var(--paper); }
.code { padding: 8px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font: 600 24px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.08em; user-select: all; }
.broken { margin-top: 32px; font-size: 16px; line-height: 1.5; }
.broken a, .invite footer a { color: var(--ink); }
.invite footer { display: flex; gap: 18px; margin-top: 48px; font-size: 13px; color: var(--soft); }
.invite footer a { color: var(--soft); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 6; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 14px/1.3 "Plus Jakarta Sans", -apple-system, sans-serif; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0, 0, 1); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* the landing page's "request an invitation" sheet */
.sheet-scrim { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.sheet-scrim.open { opacity: 1; pointer-events: auto; }
.sheet { width: min(440px, 100%); padding: 26px; border-radius: 22px; background: var(--paper); color: var(--ink); font-family: "Plus Jakarta Sans", -apple-system, sans-serif; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); transform: translateY(8px); transition: transform 220ms cubic-bezier(0.2, 0, 0, 1); }
.sheet-scrim.open .sheet { transform: none; }
.sheet h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.sheet p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.sheet form { display: grid; gap: 10px; margin-top: 18px; }
.sheet input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
.sheet input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.sheet .fine { margin-top: 12px; font-size: 12.5px; }
.sheet .fine a { color: var(--soft); }
.sheet .said { min-height: 1.4em; margin: 2px 0 0; font-size: 14px; color: var(--ink); }
.sheet .have { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }
.sheet .have button { padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { .toast, .sheet, .sheet-scrim { transition: none; } }

/* the join step's main button is a link (otto://join/…), drawn as the page's primary button */
a.primary { display: inline-flex; align-items: center; text-decoration: none; }
