Stock-Based Compensation (Tables)
   | 
12 Months Ended | 
Dec. 31, 2022  | 
| Share-Based Payment Arrangement [Abstract] | 
 
 | 
| Share-Based Payment Arrangement, Option, Activity | 
 Stock option activity under the 2016 Plan is as follows (in thousands, except share and per share amounts): 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
Options Outstanding | 
 
 | 
Number of Options  | 
 | 
Weighted–Average Exercise Price | 
 | 
Weighted-Average Remaining Contractual Life (years) | 
 | 
Aggregate Intrinsic Value | 
 
| Balance – December 31, 2021 | 
23,708,957  | 
 | 
 | 
$ | 
3.05  | 
 | 
 | 
7.99 | 
 | 
$ | 
125,429  | 
 | 
 
| Recapitalization | 
4,173,563  | 
 | 
 | 
(0.46) | 
 | 
 | 
 | 
 | 
 | 
 
| Balance – December 31, 2021 | 
27,882,520  | 
 | 
 | 
2.59  | 
 | 
 | 
7.99 | 
 | 
125,429  | 
 | 
 
| Exercised | 
(328,448) | 
 | 
 | 
1.13  | 
 | 
 | 
 | 
 | 
 | 
 
| Forfeited as part of the Option Exchange | 
(12,977,484) | 
 | 
 | 
3.24  | 
 | 
 | 
 | 
 | 
 | 
 
| Cancelled/forfeited | 
(4,055,017) | 
 | 
 | 
3.26  | 
 | 
 | 
 | 
 | 
 | 
 
| Balance – December 31, 2022 | 
10,521,571  | 
 | 
 | 
1.59  | 
 | 
 | 
4.87 | 
 | 
61  | 
 | 
 
| Options vested and exercisable – December 31, 2022 | 
9,332,003  | 
 | 
 | 
$ | 
1.32  | 
 | 
 | 
4.46 | 
 | 
$ | 
61  | 
 | 
 
  
 | 
| Schedule of Restricted Common Stock | 
A summary of the restricted common stock activity is as follows: 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
Number of Options  | 
 | 
Weighted–Average Exercise Price | 
 
| Outstanding and unvested as of December 31, 2021 | 
69,513  | 
 | 
 | 
$ | 
2.25  | 
 | 
 
| Recapitalization | 
12,237  | 
 | 
 | 
(0.33) | 
 | 
 
| Outstanding and unvested as of December 31, 2021 | 
81,750  | 
 | 
 | 
1.92  | 
 | 
 
| Vested | 
(65,211) | 
 | 
 | 
1.92  | 
 | 
 
| Repurchase of early exercise | 
(16,539) | 
 | 
 | 
1.92  | 
 | 
 
| Outstanding and unvested as of December 31, 2022 | 
—  | 
 | 
 | 
$ | 
—  | 
 | 
 
 
 | 
| Schedule of Share-Based Payment Award, Stock Options, Valuation Assumptions | 
 The fair value of Vested Warrants and Unvested Warrants granted to HGI was estimated at the date of grant using the Black-Scholes option-pricing model, with the following assumptions: 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Fair value of common stock | 
 | 
 | 
$1.26 | 
 
| Expected term (in years) | 
 | 
 | 
4.5 years | 
 
| Volatility | 
 | 
 | 
62.50% | 
 
| Risk-free interest rate | 
 | 
 | 
4.00% | 
 
| Dividend yield | 
 | 
 | 
— | 
 
  
The fair value of stock option awards granted was estimated at the date of grant using the Black-Scholes option-pricing model, with the following assumptions: 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
Year Ended December 31, 2021 | 
 
| Fair value of common stock | 
$5.06 – $7.28  | 
 
| Expected term (in years) | 
5.00 – 6.28  | 
 
| Volatility | 
62.33% – 75.19%  | 
 
| Risk-free interest rate | 
0.50% – 1.21%  | 
 
| Dividend yield | 
— | 
 
  
 | 
| Schedule of Restricted Stock Units Activity | 
 The following table summarizes the activity for all RSUs under all of the Company’s equity incentive plans for the years end December 31, 2022: 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
Number of shares  | 
 | 
Weighted–Average Grant Date Fair Value Per Share | 
 
| Unvested – December 31, 2021 | 
1,511,191  | 
 | 
 | 
$ | 
8.62  | 
 | 
 
| Recapitalization | 
265,992  | 
 | 
 | 
(1.29) | 
 | 
 
| Unvested – December 31, 2021 | 
1,777,183  | 
 | 
 | 
7.33  | 
 | 
 
| Granted | 
15,650,757  | 
 | 
 | 
2.25  | 
 | 
 
| Granted as part of the Option Exchange | 
9,582,252  | 
 | 
 | 
1.49  | 
 | 
 
| Vested | 
(6,068,403) | 
 | 
 | 
4.34  | 
 | 
 
| Cancelled/forfeited | 
(1,459,362) | 
 | 
 | 
6.42  | 
 | 
 
| Balance – December 31, 2022 | 
19,482,427  | 
 | 
 | 
1.75  | 
 | 
 
| Vested but unissued – December 31, 2022 | 
102,865  | 
 | 
 | 
$ | 
4.22  | 
 | 
 
  
 |