Raise the back of your tongue to touch the soft palate. Add vocal cord vibration, then release.

Americans pronounce grammatical as gruh-MA-tuh-kuhl (/ɡrəˈmæɾəkəl/). In "grammatical", the "t" between vowels sounds like a quick "d" — the tongue briefly taps the ridge behind the upper teeth. This is called the Flap T, the kind of sound shift that makes everyday speech feel effortless. It comes out as gruh·MA·tuh·kuhl. Stress falls on the second syllable — keep everything else short and quick. You'll hear it in sentences like "He checked the paper for grammatical errors before submission".
Record yourself saying "grammatical" and play it back. The mic stays on your device — nothing's uploaded.
4 syllables, 10 sounds. Tap a syllable to jump to its row, then explore each sound's mouth shape and how it's made.
Raise the back of your tongue to touch the soft palate. Add vocal cord vibration, then release.

Curl or bunch your tongue without letting the tip touch the roof of your mouth. Brace the sides of your tongue against your upper back teeth, and round your lips slightly.
Relax your lips, jaw, and tongue completely. Drop your jaw slightly and keep the tongue neutral.
Raise the back of your tongue to touch the soft palate (velum). Stop the air, then release.

Relax your lips, jaw, and tongue completely. Drop your jaw slightly and keep the tongue neutral.
Keep the tongue tip down and pull the back of the tongue up toward the throat. The 'dark' sound comes from the back.

The textbook way isn't wrong — it's just not how anyone actually says it.
In "grammatical", the "t" between vowels sounds like a quick "d" — the tongue briefly taps the ridge behind the upper teeth. /t/ or /d/ becomes a quick tap [ɾ] — sounds like a soft D. The tongue briefly taps the ridge behind the upper teeth.
The L in "grammatical" is a dark L — the back of the tongue rises toward the soft palate, adding a small "uh" quality before the L. Dark L adds a small schwa-like "uh" before the L. The back of the tongue lifts toward the soft palate.
Stress falls on the second syllable, not the others. Stretch MA — keep everything else short and quick.
Don't pronounce the first syllable too fully. The unstressed syllable reduces to a schwa — the lazy "uh" sound — in casual speech.