/* TargetResume - How It Works Screen (Onboarding Step 2) */

.how-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--gray-50);
  overflow: hidden;
}

/* Header with logo */
.how-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  background: white;
}

.how-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.how-logo-img {
  width: 32px;
  height: 32px;
}

.how-logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
}

/* Main content */
.how-main {
  flex: 1;
  padding: 40px 24px 0;
  overflow-y: auto;
}

.how-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 40px;
  color: var(--gray-900);
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.how-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.how-step-text {
  font-size: 17px;
  line-height: 1.5;
  color: var(--gray-700);
  padding-top: 10px;
}

/* Footer button */
.how-footer {
  padding: 16px 16px calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.how-continue-btn {
  width: 100%;
  height: 56px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.how-continue-btn:active {
  transform: scale(0.98);
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 640px) {
  .how-main {
    padding: 32px 20px 0;
  }
  
  .how-title {
    font-size: 28px;
    margin-bottom: 32px;
  }
  
  .how-steps {
    gap: 28px;
  }
  
  .how-step-number {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .how-step-text {
    font-size: 16px;
    padding-top: 8px;
  }
}

/* Animations */
.how-header {
  animation: fadeInDown 0.4s ease-out;
}

.how-title {
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.how-step {
  animation: fadeInUp 0.5s ease-out backwards;
}

.how-step:nth-child(1) {
  animation-delay: 0.2s;
}

.how-step:nth-child(2) {
  animation-delay: 0.3s;
}

.how-step:nth-child(3) {
  animation-delay: 0.4s;
}

.how-footer {
  animation: fadeInUp 0.5s ease-out 0.5s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}