The roots of the iPhone can probably be traced to many corners of Apple's campus in Cupertino, Calif., but a Silicon Valley courtroom on Friday heard how some of the phone’s most recognizable software design features were born of a team working in a dark, dirty, windowless room with special security to keep others out.