/* ============================================================
   Opsible — Premium Enterprise UI
   Dark theme · Glassmorphism · Animated · Responsive
   ============================================================ */

:root {
  /* ── Core palette ── */
  --bg-base:       #060810;
  --bg-surface:    #0c0e16;
  --bg-elevated:   #111422;
  --bg-card:       #141829;
  --bg-card-hover: #181d30;
  --bg-glass:      rgba(20, 24, 41, 0.6);
  --bg-glass-2:    rgba(255,255,255,0.03);

  --border:        #1e2540;
  --border-subtle: #181d2e;
  --border-focus:  #4a7cf7;
  --border-glow:   rgba(74,124,247,0.25);

  --text-primary:   #eef1f8;
  --text-secondary: #8892aa;
  --text-muted:     #4a5368;
  --text-code:      #7dd3fc;

  /* ── Accent system ── */
  --accent-blue:   #4a7cf7;
  --accent-blue-2: #3063e0;
  --accent-blue-3: #1a4fd6;
  --accent-cyan:   #22d3ee;
  --accent-green:  #10b981;
  --accent-orange: #f59e0b;
  --accent-red:    #f43f5e;
  --accent-purple: #a855f7;
  --accent-violet: #7c3aed;
  --accent-pink:   #ec4899;

  /* ── Gradients ── */
  --grad-primary:   linear-gradient(135deg, #4a7cf7 0%, #7c3aed 100%);
  --grad-blue:      linear-gradient(135deg, #4a7cf7 0%, #22d3ee 100%);
  --grad-green:     linear-gradient(135deg, #10b981 0%, #22d3ee 100%);
  --grad-orange:    linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --grad-purple:    linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --grad-hero:      radial-gradient(ellipse 80% 60% at 50% -10%, rgba(74,124,247,0.15) 0%, transparent 60%);
  --grad-mesh:      radial-gradient(ellipse 60% 40% at 80% 20%, rgba(124,58,237,0.1) 0%, transparent 50%),
                    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(74,124,247,0.08) 0%, transparent 50%);

  /* ── Radius ── */
  --r-xs: 4px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* ── Shadows ── */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.5);
  --shadow:     0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 30px rgba(74,124,247,0.2);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);

  /* ── Typography ── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* ── Motion ── */
  --t-fast: 0.12s ease;
  --t:      0.18s ease;
  --t-slow: 0.3s ease;
  --t-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body { font-family: var(--font-sans); background: var(--bg-base); color: var(--text-primary); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, rgba(5,8,22,0.97) 0%, rgba(8,12,30,0.95) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(99,102,241,0.1);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(99,102,241,0.06), 0 4px 24px rgba(0,0,0,0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  background: linear-gradient(180deg, rgba(5,8,22,0.99) 0%, rgba(8,12,30,0.98) 100%);
  border-bottom-color: rgba(99,102,241,0.18);
  box-shadow: 0 1px 0 rgba(99,102,241,0.12), 0 8px 32px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }

.logo-icon, .logo-text, .logo-badge { display: none !important; }

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

.nav-link {
  color: rgba(148,163,184,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}
.nav-link.active {
  color: #fff;
  background: transparent;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
}

.status-link { display: flex; align-items: center; gap: 0.4rem; }
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(16,185,129,0.7);
  animation: pulse-dot 2.5s infinite;
}
@keyframes pulse-dot { 0%,100% { opacity:1; box-shadow: 0 0 8px rgba(16,185,129,0.7); } 50% { opacity:0.6; box-shadow: 0 0 3px rgba(16,185,129,0.3); } }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  text-align: center;
  background: var(--bg-base);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero), var(--grad-mesh);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
  border: 1px solid rgba(74,124,247,0.3);
  background: rgba(74,124,247,0.08);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.75rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-cyan {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.32rem 0.88rem;
  border-radius: 100px;
  transition: var(--t);
  letter-spacing: 0.01em;
  backdrop-filter: blur(4px);
}
.chip:hover {
  border-color: rgba(74,124,247,0.4);
  color: var(--text-primary);
  background: rgba(74,124,247,0.06);
}

/* ── Platform Mode Selector ────────────────────────────────── */
.platform-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
}

.platform-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.platform-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.platform-subtitle { font-size: 0.8rem; color: var(--text-muted); }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.6rem;
}

.platform-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 0.875rem;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  user-select: none;
}
.platform-card:hover {
  border-color: rgba(74,124,247,0.4);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.platform-card.active {
  border-color: var(--accent-blue);
  background: rgba(74,124,247,0.1);
  box-shadow: 0 0 0 1px rgba(74,124,247,0.3), var(--shadow-card);
}
.platform-card input[type="radio"] { display: none; }

.platform-card-icon { font-size: 1.5rem; line-height: 1; }
.platform-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}
.platform-card.active .platform-card-label { color: var(--accent-blue); }
.platform-card-desc {
  font-size: 0.67rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.platform-card .mode-check {
  position: absolute;
  top: 0.4rem; right: 0.4rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  transition: var(--t);
}
.platform-card.active .mode-check {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 8px rgba(74,124,247,0.5);
}
.platform-card.active .mode-check::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: white;
  line-height: 12px;
}

/* Mode-influenced accent colors */
.platform-card[data-mode="startup"] { --card-accent: var(--accent-orange); }
.platform-card[data-mode="startup"].active { border-color: var(--accent-orange); background: rgba(245,158,11,0.08); box-shadow: 0 0 0 1px rgba(245,158,11,0.2); }
.platform-card[data-mode="startup"].active .platform-card-label { color: var(--accent-orange); }
.platform-card[data-mode="startup"].active .mode-check { background: var(--accent-orange); border-color: var(--accent-orange); }

.platform-card[data-mode="community"], .platform-card[data-mode="open_source"] { --card-accent: var(--accent-green); }
.platform-card[data-mode="community"].active, .platform-card[data-mode="open_source"].active { border-color: var(--accent-green); background: rgba(16,185,129,0.08); box-shadow: 0 0 0 1px rgba(16,185,129,0.2); }
.platform-card[data-mode="community"].active .platform-card-label, .platform-card[data-mode="open_source"].active .platform-card-label { color: var(--accent-green); }
.platform-card[data-mode="community"].active .mode-check, .platform-card[data-mode="open_source"].active .mode-check { background: var(--accent-green); border-color: var(--accent-green); }

.platform-card[data-mode="ai_workloads"] { --card-accent: var(--accent-purple); }
.platform-card[data-mode="ai_workloads"].active { border-color: var(--accent-purple); background: rgba(168,85,247,0.08); box-shadow: 0 0 0 1px rgba(168,85,247,0.2); }
.platform-card[data-mode="ai_workloads"].active .platform-card-label { color: var(--accent-purple); }
.platform-card[data-mode="ai_workloads"].active .mode-check { background: var(--accent-purple); border-color: var(--accent-purple); }

.platform-card[data-mode="high_availability"], .platform-card[data-mode="disaster_recovery"] { --card-accent: var(--accent-red); }
.platform-card[data-mode="high_availability"].active, .platform-card[data-mode="disaster_recovery"].active { border-color: var(--accent-red); background: rgba(244,63,94,0.08); box-shadow: 0 0 0 1px rgba(244,63,94,0.2); }
.platform-card[data-mode="high_availability"].active .platform-card-label, .platform-card[data-mode="disaster_recovery"].active .platform-card-label { color: var(--accent-red); }
.platform-card[data-mode="high_availability"].active .mode-check, .platform-card[data-mode="disaster_recovery"].active .mode-check { background: var(--accent-red); border-color: var(--accent-red); }

/* ── Form Container ───────────────────────────────────────── */
.form-container { padding: 2.5rem 0 4rem; }

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 2.25rem;
  margin-bottom: 1.25rem;
  transition: border-color var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
}
.form-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
.form-section:hover { border-color: rgba(74,124,247,0.25); box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-number {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(74,124,247,0.35);
  line-height: 1;
  min-width: 2.5rem;
}
.section-title { font-size: 1.05rem; font-weight: 650; color: var(--text-primary); }
.section-subtitle { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.2rem; }

/* ── Form Controls ────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.span-2 { grid-column: 1 / -1; }

.form-label {
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.form-label.required::after { content: '*'; color: var(--accent-red); margin-left: 2px; }
.optional { color: var(--text-muted); font-weight: 400; }

.form-input, .form-select, .form-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.6rem 0.875rem;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  width: 100%;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(74,124,247,0.12);
  background: var(--bg-card);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238892aa' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
.form-hint { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }

/* ── Checkbox Grid ────────────────────────────────────────── */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.65rem;
}

.checkbox-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t-fast);
  display: block;
}
.checkbox-card:hover {
  border-color: rgba(74,124,247,0.35);
  background: rgba(74,124,247,0.05);
  transform: translateY(-1px);
}
.checkbox-card input[type="checkbox"] { display: none; }
.checkbox-card:has(input:checked) {
  border-color: var(--accent-blue);
  background: rgba(74,124,247,0.09);
  box-shadow: 0 0 0 1px rgba(74,124,247,0.2);
}

.checkbox-content { display: flex; align-items: center; gap: 0.6rem; pointer-events: none; }
.checkbox-icon { font-size: 1rem; width: 1.2rem; text-align: center; }
.checkbox-label { font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); line-height: 1.3; }
.checkbox-card:has(input:checked) .checkbox-label { color: var(--text-primary); }

/* ── Compliance Badges ────────────────────────────────────── */
.compliance-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.compliance-badge {
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--t);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
}
.compliance-badge input[type="checkbox"] { display: none; }
.compliance-badge:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.compliance-badge:has(input:checked) {
  background: rgba(245,158,11,0.1);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* ── Tooling Selector ─────────────────────────────────────── */
.tooling-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 2rem 2.25rem; margin-bottom: 1.25rem; }

.tooling-category { margin-bottom: 1.75rem; }
.tooling-category:last-child { margin-bottom: 0; }

.tooling-category-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.tooling-category-icon { font-size: 0.9rem; }
.tooling-category-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.tooling-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-chip {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--t);
  user-select: none;
}
.tool-chip:hover { border-color: rgba(74,124,247,0.4); color: var(--text-primary); background: var(--bg-card); }
.tool-chip input[type="checkbox"] { display: none; }
.tool-chip:has(input:checked) {
  border-color: var(--accent-cyan);
  background: rgba(34,211,238,0.08);
  color: var(--accent-cyan);
}
.tool-chip-icon { font-size: 0.85rem; }

/* ── Alert ────────────────────────────────────────────────── */
.alert {
  border-radius: var(--r);
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid;
}
.alert-error { background: rgba(244,63,94,0.08); border-color: rgba(244,63,94,0.3); color: #fda4b5; }
.alert-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.3); color: #fcd34d; }
.alert-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--grad-primary);
  color: white;
  border: none;
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: opacity var(--t), transform var(--t-fast), box-shadow var(--t);
  box-shadow: 0 0 20px rgba(74,124,247,0.25);
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 4px 24px rgba(74,124,247,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-large { font-size: 1rem; padding: 0.9rem 2.25rem; border-radius: var(--r-lg); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: var(--t);
}
.btn-secondary:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: rgba(74,124,247,0.3); }

.btn-icon { font-size: 1rem; }

/* ── Form CTA ─────────────────────────────────────────────── */
.form-cta {
  text-align: center;
  padding: 2.5rem 0 0;
}
.cta-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.85rem; }

/* ── Mode Banner ──────────────────────────────────────────── */
.mode-influence-banner {
  background: rgba(74,124,247,0.06);
  border: 1px solid rgba(74,124,247,0.15);
  border-radius: var(--r);
  padding: 0.65rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mode-banner-icon { font-size: 0.9rem; }
.mode-banner-text strong { color: var(--accent-blue); }

/* ── Scenario Cards ───────────────────────────────────────── */
.scenarios-section { padding: 2.5rem 0 4rem; }
.scenarios-title { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; text-align: center; }

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1rem;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  font-family: var(--font-sans);
  color: var(--text-primary);
}
.scenario-card:hover {
  border-color: rgba(74,124,247,0.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.scenario-icon { font-size: 1.4rem; margin-bottom: 0.25rem; }
.scenario-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.scenario-desc { font-size: 0.74rem; color: var(--text-muted); line-height: 1.4; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-brand { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.footer-tagline { font-size: 0.75rem; color: var(--text-muted); }
.footer-provider { font-size: 0.72rem; color: var(--text-muted); }

/* ── Results ──────────────────────────────────────────────── */
.results-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.results-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.results-meta { display: flex; flex-direction: column; gap: 0.5rem; }
.back-link { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.back-link:hover { color: var(--accent-blue); text-decoration: none; }
.results-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.results-subtitle { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.2rem; }
.results-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  border: 1px solid;
}
.confidence-high { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.4); color: #6ee7b7; }
.confidence-medium { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.4); color: #fcd34d; }
.confidence-low { background: rgba(244,63,94,0.1); border-color: rgba(244,63,94,0.4); color: #fda4b5; }
.confidence-score { font-family: var(--font-mono); font-weight: 700; }

.results-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 0 4rem;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.results-col { display: flex; flex-direction: column; gap: 1.25rem; }

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.result-card-wide { grid-column: 1 / -1; }

.card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-body { padding: 1.5rem; }

.summary-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.key-decisions h4, .tradeoffs h4 {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.6rem;
}
.decisions-list, .tradeoffs-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.decisions-list li, .tradeoffs-list li { font-size: 0.85rem; color: var(--text-secondary); display: flex; gap: 0.6rem; }
.decision-bullet { color: var(--accent-blue); flex-shrink: 0; margin-top: 0.15rem; }

/* Cost card */
.cost-table { width: 100%; border-collapse: collapse; }
.cost-table td { padding: 0.5rem 0; font-size: 0.85rem; border-bottom: 1px solid var(--border-subtle); }
.cost-table td:last-child { text-align: right; font-weight: 600; font-family: var(--font-mono); color: var(--accent-green); }
.cost-table tr:last-child td { border-bottom: none; }

/* Component tags */
.component-list { display: flex; flex-direction: column; gap: 0.5rem; }
.component-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  gap: 0.5rem;
}
.component-name { font-size: 0.85rem; font-weight: 500; }
.component-category { font-size: 0.72rem; color: var(--text-muted); }
.required-badge { font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; background: rgba(16,185,129,0.15); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.3); }
.optional-badge { font-size: 0.65rem; font-weight: 600; padding: 2px 6px; border-radius: 3px; background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--border); }

/* Code block */
.code-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  overflow-x: auto;
}
.code-block pre {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-code);
  line-height: 1.65;
  white-space: pre;
  margin: 0;
}

/* Mermaid */
.mermaid-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  overflow-x: auto;
  text-align: center;
}

.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.tab-btn {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: var(--t);
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }
.tab-btn:hover { color: var(--text-secondary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Stats row */
.stats-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.stat-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-chip-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-chip-value { font-size: 0.9rem; font-weight: 700; font-family: var(--font-mono); color: var(--text-primary); }

/* ── Glassmorphism metric cards ───────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Gradient metric cards ────────────────────────────────── */
.metric-card {
  border-radius: var(--r-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 70%);
  transform: translate(20px, -20px);
}

/* ── Results page components ──────────────────────────────── */
.card-body.p-0 { padding: 0; }

/* Components table */
.components-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.components-table th {
  padding: 0.65rem 1.25rem;
  font-size: 0.7rem; font-weight: 650; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; text-align: left;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border-subtle);
}
.components-table td { padding: 0.7rem 1.25rem; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.components-table tr:last-child td { border-bottom: none; }
.components-table tr:hover td { background: rgba(255,255,255,0.015); }
.service-name { font-weight: 500; color: var(--text-primary); }
.provider-badge { font-size: 0.67rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.provider-aws { background: rgba(255,153,0,0.15); color: #ffaa44; border: 1px solid rgba(255,153,0,0.3); }
.provider-azure { background: rgba(0,120,212,0.15); color: #5db0f6; border: 1px solid rgba(0,120,212,0.3); }
.provider-gcp { background: rgba(66,133,244,0.15); color: #7ab4fa; border: 1px solid rgba(66,133,244,0.3); }
.provider-shared, .provider-multi-cloud { background: rgba(139,109,255,0.15); color: #a98bff; border: 1px solid rgba(139,109,255,0.3); }
.category-tag { font-size: 0.72rem; color: var(--text-muted); text-transform: capitalize; }

/* Cost estimate */
.cost-range { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.cost-col { display: flex; flex-direction: column; gap: 0.3rem; text-align: center; padding: 1rem; background: var(--bg-elevated); border-radius: var(--r); border: 1px solid var(--border-subtle); }
.cost-recommended { border-color: rgba(108,71,255,0.4); background: rgba(108,71,255,0.07); }
.cost-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cost-value { font-size: 1.25rem; font-weight: 800; font-family: var(--font-mono); color: var(--text-primary); }
.cost-value small { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); }
.cost-primary { color: var(--accent-primary); }
.cost-breakdown { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.breakdown-row { display: grid; grid-template-columns: 130px 1fr 55px; align-items: center; gap: 0.75rem; }
.breakdown-label { font-size: 0.78rem; color: var(--text-secondary); }
.breakdown-bar-wrap { height: 5px; background: var(--bg-elevated); border-radius: 3px; overflow: hidden; }
.breakdown-bar { height: 100%; background: var(--grad-primary); border-radius: 3px; }
.breakdown-amount { font-size: 0.78rem; font-family: var(--font-mono); color: var(--text-secondary); text-align: right; }
.optimization-tips h4 { font-size: 0.78rem; font-weight: 650; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.6rem; }
.optimization-tips ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.optimization-tips li { font-size: 0.82rem; color: var(--text-secondary); padding-left: 1rem; position: relative; }
.optimization-tips li::before { content: '→'; position: absolute; left: 0; color: var(--accent-green); }

/* HA/DR */
.ha-strategy-name { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; padding: 0.6rem 1rem; background: rgba(108,71,255,0.08); border-left: 3px solid var(--accent-primary); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.ha-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.ha-metric { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem; background: var(--bg-elevated); border-radius: var(--r-sm); text-align: center; }
.ha-metric-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ha-metric-value { font-size: 1rem; font-weight: 700; font-family: var(--font-mono); color: var(--accent-green); }
.ha-recommendations { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.75rem; }
.ha-recommendations li { font-size: 0.82rem; color: var(--text-secondary); padding-left: 1.1rem; position: relative; }
.ha-recommendations li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-green); font-size: 0.78rem; }

/* Security */
.security-framework { font-size: 0.78rem; font-weight: 700; color: var(--accent-primary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.security-sections { display: flex; flex-direction: column; gap: 0.3rem; }
.security-section { border: 1px solid var(--border-subtle); border-radius: var(--r-sm); overflow: hidden; }
.security-section summary { padding: 0.6rem 1rem; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; user-select: none; background: var(--bg-elevated); }
.security-section summary:hover { color: var(--text-primary); }
.security-section ul { list-style: none; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; background: var(--bg-card); }
.security-section li { font-size: 0.8rem; color: var(--text-secondary); padding-left: 1rem; position: relative; }
.security-section li::before { content: '▸'; position: absolute; left: 0; color: var(--text-muted); }

/* Observability */
.obs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
.obs-item { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem; background: var(--bg-elevated); border-radius: var(--r-sm); }
.obs-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.obs-value { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

/* CI/CD */
.cicd-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cicd-platform, .cicd-strategy, .cicd-gitops { font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.cicd-platform { background: rgba(74,124,247,0.15); color: var(--accent-blue); border: 1px solid rgba(74,124,247,0.3); }
.cicd-strategy { background: rgba(108,71,255,0.15); color: var(--accent-primary); border: 1px solid rgba(108,71,255,0.3); }
.cicd-gitops { background: rgba(16,185,129,0.1); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.3); }
.pipeline-stages { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
.pipeline-stage { font-size: 0.73rem; font-weight: 500; padding: 4px 10px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--r-sm); color: var(--text-secondary); }
.pipeline-arrow { color: var(--text-muted); font-size: 0.78rem; }

/* Terraform */
.tf-meta { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; font-size: 0.83rem; color: var(--text-secondary); }
.tf-modules { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-size: 0.82rem; }
.tf-modules strong { color: var(--text-muted); font-size: 0.78rem; }
.tf-module { font-size: 0.72rem; padding: 3px 9px; background: rgba(108,71,255,0.1); border: 1px solid rgba(108,71,255,0.25); border-radius: 4px; color: var(--accent-primary); font-family: var(--font-mono); }

/* Alerts */
.warnings-section { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.alert { padding: 0.75rem 1rem; border-radius: var(--r-sm); font-size: 0.83rem; }
.alert-warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }

/* Generated files */
.files-tabs { display: flex; gap: 0.25rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.file-tab { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--r-sm); padding: 0.3rem 0.75rem; cursor: pointer; transition: var(--t); font-family: var(--font-mono); }
.file-tab.active { color: var(--accent-primary); background: rgba(108,71,255,0.1); border-color: rgba(108,71,255,0.35); }
.file-pane { display: none; }
.file-pane.active { display: block; }
.file-header { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.file-path { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.copy-btn { font-size: 0.73rem; font-weight: 600; padding: 0.3rem 0.85rem; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 6px; color: var(--text-secondary); cursor: pointer; transition: var(--t); }
.copy-btn:hover { color: var(--accent-primary); border-color: rgba(108,71,255,0.35); }
pre.code-block { margin: 0; padding: 1.25rem; font-family: var(--font-mono); font-size: 0.77rem; color: var(--text-code); line-height: 1.65; overflow-x: auto; background: var(--bg-surface); border: none; border-radius: 0; }

/* Next steps */
.next-steps-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; counter-reset: step; margin-bottom: 1.5rem; }
.next-steps-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.85rem; color: var(--text-secondary); counter-increment: step; }
.next-steps-list li::before { content: counter(step); display: flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 50%; background: rgba(108,71,255,0.15); border: 1px solid rgba(108,71,255,0.3); color: var(--accent-primary); font-size: 0.7rem; font-weight: 700; margin-top: 0.1rem; flex-shrink: 0; }
.next-steps-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Premium Diagram Viewer ────────────────────────────────── */
.diag-count-badge { font-size: 0.7rem; font-weight: 600; padding: 2px 10px; background: rgba(108,71,255,0.1); border: 1px solid rgba(108,71,255,0.25); border-radius: 100px; color: var(--accent-primary); }

.diag-tab-bar { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border-subtle); scrollbar-width: none; }
.diag-tab-bar::-webkit-scrollbar { display: none; }
.diag-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.25rem; font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  white-space: nowrap; transition: color 0.18s, border-color 0.18s; flex-shrink: 0;
}
.diag-tab:hover { color: var(--text-primary); }
.diag-tab.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }
.diag-tab-num {
  width: 20px; height: 20px; min-width: 20px; border-radius: 5px;
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; color: var(--text-muted);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.diag-tab.active .diag-tab-num { background: var(--grad-primary); border-color: transparent; color: #fff; }

.diag-pane { display: none; position: relative; }
.diag-pane.active { display: flex; flex-direction: column; }

.diag-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.25rem; border-bottom: 1px solid var(--border-subtle);
  gap: 1rem; flex-wrap: wrap;
}
.diag-desc { font-size: 0.77rem; color: var(--text-muted); flex: 1; min-width: 0; line-height: 1.4; }
.diag-controls { display: flex; gap: 0.3rem; flex-shrink: 0; }
.dctrl-btn {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.28rem 0.6rem; font-size: 0.72rem; font-weight: 600;
  color: var(--text-secondary); background: var(--bg-elevated);
  border: 1px solid var(--border-subtle); border-radius: 6px;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
  font-family: var(--font-sans); line-height: 1.4;
}
.dctrl-btn:hover { color: var(--accent-primary); background: rgba(108,71,255,0.1); border-color: rgba(108,71,255,0.35); }
.dctrl-zoom-label { min-width: 40px; text-align: center; cursor: default; }
.dctrl-zoom-label:hover { color: var(--text-secondary) !important; background: var(--bg-elevated) !important; border-color: var(--border-subtle) !important; }

.diag-render {
  min-height: 260px; max-height: 560px; overflow: auto;
  padding: 2rem 1.5rem;
  display: flex; align-items: flex-start; justify-content: center;
}
.diag-render .mermaid { width: 100%; }
.diag-render svg { max-width: 100%; height: auto; transition: transform 0.15s ease; transform-origin: top center; display: block; margin: 0 auto; }

.diag-pane.diag-fullscreen {
  position: fixed; inset: 0; z-index: 9990;
  background: var(--bg-base); display: flex; flex-direction: column;
}
.diag-pane.diag-fullscreen .diag-render { flex: 1; max-height: none; }
.diag-pane.diag-fullscreen .diag-toolbar { flex-shrink: 0; }
.diag-fs-close {
  display: none; position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 9991; padding: 0.5rem 1.1rem;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-secondary); cursor: pointer;
  font-size: 0.82rem; font-weight: 600; transition: all 0.15s;
  font-family: var(--font-sans);
}
.diag-fs-close:hover { color: var(--text-primary); }
.diag-pane.diag-fullscreen .diag-fs-close { display: block; }

/* ── Legacy result/results responsive (non-mobile) ─────────── */
@media (max-width: 1024px) {
  .results-grid { grid-template-columns: 1fr; }
  .result-card-wide { grid-column: auto; }
  .hero-stats { display: none; }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.animate-fade-up { animation: fade-up 0.5s ease both; }
.animate-fade-in { animation: fade-in 0.4s ease both; }

/* Staggered children */
.form-section:nth-child(1) { animation: fade-up 0.4s 0.05s ease both; }
.form-section:nth-child(2) { animation: fade-up 0.4s 0.10s ease both; }
.form-section:nth-child(3) { animation: fade-up 0.4s 0.15s ease both; }
.form-section:nth-child(4) { animation: fade-up 0.4s 0.20s ease both; }
.form-section:nth-child(5) { animation: fade-up 0.4s 0.25s ease both; }
.form-section:nth-child(6) { animation: fade-up 0.4s 0.30s ease both; }
.tooling-section           { animation: fade-up 0.4s 0.35s ease both; }

/* ── Generating state ─────────────────────────────────────── */
.generating-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,8,16,0.85);
  backdrop-filter: blur(8px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
}
.generating-overlay.visible { display: flex; }
.generating-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.generating-text { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.generating-sub { font-size: 0.82rem; color: var(--text-muted); }

/* Generating overlay card */
.generating-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-width: 320px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.generating-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.generating-steps { display: flex; flex-direction: column; gap: 0.45rem; width: 100%; }
.gen-step {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: var(--t);
}
.gen-step.active {
  color: var(--accent-cyan);
  background: rgba(34,211,238,0.07);
}
.gen-step.done { color: var(--accent-green); }

/* ── Platform Mode Selector ───────────────────────────────── */
.platform-mode-section {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}
.platform-mode-header {
  text-align: center;
  margin-bottom: 2.25rem;
}
.platform-mode-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}
.platform-mode-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

.platform-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.7rem;
}

.platform-mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1.15rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  color: var(--text-secondary);
  font-size: 0.82rem;
  -webkit-tap-highlight-color: transparent;
}
.platform-mode-card:hover {
  border-color: rgba(74,124,247,0.35);
  background: var(--bg-card);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.platform-mode-card.active {
  border-color: var(--accent-blue);
  background: rgba(74,124,247,0.09);
  color: var(--text-primary);
  box-shadow: 0 0 0 1px rgba(74,124,247,0.2), 0 4px 16px rgba(74,124,247,0.12);
  transform: translateY(-1px);
}
.mode-icon { font-size: 1.5rem; line-height: 1; }
.mode-label { font-weight: 600; font-size: 0.82rem; color: inherit; }
.mode-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.3; }
.platform-mode-card.active .mode-desc { color: rgba(74,124,247,0.8); }

/* Tooling category label alias */
.tooling-category-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Tool chip active state (JS-toggled via .active class) */
.tool-chip.active {
  border-color: var(--accent-cyan);
  background: rgba(34,211,238,0.08);
  color: var(--accent-cyan);
}

/* ── Fade-up scroll reveal ────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   BRANDING — Premium CSS mark + wordmark system
   ══════════════════════════════════════════════════════════ */

/* Hide old CSS-only logo elements — replaced by image assets */
.logo-mark,
.logo-mark-sm,
.logo-wordmark,
.logo-img,
.logo-icon,
.logo-text,
.logo-badge,
.logo-img-full,
.logo-img-icon,
.logo-mobile { display: none !important; }

/* ── Canonical logo sizing — SVG viewport crop ───────────── */
/* SVG canvas 1535×1024; content region x=[167,1381] y=[325,654] (1214×329px).
   background-image crops directly into the content area so visible height
   matches the container height exactly at every breakpoint. */

/* Desktop navbar logo — vh=48 */
.header-logo-img {
  display: block;
  flex-shrink: 0;
  width: 177px;
  height: 48px;
  background-image: url('/static/img/opsible-desktop-black.svg');
  background-repeat: no-repeat;
  background-size: 224px 149px;
  background-position: -24px -47px;
}

/* Mobile drawer logo — vh=44 */
.mdr-logo-img {
  display: block;
  width: 162px;
  height: 44px;
  background-image: url('/static/img/opsible-desktop-black.svg');
  background-repeat: no-repeat;
  background-size: 205px 137px;
  background-position: -22px -44px;
}

/* Footer logo — vh=52 */
.footer-logo-img {
  display: block;
  width: 192px;
  height: 52px;
  background-image: url('/static/img/opsible-desktop-black.svg');
  background-repeat: no-repeat;
  background-size: 243px 162px;
  background-position: -26px -51px;
}

/* Auth page logo (login / signup) — vh=44 */
.auth-logo-img {
  display: block;
  width: 162px;
  height: 44px;
  background-image: url('/static/img/opsible-desktop-black.svg');
  background-repeat: no-repeat;
  background-size: 205px 137px;
  background-position: -22px -44px;
  margin: 0 auto 0.5rem;
}

/* Footer brand */
.footer-logo {
  width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0;
  background: linear-gradient(135deg, #7c5dfa 0%, #4a7cf7 100%);
}
.footer-brand {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-secondary); text-decoration: none;
}
.footer-brand:hover { color: var(--text-primary); text-decoration: none; }

/* ── Mobile drawer brand header ─────────────────────────── */
.mobile-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-subtle); gap: 0.75rem;
}
.mobile-drawer-logo-text {
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.01em; flex: 1;
  -webkit-font-smoothing: antialiased;
}
.mobile-drawer-logo { display: none; }

/* ══════════════════════════════════════════════════════════
   HAMBURGER — Premium 3-line → X
   ══════════════════════════════════════════════════════════ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.ham-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: rgba(203,213,225,0.75);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
              opacity   0.25s ease,
              background 0.2s ease;
  transform-origin: center;
}
.hamburger:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.25);
}
.hamburger:hover .ham-line { background: #fff; }
.hamburger.active {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
}
.hamburger.active .ham-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg);  background: #818cf8; }
.hamburger.active .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active .ham-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: #818cf8; }

/* ══════════════════════════════════════════════════════════
   PREMIUM MOBILE DRAWER — GPU-accelerated slide panel
   ══════════════════════════════════════════════════════════ */

/* Container — always present but invisible when closed */
.mdr {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}
.mdr-open {
  pointer-events: auto;
  visibility: visible;
}

/* Backdrop — blurred overlay, animates opacity */
.mdr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mdr-open .mdr-backdrop { opacity: 1; }

/* Panel — solid, no blur, GPU-translated */
.mdr-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: linear-gradient(180deg, #0d1124 0%, #090d1e 50%, #060810 100%);
  border-left: 1px solid rgba(99,102,241,0.12);
  box-shadow: -32px 0 80px rgba(0,0,0,0.7), -1px 0 0 rgba(99,102,241,0.06);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0, 0.15, 1);
  will-change: transform;
  overflow: hidden;
}
.mdr-open .mdr-panel { transform: translateX(0); }

/* Header row */
.mdr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.mdr-logo { display: flex; align-items: center; text-decoration: none; }
.mdr-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(148,163,184,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.mdr-close:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.25);
  color: #a5b4fc;
}

/* Nav scroll area */
.mdr-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mdr-nav::-webkit-scrollbar { width: 4px; }
.mdr-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }

/* Section labels */
.mdr-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(71,85,105,0.9);
  padding: 0.5rem 0.75rem 0.3rem;
  margin: 0;
}

/* Divider */
.mdr-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 0.5rem 0;
}

/* Nav links */
.mdr-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.875rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(148,163,184,0.8);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.mdr-link:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(226,232,240,0.95);
  text-decoration: none;
}
.mdr-link:active {
  background: rgba(99,102,241,0.08);
}
.mdr-link-active {
  background: rgba(99,102,241,0.1) !important;
  color: #a5b4fc !important;
}
.mdr-link-active .mdr-icon { color: #818cf8 !important; }

/* Link icon */
.mdr-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(100,116,139,0.8);
  flex-shrink: 0;
}
.mdr-link-text { flex: 1; }

/* Link badge (AI, New) */
.mdr-link-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: #818cf8;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  letter-spacing: 0.04em;
}

/* External icon */
.mdr-ext-icon {
  color: rgba(71,85,105,0.6);
  flex-shrink: 0;
}

/* Status dot and label */
.mdr-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16,185,129,0.5);
  display: inline-block;
}
.mdr-status-label {
  font-size: 0.7rem;
  color: #10b981;
  font-weight: 500;
  margin-left: auto;
}

/* Avatar icon */
.mdr-avatar {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}

/* Bottom CTA footer */
.mdr-footer {
  padding: 1rem 1.1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  background: rgba(0,0,0,0.2);
}
.mdr-cta-row {
  display: flex;
  gap: 0.625rem;
}
.mdr-signin-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(203,213,225,0.85);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  transition: all 0.18s ease;
  min-height: 44px;
}
.mdr-signin-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}
.mdr-startfree-btn {
  flex: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(99,102,241,0.4);
  transition: all 0.18s ease;
  min-height: 44px;
}
.mdr-startfree-btn:hover {
  background: linear-gradient(135deg, #5154d6 0%, #7c3aed 100%);
  box-shadow: 0 6px 20px rgba(99,102,241,0.55);
}
.mdr-signout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(148,163,184,0.7);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.7rem;
  text-decoration: none;
  transition: all 0.18s ease;
  min-height: 44px;
}
.mdr-signout-btn:hover {
  background: rgba(239,68,68,0.06);
  border-color: rgba(239,68,68,0.15);
  color: #fca5a5;
}

/* Legacy class aliases (for any remaining references) */
.mobile-nav-link { display: none !important; }
.mobile-drawer-overlay { display: none !important; }
.mobile-drawer-inner { display: none !important; }
.mobile-drawer-logo-img { display: none !important; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first, precise breakpoints
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { display: none; }
  .results-container { grid-template-columns: 1fr; }
  .result-card-wide { grid-column: auto; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE SYSTEM — Mobile-first, precise breakpoints
   ══════════════════════════════════════════════════════════ */

/* ── 1024px ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { display: none; }
  .results-container { grid-template-columns: 1fr; }
  .result-card-wide { grid-column: auto; }
  /* Landing hero preview hidden at tablet */
  .lp-score-card { right: -0.5rem; top: -0.75rem; }
  .lp-cost-card  { right: -0.5rem; bottom: -0.75rem; }
}

/* ── 900px: switch to mobile nav ─────────────────────────── */
@media (max-width: 900px) {
  .header-nav  { display: none !important; }
  .hamburger   { display: flex !important; }
  .logo-subtitle { display: none !important; }
}

/* ── 768px pivot ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }

  /* Header */
  .header-inner { height: 60px; }

  /* Landing hero → single column */
  .lp-hero-inner {
    grid-template-columns: 1fr !important;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .lp-hero-visual { display: none !important; }
  .lp-hero-content { max-width: 100%; }
  .lp-hero-h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .lp-hero-subtitle { font-size: 0.95rem; max-width: 100%; }
  .lp-cta-primary-btn, .lp-cta-ghost-btn { font-size: 0.95rem; padding: 0.75rem 1.25rem; }
  .lp-feature-chips { gap: 0.4rem; }
  .lp-feature-chip { font-size: 0.75rem; }

  /* Stack row */
  .lp-stack-pills { gap: 0.4rem; }
  .lp-stack-pill  { font-size: 0.75rem; padding: 0.3rem 0.65rem; }

  /* Landing sections */
  .lp-who-grid    { grid-template-columns: repeat(2, 1fr); }
  .lp-value-grid  { grid-template-columns: repeat(2, 1fr); }
  .lp-pricing-cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .lp-cap-grid    { grid-template-columns: repeat(2, 1fr); }
  .lp-intel-grid  { grid-template-columns: 1fr; }
  .lp-examples-grid { grid-template-columns: 1fr; }
  .lp-steps       { flex-direction: column; gap: 1.5rem; }
  .lp-step-connector { transform: rotate(90deg); width: 40px; align-self: center; }

  /* Footer mobile */
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .footer-links-cols { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-brand-desc { max-width: 100%; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-bottom-right { flex-wrap: wrap; gap: 0.75rem; }
  .footer-trust-inner { justify-content: flex-start; gap: 0.3rem 0.6rem; }
  .footer-trust-sep { display: none; }

  /* Dashboard */
  .dash-stats-row { grid-template-columns: repeat(2, 1fr) !important; }
  .dash-layout { flex-direction: column; }

  /* Hero (studio page) */
  .hero { padding: 3.5rem 0 3rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.35rem 0.95rem; margin-bottom: 1.5rem; }
  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 1.1rem;
  }
  .hero-subtitle { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.75rem; max-width: 500px; }
  .hero-chips { gap: 0.45rem; justify-content: center; }
  .chip { font-size: 0.72rem; padding: 0.3rem 0.75rem; }

  /* Platform mode */
  .platform-mode-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .platform-mode-card { padding: 0.9rem 0.5rem; }
  .mode-desc { display: none; }

  /* Form */
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span-2 { grid-column: 1; }
  .form-section { padding: 1.35rem 1.1rem; }
  .section-title { font-size: 1rem; }

  /* Tooling */
  .tool-chip { padding: 0.38rem 0.7rem; font-size: 0.75rem; }

  /* Checkboxes */
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

  /* Scenarios */
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

  /* CTA */
  .btn-primary.btn-large { width: 100%; justify-content: center; }

  /* Results */
  .results-header-inner { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .results-actions { flex-wrap: wrap; gap: 0.5rem; }
}

/* ── 480px ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero-title { font-size: clamp(1.6rem, 7.5vw, 1.9rem); }
  .lp-hero-h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .lp-hero-ctas { flex-direction: column; }
  .lp-cta-primary-btn, .lp-cta-ghost-btn { width: 100%; justify-content: center; }

  /* Landing sections */
  .lp-who-grid   { grid-template-columns: 1fr; }
  .lp-value-grid { grid-template-columns: 1fr; }
  .lp-cap-grid   { grid-template-columns: 1fr; }

  /* Footer */
  .footer-links-cols { grid-template-columns: 1fr; }
  .footer-grid-wrap  { padding: 2.5rem 0 2rem; }

  /* Misc */
  .chip { font-size: 0.7rem; padding: 0.27rem 0.68rem; }
  .platform-mode-grid { grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-stats-row { grid-template-columns: 1fr !important; }
}

/* ── 375px — narrow phones ───────────────────────────────── */
@media (max-width: 375px) {
  .container { padding: 0 0.875rem; }
  .header-inner { height: 56px; }
  .hamburger { width: 36px; height: 36px; }
  .ham-line { width: 16px; }
  .lp-hero-h1 { font-size: clamp(1.65rem, 9vw, 2.2rem); }
  .mdr-panel { width: 94vw; }
}

/* ── 320px — very small ──────────────────────────────────── */
@media (max-width: 320px) {
  .container { padding: 0 0.75rem; }
  .header-inner { height: 52px; }
}

/* ── 425px ───────────────────────────────────────────────── */
@media (max-width: 425px) {
  .container { padding: 0 0.95rem; }
  .hero { padding: 2.75rem 0 2.25rem; }
  .hero-badge { font-size: 0.66rem; margin-bottom: 1.2rem; }
  .hero-title { font-size: clamp(1.5rem, 8vw, 1.75rem); }
  .hero-subtitle { font-size: 0.86rem; margin-bottom: 1.5rem; padding: 0 0.75rem; }
  .chip { font-size: 0.68rem; padding: 0.26rem 0.62rem; }
  .platform-mode-grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .platform-mode-title { font-size: 1.05rem; }
  .form-section { padding: 1.15rem 0.9rem; }
  .section-title { font-size: 0.95rem; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .scenario-card { flex-direction: row; text-align: left; padding: 0.85rem 1rem; gap: 0.7rem; }
  .scenario-icon { font-size: 1.3rem; }
}

/* ── 390px — iPhone Pro standard ───────────────────────── */
@media (max-width: 390px) {
  .hamburger { width: 38px; height: 38px; }
}

/* ── 375px — iPhone SE / standard ──────────────────────── */
@media (max-width: 375px) {
  .container { padding: 0 0.9rem; }
  .header-inner { height: 56px; }
  .hamburger { width: 36px; height: 36px; }
  .hamburger span { width: 16px; }
  .hero-title { font-size: clamp(1.35rem, 9vw, 1.55rem); }
  .hero-subtitle { font-size: 0.83rem; }
  .platform-mode-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .platform-mode-card { padding: 0.75rem 0.4rem; }
  .tool-chip { font-size: 0.7rem; padding: 0.3rem 0.55rem; }
  .checkbox-card { padding: 0.6rem 0.45rem; }
  .checkbox-label { font-size: 0.69rem; }
}

/* ── 320px — Small Android / SE ────────────────────────── */
@media (max-width: 320px) {
  .container { padding: 0 0.75rem; }
  .header-inner { height: 52px; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-title { font-size: 1.25rem; }
  .hero-subtitle { font-size: 0.8rem; padding: 0 0.25rem; }
  .form-section { padding: 1rem 0.75rem; }
  .platform-mode-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-chip { font-size: 0.67rem; padding: 0.28rem 0.5rem; }
  .scenarios-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   File Explorer (Generated Files)
   ============================================================ */

.fe-card .card-header { align-items: center; }

.fe-file-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}

.file-explorer {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 420px;
  max-height: 600px;
  border-top: 1px solid var(--border-subtle);
}

/* ── Tree ── */
.fe-tree {
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  padding: 0.5rem 0;
  background: var(--bg-elevated);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.fe-group { }

.fe-group-hdr {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.4rem 0.75rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: background var(--t-fast), color var(--t-fast);
}

.fe-group-hdr:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }

.fe-folder-ic { font-size: 0.85rem; flex-shrink: 0; }
.fe-folder-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fe-folder-count {
  font-size: 0.62rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.05rem 0.42rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.fe-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform var(--t-fast);
  flex-shrink: 0;
}

.fe-group:not(.open) .fe-chevron { transform: rotate(-90deg); }
.fe-group-files { display: none; }
.fe-group.open .fe-group-files { display: block; }

.fe-file {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.28rem 0.75rem 0.28rem 1.4rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.69rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  border-left: 2px solid transparent;
}

.fe-file:hover { background: rgba(255,255,255,0.03); color: var(--text-secondary); }
.fe-file.active {
  background: rgba(74,124,247,0.1);
  color: var(--accent-blue);
  border-left-color: var(--accent-blue);
}

.fe-file-ic { font-size: 0.75rem; flex-shrink: 0; }
.fe-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Content pane ── */
.fe-content {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fe-pane { display: none; flex-direction: column; height: 100%; overflow: hidden; }
.fe-pane.active { display: flex; }

.fe-pane-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  gap: 1rem;
  flex-shrink: 0;
}

.fe-pane-path {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe-pane-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

.fe-btn {
  font-size: 0.67rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.fe-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(74,124,247,0.08); }

.fe-code-block {
  flex: 1;
  overflow: auto;
  margin: 0;
  border-radius: 0;
  border: none;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .file-explorer {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: none;
  }
  .fe-tree {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    max-height: 180px;
  }
  .fe-content { min-height: 300px; }
}

/* ============================================================
   Kubernetes Configuration Card
   ============================================================ */

.k8s-card .card-body { padding: 1.25rem; }

.k8s-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.k8s-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.k8s-meta-label {
  font-size: 0.67rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.k8s-meta-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.k8s-cluster-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  background: rgba(124,93,250,0.12);
  border: 1px solid rgba(124,93,250,0.3);
  border-radius: 6px;
  color: #a98bff;
  font-size: 0.78rem;
}

.k8s-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.k8s-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.k8s-ng-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.k8s-ng-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-elevated);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.k8s-ng-type {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent-blue);
}

.k8s-ng-scale {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.k8s-ng-purpose {
  font-size: 0.67rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  font-style: italic;
}

.k8s-ns-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.k8s-ns-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.18rem 0.55rem;
  background: rgba(34,211,238,0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 4px;
}

@media (max-width: 640px) {
  .k8s-two-col { grid-template-columns: 1fr; }
}

/* ============================================================
   Studio Layout — Form + Live Insight Panel
   ============================================================ */

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 1.75rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: start;
}

.studio-form-col {
  min-width: 0;
}

/* When the form-container lives inside studio-form-col, remove its own outer centering */
.studio-form-col .form-container {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* ── Insight Panel ──────────────────────────────────────── */
.insight-panel {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.ip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ip-header-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ip-icon { font-size: 0.95rem; }

.ip-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ip-live {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.1em;
}

.ip-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: ip-pulse 2.2s ease-in-out infinite;
}

@keyframes ip-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* Score rows */
.ip-scores {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ip-score-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.28rem;
}

.ip-score-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ip-score-val {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ip-bar-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.ip-bar-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ip-bar-complexity { background: linear-gradient(90deg, #7c5dfa, #4a7cf7); }
.ip-bar-cost       { background: linear-gradient(90deg, #10b981, #f59e0b 60%, #f43f5e); }
.ip-bar-ha         { background: linear-gradient(90deg, #22d3ee, #4a7cf7); }
.ip-bar-devops     { background: linear-gradient(90deg, #a855f7, #7c5dfa); }

/* Sections */
.ip-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.ip-section-label {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* Service prediction tags */
.ip-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-height: 22px;
}

.ip-svc-tag {
  font-size: 0.63rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  background: rgba(74, 124, 247, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(74, 124, 247, 0.2);
  border-radius: 100px;
  white-space: nowrap;
  transition: all var(--t-fast);
}

.ip-svc-tag:hover {
  background: rgba(74, 124, 247, 0.18);
}

.ip-empty-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
}

/* Insight cards */
.ip-insight-card {
  border-radius: var(--r-sm);
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.45rem;
  border-left: 3px solid;
}

.ip-insight-card:last-child { margin-bottom: 0; }

.ip-card-tip  { background: rgba(16, 185, 129, 0.07);  border-color: var(--accent-green);  }
.ip-card-warn { background: rgba(245, 158, 11, 0.08);  border-color: var(--accent-orange); }
.ip-card-info { background: rgba(74, 124, 247, 0.08);  border-color: var(--accent-blue);   }

.ip-card-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.ip-card-body {
  font-size: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Insight Panel Responsive ─────────────────────────── */
@media (max-width: 1200px) {
  .studio-grid {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }

  .studio-form-col .form-container {
    padding: 0 1.5rem;
  }

  .insight-panel {
    position: static;
    max-height: none;
    overflow-y: visible;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
  }

  .ip-scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
  }

  /* Hide detail sections on narrow viewports */
  .insight-panel .ip-section { display: none; }
}

@media (max-width: 768px) {
  .studio-form-col .form-container { padding: 0 1rem; }
  .insight-panel { padding: 0.85rem 1rem; }

  .ip-scores {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1rem;
  }
}

@media (max-width: 480px) {
  .ip-scores { grid-template-columns: 1fr 1fr; gap: 0.5rem 0.75rem; }
}

/* ============================================================
   Phase 7 — Form Validation UX
   ============================================================ */

.form-control.invalid {
  border-color: var(--accent-red, #f43f5e) !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.field-error {
  display: block;
  font-size: 0.72rem;
  color: var(--accent-red, #f43f5e);
  margin-top: 0.25rem;
  font-weight: 500;
  animation: fe-slide-in 0.18s ease;
}

@keyframes fe-slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Phase 8 — Results Page Responsive
   ============================================================ */

/* Results grid: two equal columns → single column on tablet */
@media (max-width: 900px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  /* Result card spacing tighter on narrow screens */
  .result-card { margin-bottom: 1rem; }
  .result-card .card-body { padding: 1rem; }
}

/* Components table: horizontal scroll on mobile */
.components-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  /* Wrap the table if not already wrapped */
  .components-table {
    min-width: 520px;
  }

  /* Results header: stack actions */
  .results-actions {
    width: 100%;
  }

  .results-actions .btn-secondary {
    font-size: 0.8rem;
    padding: 0.45rem 0.8rem;
  }

  /* Summary card: tighter typography */
  .results-title { font-size: 1.5rem; }
  .results-subtitle { font-size: 0.85rem; }
  .summary-text { font-size: 0.85rem; }
  .decisions-list li { font-size: 0.82rem; line-height: 1.55; }

  /* Cost range: 3-col → 1 row but smaller */
  .cost-range { gap: 0.5rem; }
  .cost-value { font-size: 1.2rem; }
  .cost-value small { font-size: 0.7rem; }

  /* HA/DR: compact metrics row */
  .ha-metrics { gap: 0.6rem; }
  .ha-metric-value { font-size: 0.9rem; }

  /* Diagram tabs: scroll horizontally */
  .diag-tab-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .diag-tab-bar::-webkit-scrollbar { display: none; }
  .diag-tab { white-space: nowrap; }

  /* Diagram controls: smaller, single row */
  .diag-controls { gap: 0.2rem; }
  .dctrl-btn { padding: 0.2rem 0.4rem; font-size: 0.7rem; }

  /* File explorer: stack tree above content pane */
  .file-explorer {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
  }
  .fe-tree {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    max-height: 200px;
  }
  .fe-content { min-height: 280px; }
  .fe-pane-hdr { flex-wrap: wrap; gap: 0.4rem; padding: 0.45rem 0.75rem; }
  .fe-pane-path { font-size: 0.62rem; }

  /* K8s card: stack meta and two-col on mobile */
  .k8s-meta-row { gap: 0.75rem 1.25rem; }
  .k8s-two-col { grid-template-columns: 1fr; gap: 1rem; }

  /* Pipeline stages: wrap on small screens */
  .pipeline-stages { flex-wrap: wrap; gap: 0.35rem 0; }

  /* Next steps: tighter spacing */
  .next-steps-list li { font-size: 0.83rem; margin-bottom: 0.5rem; line-height: 1.55; }
  .next-steps-cta { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
  .next-steps-cta .btn-secondary { width: 100%; text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .results-title { font-size: 1.25rem; }

  /* Confidence badge: compact */
  .confidence-badge { font-size: 0.72rem; padding: 0.3rem 0.6rem; gap: 0.3rem; }
  .confidence-score { font-size: 0.72rem; }

  /* Cost: stack 3-col to vertical  */
  .cost-range { flex-direction: column; gap: 0.35rem; }
  .cost-col { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 0.6rem 0.75rem; background: var(--bg-elevated); border-radius: var(--r-sm); border: 1px solid var(--border-subtle); }
  .cost-col.cost-recommended { border-color: var(--accent-blue); background: rgba(74,124,247,0.06); }
  .cost-label { font-size: 0.72rem; }
  .cost-value { font-size: 1rem; }

  /* Observability grid: 2 cols → 1 col */
  .obs-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .obs-item { flex-direction: row; justify-content: space-between; }

  /* Terraform modules: smaller */
  .tf-module { font-size: 0.66rem; padding: 0.15rem 0.45rem; }
}

/* ============================================================
   Phase 2 — Cytoscape Interactive Topology
   ============================================================ */

.cy-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

#cy-canvas {
  width: 100%;
  height: 100%;
}

.cy-legend {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  pointer-events: none;
}

.cy-leg-item {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  border: 1px solid;
  opacity: 0.8;
}

.cy-leg-item[data-cat="compute"]      { background: rgba(74,124,247,0.15);  border-color: #4a7cf7;  color: #7aa5ff; }
.cy-leg-item[data-cat="networking"]   { background: rgba(34,211,238,0.12);  border-color: #22d3ee;  color: #67e8f9; }
.cy-leg-item[data-cat="database"]     { background: rgba(245,158,11,0.12);  border-color: #f59e0b;  color: #fbbf24; }
.cy-leg-item[data-cat="cache"]        { background: rgba(249,115,22,0.12);  border-color: #f97316;  color: #fb923c; }
.cy-leg-item[data-cat="storage"]      { background: rgba(168,85,247,0.12);  border-color: #a855f7;  color: #c084fc; }
.cy-leg-item[data-cat="messaging"]    { background: rgba(236,72,153,0.12);  border-color: #ec4899;  color: #f472b6; }
.cy-leg-item[data-cat="observability"]{ background: rgba(148,163,184,0.1);  border-color: #64748b;  color: #94a3b8; }

.cy-tooltip {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 10;
  max-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cy-tooltip strong { color: var(--text-primary); font-size: 0.75rem; }

@media (max-width: 768px) {
  .cy-wrap { height: 340px; }
  .cy-legend { display: none; }
}

/* ============================================================
   Phase 6 — AI Copilot Sidebar
   ============================================================ */

/* Floating trigger button */
.copilot-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  background: linear-gradient(135deg, #7c5dfa 0%, #4a7cf7 100%);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,71,255,0.45), 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: all 0.2s ease;
  user-select: none;
}

.copilot-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(108,71,255,0.55); }
.copilot-btn.active { background: linear-gradient(135deg, #5b3fd4 0%, #3a65d8 100%); }

.copilot-btn-icon { font-size: 0.95rem; }
.copilot-btn-label { font-size: 0.78rem; }

/* Panel */
.copilot-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 901;
  width: 380px;
  max-height: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,93,250,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.copilot-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.copilot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.copilot-header-left { display: flex; align-items: center; gap: 0.6rem; }
.copilot-header-icon { font-size: 1.1rem; color: var(--accent-purple, #7c5dfa); }
.copilot-title { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.copilot-subtitle { font-size: 0.67rem; color: var(--text-muted); margin-top: 0.1rem; }

.copilot-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: var(--r-xs);
  transition: background var(--t-fast), color var(--t-fast);
}
.copilot-close:hover { background: var(--bg-elevated); color: var(--text-primary); }

/* Quick chips */
.copilot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.7rem 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.copilot-chip {
  font-size: 0.67rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.copilot-chip:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(74,124,247,0.08); }

/* Messages */
.copilot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.copilot-msg { display: flex; max-width: 96%; }
.copilot-msg-user { align-self: flex-end; }
.copilot-msg-ai   { align-self: flex-start; }

.copilot-msg-content {
  font-size: 0.78rem;
  line-height: 1.6;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
}

.copilot-msg-user .copilot-msg-content {
  background: linear-gradient(135deg, rgba(124,93,250,0.25), rgba(74,124,247,0.2));
  border: 1px solid rgba(124,93,250,0.3);
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
}

.copilot-msg-ai .copilot-msg-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}

.copilot-msg-content strong { color: var(--text-primary); }
.copilot-msg-content code { font-family: var(--font-mono); font-size: 0.72rem; background: rgba(255,255,255,0.06); padding: 0.1rem 0.35rem; border-radius: 4px; }
.copilot-msg-content ul { padding-left: 1.1rem; margin: 0.35rem 0; }
.copilot-msg-content li { margin-bottom: 0.2rem; }
.copilot-msg-content blockquote { border-left: 3px solid var(--accent-blue); padding-left: 0.65rem; color: var(--text-muted); margin: 0.35rem 0; font-style: italic; }
.copilot-msg-content p { margin: 0 0 0.35rem; }

.cp-table { border-collapse: collapse; width: 100%; margin: 0.35rem 0; font-size: 0.72rem; }
.cp-table td { padding: 0.2rem 0.5rem; border: 1px solid var(--border-subtle); }
.cp-table tr:first-child td { background: var(--bg-card); font-weight: 600; color: var(--text-muted); font-size: 0.65rem; text-transform: uppercase; }

/* Typing dots */
.copilot-typing .copilot-msg-content { padding: 0.65rem 0.85rem; }
.cp-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  margin: 0 1.5px;
  animation: cp-bounce 1.2s ease-in-out infinite;
}
.cp-dot:nth-child(2) { animation-delay: 0.2s; }
.cp-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes cp-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%            { transform: translateY(-5px); opacity: 1; }
}

/* Input row */
.copilot-input-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.copilot-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 0.78rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-ui);
  outline: none;
  transition: border-color var(--t-fast);
}
.copilot-input::placeholder { color: var(--text-muted); }
.copilot-input:focus { border-color: var(--accent-blue); }

.copilot-send {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #7c5dfa, #4a7cf7);
  border: none;
  border-radius: var(--r-sm);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.copilot-send:hover { opacity: 0.88; }

@media (max-width: 480px) {
  .copilot-panel { width: calc(100vw - 2rem); right: 1rem; bottom: 5rem; }
  .copilot-btn { right: 1rem; bottom: 1rem; padding: 0.6rem 0.9rem; }
  .copilot-btn-label { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   AUTH PAGES — Login / Signup
══════════════════════════════════════════════════════════════════ */

.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  margin-right: 4px;
}
.nav-cta { font-size: 0.8rem !important; padding: 0.35rem 0.9rem !important; }

.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #0d1124;
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
}

.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: #0d1124;
  isolation: isolate;
}
.auth-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 0 0 0.4rem; }
.auth-subtitle { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.auth-alert-error { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.auth-alert-success { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }

.auth-form .form-group { margin-bottom: 1.1rem; }

.auth-forgot {
  float: right;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}
.auth-forgot:hover { text-decoration: underline; }

.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 2.5rem; }
.pw-toggle {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 0; display: flex; align-items: center;
}
.pw-toggle:hover { color: var(--text-secondary); }

.pw-strength { height: 3px; background: var(--border); border-radius: 2px; margin-top: 0.4rem; overflow: hidden; }
.pw-strength-bar { height: 100%; width: 0; transition: width 0.25s, background 0.25s; border-radius: 2px; }
.pw-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }

.btn-full { width: 100%; justify-content: center; margin-top: 0.25rem; }
.btn-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  color: var(--text-muted); font-size: 0.8rem; margin: 1.25rem 0;
}
.auth-divider::before,.auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-oauth-row { display: flex; gap: 0.75rem; }
.btn-oauth {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-oauth:hover { background: var(--surface-hover); border-color: var(--border-hover); color: var(--text-primary); }

.auth-switch { text-align: center; font-size: 0.875rem; color: var(--text-muted); margin-top: 1.5rem; margin-bottom: 0; }
.auth-switch a { color: var(--accent); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.auth-terms { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }
.auth-terms a { color: var(--accent); text-decoration: none; }

.color-picker-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.color-swatch.active,.color-swatch:hover { transform: scale(1.2); border-color: #fff; }

.form-label-opt { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }

/* ══════════════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 900;
  backdrop-filter: blur(2px);
}
.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 901;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-header h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.modal-close {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 1.2rem; padding: 0.2rem 0.4rem; border-radius: 4px;
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); background: var(--surface-hover); }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem;
}

/* ══════════════════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════════════════ */

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
}

.dash-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.dash-user-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--surface-raised);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.dash-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  flex-shrink: 0;
}
.dash-user-info { min-width: 0; }
.dash-user-name { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-email { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-org { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.dash-plan-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.dash-plan-free { background: rgba(107,114,128,0.2); color: #9ca3af; }
.dash-plan-pro { background: rgba(124,58,237,0.2); color: #a78bfa; }
.dash-plan-enterprise { background: rgba(234,179,8,0.2); color: #fbbf24; }

.dash-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.dash-nav-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.dash-nav-link:hover { background: var(--surface-hover); color: var(--text-primary); }
.dash-nav-link.active { background: rgba(124,58,237,0.15); color: var(--accent-light); }
.dash-nav-count {
  margin-left: auto;
  font-size: 0.72rem;
  background: var(--surface-raised);
  color: var(--text-muted);
  padding: 0.1rem 0.45rem;
  border-radius: 20px;
}
.dash-logout { color: #f87171 !important; }
.dash-logout:hover { background: rgba(239,68,68,0.1) !important; }

.dash-projects-section { flex: 1; min-height: 0; }
.dash-section-header {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  padding: 0 0.5rem; margin-bottom: 0.5rem;
}
.dash-add-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 0.1rem 0.3rem; border-radius: 4px;
}
.dash-add-btn:hover { color: var(--accent-light); background: var(--surface-hover); }
.dash-project-list { display: flex; flex-direction: column; gap: 0.15rem; }
.dash-project-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 7px;
  font-size: 0.85rem; color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.dash-project-item:hover { background: var(--surface-hover); color: var(--text-primary); }
.dash-project-item.active { background: rgba(124,58,237,0.1); color: var(--accent-light); }
.dash-project-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--project-color, var(--accent));
}
.dash-project-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-project-del {
  background: none; border: none; color: transparent; cursor: pointer;
  font-size: 1rem; padding: 0; line-height: 1;
  transition: color 0.15s;
}
.dash-project-item:hover .dash-project-del { color: var(--text-muted); }
.dash-project-del:hover { color: #f87171 !important; }
.dash-empty-projects { font-size: 0.8rem; color: var(--text-muted); padding: 0.5rem 0.75rem; }

.dash-sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 0.25rem; }

/* ── Dashboard Main ─────────────────────────────────────────────── */

.dash-main { padding: 2rem 2.5rem; }
.dash-main-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 2rem; gap: 1rem;
}
.dash-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 0 0 0.25rem; }
.dash-subtitle { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

.dash-arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.dash-arch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dash-arch-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.dash-arch-card-header { display: flex; align-items: center; justify-content: space-between; }
.dash-arch-cloud-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
}
.dash-cloud-aws { background: rgba(255,153,0,0.15); color: #fb923c; }
.dash-cloud-azure { background: rgba(0,120,212,0.15); color: #60a5fa; }
.dash-cloud-gcp { background: rgba(66,133,244,0.15); color: #93c5fd; }
.dash-cloud-generic,.dash-cloud-multi { background: rgba(124,58,237,0.15); color: #a78bfa; }

.dash-fav-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 0.2rem;
  transition: color 0.15s; border-radius: 4px;
}
.dash-fav-btn:hover,.dash-fav-btn.active { color: #fbbf24; }

.dash-arch-card-body { flex: 1; }
.dash-arch-name { font-size: 0.975rem; font-weight: 600; color: var(--text-primary); margin: 0 0 0.2rem; }
.dash-arch-pattern { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.dash-arch-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.4rem; }

.dash-arch-env {
  padding: 0.15rem 0.5rem; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600;
}
.dash-env-production { background: rgba(34,197,94,0.12); color: #4ade80; }
.dash-env-staging { background: rgba(234,179,8,0.12); color: #fbbf24; }
.dash-env-development { background: rgba(59,130,246,0.12); color: #60a5fa; }
.dash-env-dr { background: rgba(239,68,68,0.12); color: #f87171; }

.dash-arch-cost { font-size: 0.8rem; color: var(--text-muted); }
.dash-arch-confidence { font-size: 0.72rem; color: var(--text-muted); }

.dash-arch-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.dash-arch-tag {
  padding: 0.1rem 0.45rem; border-radius: 4px;
  background: var(--surface-raised); color: var(--text-muted);
  font-size: 0.7rem; border: 1px solid var(--border);
}

.dash-arch-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.25rem;
}
.dash-arch-date { font-size: 0.75rem; color: var(--text-muted); }
.dash-arch-actions { display: flex; gap: 0.4rem; }

.btn-xs { font-size: 0.75rem !important; padding: 0.25rem 0.6rem !important; border-radius: 6px !important; }
.btn-ghost {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 8px; padding: 0.4rem 0.9rem; font-size: 0.875rem; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: var(--surface-hover); color: var(--text-primary); }

/* ── Empty State ───────────────────────────────────────────────── */
.dash-empty-state {
  text-align: center; padding: 5rem 2rem;
}
.dash-empty-icon { margin: 0 auto 1.5rem; opacity: 0.35; }
.dash-empty-state h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.dash-empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Responsive Dashboard ──────────────────────────────────────── */
@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: static; height: auto; border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .dash-main { padding: 1.5rem 1rem; }
}

/* ── Save Architecture button on results page ─────────────────── */
.btn-save-cta {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Architecture Detail Header ───────────────────────────────── */
.arch-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem;
}
.arch-detail-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--text-muted);
}
.arch-detail-breadcrumb a { color: var(--accent); text-decoration: none; }
.arch-detail-breadcrumb a:hover { text-decoration: underline; }
.arch-detail-actions { display: flex; gap: 0.5rem; }
.btn-sm { font-size: 0.8rem !important; padding: 0.35rem 0.8rem !important; }

/* ══════════════════════════════════════════════════════════════════
   MATURITY SCORECARD
══════════════════════════════════════════════════════════════════ */

.maturity-card .card-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.maturity-badge {
  padding: 0.3rem 0.8rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700;
}
.maturity-badge.maturity-optimized { background: rgba(34,197,94,0.15); color: #4ade80; }
.maturity-badge.maturity-advanced  { background: rgba(59,130,246,0.15); color: #60a5fa; }
.maturity-badge.maturity-intermediate { background: rgba(234,179,8,0.15); color: #fbbf24; }
.maturity-badge.maturity-foundational  { background: rgba(239,68,68,0.15); color: #f87171; }

.maturity-migration-row {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.25rem; font-size: 0.875rem;
}
.maturity-migration-label { color: var(--text-muted); }
.maturity-readiness { font-weight: 600; font-size: 0.875rem; }

.maturity-pillars {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.maturity-pillar { display: flex; flex-direction: column; gap: 0.35rem; }
.maturity-pillar-header { display: flex; align-items: center; justify-content: space-between; }
.maturity-pillar-name { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.maturity-pillar-score { font-size: 0.8rem; font-weight: 700; }
.maturity-score-optimized { color: #4ade80; }
.maturity-score-advanced  { color: #60a5fa; }
.maturity-score-intermediate { color: #fbbf24; }
.maturity-score-foundational { color: #f87171; }

.maturity-bar-track {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.maturity-bar-fill {
  height: 100%; border-radius: 3px; transition: width 0.5s ease;
}
.maturity-bar-optimized { background: #4ade80; }
.maturity-bar-advanced  { background: #60a5fa; }
.maturity-bar-intermediate { background: #fbbf24; }
.maturity-bar-foundational { background: #f87171; }

.maturity-pillar-level { font-size: 0.72rem; color: var(--text-muted); }

.maturity-section { margin-bottom: 1.25rem; }
.maturity-section-title { font-size: 0.85rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--text-secondary); }
.maturity-list { padding-left: 1.25rem; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.maturity-list li { font-size: 0.85rem; color: var(--text-muted); }
.maturity-list-critical li { color: #fca5a5; }
.maturity-list-wins li { color: #86efac; }

.maturity-actions { padding-top: 0.75rem; border-top: 1px solid var(--border); }


/* ══════════════════════════════════════════════════════════════════
   ARCHITECTURE INTELLIGENCE PANEL  (Phase 6)
══════════════════════════════════════════════════════════════════ */

.intelligence-card .card-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}

/* Loading spinner */
.intel-loading {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 2rem; color: var(--text-muted); font-size: 0.875rem;
}
.intel-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.intel-empty {
  padding: 1.5rem; text-align: center;
  color: var(--text-muted); font-size: 0.875rem;
}

/* Score strip */
.intel-scores {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.75rem 0 1.25rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); margin-bottom: 1.25rem;
}
.intel-score-item { text-align: center; }
.intel-score-val { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.intel-score-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.05em; }
.intel-score-overall .intel-score-val { font-size: 2rem; }

.intel-badge {
  padding: 0.2rem 0.6rem; border-radius: 12px;
  font-size: 0.75rem; font-weight: 700; margin-left: auto;
}
.intel-badge-critical { background: rgba(239,68,68,0.15); color: #f87171; }
.intel-badge-high     { background: rgba(249,115,22,0.15); color: #fb923c; }

/* Tabs */
.intel-tabs {
  display: flex; gap: 0.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.intel-tab {
  background: none; border: none; padding: 0.5rem 0.9rem;
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.15s;
}
.intel-tab:hover { color: var(--text-primary); }
.intel-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.intel-tab-content { display: flex; flex-direction: column; gap: 0.75rem; }
.intel-tab-content.hidden { display: none; }
.intel-empty-tab { color: var(--text-muted); font-size: 0.875rem; padding: 1rem 0; }

/* Bottleneck items */
.intel-item {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.875rem 1rem;
}
.intel-item-critical { border-left: 3px solid #ef4444; }
.intel-item-high     { border-left: 3px solid #f97316; }
.intel-item-medium   { border-left: 3px solid #f59e0b; }
.intel-item-low      { border-left: 3px solid #64748b; }

.intel-item-header {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; flex-wrap: wrap;
}
.intel-severity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.intel-item-component { font-weight: 600; font-size: 0.875rem; }
.intel-item-tag {
  font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 4px;
  background: var(--border); color: var(--text-muted); text-transform: uppercase;
}
.intel-severity-label { font-size: 0.7rem; font-weight: 700; margin-left: auto; }
.intel-item-desc { font-size: 0.825rem; color: var(--text-secondary); margin-bottom: 0.35rem; }
.intel-item-rem { font-size: 0.8rem; color: var(--text-muted); }

/* Risk grid */
.intel-risk-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem;
}
.intel-risk-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.875rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.intel-risk-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.intel-risk-header strong { font-size: 0.875rem; }
.intel-risk-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--text-muted); }
.intel-risk-impact { font-size: 0.8rem; color: var(--text-secondary); }

/* Modernization path */
.intel-mod-step {
  display: flex; gap: 1rem; padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}
.intel-mod-step:last-child { border-bottom: none; }
.intel-mod-phase {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(74,124,247,0.12); border: 1px solid rgba(74,124,247,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #7aa5ff; text-align: center;
  line-height: 1.2;
}
.intel-mod-body { flex: 1; }
.intel-mod-header { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.intel-mod-header strong { font-size: 0.875rem; }
.intel-priority-badge { font-size: 0.7rem; font-weight: 700; }
.intel-effort-badge { font-size: 0.7rem; color: var(--text-muted); }
.intel-mod-desc { font-size: 0.825rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.intel-mod-services { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.intel-service-tag {
  font-size: 0.7rem; padding: 0.15rem 0.45rem; border-radius: 4px;
  background: rgba(74,124,247,0.1); border: 1px solid rgba(74,124,247,0.2); color: #7aa5ff;
}

/* Opportunities list */
.intel-opp-list { padding-left: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.intel-opp-list li { font-size: 0.875rem; color: var(--text-secondary); padding: 0.5rem 0.75rem; background: var(--surface-2); border-radius: 6px; border-left: 3px solid #22c55e; }

/* Migration path */
.intel-migration-list { padding-left: 1.5rem; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.intel-migration-list li { font-size: 0.875rem; color: var(--text-secondary); padding: 0.4rem 0; }
.intel-migration-list li::marker { color: var(--accent); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════
   ENTERPRISE ADMIN PANEL  (Phase 9)
══════════════════════════════════════════════════════════════════ */

.admin-wrap {
  display: flex; min-height: calc(100vh - 64px);
}

/* Sidebar */
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 64px; height: calc(100vh - 64px);
}
.admin-sidebar-header {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1.25rem 1rem; font-weight: 700; font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.admin-logo { font-size: 1.1rem; }
.admin-nav { display: flex; flex-direction: column; padding: 0.75rem 0; flex: 1; }
.admin-nav-item {
  background: none; border: none; padding: 0.65rem 1.1rem;
  text-align: left; font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer; transition: all 0.15s;
  border-radius: 0;
}
.admin-nav-item:hover { background: var(--surface-2); color: var(--text-primary); }
.admin-nav-item.active { background: rgba(74,124,247,0.12); color: var(--accent); font-weight: 600; }
.admin-sidebar-footer { padding: 1rem; border-top: 1px solid var(--border); }
.admin-back-link { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; }
.admin-back-link:hover { color: var(--accent); }

/* Main area */
.admin-main { flex: 1; padding: 2rem; overflow-y: auto; }
.admin-tab { display: flex; flex-direction: column; gap: 1.5rem; }
.admin-tab.hidden { display: none; }
.admin-tab-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.admin-tab-header h2 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.admin-search-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-search-input {
  padding: 0.45rem 0.75rem; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface-2); color: var(--text-primary); font-size: 0.85rem;
  min-width: 220px;
}
.admin-search-input:focus { outline: none; border-color: var(--accent); }
.admin-select {
  padding: 0.45rem 0.75rem; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface-2); color: var(--text-primary); font-size: 0.85rem;
}
.admin-loading { color: var(--text-muted); font-size: 0.875rem; padding: 1rem 0; }
.admin-section-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0.5rem 0; }

/* Stats grid */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem;
}
.stat-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.25rem; text-align: center;
}
.stat-val { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Plan distribution */
.plan-dist-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 0; font-size: 0.875rem; }
.plan-tag { padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.plan-free     { background: rgba(100,116,139,0.15); color: #94a3b8; }
.plan-pro      { background: rgba(74,124,247,0.15); color: #7aa5ff; }
.plan-enterprise { background: rgba(168,85,247,0.15); color: #c084fc; }
.plan-admin    { background: rgba(239,68,68,0.15); color: #f87171; }

/* Admin table */
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
.admin-table th {
  padding: 0.6rem 0.75rem; text-align: left; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.admin-table tr:hover td { background: var(--surface-2); }

/* Status dots */
.status-dot-active  { color: #22c55e; font-weight: 600; }
.status-dot-inactive { color: #ef4444; font-weight: 600; }

/* Buttons */
.btn-xs { font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 4px; cursor: pointer; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-secondary); }
.btn-xs:hover { background: var(--border); }
.btn-danger { border-color: rgba(239,68,68,0.3); color: #f87171; }
.btn-danger:hover { background: rgba(239,68,68,0.1); }

/* Pagination */
.admin-pagination { display: flex; gap: 0.25rem; margin-top: 0.75rem; flex-wrap: wrap; }
.page-btn { padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; color: var(--text-muted); }
.page-btn.active { background: rgba(74,124,247,0.15); color: var(--accent); border-color: var(--accent); }

/* Admin modal */
.admin-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 500;
}
.admin-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; width: min(480px, 90vw); z-index: 501;
  display: flex; flex-direction: column; gap: 1rem;
}
.admin-modal-header { display: flex; align-items: center; justify-content: space-between; }
.admin-modal-footer { display: flex; justify-content: flex-end; gap: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.admin-key-result { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem; font-size: 0.825rem; color: var(--text-secondary); word-break: break-all; }

/* AI Usage */
.ai-provider-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.ai-provider-name { width: 100px; font-size: 0.85rem; flex-shrink: 0; }
.ai-provider-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.ai-provider-bar { height: 100%; background: var(--accent); border-radius: 4px; }
.ai-provider-count { width: 40px; text-align: right; font-size: 0.8rem; color: var(--text-muted); }

/* Daily volume chart */
.daily-volume-chart { display: flex; align-items: flex-end; gap: 6px; height: 80px; padding-bottom: 20px; position: relative; }
.dv-col { display: flex; flex-direction: column; align-items: center; }
.dv-bar { width: 18px; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; }
.dv-label { font-size: 0.6rem; color: var(--text-muted); margin-top: 4px; }

/* Audit action tag */
.audit-action-tag { font-size: 0.72rem; padding: 0.1rem 0.4rem; border-radius: 3px; background: rgba(74,124,247,0.1); color: #7aa5ff; }

/* Responsive */
@media (max-width: 768px) {
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; }
  .admin-nav { flex-direction: row; padding: 0.5rem; }
  .admin-sidebar-footer { display: none; }
  .admin-main { padding: 1rem; }
}

/* ══════════════════════════════════════════════════════════════════
   PHASE 10 — PRODUCTION QUALITY
   Accessibility, Performance, Mobile Polish, Error States
══════════════════════════════════════════════════════════════════ */

/* Skip navigation (a11y) */
.skip-nav {
  position: absolute; top: -100%; left: 0; z-index: 9999;
  background: var(--accent); color: #fff; padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 0; font-weight: 600; text-decoration: none;
  transition: top 0.15s;
}
.skip-nav:focus { top: 0; }

/* Focus-visible ring (keyboard navigation) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* High-contrast mode support */
@media (forced-colors: active) {
  .btn-primary, .btn-secondary { border: 2px solid ButtonText; }
  .result-card { border: 1px solid ButtonText; }
}

/* ── Loading skeleton ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Toast notifications ──────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none;
}
.toast {
  padding: 0.75rem 1.25rem; border-radius: 8px; font-size: 0.875rem;
  font-weight: 500; max-width: 360px; pointer-events: auto;
  animation: toast-in 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.toast-success { background: rgba(34,197,94,0.15); border: 1px solid #22c55e; color: #4ade80; }
.toast-error   { background: rgba(239,68,68,0.15); border: 1px solid #ef4444; color: #f87171; }
.toast-info    { background: rgba(74,124,247,0.15); border: 1px solid var(--accent); color: #7aa5ff; }

/* ── Error state ──────────────────────────────────────────── */
.error-boundary {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px; padding: 1.5rem; text-align: center;
}
.error-boundary-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.error-boundary-msg { color: #fca5a5; font-size: 0.875rem; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  padding: 3rem 1.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.empty-state-icon { font-size: 2.5rem; opacity: 0.6; }
.empty-state-title { font-size: 1rem; font-weight: 600; color: var(--text-secondary); }
.empty-state-body { font-size: 0.875rem; color: var(--text-muted); max-width: 320px; }

/* ── Print styles ─────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .copilot-btn, .copilot-panel,
  .results-actions, .next-steps-cta, .modal, .modal-backdrop,
  .intelligence-card { display: none !important; }
  body { background: white; color: black; }
  .result-card { border: 1px solid #ccc; page-break-inside: avoid; }
}

/* ── Mobile improvements (Phase 10 polish) ────────────────── */
@media (max-width: 640px) {
  /* Results page cards */
  .results-grid { grid-template-columns: 1fr; }
  .results-header-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .results-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }

  /* Maturity pillars */
  .maturity-pillars { grid-template-columns: 1fr 1fr; }

  /* Intelligence scores */
  .intel-scores { gap: 0.75rem; }
  .intel-score-val { font-size: 1.25rem; }

  /* Intelligence risk grid */
  .intel-risk-grid { grid-template-columns: 1fr; }

  /* Admin panel */
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-table { font-size: 0.75rem; }
  .admin-table th { font-size: 0.65rem; }

  /* FinOps cards */
  .finops-tabs { overflow-x: auto; flex-wrap: nowrap; }

  /* Form sections */
  .form-row-3 { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ── Table horizontal scroll on mobile ────────────────────── */
.components-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Image lazy loading placeholder ──────────────────────── */
img[loading="lazy"] { background: var(--surface-2); }

/* ── Better button states ─────────────────────────────────── */
button:disabled, .btn:disabled {
  opacity: 0.5; cursor: not-allowed; pointer-events: none;
}
button:not(:disabled):active { transform: scale(0.97); }

/* ── Smooth scroll ────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ═══════════════════════════════════════════════════════════
   PERSONA SYSTEM — Phase 1
   ═══════════════════════════════════════════════════════════ */

/* Persona section wrapper */
.persona-section {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}

.persona-header {
  text-align: center;
  margin-bottom: 2rem;
}

.persona-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.persona-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 540px;
  margin-inline: auto;
}

/* Persona grid */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

/* Persona card */
.persona-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1.125rem 1rem 1rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  position: relative;
  overflow: hidden;
}

.persona-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--persona-color, #6366f1);
  opacity: 0;
  transition: opacity 0.15s;
}

.persona-card:hover {
  border-color: var(--persona-color, #6366f1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--persona-color, #6366f1) 12%, transparent);
  transform: translateY(-1px);
}

.persona-card:hover::before,
.persona-card.active::before { opacity: 1; }

.persona-card.active {
  border-color: var(--persona-color, #6366f1);
  background: color-mix(in srgb, var(--persona-color, #6366f1) 7%, var(--surface-2));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--persona-color, #6366f1) 18%, transparent);
}

.persona-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.375rem;
  display: block;
}

.persona-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

.persona-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--persona-color, #6366f1);
  display: block;
  margin-top: 0.125rem;
}

.persona-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: block;
  margin-top: 0.375rem;
}

/* Skip link */
.persona-skip {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.persona-skip-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: underline;
  padding: 0;
}

.persona-skip-btn:hover { color: var(--text-primary); }

/* ── Active persona banner (appears above form) ──────────── */
.persona-active-banner {
  display: none;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  background: color-mix(in srgb, var(--persona-color, #6366f1) 10%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--persona-color, #6366f1) 30%, transparent);
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.persona-active-banner.visible { display: flex; }

.pab-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.pab-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}

.pab-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pab-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pab-change {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.pab-change:hover {
  border-color: var(--persona-color, #6366f1);
  color: var(--text-primary);
}

/* ── Persona results banner (results page) ───────────────── */
.persona-results-banner {
  background: color-mix(in srgb, var(--persona-color, #6366f1) 8%, var(--surface-1));
  border-bottom: 1px solid color-mix(in srgb, var(--persona-color, #6366f1) 25%, transparent);
  padding: 1rem 0;
}

.prb-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prb-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.prb-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.prb-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--persona-color, #6366f1);
}

.prb-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.prb-depth {
  flex-shrink: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
}

.prb-depth.depth-simple {
  background: color-mix(in srgb, #10b981 12%, transparent);
  border-color: #10b981;
  color: #10b981;
}

.prb-depth.depth-standard {
  background: color-mix(in srgb, #f59e0b 12%, transparent);
  border-color: #f59e0b;
  color: #f59e0b;
}

.prb-depth.depth-expert {
  background: color-mix(in srgb, #6366f1 12%, transparent);
  border-color: #6366f1;
  color: #6366f1;
}

/* ── Complexity Toggle Bar ───────────────────────────────── */
.complexity-toggle-bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ctb-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.ctb-buttons {
  display: flex;
  gap: 0.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.25rem;
}

.ctb-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.3rem 0.875rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.ctb-btn.active {
  background: var(--surface-3, #1e293b);
  color: var(--text-primary);
  font-weight: 600;
}

.ctb-btn:not(.active):hover { color: var(--text-secondary); }

.ctb-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 120px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .persona-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 600px) {
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .persona-desc { display: none; }
  .prb-inner { flex-wrap: wrap; }
  .prb-depth { margin-left: auto; }
}

/* ═══════════════════════════════════════════════════════════
   PHASE 3 — AI Decision Guidance
   ═══════════════════════════════════════════════════════════ */

.card-header-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: auto;
}

.why-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.why-btn:hover,
.why-btn.active {
  border-color: #6366f1;
  color: #6366f1;
  background: color-mix(in srgb, #6366f1 8%, transparent);
}

.rationale-row.hidden { display: none; }

.rationale-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: color-mix(in srgb, #6366f1 6%, var(--surface-2));
  border-left: 3px solid #6366f1;
  border-radius: 0 6px 6px 0;
}

.rationale-icon { font-size: 1.25rem; flex-shrink: 0; }

.rationale-content strong {
  font-size: 0.875rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.rationale-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   PHASE 4 — Architecture Confidence / Readiness Strip
   ═══════════════════════════════════════════════════════════ */

.readiness-strip {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.readiness-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.readiness-inner::-webkit-scrollbar { display: none; }

.readiness-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  flex: 1;
  min-width: 90px;
  padding: 0.5rem 0.75rem;
  border-right: 1px solid var(--border);
}

.readiness-item:last-child { border-right: none; }

.rd-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rd-badge {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.2rem 0.625rem;
  border-radius: 20px;
  border: 1px solid transparent;
}

.rd-pending { color: var(--text-muted); border-color: var(--border); }

.rd-green {
  color: #10b981;
  background: color-mix(in srgb, #10b981 12%, transparent);
  border-color: color-mix(in srgb, #10b981 35%, transparent);
}

.rd-yellow {
  color: #f59e0b;
  background: color-mix(in srgb, #f59e0b 12%, transparent);
  border-color: color-mix(in srgb, #f59e0b 35%, transparent);
}

.rd-red {
  color: #ef4444;
  background: color-mix(in srgb, #ef4444 12%, transparent);
  border-color: color-mix(in srgb, #ef4444 35%, transparent);
}

.rd-high { color: #10b981; }
.rd-medium { color: #f59e0b; }
.rd-low { color: #ef4444; }

/* ═══════════════════════════════════════════════════════════
   PHASE 5 — Story Toggle & Story View
   ═══════════════════════════════════════════════════════════ */

.story-toggle-container { padding: 1rem 0 0; }

.story-toggle-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.stb-left {
  display: flex;
  gap: 0.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.25rem;
}

.story-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.3rem 0.875rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.story-toggle-btn.active {
  background: var(--surface-3, #1e293b);
  color: var(--text-primary);
  font-weight: 600;
}

.story-toggle-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Story panel */
.story-panel {
  padding: 1.5rem 0;
}

.story-panel.hidden { display: none; }

.story-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--text-muted);
  justify-content: center;
}

.story-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.story-content { display: flex; flex-direction: column; gap: 1.25rem; }
.story-content.hidden { display: none; }

.story-section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.story-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
}

.story-section-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.story-section-icon { font-size: 1.125rem; }

.story-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.story-section-body {
  padding: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.story-section-body p { margin: 0 0 0.75rem; }
.story-section-body p:last-child { margin-bottom: 0; }
.story-section-body ul, .story-section-body ol { margin: 0.5rem 0; padding-left: 1.5rem; }
.story-section-body li { margin-bottom: 0.25rem; }

.story-lead {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 1rem !important;
}

.story-meta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.story-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.smi-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.smi-val {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.smi-conf-high { color: #10b981; }
.smi-conf-medium { color: #f59e0b; }
.smi-conf-low { color: #ef4444; }
.smi-green { color: #10b981; }
.smi-yellow { color: #f59e0b; }

.story-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.story-chip {
  display: inline-block;
  background: var(--surface-3, #1e293b);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.story-cost-trio {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.sct-item {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.sct-recommended {
  border-color: #6366f1;
  background: color-mix(in srgb, #6366f1 8%, var(--surface-1));
}

.sct-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.sct-val {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.story-tips {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.story-warn {
  padding: 0.625rem 0.875rem;
  background: color-mix(in srgb, #f59e0b 10%, transparent);
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  color: var(--text-secondary) !important;
  margin-top: 0.5rem;
}

.story-muted { color: var(--text-muted) !important; font-style: italic; }

.story-export-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.story-export-btn {
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.125rem;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}

.story-export-btn:hover {
  border-color: #6366f1;
  color: var(--text-primary);
}

.story-improvements { padding-left: 1.25rem; margin: 0; }
.story-improvements li { margin-bottom: 0.375rem; }

/* ═══════════════════════════════════════════════════════════
   PHASE 7 — Professional Enterprise Refinements
   ═══════════════════════════════════════════════════════════ */

/* Tighter card headers */
.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Card body typography refinement */
.result-card { transition: none; }

/* Reduce hero animation noise */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge { animation: none; }
}

/* Clean section numbers */
.section-number {
  font-variant-numeric: tabular-nums;
}

/* Better form input focus rings */
.form-input:focus,
.form-select:focus,
.form-control:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px color-mix(in srgb, #6366f1 20%, transparent);
}

/* Premium result header */
.results-header {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
}

/* Calmer confidence badge */
.confidence-badge {
  border: 1px solid;
  border-radius: 8px;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
}

.confidence-high { color: #10b981; border-color: color-mix(in srgb, #10b981 35%, transparent); background: color-mix(in srgb, #10b981 8%, transparent); }
.confidence-medium { color: #f59e0b; border-color: color-mix(in srgb, #f59e0b 35%, transparent); background: color-mix(in srgb, #f59e0b 8%, transparent); }
.confidence-low { color: #6366f1; border-color: color-mix(in srgb, #6366f1 35%, transparent); background: color-mix(in srgb, #6366f1 8%, transparent); }

/* ═══════════════════════════════════════════════════════════
   PHASE 8 — What Next? Guidance Cards
   ═══════════════════════════════════════════════════════════ */

.whatnext-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.whatnext-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: var(--surface-1);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.whatnext-card:hover {
  border-color: color-mix(in srgb, #6366f1 40%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, #6366f1 10%, transparent);
}

.whatnext-primary {
  border-color: color-mix(in srgb, #6366f1 40%, transparent);
  background: color-mix(in srgb, #6366f1 6%, var(--surface-1));
}

.whatnext-auth {
  border-color: color-mix(in srgb, #10b981 40%, transparent);
  background: color-mix(in srgb, #10b981 6%, var(--surface-1));
}

.wn-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
}

.wn-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.wn-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.wn-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.wn-action {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.875rem;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.wn-action:hover {
  border-color: #6366f1;
  color: var(--text-primary);
  background: color-mix(in srgb, #6366f1 8%, var(--surface-2));
}

.whatnext-primary .wn-action {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

.whatnext-primary .wn-action:hover {
  background: #5558e3;
}

.next-steps-detail {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.next-steps-detail h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
}

.next-steps-list {
  margin: 0;
  padding-left: 1.5rem;
}

.next-steps-list li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .whatnext-grid { grid-template-columns: 1fr; }
  .readiness-inner { gap: 0; }
  .readiness-item { min-width: 75px; padding: 0.5rem 0.5rem; }
  .rd-label { font-size: 0.65rem; }
}

/* ============================================================
   Opsible — SaaS Workbench Additions
   Phases 1–10 brand & conversion polish
   ============================================================ */

/* ── Logo sizing (canonical values in branding block above) ── */

/* ── Trust badges (hero) ─────────────────────────────────── */
.lp-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}
.lp-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-green);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
}
.lp-trust-badge svg { flex-shrink: 0; }

/* ── "Who it's for" section ───────────────────────────────── */
.lp-who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.lp-who-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: var(--t);
}
.lp-who-card:hover {
  border-color: rgba(74,124,247,0.3);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.lp-who-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.lp-who-icon-blue   { background: rgba(74,124,247,0.12); color: var(--accent-blue); }
.lp-who-icon-purple { background: rgba(168,85,247,0.12); color: var(--accent-purple); }
.lp-who-icon-green  { background: rgba(16,185,129,0.12); color: var(--accent-green); }
.lp-who-icon-orange { background: rgba(245,158,11,0.12); color: var(--accent-orange); }
.lp-who-icon-cyan   { background: rgba(34,211,238,0.12); color: var(--accent-cyan); }
.lp-who-icon-pink   { background: rgba(236,72,153,0.12); color: var(--accent-pink); }
.lp-who-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.lp-who-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
@media (max-width: 960px) { .lp-who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lp-who-grid { grid-template-columns: 1fr; } }

/* ── "Why teams pay" section ─────────────────────────────── */
.lp-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.lp-value-item {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
.lp-value-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--border);
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.lp-value-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.lp-value-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
@media (max-width: 960px) { .lp-value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lp-value-grid { grid-template-columns: 1fr; } }

/* ── Pricing preview (landing) ───────────────────────────── */
.lp-pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.lp-pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--t);
}
.lp-pricing-card:hover {
  border-color: rgba(74,124,247,0.25);
  transform: translateY(-2px);
}
.lp-pricing-card-featured {
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(74,124,247,0.06) 0%, rgba(124,58,237,0.04) 100%);
  box-shadow: 0 0 0 1px rgba(74,124,247,0.2), 0 8px 40px rgba(74,124,247,0.12);
}
.lp-pricing-popular {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  background: rgba(74,124,247,0.1);
  border: 1px solid rgba(74,124,247,0.25);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.lp-pricing-plan {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.lp-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.lp-price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.lp-price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.lp-pricing-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.lp-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}
.lp-pricing-features li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.lp-pricing-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 0.1em;
}
.lp-pricing-cta {
  display: block;
  text-align: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--t);
  text-decoration: none;
}
.lp-pricing-footer {
  text-align: center;
}
.lp-pricing-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}
.lp-pricing-more-link:hover { text-decoration: underline; }
@media (max-width: 960px) { .lp-pricing-cards { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } }

/* ── Pricing page ────────────────────────────────────────── */
.pricing-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3.5rem;
  text-align: center;
}
.pricing-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.pricing-hero-inner { position: relative; z-index: 1; }
.pricing-hero-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.pricing-hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.pricing-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pricing-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.pricing-trust-item svg { color: var(--accent-green); }
.pricing-trust-sep { color: var(--text-muted); }

.pricing-plans-section { padding: 3rem 0 2rem; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--t);
}
.pricing-card:hover { border-color: rgba(74,124,247,0.2); transform: translateY(-2px); }
.pricing-card-pro {
  border-color: var(--accent-blue);
  background: linear-gradient(160deg, rgba(74,124,247,0.07) 0%, rgba(124,58,237,0.04) 100%);
  box-shadow: 0 0 0 1px rgba(74,124,247,0.2), 0 12px 48px rgba(74,124,247,0.12);
}
.pricing-card-enterprise {
  background: linear-gradient(160deg, rgba(124,58,237,0.06) 0%, rgba(168,85,247,0.03) 100%);
  border-color: rgba(124,58,237,0.25);
}
.pricing-popular-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  background: rgba(74,124,247,0.1);
  border: 1px solid rgba(74,124,247,0.3);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.pricing-card-header { margin-bottom: 1.5rem; }
.pricing-plan-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.pricing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.4rem;
}
.pricing-price-val {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.pricing-price-custom { font-size: 1.8rem; }
.pricing-price-per {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.pricing-plan-tagline {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.pricing-card-body { flex: 1; margin-bottom: 1.5rem; }
.pricing-feature-list { list-style: none; padding: 0; margin: 0; }
.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.pricing-feature-item:last-child { border-bottom: none; }
.pricing-feature-yes svg { color: var(--accent-green); flex-shrink: 0; margin-top: 0.1em; }
.pricing-feature-no { opacity: 0.35; }
.pricing-feature-no svg { color: var(--text-muted); flex-shrink: 0; margin-top: 0.1em; }
.pricing-btn {
  display: block;
  text-align: center;
  padding: 0.7rem 1.25rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--t);
  text-decoration: none;
  width: 100%;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pricing-grid { grid-template-columns: 1fr; } }

/* Pricing comparison table */
.pricing-compare-section { padding: 2rem 0 3rem; }
.pricing-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 600px;
}
.pricing-compare-table th,
.pricing-compare-table td {
  padding: 0.65rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.pricing-compare-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-surface);
  position: sticky;
  top: 0;
}
.pricing-compare-table .compare-feature-col {
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
  width: 38%;
}
.pricing-compare-table .compare-highlight {
  background: rgba(74,124,247,0.04);
}
.compare-section-row td {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 1rem 1rem 0.4rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.compare-val-yes { color: var(--accent-green); font-weight: 600; }
.compare-val-no  { color: var(--text-muted); }

/* Pricing FAQ */
.pricing-faq-section { padding: 3rem 0; }
.pricing-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.pricing-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.pricing-faq-q {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.pricing-faq-a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
@media (max-width: 700px) { .pricing-faq-grid { grid-template-columns: 1fr; } }

/* ── Export Center (results page) ────────────────────────── */
.export-center-card { margin-top: 1.5rem; }
.export-center-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.export-file-tree {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.eft-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.875rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.eft-tree {
  padding: 0.75rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.eft-folder {
  display: flex;
  flex-direction: column;
}
.eft-folder > span:first-child {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  padding: 0.15rem 0;
  font-weight: 500;
}
.eft-children {
  margin-left: 1.5rem;
  display: flex;
  flex-direction: column;
}
.eft-file {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  padding: 0.1rem 0;
  font-size: 0.77rem;
}
.eft-readme { color: var(--accent-blue); }
.eft-icon { font-size: 0.8em; }

.export-actions-col { display: flex; flex-direction: column; gap: 1.25rem; }
.export-center-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.export-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.export-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-green);
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 100px;
  padding: 0.25rem 0.65rem;
}
.export-trust-badge svg { color: var(--accent-green); flex-shrink: 0; }
.export-action-form { display: contents; }
.export-main-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
}
.export-secondary-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
}
.export-actions-list { display: flex; flex-direction: column; gap: 0; }
@media (max-width: 768px) {
  .export-center-grid { grid-template-columns: 1fr; }
}

/* ── Mobile nav polish ───────────────────────────────────── */
@media (max-width: 900px) {
  .lp-trust-badges { justify-content: flex-start; }
  .lp-hero-h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .lp-pricing-cards { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

.logo-img-wrap:hover { opacity: 0.9; text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════
   PREMIUM NAVBAR — Logo, subtitle, CTA buttons
   ═══════════════════════════════════════════════════════════════ */

/* Logo: image + subtitle inline */
.logo-img-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(148,163,184,0.6);
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.3;
  opacity: 0.9;
}
@media (max-width: 1100px) { .logo-subtitle { display: none !important; } }

/* Header logo responsive crop — shrinks at each breakpoint */
@media (max-width: 900px) {
  .header-logo-img { width: 133px; height: 36px; background-size: 168px 112px; background-position: -18px -36px; }
}
@media (max-width: 768px) {
  .header-logo-img { width: 118px; height: 32px; background-size: 149px 100px; background-position: -16px -32px; }
}
@media (max-width: 480px) {
  .header-logo-img { width: 103px; height: 28px; background-size: 131px 87px; background-position: -14px -28px; }
}
@media (max-width: 375px) {
  .header-logo-img { width: 96px; height: 26px; background-size: 121px 81px; background-position: -13px -26px; }
}
@media (max-width: 320px) {
  .header-logo-img { width: 81px; height: 22px; background-size: 103px 68px; background-position: -11px -22px; }
}

/* Sign in button */
.nav-signin-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(203,213,225,0.85);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.nav-signin-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}

/* Start Free CTA button */
.nav-startfree-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(99,102,241,0.35);
}
.nav-startfree-btn:hover {
  background: linear-gradient(135deg, #5154d6 0%, #7c3aed 100%);
  box-shadow: 0 4px 20px rgba(99,102,241,0.5);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION — 2-COLUMN ENTERPRISE LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.lp-hero {
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 0;
  background: linear-gradient(180deg,
    #050816 0%,
    #060a1e 40%,
    #080d20 70%,
    #060810 100%);
}

.lp-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.lp-hero-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: -200px;
  left: -100px;
}
.lp-hero-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.14) 0%, transparent 70%);
  top: -100px;
  right: 10%;
}
.lp-hero-glow-3 {
  position: absolute;
  width: 800px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(6,182,212,0.06) 0%, transparent 70%);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.lp-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* Hero inner: 2-column grid */
.lp-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 3rem;
}
@media (max-width: 960px) {
  .lp-hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 2.5rem;
  }
}

/* Badge */
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.75rem;
}
.lp-badge svg { color: #818cf8; flex-shrink: 0; }

/* Hero headline */
.lp-hero-h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.lp-hero-h1-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.lp-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(148,163,184,0.9);
  margin-bottom: 2rem;
  max-width: 480px;
}

/* CTA buttons */
.lp-hero-ctas {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.lp-cta-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4), 0 0 0 1px rgba(99,102,241,0.3);
  transition: all 0.2s ease;
}
.lp-cta-primary-btn:hover {
  background: linear-gradient(135deg, #5154d6 0%, #7c3aed 100%);
  box-shadow: 0 8px 32px rgba(99,102,241,0.55), 0 0 0 1px rgba(99,102,241,0.4);
  transform: translateY(-2px);
}

.lp-cta-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(203,213,225,0.9);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.8rem 1.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.lp-cta-ghost-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

/* Feature chips */
.lp-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lp-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(148,163,184,0.85);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   ARCHITECTURE PREVIEW PANEL
   ═══════════════════════════════════════════════════════════════ */

.lp-hero-visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.lp-arch-preview-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
}

/* Main architecture window */
.lp-arch-window {
  background: linear-gradient(145deg, rgba(15,20,48,0.95) 0%, rgba(10,14,36,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.08),
    0 24px 64px rgba(0,0,0,0.6),
    0 4px 16px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.lp-arch-window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lp-awb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lp-awb-red    { background: #ff5f57; }
.lp-awb-yellow { background: #febc2e; }
.lp-awb-green  { background: #28c840; }
.lp-awb-title  {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: rgba(148,163,184,0.6);
  font-weight: 500;
}

.lp-arch-window-body {
  display: grid;
  grid-template-columns: 36px 1fr 56px;
  min-height: 280px;
}

/* Mini sidebar */
.lp-arch-sidebar {
  background: rgba(0,0,0,0.2);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0;
  gap: 0.5rem;
}
.lp-arch-sidebar-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.lp-arch-sidebar-icons { display: flex; flex-direction: column; gap: 0.4rem; }
.lp-asi {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(148,163,184,0.4);
  cursor: default;
  transition: all 0.15s;
}
.lp-asi-active {
  background: rgba(99,102,241,0.15);
  color: #818cf8;
}

/* Architecture diagram */
.lp-arch-diagram {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
}
.lp-diag-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.lp-diag-row-top { margin-bottom: 0.1rem; }
.lp-diag-vpc-label {
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
  margin-bottom: 0.1rem;
}
.lp-diag-vpc-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(99,102,241,0.7);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  letter-spacing: 0.05em;
}

/* Diagram nodes */
.lp-diag-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(203,213,225,0.8);
  border-radius: 6px;
  padding: 0.35rem 0.4rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  min-width: 52px;
  text-align: center;
  line-height: 1.2;
}
.lp-diag-internet { background: rgba(15,23,42,0.6); border-color: rgba(99,102,241,0.2); color: #94a3b8; min-width: 70px; }
.lp-diag-lb       { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.25); min-width: 120px; }
.lp-diag-web      { background: rgba(59,130,246,0.07); border-color: rgba(59,130,246,0.2); color: #93c5fd; }
.lp-diag-app      { background: rgba(16,185,129,0.07); border-color: rgba(16,185,129,0.2); color: #6ee7b7; }
.lp-diag-db       { background: rgba(139,92,246,0.07); border-color: rgba(139,92,246,0.2); color: #c4b5fd; }

/* Right services column */
.lp-arch-services {
  border-left: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.4rem;
  justify-content: center;
}
.lp-svc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.55rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.45rem 0.3rem;
  text-align: center;
  line-height: 1.2;
  border: 1px solid;
}
.lp-svc-green  { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: #6ee7b7; }
.lp-svc-orange { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.2); color: #fdba74; }
.lp-svc-amber  { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.2); color: #fcd34d; }

/* Score card (floating top-right) */
.lp-score-card {
  position: absolute;
  top: -1.5rem;
  right: -2rem;
  z-index: 3;
  background: linear-gradient(145deg, rgba(15,20,48,0.98) 0%, rgba(10,14,36,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  min-width: 140px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(16,185,129,0.1);
}
.lp-score-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(148,163,184,0.7);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.6rem;
  text-align: center;
}
.lp-score-ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.3rem;
  width: 64px;
  height: 64px;
}
.lp-score-num {
  position: absolute;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.lp-score-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #10b981;
  text-align: center;
  margin-bottom: 0.65rem;
}
.lp-score-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.lp-score-checks li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: rgba(203,213,225,0.7);
}

/* Cost estimate card (floating bottom-right) */
.lp-cost-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  z-index: 3;
  background: linear-gradient(145deg, rgba(15,20,48,0.98) 0%, rgba(10,14,36,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  min-width: 160px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.08);
}
.lp-cost-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(148,163,184,0.7);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
}
.lp-cost-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.lp-cost-saving {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: #10b981;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.lp-cost-sparkline { display: flex; }

/* Stack row */
.lp-stack-row {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
  background: rgba(0,0,0,0.2);
  margin-top: 1rem;
}
.lp-stack-row-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}
.lp-stack-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(100,116,139,0.8);
}
.lp-stack-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.lp-stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(148,163,184,0.75);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  transition: all 0.18s ease;
}
.lp-stack-pill:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  color: rgba(203,213,225,0.9);
  transform: translateY(-1px);
}
.lp-stack-aws   { color: #ff9900; border-color: rgba(255,153,0,0.15); background: rgba(255,153,0,0.06); }
.lp-stack-azure { color: #0078d4; border-color: rgba(0,120,212,0.15); background: rgba(0,120,212,0.06); }
.lp-stack-gcp   { color: #4285f4; border-color: rgba(66,133,244,0.15); background: rgba(66,133,244,0.06); }

/* Responsive hero visual */
@media (max-width: 960px) {
  .lp-hero-visual { display: none; }
  .lp-hero-content { max-width: 600px; margin: 0 auto; }
  .lp-hero-h1 { font-size: clamp(2rem, 8vw, 3rem); }
}
@media (max-width: 640px) {
  .lp-score-card, .lp-cost-card { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   ENTERPRISE FOOTER REBUILD
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
  background: linear-gradient(180deg, #070b1e 0%, #050816 100%) !important;
  border-top: 1px solid rgba(99,102,241,0.1) !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

.footer-inner { display: flex; flex-direction: column; }

/* Main footer grid */
.footer-grid-wrap {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Brand column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-logo-link { display: inline-flex; text-decoration: none; }
/* footer-logo-img canonical size defined in branding block */
.footer-brand-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(148,163,184,0.75);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.footer-brand-desc {
  font-size: 0.9rem;
  color: rgba(148,163,184,0.6);
  line-height: 1.7;
  max-width: 300px;
  margin: 0;
}

/* Social icons */
.footer-socials { display: flex; gap: 0.5rem; }
.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(100,116,139,0.8);
  text-decoration: none;
  transition: all 0.18s ease;
}
.footer-social-icon:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.25);
  color: #a5b4fc;
}

/* Link columns */
.footer-links-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 700px) {
  .footer-links-cols { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 380px) {
  .footer-links-cols { grid-template-columns: 1fr; }
}

.footer-link-col { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(203,213,225,0.8);
  margin: 0;
}
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-link {
  font-size: 0.85rem;
  color: rgba(100,116,139,0.85);
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.4;
}
.footer-link:hover { color: rgba(203,213,225,0.9); }

/* Trust row */
.footer-trust-row {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.15);
}
.footer-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}
.footer-trust-sep { color: rgba(255,255,255,0.12); font-size: 0.8rem; }
.footer-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(100,116,139,0.75);
}
.footer-trust-pill svg { color: #10b981; flex-shrink: 0; }

/* Bottom bar */
.footer-bottom-bar { padding: 1rem 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(71,85,105,0.9);
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-link {
  font-size: 0.78rem;
  color: rgba(71,85,105,0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
}
.footer-bottom-link:hover { color: rgba(100,116,139,1); }
.footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 4px rgba(16,185,129,0.6);
}
.footer-version-badge {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(71,85,105,0.7);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
}

/* Hide old footer classes to avoid conflicts */
.footer-col, .footer-cols, .footer-social, .footer-social-link,
.footer-col-heading, .footer-links, .footer-bottom, .footer-tagline-bottom,
.footer-legal, .footer-legal-sep, .footer-legal-link { all: unset; }

/* ═══════════════════════════════════════════════════════════════
   PHASE 11 — AI Generation Loading Overlay
   ═══════════════════════════════════════════════════════════════ */

.generating-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.generating-overlay.visible { display: flex; }

.gen-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,8,16,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.generating-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  width: min(520px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

/* AI brain visual */
.gen-ai-visual {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gen-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(99,102,241,0.4);
  animation: gen-pulse-expand 2s ease-out infinite;
}
.gen-ring-1 { width: 56px;  height: 56px;  animation-delay: 0s; }
.gen-ring-2 { width: 80px;  height: 80px;  animation-delay: 0.5s; border-color: rgba(99,102,241,0.25); }
.gen-ring-3 { width: 110px; height: 110px; animation-delay: 1s;   border-color: rgba(99,102,241,0.12); }

@keyframes gen-pulse-expand {
  0%   { opacity: 1; transform: scale(0.85); }
  60%  { opacity: 0.4; }
  100% { opacity: 0; transform: scale(1.1); }
}

.gen-core {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(99,102,241,0.5), 0 0 48px rgba(99,102,241,0.2);
  animation: gen-core-breathe 2.5s ease-in-out infinite;
}
@keyframes gen-core-breathe {
  0%, 100% { box-shadow: 0 0 24px rgba(99,102,241,0.5), 0 0 48px rgba(99,102,241,0.2); }
  50%       { box-shadow: 0 0 36px rgba(99,102,241,0.7), 0 0 64px rgba(99,102,241,0.35); }
}

/* Orbiting dots */
.gen-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(139,92,246,0.25);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.gen-orbit-1 { width: 68px;  height: 68px;  animation: gen-spin 3s linear infinite; }
.gen-orbit-2 { width: 90px;  height: 90px;  animation: gen-spin 5s linear infinite reverse; }
.gen-orbit-3 { width: 112px; height: 112px; animation: gen-spin 7s linear infinite; }

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

.gen-orbit-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
  margin-top: -3px;
  box-shadow: 0 0 6px rgba(99,102,241,0.8);
}
.gen-orbit-2 .gen-orbit-dot { background: #8b5cf6; box-shadow: 0 0 6px rgba(139,92,246,0.8); }
.gen-orbit-3 .gen-orbit-dot { background: #06b6d4; box-shadow: 0 0 6px rgba(6,182,212,0.8); }

/* Title & subtitle */
.gen-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-align: center;
}
.gen-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin: -0.75rem 0 0;
  line-height: 1.5;
}

/* Step track */
.gen-steps-track {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.gen-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.gen-step-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: var(--text-muted);
}
.gen-step-check { display: none; width: 14px; height: 14px; }
.gen-step-label { flex: 1; }

.gen-step.active {
  color: var(--text-primary);
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.2);
}
.gen-step.active .gen-step-icon {
  border-color: #6366f1;
  color: #6366f1;
  box-shadow: 0 0 8px rgba(99,102,241,0.3);
}

.gen-step.done {
  color: rgba(16,185,129,0.8);
}
.gen-step.done .gen-step-icon {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.4);
  color: #10b981;
}
.gen-step.done .gen-step-check { display: block; }
.gen-step.done .gen-step-svg  { display: none; }

/* Confidence bars */
.gen-confidence-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
}

.gen-conf-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.gen-conf-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gen-conf-label span:last-child {
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.gen-conf-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.gen-conf-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#gc-reliability .gen-conf-fill { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
#gc-security    .gen-conf-fill { background: linear-gradient(90deg, #10b981, #059669); }
#gc-cost        .gen-conf-fill { background: linear-gradient(90deg, #f59e0b, #d97706); }
#gc-prod        .gen-conf-fill { background: linear-gradient(90deg, #06b6d4, #0891b2); }

/* Inline spinner for generate button */
.btn-spinner-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gen-spin 0.7s linear infinite;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 14 — Copilot Quick Actions
   ═══════════════════════════════════════════════════════════════ */

.copilot-quick-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.copilot-quick-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 0.25rem;
}
.copilot-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.copilot-chip-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}
.copilot-chip-action:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
  color: #a5b4fc;
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 15 — Share Button
   ═══════════════════════════════════════════════════════════════ */

.results-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}
.results-share-btn:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
  color: #a5b4fc;
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 16 — Dashboard Stats Row & Upgrade Banner
   ═══════════════════════════════════════════════════════════════ */

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 1100px) { .dash-stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .dash-stats-row { grid-template-columns: 1fr; } }

.dash-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.dash-stat-card:hover { border-color: rgba(255,255,255,0.12); }

.dash-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-stat-icon-blue   { background: rgba(99,102,241,0.12);  color: #6366f1; }
.dash-stat-icon-green  { background: rgba(16,185,129,0.12);  color: #10b981; }
.dash-stat-icon-purple { background: rgba(139,92,246,0.12);  color: #8b5cf6; }
.dash-stat-icon-orange { background: rgba(245,158,11,0.12);  color: #f59e0b; }

.dash-stat-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.dash-stat-val  { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.dash-stat-label{ font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.dash-stat-plan { font-size: 1rem; }

.dash-stat-plan-card { padding-right: 0.75rem; }
.dash-upgrade-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s;
}
.dash-upgrade-chip:hover { background: rgba(245,158,11,0.18); }

.dash-upgrade-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(90deg, rgba(245,158,11,0.08) 0%, rgba(99,102,241,0.06) 100%);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.dash-upgrade-banner-icon { font-size: 1.25rem; flex-shrink: 0; }
.dash-upgrade-banner-body {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.dash-upgrade-banner-body strong { color: var(--text-primary); }
@media (max-width: 700px) {
  .dash-upgrade-banner { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 17 — Enterprise Trust Strip
   ═══════════════════════════════════════════════════════════════ */

.enterprise-trust-strip {
  background: linear-gradient(90deg, rgba(16,185,129,0.04) 0%, rgba(6,182,212,0.04) 50%, rgba(99,102,241,0.04) 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.7rem 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.ets-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ets-sep {
  color: rgba(255,255,255,0.15);
  font-size: 0.85rem;
}

.ets-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.2rem 0;
}
.ets-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ets-item-ai    { color: #a5b4fc; }
.ets-item-ai::before    { background: #6366f1; box-shadow: 0 0 6px rgba(99,102,241,0.6); }

.ets-item-cloud { color: #67e8f9; }
.ets-item-cloud::before { background: #06b6d4; box-shadow: 0 0 6px rgba(6,182,212,0.6); }

.ets-item-prod  { color: #86efac; }
.ets-item-prod::before  { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,0.6); }

.ets-item-sec   { color: #fcd34d; }
.ets-item-sec::before   { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.6); }

.ets-item-deploy{ color: #c4b5fd; }
.ets-item-deploy::before{ background: #8b5cf6; box-shadow: 0 0 6px rgba(139,92,246,0.6); }

.ets-item-cost  { color: #6ee7b7; }
.ets-item-cost::before  { background: #059669; box-shadow: 0 0 6px rgba(5,150,105,0.6); }

@media (max-width: 700px) {
  .ets-sep { display: none; }
  .ets-inner { justify-content: flex-start; gap: 0.35rem 0.6rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 18 — Final typography & spacing polish
   ═══════════════════════════════════════════════════════════════ */

/* Smooth hover on all nav links */
.dash-nav-link { transition: background 0.16s ease, color 0.16s ease; }

/* Arch card hover lift */
.dash-arch-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dash-arch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

/* Results sections — tighter vertical rhythm */
.results-section + .results-section { margin-top: 1.25rem; }

/* Copilot send button icon alignment */
.copilot-send svg { display: block; }

/* Accessible focus rings */
.btn:focus-visible,
.copilot-chip-action:focus-visible,
.dash-fav-btn:focus-visible,
.results-share-btn:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

