How to add flat surface in slope?

As you can see, the slope is a constant gradient. How is it possible to add flat surface onto the slope?

Would greatly appreciate any advise.

Thank you (10.9 KB)

You didn’t internalize your curves:

the boolean toggle lets you decide if you start with a flat or ramped step: (18.1 KB) (7.8 KB)