| Summary of Cash, Cash Equivalents and Investments |
A summary of the Company's cash equivalents and investments as of September 30, 2021 is as follows: | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cash Equivalents: | | Amortized Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Fair Value | | Money market funds | | $ | 176,144 | | | $ | — | | | $ | — | | | $ | 176,144 | | | Certificates of deposit | | 25,076 | | | — | | | — | | | 25,076 | | | | | | | | | | | | | $ | 201,220 | | | $ | — | | | $ | — | | | $ | 201,220 | | | Investments: | | Amortized Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Fair Value | | Corporate bonds and commercial paper | | $ | 36,472 | | | $ | 3 | | | $ | (9) | | | $ | 36,466 | | | Certificates of deposit | | 12,161 | | | — | | | — | | | 12,161 | | | U.S. government securities | | 51,185 | | | 3 | | | (10) | | | 51,178 | | | | $ | 99,818 | | | $ | 6 | | | $ | (19) | | | $ | 99,805 | |
A summary of the Company's cash equivalents and investments as of December 31, 2020 is as follows: | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cash Equivalents: | | Amortized Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Fair Value | | Money market funds | | $ | 188,469 | | | $ | — | | | $ | — | | | $ | 188,469 | | | Certificates of deposit | | 25,028 | | | — | | | — | | | 25,028 | | | Corporate bonds and commercial paper | | 997 | | | — | | | (1) | | | 996 | | | U.S. government securities | | 19,999 | | | — | | | — | | | 19,999 | | | | $ | 234,493 | | | $ | — | | | $ | (1) | | | $ | 234,492 | | | Investments: | | Amortized Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Fair Value | | Corporate bonds and commercial paper | | $ | 31,233 | | | $ | 15 | | | $ | (9) | | | $ | 31,239 | | | Certificates of deposit | | 10,007 | | | — | | | — | | | 10,007 | | | U.S. government securities | | 90,120 | | | — | | | (14) | | | 90,106 | | | | $ | 131,360 | | | $ | 15 | | | $ | (23) | | | $ | 131,352 | |
|
| Schedule of Investments Classified by Contractual Maturity Date |
The following table summarizes the estimated fair value of the Company's investments, designated as available-for-sale and classified by the contractual maturity date of the investments as of the dates shown: | | | | | | | | | | | | | | | | | | September 30, 2021 | | December 31, 2020 | | Due within one year or less | | $ | 77,598 | | | $ | 131,352 | | | Due after one year through five years | | 22,207 | | | — | | | | $ | 99,805 | | | $ | 131,352 | |
|
| Schedule of Fair Values and Gross Unrealized Losses for Available-For-Sale Securities |
The following table shows the fair values and the gross unrealized losses of these available-for-sale investments aggregated by investment category as of September 30, 2021. | | | | | | | | | | | | | | | | | | | | | | | | Adjusted Cost | | Gross Unrealized Loss | | Fair Value | | U.S. government securities | | $ | 16,024 | | | $ | (10) | | | $ | 16,014 | | | Corporate bonds and commercial paper | | 29,927 | | | (9) | | | 29,918 | | | | $ | 45,951 | | | $ | (19) | | | $ | 45,932 | |
The following table shows the fair values and the gross unrealized losses of these available-for-sale investments aggregated by investment category as of December 31, 2020: | | | | | | | | | | | | | | | | | | | | | | | | Adjusted Cost | | Gross Unrealized Loss | | Fair Value | | U.S. government securities | | $ | 90,120 | | | $ | (14) | | | $ | 90,106 | | | Corporate bonds and commercial paper | | 21,445 | | | (9) | | | 21,436 | | | | $ | 111,565 | | | $ | (23) | | | $ | 111,542 | |
|