/* eXi landing — Gray template light mode replica */

:root {
  --white: #ffffff;
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --emerald: #10b981;
  --font: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gradient-border: linear-gradient(120deg, var(--zinc-300), var(--zinc-100), var(--zinc-300));
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(24, 24, 27, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background-color: var(--zinc-100);
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--zinc-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; display: block; }

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

.page { min-height: 100vh; display: flex; flex-direction: column; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 48rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-dark { background: var(--zinc-900); color: var(--zinc-100); }
.btn-dark:hover { background: var(--zinc-800); }

.btn-light { background: var(--white); color: var(--zinc-600); border-color: var(--zinc-200); }
.btn-light:hover { color: var(--zinc-900); }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* Gradient border card helper */
.gradient-border {
  border: 1px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-border) border-box;
}

/* Header */
.site-header {
  position: absolute;
  top: 0.75rem;
  left: 0;
  right: 0;
  z-index: 30;
}

@media (min-width: 768px) { .site-header { top: 1.5rem; } }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-border) border-box;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.logo-img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  object-fit: contain;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--zinc-900);
}

.brand-ai {
  font-weight: 600;
  color: var(--zinc-500);
}

.header-nav { display: flex; align-items: center; gap: 0.25rem; }

.header-nav a:not(.btn) {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zinc-500);
  transition: color 0.2s;
}

.header-nav a:not(.btn):hover { color: var(--zinc-900); }

.header-nav .btn { margin-left: 0.25rem; }

/* Hero */
.hero {
  position: relative;
  padding: 8rem 0 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 20rem;
  background: linear-gradient(to bottom, var(--zinc-100), transparent);
  pointer-events: none;
  z-index: -1;
}

.hero-copy { text-align: center; padding-bottom: 3rem; }

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zinc-600);
  border: 1px solid var(--zinc-200);
  background: var(--white);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(to right, var(--zinc-500), var(--zinc-900), var(--zinc-900));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-em {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-style: italic;
  color: var(--zinc-900);
  -webkit-text-fill-color: var(--zinc-900);
  isolation: isolate;
}

.hero-scribble {
  position: absolute;
  left: 50%;
  top: 58%;
  width: calc(100% + 1.25rem);
  min-width: 9rem;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
  fill: var(--zinc-300);
  pointer-events: none;
}

.hero-sub {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--zinc-500);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.hero-actions .btn {
  width: 100%;
  max-width: 14rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    background 0.24s var(--ease),
    color 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.hero-actions .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}

.hero-actions .btn:hover {
  transform: translateY(-2px);
}

.hero-actions .btn:hover::after {
  transform: translateX(130%);
}

.hero-actions .btn:active {
  transform: translateY(0);
}

.hero-actions .btn-dark:hover {
  background: var(--zinc-800);
  box-shadow: 0 14px 28px rgba(24, 24, 27, 0.18);
}

.hero-actions .btn-light:hover {
  color: var(--zinc-900);
  border-color: var(--zinc-300);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(24, 24, 27, 0.1);
}

.btn-contact-qalyx {
  gap: 0.3em;
}

.btn-contact-qalyx .qalyx-mark {
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--zinc-600), var(--zinc-900) 55%, #5865f2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-contact-qalyx:hover .qalyx-mark {
  background: linear-gradient(120deg, var(--zinc-800), var(--zinc-900) 45%, #4752c4);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-actions .btn:focus-visible {
  outline: 2px solid var(--zinc-900);
  outline-offset: 2px;
}

.hero-actions .btn-light:focus-visible {
  outline-color: var(--zinc-500);
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }

  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 14rem;
  }
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 3rem;
}

.hero-studio-shot {
  position: relative;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
}

.hero-studio-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--zinc-200);
  box-shadow: var(--shadow-lg);
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  top: -3rem;
  width: 24rem;
  height: 24rem;
  background: var(--zinc-900);
  opacity: 0.15;
  border-radius: 50%;
  filter: blur(64px);
  z-index: -1;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .stats { gap: 2.5rem 1.5rem; }
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
    gap: 0;
  }
}

.stat {
  position: relative;
  text-align: center;
  padding: 0 0.35rem;
}

@media (min-width: 768px) {
  .stat { padding: 0 1.25rem; }
}

@media (min-width: 768px) {
  .stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 2rem;
    border-left: 1px dashed var(--zinc-300);
  }
}

.stat h4 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 4.5vw, 1.875rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat p {
  margin: 0;
  font-size: clamp(0.75rem, 2.8vw, 0.875rem);
  line-height: 1.45;
  color: var(--zinc-500);
}

/* Sections */
.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }

.section--muted { background: var(--zinc-50); }
.section--dark { background: var(--zinc-800); color: var(--zinc-200); }
.section--dark-alt { padding-top: 0; }

.section-head {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--zinc-900);
}

.section--dark .section-head h2 { color: var(--zinc-100); }

.section-head p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--zinc-500);
}

.section-head--dark h2 { color: var(--zinc-100); }
.section-head--dark p { color: var(--zinc-400); }

/* Feature tabs */
.feature-tab-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .feature-tab-btns { grid-template-columns: repeat(4, 1fr); } }

.feature-tab-btn {
  text-align: left;
  padding: 1.25rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  background: var(--zinc-100);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.feature-tab-btn:hover { opacity: 1; }

.feature-tab-btn.is-active {
  opacity: 1;
  transform: rotate(1deg);
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-border) border-box;
  box-shadow: var(--shadow-sm);
}

.feature-tab-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--zinc-900);
  margin-bottom: 0.25rem;
}

.tab-arrow {
  width: 10px;
  height: 10px;
  fill: var(--zinc-400);
  flex-shrink: 0;
  margin-left: 0.5rem;
  display: none;
}

.feature-tab-btn.is-active .tab-arrow { display: block; }

.feature-tab-desc { font-size: 0.875rem; color: var(--zinc-500); }

.feature-tab-panels { position: relative; }

.feature-tab-panel {
  display: none;
  animation: fadeIn 0.4s var(--ease);
}

.feature-tab-panel.is-active { display: block; }

/* Tab detail panels */
.tab-detail {
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-border) border-box;
  box-shadow: var(--shadow-sm);
}

.tab-detail-head { margin-bottom: 0.75rem; }

.tab-detail-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--zinc-500);
  background: var(--zinc-100);
  border: 1px solid var(--zinc-200);
}

.tab-detail h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--zinc-900);
}

.tab-detail-lead {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--zinc-500);
  max-width: 42rem;
}

.tab-detail-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tab-detail-list li {
  padding-left: 1rem;
  border-left: 2px solid var(--zinc-200);
  font-size: 0.875rem;
  color: var(--zinc-600);
  line-height: 1.5;
}

.tab-detail-list strong {
  display: block;
  color: var(--zinc-900);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.tab-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: var(--zinc-600);
  background: var(--zinc-50);
  border: 1px solid var(--zinc-200);
}

.tab-detail-meta span:first-child {
  font-weight: 600;
  color: var(--zinc-900);
}

.style-preset-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .style-preset-grid { grid-template-columns: 1fr 1fr; } }

.style-preset-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: var(--zinc-50);
  border: 1px solid var(--zinc-200);
}

.style-preset-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--zinc-900);
  margin-bottom: 0.15rem;
}

.style-preset-item span:not(.style-dot) {
  font-size: 0.8125rem;
  color: var(--zinc-500);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Capability cards — no images */
.capability-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

@media (min-width: 640px) { .capability-grid { grid-template-columns: 1fr 1fr; } }

.capability-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-border) border-box;
  transition: box-shadow 0.25s, transform 0.25s;
}

.capability-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.capability-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  color: var(--zinc-700);
  background: var(--zinc-100);
  border: 1px solid var(--zinc-200);
}

.capability-icon--edit { color: #2563eb; background: rgba(94, 161, 255, 0.1); border-color: rgba(94, 161, 255, 0.25); }
.capability-icon--style { color: #c026d3; background: rgba(255, 111, 176, 0.1); border-color: rgba(255, 111, 176, 0.25); }
.capability-icon--history { color: var(--zinc-600); }

.capability-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--zinc-900);
}

.capability-card > p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--zinc-500);
  line-height: 1.55;
}

.capability-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.capability-points li {
  font-size: 0.8125rem;
  color: var(--zinc-600);
  padding-left: 1rem;
  position: relative;
}

.capability-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--zinc-400);
}

.capability-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.capability-chips li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--zinc-600);
  background: var(--zinc-50);
  border: 1px solid var(--zinc-200);
}

/* Studio preview mock */
.studio-preview-block {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--zinc-200);
  background: var(--zinc-50);
}

@media (min-width: 1024px) {
  .studio-preview-block {
    grid-template-columns: 1fr 1.2fr;
    padding: 2.5rem;
  }
}

.studio-preview-copy h3 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--zinc-900);
}

.studio-preview-copy > p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--zinc-500);
  line-height: 1.6;
}

.studio-preview-copy .capability-points { margin-bottom: 1.25rem; }

.studio-preview-mock {
  min-width: 0;
}

.studio-live {
  border-radius: 0.875rem;
  border: 1px solid var(--zinc-200);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.studio-live-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--zinc-200);
  background: var(--white);
}

.studio-live-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.studio-live-brand img {
  border-radius: 0.3rem;
  object-fit: contain;
}

.studio-live-brand-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--zinc-900);
}

.studio-live-brand-name em {
  font-style: normal;
  font-weight: 600;
  color: var(--zinc-500);
}

.studio-live-brand-tag {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zinc-500);
  border: 1px solid var(--zinc-200);
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
  background: var(--zinc-50);
}

.studio-live-mode {
  display: flex;
  margin: 0 auto;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--zinc-200);
  background: var(--zinc-100);
  font-size: 0.625rem;
  font-weight: 600;
}

.studio-live-mode span {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  color: var(--zinc-500);
}

.studio-live-mode span.is-active {
  background: var(--zinc-900);
  color: var(--white);
}

.studio-live-topbar-right {
  margin-left: auto;
  flex-shrink: 0;
}

.studio-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--zinc-200);
  font-size: 0.5625rem;
  color: var(--zinc-500);
  background: var(--white);
}

.studio-live-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
}

.studio-live-main {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 260px;
  background: var(--zinc-50);
}

.studio-live-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem;
  border-right: 1px solid var(--zinc-200);
  background: var(--white);
}

.sl-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sl-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.sl-label {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zinc-500);
}

.sl-pill-btn {
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--zinc-200);
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--zinc-500);
  background: var(--white);
}

.sl-prompt {
  min-height: 2.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid var(--zinc-200);
  background: var(--white);
  font-size: 0.5625rem;
  line-height: 1.45;
  color: var(--zinc-600);
}

.sl-collapse {
  border-bottom: 1px solid var(--zinc-200);
  padding-bottom: 0.45rem;
}

.sl-collapse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: default;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zinc-500);
}

.sl-collapse-head::-webkit-details-marker { display: none; }

.sl-collapse-head svg {
  width: 10px;
  height: 10px;
  color: var(--zinc-400);
}

.sl-aspects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.sl-aspects span {
  padding: 0.25rem 0.15rem;
  border-radius: 0.35rem;
  border: 1px solid var(--zinc-200);
  font-size: 0.4375rem;
  font-weight: 600;
  text-align: center;
  color: var(--zinc-500);
  background: var(--white);
}

.sl-aspects span.is-active {
  color: var(--zinc-900);
  border-color: var(--zinc-900);
  background: var(--zinc-50);
}

.sl-formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
  margin-top: 0.35rem;
  padding: 2px;
  border-radius: 0.35rem;
  border: 1px solid var(--zinc-200);
  background: var(--zinc-100);
}

.sl-formats span {
  padding: 0.22rem 0.15rem;
  border-radius: 0.25rem;
  font-size: 0.4375rem;
  font-weight: 600;
  text-align: center;
  color: var(--zinc-500);
}

.sl-formats span.is-active {
  background: var(--white);
  color: var(--zinc-900);
  box-shadow: var(--shadow-sm);
}

.sl-generate-wrap {
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid var(--zinc-200);
}

.sl-generate {
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.5625rem;
  font-weight: 600;
  text-align: center;
  color: var(--white);
  background: var(--zinc-900);
}

.studio-live-stage {
  display: flex;
  flex-direction: column;
  padding: 0.55rem;
  min-width: 0;
}

.sl-stage-frame {
  position: relative;
  flex: 1;
  min-height: 180px;
  border-radius: 0.65rem;
  border: 1px solid var(--zinc-200);
  background: var(--white);
  overflow: hidden;
}

.sl-stage-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, var(--zinc-200) 1px, transparent 0) 0 0 / 14px 14px,
    var(--white);
}

.sl-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--zinc-300);
  z-index: 2;
  opacity: 0.75;
}

.sl-corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.sl-corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.sl-corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.sl-corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.sl-stage-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sl-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 180px;
}

.sl-loading-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.45rem;
  border: 1px solid var(--zinc-200);
  background: var(--zinc-100);
  overflow: hidden;
}

.sl-loading-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(94, 161, 255, 0.15) 48%,
    transparent 66%
  );
  background-size: 220% 100%;
  animation: sl-shimmer-sweep 1.8s ease-in-out infinite;
}

.sl-loading-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.sl-loading-logo img {
  position: relative;
  z-index: 1;
  border-radius: 0.3rem;
}

.sl-loading-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.65) 48%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.65) 52%,
    transparent 65%
  );
  animation: sl-shimmer-pass 1.8s ease-in-out infinite;
}

@keyframes sl-shimmer-sweep {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@keyframes sl-shimmer-pass {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.sl-loading-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.5rem;
  color: var(--zinc-500);
}

.sl-loading-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--zinc-200);
  border-top-color: #5ea1ff;
  animation: sl-spin 0.7s linear infinite;
}

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

.sl-loading-bar {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--zinc-200);
  overflow: hidden;
}

.sl-loading-bar span {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: 999px;
  background: #5ea1ff;
  animation: sl-progress 2.4s ease-in-out infinite;
}

@keyframes sl-progress {
  0%, 100% { width: 38%; }
  50% { width: 82%; }
}

.sl-stage-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.15rem 0;
  font-size: 0.5rem;
  color: var(--zinc-500);
}

.sl-stage-caption > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-toolbar {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.sl-toolbar span {
  width: 16px;
  height: 16px;
  border-radius: 0.3rem;
  border: 1px solid var(--zinc-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 720px) {
  .studio-live-main {
    grid-template-columns: 1fr;
  }

  .studio-live-panel {
    border-right: none;
    border-bottom: 1px solid var(--zinc-200);
  }

  .studio-live-mode {
    display: none;
  }
}

.cta-logo img {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.75rem;
  object-fit: contain;
}

/* Legacy feature cards (unused) */
.feature-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .feature-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .feature-cards { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--zinc-200);
  background: var(--white);
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p { margin: 0; font-size: 0.875rem; color: var(--zinc-500); }

.feature-card--wide { grid-column: 1 / -1; }

@media (min-width: 1024px) {
  .feature-card--wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
  }
  .feature-card--wide img { margin-bottom: 0; }
}

/* Dark split section */
.dark-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) { .dark-split { grid-template-columns: 1fr 1fr; } }

.pill {
  display: inline-flex;
  padding: 0.125rem 1rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zinc-400);
  border: 1px solid transparent;
  background: linear-gradient(var(--zinc-800), var(--zinc-800)) padding-box,
    linear-gradient(120deg, var(--zinc-700), transparent, var(--zinc-700)) border-box;
}

.dark-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--zinc-200);
}

.dark-copy > p { margin: 0 0 1.5rem; color: var(--zinc-400); }

.dark-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dark-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--zinc-600);
}

.dark-list strong { color: var(--zinc-200); font-weight: 600; }
.dark-list span { font-size: 0.875rem; color: var(--zinc-400); }

/* Carousel */
.carousel {
  overflow: hidden;
  border-radius: 0.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: carousel-scroll 26s linear infinite;
  will-change: transform;
}

.carousel-set {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.carousel-set::after {
  content: "";
  flex: 0 0 1rem;
  width: 1rem;
}

.carousel-set img {
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.carousel:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { animation: none; }
}

/* Dark features row */
.dark-features {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) { .dark-features { grid-template-columns: repeat(3, 1fr); } }

.dark-feature img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.dark-feature h3 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; color: var(--zinc-200); }
.dark-feature p { margin: 0; font-size: 0.875rem; color: var(--zinc-400); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zinc-300);
  background: var(--zinc-700);
  border: 1px solid var(--zinc-600);
}

/* Pricing */
.pricing-slider-wrap {
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.pricing-slider-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zinc-700);
  margin-bottom: 0.75rem;
}

.pricing-slider-track {
  position: relative;
  height: 0.375rem;
  background: var(--zinc-200);
  border-radius: 999px;
  margin: 0 0.625rem;
}

.pricing-slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background: linear-gradient(to right, var(--zinc-400), var(--zinc-800));
  border-radius: 999px;
  pointer-events: none;
}

.pricing-slider-track input[type="range"] {
  position: relative;
  width: 100%;
  height: 1.25rem;
  margin: -0.5rem 0 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.pricing-slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: none;
}

.pricing-slider-track input[type="range"]::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: none;
}

.pricing-slider-ticks {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--zinc-500);
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 20rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    align-items: start;
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: linear-gradient(var(--zinc-50), var(--zinc-50)) padding-box, var(--gradient-border) border-box;
}

.pricing-card--featured {
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-border) border-box;
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-tier { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }

.pricing-price {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pricing-price-was {
  font-size: 1rem;
  font-weight: 500;
  color: var(--zinc-400);
  text-decoration: line-through;
}

.pricing-price small { font-size: 0.875rem; font-weight: 500; color: var(--zinc-500); }

.pricing-card-head p { margin: 0 0 1rem; font-size: 0.875rem; color: var(--zinc-500); }

.pricing-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
  font-size: 0.875rem;
  color: var(--zinc-600);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.pricing-feature-copy {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.pricing-features li::before {
  content: "";
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.2rem;
  background: var(--emerald);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.28 2.28L3.989 8.575 1.695 6.28A1 1 0 00.28 7.695l3 3a1 1 0 001.414 0l7-7A1 1 0 0010.28 2.28z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.28 2.28L3.989 8.575 1.695 6.28A1 1 0 00.28 7.695l3 3a1 1 0 001.414 0l7-7A1 1 0 0010.28 2.28z'/%3E%3C/svg%3E") center/contain no-repeat;
  background-color: var(--emerald);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
  border: 1px solid var(--zinc-200);
  border-radius: 0.5rem;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.faq-item.is-open {
  border-color: var(--zinc-300);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 1rem 1.25rem;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.45s ease, background 0.45s ease;
}

.faq-item.is-open .faq-trigger {
  color: var(--zinc-900);
  background: var(--zinc-50);
}

.faq-trigger::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--zinc-400);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.45s ease;
}

.faq-item.is-open .faq-trigger::after {
  transform: rotate(45deg);
  color: var(--zinc-700);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-body {
  grid-template-rows: 1fr;
}

.faq-body-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--zinc-500);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.45s ease 0.08s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.faq-item.is-open p {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonials */
.testimonials { overflow: hidden; padding-bottom: 4rem; }

.testimonials-title {
  text-align: center;
  margin: 0 0 2.5rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--zinc-100);
}

.testimonial-rows { display: flex; flex-direction: column; gap: 1rem; }

.testimonial-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation-duration: 40s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.testimonial-track:hover { animation-play-state: paused; }

.track-left { animation-name: scroll-left; }
.track-right { animation-name: scroll-right; animation-delay: -20s; }

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.testimonial-card {
  display: flex;
  gap: 0.75rem;
  width: 22rem;
  flex-shrink: 0;
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--zinc-700);
  border: 1px solid var(--zinc-600);
}

.testimonial-card img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.testimonial-card strong { display: block; font-size: 0.875rem; color: var(--zinc-100); }
.testimonial-card span { display: block; font-size: 0.75rem; color: var(--zinc-400); margin-bottom: 0.35rem; }
.testimonial-card p { margin: 0; font-size: 0.8125rem; color: var(--zinc-300); line-height: 1.45; }

/* CTA */
.cta-inner { text-align: center; }

.cta-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.cta-logo::before {
  content: "";
  position: absolute;
  top: -3rem;
  width: 13rem;
  height: 13rem;
  background: var(--zinc-900);
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(48px);
  z-index: -1;
}

.cta-inner h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
}

.cta-em {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  font-style: italic;
}

.cta-underline {
  position: absolute;
  width: calc(100% + 1rem);
  bottom: -0.15rem;
  z-index: -1;
}

.cta-inner > p {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--zinc-500);
}

.social-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}

.social-showcase a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--zinc-600);
  text-decoration: none;
  border: 1px solid transparent;
  background: linear-gradient(var(--zinc-50), var(--zinc-50)) padding-box, var(--gradient-border) border-box;
  transition: color 0.2s, border-color 0.2s;
}

.social-showcase a:hover {
  color: var(--zinc-900);
}

.social-showcase img {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.style-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--zinc-400));
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--zinc-200);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

.footer-inner p { margin: 0; font-size: 0.875rem; color: var(--zinc-500); }

.footer-social {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: flex;
  color: var(--zinc-700);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--zinc-900); }

.footer-social img {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  filter: brightness(0);
  opacity: 0.72;
  transition: opacity 0.2s;
}

.footer-social a:hover img { opacity: 0.95; }

@media (max-width: 640px) {
  .header-nav a:not(.btn) { display: none; }
  .brand-name { font-size: 0.9375rem; }
  .hero-studio-image { border-radius: 0.65rem; }
}

/* Login page */
.page--login {
  background: var(--white);
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  position: relative;
}

.login-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 24rem;
  background: linear-gradient(to bottom, var(--zinc-100), transparent);
  pointer-events: none;
  z-index: 0;
}

.login-main > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.login-card {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.login-card-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-logo {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: var(--zinc-50);
  border: 1px solid var(--zinc-200);
  box-shadow: var(--shadow-sm);
}

.login-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.65rem;
}

.login-title {
  margin: 0.75rem 0 0.65rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--zinc-900);
  line-height: 1.2;
}

.login-sub {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--zinc-500);
}

.login-error {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--zinc-200);
  background: var(--white);
  color: var(--zinc-900);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-google:hover {
  background: var(--zinc-50);
  border-color: var(--zinc-300);
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.08);
}

.btn-google:active {
  transform: scale(0.99);
}

.google-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.login-note {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--zinc-500);
}

.login-perks {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--zinc-200);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.login-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--zinc-600);
}

.login-perks strong {
  color: var(--zinc-900);
  font-weight: 600;
}

.login-perk-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  background: var(--zinc-100);
  border: 1px solid var(--zinc-200);
  color: var(--zinc-600);
}

.login-perk-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.login-back {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
}

.login-back a {
  color: var(--zinc-500);
  font-weight: 500;
  transition: color 0.2s;
}

.login-back a:hover {
  color: var(--zinc-900);
}

@media (max-width: 640px) {
  .login-main {
    padding-top: 6.5rem;
    align-items: flex-start;
  }

  .login-card {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

/* Username setup */
.page--setup-username {
  min-height: 100dvh;
  background: #09090b;
  color: #fafafa;
}

.site-header--dark {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.brand--dark .brand-name {
  color: #fafafa;
}

.brand--dark .brand-ai {
  color: #a1a1aa;
}

.setup-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem 0;
  position: relative;
}

.setup-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(88, 101, 242, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(55, 174, 226, 0.08), transparent 50%);
  pointer-events: none;
}

.setup-main > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.setup-card {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1.75rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(39, 39, 42, 0.95), rgba(24, 24, 27, 0.98));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.setup-card-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.setup-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.setup-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fafafa;
  line-height: 1.2;
}

.setup-sub {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #a1a1aa;
}

.setup-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.setup-avatar-wrap {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #27272a;
}

.setup-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.setup-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e4e4e7;
}

.setup-user-meta {
  min-width: 0;
}

.setup-user-name {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.setup-user-email {
  margin: 0;
  font-size: 0.8125rem;
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.setup-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.setup-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #d4d4d8;
}

.setup-username-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.setup-username-row:focus-within {
  border-color: rgba(88, 101, 242, 0.65);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.18);
}

.setup-username-prefix {
  font-size: 1rem;
  font-weight: 600;
  color: #71717a;
}

.setup-input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 0;
  border: 0;
  background: transparent;
  color: #fafafa;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
}

.setup-input::placeholder {
  color: #52525b;
}

.setup-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #71717a;
}

.setup-error {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.btn-setup {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn-setup:hover:not(:disabled) {
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.35);
}

.btn-setup:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

a.btn-setup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-setup-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: block;
}

.btn-setup--light {
  background: #fafafa;
  color: #09090b;
}

.btn-setup--light:hover:not(:disabled) {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.12);
}

.setup-badge--danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.35);
}

.setup-reason {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: rgba(127, 29, 29, 0.18);
}

.setup-reason-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #fecaca;
}

.setup-signout {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: #71717a;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.setup-signout:hover {
  color: #d4d4d8;
}

.toast--setup {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fafafa;
  font-size: 0.8125rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

@media (max-width: 640px) {
  .setup-main {
    padding: 1.5rem 0;
    align-items: center;
  }

  .setup-card {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}
