Summary of Significant Accounting Policies | 2. Summary of Significant Accounting Policies Significant accounting policies followed in the preparation of these financial statements are as follows: Principles of Consolidation The accompanying consolidated financial statements include the accounts of the Company and its wholly-owned subsidiaries located in Europe. All intercompany accounts and transactions have been eliminated in consolidation. Use of Estimates The preparation of financial statements in conformity with U.S. generally accepted accounting principles (“GAAP”) requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities, the disclosure of assets and liabilities at the date of the financial statements and the reported amounts of revenues and expenses during the reporting period. Actual results could differ from these estimates. Cash and Cash Equivalents The Company considers all highly liquid investments with a maturity date at the date of purchase of three months or less to be cash equivalents. The following table provides a reconciliation of cash, cash equivalents and restricted cash reported in the consolidated balance sheets that sum to the total of the same such amounts shown in the Consolidated Statements of Cash Flows (in thousands). Twelve Months Ended December 31, 2019 Twelve Months Ended December 31, 2018 Beginning of period End of period Beginning of period End of period Cash and cash equivalents $ 134,758 $ 189,680 $ 69,418 $ 134,758 Restricted cash 4,826 4,787 2,475 4,826 Total cash, cash equivalents and restricted cash shown in the statements of cash flows $ 139,584 $ 194,467 $ 71,893 $ 139,584 Investment Securities The Company has classified all of its investment securities as available-for-sale as the sale of such securities may be required prior to maturity to implement management strategies, and accordingly, carries these investments at fair value. Unrealized gains and losses, if any, are reported as a separate component of stockholders’ equity. The cost of investment securities classified as available-for-sale is adjusted for amortization of premiums and accretion of discounts to maturity. Such amortization and accretion are included in interest income. Realized gains and losses, if any, are also included in interest income. The cost of securities sold is based on the specific identification method. Fair Value of Financial Instruments The carrying values of the Company’s financial instruments, consisting of cash and cash equivalents, trade receivables, interest and other receivables, restricted cash, and accounts payable and accrued liabilities, approximate fair value due to the relative short-term nature of these instruments. As disclosed in Note 4, the Company classifies its cash equivalents and available-for-sale investment securities within the fair value hierarchy as defined by authoritative guidance: Level 1 Inputs — Quoted prices for identical instruments in active markets. Level 2 Inputs — Quoted prices for similar instruments in active markets; quoted prices for identical or similar instruments in markets that are not active; and model-derived valuations in which all significant inputs and significant value drivers are observable. Level 3 Inputs — Valuation derived from valuation techniques in which one or more significant inputs or significant value drivers are unobservable. Accounts Receivable Accounts receivable are recorded net of customer allowances for distribution fees, prompt payment discounts, chargebacks, and doubtful accounts. Allowances for distribution fees, prompt payment discounts and chargebacks are based on contractual terms. The Company estimates the allowance for doubtful accounts based on existing contractual payment terms, actual payment patterns of its customers and individual customer circumstances. At December 31, 2019, the Company determined that an allowance for doubtful accounts was not required. No accounts were written off during the year ended December 31, 2019. During the year ended December 31, 2018, the Company wrote off less than $0.1 million. Inventory Inventory is stated at the lower of cost or net realizable value under the first-in, first-out method, or FIFO. The Company uses a combination of standard and actual costing methodologies to determine the cost basis for its inventories which approximates actual costs. Inventory consists of raw material, work in process, and finished goods, including third-party manufacturing costs, freight, and indirect overhead costs. The Company capitalizes inventory costs associated with its products upon regulatory approval when, based on management’s judgment, future commercialization is considered probable and the future economic benefit is expected to be realized; otherwise, such costs are expensed. Prior to FDA approval of NUPLAZID in April 2016, all costs related to the manufacturing of NUPLAZID were charged to research and development expense in the period incurred. The Company periodically reviews inventory and reduces the carrying value of items to net realizable value for potentially excess, dated or obsolete inventory based on an analysis of forecasted demand compared to quantities on hand and any firm purchase orders, as well as product shelf life. During the years ended December 31, 2019, 2018 and 2017, the Company recorded charges of $1.1 million, $2.7 million and $0.7 million, respectively, to reduce certain finished goods and work in process inventory to its net realizable value. Property and Equipment Property and equipment are recorded at cost and depreciated over their estimated useful lives using the straight-line method. Leasehold improvements are amortized over the shorter of their estimated useful lives or the term of the lease by use of the straight-line method. Construction-in-process reflects amounts incurred for property, equipment or improvements that have not been placed in service. Maintenance and repair costs are expensed as incurred. When assets are retired or sold, the assets and accumulated depreciation are removed from the respective accounts and any gain or loss is recognized. Estimated useful lives by major asset category are as follows: Useful Lives Machinery and equipment 5 to 7 years Computers and software 3 years Furniture and fixtures 10 years Impairment of Long-Lived Assets The Company reviews its long-lived assets for impairment whenever events or changes in circumstances indicate that the carrying amount of an asset may not be recoverable. Recoverability is measured by a comparison of the carrying amount of an asset to estimated undiscounted future cash flows expected to be generated by the asset. If the carrying amount of an asset exceeds its estimated future cash flows, an impairment charge is recognized by the amount by which the carrying amount of the asset exceeds the fair value of the asset. Through December 31, 2019, no such impairment losses have been recorded by the Company. License Fees and Royalties The Company expenses amounts paid to acquire licenses associated with products under development when the ultimate recoverability of the amounts paid is uncertain and the technology has no alternative future use when acquired. Acquisitions of technology licenses are charged to expense or capitalized based upon management’s assessment regarding the ultimate recoverability of the amounts paid and the potential for alternative future use. The Company has determined that technological feasibility for its product candidates is reached when the requisite regulatory approvals are obtained to make the product available for sale. In connection with the FDA approval of NUPLAZID in April 2016, the Company made a one-time milestone payment of $8.0 million pursuant to its 2006 license agreement with the Ipsen Group in which the Company licensed certain intellectual property rights that complement its patent portfolio for its serotonin platform, including NUPLAZID. The Company capitalized the $8.0 million payment as an intangible asset and is amortizing the asset on a straight-line basis over the estimated useful life of the licensed patents through the second half of 2021. The Company recorded amortization expense related to its intangible asset of $1.5 million for each of the years ended December 31, 2019, 2018 and 2017. As of December 31, 2019, estimated future amortization expense related to the Company’s intangible asset was $1.5 million for 2020, and $1.0 million for 2021. Royalties incurred in connection with the Company’s license agreement with the Ipsen Group, as disclosed in Note 9, are expensed to license fees and royalties as revenue from product sales is recognized. Advertising Expense In connection with the FDA approval and commercial launch of NUPLAZID in 2016, the Company began to incur advertising costs. Advertising costs are expensed when services are performed or goods are delivered. The Company incurred $38.3 million, $39.8 million and $15.6 million in advertising costs during the years ended December 31, 2019, 2018 and 2017, respectively, related to its marketed product, NUPLAZID. No advertising costs were capitalized as prepaid expenses at December 31, 2019 or 2018. Revenue Recognition Product Sales, Net Effective January 1, 2018, the Company adopted ASU 2014-09, Revenue from Contracts with Customers (Topic 606), No cumulative effect adjustment to the opening balance of retained earnings was necessary upon adoption, and there is no reconciliation of the Company’s Consolidated Statements of Operations, as no revenue recognition differences were identified when comparing the revenue recognition criteria under Topic 606 to previous requirements The Company’s net product sales consist of U.S. sales of NUPLAZID. NUPLAZID was approved by the FDA in April 2016 and the Company commenced shipments of NUPLAZID to specialty pharmacies (“SPs”) and specialty distributors (“SDs”) in late May 2016. SPs dispense product to a patient based on the fulfillment of a prescription and SDs sell product to government facilities, long-term care pharmacies, or in-patient hospital pharmacies. Product shipping and handling costs are included in cost of product sales. The Company recognizes revenue from product sales at the net sales price (the “transaction price”) which includes estimates of variable consideration for which reserves are established and reflects each of these as either a reduction to the related account receivable or as an accrued liability, depending on how the amount payable is settled. Overall, these reserves reflect the Company’s best estimates of the amount of consideration to which the Company is entitled based on the terms of the contract. The amount of variable consideration that is included in the transaction price may be constrained, and is included in the net sales price only to the extent that it is probable that a significant reversal in the amount of the cumulative revenue recognized will not occur in a future period. Actual amounts of consideration ultimately received may differ from the Company’s estimates. If actual results in the future vary from estimates, the Company may need to adjust its estimates, which would affect net revenue in the period of adjustment Distribution Fees : Distribution fees include distribution service fees paid to the SPs and SDs based on a contractually fixed percentage of the wholesale acquisition cost (“WAC”), fees for data, and prompt payment discounts. Distribution fees are recorded as an offset to revenue based on contractual terms at the time revenue from the sale is recognized . Rebates : Allowances for rebates include mandated discounts under the Medicaid Drug Rebate Program and the Medicare Part D prescription drug benefit. Rebates are amounts owed after the final dispensing of the product to a benefit plan participant and are based upon contractual agreements with, or statutory requirements pertaining to, Medicaid and Medicare benefit providers. The allowance for rebates is based on statutory discount rates, estimated payor mix, and expected utilization. The Company’s estimates for expected utilization of rebates are based on historical data received from the SPs and SDs since product launch. Rebates are generally invoiced and paid in arrears so that the accrual balance consists of an estimate of the amount expected to be incurred for the current quarter’s activity, plus an accrual balance for prior quarters’ unpaid rebates . Chargebacks : Chargebacks are discounts and fees that relate to contracts with government and other entities purchasing from the SDs at a discounted price. The SDs charge back to the Company the difference between the price initially paid by the SDs and the discounted price paid to the SDs by these entities. The Company also incurs group purchasing organization fees for transactions through certain purchasing organizations. The Company estimates sales with these entities and accrues for anticipated chargebacks and organization fees, based on the applicable contractual terms . Co-Payment Assistance : The Company offers co-payment assistance to commercially insured patients meeting certain eligibility requirements. Co-payment assistance is accrued for based on actual program participation and estimates of program redemption using data provided by third-party administrators . Product Returns : Consistent with industry practice, the Company offers the SPs and SDs limited product return rights for damages, shipment errors, and expiring product; provided that the return is within a specified period around the product expiration date as set forth in the applicable individual distribution agreement. The Company does not allow product returns for product that has been dispensed to a patient. As the Company receives inventory reports from the SPs and SDs and has the ability to control the amount of product that is sold to the SPs and SDs, it is able to make a reasonable estimate of future potential product returns based on this on-hand channel inventory data and sell-through data obtained from the SPs and SDs. In arriving at its estimate for product returns, the Company also considers historical product returns, the underlying product demand, and industry data specific to the specialty pharmaceutical distribution industry . Research and Development Expenses Research and development expenses are charged to operations as incurred. Research and development expenses include costs associated with services provided by contract organizations for preclinical development, pre-commercialization manufacturing expenses, and clinical trials, salaries and related personnel expenses including stock-based compensation expense, and facilities and equipment expenses. The Company accrues for costs incurred as the services are being provided by monitoring the status of the trial or services provided and the invoices received from its external service providers. When the Company makes payments in advance of services being provided, we record those amounts as prepaid expenses on our consolidated balance sheet and expense them as the services are rendered. Concentration Risk Financial instruments, which potentially subject the Company to concentrations of credit risk, principally consist of cash, cash equivalents, investment securities, accounts receivable, and restricted cash. The Company invests its excess cash primarily in money market funds, U.S. treasury notes, and high quality, marketable debt instruments of corporations and government sponsored enterprises in accordance with the Company’s investment policy. The Company’s investment policy defines allowable investments and establishes guidelines relating to credit quality, diversification, and maturities of its investments to preserve principal and maintain liquidity. All investment securities have a credit rating of at least A3/A- or better, or P-1/A-1 or better, as determined by Moody’s Investors Service or Standard & Poor’s. Further, the Company specifies credit quality standards for its customers that are designed to limit the Company’s credit exposure to any single party. The Company does not currently have any of its own manufacturing facilities, and therefore it depends on an outsourced manufacturing strategy for the production of NUPLAZID for commercial use and for the production of its product candidates for clinical trials. The Company has contracts in place with two third-party manufacturers of commercial drug product and one third-party manufacturer of drug substance that is approved for the production of NUPLAZID active pharmaceutical ingredient (“API”). Although there are potential sources of supply other than the Company’s existing suppliers, any new supplier would be required to qualify under applicable regulatory requirements. The Company has entered into distribution agreements with a limited number of SPs and SDs, and all of the Company’s product sales are to these customers. For the year ended December 31, 2019, the Company’s four largest customers represented approximately 77% of the Company’s product revenue and 75% of the Company’s accounts receivable balance at December 31, 2019. For the year ended December 31, 2018, the Company’s four largest customers represented approximately 85% of the Company’s product revenue and 84% of the Company’s accounts receivable balance at December 31, 2018. For the year ended December 31, 2017, the Company’s four largest customers represented approximately 89% of the Company’s product revenue and 87% of the Company’s accounts receivable balance at December 31, 2017. Stock-Based Compensation The fair value of each employee stock option and each employee stock purchase right granted is estimated on the grant date under the fair value method using the Black-Scholes valuation model. The estimated fair value of each stock option and purchase right is then expensed over the requisite service period, which is generally the vesting period. The following weighted-average assumptions were used during these periods: Years Ended December 31, 2019 2018 2017 Stock Options: Expected volatility 62 % 71 % 68 % Risk-free interest rate 2 % 3 % 2 % Expected dividend yield 0 % 0 % 0 % Expected life of options in years 5.7 5.7 5.8 Years Ended December 31, 2019 2018 2017 Employee Stock Purchase Plan: Expected volatility 62%-86% 59%-79% 44%-62% Risk-free interest rate 1.5%-2.4% 2.1%-2.8% 1.0%-1.7% Expected dividend yield 0 % 0 % 0 % Expected life in years 0.5-2.0 0.5-2.0 0.5-2.0 Expected Volatility. The Company considers its historical volatility and implied volatility when determining the expected volatility. Risk-Free Interest Rate. The Company determines its risk-free interest rate assumption based on the U.S. Treasury yield for obligations with contractual terms similar to the expected term of the stock option or purchase right being valued. Expected Dividend Yield. The Company has never paid any dividends and currently has no plans to do so. Expected Life. In determining the expected life for stock options, the Company considers, among other factors, its historical exercise experience to date as well as the mean time remaining to full vesting of all outstanding options and the mean time remaining to the end of the contractual term of all outstanding options. The estimated life for the Company’s employee stock purchase rights is based upon the terms of each offering period. The fair value of restricted stock units (“RSUs”) is estimated based on the closing market price of the Company’s common stock on the date of grant. RSUs generally vest annually over a four-year period. The table below summarizes the total stock-based compensation expense included in the Company’s statements of operations for the periods presented (in thousands): Years Ended December 31, 2019 2018 2017 Cost of product sales $ 2,936 $ 3,863 $ 3,690 Research and development 32,533 32,038 26,485 Sales, general and administrative 46,796 45,663 45,357 $ 82,265 $ 81,564 $ 75,532 Income Taxes Current income tax expense or benefit represents the amount of income taxes expected to be payable or refundable for the current year. A deferred income tax asset or liability is computed for the expected future impact of differences between the financial reporting and income tax bases of assets and liabilities and for the expected future tax benefit to be derived from tax credits and loss carryforwards. Deferred income tax expense or benefit represents the net change during the year in the deferred income tax asset or liability. Deferred tax assets are reduced by a valuation allowance when, in the opinion of management, it is more likely than not that some portion or all of the deferred tax assets will not be realized. The Company recognizes the impact of a tax position in the financial statements only if that position is more likely than not of being sustained upon examination by taxing authorities, based on the technical merits of the position. Any interest and penalties related to uncertain tax positions will be reflected in income tax expense. Net Loss Per Share Basic net loss per share is calculated by dividing the net loss by the weighted average number of common shares outstanding for the period, without consideration for common stock equivalents. Diluted net loss per share is computed by dividing the net loss by the weighted average number of common shares and common stock equivalents outstanding for the period determined using the treasury stock method. For purposes of this calculation, stock options, employee stock purchase rights, RSUs, and warrants are considered to be common stock equivalents but are not included in the calculations of diluted net loss per share for the periods presented as their effect would be antidilutive. The Company incurred net losses for all periods presented and there were no reconciling items for potentially dilutive securities. More specifically, at December 31, 2019, 2018 and 2017, options, employee stock purchase rights, RSUs, and warrants totaling approximately 19,516,000 shares, 20,824,000 shares and 18,526,000 shares, respectively, were excluded from the calculation of diluted net loss per share as their effect would have been anti-dilutive. Segment Reporting Management has determined that the Company operates in one business segment which is the development and commercialization of innovative medicines. All revenues for the years ended December 31, 2019, 2018 and 2017 were generated in the United States. Recently Issued Accounting Standards In December 2017, the Tax Cuts and Jobs Act (the “2017 Tax Act”) was enacted. The 2017 Tax Act includes a number of changes to existing U.S. tax laws that impact the company, most notably a reduction of the U.S. corporate income tax rate from 35 percent to 21 percent for tax years beginning after December 31, 2017. The 2017 Tax Act also provides for a one-time transition tax on certain foreign earnings and the acceleration of depreciation for certain assets placed into service after September 27, 2017 as well as prospective changes beginning in 2018, including repeal of the domestic manufacturing deduction, acceleration of tax revenue recognition, global intangible low taxed income, foreign derived intangible income deduction, additional limitations on executive compensation and limitations on the deductibility of interest. The Company recognized the income tax effects of the 2017 Tax Act in its 2017 financial statements in accordance with Staff Accounting Bulletin No. 118, which provides SEC staff guidance for the application of ASC Topic 740, Income Taxes In November 2016, the Financial Accounting Standards Board (“FASB”) issued Accounting Standards Update (“ASU”) 2016-18, Statement of Cash Flows: Restricted Cash This guidance was effective for fiscal years beginning after December 15, 2017, and interim periods within those fiscal years. The Company adopted this guidance on January 1, 2018, using a retrospective transition method. The adoption of this ASU impacted the presentation of cash flows, with inclusion of restricted cash flows for each of the presented periods In June 2016, the FASB issued ASU 2016-13, Financial Instruments-Credit Losses: Measurement of Credit Losses on Financial Instruments , which changes the impairment model for most financial assets and certain other instruments. For trade receivables and other instruments, entities will be required to use a new forward-looking expected loss model that generally will result in the earlier recognition of allowances for losses. For available-for-sale debt securities with unrealized losses, the losses will be recognized as allowances rather than as reductions in the amortized cost of the securities. This guidance is effective for annual reporting periods beginning after December 15, 2019, including interim periods within those years, with early adoption permitted only as of annual reporting periods beginning after December 15, 2018. The Company adopt ed this guidance on January 1, 2020. The adoption of ASU 2016-13 did not have material impact on the Company’s consolidated financial statements. In April 2019 , the FASB issued ASU 2019-04, Codification Improvements to Topic 326, Financial Instruments—Credit Losses, Topic 815, Derivatives and Hedging, and Topic 825, Financial Instruments , which, among other things, provides entities with practical expedients and policy elections related to the presentation and disclosure of accrued interest and the related allowance for credit losses and clarifies how to disclose line-of-credit arrangements that are converted to term loans in the vintage table disclosure. ASU 2019-04 has the same effective date as the new credit impairment standard for entities that have not yet adopted the standard. For entities that early adopted the new credit impairment standard, ASU 2019-04 is effective for fiscal years beginning after December 15, 2019 and interim periods therein. Entities that early adopted the new credit impairment standard may early adopt ASU 2019-04. The Company adopted this guidance on January 1, 2020. There was no significant impact of the adoption of this guidance on the Company’s consolidated financial statements. In March 2016, the FASB issued ASU 2016-09, Compensation-Stock Compensation: Improvements to Employee Share-Based Payment Accounting Accordingly, the Company increased its deferred tax assets by with a corresponding increase to its valuation allowance, to record previously unrecognized excess tax benefits. Additionally, the Company elected to make an accounting policy change to recognize forfeitures as they occur. As a result, the Company recorded an increase to additional paid-in capital and a corresponding increase to accumulated deficit of $0.3 million, respectively, to reflect the incremental stock-based compensation expense that would have been recognized in prior years pursuant to the modified guidance. Additionally, the Company increased its deferred tax assets by $0.1 million, with a corresponding increase to its valuation allowance, to record the excess tax benefit from the change In February 2016, the FASB issued ASU 2016-02, Leases (Topic 842) In January 2018, the FASB issued ASU 2018-01, Leases: Land Easement Practical Expedient for Transition to Topic 842 , which facilitates the implementation of ASU 2016-02. ASU 2018-01 gives entities the option to apply ASU 2016-02 as of the effective date, rather than as of the beginning of the earliest period presented. Consequently, an entity’s reporting for the comparative periods presented in the financial statements when it adopts the new leases standard will continue to be in accordance with current GAAP (ASC Topic 840) if the optional transition method is elected. The effective date of the transition requirements for the amendment is the same as the effective date and transition requirements in ASU 2016-02. The Company adopted this standard effective January 1, 2019 using the optional transition method, and chose to apply the new standard as of the effective date. Consequently, all of the Company’s operating lease commitments were recognized as lease liabilities, with corresponding right-of-use In May 2014, the FASB issued ASU 2014-09, Revenue from Contracts with Customers (Topic 606) |