/* Public pages (#2568): landing, legal, sign-up. One look for everything outside the apps.
   Dark by design, like the Studio: a deep night background, a violet-to-cyan accent taken
   from the equalizer mark, and quiet glass panels. Scoped to body.site so the apps' own
   stylesheet is untouched on pages that load both. */
body.site {
  --bg: #07080f;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef0f7;
  --muted: #a3a9bf;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --amber: #f5b94a;
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(800px 480px at 95% 5%, rgba(34, 211, 238, 0.18), transparent 60%),
    var(--bg);
  font: 16px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.site * { box-sizing: border-box; }
body.site a { color: #b9a6ff; }
body.site a:hover { color: #fff; }
.site-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; flex-wrap: wrap; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; color: var(--text) !important; text-decoration: none; }
.site-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.site-mark i { display: block; width: 4px; border-radius: 2px; background: var(--grad); }
.site-mark i:nth-child(1) { height: 45%; } .site-mark i:nth-child(2) { height: 100%; }
.site-mark i:nth-child(3) { height: 30%; } .site-mark i:nth-child(4) { height: 70%; }
.site-alpha { padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(245, 185, 74, 0.6); color: var(--amber) !important; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
body.site .site-nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 0.93rem; }
body.site .site-nav a:hover { color: var(--text); background: var(--panel-strong); }
body.site .site-nav a.site-nav-cta { color: #fff; background: var(--panel-strong); border: 1px solid var(--line); }

/* Buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: transform 0.12s, box-shadow 0.12s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--grad); color: #0a0a12 !important; box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35); }
.btn.ghost { border: 1px solid var(--line); color: var(--text) !important; background: var(--panel); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; padding: 9vh 0 7vh; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-eq { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 220px; padding: 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.hero-eq i { display: block; width: 14px; border-radius: 7px; background: var(--grad); animation: eq 1.6s ease-in-out infinite; }
.hero-eq i:nth-child(odd) { animation-duration: 1.2s; }
.hero-eq i:nth-child(3n) { animation-duration: 2s; }
.hero-eq i:nth-child(1) { animation-delay: -0.2s; } .hero-eq i:nth-child(2) { animation-delay: -0.9s; }
.hero-eq i:nth-child(3) { animation-delay: -0.4s; } .hero-eq i:nth-child(4) { animation-delay: -1.1s; }
.hero-eq i:nth-child(5) { animation-delay: -0.6s; } .hero-eq i:nth-child(6) { animation-delay: -1.4s; }
.hero-eq i:nth-child(7) { animation-delay: -0.1s; } .hero-eq i:nth-child(8) { animation-delay: -0.8s; }
@keyframes eq { 0%, 100% { height: 18%; } 50% { height: 95%; } }
@media (prefers-reduced-motion: reduce) { .hero-eq i { animation: none; height: 60%; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.card p { margin: 0 0 14px; color: var(--muted); }
.card .kicker { display: inline-block; margin-bottom: 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-links a { font-weight: 600; text-decoration: none; margin-right: 14px; }
.card.notice { border-color: rgba(245, 185, 74, 0.35); background: linear-gradient(180deg, rgba(245, 185, 74, 0.07), var(--panel)); }
.card.notice h2 { color: var(--amber); }
.card.wide { grid-column: 1 / -1; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 24px 0 44px; color: var(--muted); font-size: 0.87rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
body.site .site-foot a { color: var(--muted); text-decoration: none; }
body.site .site-foot a:hover { color: var(--text); }

/* Legal and account pages */
body.site .legal-page, body.site .account-page { max-width: 760px; margin: 0 auto; padding: 8px 16px 64px; }
body.site .legal-page-nav { display: flex; gap: 6px; flex-wrap: wrap; padding: 20px 0 28px; }
body.site .legal-page-nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
body.site .legal-page-nav a:first-child { color: var(--text); font-weight: 700; padding-left: 0; }
body.site .legal-page-nav a:hover { color: var(--text); background: var(--panel-strong); }
body.site .legal-body { max-height: none; overflow: visible; }
body.site .legal-body, body.site .account-page-form { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
body.site .account-page-form { display: flex; justify-content: center; background: transparent; border: 0; padding: 0; }
body.site .legal-page > article > h1, body.site .account-page > h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -0.01em; }

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 5vh; }
  .hero-eq { height: 140px; }
}

/* Signed-in chip in the header (site.js). */
body.site .site-account { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; }
body.site .site-account span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-account-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; flex: none; }
body.site [hidden] { display: none !important; }
body.site .account-page-optin { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; color: var(--muted); font-size: 0.92rem; cursor: pointer; }
body.site .account-page-optin input { margin-top: 4px; accent-color: var(--violet); }
