The three reasons Hillary lost.
1. She's a woman.
2. Her deplorables comment and her arrogance and disdain for a certain portion of the USA. No matter what anyone thinks, that turned a massive portion of voters against her, and especially how Trump used it against her.
3. Trump. The way he used the media and attacked his opponents was genius. It was unfair, unsightly, nasty, crude, disgusting, low, revolting, unethical, often unfair, disingenuous, inarticulate, low and below the belt and dirty but it worked and he played the media, the country and the voters like a fiddle. I hate the cnut but he read a situation and made the most of it and won. He really shouldn't have at all, especially considering much of his actions but it just shows how desperate much of the USA actually is. He showed how much the Dems and liberals have upset the rest of the USA and how alone and frightened they are and feel and they thought he was speaking directly to them. He connected with them when Hillary just turned them off or pushed them away. Of course he's a conman and is full of shit, but that didn't matter when it came to casing votes.