What happens with voltage phase on the resistor and capacitor in AC circuit?
Memory mnemonic: ELI the ICE man.

L = Inductor, C = Capacitor.  E = voltage, I = current.

In ELI, E comes before I.  In a circuit with an ideal inductor, I always lags \$V_S\$ by \$90^{\circ}\$.

ICE, I comes before E.  In a capacitor, I always leads \$V_S\$ by \$90^{\circ}\$.

With a resistor, I is in phase with \$V_S\$.

For a series RC circuit, you have a combination of the resistor and capacitor.

I leads \$V_C\$ by \$90^{\circ}\$ and I is in phase with \$V_R\$.  Note change in subscripts.

I will lead \$V_S\$ by phase angle \$\theta\$, some where between \$0^{\circ}\$and \$90^{\circ}\$.  In your case: \$\theta = 25.7^{\circ}\$.

\$V_C\$ first, \$V_S\$ second (\$64.3^{\circ}\$) (largest) and \$V_R\$ last (in phase with current \$90^{\circ}\$ behind).

This is NOT what you have.  You have an issue with polarities.  Would you believe you have to pull invert your \$V_C\$ (not sure how you do it) and reverse resistor polarity.

Your source (green) is the largest. \$V_R\$ will be larger (blue) than \$V_C\$ (red), but sequence is wrong.  Blue waveform is closet to green, so that is correct.