Cloud regimes as phase transitions