Jaruzel, I can't reply directly to you, but in fact a majority of all party supporters in Scotland voted Remain, so an analysis that focuses entirely on SNP strategy (whether true or not - I have issues with it) isn't going to explain it.
The most Leave-heavy party was the Conservative and Unionist party, but I believe they still voted Remain.