that is what i am trying to get my head around. if you were to split the cycle into two parts, the low pressure and the high pressure, like you said, most of the heat comes from the fact that the refrigerant is changing phase and hence the heat generation in the high pressure side.
To complete...