Stock Based Compensation (Tables)
6 Months Ended
Jun. 30, 2022
Share-Based Payment Arrangement [Abstract]  
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,
2022202120222021
Research and development$3,157 $2,215 $5,511 $3,422 
Sales and marketing1,642 2,550 4,522 4,388 
General and administrative9,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 OutstandingRestricted 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 outstandingWeighted-Average Grant Date Fair Value per share
Balance at December 31, 202151,437,898 27,727,088 $7.79 7.04$113,110 7,600,097 $13.17 
Additional shares authorized20,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 canceled3,835,184 (559,821)1.10 (3,275,363)11.72 
Balance at June 30, 202266,120,533 17,716,510 $12.11 7.65$4,993 13,213,694 $5.59 
Exercisable at December 31, 202113,157,036 $0.15 5.17$95,946 
Exercisable at June 30, 20224,541,859 0.33 5.624,337 
Unvested at December 31, 202114,570,052 14.69 8.7217,164 
Unvested at June 30, 202213,174,651 16.18 8.35656