you may find output descriptors super interesting as well: https://github.com/bitcoin/bips/blob/master/bip-0380.mediawiki#motivation. I find them much easier to understand that xpub/ypub/zpub.
My pleb description of xpub, ypub, zpub: They are all the same key, just with different headers to help wallets understand what to do with them.