/* Hermes Intelligence Brand Portal CSS — v2.0 */

:root {
  /* Master Colors */
  --hermes-blue: #2563EB;
  --deep-space: #0A0E14;
  --elevated: #151921;
  --border: rgba(255,255,255,0.08);
  --text-1: #E2E8F0;
  --text-2: #94A3B8;
  --text-3: #64748B;

  /* Product Colors */
  --vextrum: #2DD4BF;
  --agora: #E8C547;
  --aegis: #06B6D4;
  --hephaestus: #CD7F32;
  --argos: #047857;

  /* Fonts */
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset only for brand-book content, NOT navbar/sidebar */
.brand-portal-main *,
.brand-book-subnav * {
  box-sizing: border-box;
}

body {
  background: var(--deep-space) !important;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

/* Override any main portal white backgrounds */
.main-content {
  background: var(--deep-space) !important;
  padding: 0 !important;
}

.content {
  background: var(--deep-space) !important;
}

.main-wrapper {
  background: var(--deep-space) !important;
}

/* Hide topbar on brand-book pages */
.topbar {
  display: none !important;
}

/* Adjust brand-book subnav to account for no topbar */
.brand-book-subnav {
  top: 0 !important;
}

/* Brand Portal Container */
.brand-portal-container {
  min-height: 100vh;
  margin-left: 280px; /* Account for sidebar */
  padding: 0; /* Remove all padding */
  position: relative;
  z-index: 1; /* Below sidebar */
  background: var(--deep-space); /* Match portal dark theme */
  transition: margin-left 0.3s ease; /* Smooth transition */
}

/* Adjust when sidebar is collapsed */
.sidebar-collapsed .brand-portal-container {
  margin-left: 64px; /* Collapsed sidebar width */
}

/* Sub-Navigation */
.brand-book-subnav {
  display: flex;
  gap: 8px;
  padding: 16px 32px; /* Reduced from 80px */
  background: var(--elevated);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0; /* Stick to top, not 80px */
  z-index: 100;
  overflow-x: auto;
}

.subnav-item {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.subnav-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-1);
}

.subnav-item.active {
  background: rgba(45,212,191,0.12);
  color: var(--vextrum);
  border: 1px solid rgba(45,212,191,0.3);
}

.subnav-item-highlight {
  background: rgba(37,99,235,0.12);
  color: var(--hermes-blue);
  border: 1px solid rgba(37,99,235,0.3);
}

/* Main Content */
.brand-portal-main {
  padding: 32px; /* Reduced from 60px 80px */
  max-width: none; /* Fill available width */
  width: 100%; /* Full width */
  margin: 0; /* No auto centering */
  background: var(--deep-space); /* Dark background */
}

/* Hero Section */
.brand-hero {
  text-align: center;
  margin-bottom: 80px;
}

.brand-hero-logo {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.brand-hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #2DD4BF, #06B6D4, #E8C547, #CD7F32, #047857);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-hero-subtitle {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 40px;
}

/* Search Bar */
.brand-search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.brand-search-input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-1);
  font-size: 15px;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.brand-search-input:focus {
  outline: none;
  border-color: var(--vextrum);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.1);
}

.brand-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
  /* pointer-events: none; REMOVED - was blocking sidebar clicks */
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 1000;
}

.search-result-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: rgba(255,255,255,0.03);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}

.search-result-snippet {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.search-result-highlight {
  background: rgba(45,212,191,0.2);
  color: var(--vextrum);
  font-weight: 600;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.category-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45,212,191,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.category-card-highlight {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(30,64,175,0.08));
  border-color: rgba(37,99,235,0.3);
}

.category-card-highlight:hover {
  border-color: rgba(37,99,235,0.5);
}

.category-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.category-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}

.category-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.category-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

/* Section Headings */
.section-heading {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-1);
}

/* Product Showcase */
.product-showcase {
  margin-bottom: 80px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-preview {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease;
}

.product-preview:hover {
  transform: translateY(-2px);
}

.product-preview-logo {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.product-preview-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-preview-tagline {
  font-size: 13px;
  font-style: italic;
  color: var(--text-2);
  margin-bottom: 8px;
}

.product-preview-desc {
  font-size: 12px;
  color: var(--text-3);
}

/* Quick Access */
.quick-access {
  margin-bottom: 80px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.quick-access-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.quick-access-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}

.quick-access-card p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
}

/* Buttons */
.btn-download,
.btn-primary,
.copy-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(45,212,191,0.3);
  font-family: var(--font-body);
  background: rgba(45,212,191,0.12);
  color: var(--vextrum);
}

.btn-download:hover,
.copy-btn:hover {
  background: rgba(45,212,191,0.2);
  border-color: rgba(45,212,191,0.5);
}

.btn-primary {
  background: linear-gradient(135deg, #1e40af, #2563EB);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}

/* Copy Button States */
.copy-btn.copied,
.btn-download.copied {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border-color: rgba(34,197,94,0.3);
}

/* Color Swatches */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.color-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.color-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.color-swatch {
  height: 140px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-info {
  padding: 20px;
}

.color-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.color-usage {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 12px;
  line-height: 1.5;
}

.color-values {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.color-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}

.color-value-label {
  color: var(--text-2);
  font-weight: 600;
}

.color-value-code {
  color: var(--text-1);
  user-select: all;
  cursor: pointer;
}

.color-value-code:hover {
  color: var(--vextrum);
}

/* Logo Display */
.logo-display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

/* Full-width logo row: preview left, context right */
.logo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.logo-row .logo-card {
  margin: 0;
}

.logo-row .context-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.logo-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.logo-preview {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
}

.logo-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.logo-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Context Variations */
.context-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.context-card {
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.context-card.dark {
  background: #000000;
}

.context-card.light {
  background: #E2E8F0; /* Light gray instead of pure white */
}

.context-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 12px;
  color: var(--text-2);
}

.context-card.light .context-label {
  color: #1e293b;
}

.context-card .context-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.context-card .context-actions .ctx-btn {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(45,212,191,0.3);
  background: rgba(45,212,191,0.1);
  color: var(--vextrum);
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 0.15s ease;
}

.context-card .context-actions .ctx-btn:hover {
  background: rgba(45,212,191,0.2);
}

.context-card.light .context-actions .ctx-btn {
  color: #0d9488;
  border-color: rgba(13,148,136,0.3);
  background: rgba(13,148,136,0.1);
}

.context-card .context-actions .ctx-btn.copied {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border-color: rgba(34,197,94,0.3);
}

/* Page Header (inner pages) */
.page-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ========================================
   Typography Page Components
   ======================================== */

/* Font Specimen Card */
.type-specimen {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.type-specimen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.type-specimen-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
}

.type-specimen-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.type-specimen-sample {
  margin-bottom: 20px;
  color: var(--text-1);
  line-height: 1.3;
}

.type-specimen-alphabet {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.8;
  letter-spacing: 0.05em;
  word-break: break-all;
}

.weight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.weight-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.weight-card-sample {
  font-size: 32px;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1.2;
}

.weight-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Type Scale Visual Ladder */
.type-scale {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.type-scale-row {
  display: grid;
  grid-template-columns: 120px 1fr 200px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

.type-scale-row:last-child {
  border-bottom: none;
}

.type-scale-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--vextrum);
  background: rgba(45,212,191,0.08);
  padding: 4px 10px;
  border-radius: 6px;
  text-align: center;
}

.type-scale-preview {
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-scale-specs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.8;
}

/* Code Block with Copy */
.code-block {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.code-block-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.code-block .kw { color: #c792ea; }
.code-block .pr { color: #82aaff; }
.code-block .vl { color: #c3e88d; }
.code-block .cm { color: #546e7a; }

/* ========================================
   Voice & Tone Page Components
   ======================================== */

/* Tone Card (Do/Don't) */
.tone-card {
  background: var(--elevated);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
}

.tone-card-do {
  border-left: 4px solid #22c55e;
}

.tone-card-dont {
  border-left: 4px solid #ef4444;
}

.tone-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.tone-card-do .tone-card-label { color: #22c55e; }
.tone-card-dont .tone-card-label { color: #ef4444; }

.tone-card-text {
  font-size: 15px;
  color: var(--text-1);
  line-height: 1.6;
}

.tone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

/* Vocabulary Table */
.vocab-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.vocab-table th {
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: left;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.vocab-table th:first-child { color: #22c55e; }
.vocab-table th:last-child { color: #ef4444; }

.vocab-table td {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
}

.vocab-table tr:last-child td { border-bottom: none; }

.vocab-table td:first-child {
  font-weight: 600;
  color: #22c55e;
}

.vocab-table td:last-child {
  color: var(--text-2);
  text-decoration: line-through;
  opacity: 0.7;
}

/* Pillar Card */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.pillar-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.pillar-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.pillar-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}

.pillar-card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pillar-card-example {
  font-size: 13px;
  font-style: italic;
  color: var(--vextrum);
  padding: 10px 14px;
  background: rgba(45,212,191,0.06);
  border-radius: 8px;
  border-left: 3px solid rgba(45,212,191,0.3);
}

/* Tone Spectrum */
.tone-spectrum {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
}

.spectrum-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}

.spectrum-row:last-child { margin-bottom: 0; }

.spectrum-label-left,
.spectrum-label-right {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 120px;
  color: var(--text-3);
}

.spectrum-label-right { text-align: right; }

.spectrum-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  position: relative;
}

.spectrum-marker {
  position: absolute;
  top: -6px;
  width: 20px;
  height: 20px;
  background: var(--vextrum);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(45,212,191,0.4);
}

/* ========================================
   Presentations Page Components
   ======================================== */

/* Slide Preview */
.slide-preview {
  background: #0A0E14;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  margin-bottom: 16px;
}

.slide-preview-inner {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.slide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.slide-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.slide-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.slide-card-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
}

/* Slide grid overlay lines */
.slide-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
}

.slide-grid-overlay line {
  stroke: #fff;
  stroke-width: 1;
}

/* ========================================
   Video & Motion Page Components
   ======================================== */

/* Animation Preview */
.anim-preview {
  background: #0A0E14;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anim-preview-16x9 {
  aspect-ratio: 16 / 9;
}

.anim-replay-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.anim-replay-btn:hover {
  background: rgba(45,212,191,0.15);
  color: var(--vextrum);
  border-color: rgba(45,212,191,0.3);
}

.anim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.anim-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.anim-card-body {
  padding: 20px;
}

.anim-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.anim-card-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.anim-card-specs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

/* Easing Demo */
.easing-demo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
}

.easing-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vextrum);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(45,212,191,0.4);
}

.easing-track {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  position: relative;
}

/* Color Grading Cards */
.grading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.grading-card {
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
}

.grading-card-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.grading-card-mood {
  font-size: 12px;
  color: var(--text-2);
}

/* ========================================
   Applications Page Components
   ======================================== */

/* Template Card */
.template-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.template-card-preview {
  padding: 24px;
  background: rgba(0,0,0,0.2);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-card-body {
  padding: 20px;
}

.template-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.template-card-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
}

/* Email Signature Preview */
.sig-preview {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  color: #1e293b;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.sig-preview-dark {
  background: #0A0E14;
  color: #E2E8F0;
}

/* Social Template Specs */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.social-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.social-card-preview {
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.social-card-body {
  padding: 16px;
}

.social-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.social-card-dims {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

/* Form Controls (for signature generator) */
.brand-form-group {
  margin-bottom: 16px;
}

.brand-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-form-input,
.brand-form-select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-1);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.brand-form-input:focus,
.brand-form-select:focus {
  outline: none;
  border-color: var(--vextrum);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.1);
}

.brand-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Signature Generator Layout */
.sig-generator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

/* Info Banner */
.info-banner {
  background: rgba(45,212,191,0.06);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-banner-icon {
  color: var(--vextrum);
  flex-shrink: 0;
}

/* Product Messaging Grid */
.messaging-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.messaging-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  border-top: 3px solid var(--border);
}

.messaging-card-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.messaging-card-tagline {
  font-size: 13px;
  font-style: italic;
  color: var(--text-2);
  margin-bottom: 12px;
}

.messaging-card-pitch {
  font-size: 14px;
  color: var(--text-1);
  margin-bottom: 12px;
  line-height: 1.6;
}

.messaging-card-diff {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 1200px) {
  .brand-portal-main {
    padding: 40px 40px;
  }

  .brand-book-subnav {
    padding: 12px 40px;
  }
}

/* Reset sidebar margin on tablet/mobile */
@media (max-width: 991px) {
  .brand-portal-container,
  .sidebar-collapsed .brand-portal-container {
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  .brand-portal-main {
    padding: 32px 20px;
  }

  .brand-book-subnav {
    padding: 12px 20px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .brand-book-subnav::-webkit-scrollbar {
    display: none;
  }

  .subnav-item {
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
  }

  .btn-download,
  .copy-btn,
  .btn-primary {
    min-height: 44px;
    padding: 12px 20px;
  }

  .brand-hero-title {
    font-size: 36px;
  }

  .brand-hero {
    margin-bottom: 48px;
  }

  .category-grid,
  .product-grid,
  .quick-access-grid {
    grid-template-columns: 1fr;
  }

  .context-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-display-grid {
    grid-template-columns: 1fr;
  }

  .logo-row {
    grid-template-columns: 1fr;
  }

  .logo-row .context-col {
    grid-template-columns: 1fr 1fr;
  }

  .type-scale-row {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }

  .type-scale-specs {
    display: none;
  }

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

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

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

  .sig-generator {
    grid-template-columns: 1fr;
  }

  .spectrum-label-left,
  .spectrum-label-right {
    width: 80px;
    font-size: 10px;
  }

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

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

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

  .grading-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .weight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .section-heading {
    font-size: 24px;
  }

  .page-header {
    margin-bottom: 40px;
  }
}

/* Small phone breakpoint */
@media (max-width: 480px) {
  .brand-portal-main {
    padding: 24px 16px;
  }

  .brand-hero-title {
    font-size: 28px;
  }

  .brand-hero-subtitle {
    font-size: 14px;
  }

  .brand-hero {
    margin-bottom: 36px;
  }

  .brand-book-subnav {
    padding: 10px 12px;
    gap: 6px;
  }

  .subnav-item {
    padding: 10px 12px;
    font-size: 12px;
  }

  .section-heading {
    font-size: 22px;
  }

  .type-scale-row {
    grid-template-columns: 60px 1fr;
    gap: 8px;
    padding: 14px 16px;
  }

  .type-scale-tag {
    font-size: 11px;
    padding: 3px 6px;
  }

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

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

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

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

  .category-card {
    padding: 24px;
  }

  .category-icon {
    width: 64px;
    height: 64px;
  }

  .quick-access-card {
    padding: 24px;
  }

  .type-specimen {
    padding: 24px;
  }

  .logo-card {
    padding: 24px;
  }

  .logo-preview {
    min-height: 150px;
  }

  .brand-search-input {
    font-size: 14px;
    padding: 12px 44px 12px 16px;
  }

  .slide-card {
    padding: 16px;
  }

  .spectrum-row {
    gap: 8px;
  }

  .spectrum-label-left,
  .spectrum-label-right {
    width: 60px;
    font-size: 9px;
  }

  .tone-spectrum {
    padding: 24px 16px;
  }

  .pillar-card {
    padding: 20px;
  }

  .logo-row .context-col {
    grid-template-columns: 1fr;
  }
}