/* Mobile App — 08 Process */

@keyframes cw-mobile-app-proc-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cw-mobile-app-process {
  background: #131218;
  color: #eae7e1;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  --cw-ma-edge: clamp(12px, 1.5vw, 24px);
  --cw-ma-pad-x: clamp(12px, 1.25vw, 18px);
}

.cw-mobile-app-process__inner {
  box-sizing: border-box;
  width: min(1580px, calc(100vw - 2 * var(--cw-ma-edge)));
  max-width: calc(100vw - 2 * var(--cw-ma-edge));
  margin-inline: auto;
  padding: clamp(72px, 9vw, 120px) var(--cw-ma-pad-x);
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 48px);
}

.cw-mobile-app-process__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.cw-mobile-app-process__title {
  margin: 0;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #f3efe7;
  max-width: 640px;
  text-wrap: balance;
}

.cw-mobile-app-process__toggle {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(234, 231, 225, 0.2);
  background: transparent;
  color: #eae7e1;
  font: 500 13px 'Inter', system-ui, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cw-mobile-app-process__toggle:hover {
  border-color: #d4f53c;
}

.cw-mobile-app-process__timeline {
  position: relative;
}

.cw-mobile-app-process__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 21px;
  height: 2px;
  background: rgba(234, 231, 225, 0.1);
  pointer-events: none;
}

.cw-mobile-app-process__fill {
  position: absolute;
  left: 0;
  top: 21px;
  height: 2px;
  width: 0;
  background: #d4f53c;
  transition: width 0.6s cubic-bezier(0.3, 0.7, 0.2, 1);
  pointer-events: none;
}

.cw-mobile-app-process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.cw-mobile-app-process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: rgba(234, 231, 225, 0.45);
  transition: color 0.3s ease;
}

.cw-mobile-app-process__step.is-done {
  color: #f3efe7;
}

.cw-mobile-app-process__step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #131218;
  border: 2px solid rgba(234, 231, 225, 0.2);
  color: rgba(234, 231, 225, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  box-sizing: border-box;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.cw-mobile-app-process__step.is-active .cw-mobile-app-process__step-num {
  background: #d4f53c;
  border-color: #d4f53c;
  color: #141210;
}

.cw-mobile-app-process__step.is-done:not(.is-active) .cw-mobile-app-process__step-num {
  border-color: #d4f53c;
  color: #d4f53c;
}

.cw-mobile-app-process__step-label {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  padding-right: 8px;
}

.cw-mobile-app-process__detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px;
  align-items: stretch;
}

.cw-mobile-app-process__card {
  border: 1px solid rgba(234, 231, 225, 0.1);
  border-radius: 22px;
  background: #1a1920;
  padding: clamp(24px, 3vw, 40px);
}

.cw-mobile-app-process__card-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cw-mobile-app-process__card-inner--fade {
  animation: cw-mobile-app-proc-fade 0.45s ease-out both;
}

.cw-mobile-app-process__card-num {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 8vw, 72px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: #d4f53c;
}

.cw-mobile-app-process__card-title {
  margin: 0;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  color: #f3efe7;
}

.cw-mobile-app-process__card-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(234, 231, 225, 0.78);
}

.cw-mobile-app-process__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
}

.cw-mobile-app-process__quote {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: #eae7e1;
}

.cw-mobile-app-process__nav {
  display: flex;
  gap: 10px;
}

.cw-mobile-app-process__nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cw-mobile-app-process__nav-btn--prev {
  border: 1px solid rgba(234, 231, 225, 0.2);
  background: transparent;
  color: #eae7e1;
}

.cw-mobile-app-process__nav-btn--prev:hover {
  border-color: #d4f53c;
}

.cw-mobile-app-process__nav-btn--next {
  border: 0;
  background: #d4f53c;
  color: #141210;
}

@media (max-width: 900px) {
  .cw-mobile-app-process__steps {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .cw-mobile-app-process__track,
  .cw-mobile-app-process__fill {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-mobile-app-process__fill,
  .cw-mobile-app-process__step-num,
  .cw-mobile-app-process__card-inner--fade {
    transition: none;
    animation: none;
  }
}
