Something somewhat similar happened to me once: pedal to the floor as I pushed on it, no braking action whatsoever. Truly scary indeed. Luckily I was travelling slowly approaching a small village and there was no traffic so I was able to reduce speed gradually with engine braking and in the end with the handbrake, but I’d rather not live through something like that ever again.
It was the master cylinder which failed all of a sudden. (In fact a few hours later it was working again, at least superficially, but I couldn’t trust it and had it replaced). So altogether an easy diagnosis and simple repair (although this was on a Jaguar Mk2, where accessibility is an issue, as everything is shoehorned into a very tight space).
There is nothing mysterious or magical about brakes: it is like plumbing, every single element and connection must be inspected and tested for leaks, and if there are no leaks, it works (assuming the brake fluid is not contaminated with water). Good quality parts are essential for safety and security/reliability. As a self tought, and probably mediocre, mechanic, I have no qualms about fixing brakes. I reconditioned brake cylinders/callipers on my first ’oldie’, a 1968 Peugeot 204 roadster, changed the disks and the brake booster, and drove the car for nearly ten years without any braking issue. I work on the brakes on my tractor (no disks there, old fashioned heavy duty drums with mechanical action, no hydraulics).
The only tricky aspect is the part which regulates the pressure between front and rear wheels. If it doesn’t work as intended, keeping the car straight when braking hard, especially on a slippery surface, is sometimes difficult.
But as the experts among us underlined, there are some issues/frailties/breaks that do not reveal themselves obviously, unless you take everything apart or suffer an incident like alpinaltd or me. Having had your brakes worked on by an expert or having done the work yourself isn’t going to change anything to it. Let’s keep our collective fingers crossed that it doesn’t happen in a dire situation…