I am trying to understand where are the smart contracts actually stored. On most of the websites where I managed to get some info, it says that smart contracts are stored on the blockchain, but they also do not go in depth on how it is actually stored. On the other side, all the technical information I found with diagrams shows complete opposite - it usually shows that only the root of the Account Trie is stored in the World State Trie and then its root is stored on the blockchain. That means that only (so to say) the pointer to the smart contract is stored on the blockchain, not the actual contract itself. Is that correct?
That also leads me to question, how are the tries actually stored? Just independently as some files on every node?