Mix the flours, sugar and salt into a medium bowl, then transfer into the food processor.
Gradually add the coconut oil and pulse to incorporate until the mixture looks like coarse sand.
Transfer back into the bowl and gradually add the water, mixing with a spatula until you obtain a ball.
Cover the dough into plastic foil and refrigerate for 30 mins.
Drain the dates and transfer them into the blender, together with the coconut milk and salt.
Process to obtain a smooth, creamy liquid.
Transfer into a bowl, cover with plastic foil and refrigerate.
Remove the dough from the refrigerator and place it on a lightly floured surface.
Roll it into a 12 inch circle and transfer it into a pie plate (I use a 9 inch one).
Preheat the oven to 175C/350F.
Trim and arrange the dough as you prefer, then chill for 15 mins.
Cut the apples into halves, remove the core and seeds, and use a very sharp knife to cut each half into thin slices, preserving the shape.
Spread the apple sauce into an even layer on the pie bottom and top with cinnamon.
Arrange the sliced apple halves on top, drizzle with lemon juice and top with coconut sugar.
Bake for 20 mins, then drizzle half of the caramel sauce on top of the apples and bake for 10 more minutes.
Remove from the oven and let cool before serving.
Save the rest of the caramel sauce for later use or drizzle more on top of each serving.