/* public/landing-demos.css */

.interactive-demo-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 10;
}

.demo-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.demo-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.demo-header p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* Demo 1: Dashboard UI */
.demo-dashboard-ui {
  background-color: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 48px rgba(14, 26, 20, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  position: relative;
}

.demo-dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 16px;
}

.demo-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: flex-start;
}

.demo-category-column {
  background-color: var(--cream);
  border-radius: 16px;
  padding: 16px;
  min-height: 300px;
  border: 1px solid var(--hairline);
  transition: border-color 0.3s;
}

.demo-category-column.highlight-drop {
  border-color: var(--jade);
  background-color: rgba(31, 122, 93, 0.03);
}

.demo-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--ink);
}

.demo-category-count {
  background-color: var(--paper);
  border: 1px solid var(--hairline-strong);
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
}

.demo-insight-card {
  background-color: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(14, 26, 20, 0.02);
  transform: translateY(0);
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.demo-insight-card:hover {
  border-color: var(--jade);
  box-shadow: 0 4px 12px rgba(31, 122, 93, 0.06);
}

.demo-insight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.demo-badge-urgency {
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.demo-badge-high { color: var(--urgency-red); border: 1px solid rgba(176, 67, 50, 0.2); background: rgba(176, 67, 50, 0.05); }
.demo-badge-medium { color: var(--urgency-amber); border: 1px solid rgba(176, 131, 50, 0.2); background: rgba(176, 131, 50, 0.05); }
.demo-badge-low { color: var(--ink-mute); border: 1px solid var(--hairline-strong); background: var(--cream); }

.demo-insight-subject {
  font-family: 'Geist', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 4px;
}

.demo-insight-sender {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.demo-expanded-draft {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--hairline-strong);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  display: none;
}

.demo-insight-card.expanded .demo-expanded-draft {
  display: block;
}

/* Animations */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-slide-in {
  animation: slideInFromTop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.demo-toast {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background-color: var(--ink);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: 'Geist Mono', monospace;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.demo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .demo-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   Demo 2: Simulated AI Setup Chatbot
   ================================================================ */

.demo-chat-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: flex-start;
}

.demo-chat-panel {
  background-color: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 48px rgba(14, 26, 20, 0.05);
  display: flex;
  flex-direction: column;
}

.demo-chat-history {
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
  padding-right: 8px;
  scroll-behavior: smooth;
}

/* Chat Bubbles */
.demo-bubble {
  max-width: 82%;
  padding: 14px 18px;
  font-size: 0.93rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.demo-bubble--assistant {
  align-self: flex-start;
  background-color: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 20px 20px 20px 4px;
  color: var(--ink);
}

.demo-bubble--user {
  align-self: flex-end;
  background-color: var(--paper);
  border: 1px solid var(--jade);
  border-radius: 20px 20px 4px 20px;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(31, 122, 93, 0.03);
}

.demo-bubble-label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--ink-mute);
}

.demo-bubble--user .demo-bubble-label {
  text-align: right;
  color: var(--jade);
}

@keyframes bubbleFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing Indicator */
.demo-typing-indicator {
  align-self: flex-start;
  background-color: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 20px 20px 20px 4px;
  padding: 12px 18px;
  margin-bottom: 8px;
}

.demo-loading-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.demo-loading-dots span {
  width: 6px;
  height: 6px;
  background-color: var(--jade);
  border-radius: 50%;
  display: inline-block;
  animation: demoBounce 1.4s infinite ease-in-out both;
}

.demo-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.demo-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes demoBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Quick Reply Buttons */
.demo-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-quick-reply-btn {
  background-color: var(--cream);
  border: 1px solid var(--jade);
  color: var(--jade);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Geist', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.demo-quick-reply-btn:hover {
  background-color: var(--jade);
  color: var(--cream);
  transform: scale(1.03);
}

/* Chat Input */
.demo-chat-input-wrapper {
  display: flex;
  gap: 10px;
  background-color: var(--cream);
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  padding: 6px 10px;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-chat-input-wrapper:focus-within {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(31, 122, 93, 0.06);
}

.demo-chat-input-field {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Geist', sans-serif;
  font-size: 0.93rem;
  color: var(--ink);
  padding: 10px 4px;
}

.demo-chat-send-btn {
  background-color: var(--jade);
  color: var(--cream);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
  flex-shrink: 0;
}

.demo-chat-send-btn:hover {
  background-color: var(--jade-glow);
}

/* Category Builder Sidebar */
.demo-category-builder {
  background-color: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(14, 26, 20, 0.03);
  position: sticky;
  top: 100px;
}

.demo-chips-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.demo-chip {
  background-color: var(--cream);
  border: 1px solid var(--jade);
  color: var(--jade);
  padding: 10px 16px;
  border-radius: 12px;
  font-family: 'Geist', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-12px) scale(0.95);
  animation: chipAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-chip::before {
  content: '✓';
  font-size: 0.7rem;
  background-color: var(--jade);
  color: var(--cream);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes chipAppear {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.demo-chips-placeholder {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-style: italic;
  padding: 12px 0;
}

/* Mobile Layout */
@media (max-width: 768px) {
  .demo-chat-layout {
    grid-template-columns: 1fr;
  }
  .demo-category-builder {
    position: static;
  }
  .demo-chat-history {
    min-height: 260px;
    max-height: 340px;
  }
  .demo-bubble {
    max-width: 92%;
  }
}

/* Disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-slide-in,
  .demo-bubble,
  .demo-chip {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .demo-toast {
    transition: none;
  }
  .demo-loading-dots span {
    animation: none;
    transform: scale(1);
  }
}

/* ================================================================
   Mock Dashboard Styles
   ================================================================ */

.mock-dashboard-window {
  background-color: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(14, 26, 20, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mock-dashboard-header {
  background-color: var(--cream);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.mock-window-dots {
  display: flex;
  gap: 8px;
}

.mock-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.7;
}

.mock-window-dots span:nth-child(1) { background-color: #ff5f56; }
.mock-window-dots span:nth-child(2) { background-color: #ffbd2e; }
.mock-window-dots span:nth-child(3) { background-color: #27c93f; }

.mock-window-title {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-mute);
  text-align: center;
}

.mock-dashboard-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 520px;
}

/* Mock Sidebar */
.mock-dashboard-sidebar {
  background-color: var(--paper);
  border-right: 1px solid var(--hairline-strong);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

.mock-sidebar-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-sidebar-title {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-sidebar-card {
  background-color: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
}

.mock-sidebar-card.italic {
  font-style: italic;
}

.mock-sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}

.mock-sidebar-nav-item:hover,
.mock-sidebar-nav-item.active {
  background-color: var(--cream-deep);
  color: var(--ink);
}

.mock-nav-badge {
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
  background-color: var(--paper);
  color: var(--ink-soft);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--hairline);
}

/* Mock Main content */
.mock-dashboard-main {
  flex: 1;
  padding: 32px;
  box-sizing: border-box;
  background-color: var(--cream-deep);
}

.mock-accent-word {
  font-style: italic;
  color: var(--jade);
  position: relative;
}

.mock-category-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-category-section {
  background-color: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(14, 26, 20, 0.01);
}

.mock-category-header {
  padding: 14px 20px;
  background-color: var(--paper);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-category-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-chevron {
  width: 14px;
  height: 14px;
  color: var(--ink-mute);
  transform: rotate(180deg);
}

.mock-category-name {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

.mock-category-count {
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
  background-color: var(--cream);
  color: var(--ink-soft);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--hairline);
}

.mock-category-content {
  padding: 20px;
}

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

.mock-insight-card {
  background-color: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s var(--ease-out-expo), border-color 0.2s var(--ease-out-expo);
}

.mock-insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 26, 20, 0.04);
  border-color: var(--hairline-strong);
}

.mock-insight-card-header {
  margin-bottom: 8px;
}

.mock-badge-urgency {
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.mock-badge-high {
  background-color: rgba(176, 67, 50, 0.08);
  color: var(--urgency-red);
}

.mock-badge-medium {
  background-color: rgba(176, 131, 50, 0.08);
  color: #b45309;
}

.mock-badge-low {
  background-color: var(--cream-deep);
  color: var(--ink-mute);
  border: 1px solid var(--hairline);
}

.mock-insight-subject {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.mock-insight-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  color: var(--ink-mute);
  margin-bottom: 12px;
}

.mock-insight-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px dashed var(--hairline-strong);
  padding-top: 12px;
}

.mock-insight-section {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.mock-section-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.mock-section-content h5 {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1px 0;
  font-weight: 600;
}

.mock-section-content p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}

.mock-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--jade);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.mock-pulse-dot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--jade);
  animation: mockPulse 2s infinite ease-in-out;
  opacity: 0.8;
  top: 0;
  left: 0;
}

@keyframes mockPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

/* Responsive Rules for Mock Dashboard */
@media (max-width: 992px) {
  .mock-dashboard-body {
    grid-template-columns: 1fr;
  }
  .mock-dashboard-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--hairline-strong);
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .mock-dashboard-sidebar {
    display: none; /* Hide simulated sidebar entirely on mobile to save vertical space */
  }
  .mock-dashboard-main {
    padding: 20px;
  }
  .mock-category-content {
    padding: 12px;
  }
}

/* ================================================================
   Continuous Demos Flow Layout
   ================================================================ */

.continuous-demos-flow-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 6rem;
  background-color: var(--cream);
}

.continuous-river-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.demo-flow-section {
  position: relative;
  z-index: 2; /* Sit above the background SVG */
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Elegant paintbrush horizontal SVG divider styles */
.paintbrush-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 2rem auto;
  position: relative;
  z-index: 10;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

.paintbrush-divider svg {
  width: 100%;
  height: auto;
  max-height: 40px;
}



