/* How SnapVideo Works - Process Tabs Design */

.how-it-works {
  padding: var(--space-4xl) 0;
}

/* Main container with border */
.process-box {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  max-width: 1100px;
  margin: var(--space-3xl) auto 0;
}

/* Tab row */
.steps-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
}

.step-tab {
  flex: 1;
  padding: 20px 24px;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  background: #fff;
  border: none;
  outline: none;
}

.step-tab:not(:last-child) {
  border-right: 1px solid #e0e0e0;
}

.step-tab:hover {
  background: #f8f8f8;
}

.step-tab.active {
  background: #1a1a1a;
}

/* Active indicator bar */
.step-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.step-tab.active::after {
  background: #22c55e;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.step-tab.active .step-number {
  color: #22c55e;
}

.step-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

.step-tab.active .step-label {
  color: #fff;
}

/* Content area */
.content-area {
  display: flex;
  min-height: 340px;
}

.content-panel {
  display: none;
  width: 100%;
  animation: fadeInPanel 0.35s ease;
}

.content-panel.active {
  display: flex;
}

@keyframes fadeInPanel {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Left side - text */
.content-text {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #e0e0e0;
}

.content-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.content-description {
  color: #555;
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 28px;
}

.content-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  padding: 12px 20px;
  background: #f0f0f0;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: fit-content;
  border: 1px solid transparent;
}

.content-cta:hover {
  background: #e5e5e5;
  gap: 12px;
  border: 1px solid #22c55e;
}

.content-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

/* Right side - visual */
.content-visual {
  flex: 1.2;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  position: relative;
  overflow: hidden;
}

/* Visual mockups */
.visual-mockup {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.mockup-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mockup-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.mockup-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.mockup-body {
  padding: 20px;
}

.mockup-field {
  margin-bottom: 16px;
}

.mockup-field:last-child {
  margin-bottom: 0;
}

.mockup-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #333;
  background: #fafafa;
}

.mockup-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mockup-tag {
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: #555;
}

.mockup-tag.active {
  background: #dcfce7;
  color: #166534;
}

/* Production mockup */
.timeline-mockup {
  width: 100%;
  max-width: 380px;
}

.timeline-track {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.timeline-progress {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  border-radius: 4px;
}

.timeline-stages {
  display: flex;
  justify-content: space-between;
}

.timeline-stage {
  text-align: center;
}

.stage-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-dot.complete {
  background: #22c55e;
}

.stage-dot.current {
  background: #fff;
  border: 2px solid #22c55e;
}

.stage-dot svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.stage-label {
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
}

.stage-label.active {
  color: #1a1a1a;
}

/* Delivery mockup */
.delivery-mockup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

.delivery-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
}

.delivery-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.delivery-icon svg {
  width: 20px;
  height: 20px;
  stroke: #555;
}

.delivery-info {
  flex: 1;
}

.delivery-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.delivery-meta {
  font-size: 0.75rem;
  color: #888;
}

.delivery-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-check svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

/* Bottom features row */
.features-row {
  display: flex;
  border-top: 1px solid #e0e0e0;
}

.feature-item {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-item:not(:last-child) {
  border-right: 1px solid #e0e0e0;
}

.feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: #22c55e;
}

.feature-text {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .content-area {
    flex-direction: column;
  }

  .content-text {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 36px 28px;
  }

  .content-visual {
    padding: 36px 28px;
  }

  .features-row {
    flex-direction: column;
  }

  .feature-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
}

@media (max-width: 600px) {
  .steps-tabs {
    flex-direction: column;
  }

  .step-tab:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .step-tab.active::after {
    top: 0;
    bottom: auto;
    left: 0;
    right: auto;
    width: 3px;
    height: 100%;
  }

  .timeline-stages {
    flex-wrap: wrap;
    gap: 16px;
  }
}
