The cost of Invisalign includes attachments and sometimes case refinements and even lost aligners depending on the digital treatment plan submitted with Invisalign.
As far as the initial records (X-rays, models, etc.) and the retainers, the orthodontist might choose to include these in the overall fee or have them as added fees.
For a ball park figure for Cupertino, I'd expect to pay anywhere between $5500-$8000 for all of those things together depending on where you go. You might also find prices higher and lower than that, but that is my best guess after going to school in that area of the country.