/* Plain styles for the standalone /privacy, /terms, /support, /trademarks and /join pages. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #07080f;
  color: rgba(255, 255, 255, 0.78);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Header: wordmark back to the homepage, plus the sibling pages. */
.top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: flex; line-height: 0; }
.brand img { height: 26px; width: auto; }
.top nav { margin-left: auto; display: flex; gap: 1.1rem; font-size: 0.9rem; }
.top nav a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current='page'] { color: #fff; }

main { max-width: 44rem; margin: 0 auto; padding: 1rem 1.25rem 3rem; }
h1 { color: #fff; font-size: 2.25rem; line-height: 1.15; margin: 2rem 0 0.25rem; letter-spacing: -0.02em; }
h2 { color: #fff; font-size: 1.2rem; margin: 2.5rem 0 0.5rem; }
.meta { color: rgba(255, 255, 255, 0.45); font-size: 0.875rem; margin: 0 0 2rem; }
a { color: #8a90ff; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff; }
dt { color: #fff; font-weight: 600; margin-top: 1.25rem; }
dd { margin: 0.25rem 0 0; }
li { margin: 0.35rem 0; }
strong { color: #fff; }

.bottom {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}
.bottom a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.bottom a:hover { color: #fff; }

/* /join: where an invite link lands without the app. A small card, like
   the homepage's, with the QR (on a computer) or how to get Diode. */
.join-page {
  background:
    radial-gradient(38rem 24rem at 50% -6rem, rgba(88, 101, 242, 0.22), transparent 70%),
    radial-gradient(28rem 20rem at 85% 10%, rgba(168, 85, 247, 0.10), transparent 70%),
    #07080f;
  background-repeat: no-repeat;
  min-height: 100vh;
}
.join-page .top { justify-content: center; border-bottom-color: transparent; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
main.join { max-width: 27rem; padding: 2.5rem 1.25rem 3rem; }
.join .card {
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  text-align: center;
}
.join .eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(138, 144, 255, 0.28);
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.12);
  color: #c7caff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.join h1 { margin: 0 0 0.5rem; font-size: 1.5rem; letter-spacing: -0.02em; }
.join h2 { margin: 1.75rem 0 0.5rem; font-size: 0.95rem; text-align: left; }
.join .lede { margin: 0 auto; max-width: 22rem; font-size: 0.95rem; line-height: 1.55; color: rgba(255, 255, 255, 0.68); }
.join .qr {
  width: 13.5rem;
  margin: 1.5rem auto 1.25rem;
  padding: 0.6rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 48px -8px rgba(88, 101, 242, 0.45);
}
.join .qr svg { display: block; width: 100%; height: auto; border-radius: 12px; }
.join .actions { display: grid; gap: 0.5rem; margin-top: 1.4rem; }
.join .actions .btn:only-child { justify-self: center; }
.join .actions .btn { justify-content: center; white-space: nowrap; }
.join .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.join button.btn:disabled { cursor: default; }
.join button.btn:not(:disabled) { cursor: pointer; }
.join .btn-primary { background: #5865f2; border-color: #5865f2; color: #fff; }
.join .btn-primary:hover { background: #6b76ff; }
.join .btn[hidden], .join .fine[hidden] { display: none; }
#open-hint { margin-top: 0.75rem; }
.join .soon {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.join .steps { margin: 0; padding-left: 1.2rem; text-align: left; font-size: 0.9rem; color: rgba(255, 255, 255, 0.68); }
.join .steps li { margin: 0.3rem 0; }
.join .fine { margin: 1.25rem 0 0; font-size: 0.8rem; line-height: 1.5; color: rgba(255, 255, 255, 0.42); }
.join .fine strong { color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.join .aside { margin: 1.25rem 0 0; text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }
.join .qr-only, .has-qr .join .fallback { display: none; }
.has-qr .join .qr-only { display: block; }
.join-page .bottom { max-width: 27rem; text-align: center; border-top: 0; }

@media (max-width: 480px) {
  main.join { padding-top: 1.25rem; }
  .join .card { padding: 1.5rem 1.25rem 1.25rem; border-radius: 20px; }
  .top { gap: 1rem; }
  .top nav { gap: 0.8rem; font-size: 0.85rem; }
  h1 { font-size: 1.9rem; }
}
