CONSOLIDATED STATEMENTS OF OPERATIONS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Income Statement [Abstract]    
Product sales, net $ 8,244 $ 446
Operating expenses:    
Cost of goods sold 4,055 468
Research and development 33,129 17,050
Selling and marketing 113,152 56,467
General and administrative 24,709 30,085
Total operating expenses 175,045 104,070
Loss from operations (166,801) (103,624)
Other income (expense):    
Interest income 15 169
Other expense (4,732) (2,082)
Loss on issuance of financial instruments 0 (64,049)
Change in fair value of financial instruments (33,657) 27,281
Total other expense, net (38,374) (38,681)
Loss before income tax (205,175) (142,305)
Income tax expense (17) (4)
Net loss (205,192) (142,309)
Series B-1 and B-2 convertible preferred stock deemed dividends (1,047) 0
Net loss attributable to common stockholders, basic (206,239) (142,309)
Net loss attributable to common stockholders, diluted $ (206,239) $ (142,309)
Net loss per share attributable to common stockholders, basic (in dollars per share) $ (1.58) $ (2.12)
Net loss per share attributable to common stockholders, diluted (in dollars per share) $ (1.58) $ (2.12)
Weighted-average shares used to compute net loss per share, basic (in shares) 130,908,794 67,157,278
Weighted-average shares used to compute net loss per share, diluted (in shares) 130,908,794 67,157,278