/**
 * Mymeet.ai Sales Suite - Non-Critical CSS
 * Loaded asynchronously after page render
 */

/* Sales Process Section */
.sales-process {
  padding: 80px 24px;
  background: var(--color-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Process Flow Timeline - Horizontal Linear Grid */
.process-flow {
  display: flex;
  flex-direction: column;
  /* Default limit: mobile stack */
  gap: 0;
  max-width: 1200px;
  /* Wider for grid */
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Base styles for cards (Process Stage) - Mobile first */
.process-stage {
  display: flex;
  flex-direction: column;
  /* Stack number and content on mobile? Or row? Let's keep flex-row for mobile like before? User liked the previous vertical stack */
  /* Actually, let's make it flexible */
  gap: 24px;
  padding: 0 0 40px 0;
  position: relative;
}

/* Stage Number Circle */
.stage-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  /* Active by default */
  border: 2px solid var(--color-primary);
  /* Active border */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  /* Active text color */
  flex-shrink: 0;
  z-index: 10;
  /* Ensure on top of content */
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  /* Active shadow */
}

/* Optional: Different style for inactive? User asked for 3-4-5 to be colored same as 1-2. So all uniform. */
/* We can keep process-stage-active selector but it's redundant if default is active. */

.stage-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.stage-cta {
  margin-top: auto;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.process-stage:hover .stage-content {
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.process-stage-active .stage-content {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, white 100%);
}

.stage-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: block;
}

.stage-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.stage-content p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.stage-content ul {
  list-style: none;
  margin-bottom: 20px;
}

.stage-content li {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding: 4px 0 4px 16px;
  position: relative;
}

.stage-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* Desktop Grid Layout (>1024px) */
@media (min-width: 1024px) {
  .process-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns */
    gap: 40px;
    /* Horizontal and Vertical Gap */
    padding: 0 20px;
  }

  /* Reset Mobile Stack styles */
  .process-flow::before {
    content: none;
  }

  /* Remove main vertical line */
  .process-stage {
    padding: 0;
    gap: 0;
    display: block;
  }

  /* Block layout for card+number */

  /* Arrange items */
  /* Row 1: 1, 2, 3 */
  /* Row 2: 4, 5 centered or just grid flow? layout 4 and 5 in col 1 and 2? */
  /* User said "3 or 4 blocks in first line". 3 fits well. 4 and 5 will naturally wrap to Row 2, cols 1 and 2. */

  /* Number Positioning for Grid */
  .stage-number {
    position: absolute;
    top: -28px;
    left: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .stage-content {
    height: 100%;
    /* Full height for alignment */
    padding-top: 40px;
    /* Space for number */
  }

  /* Horizontal Connectors (Lines between cards in same row) */
  /* We use pseudo-elements on the CARD to connect to the Right */

  /* Connectors: Row 1: 1→2, 2→3. Row 2: 4→5, 5→6. */
  .process-stage:nth-child(1)::after,
  .process-stage:nth-child(2)::after,
  .process-stage:nth-child(4)::after,
  .process-stage:nth-child(5)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    /* Bridge the 40px gap */
    width: 60px;
    /* Gap + overlap */
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, transparent 100%);
    /* Fading line or solid? User liked lines. */
    z-index: 1;
    transform: translateY(-50%);
  }

  .process-stage:nth-child(1)::after,
  .process-stage:nth-child(2)::after,
  .process-stage:nth-child(4)::after,
  .process-stage:nth-child(5)::after {
    background: var(--color-border);
  }

  .process-stage:nth-child(1)::before,
  .process-stage:nth-child(2)::before,
  .process-stage:nth-child(4)::before,
  .process-stage:nth-child(5)::before {
    content: '→';
    position: absolute;
    top: 50%;
    right: -30px;
    font-size: 24px;
    color: var(--color-primary);
    z-index: 2;
    transform: translateY(-50%);
    background: white;
    /* Hide line behind arrow */
    padding: 0 5px;
  }

  .process-stage:nth-child(1)::after,
  .process-stage:nth-child(2)::after,
  .process-stage:nth-child(4)::after,
  .process-stage:nth-child(5)::after {
    width: 50px;
    right: -45px;
    background: var(--color-border);
  }

}

/* Cycle arrow */
.cycle-arrow {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
  font-size: 0.9rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile responsive (Vertical Stack) */
@media (max-width: 1023px) {
  .process-flow {
    padding-left: 0;
    max-width: 600px;
  }

  .process-flow::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-border) 100%);
  }

  .process-stage {
    flex-direction: row;
    /* Number left, content right */
    gap: 20px;
  }

  .stage-number {
    position: relative;
    top: 0;
    left: 0;
    margin: 0;
  }

  .stage-content {
    /* Remove desktop specific padding */
    padding-top: 24px;
  }
}

/* Clean Button styles within stages */
.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* AMA CRM Hub */
.crm-hub-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.crm-hub h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.crm-hub>p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.crm-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.crm-features span {
  background: white;
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Product Card - Footer/Related Items (Unchanged) */
.product-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.3);
}

.product-card-active {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, white 100%);
}

.product-icon {
  width: 44px;
  height: 44px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.product-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.product-card .subtitle {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.product-card li {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.product-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 500;
}

/* Value Section (Unchanged) */
.value-section {
  padding: 80px 24px;
  background: var(--color-bg-alt);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .value-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.value-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.value-metric {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Modal (Unchanged) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 400px;
  width: 90%;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: var(--color-bg-alt);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--color-border);
}

.modal-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.modal h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--color-bg-alt);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: white;
}

.form-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 14px;
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 16px 0;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  color: var(--color-secondary);
}

.form-success h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 6px;
}

.form-success p {
  margin-bottom: 0;
}

/* Footer (Unchanged) */
footer {
  background: var(--color-text);
  color: white;
  padding: 56px 24px 28px;
}

/* ... footer styles same as before ... */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  color: white;
  margin-bottom: 14px;
}

.footer-brand .logo-icon {
  background: rgba(255, 255, 255, 0.2);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 5px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

*:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}