My company is headquartered in Cupertino, CA and I live and work in Dallas, TX. The obvious pros are I don't need to commute or really drive at all, I can work from bed (probably doesn't matter to most, but I've got 10 screws in my spine from past surgeries and it matters to me), and I can live in a 3,000 square foot 4-story townhouse within spitting distance of downtown for less than my sisters in California pay for…
If your health requires you to work from bed, why do you live in a 4-storey house?
I've got neck problems and a similar situation. I can sit at a normal desk bolt-upright for a few hours, but not a whole day. For long coding stretches I don't lie down but rather use a weird custom chair I built myself that has my back at about a 45-degree angle to the ground. My leg-torso angle is still 90 degrees, but (important part) the angle between my torso and jaw is much much less than 90 degrees. It requires a somewhat elaborate monitor arrangement (I like huge 4k screens) based on a repurposed adjustable-height standing desk.
I can't imagine this setup working in one of those now-ubiquitous "open office plan" places.