In 40 minutes driving north from Mountain View I think you'll be in SF at best.
You might make it to North Bay/Marin - which is true that it's rural, but it's not because it's a secret or far from humanity or anything. It just has the fiercest NIMBYs on the planet who are fine with all their services being provided by day laborers with 2 hour commutes.