/* Shared look for the site's secondary pages (legal, contact, 404).
   Tokens, header, buttons and footer copy the landing page's final (round 7, acrylic) values. */
:root {
  --bg: #09090b; --bg-deep: #0c0c0e; --oled: #060607;
  --text: #f0f0f0; --text-sec: #a3a3ab; --text-dim: #8f8f96;
  --accent: #e3fc02; --ink: #171719; --audio: #02e5fc; --warn: #ffb547;
  --line: rgba(255,255,255,.075);
  --orb: linear-gradient(90deg, #e3fc02 0%, #02e5fc 36%, #a35cff 70%, #e3fc02 100%);
  --r: 10px; --r-sm: 6px; --max: 1200px; --chrome: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --acrylic: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018)), linear-gradient(rgba(28,28,30,.46), rgba(28,28,30,.46));
  --acrylic-hi: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)), linear-gradient(rgba(33,33,35,.5), rgba(33,33,35,.5));
  --acrylic-blur: blur(40px) saturate(1.9);
  --acrylic-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 2px 8px rgba(0,0,0,.3);
  --well: rgba(255,255,255,.035);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--chrome) + 24px); }
body { background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; font-feature-settings: "cv11" 1;
  -webkit-font-smoothing: antialiased; line-height: 1.55; overflow-x: hidden; min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
::selection { background: rgba(227,252,2,.28); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { flex: none; }
[hidden] { display: none !important; }
body::before { content: ""; position: fixed; inset: -10vmax; z-index: -1; pointer-events: none; background:
  radial-gradient(38vmax 30vmax at 12% 18%, rgba(227,252,2,.07), transparent 70%),
  radial-gradient(44vmax 34vmax at 88% 42%, rgba(2,229,252,.08), transparent 70%),
  radial-gradient(40vmax 32vmax at 30% 88%, rgba(163,92,255,.11), transparent 70%),
  radial-gradient(34vmax 26vmax at 70% 75%, rgba(214,60,190,.07), transparent 70%); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  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='2' 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; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

/* header (as the landing) */
.site { position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: var(--chrome); transition: background .3s, backdrop-filter .3s; }
.site.scrolled { background: rgba(15,15,17,.5); -webkit-backdrop-filter: var(--acrylic-blur); backdrop-filter: var(--acrylic-blur); }
.site .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.site .brand img { height: 14px; width: auto; }
.site .links { display: flex; gap: 24px; margin-left: 8px; }
.site .links a { font-size: 14px; color: var(--text-sec); transition: color .2s; }
.site .links a:hover { color: var(--text); }
.site .acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site .signin { font-size: 14px; color: var(--text-sec); padding: 0 8px; white-space: nowrap; }
.site .signin:hover { color: var(--text); }
.site .btn-warn { background: var(--warn); color: #1a1206; }
@media (max-width: 860px) { .site .links { display: none; } }
@media (max-width: 560px) { .site .hide-sm { display: none; } .site .wrap { gap: 12px; } .site .brand img { height: 12px; } .site .signin { padding: 0 4px; } }

/* buttons (as the landing) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 700; letter-spacing: -.005em; white-space: nowrap; transition: transform .2s var(--ease), background .2s, box-shadow .3s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { box-shadow: 0 8px 36px -6px rgba(227,252,2,.45); }
.btn-ghost { background: var(--acrylic); box-shadow: 0 10px 30px -14px rgba(0,0,0,.9); -webkit-backdrop-filter: var(--acrylic-blur); backdrop-filter: var(--acrylic-blur); }
.btn-ghost:hover { background: var(--acrylic-hi); }
.btn:focus, .btn:focus-visible { outline: none; }
.btn:focus-visible { box-shadow: 0 0 32px color-mix(in srgb, var(--accent) 45%, transparent); filter: brightness(1.06); }
a:focus { outline: none; }
a:focus-visible:not(.btn) { outline: none; color: var(--text); text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }
.cta-pair { display: flex; width: fit-content; max-width: 100%; gap: 4px; padding: 5px; border-radius: 10px; background: var(--acrylic);
  box-shadow: var(--acrylic-shadow); -webkit-backdrop-filter: var(--acrylic-blur); backdrop-filter: var(--acrylic-blur); }
.cta-pair .btn { height: 44px; }
.cta-pair .btn-ghost { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cta-pair .btn-ghost:hover { background: rgba(255,255,255,.08); }
@media (max-width: 560px) { .cta-pair { width: 100%; } .cta-pair .btn { flex: 1; padding: 0 12px; font-size: 14px; } }

.panel { background: var(--acrylic); box-shadow: var(--acrylic-shadow); -webkit-backdrop-filter: var(--acrylic-blur); backdrop-filter: var(--acrylic-blur); border-radius: 14px; padding: 28px; }
@media (max-width: 560px) { .panel { padding: 22px 18px; -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); } }

/* page heading */
.page { padding: calc(var(--chrome) + 56px) 0 96px; }
@media (max-width: 760px) { .page { padding: calc(var(--chrome) + 28px) 0 64px; } }
.page-h { font-family: Archivo, Inter, sans-serif; font-stretch: 118%; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
.page-lead { color: var(--text-sec); font-size: 18px; line-height: 1.6; max-width: 640px; margin-top: 18px; }
@media (max-width: 560px) { .page-lead { font-size: 16.5px; } }
.lit { background-image: var(--orb); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: shiny 7s linear infinite; }
@keyframes shiny { from { background-position: 200% center; } to { background-position: 0% center; } }

/* legal documents */
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 28px; font-size: 14px; }
.legal-nav a { color: var(--text-dim); position: relative; padding: 4px 0; transition: color .2s; }
.legal-nav a:hover { color: var(--text); }
.legal-nav a[aria-current="page"] { color: var(--text); }
.legal-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.doc-meta { color: var(--text-dim); font-size: 14px; margin-top: 14px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; margin-top: 48px; align-items: start; }
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 32px; } }
.toc { position: sticky; top: calc(var(--chrome) + 32px); max-height: calc(100svh - var(--chrome) - 64px); overflow: auto; scrollbar-width: none; }
.toc ol, .toc-m ol { list-style: none; display: grid; gap: 2px; }
.toc a, .toc-m a { display: block; padding: 6px 0 6px 14px; font-size: 13.5px; line-height: 1.4; color: var(--text-dim); position: relative; transition: color .2s; }
.toc a:hover, .toc-m a:hover { color: var(--text); }
.toc a.on { color: var(--text); }
.toc a.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--accent); }
@media (max-width: 960px) { .toc { display: none; } }
.toc-m { display: none; margin-bottom: 32px; border-radius: 12px; background: var(--acrylic); box-shadow: var(--acrylic-shadow); -webkit-backdrop-filter: var(--acrylic-blur); backdrop-filter: var(--acrylic-blur); }
.toc-m summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 15px; font-weight: 600; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: ""; width: 8px; height: 8px; border: solid var(--text-sec); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.toc-m[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc-m ol { padding: 0 18px 14px 4px; }
@media (max-width: 960px) { .toc-m { display: block; } }

.short { margin-bottom: 44px; }
.short h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.short p { color: var(--text-sec); font-size: 15.5px; line-height: 1.65; margin-top: 10px; }
.short p b { color: var(--text); font-weight: 600; }

.prose { max-width: 720px; color: var(--text-sec); font-size: 16px; line-height: 1.72; }
.prose > h2 { color: var(--text); font-size: 21px; font-weight: 750; letter-spacing: -.015em; line-height: 1.3; margin: 48px 0 12px; }
.prose > h2:first-child, .short + h2 { margin-top: 0; }
.prose h3 { color: var(--text); font-size: 16.5px; font-weight: 700; margin: 26px 0 6px; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p, .prose ul + ul { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--text-dim); }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose .todo, .todo { color: #ffd78a; background: rgba(255,181,71,.12); border-radius: 4px; padding: 1px 6px; font-weight: 600; font-size: .94em; }
.prose .addr { margin-top: 14px; padding: 16px 18px; border-radius: 10px; background: var(--well); color: var(--text); font-size: 15px; line-height: 1.6; }
.prose .note { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--well); font-size: 15px; display: flex; gap: 12px; }
.prose .note::before { content: ""; width: 3px; flex: none; border-radius: 2px; background: var(--accent); }
@media (max-width: 560px) { .prose { font-size: 15.5px; } .prose > h2 { font-size: 19px; margin-top: 40px; } }

/* contact */
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
@media (max-width: 860px) { .help-grid { grid-template-columns: minmax(0, 1fr); margin-top: 32px; } }
.help-grid .panel { display: flex; flex-direction: column; }
.help-grid h2 { font-size: 19px; font-weight: 750; letter-spacing: -.015em; }
.help-grid p { color: var(--text-sec); font-size: 15px; line-height: 1.65; margin-top: 10px; }
.help-grid p b { color: var(--text); font-weight: 600; }
.help-grid .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; align-items: center; }
.help-grid .wide { grid-column: 1 / -1; }
.help-grid .mail { background: radial-gradient(90% 140% at 0% 0%, rgba(227,252,2,.08), transparent 70%), var(--acrylic); }
.help-grid .discord { background: radial-gradient(90% 120% at 0% 0%, rgba(88,101,242,.16), transparent 70%), var(--acrylic); }
.ihead { display: flex; gap: 14px; align-items: center; }
.ico { width: 40px; height: 40px; border-radius: 9px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: var(--text); flex: none; }
.ico svg { width: 20px; height: 20px; }
.discord .ico { background: rgba(88,101,242,.22); color: #c9cdfb; }
.qlist { list-style: none; display: grid; gap: 6px; margin-top: 16px; }
.qlist li { padding: 12px 14px; border-radius: 10px; background: var(--well); font-size: 14.5px; color: var(--text-sec); line-height: 1.55; }
.qlist li b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.qlist a, .help-grid p a, .company a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.qlist a:hover, .help-grid p a:hover, .company a:hover { text-decoration-color: var(--accent); }
.company { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; margin-top: 18px; padding: 16px 18px; border-radius: 10px; background: var(--well); }
.company dt { color: var(--text-dim); font-size: 12.5px; }
.company dd { color: var(--text); font-size: 14.5px; font-weight: 500; margin-top: 2px; }
@media (max-width: 760px) { .company { grid-template-columns: minmax(0, 1fr); row-gap: 12px; } }
.mailto { font-weight: 700; }

/* 404 */
.nf { text-align: center; max-width: 720px; margin: 0 auto; }
.nf .page-lead { margin-left: auto; margin-right: auto; }
.nf .cta-pair { margin: 36px auto 0; }
.nf .more { margin-top: 28px; color: var(--text-dim); font-size: 14.5px; }
.nf .more a { color: var(--text-sec); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.nf .more a:hover { color: var(--text); }
.nf .shot { margin: 64px auto 0; max-width: 900px; border-radius: 12px; overflow: hidden; background: var(--oled); box-shadow: 0 60px 120px -30px rgba(0,0,0,.95), 0 20px 40px -20px rgba(0,0,0,.6); opacity: .9; }

/* footer (as the landing) */
.site-foot { background: rgba(6,6,7,.7); padding: 72px 0 72px; margin-top: 40px; }
.site-foot .f-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-foot .f-brand img { height: 14px; width: auto; }
.site-foot .f-brand p { color: var(--text-dim); font-size: 14px; margin-top: 16px; max-width: 260px; }
.site-foot .f-col b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; margin-bottom: 14px; }
.site-foot .f-col a { display: block; font-size: 14px; color: var(--text-sec); padding: 5px 0; }
.site-foot .f-col a:hover { color: var(--text); }
.site-foot .f-base { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 56px; padding-top: 24px; font-size: 12.5px; color: var(--text-dim); }
.site-foot .f-base img { height: 22px; width: auto; }
.site-foot .f-base span { flex: 1 1 320px; }
@media (max-width: 860px) { .site-foot .f-grid { grid-template-columns: 1fr 1fr; } .site-foot .f-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .lit { animation: none; } .btn, .toc-m summary::after { transition: none; } }

/* ---- palette C (Luke, 4 Nov): the app's own greys, #19191c page, #232326 / #262629 panels, no colour glows ---- */
:root { --bg: #161618 !important; --bg-deep: #19191c !important; --oled: #111113 !important;
  --glass-fill: radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.04), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.006) 45%, rgba(255,255,255,.003)), rgba(35,35,38,.72) !important; }
body::before { display: none !important; }
.site.scrolled { background: rgba(22,22,24,.78) !important; }
.site-foot { background: rgba(17,17,19,.8) !important; }
.index a, .terms div { background: rgba(25,25,28,.85) !important; }
