Summary of significant accounting policies | 2. Summary of significant accounting policies Use of estimates The preparation of the Company's consolidated financial statements in conformity with GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities, the disclosure of contingent assets and liabilities at the date of the consolidated financial statements, and the reported amounts of expenses during the reporting period. Significant estimates and assumptions reflected in these consolidated financial statements include, but are not limited to, the accrual of research and development expenses and the valuations of common stock, preferred stock tranche obligation, anti-dilution right liability and the valuation allowance for deferred tax assets. The Company bases its estimates on historical experience, known trends and other market-specific or other relevant factors that it believes to be reasonable under the circumstances. On an ongoing basis, management evaluates its estimates when there are changes in circumstances, facts and experience. Changes in estimates are recorded in the period in which they become known. Actual results could differ from those estimates. Cash and cash equivalents The Company considers all highly liquid investments with original maturities of three months or less at the time of purchase to be cash equivalents. Cash equivalents, which consist primarily of amounts invested in money market accounts, are stated at fair value. Short-term marketable securities The Company invests in short-term marketable securities, primarily money market funds, commercial paper, U.S. treasury securities and corporate debt securities. The Company classifies its short-term marketable securities as available-for-sale securities and reports them at fair value in short-term marketable securities on the consolidated balance sheets with related unrealized losses included within accumulated other comprehensive loss on the consolidated balance sheets. The amortized cost of debt securities is adjusted for amortization of premiums and accretion of discounts to maturity, which is included in other income (expense), net on the consolidated statements of operations and comprehensive loss. Realized gains and losses and declines in value judged to be other-than-temporary, if any, on available-for-sale securities are included in other income (expense), net. The cost of securities sold is based on the specific identification method. Interest and dividends on securities classified as available-for-sale are included in other income (expense), net. The Company regularly reviews all its investments for other-than-temporary declines in estimated fair value. This review includes the consideration of the cause of the impairment, including the creditworthiness of the security issuers, the number of securities in an unrealized loss position, the severity and duration of the unrealized losses, whether the Company has the intent to sell the securities and whether it is more likely than not that the Company will be required to sell the securities before the recovery of their amortized cost basis. When the Company determines that the decline in estimated fair value of an investment is below the amortized cost basis and the decline is other-than-temporary, the carrying value of the security will be reduced and a loss will be recorded for the amount of such decline. Restricted cash As of December 31, 2019 and 2018, the Company was required to maintain separate cash balances of $40 and $20, respectively, to collateralize corporate credit cards with a bank, which are classified within other assets (non-current) on the consolidated balance sheets. As of December 31, 2019 the Company was required to maintain a separate cash balance of $20 for the benefit of the landlord in connection with the Company’s office space lease in South San Francisco, California (the “Lease”), which is classified within other assets (non-current) on the 2019 consolidated balance sheet (see Note 12). As of December 31, 2018, the Company was required to maintain a separate cash balance of $5 for the benefit of the landlord in connection with the Lease, which is classified within other current assets on the 2018 consolidated balance sheet. Concentrations of credit risk Financial instruments that potentially subject the Company to concentrations of credit risk consist principally of cash, cash equivalents and short-term marketable securities. Periodically, the Company maintains deposits in accredited financial institutions in excess of federally insured limits. The Company deposits its cash investments in financial institutions that it believes have high credit quality and has not experienced any losses on such accounts and does not believe it is exposed to any unusual credit risk beyond the normal credit risk associated with commercial banking relationships. At December 31, 2019 and 2018, all of the Company's cash, cash equivalents and short-term investments were held at one accredited financial institution. Deferred offering costs The Company capitalizes certain legal, professional accounting and other third-party fees that are directly associated with in-process preferred stock or common equity financings as deferred offering costs until such financings are consummated. After consummation of the equity financing, these costs are recorded as a reduction to the carrying value of redeemable convertible preferred stock or in stockholders' equity (deficit) as a reduction of additional paid-in capital generated as a result of such offering. Should an in-process equity financing be abandoned, the deferred offering costs will be expensed immediately as a charge to operating expenses in the consolidated statements of operations and comprehensive loss. As of December 31, 2019, the Company did not have any deferred offering costs. As of December 31, 2018, the Company recorded deferred offering costs of $361, which are classified within prepaid expenses and other current assets on the 2018 consolidated balance sheet . Segment information The Company manages its operations as a single operating segment for the purposes of assessing performance and making operating decisions. The Company's singular focus is developing and commercializing transformative treatments for serious metabolic diseases, with an initial focus on NASH. Research and development costs Research and development costs are expensed as incurred. Research and development expenses consist of costs incurred to discover, research and develop drug candidates, including personnel expenses, stock-based compensation expense, third-party license fees and external costs including fees paid to consultants and clinical research organizations ("CROs"), in connection with drug product manufacturing, nonclinical studies and clinical trials, and other related clinical trial fees, such as for investigator grants, patient screening, laboratory work, clinical trial database management, clinical trial material management and statistical compilation and analysis. Non-refundable prepayments for goods or services that will be used or rendered for future research and development activities are recorded as prepaid expenses. Such amounts are recognized as an expense as the goods are delivered or the related services are performed, or until it is no longer expected that the goods will be delivered or the services rendered. Costs incurred i n obtaining technology licenses are charged immediately to research and development expense if the technology licensed has not reached technological feasibility and has no alternative future uses. Research contract costs and accruals The Company has entered into various research and development and other agreements with commercial firms, researchers and others for provisions of goods and services. These agreements are generally cancelable, and the related costs are recorded as research and development expenses as incurred. The Company records accruals for estimated ongoing research and development costs. When evaluating the adequacy of the accrued liabilities, the Company analyzes progress of the studies or clinical trials, including the phase or completion of events, invoices received and contracted costs. Significant judgments and estimates are made in determining the accrued balances at the end of any reporting period. Actual results could differ materially from the Company's estimates. Patent costs All patent-related costs incurred in connection with filing and prosecuting patent applications are expensed as incurred due to the uncertainty about the recovery of the expenditure. Amounts incurred are classified as general and administrative expenses. Stock-based compensation The Company measures all stock-based awards granted to employees and nonemployees based on the fair value on the date of the grant and recognizes compensation expense for those awards over the requisite service period, which is generally the vesting period of the respective award, on a straight-line basis. The Company accounts for forfeitures as they occur. The Company estimates the fair value of stock option grants using the Black-Scholes option pricing model. Prior to our initial public offering, the exercise price for all stock options granted was at the estimated fair value of the underlying common stock as determined on the date of grant by the Company’s board of directors. The fair value of each stock option grant is estimated on the date of grant using the Black-Scholes option-pricing model, which requires inputs based on certain subjective assumptions, including the expected stock price volatility, the expected term of the option, the risk-free interest rate for a period that approximates the expected term of the option, and the Company's expected dividend yield. The Company went public in June 2019 and accordingly, lacks sufficient company-specific historical and implied volatility information for its shares traded in the public markets. Therefore, it estimates its expected share price volatility based on the historical volatility of publicly traded peer companies and expects to continue to do so until such time as it has adequate historical data regarding the volatility of its own traded share price. The expected term of the Company's stock options has been determined utilizing the "simplified" method for awards that qualify as "plain-vanilla" options. The risk-free interest rate is determined by reference to the U.S. Treasury yield curve in effect at the time of grant of the award for time periods approximately equal to the expected term of the award. Expected dividend yield is based on the fact that the Company has never paid cash dividends on common stock and does not expect to pay any cash dividends in the foreseeable future. The fair value of each restricted common stock award is estimated on the date of grant based on the fair value of the Company's common stock on that same date. Compensation expense for purchases under the Employee Stock Purchase Plan is recognized based on the fair value of the common stock estimated based on the closing price of our common stock as reported on the date of offering, less the purchase discount percentage provided for in the plan. The Company classifies stock-based compensation expense in its consolidated statement of operations and comprehensive loss in the same manner in which the award recipient's payroll costs are classified or in which the award recipient's service payments are classified. Preferred stock tranche obligation The Company classified the preferred stock tranche obligation for the future purchase, and option to purchase, Series A Preferred Stock (see Note 6) as a liability on its consolidated balance sheets as the preferred stock tranche obligation was a freestanding financial instrument that required the Company to transfer equity instruments upon future closings of the Series A Preferred Stock. The preferred stock tranche obligation was initially recorded at fair value upon the date of issuance and was subsequently remeasured to fair value at each reporting date. Changes in the fair value of the preferred stock tranche obligation were recognized as a component of other expense in the consolidated statements of operations and comprehensive loss. Changes in the fair value of the preferred stock tranche obligation were recognized until the tranche obligations were fulfilled or otherwise extinguished in the fourth quarter of 2018. In November 2018, in connection with the Company's issuance and sale of Series A Preferred Stock, the Company satisfied its obligation to issue additional shares under the Second Tranche Closing. In December 2018, in connection with the Company's issuance and sale of Series B Preferred Stock, the Company terminated the option to purchase Series A Preferred Stock provided under the 2018 Series A Agreement (see Notes 3 and 6). Anti-dilution right liability The Company classified the anti-dilution right under its license agreement with Amgen Inc. ("Amgen") (see Note 9) as a derivative liability on its consolidated balance sheets as the anti-dilution right represented a freestanding financial instrument that required the Company to transfer equity instruments upon future equity closings. The anti-dilution right liability was initially recorded at fair value upon the date of issuance and was subsequently remeasured to fair value at each reporting date. The issuance date fair value of the anti-dilution right liability was recognized as a research and development expense upon entering into the agreement with Amgen. Changes in the fair value of the anti-dilution right liability were recognized as a component of other expense in the consolidated statements of operations and comprehensive loss. Changes in the fair value of the anti-dilution right liability were recognized until the anti-dilution right was satisfied in the fourth quarter of 2018 . In November 2018, in connection with the Company’s issuance and sale of Series A Preferred Stock, the Company satisfied its anti-dilution right under the Amgen Agreement (see Notes 6 and 9). Classification and accretion of redeemable convertible preferred stock The Company has classified its redeemable convertible preferred stock outside of stockholders' equity (deficit) because the shares contain certain redemption features that are not solely within the control of the Company. Costs incurred in connection with the issuance of redeemable convertible preferred stock, as well as the recognition of the preferred stock tranche obligation, are recorded as a reduction of gross proceeds from issuance. The net carrying value of redeemable convertible preferred stock were accreted to their redemption values through a charge to additional paid-in capital or accumulated deficit over the period from date of issuance to the earliest date on which the holders could, at their option, elect to redeem their shares. In December 2018, in connection with the Company's issuance and sale of Series B Preferred Stock, the Company terminated the redemption rights associated with the Series A Preferred Stock that allowed the holders, at their option, to elect to redeem their shares at a specified date. Accordingly, the Company ceased accreting the net carrying value of the Series A redeemable convertible preferred stock to the redemption value. Comprehensive loss Comprehensive loss includes net loss as well as other changes in stockholders' equity (deficit) that result from transactions and economic events other than those with stockholders. Our comprehensive loss is comprised of net loss and changes in unrealized gains and losses on our short-term marketable securities . Income taxes The Company accounts for income taxes using the asset and liability method, which requires the recognition of deferred tax assets and liabilities for the expected future tax consequences of events that have been recognized in the consolidated financial statements or in the Company's tax returns. Deferred tax assets and liabilities are determined based on the difference between the consolidated financial statement and tax basis of assets and liabilities using enacted tax rates in effect for the year in which the differences are expected to reverse. Changes in deferred tax assets and liabilities are recorded in the provision for income taxes. The Company assesses the likelihood that its deferred tax assets will be recovered from future taxable income and, to the extent it believes, based upon the weight of available evidence, that it is more likely than not that all or a portion of the deferred tax assets will not be realized, a valuation allowance is established through a charge to income tax expense. Potential for recovery of deferred tax assets is evaluated by estimating the future taxable profits expected and considering prudent and feasible tax planning strategies. The Company accounts for uncertainty in income taxes recognized in the consolidated financial statements by applying a two-step process to determine the amount of tax benefit to be recognized. First, the tax position must be evaluated to determine the likelihood that it will be sustained upon external examination by the taxing authorities. If the tax position is deemed more-likely-than-not to be sustained, the tax position is then assessed to determine the amount of benefit to recognize in the consolidated financial statements. The amount of the benefit that may be recognized is the largest amount that has a greater than 50% likelihood of being realized upon ultimate settlement. The provision for income taxes includes the effects of any resulting tax reserves, or unrecognized tax benefits, that are considered appropriate as well as the related net interest and penalties. Net loss per share The Company follows the two-class method when computing net loss per share as the Company has issued shares that meet the definition of participating securities. The two-class method determines net loss per share for each class of common and participating securities according to dividends declared or accumulated and participation rights in undistributed earnings. The two-class method requires income available to common stockholders for the period to be allocated between common and participating securities based upon their respective rights to receive dividends as if all income for the period had been distributed. Basic net loss per share attributable to common stockholders is computed by dividing the net loss attributable to common stockholders by the weighted average number of common shares outstanding for the period. Diluted net loss attributable to common stockholders is computed by adjusting net loss attributable to common stockholders to reallocate undistributed earnings based on the potential impact of dilutive securities. Diluted net loss per share attributable to common stockholders is computed by dividing the diluted net loss attributable to common stockholders by the weighted average number of common shares outstanding for the period, including potential dilutive common shares. For purpose of this calculation, unvested restricted common stock and redeemable convertible preferred stock are considered potential dilutive common shares. The Company’s redeemable convertible preferred stock contractually entitles the holders of such shares to participate in dividends but does not contractually require the holders of such shares to participate in losses of the Company. Accordingly, in periods in which the Company reports a net loss attributable to common stockholders, such losses are not allocated to such participating securities. In periods in which the Company reports a net loss attributable to common stockholders, diluted net loss per share attributable to common stockholders is the same as basic net loss per share attributable to common stockholders, since dilutive common shares are not assumed to have been issued if their effect is anti-dilutive. The Company reported a net loss attributable to common stockholders for the years ended December 31, 2019 and 2018 . Emerging growth company The Company is an emerging growth company as defined in the Jumpstart Our Business Startups Act of 2012, as amended (the “JOBS Act”). Under the JOBS Act, companies have extended transition periods available for complying with new or revised accounting standards. The Company has elected this exemption to delay adopting new or revised accounting standards until such time as those standards apply. Recently issued accounting pronouncements not yet adopted In February 2016, the FASB issued ASU No. 2016‑02 , Leases (Topic 842) , subsequently amended by ASU 2018-10, ASU 2018-11, ASU 2019-01 and ASU 2019-10 (collectively, “ASU 2016‑02”), which sets out the principles for the recognition, measurement, presentation and disclosure of leases for both parties to a contract (i.e., lessees and lessors). The new standard requires lessees to apply a dual approach, classifying leases as either finance or operating leases based on the principle of whether or not the lease is effectively a financed purchase by the lessee. This classification will determine whether lease expense is recognized based on an effective interest method or on a straight-line basis over the term of the lease. A lessee is also required to record a right-of-use asset and a lease liability for all leases with a term of greater than 12 months regardless of their classification on the consolidated balance sheets. Leases with a term of 12 months or less may be accounted for similar to existing guidance for operating leases today. The Company intends to utilize the modified retrospective approach to adopting ASU 2016‑02 effective January 1, 2020. Further, the Company intends to utilize the package of available practical expedients which allows it to i) not reassess whether any expired or existing contracts are or contain leases; ii) not reassess the lease classification for expired or existing leases; and iii) not reassess the treatment of initial direct costs for any existing leases. The Company is in the process of completing a review of its existing lease agreements under ASC 842 and does not expect that the impact of the adoption of ASU 2016-02 on its consolidated balance sheets will be material and does not expect the adoption to have a material impact on its results of operations or cash flows. In February 2020 the Company entered into a new office lease agreement (see Note 15). The Company is in the process of determining the impact on its consolidated financial statements of the adoption of ASU 2016-02 related to this new lease. In August 2018, the FASB issued No. ASU 2018‑13, Fair Value Measurement (Topic 820)—Disclosure Framework (“ASU 2018‑13”), which improves the disclosure requirements for fair value measurements. For non-public entities, ASU 2018‑13 is effective for annual reporting periods beginning after December 15, 2019, including interim periods within those fiscal years. Early adoption is permitted for any removed or modified disclosures. The Company is currently evaluating the impact that the adoption of ASU 2018‑13 will have on its consolidated financial statements. |