/* The door's look: the same stage the app's own welcome stands on.
   Asked for on 26 Sep 2026: the door redesigned and carrying the O.R.A
   logo. The page was a plain white card with the name in small grey
   capitals; the app it hands people to opens on a dark stage
   with the silver mark in a turning ring (src/components/ora-mark.css). So
   the door now looks like the thing it is the door to.

   Shared by / and /join. Dark only: the mark is silver and is drawn for a
   dark disc in every skin of the app, and on white it had nothing to stand
   on. No web fonts: a font fetched from anywhere else would tell a third
   party who opened an invitation, and the join page promises it reaches
   nothing but the update manifests.

   Every loop stops for reduced motion, at the end of this file. */

:root {
  color-scheme: dark;
  --ink: #f4eadc;
  --muted: #aaa49b;
  --faint: #7d786f;
  --stage: #07080a;
  --stage-glow: #161a21;
  --glass: rgba(244, 234, 220, 0.045);
  --glass-strong: rgba(244, 234, 220, 0.08);
  --line: rgba(244, 234, 220, 0.12);
  --line-strong: rgba(244, 234, 220, 0.22);
  --silver-a: #f7f1e8;
  --silver-b: #cfc9c0;
  --on-silver: #0b0c0f;
  --orbit-a: #0dbdb3;
  --orbit-b: #8566f5;
  --focus: #8fe3dc;
  --icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { background: var(--stage); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 16px 32px;
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60vmax 44vmax at 50% 8%, var(--stage-glow), transparent 70%),
    radial-gradient(40vmax 30vmax at 88% 104%, rgba(133, 102, 245, 0.07), transparent 70%),
    radial-gradient(36vmax 28vmax at 6% 96%, rgba(13, 189, 179, 0.05), transparent 70%),
    var(--stage);
  overflow-x: hidden;
}

/* The logo's own sweep, drawn large and faint behind everything. */
.ora-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ora-sky svg { position: absolute; left: 50%; top: -6vmax; width: 150vmax; height: auto; transform: translateX(-50%) rotate(-14deg); opacity: 0.55; }
.ora-sky .sweep { fill: none; stroke: url(#ora-sweep); stroke-width: 1.2; }
.ora-sky .spark { fill: var(--ink); opacity: 0.8; transform-box: fill-box; transform-origin: center; animation: ora-twinkle 5s ease-in-out infinite; }

main {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── the mark ─────────────────────────────────────────────────────────── */
.ora-brand { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 28px; animation: ora-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.ora-disc {
  --size: 120px;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #171c23, #07090c 72%);
  box-shadow: inset 0 0 0 1px rgba(244, 234, 220, 0.1), 0 0 34px rgba(244, 234, 220, 0.1), 0 0 90px 18px rgba(133, 102, 245, 0.1), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  animation: ora-breathe 5.5s ease-in-out infinite;
}
.ora-disc img { width: 74%; height: auto; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.55)); user-select: none; -webkit-user-drag: none; }
/* B's orbit: teal into violet into cream, turning once every 7s. */
.ora-disc::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 200deg, color-mix(in srgb, var(--orbit-a) 70%, transparent) 280deg, var(--orbit-b) 330deg, var(--ink) 356deg, transparent 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: ora-orbit 7s linear infinite;
}
.ora-word {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.46em;
  /* the tracking hangs off the last letter; this puts the word back in the middle */
  margin-right: -0.46em;
  color: var(--ink);
}

/* ── the panel ────────────────────────────────────────────────────────── */
.ora-panel {
  width: 100%;
  /* the bottom is short because every block keeps its 16px below */
  padding: 30px 28px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--glass-strong), var(--glass) 38%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(244, 234, 220, 0.06), 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  animation: ora-rise .7s cubic-bezier(.2, .7, .2, 1) .12s both;
}
h1 {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
p { margin: 0 0 16px; color: var(--muted); }
ol { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
li { margin: 6px 0; }
li::marker { color: var(--faint); font-variant-numeric: tabular-nums; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

/* ── buttons ──────────────────────────────────────────────────────────── */
.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.button::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.primary {
  --icon: var(--icon-download);
  margin: 22px 0 12px;
  color: var(--on-silver);
  background: linear-gradient(180deg, var(--silver-a), var(--silver-b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 30px -12px rgba(244, 234, 220, 0.45);
}
.primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 16px 36px -12px rgba(244, 234, 220, 0.55); }
.primary:active { transform: translateY(0) scale(.99); }
.secondary {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 11 13'/%3E%3Cpath d='M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E");
  margin-bottom: 12px;
  color: var(--ink);
  background: rgba(244, 234, 220, 0.03);
  border: 1px solid var(--line-strong);
}
.secondary:hover { background: rgba(244, 234, 220, 0.08); border-color: rgba(244, 234, 220, 0.34); }
.secondary.dl { --icon: var(--icon-download); }
a:focus-visible, summary:focus-visible, .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 14px; }

/* ── small print ──────────────────────────────────────────────────────── */
.fine { font-size: 14px; line-height: 1.55; margin: 0 0 16px; color: var(--muted); }
details {
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 14.5px;
  animation: ora-rise .7s cubic-bezier(.2, .7, .2, 1) .22s both;
}
summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
details p, details ol { margin-top: 12px; }
code {
  display: block;
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  user-select: all;
}
kbd {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  background: rgba(244, 234, 220, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 0.92em;
  font-weight: 600;
  line-height: 1.5;
}
.shot { display: block; width: 100%; height: auto; margin: 4px 0 16px; border-radius: 14px; box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line); }
.ora-foot { position: relative; z-index: 1; margin: 26px 0 0; font-size: 12.5px; letter-spacing: 0.02em; color: var(--faint); text-align: center; animation: ora-rise .7s cubic-bezier(.2, .7, .2, 1) .3s both; }
[hidden] { display: none !important; }

@media (max-width: 420px) {
  body { padding-top: 28px; }
  .ora-panel { padding: 24px 20px 8px; border-radius: 20px; }
  h1 { font-size: 24px; }
  .ora-disc { --size: 96px; }
}

@keyframes ora-orbit { to { transform: rotate(360deg); } }
@keyframes ora-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes ora-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes ora-twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 0.9; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
