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