$ \left( \ddot r - r\dot\varphi^2 \right) \hat{\mathbf r} + \left( r\ddot\varphi + 2\dot r \dot\varphi \right) \hat{\boldsymbol{\varphi}} \ $
I'm not convinced about the term $- r\dot\varphi^2 \hat{\mathbf r} $, in particular about its orientation. On textbook it is called the centripetal acceleration. But, from the definition, the centripetal acceleration is orthogonal to the trajectory and this does not mean to be parallel to $\hat{\mathbf r} $. I'll make an example.
The same trajectory is described in polar coordinates (A) and using the osculating circle (B). Now the centripetal acceleration should be oriented as the radius of the osculating circle $R$, which is obviously not parallel to the radial unit vector $\hat{\mathbf r} $. So why is the centripetal term parallel to $\hat{\mathbf r} $ in the formula above? Am I missing something?