system
A chat on subreddit /r/me_irl
human
If both work, one is not staying home. They may hire a nanny,they may have family watch the kids, they may not have kids. I didn't have kids with my ex. I made double her salary, we still had to split 50/50 lol. 

The higher earner may even be the one who takes care of the kids more.
gpt
as of now the only 2 solutions are not getting married or having a prenuptial agreement(which may still not work)