Condensed Consolidated Statements of Convertible Preferred Stock and Stockholders’ Equity (Deficit) (unaudited) - USD ($) $ in Thousands | Total | Series A and Series B Warrants | Common Stock (Class A and B) | Common Stock (Class A and B) Series A and Series B Warrants | Additional Paid-in-Capital | Additional Paid-in-Capital Series A and Series B Warrants | Accumulated Deficit | Accumulated other comprehensive loss |
Temporary equity, shares outstanding at beginning of period (in shares) at Dec. 31, 2020 | 112,088,065 | | | | | | | |
Temporary equity, carrying amount attributable to parent at beginning of period at Dec. 31, 2020 | $ 448,312 | | | | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | |
Conversion of preferred stock to common stock (in shares) | (112,088,065) | | | | | | | |
Conversion of preferred stock to common stock | $ (448,312) | | | | | | | |
Temporary equity, shares outstanding at end of period (in shares) at Jun. 30, 2021 | 0 | | | | | | | |
Temporary equity, carrying amount attributable to parent at end of period at Jun. 30, 2021 | $ 0 | | | | | | | |
Total stockholders’ equity (deficit) at beginning of period at Dec. 31, 2020 | (206,289) | | $ 0 | | $ 7,312 | | $ (213,601) | $ 0 |
Common stock, shares outstanding at beginning period (in shares) at Dec. 31, 2020 | | | 22,314,685 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (74,118) | | | | | | (74,118) | |
Other comprehensive gain (loss) | 0 | | | | | | | |
Stock option exercises and other | 2,977 | | | | 2,977 | | | |
Stock option exercises and other (in shares) | | | 2,504,454 | | | | | |
Stock-based compensation | 7,138 | | | | 7,138 | | | |
Common stock issuance for initial public offering, net of issuance costs | 462,354 | | $ 1 | | 462,353 | | | |
Common stock issuance for initial public offering, net of issuance costs (in shares) | | | 27,878,787 | | | | | |
Conversion of preferred stock to common stock and warrant exercises | 448,312 | $ 2,340 | $ 1 | | 448,311 | $ 2,340 | | |
Conversion of preferred stock to common stock and warrant exercises (in shares) | | | 115,598,018 | 129,963 | | | | |
Common stock, shares outstanding at end period (in shares) at Jun. 30, 2021 | | | 168,425,907 | | | | | |
Total stockholders’ equity (deficit) at end of period at Jun. 30, 2021 | $ 642,714 | | $ 2 | | 930,431 | | (287,719) | 0 |
Temporary equity, shares outstanding at beginning of period (in shares) at Mar. 31, 2021 | 112,088,065 | | | | | | | |
Temporary equity, carrying amount attributable to parent at beginning of period at Mar. 31, 2021 | $ 448,312 | | | | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | |
Conversion of preferred stock to common stock (in shares) | (112,088,065) | | | | | | | |
Conversion of preferred stock to common stock | $ (448,312) | | | | | | | |
Temporary equity, shares outstanding at end of period (in shares) at Jun. 30, 2021 | 0 | | | | | | | |
Temporary equity, carrying amount attributable to parent at end of period at Jun. 30, 2021 | $ 0 | | | | | | | |
Total stockholders’ equity (deficit) at beginning of period at Mar. 31, 2021 | (233,031) | | $ 0 | | 11,287 | | (244,318) | 0 |
Common stock, shares outstanding at beginning period (in shares) at Mar. 31, 2021 | | | 24,036,725 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (43,401) | | | | | | (43,401) | |
Other comprehensive gain (loss) | 0 | | | | | | | |
Stock option exercises and other | 823 | | | | 823 | | | |
Stock option exercises and other (in shares) | | | 782,414 | | | | | |
Stock-based compensation | 5,317 | | | | 5,317 | | | |
Common stock issuance for initial public offering, net of issuance costs | 462,354 | | $ 1 | | 462,353 | | | |
Common stock issuance for initial public offering, net of issuance costs (in shares) | | | 27,878,787 | | | | | |
Conversion of preferred stock to common stock and warrant exercises | 448,312 | $ 2,340 | $ 1 | | 448,311 | $ 2,340 | | |
Conversion of preferred stock to common stock and warrant exercises (in shares) | | | 115,598,018 | 129,963 | | | | |
Common stock, shares outstanding at end period (in shares) at Jun. 30, 2021 | | | 168,425,907 | | | | | |
Total stockholders’ equity (deficit) at end of period at Jun. 30, 2021 | $ 642,714 | | $ 2 | | 930,431 | | (287,719) | 0 |
Temporary equity, shares outstanding at beginning of period (in shares) at Dec. 31, 2021 | 0 | | | | | | | |
Temporary equity, carrying amount attributable to parent at beginning of period at Dec. 31, 2021 | $ 0 | | | | | | | |
Temporary equity, shares outstanding at end of period (in shares) at Jun. 30, 2022 | 0 | | | | | | | |
Temporary equity, carrying amount attributable to parent at end of period at Jun. 30, 2022 | $ 0 | | | | | | | |
Total stockholders’ equity (deficit) at beginning of period at Dec. 31, 2021 | $ 542,938 | | $ 2 | | 943,142 | | (400,080) | (126) |
Common stock, shares outstanding at beginning period (in shares) at Dec. 31, 2021 | 170,272,462 | | 170,272,462 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | $ (121,539) | | | | | | (121,539) | |
Other comprehensive gain (loss) | (71) | | | | | | | (71) |
Stock option exercises and other | $ 4,944 | | | | 4,944 | | | |
Stock option exercises and other (in shares) | 2,182,632 | | 2,542,947 | | | | | |
Stock-based compensation | $ 11,307 | | | | 11,307 | | | |
Common stock, shares outstanding at end period (in shares) at Jun. 30, 2022 | 172,815,409 | | 172,815,409 | | | | | |
Total stockholders’ equity (deficit) at end of period at Jun. 30, 2022 | $ 437,579 | | $ 2 | | 959,393 | | (521,619) | (197) |
Temporary equity, shares outstanding at beginning of period (in shares) at Mar. 31, 2022 | 0 | | | | | | | |
Temporary equity, carrying amount attributable to parent at beginning of period at Mar. 31, 2022 | $ 0 | | | | | | | |
Temporary equity, shares outstanding at end of period (in shares) at Jun. 30, 2022 | 0 | | | | | | | |
Temporary equity, carrying amount attributable to parent at end of period at Jun. 30, 2022 | $ 0 | | | | | | | |
Total stockholders’ equity (deficit) at beginning of period at Mar. 31, 2022 | 493,566 | | $ 2 | | 949,932 | | (456,059) | (309) |
Common stock, shares outstanding at beginning period (in shares) at Mar. 31, 2022 | | | 171,078,088 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (65,560) | | | | | | (65,560) | |
Other comprehensive gain (loss) | 112 | | | | | | | 112 |
Stock option exercises and other | 3,787 | | | | 3,787 | | | |
Stock option exercises and other (in shares) | | | 1,737,321 | | | | | |
Stock-based compensation | $ 5,674 | | | | 5,674 | | | |
Common stock, shares outstanding at end period (in shares) at Jun. 30, 2022 | 172,815,409 | | 172,815,409 | | | | | |
Total stockholders’ equity (deficit) at end of period at Jun. 30, 2022 | $ 437,579 | | $ 2 | | $ 959,393 | | $ (521,619) | $ (197) |