.brand-page { max-width: 56rem; }
.brand-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.brand-page h2 { font-size: 1.25rem; font-weight: 600; margin: 2.5rem 0 1rem; color: rgba(255,255,255,0.92); }
.brand-page h3 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.5rem; color: rgba(255,255,255,0.8); }
.brand-page p, .brand-page li { color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 0.75rem; }
.brand-page ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }

.brand-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .brand-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .brand-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  #logo-grid.brand-grid-2 { grid-template-columns: repeat(3, 1fr); }
}

.brand-card {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.brand-card-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1.5rem;
}
.brand-card-preview.light { background: #f4f7fb; }
.brand-card-preview.dark { background: #0a0f1a; }
.brand-card-preview.checker {
  background-color: #0a0f1a;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.06) 75%);
  background-size: 16px 16px;
}
.brand-card-body { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.06); }
.brand-card-body p { font-size: 0.8125rem; margin: 0 0 0.75rem; color: rgba(255,255,255,0.45); }
.brand-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.brand-swatch {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.brand-swatch-color { height: 4.5rem; }
.brand-swatch-meta { padding: 0.75rem 1rem; background: rgba(0,0,0,0.25); }
.brand-swatch-meta code { font-size: 0.75rem; color: rgba(255,255,255,0.75); font-family: ui-monospace, monospace; }
.brand-swatch-meta p { font-size: 0.6875rem; margin: 0.25rem 0 0; color: rgba(255,255,255,0.35); }

.brand-code {
  position: relative;
  margin-top: 0.75rem;
}
.brand-code pre {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-x: auto;
  color: rgba(255,255,255,0.75);
  font-family: ui-monospace, Cascadia Code, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
}
.brand-code-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.6875rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
}
.brand-code-copy:hover { background: rgba(255,255,255,0.12); color: #fff; }

.brand-badge-demo { display: inline-flex; max-width: 100%; margin: 0; }
.brand-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.brand-tab {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  background: transparent;
}
.brand-tab.active {
  background: rgba(51,163,255,0.15);
  border-color: rgba(51,163,255,0.35);
  color: #8ed8ff;
}
.brand-panel { display: none; }
.brand-panel.active { display: block; }

.brand-demo-wrap {
  border-radius: 0.875rem;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-demo-wrap.light { background: #f1f5f9; }
.brand-demo-wrap.neutral { background: #e2e8f0; }
.brand-demo-wrap.dark { background: #0a0f1a; }
.brand-demo-wrap iframe.brand-demo-iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 0.75rem;
  background: #0a0f1a;
}
.brand-badge-demo a { pointer-events: none; }
.brand-logo-preview img, .brand-logo-preview svg { max-width: 100%; height: auto; max-height: 48px; }
.brand-wallpaper-preview {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 0.875rem 0.875rem 0 0;
  background: #0a0f1a;
}
.brand-card-preview.wallpaper { min-height: auto; padding: 0; overflow: hidden; }
.brand-logo-preview.mark img, .brand-logo-preview.mark svg { max-height: 64px; }

.brand-btn-sm {
  font-size: 0.6875rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(51,163,255,0.15);
  border: 1px solid rgba(51,163,255,0.3);
  color: #8ed8ff;
  cursor: pointer;
}
.brand-btn-sm:hover { background: rgba(51,163,255,0.25); }
.brand-btn-sm:disabled { opacity: 0.5; cursor: wait; }

.brand-note {
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  background: rgba(51,163,255,0.08);
  border: 1px solid rgba(51,163,255,0.2);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}
