| Summary of Stock-Based Compensation Expense |
The following table summarizes stock-based compensation expense recognized for the three and six months ended June 30, 2022 and 2021 as follows: | | | | | | | | | | | | | | | | | | | | | | | | | Three Months Ended June 30, | | Six Months Ended June 30, | | 2022 | | 2021 | | 2022 | | 2021 | | Research and development | $ | 3,157 | | | $ | 2,215 | | | $ | 5,511 | | | $ | 3,422 | | | Sales and marketing | 1,642 | | | 2,550 | | | 4,522 | | | 4,388 | | | General and administrative | 9,021 | | | 11,009 | | | 81,712 | | | 18,909 | | | Total stock-based compensation expense | $ | 13,820 | | | $ | 15,774 | | | $ | 91,745 | | | $ | 26,719 | |
|
| Summary of Stock Option and RSU Activity |
Stock option and RSU activity during the six months ended June 30, 2022 is as follows (in thousands, except for share, per share, and contractual term data): | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Options Outstanding | | Restricted Stock Units | | Number of Shares Available for Issuance Under the Plan | | Number of Shares Outstanding Under the Plan | | Weighted- Average Exercise Price | | Weighted- Average Remaining Contractual Term (Years) | | Aggregate Intrinsic Value | | Number of Plan shares outstanding | | Weighted-Average Grant Date Fair Value per share | | Balance at December 31, 2021 | 51,437,898 | | | 27,727,088 | | | $ | 7.79 | | | 7.04 | | $ | 113,110 | | | 7,600,097 | | | $ | 13.17 | | | Additional shares authorized | 20,437,691 | | | — | | | — | | | | | | | | | | | Options and restricted stock units granted | (9,590,240) | | | — | | | — | | | | | | | 9,590,240 | | | 2.59 | | | Options exercised and restricted stock units released | — | | | (9,450,757) | | | 0.10 | | | | | | | (701,280) | | | 18.14 | | | Options and restricted stock units canceled | 3,835,184 | | | (559,821) | | | 1.10 | | | | | | | (3,275,363) | | | 11.72 | | | Balance at June 30, 2022 | 66,120,533 | | | 17,716,510 | | | $ | 12.11 | | | 7.65 | | $ | 4,993 | | | 13,213,694 | | | $ | 5.59 | | | | | | | | | | | | | | | | | Exercisable at December 31, 2021 | | | 13,157,036 | | | $ | 0.15 | | | 5.17 | | $ | 95,946 | | | | | | | Exercisable at June 30, 2022 | | | 4,541,859 | | | 0.33 | | | 5.62 | | 4,337 | | | | | | | Unvested at December 31, 2021 | | | 14,570,052 | | | 14.69 | | | 8.72 | | 17,164 | | | | | | | Unvested at June 30, 2022 | | | 13,174,651 | | | 16.18 | | | 8.35 | | 656 | | | | | |
|