/* Camera ’07: a white, glossy-silver product page. */

:root {
  --ink: #333;
  --ink-soft: #666;
  --ink-faint: #999;
  --rule: #d6d6d6;
  --page: #fff;
  --link: #08c;
  --font: "Lucida Grande", "Lucida Sans Unicode", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gloss: linear-gradient(#fdfdfd 0%, #e9e9e9 49%, #d9d9d9 51%, #cfcfcf 100%);
  --gloss-down: linear-gradient(#c4c4c4 0%, #d3d3d3 49%, #dcdcdc 51%, #e6e6e6 100%);
}

/* CJK pages: Latin text keeps the Latin face (and its ’ in Camera ’07), the rest falls to the system's CJK font. */
html:lang(ja) {
  --font: "Lucida Grande", "Lucida Sans Unicode", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", sans-serif;
  --ui: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
}
html:lang(ko) {
  --font: "Lucida Grande", "Lucida Sans Unicode", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --ui: "Helvetica Neue", Helvetica, Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
html:lang(zh-Hans) {
  --font: "Lucida Grande", "Lucida Sans Unicode", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ui: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
html:lang(zh-Hant) {
  --font: "Lucida Grande", "Lucida Sans Unicode", "PingFang TC", "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --ui: "Helvetica Neue", Helvetica, Arial, "PingFang TC", "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}
html:is(:lang(ja), :lang(ko), :lang(zh)) body { line-break: strict; }
html:is(:lang(ja), :lang(ko), :lang(zh)) :is(.headline, .section-title, .productname, .feature .lead) { letter-spacing: 0; }
html:is(:lang(ja), :lang(ko), :lang(zh)) :is(.headline, .intro, .section-intro, .section-title, .modecaption) { text-wrap: balance; }
html:lang(ja) body { word-break: auto-phrase; }
html:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 12px/1.5 var(--font);
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* Global nav: the glossy silver bar, with the language links above it. */
.globalnav-wrap { padding: 8px 16px 0; }
.langs {
  max-width: 980px; margin: 0 auto 8px;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 14px;
  font-size: 11px;
}
.langs a { color: var(--ink-soft); }
.langs a[aria-current] { color: var(--ink); font-weight: bold; }
.globalnav {
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: stretch;
  height: 36px;
  border: 1px solid #a8a8a8; border-radius: 5px;
  background: var(--gloss);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.12);
  overflow: hidden;
}
.globalnav a {
  display: flex; align-items: center; gap: 7px;
  padding: 0 18px;
  color: #3a3a3a; font-size: 12px; text-shadow: 0 1px 0 rgba(255,255,255,.8);
  text-decoration: none;
  border-right: 1px solid #b4b4b4; box-shadow: 1px 0 0 rgba(255,255,255,.7);
}
.globalnav a:hover { background: linear-gradient(#f2f2f2, #dedede 49%, #cdcdcd 51%, #c3c3c3); }
.globalnav a:active { background: var(--gloss-down); }
.brand { font-weight: bold; }
.brand img { width: 22px; height: 22px; border-radius: 5px; box-shadow: 0 1px 1px rgba(0,0,0,.35); }
.navlinks { display: flex; list-style: none; margin: 0; padding: 0; flex: 1; }
.navlinks li { display: flex; flex: 1; }
.navlinks a { flex: 1; justify-content: center; }
.globalnav .store { border-right: 0; border-left: 1px solid #b4b4b4; box-shadow: inset 1px 0 0 rgba(255,255,255,.7); }

/* Product title row and the small grey sub-tabs. */
.titlebar {
  max-width: 980px; margin: 22px auto 0; padding: 0 16px 10px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--rule);
}
.productname { margin: 0; font: normal 26px/1 var(--font); color: #555; letter-spacing: -.5px; }
.subnav { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.subnav a {
  display: block; padding: 3px 11px; border-radius: 11px;
  color: var(--ink-soft); font-size: 11px;
}
.subnav a[aria-current] { background: linear-gradient(#9a9a9a, #7c7c7c); color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.35); }
.subnav a:hover { text-decoration: none; color: #222; }
.subnav a[aria-current]:hover { color: #fff; }

/* Hero. */
.hero { max-width: 980px; margin: 0 auto; padding: 34px 16px 10px; text-align: center; }
.headline {
  margin: 0; font: normal 34px/1.15 var(--font); letter-spacing: -1px; color: #222;
}
.intro { margin: 10px auto 0; max-width: 520px; font-size: 14px; color: var(--ink-soft); }
.support { margin: 6px 0 0; font-size: 11px; color: var(--ink-faint); }


/* Section heads in the same voice as the headline. */
.section-title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0; font: normal 26px/1.2 var(--font); letter-spacing: -.5px; color: #222;
}
.section-intro { margin: 8px auto 0; max-width: 520px; font-size: 13px; color: var(--ink-soft); text-align: center; }
/* Hero render of each iPhone Duo position, switched by the tabs below it. */
.stage { margin: 28px auto 6px; height: 500px; display: flex; justify-content: center; align-items: flex-end; }
.pose-shot { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: bottom; transition: opacity .25s ease; }
.pose-shot.fading { opacity: 0; }

/* Rounded glossy segmented switcher. */
.modes {
  display: inline-flex; margin-top: 4px;
  border: 1px solid #9c9c9c; border-radius: 13px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.1);
}
.modes button {
  appearance: none; border: 0; margin: 0;
  padding: 4px 18px; min-width: 84px;
  font: 11px/16px var(--font); color: #444; text-shadow: 0 1px 0 rgba(255,255,255,.8);
  background: var(--gloss); cursor: pointer;
}
.modes button + button { border-left: 1px solid #a6a6a6; }
.modes button[aria-selected="true"] {
  color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  background: linear-gradient(#8e8e8e 0%, #6f6f6f 49%, #5d5d5d 51%, #6a6a6a 100%);
}
.modes button:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.modecaption { margin: 10px 0 0; color: var(--ink-faint); font-size: 11px; min-height: 1.5em; }

.glossbtn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 16px; border-radius: 14px; border: 1px solid #9c9c9c;
  background: var(--gloss); color: #333; font-size: 12px; text-shadow: 0 1px 0 rgba(255,255,255,.8);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.glossbtn:hover { text-decoration: none; background: var(--gloss-down); }
.glossbtn img { width: 16px; height: 16px; border-radius: 4px; }
.glossbtn.blue {
  border-color: #1d4a8a; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.35);
  background: linear-gradient(rgb(122,161,224), rgb(70,117,201) 48%, rgb(47,98,186) 52%, rgb(66,119,204));
}

/* Features. */
.features { max-width: 980px; margin: 30px auto 0; padding: 0 16px; }
.feature h3 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 4px; font-size: 13px; color: #222;
}
.feature p { margin: 0; color: var(--ink-soft); }
.feature .lead { font-size: 22px; line-height: 1.2; color: #222; letter-spacing: -.5px; margin: 4px 0 10px; }
.feature.wide {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.feature.wide p:not(.lead) { font-size: 13px; max-width: 560px; }
.feature-art { width: 260px; height: auto; box-shadow: 0 2px 6px rgba(0,0,0,.25); border: 4px solid #fff; outline: 1px solid #ddd; }
.blurbs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 34px;
  padding: 26px 0 30px; border-bottom: 1px solid var(--rule);
}

/* Tiny glossy icons. */
.ico {
  flex: none; width: 22px; height: 22px; border-radius: 5px;
  background: linear-gradient(#f4f4f4, #d4d4d4 49%, #c2c2c2 51%, #d0d0d0);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.8);
  position: relative;
}
.ico::before {
  content: ""; position: absolute; inset: 4px; background: #4a4a52;
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat;
}
.ico-lens   { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6.2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Ccircle cx='7' cy='7' r='3'/%3E%3C/svg%3E"); }
.ico-iris   { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2'%3E%3Ccircle cx='7' cy='7' r='6.2'/%3E%3Cpath d='M7 .8 9.4 6M13 5.5 8.6 9.2M10.4 12.4 5.3 10.6M2 11 3.4 5.4M2.6 2.4l5 1.4'/%3E%3C/g%3E%3C/svg%3E"); }
.ico-finder { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.6' d='M1 4.5V1h3.5M9.5 1H13v3.5M13 9.5V13H9.5M4.5 13H1V9.5'/%3E%3Ccircle cx='7' cy='7' r='2'/%3E%3C/svg%3E"); }
.ico-grid   { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 1h3.5v3.5H1zM5.25 1h3.5v3.5h-3.5zM9.5 1H13v3.5H9.5zM1 5.25h3.5v3.5H1zM5.25 5.25h3.5v3.5h-3.5zM9.5 5.25H13v3.5H9.5zM1 9.5h3.5V13H1zM5.25 9.5h3.5V13h-3.5z'/%3E%3C/svg%3E"); }
.ico-button { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='3' y='.8' width='8' height='12.4' rx='1.6' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M11.6 3h1.4v2.4h-1.4zM11.6 7h1.4v3.6h-1.4z'/%3E%3C/svg%3E"); }
.ico-flip   { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' d='M2.6 6a4.5 4.5 0 0 1 8.3-1.6M11.4 8a4.5 4.5 0 0 1-8.3 1.6'/%3E%3Cpath d='M12 1.6v3.8H8.2zM2 12.4V8.6h3.8z'/%3E%3C/svg%3E"); }
.ico-fold   { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.4' d='M1 3h5.6v8H1zM7.4 3H13v8H7.4z'/%3E%3C/svg%3E"); }

/* iPhone Duo: rendered product shots. */
.duo { max-width: 980px; margin: 0 auto; padding: 30px 16px 6px; border-bottom: 1px solid var(--rule); }
.duo-shots { display: flex; justify-content: center; align-items: flex-end; gap: 36px; margin-top: 22px; }
.duo-shots figure { margin: 0; text-align: center; }
.duo-shots img { width: auto; height: 290px; margin: 0 auto; }
.duo-shots figcaption { max-width: 270px; margin: 14px auto 20px; color: var(--ink-soft); }
.duo-shots strong { color: #222; }

/* Gallery: justified rows of portrait and landscape photos, none cropped. */
.gallery { max-width: 980px; margin: 0 auto; padding: 30px 16px 0; text-align: center; }
.gallery h3 { margin: 0 0 20px; font: normal 20px var(--font); color: #444; }
.strip {
  list-style: none; margin: 0 auto; padding: 0 0 24px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
/* Five to a row (three portrait, two landscape) at any width above phone size. */
.strip li { flex: var(--ar) 1 calc(var(--ar) * (100% - 48px) / 4.95); }
.strip img { width: 100%; height: auto; aspect-ratio: var(--ar); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.gallery .note { margin: 0; color: var(--ink-faint); font-size: 11px; }

/* Download box. */
.download {
  max-width: 948px; margin: 40px auto 0; padding: 18px 22px;
  display: flex; align-items: center; gap: 18px;
  border: 1px solid #c9c9c9; border-radius: 8px;
  background: linear-gradient(#fafafa, #ececec);
}
.download img { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.download h3 { margin: 0; font-size: 18px; color: #222; }
.download p { margin: 2px 0 0; color: var(--ink-soft); }
.download .buttons { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.download .glossbtn[aria-disabled="true"] { cursor: default; color: #777; }

.footer {
  max-width: 980px; margin: 36px auto 0; padding: 14px 16px 40px;
  border-top: 1px solid var(--rule); color: var(--ink-faint); font-size: 11px;
}
.footer p { margin: 0 0 4px; }

@media (max-width: 900px) {
  .navlinks { display: none; }
  .brand { flex: 1; }
  .blurbs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .globalnav-wrap { padding-top: 6px; }
  .langs { justify-content: center; }
  .titlebar { margin-top: 16px; }
  .productname { font-size: 20px; }
  .headline { font-size: 25px; letter-spacing: -.5px; }
  .intro { font-size: 13px; }
  .stage { height: min(380px, 92vw); margin-top: 24px; }
  .modes button { min-width: 0; padding: 4px 14px; }
  .feature.wide { grid-template-columns: 1fr; gap: 18px; }
  .feature-art { width: min(260px, 100%); }
  .blurbs { grid-template-columns: 1fr; gap: 20px; }
  .section-title { font-size: 21px; }
  .duo-shots { flex-direction: column; align-items: center; gap: 10px; }
  .duo-shots img { height: auto; width: min(300px, 80vw); }
  .duo-shots figure:last-child img { width: min(200px, 54vw); }
  .strip { gap: 8px; }
  .strip li { flex-basis: calc(var(--ar) * 110px); }
  .download { flex-wrap: wrap; margin-left: 16px; margin-right: 16px; }
  .download .buttons { margin-left: 0; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pose-shot { transition: none; }
}
