That aside, broadly, Hillary lost because she:
- Represented the establishment
- Was uninspiring
- Was followed by the aura of 'scandal' (Benghazi and the email server are the two I've heard the most)
I think people were simply tired of establishment politicians who they felt never listened to them and never worked for their interests anyways - and just wanted someone radically different. It also helped that Trump's message "Make America Great Again" is trivially inspiring and broadly resonates. People feel that there's something wrong - that the social contract is gone, and they want to be part of a future where that greatness and their part in it exists again.