/* PLG growth layer — preview dock, copilot, progressive lead, ROI */
.seo-layout-plg {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 100px;
  align-items: start;
}

@media (max-width: 1100px) {
  .seo-layout-plg { grid-template-columns: 1fr; }
  .seo-preview-dock { position: relative !important; top: 0 !important; }
}

.seo-preview-dock {
  position: sticky;
  top: 72px;
  z-index: 40;
}

.seo-preview-card {
  background: var(--seo-surface, #0d1424);
  border: 1px solid var(--seo-border, rgba(255,255,255,0.08));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.seo-preview-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: rgba(0,0,0,0.25);
  overflow-x: auto;
}

.seo-preview-tab {
  flex: 1;
  min-width: 0;
  padding: 8px 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--seo-muted, #94a3b8);
  font-size: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.seo-preview-tab.is-active {
  background: rgba(124, 92, 255, 0.25);
  color: #f1f5f9;
}

.seo-preview-viewport {
  position: relative;
  aspect-ratio: 16/10;
  background: #060b17;
}

.seo-preview-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  position: absolute;
  inset: 0;
}

.seo-preview-viewport img.is-active {
  opacity: 1;
  animation: seoPreviewPulse 4s ease-in-out infinite;
}

@keyframes seoPreviewPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.seo-preview-caption {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--seo-muted);
  border-top: 1px solid var(--seo-border);
}

.seo-preview-cta {
  display: block;
  margin: 0 12px 12px;
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c5cff, #9b7bff);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.seo-preview-cta:hover { filter: brightness(1.08); }

.seo-cta-contextual {
  background: linear-gradient(135deg, #6366f1, #7c5cff) !important;
}

.seo-intent-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.seo-intent-high { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.seo-intent-medium { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.seo-intent-low { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

.seo-copilot-fab {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #7c5cff, #9b7bff);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 70;
  box-shadow: 0 8px 32px rgba(124, 92, 255, 0.45);
}

.seo-copilot-panel {
  position: fixed;
  bottom: 156px;
  right: 24px;
  width: min(400px, calc(100vw - 48px));
  max-height: 480px;
  background: #0d1424;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  z-index: 70;
  display: none;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.seo-copilot-panel.is-open { display: flex; }

.seo-copilot-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--seo-border);
  font-weight: 600;
}

.seo-copilot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--seo-muted);
}

.seo-copilot-msg { margin-bottom: 10px; }
.seo-copilot-msg.user { color: #e2e8f0; text-align: right; }
.seo-copilot-msg.bot { color: #cbd5e1; }

.seo-copilot-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--seo-border);
}

.seo-copilot-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--seo-border);
  background: #060b17;
  color: #f1f5f9;
}

.seo-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  padding: 24px;
}

.seo-lead-modal.is-open { display: flex; }

.seo-lead-card {
  max-width: 440px;
  width: 100%;
  background: #0d1424;
  border: 1px solid var(--seo-border);
  border-radius: 16px;
  padding: 28px;
}

.seo-lead-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.seo-lead-step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}

.seo-lead-step-dot.is-done { background: #7c5cff; }

.seo-roi-hero {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #4ade80;
  margin: 16px 0;
}

.seo-roi-share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.seo-industry-banner {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  font-size: 13px;
  margin-bottom: 16px;
}
