:root {
  /* The app's own palette (SocialClubPlus.UI/Styles/Colors.xaml). */
  --bg: #111112;
  --bg-2: #1A1A1B;
  --bg-3: #232325;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #EDEDED;
  --text-2: #B0B0B4;
  --text-3: #8E8E93;
  --amber: #FCAF17;
  --amber-hi: #FFC44F;
  --blue: #3A96DD;
  --blurple: #5865F2;
  --accent: var(--amber);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --radius: 18px;
  --max: 1160px;
}
body[data-page="docs"] { --accent: var(--blue); }
body[data-page="contact"] { --accent: #8f98ff; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #111; }

/* Film grain over everything: keeps the flat dark areas from looking like a template. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Glass navigation ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(var(--max), calc(100% - 32px)); z-index: 50;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(255,255,255,.04), 0 10px 40px -10px rgba(0,0,0,.6);
}
/* The highlight running along the rim is what makes it read as glass rather than a grey bar. */
.nav::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(240px 80px at var(--gx, 30%) 0%, rgba(255,255,255,.55), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 italic 17px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { color: var(--amber); }
.nav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 2px; }
.nav ul a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--text-2); transition: color .2s, background .2s; }
.nav ul a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.nav ul a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.10); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  padding: 12px 20px; border-radius: 999px; font: 600 15px/1 var(--body); border: 0; cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-accent { background: var(--amber); color: #1A1A1B; box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 8px 30px -8px rgba(252,175,23,.6); }
.btn-accent:hover { background: var(--amber-hi); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 10px 40px -6px rgba(252,175,23,.75); }
.btn-glass { background: rgba(255,255,255,.07); border: 1px solid var(--line-2); color: var(--text); }
.btn-glass:hover { background: rgba(255,255,255,.12); }
.btn-discord { background: var(--blurple); color: #fff; }
.btn-discord:hover { background: #6d78f5; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- Type ---------- */
.kicker { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -.03em; margin: 14px 0 18px; }
.sub { color: var(--text-2); max-width: 620px; margin: 0; }
.soft { color: transparent; background: linear-gradient(180deg, #fff 20%, #8e8e93); -webkit-background-clip: text; background-clip: text; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; width: 100%; padding-top: 110px; padding-bottom: 80px; }
/* Warm light behind the dots, centred on them rather than on the window's
   edge, so on a wide screen it stays with the content. */
.hero::before {
  content: ""; position: absolute; z-index: -2; width: min(70vw, 1100px); aspect-ratio: 1;
  left: calc(50% + min(25vw, var(--max) / 4)); top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(252,175,23,.13), transparent 70%);
}
.eyebrow {
  display: inline-flex; gap: 10px; align-items: center; padding: 6px 14px 6px 8px; border-radius: 999px;
  font-size: 13px; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.eyebrow i { font-style: normal; font-weight: 600; color: #1A1A1B; background: var(--amber); padding: 2px 8px; border-radius: 999px; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 6vw, 80px); line-height: .98; letter-spacing: -.035em; margin: 24px 0 22px; }
.lead { font-size: clamp(17px, 1.9vw, 20px); color: var(--text-2); max-width: 540px; margin: 0 0 34px; text-wrap: pretty; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-note { margin-top: 16px; font-size: 13px; color: var(--text-3); }

.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
.orbit canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-label {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); white-space: nowrap;
  font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
  transition: opacity .4s;
}
.orbit-label b { color: var(--amber); font-weight: 500; }

/* ---------- Feature tour: the screenshot stays put while the text scrolls past ---------- */
.tour { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; padding-top: 8px; }
.tour-media { position: sticky; top: 120px; align-self: start; height: min(calc(100vh - 160px), 560px); display: flex; align-items: center; }
.tour-steps { order: -1; }
.step { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; transition: opacity .5s; }
/* The heading sits in the text column, level with the screenshot, and the
   first step follows it straight away instead of half a screen lower. */
.tour-head { padding-top: 40px; }
.tour-head + .step { min-height: 60vh; justify-content: flex-start; padding-top: 48px; }
.js .step { opacity: .28; }
.js .step.active { opacity: 1; }
.step .n { font: 500 13px var(--mono); color: var(--text-3); }
.step h3 { font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.025em; margin: 10px 0 14px; }
.step p { color: var(--text-2); margin: 0 0 16px; }
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.step li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15px; }
.step li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); transform: rotate(45deg); }
.step .shot { display: none; }

.window {
  position: relative; width: 100%; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(252,175,23,.28), 0 30px 80px -20px rgba(0,0,0,.8);
}
.window::before { /* rim light */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.25), transparent 30%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.frames { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 13px; }
.frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .6s, transform .9s cubic-bezier(.2,.7,.2,1); }
.frames img.on { opacity: 1; transform: none; }
.tour-pills { position: absolute; left: 0; right: 0; bottom: -52px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.tour-pills button {
  font: 500 13px var(--body); color: var(--text-3); background: none; border: 1px solid transparent; border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: all .25s;
}
.tour-pills button:hover { color: var(--text); }
.tour-pills button[aria-pressed="true"] { color: var(--text); background: rgba(255,255,255,.06); border-color: var(--line-2); }

/* ---------- Sections ---------- */
section.block { padding-top: 140px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.card {
  position: relative; padding: 34px; border-radius: var(--radius); overflow: hidden; min-height: 250px;
  background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s, transform .3s;
}
/* A light that follows the cursor across the card. */
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, var(--amber)) 14%, transparent), transparent 60%);
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card h3 { font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
.card p { color: var(--text-2); margin: 0 0 22px; }
.card .tags { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.card .tags li { font-size: 13px; color: var(--text-2); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.card .go { margin-top: auto; font-weight: 600; color: var(--c, var(--amber)); display: inline-flex; gap: 8px; align-items: center; }
.card .go span { transition: transform .25s; }
.card:hover .go span { transform: translateX(4px); }

.discord-band {
  position: relative; padding: 56px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(600px 300px at 85% 120%, rgba(88,101,242,.45), transparent 70%), var(--bg-2);
  border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.discord-band h2 { margin-top: 10px; }
.meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; margin-top: 16px; }
.meta b { color: var(--text); font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; margin-right: 6px; box-shadow: 0 0 10px #3ba55d; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; padding: 170px 0 70px; overflow: hidden; isolation: isolate; }
/* A dotted field, lit from one corner in the page's colour. */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask: radial-gradient(70% 90% at 80% 0%, #000, transparent 75%); mask: radial-gradient(70% 90% at 80% 0%, #000, transparent 75%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -2; width: 900px; height: 600px; top: -250px;
  right: max(-200px, calc(50% - var(--max) / 2 - 200px)); /* off the content's corner, not the window's */
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
}
.page-hero h1 { font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -.035em; margin: 18px 0 18px; }

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-bottom: 40px; }
.toc { position: sticky; top: 110px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 12px; font: 600 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.toc a { display: block; padding: 7px 12px; margin-left: -12px; border-left: 2px solid transparent; color: var(--text-3); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-color: var(--accent); }
/* Text keeps a readable measure; pictures may use the whole column. */
.prose { max-width: 900px; }
.prose > section > :is(p, ul, ol, h3, .note, .req, table) { max-width: 720px; }
.prose section { padding: 8px 0 44px; border-bottom: 1px solid var(--line); margin-bottom: 44px; scroll-margin-top: 110px; }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: 34px; margin: 0 0 14px; }
.prose h3 { font-weight: 700; font-size: 22px; letter-spacing: -.015em; margin: 34px 0 8px; }
.prose p { color: var(--text-2); }
.prose p a, .prose li a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose p a:hover, .prose li a:hover { text-decoration-color: var(--accent); }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 8px; color: var(--text-2); }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before { content: ""; position: absolute; left: 3px; top: .66em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.prose b { color: var(--text); font-weight: 600; }
/* A label as the app shows it: a button, a menu entry, a message. */
.ui { color: var(--text); font-weight: 600; white-space: nowrap; }

/* The numbered list that goes with a picture's numbered highlights. */
ol.marks { list-style: none; counter-reset: mark; padding: 0; margin: 18px 0; display: grid; gap: 12px; color: var(--text-2); }
ol.marks > li { counter-increment: mark; position: relative; padding-left: 42px; min-height: 28px; }
ol.marks > li::before {
  content: counter(mark); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 700 14px/1 var(--body); color: #1A1A1B; background: var(--amber);
  box-shadow: 0 0 0 3px var(--bg), 0 0 18px -4px rgba(252,175,23,.7);
}
.prose figure.wide img { width: 100%; height: auto; }
.prose figure.narrow { max-width: 720px; }
/* A small picture beside the list that explains it. */
.figrow { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 32px; align-items: start; margin: 22px 0; }
.figrow figure { margin: 0; }
.figrow figure img { max-width: min(100%, 440px); height: auto; }
.figrow ol.marks { margin-top: 4px; }
.figrow p:first-child { margin-top: 0; }
.prose .note { max-width: 720px; margin: 24px 0 0; }
/* Tables in the docs: quiet rules, code set apart. */
.prose table { width: 100%; max-width: 900px; border-collapse: collapse; margin: 18px 0 22px; font-size: 15px; }
.prose th { text-align: left; font: 600 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 0 14px 10px 0; border-bottom: 1px solid var(--line-2); }
.prose td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.prose td:first-child { color: var(--text); white-space: nowrap; }
.prose td .label { margin: 0 0 0 4px; }
.prose p .label, .prose li .label { margin: 0 0 0 2px; vertical-align: 1px; }
.prose pre.req { white-space: pre-wrap; word-break: break-all; margin: 16px 0; }
.prose ul.legend { list-style: none; }
.prose ul.legend > li { padding-left: 0; }
.prose ul.legend > li::before { display: none; }
.prose ul.legend .label { min-width: 84px; text-align: center; margin-right: 10px; }
/* The four services, side by side. */
.svc-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 8px; }
.svc { position: relative; padding: 22px 22px 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.svc h3 { margin: 10px 0 6px; font-size: 20px; }
.svc p { margin: 0 0 16px; font-size: 15px; }
.svc-host { font: 12.5px var(--mono); color: var(--accent); word-break: break-all; }
.svc-auth { margin-top: auto; font-size: 13px; color: var(--text-3); padding-top: 12px; border-top: 1px solid var(--line); }
dl.glossary { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 18px 0 26px; max-width: 800px; }
dl.glossary dt { color: var(--text); font-weight: 600; }
dl.glossary dd { margin: 0; color: var(--text-2); }

.prose p.src { margin: -12px 0 18px; }
.prose .disclaimer { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.prose .disclaimer p { color: var(--text-2); }
.prose table.legend-table td:first-child { width: 110px; }

/* A picture opened full size (site.js). */
.prose figure img { cursor: zoom-in; }
.zoom {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; cursor: zoom-out;
  background: rgba(8,8,9,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.zoom img { max-width: 100%; max-height: 100%; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 30px 90px -20px rgba(0,0,0,.9); }
.prose .note h3 { margin: 0 0 10px; font-size: 18px; }
.prose .note ul { margin: 0; font-size: 15.5px; }
.prose .todo { font: 13px var(--mono); color: var(--text-3); border: 1px dashed var(--line-2); padding: 10px 14px; border-radius: 10px; }
.prose code { font: .9em var(--mono); background: var(--bg-3); padding: 2px 6px; border-radius: 6px; color: var(--text); }
/* A long address in running text breaks where it must rather than leave a phone's screen. */
.prose :is(p, li) > code { overflow-wrap: anywhere; }
.prose figure { margin: 22px 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line-2); }
.prose figcaption { font-size: 14px; color: var(--text-3); margin-top: 10px; }
.label { display: inline-block; font: 600 11px var(--mono); letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; margin-right: 6px; vertical-align: 2px; }
.label.measured { background: rgba(59,165,93,.15); color: #6fd08f; }
.label.code { background: rgba(58,150,221,.15); color: #7fbdf0; }
.label.assumed { background: rgba(252,175,23,.14); color: var(--amber-hi); }
.req {
  font: 13.5px/1.7 var(--mono); background: #0c0c0d; border: 1px solid var(--line-2); border-radius: 12px; padding: 18px 20px; color: var(--text-2); overflow-x: auto;
}
.req .m { color: #7fbdf0; } .req .h { color: var(--text-3); } .req .s { color: #6fd08f; }

/* Download */
.dl-card {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start;
  padding: 44px; border-radius: 24px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2);
}
.dl-card::before { content: ""; position: absolute; inset: auto -20% -70% -20%; height: 120%; background: radial-gradient(closest-side, rgba(252,175,23,.18), transparent); pointer-events: none; }
.dl-card .ver { font: 800 72px/1 var(--display); letter-spacing: -.04em; margin: 18px 0 18px; }
.changes { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.changes li, .release li { position: relative; padding-left: 20px; color: var(--text-2); }
.changes li::before, .release li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); transform: rotate(45deg); }
.early { margin: 22px 0 0; font-size: 14px; color: var(--text-3); }
.dl-get { position: relative; display: grid; gap: 12px; align-content: start; }
.dl-get .btn { justify-self: start; }
.hash-label { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }
.hash { display: flex; gap: 8px; align-items: center; font: 12.5px var(--mono); color: var(--text-2); background: #0c0c0d; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; word-break: break-all; }
.hash button { flex: none; background: rgba(255,255,255,.07); border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 6px 10px; font: 500 12px var(--body); cursor: pointer; }
.vt { font-size: 14px; color: var(--text-2); justify-self: start; border-bottom: 1px solid var(--line-2); }
.vt:hover { color: var(--text); }
.release { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.release .v { font: 700 22px var(--display); }
.release .d { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.release ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 16px; }

/* Pages not written yet */
.soon { display: inline-block; font: 600 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(252,175,23,.35); background: rgba(252,175,23,.08); padding: 6px 10px; border-radius: 999px; margin-bottom: 18px; align-self: flex-start; }
.coming { padding: 36px 40px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); max-width: 720px; }
.coming p { margin: 0; color: var(--text-2); }
.coming a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.note { margin-top: 16px; padding: 22px 26px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.note h3 { margin: 0 0 6px; font-size: 20px; }
.note p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.contact-card { --c: #8f98ff; }
.avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--blurple); margin-bottom: 22px; }
.avatar svg { width: 34px; height: 34px; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 160px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.015), transparent 60%); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 56px; }
.f-brand p { color: var(--text-3); font-size: 15px; max-width: 320px; margin: 18px 0 22px; }
.site-footer h4 { margin: 4px 0 18px; font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.site-footer ul a { color: var(--text-2); transition: color .2s; }
.site-footer ul a:hover { color: var(--text); }
.f-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.f-bottom p { margin: 0; max-width: 640px; }

/* ---------- Motion helpers ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  /* Small enough on a phone that the download button is on the first screen. */
  .orbit { max-width: min(420px, 64vw); justify-self: center; order: -1; margin-top: -20px; }
  .tour { grid-template-columns: 1fr; gap: 0; }
  .tour-media { display: none; }
  .step, .js .step, .tour-head + .step { min-height: 0; opacity: 1; padding: 36px 0; }
  .tour-head { padding-top: 0; }
  .step .shot { display: block; margin-top: 22px; border-radius: 12px; border: 1px solid var(--line-2); }
  /* minmax(0, ...): with a plain 1fr the column grows to the widest table
     inside it, and the docs ran off a phone's screen. */
  .doc { grid-template-columns: minmax(0, 1fr); }
  .figrow, .svc-map { grid-template-columns: 1fr; }
  dl.glossary { grid-template-columns: 1fr; gap: 2px; }
  dl.glossary dd { margin-bottom: 10px; }
  .toc { display: none; }
  .dl-card, .contact-grid { grid-template-columns: 1fr; }
  /* One column: the button straight under the version, the notes after it. */
  .dl-card { gap: 0; }
  .dl-info { display: contents; }
  .dl-card .eyebrow { justify-self: start; }
  .dl-card .changes, .dl-card .early { order: 1; }
  .dl-get { margin-bottom: 30px; }
  .release { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
/* The docs' widest tables (sign-in steps, entry points) need about 840px;
   below that they scroll sideways on their own instead of leaving the page. */
@media (max-width: 1240px) {
  .prose table { display: block; overflow-x: auto; }
}
/* A large screen gets a wider page and slightly larger text, so the content
   does not sit in a narrow strip in the middle. */
@media (min-width: 1800px) {
  :root { --max: 1320px; }
  body { font-size: 18px; }
  .orbit { max-width: 640px; }
  .tour-media { height: min(calc(100vh - 160px), 680px); }
  .prose { max-width: 1000px; }
}
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; border-radius: 26px; }
  .nav ul { display: none; }
  .nav .btn-discord { margin-left: auto; }
  .menu-btn {
    display: grid; place-content: center; gap: 5px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.07); border: 1px solid var(--line-2); cursor: pointer;
  }
  .menu-btn span { display: block; width: 16px; height: 2px; border-radius: 1px; background: var(--text); transition: transform .25s; }
  .nav.open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav.open ul { display: grid; order: 5; width: 100%; margin: 8px 0 4px; gap: 2px; }
  .nav.open ul a { padding: 12px 14px; border-radius: 14px; font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .discord-band { grid-template-columns: 1fr; padding: 34px; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .wrap { padding: 0 16px; }
  .dl-card { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .step { opacity: 1; }
}

/* "Plus" set apart in the app's yellow, as in the logo. */
.hero h1 .plus { color: transparent; background: linear-gradient(180deg, var(--amber-hi), #E09A0B); -webkit-background-clip: text; background-clip: text; font-style: italic; padding-right: .08em; }
