wtf, the Tories beat Labour in Scotland???
Right, on this the referendum changed Scottish politics enormously. You have no idea how much the country was split in the lead up to the referendum and the actions of all the parties in the aftermath haven't exactly helped to heal the divisions. We're not at Northern Ireland levels of bampottery just yet however there has definitely been a shift towards framing politics in terms of Nationalist vs Unionist. This is partly what's hurt Labour - I've posted before on how it's Labour's core vote that has shifted the most towards the SNP, that the 4 local authority areas that returned a Yes vote in 2014 (Glasgow, East Dunbartonshire, North Lanarkshire and Dundee) are all post-industrial Labour heartlands, that those same areas saw the biggest swings to the SNP in 2011, 2015 and 2016 whereas the SNP's traditional electoral heartlands in the North East were interestingly enough amongst the strongest No voters (and have shifted back towards the Conservatives in 2016.) The SNP v Labour battle is pretty much a case of Nationalist Labour vs Unionist Labour, and it's a battle where the nationalists are running riot.
Scottish politics is still dominated by the constitutional question. Will there be a 2nd referendum, or will the SNP hold to their "once in a generation" promise? What about if Britain (read: England) votes out but Scotland votes in in June? etc. etc. Frankly, although I voted Yes, I don't want a referendum right now, in my opinion the question was decisively answered: Scotland said No, move on and govern the country please. In that context, you've got a Labour leader saying that she would be happy for her own MSPs to campaign for independence in a hypothetical Indy Ref 2, who flip-flopped on whether she herself might be open to supporting independence in the future and has stated she might back independence to secure Scotland's place in the EU. Contrast that with Ruth Davidson, the Conservative leader who was a central, popular figure in the No campaign and who has unambiguously opposed any plans for a 2nd referendum. It's natural that Labour lost votes to the Conservatives in a country that's still divided down Unionist and Nationalist lines to the extent we are.
There's also the fact that Labour and the SNP share similar ideological ground (in theory), so if I was to vote on who I felt would provide the most robust opposition to the SNP then I would've gone Tory. The Scottish Tories are a lot more centrist than the UK party and their leadership are a lot easier to relate to than the UK leadership. Ruth Davidsom is middle class, Edinburgh born, likes women and is from a Church of Scotland background - so it's actually quite easy for me to identify with her. Cameron et al seem to inhabit a different planet at times. There's also a chronic talent gap in the Labour party, it's quite telling that none of their heavyweights who were involved in the referendum campaign (Brown, Darling, Alexander and Murphy) sit in Edinburgh.
Gordon Brown's speech the day before the referendum was magnificent and it's the best political speech I've heard in my lifetime. But none of Scottish Labour seem to have paid any attention to the key messages delivered by Brown in that speech; they've got an identity crisis.