@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #04183d;
  --print: #0b3f8f;
  --print-deep: #072c68;
  --cyan: #19a8da;
  --cyan-text: #5ccdf2;
  --sky: #c9ecf8;
  --paper: #f4f8fb;
  --fold: rgba(201, 236, 248, .45);
  --r: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--print-deep); color: var(--paper); font-family: "Archivo", system-ui, sans-serif; font-stretch: 100%; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
::selection { background: var(--cyan); color: var(--ink); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #fff; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: 8px; }

/* The carton: panels separated by dieline fold marks */
.carton { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 0; flex: 1; }
.panel { position: relative; background: var(--print); padding: clamp(24px, 4vw, 56px); }
.panel + .panel { border-top: 2px dashed var(--fold); }
.panel:first-child { border-radius: var(--r) var(--r) 0 0; }
.panel:last-child { border-radius: 0 0 var(--r) var(--r); }
.panel--deep { background: var(--print-deep); }
.studs::before {
  content: ""; position: absolute; inset: auto -120px -160px auto; width: 560px; height: 560px; pointer-events: none;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.07) 0 18%, transparent 18.5%),
    radial-gradient(circle at 75% 25%, rgba(255,255,255,.07) 0 18%, transparent 18.5%),
    radial-gradient(circle at 25% 75%, rgba(255,255,255,.07) 0 18%, transparent 18.5%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,.07) 0 18%, transparent 18.5%);
}
.panel.studs { overflow: hidden; }

.top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-stretch: 85%; font-size: 1.15rem; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.top nav { display: flex; gap: 22px; font-size: .98rem; }
.top nav a { text-decoration: none; color: var(--sky); }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

.display { font-stretch: 68%; font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.015em; text-wrap: balance; }
h1.display { font-size: clamp(3.1rem, 8vw, 6rem); }
h1.display em { font-style: normal; color: var(--cyan-text); }
h2.display { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: .95; }
.lede { margin-top: 22px; max-width: 36ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--sky); }
.sub { margin-top: 14px; color: var(--sky); max-width: 62ch; line-height: 1.55; }

/* Apple badge: official artwork, 48px tall, clear space = 1/4 height */
.get { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.badge { display: inline-block; padding: 12px; margin: -12px; line-height: 0; border-radius: 10px; }
.badge img { height: 48px; width: auto; display: block; }
.get p { font-size: .95rem; color: var(--sky); }

/* Front panel */
.front { min-height: min(780px, 94vh); display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: auto 1fr auto; gap: 0 clamp(24px, 4vw, 56px); }
.front .top { grid-column: 1 / -1; }
.front .pitch { align-self: center; padding: 36px 0; }
.front .art { align-self: center; display: grid; place-items: center; padding: 36px 0; }
.phone { width: min(330px, 72vw); aspect-ratio: 1320 / 2868; border-radius: 46px; padding: 9px; background: #0a0f1c; box-shadow: 0 40px 70px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); animation: rise 1.1s cubic-bezier(.16,1,.3,1) both; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 38px; display: block; }
@keyframes rise { from { transform: translateY(48px); box-shadow: 0 10px 20px -10px rgba(0,0,0,.4); } }

.band { grid-column: 1 / -1; display: flex; flex-wrap: wrap; border-top: 2px solid rgba(201,236,248,.25); }
.band div { flex: 1 1 160px; padding: 16px 18px 0 0; }
.band dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.band dd { margin-top: 4px; font-weight: 800; font-stretch: 80%; font-size: 1.2rem; font-variant-numeric: tabular-nums; }

/* Back panel: the alternate builds */
.builds { margin-top: 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; list-style: none; padding: 0; }
.builds figure { margin: 0; }
.builds img { width: 100%; height: auto; aspect-ratio: 1320 / 2868; object-fit: cover; object-position: top; border-radius: 18px; background: var(--paper); box-shadow: 0 18px 30px -18px rgba(0,0,0,.6); transition: transform .4s cubic-bezier(.16,1,.3,1); display: block; }
.builds li:hover img { transform: translateY(-6px); }
.builds figcaption { margin-top: 12px; font-size: .95rem; line-height: 1.4; color: var(--sky); }
.builds h3 { color: var(--paper); font-stretch: 80%; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; }

/* Side panel: contents */
.contents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contents h2 { font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .02em; }
.dots { list-style: none; padding: 0; margin-top: 12px; line-height: 1.7; color: var(--sky); }
.dots li { display: flex; gap: 10px; align-items: baseline; }
.dots li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); transform: translateY(-1px); }

/* Reading pages: support, privacy */
.read { max-width: 70ch; margin-top: 40px; line-height: 1.65; color: var(--sky); }
.read h2 { margin-top: 40px; color: var(--paper); font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .02em; line-height: 1.15; }
.read h3 { margin-top: 26px; color: var(--paper); font-size: 1.2rem; font-weight: 750; }
.read p, .read ul { margin-top: 12px; }
.read ul { padding-left: 1.2em; }
.read li + li { margin-top: 6px; }
.read a { color: #fff; }
.read strong { color: var(--paper); }
.updated { margin-top: 14px; color: var(--sky); font-size: .95rem; }

/* Studio page */
.apps { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; list-style: none; padding: 0; }
.app { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; padding: 22px; border-radius: var(--r); background: var(--print-deep); text-decoration: none; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; box-shadow: 0 16px 30px -22px rgba(0,0,0,.6); }
.app:hover { transform: translateY(-3px); box-shadow: 0 24px 36px -22px rgba(0,0,0,.7); color: inherit; text-decoration: none; }
.app img { width: 72px; height: 72px; }
.app strong { display: block; font-stretch: 80%; font-weight: 900; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .01em; }
.app span { color: var(--sky); line-height: 1.45; display: block; margin-top: 4px; }

.flap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px) 40px; color: var(--sky); font-size: .84rem; line-height: 1.6; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; }
.flap p { max-width: 90ch; }
.flap nav { display: flex; gap: 18px; align-self: start; }

@media (max-width: 900px) {
  .front { grid-template-columns: 1fr; grid-template-rows: none; }
  .front .art { padding-top: 0; }
  .builds { grid-template-columns: repeat(3, 1fr); }
  .contents { grid-template-columns: 1fr; }
  .flap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .builds { grid-template-columns: repeat(2, 1fr); }
  .top nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
