/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --slack-bg: #1a1d21;
  --slack-sidebar: #19171d;
  --slack-main: #1a1d21;
  --slack-border: #383838;
  --slack-text: #d1d2d3;
  --slack-muted: #9b9b9b;
  --slack-purple: #19171d;
  --slack-link: #1d9bd1;
  --bot-color: #ff2d78;
  --page-bg: #0f0f10;
  --card-bg: #18181b;
  --accent: #ff2d78;
  --accent-light: #ff85b0;
  --text: #e4e4e7;
  --muted: #71717a;
  --border: #27272a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f0f10 0%, #1a0710 50%, #0f0f10 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.project-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e4e4e7 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.tagline {
  font-size: 15px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

.tagline code {
  background: rgba(255, 45, 120, 0.12);
  border: 1px solid rgba(255, 45, 120, 0.25);
  color: var(--accent-light);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 14px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tech-stack span {
  background: rgba(255, 45, 120, 0.1);
  border: 1px solid rgba(255, 45, 120, 0.22);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ── Demo section ─────────────────────────────────────── */
.demo-section {
  padding: 64px 24px;
  border-bottom: 1px solid var(--border);
}

.demo-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Step nav ─────────────────────────────────────────── */
.step-nav {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 4px;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.step-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.step-btn.active {
  background: rgba(255, 45, 120, 0.12);
  border-color: var(--accent);
  color: var(--accent-light);
}

.step-num {
  width: 20px;
  height: 20px;
  background: var(--border);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-btn.active .step-num {
  background: var(--accent);
  color: white;
}

.step-connector {
  height: 1px;
  width: 16px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Slack frame ──────────────────────────────────────── */
.slack-frame {
  flex: 1;
  min-width: 0;
  display: flex;
  background: var(--slack-bg);
  border-radius: 12px;
  border: 1px solid var(--slack-border);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  min-height: 520px;
}
.slack-frame.hidden { display: none; }

/* Sidebar */
.slack-sidebar {
  width: 220px;
  background: var(--slack-purple);
  flex-shrink: 0;
  padding: 16px 0;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-workspace {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  padding: 4px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 8px;
}

.sidebar-section {
  margin-bottom: 16px;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  padding: 8px 16px 4px;
}

.sidebar-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  border-radius: 4px;
  margin: 1px 4px;
  position: relative;
}

.sidebar-channel.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.ch-hash {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-channel.active .ch-hash {
  color: rgba(255,255,255,0.6);
}

.sidebar-new-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bot-sm {
  width: 18px;
  height: 18px;
  background: var(--bot-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* Avatars */
.dm-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  color: white;
}

.dm-avatar.bot { background: var(--bot-color); border-radius: 6px; }
.dm-avatar.user { background: #611f69; }

.dm-avatar.small {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.dm-avatar.tiny {
  width: 20px;
  height: 20px;
  font-size: 9px;
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

/* Main area */
.slack-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.slack-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--slack-border);
}

.topbar-hash {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  line-height: 1;
}

.topbar-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--slack-text);
}

.channel-topic {
  padding: 5px 20px;
  border-bottom: 1px solid var(--slack-border);
  font-size: 12px;
  color: var(--slack-muted);
  background: rgba(255,255,255,0.01);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-dot {
  color: rgba(255,255,255,0.2);
  margin: 0 4px;
}

.app-tag {
  background: rgba(255,255,255,0.1);
  color: var(--slack-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
}

.slack-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  position: relative;
}

/* Messages */
.message-group {
  margin-bottom: 16px;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.msg-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--slack-text);
}

.msg-time {
  font-size: 11px;
  color: var(--slack-muted);
}

.msg-body {
  padding-left: 36px;
}

.msg-bubble {
  display: inline-block;
  font-size: 14px;
  color: var(--slack-text);
  line-height: 1.5;
  max-width: 100%;
}

.cmd-bubble {
  font-family: 'SF Mono', Monaco, monospace;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: #aaa;
  font-size: 13px;
}

.bot-bubble {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px 16px;
  border-radius: 8px;
  width: 100%;
  display: block;
}

.bot-bubble > strong {
  color: #fff;
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

/* ── Deal card ───────────────────────────────────────── */
.deal-card {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.deal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}

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

.deal-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slack-muted);
  min-width: 80px;
  flex-shrink: 0;
}

.deal-value {
  color: var(--slack-text);
}

.deal-value.user-inline {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stage-badge {
  background: rgba(255, 45, 120, 0.15);
  border: 1px solid rgba(255, 45, 120, 0.3);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.sync-note {
  font-size: 11px;
  color: var(--slack-muted);
  margin-top: 4px;
}

/* ── Step continue button ────────────────────────────── */
.step-continue-wrap {
  display: flex;
  margin-top: 16px;
  padding-left: 36px;
}

/* ── Slack block rendering (PPO message) ─────────────── */
.sb-label {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--slack-text);
  margin-bottom: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
}

.sb-meeting-title {
  font-size: 14px;
  color: var(--slack-text);
  margin-bottom: 4px;
  line-height: 1.5;
}

.sb-link {
  color: var(--slack-link);
  font-weight: 700;
}

.sb-context {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--slack-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sb-mention {
  background: rgba(29, 155, 209, 0.15);
  color: #1d9bd1;
  border-radius: 3px;
  padding: 0 3px;
  font-size: 12px;
}

.sb-ppo {
  margin-top: 2px;
}

.sb-ppo-key {
  font-size: 13px;
  color: var(--slack-text);
  margin-bottom: 3px;
}

.sb-ppo-key strong {
  font-weight: 700;
}

.sb-code {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 3px solid rgba(255,255,255,0.15);
  border-radius: 0 4px 4px 0;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 13px;
  color: var(--slack-text);
  padding: 8px 12px;
  margin-bottom: 10px;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ── Thread reply count ──────────────────────────────── */
.thread-replies {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.thread-replies:hover {
  background: rgba(255,255,255,0.06);
}

.thread-avatars {
  display: flex;
  gap: -4px;
}

.thread-avatar {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
}

.thread-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
}

.thread-time {
  font-size: 12px;
  color: var(--slack-muted);
}

.thread-chevron {
  font-size: 16px;
  color: var(--slack-muted);
  margin-left: auto;
  line-height: 1;
}

/* ── Bullet list in PPO (Plan field) ─────────────────── */
.sb-list {
  list-style: none;
  padding: 0;
  margin: 3px 0 10px 0;
}

.sb-list li {
  font-size: 13px;
  color: var(--slack-text);
  padding: 1px 0 1px 14px;
  position: relative;
  line-height: 1.5;
}

.sb-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--slack-muted);
}

/* ── Thread reply context (replied to a thread) ──────── */
.thread-reply-ctx {
  margin-bottom: 10px;
}

.thread-reply-ctx-label {
  font-size: 13px;
  color: var(--slack-muted);
  display: block;
  margin-bottom: 3px;
}

.thread-reply-ctx-link {
  font-size: 14px;
  color: var(--slack-link);
  cursor: pointer;
}

/* ── System messages ─────────────────────────────────── */
.sys-msg {
  font-size: 12px;
  color: var(--slack-muted);
  text-align: center;
  padding: 6px 20px;
  margin-bottom: 8px;
}

.sys-msg strong {
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

/* ── Meeting PPO thread ──────────────────────────────── */
.meeting-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.meeting-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.meeting-header-text strong {
  color: #fff;
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}

.meeting-meta {
  font-size: 12px;
  color: var(--slack-muted);
}

.ppo-section {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ppo-field {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}

.ppo-field:last-child { border-bottom: none; }

.ppo-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slack-muted);
  min-width: 64px;
  flex-shrink: 0;
}

.ppo-value {
  color: var(--slack-text);
  line-height: 1.5;
}

.ppo-value.empty {
  color: rgba(255,255,255,0.2);
  font-style: italic;
}

.ppo-cta {
  font-size: 12px;
  color: var(--accent-light);
  cursor: pointer;
}

/* ── Gong call card ──────────────────────────────────── */
.gong-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.gong-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.gong-header-text strong {
  color: #fff;
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}

.gong-meta {
  font-size: 12px;
  color: var(--slack-muted);
}

.gong-summary {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.summary-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slack-muted);
  margin-bottom: 5px;
}

.summary-text {
  font-size: 13px;
  color: var(--slack-text);
  line-height: 1.6;
}

.gong-ratings {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-label {
  font-size: 12px;
  color: var(--slack-muted);
  flex-shrink: 0;
}

.rating-buttons {
  display: flex;
  gap: 6px;
}

.rating-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--slack-text);
  font-size: 13px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-btn:hover {
  background: rgba(255, 45, 120, 0.12);
  border-color: var(--accent);
  color: #fff;
}

.rating-btn.voted {
  background: rgba(255, 45, 120, 0.15);
  border-color: var(--accent);
  color: var(--accent-light);
}

.rating-count {
  font-size: 12px;
  font-weight: 600;
}

/* ── Demo step transitions ────────────────────────────── */
.demo-step { display: block; }
.demo-step.hidden { display: none; }

/* ── Glow animation on Next/tip buttons ──────────────── */
.tip-next-btn {
  animation: peekGlow 1.6s ease-in-out infinite;
}

.tip-next-btn:disabled {
  animation: none;
}

@keyframes peekGlow {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(255, 45, 120, 0.5), 0 0 20px 4px rgba(255, 45, 120, 0.2); }
  50% { box-shadow: 0 0 16px 4px rgba(255, 133, 176, 0.6), 0 0 32px 8px rgba(255, 45, 120, 0.25); }
}

/* ── Restart wrap ─────────────────────────────────────── */
.restart-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.next-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.next-btn:hover { background: #cc0055; }

.restart-btn {
  background: #374151;
  color: var(--text);
}

.restart-btn:hover { background: #4b5563; }

/* ── Slack modal overlay ──────────────────────────────── */
.slack-modal-overlay {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.slack-modal {
  background: #222529;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #3f3f46;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #e8e8e8;
}

.modal-close {
  color: var(--slack-muted);
  cursor: pointer;
  font-size: 16px;
}

.modal-body {
  padding: 20px;
}

/* Form modal */
.form-modal .modal-body { padding: 16px 20px; }

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #c7c7c7;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-hint {
  font-size: 11px;
  color: var(--slack-muted);
  margin-bottom: 5px;
  line-height: 1.4;
}

.form-input {
  background: #1a1d21;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--slack-muted);
  width: 100%;
}

.form-input.filled { color: #e8e8e8; }

input.text-input {
  color: #e8e8e8;
  outline: none;
  transition: border-color 0.15s;
}

input.text-input:focus {
  border-color: var(--accent);
}

input.text-input.invalid {
  border-color: #e53935;
}

input.text-input.invalid:focus {
  border-color: #e53935;
}

.form-error {
  font-size: 12px;
  color: #e53935;
  margin-top: 5px;
  min-height: 16px;
  line-height: 1.4;
}

.form-input.dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.caret { color: var(--slack-muted); }

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #3f3f46;
}

.modal-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.modal-btn.secondary {
  background: #2c2d31;
  border: 1px solid #3f3f46;
  color: #c7c7c7;
}

.modal-btn.primary {
  background: var(--accent);
  color: white;
}

.modal-btn.primary:hover { background: #cc0055; }

/* ── Message composer (step 0) ───────────────────────── */
.slack-composer-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 4px;
}

.slack-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px 12px;
}

.composer-input {
  flex: 1;
  font-size: 14px;
  color: var(--slack-text);
  font-family: 'SF Mono', Monaco, monospace;
  display: flex;
  align-items: center;
}

.composer-cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--slack-text);
  margin-left: 1px;
  animation: blink 1.1s step-start infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.composer-send {
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
  padding: 0;
}

.composer-send:hover {
  background: #cc0055;
  transform: scale(1.05);
}

/* ── Custom select dropdowns ─────────────────────────── */
.custom-select {
  position: relative;
}

.custom-select .select-trigger {
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select .select-trigger:hover {
  border-color: #6d6d6d;
}

.custom-select.open .select-trigger {
  border-color: var(--accent);
}

.custom-select.open .caret {
  display: inline-block;
  transform: rotate(180deg);
}

.select-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #2c2d31;
  border: 1px solid #4a4a50;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 100;
  overflow: hidden;
  max-height: 200px;
  overflow-y: auto;
}

.custom-select.open .select-options {
  display: block;
}

.select-option {
  padding: 8px 12px;
  font-size: 13px;
  color: #c7c7c7;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.1s;
}

.select-option:hover {
  background: rgba(255, 45, 120, 0.12);
  color: #fff;
}

.select-option.selected {
  color: var(--accent-light);
}

.select-option.selected::after {
  content: '✓';
  margin-left: auto;
  font-size: 12px;
  color: var(--accent-light);
}

.select-option.user-option.selected::after {
  content: '✓';
}

/* User pill inside trigger */
.user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #e8e8e8;
}

/* ── Walkthrough highlight blocks ───────────────────── */
.hl-block {
  transition: opacity 0.3s;
  margin-bottom: 4px;
}

.hl-block.hl-hidden { display: none; }

.hl-block.dimmed { opacity: 0.3; pointer-events: none; }

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

.hl-block.revealed {
  animation: hlReveal 0.3s ease forwards;
}

.hl-content {
  border-radius: 6px;
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  padding: 12px;
}

.hl-block.revealed .hl-content {
  border-color: rgba(255, 45, 120, 0.35);
  background: rgba(255, 45, 120, 0.04);
}

.hl-block.dimmed .hl-content {
  border-color: transparent;
  background: transparent;
}

/* ── Spotlight tip card ──────────────────────────────── */
.spotlight-tip {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 45, 120, 0.08);
  border: 1px solid rgba(255, 45, 120, 0.28);
  border-radius: 8px;
  padding: 11px 14px;
  margin-top: 16px;
}

.spotlight-tip.active { display: flex; }

.tip-text {
  font-size: 13px;
  color: var(--accent-light);
  line-height: 1.55;
  flex: 1;
}

.tip-next-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
  font-family: inherit;
}

.tip-next-btn:hover { background: #cc0055; }

.tip-next-btn:disabled {
  background: #4a5568;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Indented wrapper for standalone thread-replies */
.thread-replies-indent { padding-left: 36px; }

/* ── Slack frame row (SF panel stacked above Slack frame) ── */
.slack-frame-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Salesforce panel wrapper ────────────────────────── */
.sf-panel-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* ── Salesforce panel ─────────────────────────────────── */
.sf-panel-wrap.hidden { display: none; }
.sf-panel.hidden { display: none; }

.sf-panel-highlight {
  border-radius: 8px;
}

.sf-panel-highlight.spotlit {
  border: 1px solid rgba(255, 45, 120, 0.35);
  background: rgba(255, 45, 120, 0.04);
  padding: 12px;
}

.sf-panel {
  width: 100%;
  background: #1a1d21;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: border-color 0.25s, box-shadow 0.25s;
}


/* Tip anchored below the SF panel */
.sf-spotlight-tip {
  margin-top: 0;
}

.sf-panel-header {
  background: #0176d3;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-logo-box {
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: #0176d3;
}

.sf-app-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 3px;
}

.sf-record-name {
  font-size: 12px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.sf-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.4);
  padding: 10px 14px 4px;
}

.sf-field-group {
  padding: 2px 0 8px;
}

.sf-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}

.sf-field-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.sf-field-cell:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.07); }
.sf-field-cell:nth-last-child(-n+2) { border-bottom: none; }

.sf-field-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sf-field-row:last-child { border-bottom: none; }

.sf-field-row--textarea {
  align-items: flex-start;
  padding-top: 7px;
}

.sf-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  width: 68px;
  flex-shrink: 0;
}

.sf-val-static {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.sf-input {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  background: #2c2d31;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 3px 7px;
  flex: 1;
  min-width: 0;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.sf-input:focus {
  border-color: #0176d3;
  box-shadow: 0 0 0 2px rgba(1,118,211,0.2);
}

.sf-changed-dot {
  width: 7px;
  height: 7px;
  background: #f97316;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transition: opacity 0.25s;
}

/* Stage dropdown */
.sf-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.45)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  padding-right: 22px;
  cursor: pointer;
  color-scheme: dark;
}

/* ARR number input */
.sf-number-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  background: #2c2d31;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  flex: 1;
  min-width: 0;
  transition: border-color 0.15s;
  overflow: hidden;
}

.sf-number-wrap:focus-within {
  border-color: #0176d3;
  box-shadow: 0 0 0 2px rgba(1,118,211,0.2);
}

.sf-dollar {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  padding: 0 0 0 7px;
  line-height: 1;
  flex-shrink: 0;
}

.sf-number {
  border: none;
  background: transparent;
  box-shadow: none;
  padding-left: 2px;
  -moz-appearance: textfield;
}

.sf-number::-webkit-outer-spin-button,
.sf-number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sf-number:focus {
  border: none;
  box-shadow: none;
}

/* Close date */
.sf-date {
  cursor: pointer;
  color-scheme: dark;
}

/* Next step textarea */
.sf-textarea {
  resize: none;
  line-height: 1.4;
  padding-top: 4px;
  padding-bottom: 4px;
}

.sf-panel-footer {
  padding: 4px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sf-save-btn {
  display: block;
  width: auto;
  background: #0176d3;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 32px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.sf-save-btn:hover:not(:disabled) { background: #014c8b; }

.sf-save-btn:disabled {
  background: rgba(255,255,255,0.15);
  animation: none;
  box-shadow: none;
  cursor: default;
}

/* ── "Earlier" divider ───────────────────────────────── */
.msgs-earlier {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.msgs-earlier-line {
  flex: 1;
  height: 1px;
  background: var(--slack-border);
}

.msgs-earlier-text {
  font-size: 11px;
  color: var(--slack-muted);
  white-space: nowrap;
}

/* ── Peek Salesforce update message ──────────────────── */
.peek-sf-update {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.peek-sf-update.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sf-update-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sf-update-icon { font-size: 16px; }

.sf-update-title {
  font-size: 14px;
  color: white;
  font-weight: 600;
}

.sf-update-fields {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sf-update-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.sf-update-label {
  color: var(--slack-muted);
  min-width: 90px;
}

.sf-old-val {
  color: var(--slack-muted);
  text-decoration: line-through;
}

.sf-arrow { color: var(--slack-muted); flex-shrink: 0; }

.sf-new-val {
  color: #4ade80;
  font-weight: 600;
}

/* ── MCP / Ask Claude step ────────────────────────────── */
.mcp-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 4px;
  transition: opacity 0.25s;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slack-muted);
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%            { transform: translateY(-4px); opacity: 1; }
}

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

.mcp-reveal { animation: mcpReveal 0.4s ease forwards; }

.msg-text {
  font-size: 14px;
  color: var(--slack-text);
  margin: 0;
  padding-left: 36px;
}

/* MCP bubble */
.mcp-bubble {
  padding: 10px 12px;
}

.mcp-tools-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mcp-tool-chip {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(255, 45, 120, 0.1);
  border: 1px solid rgba(255, 45, 120, 0.25);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* Tool call rows */
.mcp-tool-calls {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}

.mcp-tool-call {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.mcp-tool-call-icon {
  color: var(--claude-muted);
  font-size: 10px;
}

.mcp-tool-call-name {
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 11.5px;
  color: var(--claude-text);
  font-weight: 500;
}

.mcp-tool-call-arg {
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 11.5px;
  color: var(--claude-muted);
}

.mcp-tool-call-source {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  border-radius: 20px;
  padding: 1px 7px;
}

.sf-source   { color: #60a5fa; background: rgba(96,165,250,0.1);  }
.gong-source { color: #fb923c; background: rgba(251,146,60,0.1);  }
.cal-source  { color: #4ade80; background: rgba(74,222,128,0.1);  }

/* Synthesis text */
.mcp-synthesis {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mcp-synth-text {
  font-size: 13.5px;
  color: var(--claude-text);
  line-height: 1.6;
}

.mcp-section {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 8px 0 4px;
}

.mcp-section:first-of-type { border-top: none; padding-top: 0; }
.mcp-section--last { padding-bottom: 0; }

.mcp-section-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--slack-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.mcp-fields {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mcp-field-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
}

.mcp-field-label {
  color: var(--slack-muted);
  min-width: 72px;
  flex-shrink: 0;
  font-size: 12px;
}

.mcp-field-val {
  color: var(--slack-text);
  font-weight: 500;
}

.mcp-section-body {
  font-size: 13px;
  color: var(--slack-text);
  line-height: 1.5;
}

/* ── "sf-no-changes" */
.sf-no-changes {
  font-size: 12px;
  color: var(--slack-muted);
  font-style: italic;
  padding-top: 2px;
}

.sf-validation-error {
  font-size: 11.5px;
  color: #ef4444;
  margin-bottom: 6px;
  line-height: 1.35;
}

/* ── Claude frame ─────────────────────────────────────── */
:root {
  --claude-bg: #1c1917;
  --claude-surface: #252320;
  --claude-border: #2e2b28;
  --claude-text: #e8e3dc;
  --claude-muted: #78716c;
  --claude-accent: #c96442;
}

.claude-frame {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--claude-bg);
  border-radius: 12px;
  border: 1px solid var(--claude-border);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  min-height: 520px;
}

.claude-frame.hidden { display: none; }

.claude-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--claude-bg);
  border-bottom: 1px solid var(--claude-border);
  flex-shrink: 0;
}

.claude-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.claude-asterisk {
  color: var(--claude-accent);
  font-size: 20px;
  line-height: 1;
  /* Use the Anthropic-style asterisk */
  font-style: normal;
}

.claude-brand-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--claude-text);
}

.claude-model-tag {
  font-size: 11px;
  color: var(--claude-muted);
  font-weight: 400;
  background: var(--claude-surface);
  border: 1px solid var(--claude-border);
  border-radius: 20px;
  padding: 2px 9px;
}

.claude-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 24px 18px;
}

.claude-body .demo-step {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.claude-body .demo-step.hidden { display: none; }

.claude-body .hl-block.revealed,
.claude-body .hl-block.dimmed {
  background: transparent;
}

.claude-body .hl-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.claude-body .hl-block.hl-hidden { display: none; }

.claude-body .hl-block .hl-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Greeting shown in question state */
.claude-greeting {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 20px;
}

.claude-greeting-asterisk {
  color: var(--claude-accent);
  font-size: 40px;
  line-height: 1;
}

.claude-greeting-text {
  font-size: 20px;
  font-weight: 400;
  color: var(--claude-text);
  letter-spacing: -0.01em;
}

/* Composer at bottom of question state */
.claude-composer-area {
  margin-top: auto;
}

.claude-composer-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--claude-surface);
  border: 1px solid var(--claude-border);
  border-radius: 14px;
  padding: 11px 14px;
}

.claude-composer-text {
  flex: 1;
  font-size: 14px;
  color: var(--claude-text);
  line-height: 1.5;
}

.dark-cursor {
  background: var(--claude-text);
}

.claude-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #c04a2f;
  color: #fff;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  font-size: 16px;
  line-height: 1;
}

.claude-send-btn:hover { background: #a83e26; }

/* Conversation turns */
.claude-turn {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.claude-turn-user {
  justify-content: flex-end;
}

.claude-user-bubble {
  background: var(--claude-surface);
  color: var(--claude-text);
  border-radius: 18px 18px 4px 18px;
  padding: 9px 15px;
  font-size: 14px;
  max-width: 82%;
  line-height: 1.5;
}

.claude-turn-assistant {
  align-items: flex-start;
}

.claude-avatar-wrap {
  flex-shrink: 0;
  padding-top: 2px;
}

.claude-avatar {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--claude-accent);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.claude-assistant-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

/* Follow-up exchange */
.claude-followup {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--claude-border);
}

.claude-followup-user {
  margin-bottom: 14px;
}

.mcp-synth-offer {
  color: var(--claude-accent) !important;
  font-style: italic;
}

/* Override MCP typing for dark bg */
.claude-frame .mcp-typing {
  padding: 4px 0;
}

.claude-frame .typing-dots span {
  background: var(--claude-muted);
}

/* ── Footer ───────────────────────────────────────────── */
.project-footer {
  padding: 40px 24px;
  text-align: center;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent-light); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 48px 16px 40px; }
  .demo-section { padding: 32px 12px; }

  .sf-panel { border-radius: 8px; }
  .claude-frame { min-height: 480px; }
  .claude-body { padding: 16px 14px 12px; }

  .slack-frame { width: 100%; min-height: 220px; }
  .slack-sidebar { display: none; }

  .step-label { display: none; }
  .step-connector { width: 8px; }

  .slack-modal { max-width: 100%; }
  .slack-modal-overlay { padding-left: 0; }

  .msg-body { padding-left: 0; }
  .bot-bubble { font-size: 13px; }

  .step-continue-wrap { padding-left: 0; }

  .channel-topic {
    font-size: 11px;
    padding: 4px 12px;
  }

  .gong-ratings {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ── Back button ────────────────────────────────────────── */
.back-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.back-btn:hover {
  background: rgba(14,165,233,0.15);
  color: var(--accent);
  border-color: var(--accent);
}
