/* UniversalX website. Colors and themes match the app's "Nebula" palette. */
:root {
  --void: #05060f;
  --panel: #11162e;
  --panel-2: #0c1022;
  --blue: #4d7cff;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --text: #e8ecff;
  --muted: #8e98c0;
  --faint: #5b6490;
  --ok: #3ddc84;
  --warn: #ffb84d;
  --danger: #ff6b81;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  /* these four change with the theme chosen in the app */
  --base: var(--void);
  --accent: var(--blue);
  --accent-2: var(--violet);
  --accent-3: var(--cyan);
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --grad-wide: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  --radius: 18px;
  --font-display: "Unbounded", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--base); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--panel); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

#galaxy { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(520px, 100% - 32px); margin-inline: auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(1.3); background: color-mix(in srgb, var(--base) 72%, transparent); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; letter-spacing: 0.5px; color: var(--text); font-weight: 300; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 800; color: var(--accent-3); }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a.link { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; transition: color 0.2s, background 0.2s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
.nav-user { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: 14px; }
.nav-user:hover { text-decoration: none; background: rgba(255, 255, 255, 0.06); }
@media (max-width: 780px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 14px 20px 20px; background: color-mix(in srgb, var(--base) 96%, black); border-bottom: 1px solid var(--line); gap: 6px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 6px 0 0; }
  .nav a.link { padding: 12px 14px; }
}

/* buttons */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 24px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05); color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.2s, border-color 0.2s; text-decoration: none; }
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn.primary { border: 0; background: var(--grad); background-size: 140% 140%; box-shadow: 0 6px 28px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25); animation: sheen 6s ease-in-out infinite; }
.btn.primary:hover { box-shadow: 0 8px 40px color-mix(in srgb, var(--accent-2) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn.small { --h: 38px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn.danger { border-color: color-mix(in srgb, var(--danger) 55%, transparent); color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #1a0509; border-color: transparent; }
.btn.block { display: flex; width: 100%; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* surfaces */
.glass { background: linear-gradient(160deg, rgba(23, 29, 62, 0.72), rgba(12, 16, 34, 0.72)); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(16px); }
.glass.glow { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 24px 80px -30px color-mix(in srgb, var(--accent-2) 55%, transparent); }
.pad { padding: 28px; }
@media (max-width: 560px) { .pad { padding: 20px; } }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, textarea.input, select.input { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
select.input option { background: var(--panel); }
textarea.input { min-height: 96px; resize: vertical; }
.input:hover { background: rgba(255, 255, 255, 0.07); }
.input:focus { outline: none; border-color: var(--accent-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-3) 22%, transparent); }
.input-row { position: relative; }
.input-row .input { padding-right: 84px; }
.input-row .reveal-pw { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.input-row .reveal-pw:hover { color: var(--text); }
.msg { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.msg.error { background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: #ffd3da; }
.msg.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); border-color: color-mix(in srgb, var(--ok) 38%, transparent); color: #c9f7dc; }
.msg.info { background: rgba(255, 255, 255, 0.05); border-color: var(--line-strong); color: var(--muted); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); transition: background 0.25s; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); }
.switch input:checked + span { background: var(--grad); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-3); outline-offset: 3px; }
.row { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .t { font-weight: 700; }
.row .s { color: var(--muted); font-size: 14px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* avatar & status */
.avatar { position: relative; width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: calc(var(--s, 44px) * 0.42); background: var(--grad); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dot { position: absolute; right: -1px; bottom: -1px; width: 28%; height: 28%; min-width: 10px; min-height: 10px; border-radius: 50%; background: #4a5170; border: 2px solid var(--panel-2); }
.dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* toasts, dialogs */
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; width: min(440px, 100% - 32px); }
.toast { padding: 14px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); animation: toast-in 0.35s var(--ease); }
.toast.error { border-color: color-mix(in srgb, var(--danger) 60%, transparent); }
.toast.ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
dialog { border: 1px solid var(--line-strong); border-radius: 22px; background: var(--panel); color: var(--text); padding: 0; width: min(460px, 100% - 32px); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); }
dialog::backdrop { background: rgba(3, 4, 12, 0.72); backdrop-filter: blur(4px); }
dialog .dlg { padding: 26px; }
dialog h3 { font-size: 20px; margin-bottom: 8px; }
dialog .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* logo */
.logo { overflow: visible; }
.logo .orbit { transform-origin: 50% 50%; animation: orbit 8s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* hero */
.hero { position: relative; padding: 92px 0 56px; min-height: calc(100vh - 68px); display: grid; align-items: center; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 .grad { background: var(--grad-wide); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: #b7c0e6; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero .meta { margin-top: 22px; color: var(--muted); font-size: 14px; }
.hero-stage { position: relative; perspective: 1400px; }
.hero-stage .tilt { transition: transform 0.25s var(--ease); transform-style: preserve-3d; }
@media (max-width: 960px) { .hero { padding-top: 56px; min-height: 0; } .hero .grid { grid-template-columns: 1fr; gap: 44px; } }
.hero h1, .hero .lead, .hero .cta-row, .hero .meta, .hero-stage { animation: rise 0.9s var(--ease) both; }
.hero .lead { animation-delay: 0.12s; }
.hero .cta-row { animation-delay: 0.22s; }
.hero .meta { animation-delay: 0.3s; }
.hero-stage { animation-delay: 0.25s; animation-duration: 1.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* app mockups */
.win { border-radius: 16px; overflow: hidden; background: #070a18; border: 1px solid var(--line-strong); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 120px -40px color-mix(in srgb, var(--accent-2) 70%, transparent); }
.win .chrome { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--line); }
.win .chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.win .chrome span { margin: 0 auto; font-size: 12px; color: var(--faint); }
.app { display: grid; grid-template-columns: 168px 1fr; height: 400px; font-size: 12px; position: relative; }
.app .side { background: linear-gradient(180deg, #0b1030, #0a0620); padding: 16px 12px; display: grid; align-content: start; gap: 4px; border-right: 1px solid var(--line); }
.app .side .brand { font-size: 15px; margin-bottom: 14px; gap: 7px; }
.app .side a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; color: var(--muted); cursor: default; }
.app .side a:hover { text-decoration: none; }
.app .side a.on { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); }
.app .side svg { width: 14px; height: 14px; }
.app .main { padding: 18px 18px 74px; overflow: hidden; background: radial-gradient(90% 70% at 80% 0%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 70%); }
.app h4 { font-family: var(--font-body); font-size: 18px; font-weight: 800; letter-spacing: 0; }
.app .sub { color: var(--muted); margin: 2px 0 14px; }
.app .shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.art { background: var(--g, var(--grad)); }
.app .card .art { aspect-ratio: 1; border-radius: 10px; }
.app .card b { display: block; margin-top: 6px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .card small { color: var(--muted); font-size: 10.5px; }
.app .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; background: rgba(8, 10, 26, 0.92); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; padding: 0 16px; gap: 12px; }
.app .np { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app .np .art { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.app .np b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .np small { color: var(--muted); }
.app .ctl { display: grid; gap: 7px; justify-items: center; }
.app .ctl .btns { display: flex; gap: 14px; align-items: center; color: var(--muted); }
.app .ctl .play { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #0a0d1f; }
.app .prog { width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.app .prog i { display: block; height: 100%; width: 38%; background: var(--grad-wide); border-radius: 4px; animation: prog 24s linear infinite; }
@keyframes prog { from { width: 4%; } to { width: 96%; } }
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; justify-self: end; }
.eq i { width: 3px; border-radius: 2px; background: var(--grad); height: 40%; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; } .eq i:nth-child(4) { animation-delay: -0.15s; } .eq i:nth-child(5) { animation-delay: -0.8s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (max-width: 640px) { .app { grid-template-columns: 1fr; height: 360px; } .app .side { display: none; } .app .shelf { grid-template-columns: repeat(3, 1fr); } .app .shelf .card:nth-child(n+4) { display: none; } .app .bar { grid-template-columns: 1fr 1fr; } .app .bar .eq { display: none; } }

.phone { width: min(260px, 100%); margin-inline: auto; border-radius: 34px; border: 1px solid var(--line-strong); background: #060818; padding: 14px 14px 18px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 100px -40px color-mix(in srgb, var(--accent) 80%, transparent); }
.phone .notch { width: 70px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); margin: 2px auto 16px; }
.phone .cover { aspect-ratio: 1; border-radius: 22px; position: relative; overflow: hidden; }
.phone .cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 30% 25%, rgba(255, 255, 255, 0.32), transparent 60%); }
.phone h5 { margin: 18px 0 2px; font-size: 17px; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
.phone p { color: var(--muted); font-size: 13px; }
.phone .prog { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); margin: 16px 0 8px; overflow: hidden; }
.phone .prog i { display: block; height: 100%; width: 42%; background: var(--grad-wide); }
.phone .times { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.phone .btns { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 14px; color: var(--muted); }
.phone .btns .play { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; }
.friends-mock { padding: 18px; display: grid; gap: 10px; }
.friends-mock h4 { font-family: var(--font-body); font-size: 18px; font-weight: 800; letter-spacing: 0; }
.fm-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.fm-row b { display: block; font-size: 14px; line-height: 1.2; }
.fm-row small { color: var(--muted); font-size: 12px; }
.fm-row small.on { color: var(--ok); }

/* landing sections */
section.block { padding: 96px 0; position: relative; }
section.block h2 { font-size: clamp(28px, 3.6vw, 46px); max-width: 16em; }
section.block .intro { color: #b7c0e6; max-width: 36em; margin-top: 18px; font-size: 18px; }
.sync-viz { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; }
.sync-viz .node { text-align: center; padding: 26px 18px; }
.sync-viz .node h3 { font-size: 17px; margin-top: 14px; }
.sync-viz .node p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.sync-viz .icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(77, 124, 255, 0.25), rgba(168, 85, 247, 0.2)); border: 1px solid var(--line-strong); }
.sync-viz .icon svg { width: 30px; height: 30px; }
.sync-viz .core { position: relative; height: 150px; }
.sync-viz .core svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sync-viz .flow { stroke-dasharray: 5 9; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@media (max-width: 820px) { .sync-viz { grid-template-columns: 1fr; } .sync-viz .core { display: none; } }
.feat { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.feat .sticky { position: sticky; top: 110px; }
.feat ul { list-style: none; margin: 0; padding: 0; }
.feat li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.feat li:first-child { border-top: 0; padding-top: 0; }
.feat li .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-3); }
.feat li .ic svg { width: 22px; height: 22px; }
.feat li h3 { font-size: 18px; margin-bottom: 6px; }
.feat li p { color: #b7c0e6; max-width: 34em; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; gap: 36px; } .feat .sticky { position: static; } }
.theme-pick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.theme-pick button { display: flex; align-items: center; gap: 9px; padding: 9px 16px 9px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); cursor: pointer; font-weight: 700; font-size: 14px; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.theme-pick button:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-1px); }
.theme-pick button[aria-pressed="true"] { border-color: var(--text); background: rgba(255, 255, 255, 0.1); }
.theme-pick .sw { display: inline-flex; }
.theme-pick .sw i { width: 12px; height: 12px; border-radius: 50%; margin-right: -3px; border: 1.5px solid #05060f; }
.shots { display: grid; grid-template-columns: 1.6fr 0.7fr; gap: 28px; align-items: end; margin-top: 56px; }
.shots .stack { display: grid; gap: 28px; }
@media (max-width: 960px) { .shots { grid-template-columns: 1fr; } }
.cap { color: var(--muted); font-size: 13px; margin-top: 12px; }
.cta-band { padding: 56px; border-radius: 28px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); }
.cta-band p { color: #b7c0e6; margin-top: 10px; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 32px 26px; } }
.site-footer { border-top: 1px solid var(--line); padding: 38px 0 48px; margin-top: 60px; color: var(--muted); font-size: 14px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* auth */
.auth-page { min-height: calc(100vh - 68px); display: grid; align-items: center; padding: 48px 0; }
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-card .alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.strength { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 8px; }
.strength i { display: block; height: 100%; width: 0; transition: width 0.3s, background 0.3s; }

/* download */
.page-head { padding: 72px 0 28px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 54px); }
.page-head p { color: #b7c0e6; margin-top: 14px; max-width: 34em; font-size: 18px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
@media (max-width: 800px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { padding: 30px; display: grid; gap: 14px; align-content: start; }
.dl-card.rec { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-3) 45%, transparent), 0 30px 90px -40px var(--accent); }
.dl-card h2 { font-size: 22px; }
.dl-card .req { color: var(--muted); font-size: 14px; }
.dl-card .hash { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; color: var(--faint); word-break: break-all; }
.dl-card .hash button { background: none; border: 0; color: var(--accent-3); cursor: pointer; padding: 0 0 0 6px; font: inherit; }
.steps { margin: 6px 0 0; padding-left: 20px; color: #b7c0e6; font-size: 14.5px; display: grid; gap: 6px; }
.notes { margin-top: 40px; padding: 30px; }
.notes h2 { font-size: 22px; margin-bottom: 14px; }
.notes ul { margin: 0; padding-left: 20px; color: #b7c0e6; display: grid; gap: 8px; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--accent-3) 18%, transparent); color: var(--accent-3); border: 1px solid color-mix(in srgb, var(--accent-3) 40%, transparent); }

/* dashboard */
.dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding: 40px 0 20px; align-items: start; }
.dash .rail { position: sticky; top: 92px; display: grid; gap: 6px; }
.rail .who { display: flex; align-items: center; gap: 14px; padding: 6px 6px 18px; min-width: 0; }
.rail .who div { min-width: 0; }
.rail .who b { display: block; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.rail .who small { color: var(--muted); }
.dash .tabs { display: grid; gap: 4px; }
.dash .tabs button { display: flex; align-items: center; gap: 12px; text-align: left; background: none; border: 0; padding: 12px 14px; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.dash .tabs button:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.dash .tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); }
.dash .tabs svg { width: 18px; height: 18px; flex: none; }
.dash .tabs .count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent-2); color: #fff; font-size: 12px; text-align: center; }
.dash .signout { margin-top: 14px; }
.panel { display: none; }
.panel.on { display: block; animation: panel-in 0.35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.panel > h1 { font-size: 28px; margin-bottom: 6px; }
.panel > .sub { color: var(--muted); margin-bottom: 26px; }
.stack-y { display: grid; gap: 22px; }
.card-h { font-size: 18px; margin-bottom: 14px; }
.profile-top { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.profile-top .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.list { display: grid; gap: 8px; }
.person { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.person .who { flex: 1; min-width: 0; }
.person .who b { display: block; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .who small { color: var(--muted); font-size: 13px; }
.person .who small.on { color: var(--ok); }
.person .btns { display: flex; gap: 8px; }
.person.click { cursor: pointer; transition: background 0.2s; }
.person.click:hover { background: rgba(255, 255, 255, 0.08); }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 16px; }
.pl { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
.pl summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; }
.pl summary::-webkit-details-marker { display: none; }
.pl summary .art { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.pl summary b { display: block; }
.pl summary small { color: var(--muted); }
.pl ol { margin: 0; padding: 4px 16px 16px 52px; color: #b7c0e6; display: grid; gap: 4px; font-size: 14.5px; }
.pl ol small { color: var(--faint); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background: var(--c); transition: transform 0.2s var(--ease), border-color 0.2s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px var(--base), 0 0 18px var(--c); }
.swatches button.auto { background: conic-gradient(var(--blue), var(--violet), var(--cyan), var(--blue)); }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.themes button { text-align: left; padding: 14px; height: 92px; border-radius: 16px; border: 2px solid var(--line); cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; background: var(--bg); color: var(--text); font-weight: 700; transition: transform 0.2s var(--ease), border-color 0.2s; }
.themes button:hover { transform: translateY(-2px); }
.themes button[aria-pressed="true"] { border-color: #fff; }
.themes .sw { display: flex; gap: 5px; }
.themes .sw i { width: 14px; height: 14px; border-radius: 50%; }
.session { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.session:first-child { border-top: 0; }
.session small { color: var(--muted); display: block; }
.saved { color: var(--muted); font-size: 13px; min-height: 20px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-strong); color: var(--muted); }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.loading-screen { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  .dash .rail { position: static; }
  .rail .who { padding-bottom: 8px; }
  .dash .tabs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .dash .tabs button { white-space: nowrap; padding: 10px 14px; }
  .dash .signout { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* sample artwork used by the app previews (same idea as the app's generated covers) */
.g1 { --g: linear-gradient(135deg, #4d7cff, #a855f7 60%, #22d3ee); }
.g2 { --g: linear-gradient(135deg, #ff4d8d, #a855f7); }
.g3 { --g: linear-gradient(135deg, #19e3b1, #3b82f6); }
.g4 { --g: linear-gradient(135deg, #ffa23a, #ff4d8d); }
.g5 { --g: linear-gradient(135deg, #22d3ee, #4d7cff 70%, #1a0b3b); }
.g6 { --g: linear-gradient(135deg, #7c3aed, #0a2a6b); }
.g7 { --g: linear-gradient(135deg, #b6ff3b, #19e3b1); }
.g8 { --g: linear-gradient(135deg, #c4b5fd, #4d7cff); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.mt { margin-top: 18px; }
.center { text-align: center; }
.friends-wrap { margin-top: 28px; max-width: 420px; }
