Pathogenic SYNGAP1 mutations impair cognitive development by disrupting the maturation of dendritic spine synapses and restricting critical period plasticity.