Three very striking word clouds from the ‘gold standard’ British Election Study which asked people who were voted Remain, Leave and undecided an open-ended question about what mattered most to them when deciding how to vote.
Remain voters: economy
Leave voters: immigration
Undecided voters: torn between economy and immigration
For more on how the referendum result played out, see the detailed BBC analysis based on ward-by-ward referendum voting figures.