CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN CONVERTIBLE PREFERRED STOCK AND STOCKHOLDERS' EQUITY (DEFICIT) - USD ($) $ in Thousands | Convertible preferred stock | Common StockClass A Common Stock [Member] | Common StockClass B Common Stock [Member] | Additional Paid-In Capital | Accumulated Deficit | Class A Common Stock [Member] | Class B Common Stock [Member] | Total |
Convertible Preferred Stock, Balance at beginning of the period at Dec. 31, 2019 | $ 360,937 | | | | | | | |
Convertible Preferred Stock, Balance at beginning of the period (in shares) at Dec. 31, 2019 | 107,197,118 | | | | | | | |
Convertible Preferred Stock, Balance at end of the period at Jun. 30, 2020 | $ 360,937 | | | | | | | |
Convertible Preferred Stock, Balance at end of the period (in shares) at Jun. 30, 2020 | 107,197,118 | | | | | | | |
Balance at beginning of the period at Dec. 31, 2019 | | $ 1 | | $ 19,782 | $ (232,061) | | | $ (212,278) |
Balance at beginning of the period (in shares) at Dec. 31, 2019 | | 5,939,950 | | | | | | |
Increase (Decrease) in Stockholders' Equity | | | | | | | | |
Net loss | | | | | (47,595) | | | (47,595) |
Common stock issued upon exercise of stock options | | | | 224 | | | | 224 |
Common stock issued upon exercise of stock options (in shares) | | 105,908 | | | | | | |
Stock-based compensation expense | | | | 5,387 | | | | 5,387 |
Balance at end of the period at Jun. 30, 2020 | | $ 1 | | 25,393 | (279,656) | | | (254,262) |
Balance at end of the period (in shares) at Jun. 30, 2020 | | 6,045,858 | | | | | | |
Convertible Preferred Stock, Balance at beginning of the period at Dec. 31, 2019 | $ 360,937 | | | | | | | |
Convertible Preferred Stock, Balance at beginning of the period (in shares) at Dec. 31, 2019 | 107,197,118 | | | | | | | |
Convertible Preferred Stock, Balance at end of the period at Dec. 31, 2020 | $ 360,937 | | | | | | | 360,937 |
Convertible Preferred Stock, Balance at end of the period (in shares) at Dec. 31, 2020 | 107,197,118 | | | | | | | |
Balance at beginning of the period at Dec. 31, 2019 | | $ 1 | | 19,782 | (232,061) | | | (212,278) |
Balance at beginning of the period (in shares) at Dec. 31, 2019 | | 5,939,950 | | | | | | |
Increase (Decrease) in Stockholders' Equity | | | | | | | | |
Conversion of convertible debt | | | | | | | | 49,900 |
Balance at end of the period at Dec. 31, 2020 | | $ 1 | | 32,874 | (394,806) | | | (361,931) |
Balance at end of the period (in shares) at Dec. 31, 2020 | | 6,593,291 | | | | 6,593,291 | 0 | |
Convertible Preferred Stock, Balance at beginning of the period at Mar. 31, 2020 | $ 360,937 | | | | | | | |
Convertible Preferred Stock, Balance at beginning of the period (in shares) at Mar. 31, 2020 | 107,197,118 | | | | | | | |
Convertible Preferred Stock, Balance at end of the period at Jun. 30, 2020 | $ 360,937 | | | | | | | |
Convertible Preferred Stock, Balance at end of the period (in shares) at Jun. 30, 2020 | 107,197,118 | | | | | | | |
Balance at beginning of the period at Mar. 31, 2020 | | $ 1 | | 22,633 | (256,415) | | | (233,781) |
Balance at beginning of the period (in shares) at Mar. 31, 2020 | | 6,013,465 | | | | | | |
Increase (Decrease) in Stockholders' Equity | | | | | | | | |
Net loss | | | | | (23,241) | | | (23,241) |
Common stock issued upon exercise of stock options | | | | 70 | | | | 70 |
Common stock issued upon exercise of stock options (in shares) | | 32,393 | | | | | | |
Stock-based compensation expense | | | | 2,690 | | | | 2,690 |
Balance at end of the period at Jun. 30, 2020 | | $ 1 | | 25,393 | (279,656) | | | (254,262) |
Balance at end of the period (in shares) at Jun. 30, 2020 | | 6,045,858 | | | | | | |
Convertible Preferred Stock, Balance at beginning of the period at Dec. 31, 2020 | $ 360,937 | | | | | | | 360,937 |
Convertible Preferred Stock, Balance at beginning of the period (in shares) at Dec. 31, 2020 | 107,197,118 | | | | | | | |
Increase (Decrease) in Stockholders' Equity | | | | | | | | |
Conversion of convertible preferred stock | $ (360,937) | | | | | | | |
Conversion of convertible preferred stock (in shares) | (107,197,118) | | | | | | | |
Balance at beginning of the period at Dec. 31, 2020 | | $ 1 | | 32,874 | (394,806) | | | (361,931) |
Balance at beginning of the period (in shares) at Dec. 31, 2020 | | 6,593,291 | | | | 6,593,291 | 0 | |
Increase (Decrease) in Stockholders' Equity | | | | | | | | |
Net loss | | | | | (3,632) | | | (3,632) |
Common stock issued upon exercise of stock options | | | | | | | | 11,689 |
Common stock issued upon exercise of stock options and warrants | | $ 1 | | 11,688 | | | | |
Common stock issued upon exercise of stock options and warrants (in shares) | | 5,302,472 | | | | | | |
Common stock issued upon vesting of restricted stock units (in shares) | | 467,234 | | | | | | |
Conversion of convertible preferred stock | | $ 8 | $ 3 | 360,926 | | | | 360,937 |
Conversion of convertible preferred stock (in shares) | | 80,770,178 | 26,426,937 | | | | | |
Conversion of convertible debt | | $ 1 | | 49,916 | | | | 49,917 |
Conversion of convertible debt (in shares) | | 5,115,140 | | | | | | |
Net equity infusion from the Business Combination | | $ 6 | | 361,281 | | | | 361,287 |
Net equity infusion from the Business Combination (in shares) | | 69,228,811 | | | | | | |
Stock-based compensation expense | | | | 28,085 | | | | 28,085 |
Balance at end of the period at Jun. 30, 2021 | | $ 17 | $ 3 | 844,770 | (398,438) | | | 446,352 |
Balance at end of the period (in shares) at Jun. 30, 2021 | | 167,477,126 | 26,426,937 | | | 167,477,126 | 26,426,937 | |
Balance at beginning of the period at Mar. 31, 2021 | | $ 16 | $ 3 | 831,640 | (395,496) | | | 436,163 |
Balance at beginning of the period (in shares) at Mar. 31, 2021 | | 164,862,470 | 26,426,937 | | | | | |
Increase (Decrease) in Stockholders' Equity | | | | | | | | |
Net loss | | | | | (2,942) | | | (2,942) |
Common stock issued upon exercise of stock options and warrants | | $ 1 | | 5,375 | | | | 5,376 |
Common stock issued upon exercise of stock options and warrants (in shares) | | 2,147,422 | | | | | | |
Common stock issued upon vesting of restricted stock units (in shares) | | 467,234 | | | | | | |
Stock-based compensation expense | | | | 7,755 | | | | 7,755 |
Balance at end of the period at Jun. 30, 2021 | | $ 17 | $ 3 | $ 844,770 | $ (398,438) | | | $ 446,352 |
Balance at end of the period (in shares) at Jun. 30, 2021 | | 167,477,126 | 26,426,937 | | | 167,477,126 | 26,426,937 | |