/* =========================================================================
   001 YouJam — Premium Apple / iCloud aesthetic (no glassmorphism)
   Clean solid surfaces · refined typography · soft shadows · musical bg
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Brand accent (user-tunable via JS) */
  --user-mesh-brand: #0a84ff;
  --user-mesh-coral: #64d2ff;
  --user-mesh-deep: #0040a0;

  /* Surfaces */
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-sunken: #f5f5f7;
  --surface-hover: #f0f0f3;

  /* Borders / hairlines */
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);
  --hairline: rgba(0, 0, 0, 0.08);

  /* Text */
  --text: #1d1d1f;
  --text-soft: #424245;
  --muted: #86868b;
  --muted-2: #a1a1a6;

  /* Accent */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-press: #006edb;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --accent-ring: rgba(0, 113, 227, 0.35);
  --on-accent: #ffffff;

  /* Feedback */
  --success: #1a8f4c;
  --danger: #d93b30;
  --danger-soft: rgba(217, 59, 48, 0.1);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 8px 24px rgba(0, 113, 227, 0.28);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Layout */
  --content-max: 1200px;
  --content-wide: 1280px;
  --header-h: 64px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.24s;

  /* Fonts */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

html.theme-dark {
  color-scheme: dark;

  --user-mesh-brand: #0a84ff;
  --user-mesh-coral: #64d2ff;
  --user-mesh-deep: #003a8c;

  --page-bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --surface-sunken: #151517;
  --surface-hover: #2c2c2e;

  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --hairline: rgba(255, 255, 255, 0.08);

  --text: #f5f5f7;
  --text-soft: #d1d1d6;
  --muted: #98989d;
  --muted-2: #7c7c80;

  --accent: #0a84ff;
  --accent-hover: #329bff;
  --accent-press: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --accent-ring: rgba(10, 132, 255, 0.45);
  --on-accent: #ffffff;

  --success: #30d158;
  --danger: #ff453a;
  --danger-soft: rgba(255, 69, 58, 0.16);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
  --shadow-accent: 0 8px 24px rgba(10, 132, 255, 0.4);
}

/* -------------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body.app-body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea,
select {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-family: var(--font-display);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--text-soft);
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Theme fade guard */
html:not(.theme-ready) * {
  transition: none !important;
}

/* Accessibility helpers */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: calc(12px + var(--safe-top));
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* Typography helpers */
.muted {
  color: var(--muted);
}

.eyebrow,
.card-kicker,
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-kicker {
  color: var(--muted);
  margin-bottom: 6px;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feedback {
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.2em;
}

.feedback.is-error {
  color: var(--danger);
}

/* Toast notifications */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  z-index: 320;
  transform: translateX(-50%) translateY(12px);
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(20, 20, 24, 0.94);
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.28s var(--ease-out),
    transform 0.28s var(--ease-out);
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.app-toast.is-error {
  background: rgba(120, 20, 24, 0.95);
  border-color: rgba(255, 69, 58, 0.35);
}

.app-toast__message {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

html:not(.theme-dark) .app-toast:not(.is-error) {
  background: rgba(28, 28, 30, 0.94);
}

.text-gradient {
  background: linear-gradient(120deg, var(--accent), var(--user-mesh-coral, #64d2ff));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* -------------------------------------------------------------------------
   3. ATMOSPHERE (.bg-mesh) — Spotify-like scenes
   ------------------------------------------------------------------------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #070709;
  --scene-a: #3b82f6;
  --scene-b: #0ea5e9;
  --scene-c: #1e3a8a;
  --scene-art: none;
}

.bg-mesh__base {
  position: absolute;
  inset: 0;
  background: #070709;
  transition: background 0.8s var(--ease);
}

.bg-mesh__art {
  position: absolute;
  inset: -12%;
  background-image: var(--scene-art);
  background-size: cover;
  background-position: center;
  filter: blur(72px) saturate(1.35) brightness(0.55);
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 0.9s var(--ease), background-image 0.6s var(--ease);
}

.bg-mesh__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  transition:
    background 0.9s var(--ease),
    opacity 0.9s var(--ease),
    transform 1.2s var(--ease);
  will-change: transform, opacity;
}

.bg-mesh__glow--a {
  width: min(72vw, 720px);
  height: min(72vw, 720px);
  top: -18%;
  left: -12%;
  background: var(--scene-a);
  animation: scene-drift-a 28s ease-in-out infinite alternate;
}

.bg-mesh__glow--b {
  width: min(58vw, 560px);
  height: min(58vw, 560px);
  top: 18%;
  right: -16%;
  background: var(--scene-b);
  opacity: 0.32;
  animation: scene-drift-b 34s ease-in-out infinite alternate;
}

.bg-mesh__glow--c {
  width: min(64vw, 640px);
  height: min(64vw, 640px);
  bottom: -22%;
  left: 28%;
  background: var(--scene-c);
  opacity: 0.28;
  animation: scene-drift-c 40s ease-in-out infinite alternate;
}

.bg-mesh__beam {
  position: absolute;
  inset: -20% -10%;
  opacity: 0.18;
  background: linear-gradient(
    115deg,
    transparent 20%,
    color-mix(in srgb, var(--scene-a) 35%, transparent) 42%,
    transparent 58%,
    color-mix(in srgb, var(--scene-b) 22%, transparent) 72%,
    transparent 85%
  );
  animation: scene-beam 22s ease-in-out infinite alternate;
  transition: opacity 0.8s var(--ease);
}

.bg-mesh__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.72));
}

.bg-mesh__noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

@keyframes eq-bounce {
  0%,
  100% {
    transform: scaleY(0.4);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes scene-drift-a {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(6%, 4%, 0) scale(1.12); }
}

@keyframes scene-drift-b {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-5%, 6%, 0) scale(1.18); }
}

@keyframes scene-drift-c {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4%, -5%, 0) scale(1.1); }
}

@keyframes scene-beam {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(-3%, 2%, 0) rotate(4deg); }
}

@keyframes scene-beam-landing {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(-5%, 3%, 0) rotate(6deg) scale(1.06); }
}

@keyframes landing-hue {
  0% { filter: hue-rotate(0deg) saturate(1.05); }
  50% { filter: hue-rotate(22deg) saturate(1.2); }
  100% { filter: hue-rotate(-12deg) saturate(1.1); }
}

/* Scene: landing — vivid wash, not flat charcoal */
.bg-mesh[data-scene="landing"] {
  --scene-a: #4f8cff;
  --scene-b: #38bdf8;
  --scene-c: #6366f1;
  background: #0a1020;
}

.bg-mesh[data-scene="landing"] .bg-mesh__base {
  background:
    radial-gradient(90% 70% at 15% 10%, color-mix(in srgb, var(--scene-a) 42%, transparent), transparent 55%),
    radial-gradient(80% 60% at 90% 30%, color-mix(in srgb, var(--scene-b) 34%, transparent), transparent 50%),
    radial-gradient(70% 55% at 50% 100%, color-mix(in srgb, var(--scene-c) 30%, transparent), transparent 55%),
    #0a1020;
  animation: landing-hue 42s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="landing"] .bg-mesh__glow {
  filter: blur(68px);
}

.bg-mesh[data-scene="landing"] .bg-mesh__glow--a {
  opacity: 0.72;
  animation: scene-drift-a 22s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="landing"] .bg-mesh__glow--b {
  opacity: 0.56;
  animation: scene-drift-b 28s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="landing"] .bg-mesh__glow--c {
  opacity: 0.48;
  animation: scene-drift-c 34s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="landing"] .bg-mesh__beam {
  opacity: 0.42;
  background: linear-gradient(
    115deg,
    transparent 18%,
    color-mix(in srgb, var(--scene-a) 55%, transparent) 40%,
    transparent 56%,
    color-mix(in srgb, var(--scene-b) 40%, transparent) 70%,
    transparent 84%
  );
  animation: scene-beam-landing 16s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="landing"] .bg-mesh__blob--1,
.bg-mesh[data-scene="landing"] .bg-mesh__blob--2 {
  opacity: 0.55;
}

.bg-mesh[data-scene="landing"] .bg-mesh__wave {
  opacity: 0.45;
}

.bg-mesh[data-scene="landing"] .bg-mesh__vignette {
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 48%, rgba(0, 0, 0, 0.32) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.42));
}

/* Scene: hub (logado, escolhendo jam) */
.bg-mesh[data-scene="hub"] {
  --scene-a: var(--user-mesh-brand, #ff8a1f);
  --scene-b: var(--user-mesh-coral, #ff5a00);
  --scene-c: var(--user-mesh-deep, #0b1f4a);
}

.bg-mesh[data-scene="hub"] .bg-mesh__base {
  background: #0a0a0c;
}

.bg-mesh[data-scene="hub"] .bg-mesh__glow--a {
  top: -18%;
  left: -10%;
  bottom: auto;
  width: min(72vw, 720px);
  height: min(72vw, 720px);
  border-radius: 50%;
  opacity: 0.42;
  transform: none;
  animation: scene-drift-a 26s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="hub"] .bg-mesh__glow--b {
  top: 18%;
  right: -14%;
  opacity: 0.34;
  animation: scene-drift-b 32s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="hub"] .bg-mesh__glow--c {
  opacity: 0.26;
  animation: scene-drift-c 38s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="hub"] .bg-mesh__beam {
  opacity: 0.16;
  animation: scene-beam 20s ease-in-out infinite alternate;
  background: linear-gradient(
    115deg,
    transparent 20%,
    color-mix(in srgb, var(--scene-a) 40%, transparent) 42%,
    transparent 58%,
    color-mix(in srgb, var(--scene-b) 28%, transparent) 72%,
    transparent 85%
  );
}

/* Scene: live jam (sem faixa / pausado) */
.bg-mesh[data-scene="live"] .bg-mesh__base {
  background: #050505;
}

.bg-mesh[data-scene="live"] .bg-mesh__glow--a {
  opacity: 0.42;
  animation: scene-drift-a 28s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="live"] .bg-mesh__glow--b {
  opacity: 0.3;
  animation: scene-drift-b 34s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="live"] .bg-mesh__glow--c {
  opacity: 0.24;
  animation: scene-drift-c 40s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="live"] .bg-mesh__beam {
  opacity: 0.16;
  animation: scene-beam 22s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="live"] .bg-mesh__art {
  opacity: 0.35;
}

/* Scene: playing — capa + glow forte */
.bg-mesh[data-scene="playing"] .bg-mesh__base {
  background: #030303;
}

.bg-mesh[data-scene="playing"] .bg-mesh__art {
  opacity: 0.55;
}

.bg-mesh[data-scene="playing"] .bg-mesh__glow--a {
  opacity: 0.55;
  animation: scene-drift-a 18s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="playing"] .bg-mesh__glow--b {
  opacity: 0.4;
  animation: scene-drift-b 24s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="playing"] .bg-mesh__glow--c {
  opacity: 0.32;
  animation: scene-drift-c 30s ease-in-out infinite alternate;
}

.bg-mesh[data-scene="playing"] .bg-mesh__beam {
  opacity: 0.2;
  animation: scene-beam 16s ease-in-out infinite alternate;
}

/* Light theme — keep atmosphere alive (especially inside jam) */
html:not(.theme-dark) body.is-signed-in .bg-mesh__base,
html:not(.theme-dark) .bg-mesh[data-scene="hub"] .bg-mesh__base,
html:not(.theme-dark) .bg-mesh[data-scene="live"] .bg-mesh__base,
html:not(.theme-dark) .bg-mesh[data-scene="playing"] .bg-mesh__base {
  background: #f7f8fb;
}

html:not(.theme-dark) body.is-signed-in .bg-mesh__vignette {
  background:
    radial-gradient(110% 85% at 50% 0%, transparent 35%, rgba(255, 255, 255, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.42));
}

html:not(.theme-dark) body.is-signed-in .bg-mesh__glow {
  filter: blur(90px);
}

html:not(.theme-dark) body.is-signed-in .bg-mesh__glow--a {
  opacity: 0.38;
  animation: scene-drift-a 26s ease-in-out infinite alternate;
}

html:not(.theme-dark) body.is-signed-in .bg-mesh__glow--b {
  opacity: 0.3;
  animation: scene-drift-b 32s ease-in-out infinite alternate;
}

html:not(.theme-dark) body.is-signed-in .bg-mesh__glow--c {
  opacity: 0.24;
  animation: scene-drift-c 38s ease-in-out infinite alternate;
}

html:not(.theme-dark) body.is-signed-in .bg-mesh__beam {
  opacity: 0.22;
  animation: scene-beam 20s ease-in-out infinite alternate;
}

html:not(.theme-dark) body.is-signed-in .bg-mesh__art {
  filter: blur(72px) saturate(1.2) brightness(1.05);
  opacity: 0.34;
}

html:not(.theme-dark) body.is-signed-in .bg-mesh[data-scene="live"] .bg-mesh__glow--a,
html:not(.theme-dark) body.is-signed-in .bg-mesh[data-scene="playing"] .bg-mesh__glow--a {
  opacity: 0.36;
}

html:not(.theme-dark) body.is-signed-in .bg-mesh[data-scene="live"] .bg-mesh__glow--b,
html:not(.theme-dark) body.is-signed-in .bg-mesh[data-scene="playing"] .bg-mesh__glow--b {
  opacity: 0.28;
}

html:not(.theme-dark) body.is-signed-in .bg-mesh[data-scene="live"] .bg-mesh__beam,
html:not(.theme-dark) body.is-signed-in .bg-mesh[data-scene="playing"] .bg-mesh__beam {
  opacity: 0.22;
}

html:not(.theme-dark) body.is-signed-in .bg-mesh[data-scene="playing"] .bg-mesh__art {
  opacity: 0.42;
}

html:not(.theme-dark) body.is-signed-in .bg-mesh__noise {
  opacity: 0.03;
  mix-blend-mode: multiply;
}

/* Hub light: softer, still drifting */
html:not(.theme-dark) .bg-mesh[data-scene="hub"] .bg-mesh__glow--a {
  opacity: 0.34;
  animation: scene-drift-a 28s ease-in-out infinite alternate;
}

html:not(.theme-dark) .bg-mesh[data-scene="hub"] .bg-mesh__glow--b {
  opacity: 0.26;
}

html:not(.theme-dark) .bg-mesh[data-scene="hub"] .bg-mesh__beam {
  opacity: 0.2;
}

/* Soft morphing blobs + wave (landing music atmosphere) */
.bg-mesh__blob {
  position: absolute;
  border-radius: 42% 58% 55% 45%;
  filter: blur(56px);
  opacity: 0;
  pointer-events: none;
  will-change: transform, border-radius;
  mix-blend-mode: screen;
}

.bg-mesh__blob--1 {
  width: min(55vw, 520px);
  height: min(48vw, 440px);
  top: 8%;
  right: 8%;
  background: color-mix(in srgb, var(--scene-a) 55%, transparent);
  animation: blob-morph-a 26s ease-in-out infinite alternate;
}

.bg-mesh__blob--2 {
  width: min(48vw, 460px);
  height: min(42vw, 400px);
  bottom: 6%;
  left: 4%;
  background: color-mix(in srgb, var(--scene-b) 48%, transparent);
  animation: blob-morph-b 32s ease-in-out infinite alternate;
}

.bg-mesh__wave {
  position: absolute;
  inset: 18% -15% auto;
  height: 42%;
  opacity: 0;
  background:
    radial-gradient(ellipse 80% 55% at 20% 50%, color-mix(in srgb, var(--scene-a) 30%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 50% at 75% 45%, color-mix(in srgb, var(--scene-b) 26%, transparent), transparent 68%);
  filter: blur(40px);
  pointer-events: none;
  will-change: transform;
  animation: wave-drift 20s ease-in-out infinite alternate;
}

@keyframes blob-morph-a {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    border-radius: 42% 58% 55% 45%;
  }
  100% {
    transform: translate3d(-8%, 10%, 0) scale(1.2) rotate(12deg);
    border-radius: 58% 42% 48% 52%;
  }
}

@keyframes blob-morph-b {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    border-radius: 55% 45% 42% 58%;
  }
  100% {
    transform: translate3d(10%, -8%, 0) scale(1.16) rotate(-10deg);
    border-radius: 40% 60% 58% 42%;
  }
}

@keyframes wave-drift {
  0% {
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  100% {
    transform: translate3d(-6%, 4%, 0) scaleX(1.08);
  }
}

/* Drifting ambient orbs */
.bg-rand-orb {
  position: absolute;
  top: var(--orb-top, 20%);
  left: var(--orb-left, 10%);
  width: var(--orb-size, 140px);
  height: var(--orb-size, 140px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--orb-color, #56b8ff), transparent 68%);
  opacity: var(--orb-opacity, 0.28);
  filter: blur(22px);
  pointer-events: none;
  will-change: transform;
  mix-blend-mode: screen;
  animation: orb-drift var(--orb-duration, 24s) ease-in-out infinite alternate;
  animation-delay: var(--orb-delay, 0s);
}

@keyframes orb-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18vw, -10vh, 0) scale(1.22);
  }
  100% {
    transform: translate3d(-12vw, 14vh, 0) scale(0.9);
  }
}

html:not(.theme-dark) .bg-rand-orb {
  filter: blur(28px);
  mix-blend-mode: multiply;
  opacity: calc(var(--orb-opacity, 0.28) * 1.15);
}

.bg-mesh[data-scene="landing"] .bg-rand-orb {
  opacity: calc(var(--orb-opacity, 0.28) * 1.45);
  filter: blur(18px);
}

html:not(.theme-dark) body.is-landing .bg-rand-orb {
  mix-blend-mode: multiply;
  opacity: calc(var(--orb-opacity, 0.28) * 1.55);
  filter: blur(24px);
}

/* -------------------------------------------------------------------------
   4. HEADER
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: var(--safe-top);
  background: rgba(245, 245, 247, 0.92);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

html.theme-dark .site-header {
  background: rgba(0, 0, 0, 0.88);
}

.site-header--scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

html.theme-dark .site-header--scrolled {
  background: rgba(28, 28, 30, 0.96);
}

.site-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header-end {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 4px 2px;
  transition: color var(--dur) var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo-img {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
}

html.theme-dark .logo-img {
  filter: none;
}

.logo--sm .logo-img {
  width: 28px;
  height: 28px;
}

@media (max-width: 480px) {
  .logo-img {
    width: 30px;
    height: 30px;
  }
}

.logo--center {
  justify-content: center;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 4px;
  border-radius: var(--r-pill);
  color: var(--text-soft);
}

.theme-toggle__track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
  flex-shrink: 0;
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease);
}

.theme-toggle.is-dark .theme-toggle__track {
  background: var(--accent);
  border-color: var(--accent);
}

.theme-toggle.is-dark .theme-toggle__thumb {
  transform: translateX(20px);
}

.theme-toggle__label {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 3.2em;
  text-align: left;
}

/* Topbar user — iCloud-like capsule */
.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.topbar-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 999px;
  padding: 2px 12px 2px 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.topbar-user-trigger:hover {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.topbar-user-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
  min-width: 0;
  max-width: 160px;
}

.profile-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-plan {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.profile-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.profile-plan {
  font-size: 0.72rem;
  color: var(--muted);
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease);
}

.btn-text:hover {
  background: var(--accent-soft);
}

.btn-text--muted {
  color: var(--muted);
}

.btn-text--muted:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.header-cta {
  flex-shrink: 0;
}

/* Hamburger nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  position: relative;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle__bars::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* -------------------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.button:active {
  transform: scale(0.97);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-accent);
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--muted-2);
}

.button-secondary--on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.button-secondary--on-dark:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.button-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: transparent;
}

.button-ghost:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}

.button-ghost--on-dark {
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.button-ghost--on-dark:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.button-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.88rem;
}

.button-lg {
  min-height: 50px;
  padding: 14px 28px;
  font-size: 1rem;
}

.button-xl {
  min-height: 56px;
  padding: 16px 34px;
  font-size: 1.05rem;
}

.button-full {
  width: 100%;
}

.button-google {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.button-google:hover:not(:disabled) {
  background: var(--surface-hover);
}

.button-google-icon {
  display: inline-flex;
  align-items: center;
}

.button-google-label {
  font-weight: 600;
}

/* Mini button (queue actions) */
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.mini-button:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   6. FORMS
   ------------------------------------------------------------------------- */
.text-input,
.text-area {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 13px 16px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.text-input::placeholder,
.text-area::placeholder {
  color: var(--muted-2);
}

.text-input:focus,
.text-area:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.text-input:read-only {
  background: var(--surface-sunken);
  color: var(--muted);
}

.text-area {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* -------------------------------------------------------------------------
   7. CARDS (shared)
   ------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* -------------------------------------------------------------------------
   8. LANDING
   ------------------------------------------------------------------------- */
.landing-shell {
  display: block;
}

.landing-shell__alerts {
  padding-top: var(--space-8);
}

.marketing-band {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 32px);
}

.marketing-band--hero {
  padding-top: clamp(32px, 5vw, 64px);
}

.marketing-band--soft {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.marketing-band__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.marketing-band__inner--wide {
  max-width: var(--content-wide);
}

/* Hero */
.marketing-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.marketing-hero__glow {
  position: absolute;
  inset: -10% -5%;
  z-index: -1;
  background: radial-gradient(50% 50% at 30% 40%, var(--accent-soft), transparent 70%);
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
}

.marketing-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.hero-brand {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-brand--on-dark {
  color: #fff;
}

.marketing-hero__lead {
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--text-soft);
  max-width: 32ch;
  font-weight: 500;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 28px;
  color: var(--text-soft);
  font-weight: 500;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.hero-points li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: translateY(-60%) rotate(45deg);
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 32px);
  margin-top: var(--space-2);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero jam preview — product-like session card */
.hero-jam {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.hero-jam__aura {
  position: absolute;
  inset: 8% -8% -8% 8%;
  border-radius: 40% 60% 55% 45%;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--user-mesh-brand) 35%, transparent), transparent 55%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--user-mesh-coral) 40%, transparent), transparent 50%);
  filter: blur(28px);
  z-index: 0;
  animation: float-y 9s ease-in-out infinite;
}

.hero-jam__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 24px 60px rgba(0, 0, 0, 0.1);
}

html.theme-dark .hero-jam__card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-jam__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-jam__kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-jam__room {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-jam__sync {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.hero-jam__now {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}

.hero-jam__art {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.hero-jam__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-jam__now-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-jam__now-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-jam__now-copy strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-jam__now-copy span {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-jam__queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-jam__queue li {
  display: grid;
  grid-template-columns: 18px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-sunken) 70%, transparent);
}

.hero-jam__q-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-2);
}

.hero-jam__q-cover {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.hero-jam__q-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-jam__q-meta {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.hero-jam__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.hero-jam__people {
  display: flex;
  align-items: center;
}

.hero-jam__av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -8px;
  object-fit: cover;
  background: var(--surface-sunken);
}

.hero-jam__av:first-child {
  margin-left: 0;
}

.hero-jam__people em {
  margin-left: 10px;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.hero-jam__host {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Section headings */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head--center {
  align-items: center;
  text-align: center;
}

.section-label--pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.section-head--center .section-label--pill {
  align-self: center;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.85);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
}

.section-head--center .section-lead {
  margin: 0 auto;
}

/* Feature bento (recursos) */
.feature-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.feature-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 260px;
  padding: clamp(22px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease);
}

.feature-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature-tile__visual {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  border-radius: 20px;
  background: var(--surface-sunken);
}

.feature-tile--sync .feature-tile__visual {
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--surface-sunken);
}

.feature-tile--invite .feature-tile__visual {
  background:
    radial-gradient(circle at 70% 30%, color-mix(in srgb, #64d2ff 22%, transparent), transparent 55%),
    var(--surface-sunken);
}

.feature-tile--queue .feature-tile__visual {
  background:
    radial-gradient(circle at 40% 70%, color-mix(in srgb, #30d158 16%, transparent), transparent 55%),
    var(--surface-sunken);
  padding: 14px 16px;
  align-items: stretch;
}

.feature-tile--host .feature-tile__visual {
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, #ff9f0a 16%, transparent), transparent 58%),
    var(--surface-sunken);
  padding: 14px 16px;
  align-items: stretch;
}

.feature-tile__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-tile__index {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.feature-tile h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.feature-tile__copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 32ch;
}

.feature-tile__eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
}

.feature-tile__eq span {
  width: 6px;
  border-radius: 999px;
  background: var(--accent);
  animation: eq-bounce 1.05s ease-in-out infinite;
}

.feature-tile__eq span:nth-child(1) { height: 35%; }
.feature-tile__eq span:nth-child(2) { height: 70%; animation-delay: -0.12s; }
.feature-tile__eq span:nth-child(3) { height: 100%; animation-delay: -0.28s; }
.feature-tile__eq span:nth-child(4) { height: 55%; animation-delay: -0.4s; }
.feature-tile__eq span:nth-child(5) { height: 85%; animation-delay: -0.18s; }
.feature-tile__eq span:nth-child(6) { height: 45%; animation-delay: -0.5s; }

.feature-tile__link-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: -0.01em;
}

.feature-tile__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent);
  animation: feature-pulse 2.2s ease-in-out infinite;
}

.feature-tile__tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-tile__tracks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.feature-tile__tracks li.is-live {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-soft);
  color: var(--text);
}

.feature-tile__tracks i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
  flex-shrink: 0;
}

.feature-tile__tracks li.is-live i {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.feature-tile__tracks b {
  font-weight: 600;
  font-size: 0.85rem;
}

.feature-tile__deck {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.feature-tile__deck-track {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
}

.feature-tile__deck-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.feature-tile__deck-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-tile__deck-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff9f0a;
}

.feature-tile__deck-copy strong {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-tile__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.feature-tile__ctrl {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--border);
  color: var(--text-soft);
  line-height: 0;
  user-select: none;
}

.feature-tile__ctrl svg {
  display: block;
}

.feature-tile__ctrl--main {
  width: 42px;
  height: 42px;
  background: #fff;
  border-color: #fff;
  color: #111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

html.theme-dark .feature-tile__ctrl--main,
body.is-landing .feature-tile__ctrl--main {
  background: #fff;
  color: #111;
}

@keyframes feature-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

@media (max-width: 720px) {
  .feature-bento {
    grid-template-columns: 1fr;
  }

  .feature-tile {
    min-height: 220px;
  }
}

/* How it works — connected flow */
.how-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  position: relative;
}

.how-flow::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 35%, var(--border)) 15%,
    color-mix(in srgb, var(--accent) 35%, var(--border)) 85%,
    transparent
  );
  pointer-events: none;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.how-step__mark {
  display: flex;
  justify-content: center;
}

.how-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 12%, transparent);
}

.how-step__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  min-height: 100%;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.how-step:hover .how-step__panel {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.how-step__panel h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.how-step__panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.how-preview {
  margin-top: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}

.how-preview--invite {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how-preview__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-preview__av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--user-mesh-brand), var(--user-mesh-coral));
  flex-shrink: 0;
}

.how-preview__name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.how-preview__badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.how-preview__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
}

.how-preview__link em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.how-preview--queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.how-preview__track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid transparent;
}

.how-preview__track.is-active {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: var(--accent-soft);
}

.how-preview__bar {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--muted-2);
  flex-shrink: 0;
}

.how-preview__track.is-active .how-preview__bar {
  background: var(--accent);
}

.how-preview__track strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.how-preview--live {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-preview__now {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.how-preview__eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--user-mesh-brand), var(--user-mesh-deep));
}

.how-preview__eq span {
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  animation: eq-bounce 1s ease-in-out infinite;
}

.how-preview__eq span:nth-child(1) { height: 40%; }
.how-preview__eq span:nth-child(2) { height: 75%; animation-delay: -0.15s; }
.how-preview__eq span:nth-child(3) { height: 100%; animation-delay: -0.3s; }
.how-preview__eq span:nth-child(4) { height: 55%; animation-delay: -0.45s; }
.how-preview__eq span:nth-child(5) { height: 80%; animation-delay: -0.2s; }

.how-preview__now small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.how-preview__now strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.how-preview__people {
  display: flex;
  align-items: center;
  padding-left: 4px;
}

.how-preview__av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--surface-sunken);
  margin-left: -6px;
  object-fit: cover;
  background: var(--surface);
}

.how-preview__av:first-child {
  margin-left: 0;
}

.how-preview__people em {
  margin-left: 10px;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 860px) {
  .how-flow {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .how-flow::before {
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(
      180deg,
      transparent,
      color-mix(in srgb, var(--accent) 35%, var(--border)) 12%,
      color-mix(in srgb, var(--accent) 35%, var(--border)) 88%,
      transparent
    );
  }

  .how-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
  }

  .how-step__mark {
    justify-content: flex-start;
  }
}

/* Spotlight */
.marketing-band--spotlight {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(24px, 4vw, 48px);
}

.spotlight-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: linear-gradient(140deg, var(--user-mesh-deep), color-mix(in srgb, var(--user-mesh-brand) 60%, #101a3a));
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.spotlight-panel__copy h2 {
  color: #fff;
  margin: 12px 0;
}

.spotlight-panel__copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.spotlight-panel__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.spotlight-panel__meta article {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spotlight-panel__meta strong {
  color: #fff;
  font-size: 1rem;
}

.spotlight-panel__meta span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

/* Usecases */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.usecase-card {
  --usecase-accent: var(--accent);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--usecase-accent) 42%, var(--border));
}

.usecase-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  transition: color var(--dur) var(--ease);
}

.usecase-card:hover h3 {
  color: var(--usecase-accent);
}

.usecase-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.usecase-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  color: #fff;
  flex-shrink: 0;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease);
}

.usecase-card:hover .usecase-card__icon {
  transform: scale(1.1);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--usecase-accent) 48%, transparent);
}

.usecase-card__icon--peach {
  background: linear-gradient(135deg, #ff8a1f, #ffb37a);
}

.usecase-card__icon--lavender {
  background: linear-gradient(135deg, #6c7bff, #a58bff);
}

.usecase-card__icon--mint {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.usecase-card__icon--sky {
  background: linear-gradient(135deg, #0071e3, #64d2ff);
}

.usecase-card--peach { --usecase-accent: #ff8a1f; }
.usecase-card--lavender { --usecase-accent: #6c7bff; }
.usecase-card--mint { --usecase-accent: #10b981; }
.usecase-card--sky { --usecase-accent: #0071e3; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--accent);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-accent);
  white-space: nowrap;
}

.pricing-card__tier {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-card__price span {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.pricing-card__price small {
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-card__tagline {
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: var(--space-2) 0 var(--space-4);
  flex: 1;
}

.pricing-card__features li {
  position: relative;
  padding-left: 26px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.pricing-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.pricing-card__features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 4px;
  height: 8px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pricing-card__cta {
  width: 100%;
}

.pricing-card__soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  cursor: default;
  user-select: none;
  box-shadow: none;
}

.pricing-footnote {
  text-align: center;
  margin-top: var(--space-6);
  font-size: 0.88rem;
}

/* Feature strip */
.feature-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.feature-strip__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 var(--space-4);
  border-left: 2px solid var(--border);
}

.feature-strip__item:first-child {
  border-left: none;
}

.feature-strip__item strong {
  font-size: 1.05rem;
  color: var(--text);
}

.feature-strip__item span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Marketing CTA */
.marketing-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  background:
    radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 55%),
    linear-gradient(160deg, #0b0b0f 0%, #12121a 55%, #0a0a0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: clamp(40px, 6vw, 72px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.marketing-cta__copy {
  max-width: 36rem;
}

.marketing-cta__copy h2 {
  color: #fff;
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.04em;
}

.marketing-cta__copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  max-width: 40ch;
}

.marketing-cta__actions {
  margin-top: var(--space-6);
}

.marketing-cta__panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.marketing-cta__panel-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.marketing-cta__panel-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.marketing-cta__panel-steps span {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-weight: 600;
  color: #fff;
}

.marketing-cta__pulse {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
}

.marketing-cta__pulse span {
  flex: 1;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  animation: eq-bounce 1.2s ease-in-out infinite;
}

.marketing-cta__pulse span:nth-child(1) { animation-delay: -0.1s; }
.marketing-cta__pulse span:nth-child(2) { animation-delay: -0.4s; }
.marketing-cta__pulse span:nth-child(3) { animation-delay: -0.7s; }
.marketing-cta__pulse span:nth-child(4) { animation-delay: -0.3s; }

.marketing-cta__panel-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Invite shell */
.invite-shell {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.invite-shell-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.invite-stat {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.invite-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.invite-stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   9. WORKSPACE (signed-in)
   ------------------------------------------------------------------------- */
.workspace-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 28px);
}

.workspace-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.workspace-hero-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workspace-hero-headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workspace-room-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.hero-text {
  color: var(--muted);
}

.workspace-summary {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.summary-card {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 100px;
}

.summary-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.summary-card strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

/* Workspace layout */
.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 380px) 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
}

.workspace--live {
  grid-template-columns: 1fr;
  align-items: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 0;
}

.workspace:not(.workspace--live) .sidebar {
  position: static;
}

.workspace--live .sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.stage {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 24px);
  min-width: 0;
  min-height: 0;
}

/* Hub: cards da esquerda e direita com a mesma altura */
.workspace:not(.workspace--live) .jam-hub,
.workspace:not(.workspace--live) .empty-room-card,
.workspace:not(.workspace--live) .hub-now {
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
}

.workspace:not(.workspace--live) .jam-hub {
  justify-content: space-between;
}

.workspace:not(.workspace--live) .empty-room-card {
  justify-content: center;
}

.workspace:not(.workspace--live) .empty-room-card__content {
  flex: 1;
  align-items: center;
}

.workspace:not(.workspace--live) .hub-now {
  min-height: 100%;
}

/* Jam hub */
.jam-hub {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.jam-hub-welcome {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.jam-hub-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-sunken);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
  flex-shrink: 0;
}

.jam-hub-welcome-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.jam-hub-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.jam-hub-title {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin: 0;
}

.jam-hub-invite {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-md);
  padding: 14px 16px;
}

.jam-hub-invite-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 4px;
}

.jam-hub-invite-text {
  font-size: 0.9rem;
}

.jam-hub-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.jam-hub-sessions-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}

.jam-hub-section-title {
  font-size: 1.2rem;
}

.jam-hub-cta {
  margin-top: var(--space-1);
}

.jam-hub-feedback {
  margin-top: 2px;
}

.jam-hub-empty-hint {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: var(--space-6);
  background: var(--surface-sunken);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}

.room-current-panel {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-current-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.room-current-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

/* Room list */
.room-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  margin: 0;
  border-radius: var(--r-lg);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}

.room-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  position: relative;
  z-index: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  box-shadow: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.room-list-item:has(.room-list-menu.is-open) {
  z-index: 5;
}

.room-list-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.room-list-item.is-active {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}

.room-list-item.is-live {
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--success) 22%, var(--border));
}

.room-list-item.is-live.is-active {
  background: color-mix(in srgb, var(--accent-soft) 45%, color-mix(in srgb, var(--success) 6%, var(--surface)));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.room-list-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.room-list-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 18%, transparent);
}

.room-list-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--user-mesh-brand), var(--user-mesh-coral));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  flex-shrink: 0;
}

.room-list-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-list-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.room-list-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.room-list-name {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.room-list-role {
  font-size: 0.72rem;
  font-weight: 550;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
}

.room-list-role.is-owner {
  color: var(--text-soft);
  font-weight: 600;
}

.room-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.room-list-meta-sep {
  margin: 0 6px;
  color: var(--muted-2);
  font-weight: 500;
}

.room-list-meta-chip {
  font-size: inherit;
  font-weight: 500;
  color: inherit;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  white-space: nowrap;
  line-height: inherit;
}

.room-list-side {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.room-list-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 650;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 7px 14px;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.room-list-enter:hover {
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent));
  color: var(--accent);
}

.room-list-item.is-active .room-list-enter {
  background: color-mix(in srgb, var(--accent-soft) 80%, transparent);
  color: var(--accent);
  opacity: 1;
}

.room-list-menu {
  position: relative;
  flex-shrink: 0;
}

.room-list-menu-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.room-list-menu-btn:hover,
.room-list-menu.is-open .room-list-menu-btn {
  background: color-mix(in srgb, var(--surface-sunken) 80%, transparent);
  color: var(--text-soft);
}

.room-list-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 148px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.room-list-menu.is-open .room-list-menu-panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.room-list-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: calc(var(--r-md) - 2px);
  cursor: pointer;
}

.room-list-menu-item:hover {
  background: var(--surface-sunken);
}

.room-list-menu-item.is-danger {
  color: var(--danger);
}

.room-list-menu-item.is-danger:hover {
  background: var(--danger-soft);
}

.room-list-pill {
  font-size: 0.72rem;
}

.room-list-pill.is-live {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
}

.room-list-pill.is-idle {
  background: var(--surface-sunken);
  color: var(--muted);
}

.room-list-arrow {
  display: none;
}

.room-list-arrow::before {
  content: none;
}

/* Confirm modal */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.confirm-modal.hidden {
  display: none;
}

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.confirm-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  animation: modal-in 0.24s var(--ease-out);
}

.confirm-modal__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.confirm-modal__text {
  margin: 0 0 22px;
  font-size: 0.95rem;
}

.confirm-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Empty room card */
.empty-room-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Hub now — resume playing jam on home */
.hub-now {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  background: #0b0b0c;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.hub-now__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hub-now__thumb-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: blur(36px) saturate(1.25) brightness(0.45);
}

.hub-now__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.72) 20%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.hub-now__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
  min-height: inherit;
  padding: clamp(22px, 3.5vw, 32px);
}

.hub-now__cover {
  width: clamp(112px, 18vw, 160px);
  height: clamp(112px, 18vw, 160px);
  border-radius: 14px;
  object-fit: cover;
  background: #1a1a1e;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.hub-now__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hub-now__live {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(29, 185, 84, 0.18);
  color: #1ed760;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hub-now__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(30, 215, 96, 0.18);
  animation: hub-now-pulse 1.6s ease-in-out infinite;
}

.hub-now.is-paused .hub-now__live {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.hub-now.is-paused .hub-now__live::before {
  animation: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.7);
}

@keyframes hub-now-pulse {
  0%,
  100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hub-now__room {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.hub-now__track {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #ffffff;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hub-now__detail {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.hub-now__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.hub-now__actions .button-primary {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.hub-now__actions .button-primary:hover {
  background: #f2f2f2;
}

.hub-now__actions .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hub-now__actions .button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 720px) {
  .hub-now__body {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hub-now__cover {
    width: 96px;
    height: 96px;
  }

  .hub-now__track {
    max-width: none;
  }

  .hub-now__actions {
    width: 100%;
  }

  .hub-now__actions .button {
    flex: 1 1 auto;
  }
}

.empty-room-card__eyebrow {
  color: var(--accent);
}

.empty-room-card__content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.empty-room-card__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.empty-room-card__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.empty-room-card__lead {
  font-size: 1.05rem;
}

.empty-room-card__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.empty-room-card__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-room-card__highlights li {
  position: relative;
  padding-left: 28px;
  color: var(--text-soft);
}

.empty-room-card__highlights li::before {
  content: "♪";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.empty-room-card__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.empty-room-card__vinyl {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 18%, transparent 19%),
    repeating-radial-gradient(circle at center, #2a2a2e 0 3px, #1a1a1e 3px 6px);
  box-shadow: var(--shadow-lg);
  animation: spin 8s linear infinite;
  left: 4%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-room-card__panel {
  position: relative;
  margin-left: auto;
  width: 74%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.empty-room-card__panel-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.empty-room-card__track {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.empty-room-card__track strong {
  color: var(--text);
  font-size: 1rem;
}

.empty-room-card__track span {
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-room-card__queue {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.empty-room-card__queue span {
  height: 12px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
}

.empty-room-card__queue span.is-active {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.empty-room-card__people {
  display: flex;
  align-items: center;
}

.empty-room-card__people i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--user-mesh-brand), var(--user-mesh-coral));
  border: 2px solid var(--surface);
  margin-left: -8px;
}

.empty-room-card__people i:first-child {
  margin-left: 0;
}

.empty-room-card__people b {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   10. JAM LIVE (room stage)
   ------------------------------------------------------------------------- */
.room-stage {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 24px);
}

.jam-live {
  display: flex;
  flex-direction: column;
}

.jam-live-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(20px, 3vw, 28px);
}

.jam-live-top__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.jam-live-top__title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.jam-live-back {
  align-self: flex-start;
  margin: 0 0 4px;
}

.jam-live-room-name {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.jam-live-top__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.jam-live-role {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.jam-live-invite {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.invite-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.invite-row .text-input {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  background: var(--surface-sunken);
  border-color: var(--border);
  color: var(--muted);
}

.invite-row .button {
  flex-shrink: 0;
  min-height: 44px;
  padding-inline: 18px;
}

@media (max-width: 640px) {
  .invite-row {
    flex-wrap: wrap;
  }

  .invite-row .text-input {
    flex: 1 1 100%;
  }

  .invite-row .button {
    flex: 1;
  }
}

/* Player card */
.player-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.player-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.player-header h2 {
  font-size: 1.4rem;
  margin: 4px 0;
}

.player-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.player-frame iframe,
.player-frame #player,
.player-frame > #player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  pointer-events: none !important;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6);
  background: linear-gradient(150deg, var(--surface-sunken), var(--surface));
  pointer-events: none;
}

/* Captura toques: desbloqueia áudio — sem preventDefault (precisa do gesto do Chrome). */
.player-gesture-catcher {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

#unlock-audio-button.hidden {
  display: none !important;
}

.player-placeholder p {
  color: var(--muted);
  max-width: 32ch;
}

.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.player-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.player-youtube-note {
  display: none;
}

.player-copy strong {
  font-size: 1.05rem;
  color: var(--text);
}

.player-copy span {
  font-size: 0.85rem;
}

.player-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Add card */
.jam-live-add {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.jam-live-add__title {
  font-size: 1.3rem;
}

.jam-live-add__lead {
  font-size: 0.95rem;
}

.jam-live-add__form {
  margin-top: var(--space-2);
}

.jam-live-add__input {
  min-height: 110px;
}

/* Queue card */
.queue-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.jam-live-queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.jam-live-queue__head h2 {
  font-size: 1.3rem;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.queue-item.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.queue-main {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex: 1;
}

.queue-thumb {
  width: 72px;
  height: 48px;
  border-radius: var(--r-xs);
  object-fit: cover;
  background: var(--surface-sunken);
  flex-shrink: 0;
}

.queue-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.queue-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.queue-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: var(--r-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.queue-item.is-active .queue-position {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.queue-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.queue-item-url {
  font-size: 0.78rem;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

.queue-guest-note {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  white-space: nowrap;
}

.queue-item.is-active .queue-guest-note {
  color: var(--accent);
  background: var(--accent-soft);
}

.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--muted);
  background: var(--surface-sunken);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}

/* Members card */
.members-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.members-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.members-card__copy {
  display: flex;
  flex-direction: column;
}

.members-card__title {
  font-size: 1.3rem;
}

.member-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}

.member-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.member-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-role {
  font-size: 0.8rem;
  color: var(--muted);
}

.members-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--muted);
  background: var(--surface-sunken);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}

.members-empty__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px dashed var(--border-strong);
}

/* Setup / auth cards */
.setup-card,
.auth-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* -------------------------------------------------------------------------
   11. MODALS
   ------------------------------------------------------------------------- */
.jam-create-modal,
.profile-modal,
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}

.jam-create-modal__backdrop,
.profile-modal__backdrop,
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.jam-create-modal__panel,
.profile-modal__panel,
.legal-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 36px);
  animation: modal-in 0.28s var(--ease-out);
}

.legal-modal__panel {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.profile-modal__panel {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.legal-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px) 0;
  flex-shrink: 0;
}

.legal-modal__title {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.legal-modal__body {
  padding: var(--space-4) clamp(20px, 3vw, 28px) clamp(24px, 4vw, 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
}

.legal-doc__lead {
  margin: 0 0 var(--space-4);
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-doc h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.legal-doc p,
.legal-doc li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.legal-doc p {
  margin: 0 0 var(--space-3);
}

.legal-doc ul {
  margin: 0 0 var(--space-3);
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-doc__note {
  margin-top: var(--space-5);
  font-size: 0.85rem;
}

.profile-modal__panel {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Jam create modal */
.jam-create-modal__hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.jam-create-modal__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.jam-create-modal__lead {
  color: var(--muted);
}

.jam-create-modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.jam-create-modal__input {
  margin-bottom: var(--space-1);
}

.jam-create-modal__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.jam-create-modal__actions .button {
  flex: 1;
}

/* Profile sheet — single column, Spotify/settings feel */
.profile-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px) var(--space-4);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.profile-sheet__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-sheet__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  flex-shrink: 0;
}

.profile-sheet__who {
  min-width: 0;
}

.profile-sheet__who h2 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.profile-sheet__name {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-sheet__email {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-required-banner {
  margin: var(--space-3) clamp(20px, 3vw, 28px) 0;
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.88rem;
  flex-shrink: 0;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: var(--space-5) clamp(20px, 3vw, 28px) 0;
}

.profile-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-accent {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-accent__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.profile-accent__opt {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
}

.profile-accent__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-accent__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.profile-accent__opt:hover .profile-accent__dot {
  transform: scale(1.08);
}

.profile-accent__opt.is-selected .profile-accent__dot,
.profile-accent__opt:has(input:checked) .profile-accent__dot {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--text);
  transform: scale(1.06);
}

.profile-accent__dot--laranja { background: #ff6a00; }
.profile-accent__dot--rosa { background: #ff5fa2; }
.profile-accent__dot--amarelo { background: #f5b800; }
.profile-accent__dot--ceu { background: #1d8fff; }
.profile-accent__dot--verde { background: #1db954; }
.profile-accent__dot--violeta { background: #a855f7; }
.profile-accent__dot--vermelho { background: #ef4444; }
.profile-accent__dot--ciano { background: #22d3ee; }
.profile-accent__dot--indigo { background: #6366f1; }
.profile-accent__dot--magenta { background: #e879f9; }
.profile-accent__dot--lima { background: #a3e635; }

.profile-liked-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.profile-liked-block__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.profile-liked__empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.profile-feedback {
  margin: 0;
}

.profile-form__actions {
  display: flex;
  gap: var(--space-3);
}

.profile-form__actions .button {
  flex: 1;
}

.profile-form__actions--sticky {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--surface) 70%, transparent);
  padding: var(--space-4) 0 calc(var(--space-4) + var(--safe-bottom));
  margin-top: auto;
  z-index: 2;
}

/* -------------------------------------------------------------------------
   12. FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 32px) calc(var(--space-8) + var(--safe-bottom));
  margin-top: var(--space-12);
}

.site-footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer-col--brand {
  gap: var(--space-3);
  max-width: 320px;
}

.site-footer-tagline {
  font-weight: 600;
  color: var(--text);
}

.site-footer-desc {
  font-size: 0.9rem;
}

.site-footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-links a,
.site-footer-legal-btn,
.site-footer-muted {
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: color var(--dur) var(--ease);
}

.site-footer-links a:hover,
.site-footer-legal-btn:hover {
  color: var(--accent);
}

.site-footer-legal-btn {
  display: inline;
  align-self: flex-start;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  color: var(--text-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--text-soft) 35%, transparent);
}

.site-footer-legal-btn:hover {
  text-decoration-color: var(--accent);
}

.site-footer-legal-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer-muted {
  color: var(--muted-2);
  cursor: default;
}

.site-footer-link-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 8px 16px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent) !important;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.site-footer-bottom {
  max-width: var(--content-max);
  margin: var(--space-8) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.site-footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   13. AUTH / LOGIN
   ------------------------------------------------------------------------- */
.login-page {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 64px) clamp(16px, 4vw, 32px);
  padding-top: max(clamp(24px, 6vw, 64px), calc(var(--safe-top) + 24px));
  padding-bottom: max(clamp(24px, 6vw, 64px), calc(var(--safe-bottom) + 24px));
}

.login-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  padding: clamp(32px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.login-page .bg-mesh {
  --scene-a: #3b82f6;
  --scene-b: #38bdf8;
  --scene-c: #1d4ed8;
}

.login-page .logo-img {
  width: 64px;
  height: 64px;
  filter: none;
}

.login-page .logo-text {
  font-size: 1.35rem;
  font-weight: 800;
}

.login-card__brand {
  margin-bottom: 0;
}

.login-card h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.login-card__actions {
  width: 100%;
  margin: 0;
}

.login-page .button-google {
  background: #fff;
  color: #1d1d1f;
  border-color: transparent;
}

.login-page .button-google:hover:not(:disabled) {
  background: #f4f4f5;
}

html.theme-dark .login-page {
  --page-bg: #070709;
  color-scheme: dark;
}

html.theme-dark .login-page .bg-mesh {
  background: #070709;
}

html.theme-dark .login-card {
  background: #141417;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  color: #f5f5f7;
}

html.theme-dark .login-card h1 {
  color: #f5f5f7;
}

html:not(.theme-dark) .login-page {
  --page-bg: #f5f5f7;
  color-scheme: light;
}

html:not(.theme-dark) .login-page .bg-mesh {
  background: #f5f5f7;
}

.login-card__eyebrow,
.login-card__lead,
.login-card__note,
.login-card__back {
  display: none;
}

/* -------------------------------------------------------------------------
   14. UTILITIES / STATE
   ------------------------------------------------------------------------- */
body.is-landing .workspace-shell {
  display: none;
}

body.is-signed-in .landing-shell {
  display: none;
}

body.is-signed-in .site-footer {
  display: none;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal--left {
  transform: translateX(-24px);
}

.reveal--right {
  transform: translateX(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hover lift must beat .reveal.is-visible { transform: none } */
.reveal.is-visible.usecase-card:hover,
.reveal.is-visible.pricing-card:hover {
  transform: translateY(-4px);
}

.reveal.is-visible.feature-tile:hover {
  transform: translateY(-6px);
}

/* -------------------------------------------------------------------------
   15. RESPONSIVE
   ------------------------------------------------------------------------- */

/* ≤1080px: tighten workspace two-column */
@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: minmax(280px, 340px) 1fr;
  }
}

/* ≤960px: hamburger nav, single column workspace */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header-end {
    position: fixed;
    top: calc(var(--header-h) + var(--safe-top));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-5) clamp(16px, 4vw, 32px) var(--space-6);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    max-height: calc(100dvh - var(--header-h) - var(--safe-top));
    overflow-y: auto;
  }

  .nav-toggle[aria-expanded="true"] + .site-header-end {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav a {
    padding: 12px 8px;
    border-radius: var(--r-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-nav a:hover {
    background: var(--surface-hover);
  }

  .site-header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .topbar-user {
    justify-content: space-between;
  }

  .header-cta {
    width: 100%;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .marketing-hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .marketing-hero__lead {
    max-width: none;
  }

  .spotlight-panel,
  .marketing-cta,
  .empty-room-card__content {
    grid-template-columns: 1fr;
  }

  .profile-form__grid {
    grid-template-columns: 1fr;
  }
}

/* ≤768px: stack queue items, player actions, simplify hero */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .marketing-band {
    padding: clamp(40px, 10vw, 64px) clamp(16px, 5vw, 24px);
  }

  /* Simplify decorative hero showcase */
  .marketing-hero__visual {
    display: none;
  }

  .hero-stats {
    gap: var(--space-4);
  }

  /* Queue items: thumb + copy on top, actions below */
  .queue-item {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .queue-main {
    width: 100%;
  }

  .queue-item-actions {
    justify-content: flex-end;
    width: 100%;
  }

  .queue-item-actions .mini-button {
    flex: 1;
    max-width: 120px;
  }

  /* Player actions full width stacked */
  .player-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .player-actions {
    width: 100%;
  }

  .player-actions .button {
    flex: 1 1 calc(50% - var(--space-2));
    min-width: 120px;
  }

  .player-header {
    flex-direction: column;
  }

  .invite-row {
    flex-direction: column;
  }

  .invite-row .button {
    width: 100%;
  }

  .invite-shell-stats {
    grid-template-columns: 1fr;
  }

  .profile-form__grid {
    grid-template-columns: 1fr;
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .member-list {
    grid-template-columns: 1fr;
  }

  .jam-hub-sessions-head {
    flex-direction: column;
    align-items: stretch;
  }

  .jam-hub-sessions-head .button {
    width: 100%;
  }

  .room-list-item {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "badge copy"
      "side side";
    gap: 10px 12px;
    padding: 10px;
  }

  .room-list-badge { grid-area: badge; }
  .room-list-copy { grid-area: copy; }

  .room-list-side {
    grid-area: side;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding-top: 2px;
    border-top: 1px solid var(--border);
  }

  .room-list-enter {
    flex: 1;
  }
}

/* ≤480px: invite row stack, tighter padding, safe-area */
@media (max-width: 480px) {
  :root {
    --header-h: 56px;
  }

  body.app-body {
    font-size: 15px;
  }

  .card {
    padding: var(--space-5);
    border-radius: var(--r-lg);
  }

  .marketing-band {
    padding: clamp(32px, 12vw, 48px) 16px;
  }

  .launch-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .launch-actions .button {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-3);
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .jam-create-modal,
  .profile-modal,
  .legal-modal {
    padding: 0;
    align-items: flex-end;
  }

  .jam-create-modal__panel,
  .profile-modal__panel,
  .legal-modal__panel {
    max-width: none;
    max-height: 100dvh;
    height: auto;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding-bottom: calc(var(--space-6) + var(--safe-bottom));
  }

  .profile-modal__panel,
  .legal-modal__panel {
    max-height: min(92dvh, 100dvh);
    height: auto;
    padding-bottom: 0;
  }

  .legal-modal__body {
    padding-bottom: calc(var(--space-6) + var(--safe-bottom));
  }

  .jam-create-modal__actions {
    flex-direction: column-reverse;
  }

  .player-actions .button {
    flex: 1 1 100%;
  }

  .profile-sheet__head {
    padding: 18px 18px 14px;
  }

  .profile-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .workspace-summary {
    width: 100%;
  }

  .summary-card {
    flex: 1;
    min-width: calc(50% - var(--space-2));
  }
}

/* Landscape short screens — keep modal footer reachable */
@media (max-height: 560px) {
  .jam-create-modal__panel,
  .profile-modal__panel,
  .legal-modal__panel {
    max-height: 100dvh;
  }
}

/* Reduced motion */
@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;
  }

  .usecase-card:hover,
  .usecase-card:hover .usecase-card__icon,
  .feature-tile:hover,
  .pricing-card:hover,
  .reveal.is-visible.usecase-card:hover,
  .reveal.is-visible.feature-tile:hover,
  .reveal.is-visible.pricing-card:hover {
    transform: none;
  }

  .usecase-card:hover .usecase-card__icon {
    box-shadow: none;
  }
}

/* -------------------------------------------------------------------------
   16. RESPONSIVE HARDENING + PWA STANDALONE
   ------------------------------------------------------------------------- */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.app-body {
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
}

/* Evita zoom automático do iOS em inputs */
.text-input,
.text-area,
input,
textarea,
select,
button {
  font-size: max(16px, 1em);
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  max-height: min(62vh, 520px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
}

.player-frame iframe,
.player-frame #player,
#player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
}

.workspace-shell {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-4) clamp(12px, 3vw, 24px) var(--space-10);
}

.room-stage {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.invite-row {
  display: flex;
  gap: var(--space-2);
  min-width: 0;
}

.invite-row .text-input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .invite-row {
    flex-direction: column;
  }

  .invite-row .button {
    width: 100%;
    min-height: 48px;
  }

  .player-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .player-actions .button {
    width: 100%;
    min-height: 48px;
  }

  .player-actions .button:first-child {
    grid-column: 1 / -1;
  }

  .jam-hub-welcome {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-user-copy {
    max-width: 42vw;
  }

  .profile-name,
  .profile-plan {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .queue-item-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }

  .queue-item-actions .mini-button {
    max-width: none;
    width: 100%;
    min-height: 44px;
  }

  .queue-guest-note {
    grid-column: 1 / -1;
    text-align: center;
  }

  .member-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .site-footer {
    padding-bottom: calc(var(--space-8) + var(--safe-bottom));
  }
}

@media (max-width: 380px) {
  .theme-toggle__label {
    display: none;
  }

  .player-actions {
    grid-template-columns: 1fr;
  }

  .player-actions .button:first-child {
    grid-column: auto;
  }
}

/* PWA instalado (standalone) */
@media (display-mode: standalone), (display-mode: minimal-ui) {
  body.app-body {
    padding-top: 0;
  }

  .site-header {
    padding-top: max(var(--safe-top), 8px);
  }
}

@supports (padding: max(0px)) {
  .profile-form__actions--sticky {
    padding-bottom: max(12px, var(--safe-bottom));
  }
}

/* Landscape phones: player mais baixo, conteúdo scrollável */
@media (max-height: 480px) and (orientation: landscape) {
  .player-frame {
    max-height: 42vh;
    min-height: 140px;
  }

  .marketing-hero {
    min-height: auto;
  }

  .site-header-inner {
    height: 48px;
  }
}

/* Likes, history, host status, profile liked */
.like-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  line-height: 1;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.like-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.like-button__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.like-button.is-liked {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: var(--accent-soft);
}

.like-button--dislike.is-disliked {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 34%, transparent);
  background: var(--danger-soft);
}

.like-mini.is-liked {
  color: #ff2d55;
  border-color: rgba(255, 45, 85, 0.28);
  background: rgba(255, 45, 85, 0.08);
}

.like-button.is-liked .like-button__count,
.like-button--dislike.is-disliked .like-button__count {
  color: currentColor;
}

.like-button__count { color: var(--muted); font-variant-numeric: tabular-nums; }
.like-mini { font-variant-numeric: tabular-nums; }
.host-status-pill.is-online { background: rgba(26, 143, 76, 0.12); color: var(--success); }
.host-status-pill.is-offline { background: rgba(217, 59, 48, 0.1); color: var(--danger); }
.member-card.is-online .member-name::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--success);
  vertical-align: middle;
}
.history-list,
.profile-liked__list { display: flex; flex-direction: column; gap: 8px; }
.history-item,
.profile-liked__item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: var(--r-md);
  background: var(--surface-sunken);
  border: 1px solid transparent;
  transition: background 0.15s var(--ease);
}
.profile-liked__item:hover {
  background: var(--surface-hover);
}
.history-thumb,
.profile-liked__item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.history-copy,
.profile-liked__item div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.history-copy strong,
.profile-liked__item strong {
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-copy span,
.profile-liked__item span { font-size: 0.78rem; color: var(--muted); }
.jam-live-history__head { margin-bottom: var(--space-4); }

/* History horizontal carousel */
.history-carousel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.history-carousel__track.history-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  outline: none;
}
.history-carousel__track.history-list::-webkit-scrollbar {
  display: none;
}
.history-carousel__track.history-list:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-ring);
  border-radius: var(--r-md);
}
.history-carousel__slide.history-item {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--surface-sunken) 92%, transparent);
}
.history-empty {
  margin: 0;
  padding: 4px 2px;
  flex: 0 0 100%;
}
.history-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 16px;
}
.history-carousel__dots[hidden] {
  display: none;
}
.history-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), width 0.18s var(--ease);
}
.history-carousel__dot:hover {
  background: color-mix(in srgb, var(--muted) 75%, transparent);
}
.history-carousel__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.history-carousel__dot.is-active {
  width: 18px;
  border-radius: var(--r-pill);
  background: var(--text);
}
@media (prefers-reduced-motion: reduce) {
  .history-carousel__track.history-list {
    scroll-behavior: auto;
  }
  .history-carousel__dot {
    transition: none;
  }
}

/* =========================================================================
   LANDING — layout always; dark skin only with html.theme-dark
   ========================================================================= */
body.is-landing .logo-img {
  filter: none;
}

body.is-landing .site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

body.is-landing .site-nav a:hover {
  color: var(--text);
}

body.is-landing .marketing-band--hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(56px, 9vw, 112px);
  min-height: calc(100dvh - var(--header-h) - 24px);
  display: flex;
  align-items: center;
}

body.is-landing .marketing-hero {
  width: 100%;
  gap: clamp(40px, 6vw, 80px);
}

body.is-landing .hero-brand {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

body.is-landing .marketing-hero__inner h1 {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: var(--text);
  background-clip: unset;
  -webkit-background-clip: unset;
}

body.is-landing .marketing-hero__lead {
  color: var(--text-soft);
}

body.is-landing .hero-jam__card {
  border-radius: 24px;
}

body.is-landing .hero-jam__aura {
  opacity: 0.85;
  filter: blur(36px);
}

body.is-landing .marketing-band--soft {
  background: transparent;
}

body.is-landing .section-head h2 {
  letter-spacing: -0.04em;
  font-weight: 800;
}

body.is-landing .pricing-card__price span {
  letter-spacing: -0.04em;
}

body.is-landing .button-primary {
  box-shadow: var(--shadow-accent);
}

/* Light landing — visible color atmosphere (not washed white) */
html:not(.theme-dark) body.is-landing {
  --page-bg: #f4f7ff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-sunken: #eef2fb;
  --surface-hover: #e8edf8;
  color-scheme: light;
}

html:not(.theme-dark) body.is-landing .bg-mesh {
  background: #eef3ff;
}

html:not(.theme-dark) body.is-landing .bg-mesh__base,
html:not(.theme-dark) .bg-mesh[data-scene="landing"] .bg-mesh__base {
  background:
    radial-gradient(90% 70% at 12% 8%, color-mix(in srgb, var(--scene-a) 38%, transparent), transparent 55%),
    radial-gradient(80% 60% at 92% 28%, color-mix(in srgb, var(--scene-b) 32%, transparent), transparent 52%),
    radial-gradient(70% 55% at 48% 100%, color-mix(in srgb, var(--scene-c) 28%, transparent), transparent 55%),
    #eef3ff;
  animation: landing-hue 42s ease-in-out infinite alternate;
}

html:not(.theme-dark) body.is-landing .bg-mesh__glow {
  filter: blur(78px);
}

html:not(.theme-dark) body.is-landing .bg-mesh__glow--a {
  opacity: 0.55;
  animation: scene-drift-a 24s ease-in-out infinite alternate;
}

html:not(.theme-dark) body.is-landing .bg-mesh__glow--b {
  opacity: 0.44;
  animation: scene-drift-b 30s ease-in-out infinite alternate;
}

html:not(.theme-dark) body.is-landing .bg-mesh__glow--c {
  opacity: 0.38;
  animation: scene-drift-c 36s ease-in-out infinite alternate;
}

html:not(.theme-dark) body.is-landing .bg-mesh__beam {
  opacity: 0.32;
  animation: scene-beam-landing 18s ease-in-out infinite alternate;
}

html:not(.theme-dark) body.is-landing .bg-mesh__blob {
  mix-blend-mode: multiply;
}

html:not(.theme-dark) body.is-landing .bg-mesh__blob--1,
html:not(.theme-dark) body.is-landing .bg-mesh__blob--2 {
  opacity: 0.42;
}

html:not(.theme-dark) body.is-landing .bg-mesh__wave {
  opacity: 0.36;
  mix-blend-mode: multiply;
}

html:not(.theme-dark) body.is-landing .bg-mesh__vignette {
  background:
    radial-gradient(110% 85% at 50% 0%, transparent 42%, rgba(255, 255, 255, 0.22) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.28));
}

html:not(.theme-dark) body.is-landing .bg-mesh__noise {
  opacity: 0.035;
  mix-blend-mode: multiply;
}

html:not(.theme-dark) body.is-landing .site-header {
  background: rgba(238, 243, 255, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

html:not(.theme-dark) body.is-landing .site-header--scrolled {
  background: rgba(238, 243, 255, 0.96);
}

html:not(.theme-dark) body.is-landing .hero-jam__card,
html:not(.theme-dark) body.is-landing .feature-tile,
html:not(.theme-dark) body.is-landing .how-step__panel,
html:not(.theme-dark) body.is-landing .pricing-card,
html:not(.theme-dark) body.is-landing .usecase-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

html:not(.theme-dark) body.is-landing .feature-tile:hover,
html:not(.theme-dark) body.is-landing .how-step:hover .how-step__panel,
html:not(.theme-dark) body.is-landing .pricing-card:hover,
html:not(.theme-dark) body.is-landing .usecase-card:hover {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
}

html:not(.theme-dark) body.is-landing .usecase-card:hover {
  border-color: color-mix(in srgb, var(--usecase-accent) 38%, rgba(0, 0, 0, 0.1));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.1),
    0 0 0 1px color-mix(in srgb, var(--usecase-accent) 18%, transparent);
}

html:not(.theme-dark) body.is-landing .feature-tile__visual,
html:not(.theme-dark) body.is-landing .how-preview {
  background: #f0f0f3;
  border-color: rgba(0, 0, 0, 0.06);
}

html:not(.theme-dark) body.is-landing .spotlight-panel {
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(59, 130, 246, 0.12), transparent 55%),
    #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  color: var(--text);
}

html:not(.theme-dark) body.is-landing .spotlight-panel .section-label--light {
  color: var(--muted);
}

html:not(.theme-dark) body.is-landing .spotlight-panel__copy h2 {
  color: var(--text);
}

html:not(.theme-dark) body.is-landing .spotlight-panel__copy p {
  color: var(--text-soft);
}

html:not(.theme-dark) body.is-landing .spotlight-panel__meta article {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.08);
}

html:not(.theme-dark) body.is-landing .spotlight-panel__meta strong {
  color: var(--text);
}

html:not(.theme-dark) body.is-landing .spotlight-panel__meta span {
  color: var(--muted);
}

html:not(.theme-dark) body.is-landing .pricing-card--featured {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.12),
    0 24px 60px rgba(37, 99, 235, 0.12);
}

html:not(.theme-dark) body.is-landing .pricing-card__cta--light {
  background: #f0f0f3;
  color: var(--muted);
  border-color: rgba(0, 0, 0, 0.08);
}

html:not(.theme-dark) body.is-landing .site-footer {
  background: #eef3ff;
  border-top-color: rgba(0, 0, 0, 0.06);
}

html:not(.theme-dark) body.is-landing .theme-toggle {
  border-color: rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

/* Dark landing skin */
html.theme-dark body.is-landing {
  --page-bg: #0a1020;
  --surface: #141417;
  --surface-2: #1b1b1f;
  --surface-sunken: #0e0e11;
  --surface-hover: #1f1f24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --hairline: rgba(255, 255, 255, 0.06);
  --text: #f5f5f7;
  --text-soft: #b4b4bc;
  --muted: #8b8b96;
  --muted-2: #63636e;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-press: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --accent-ring: rgba(59, 130, 246, 0.4);
  --on-accent: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 10px 28px rgba(59, 130, 246, 0.35);
  color-scheme: dark;
}

html.theme-dark body.is-landing .bg-mesh {
  background: #0a1020;
}

html.theme-dark body.is-landing .marketing-hero__inner h1 {
  color: #f5f5f7;
  background: none;
  -webkit-text-fill-color: #f5f5f7;
  background-clip: unset;
  -webkit-background-clip: unset;
}

html.theme-dark body.is-landing .hero-brand {
  color: #ffffff;
}

html.theme-dark body.is-landing .marketing-hero__lead,
html.theme-dark body.is-landing .marketing-hero__inner > p {
  color: rgba(245, 245, 247, 0.9);
}

/* Section heads sit ON the dark mesh — must be light (not card text) */
html.theme-dark body.is-landing .section-head h2 {
  color: #f5f5f7;
}

html.theme-dark body.is-landing .section-head .section-lead {
  color: rgba(245, 245, 247, 0.72);
}

html.theme-dark body.is-landing .section-head .section-label {
  color: #60a5fa;
}

html.theme-dark body.is-landing .site-header {
  background: rgba(10, 16, 32, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.theme-dark body.is-landing .site-header--scrolled {
  background: rgba(10, 16, 32, 0.96);
}

/* White marketing cards on dark landing: keep dark readable text inside */
html.theme-dark body.is-landing .hero-jam__card,
html.theme-dark body.is-landing .feature-tile,
html.theme-dark body.is-landing .how-step__panel,
html.theme-dark body.is-landing .pricing-card,
html.theme-dark body.is-landing .usecase-card {
  --text: #1d1d1f;
  --text-soft: #424245;
  --muted: #86868b;
  --muted-2: #a1a1a6;
  --surface-sunken: #f5f5f7;
  --surface-hover: #f0f0f3;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --accent-soft: rgba(0, 113, 227, 0.1);
  background: #ffffff;
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

html.theme-dark body.is-landing .hero-jam__card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 32px 80px rgba(0, 0, 0, 0.45);
}

html.theme-dark body.is-landing .feature-tile:hover,
html.theme-dark body.is-landing .how-step:hover .how-step__panel,
html.theme-dark body.is-landing .pricing-card:hover,
html.theme-dark body.is-landing .usecase-card:hover {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

html.theme-dark body.is-landing .usecase-card:hover {
  border-color: color-mix(in srgb, var(--usecase-accent) 38%, rgba(0, 0, 0, 0.1));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    0 0 0 1px color-mix(in srgb, var(--usecase-accent) 18%, transparent);
}

html.theme-dark body.is-landing .feature-tile__visual,
html.theme-dark body.is-landing .how-preview {
  background: #f0f0f3;
  border-color: rgba(0, 0, 0, 0.06);
}

html.theme-dark body.is-landing .how-step__num {
  background: #ffffff;
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.08);
}

html.theme-dark body.is-landing .how-flow::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.35) 20%,
    rgba(59, 130, 246, 0.35) 80%,
    transparent
  );
}

html.theme-dark body.is-landing .spotlight-panel {
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(59, 130, 246, 0.22), transparent 55%),
    #101014;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

html.theme-dark body.is-landing .pricing-card--featured {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.2),
    0 24px 60px rgba(0, 0, 0, 0.28);
}

html.theme-dark body.is-landing .pricing-card__soon {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.4);
}

html.theme-dark body.is-landing .site-footer {
  background: #080e1a;
  border-top-color: rgba(255, 255, 255, 0.06);
}

html.theme-dark body.is-landing .theme-toggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  body.is-landing .marketing-band--hero {
    min-height: auto;
    padding-top: 36px;
  }
}

