@import url("https://fonts.googleapis.com/css2?family=Liu+Jian+Mao+Cao&family=Zhi+Mang+Xing&display=swap");

/* 城中川 — unit / localnav / scrolly patterns. */

:root {
  --apple-black: #000;
  --apple-white: #fff;
  --apple-bg: #f5f5f7;
  --apple-fg: #1d1d1f;
  --apple-muted: #86868b;
  --apple-blue: #2997ff;
  --apple-blue-dark: #0066cc;
  --apple-blue-btn: #0071e3;
  --gn-h: 44px;
  --ln-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { scroll-padding-top: calc(var(--gn-h) + var(--ln-h) + 8px); }

html, body {
  margin: 0;
  padding: 0;
  background: var(--apple-black);
  color: var(--apple-white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  padding-top: var(--gn-h);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
code { font-size: 0.9em; }

/* Left-corner face */
.corner-face {
  position: fixed;
  left: 14px;
  top: calc(var(--gn-h) + 10px);
  z-index: 85;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  background: #1d1d1f;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.corner-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.corner-face:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}
@media (max-width: 734px) {
  .corner-face {
    width: 56px;
    height: 56px;
    left: 10px;
    top: calc(var(--gn-h) + 8px);
  }
}

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: #000;
  padding: 24px;
}
.age-gate.is-hidden { display: none; }
.age-card {
  width: min(420px, 100%);
  text-align: center;
  animation: fade-up 0.7s var(--ease-out) both;
}
.age-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--apple-muted);
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.age-title {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 12px;
}

body.age-locked {
  overflow: hidden;
  height: 100%;
}

/* JIT preorder */
.jit {
  background: #fff;
  color: var(--apple-fg);
  padding: 80px 22px 40px;
}
.jit-inner {
  max-width: 720px;
  margin: 0 auto;
}
.jit h2 {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-align: center;
}
.jit-lead {
  text-align: center;
  color: #6e6e73;
  margin: 0 0 36px;
  font-size: 17px;
}
.jit-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.jit-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 18px;
  background: var(--apple-bg);
  border: 1px solid #d2d2d7;
}
.jit-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1d1d1f;
  color: #fff;
  font-weight: 600;
}
.jit-steps h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 600;
}
.jit-steps p {
  margin: 0;
  color: #6e6e73;
  font-size: 15px;
}
.jit-note {
  margin: 22px 0 0;
  font-size: 13px;
  color: #6e6e73;
  text-align: center;
}
.bag-deposit {
  border-top: 0 !important;
  padding-top: 0 !important;
  color: var(--apple-blue);
}

/* FAQ */
.faq {
  background: var(--apple-bg);
  color: var(--apple-fg);
  padding: 80px 22px;
}
.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}
.faq h2 {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  text-align: center;
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: #fff;
  border-radius: 16px;
  padding: 4px 18px;
  border: 1px solid #d2d2d7;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--apple-muted);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0 0 16px;
  color: #6e6e73;
  font-size: 15px;
}
.age-copy { color: var(--apple-muted); margin: 0 0 28px; }
.age-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons — Apple pill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--ease);
}
.btn:hover { transform: scale(1.02); }
.btn-light { background: var(--apple-white); color: var(--apple-black); }
.btn-dark { background: var(--apple-blue-btn); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-block { width: 100%; }

/* Global nav — Apple globalnav */
.globalnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--gn-h);
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.globalnav-content {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-ink {
  font-family: "Zhi Mang Xing", "Liu Jian Mao Cao", "Kaiti SC", "STKaiti", "KaiTi", cursive;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}
.brand-mark-nav {
  height: 30px;
  max-width: 168px;
}
.brand-mark-hero {
  height: clamp(88px, 18vw, 168px);
  max-width: min(720px, 94vw);
  margin: 0 auto;
}
.brand-mark-age {
  height: 56px;
  max-width: 280px;
  margin: 0 auto 4px;
}
.brand-mark-footer {
  display: inline-block;
  height: 22px;
  max-width: 128px;
  vertical-align: -6px;
  filter: invert(1) brightness(0.18) contrast(1.2);
}

.gn-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 15px;
  white-space: nowrap;
}
.gn-list {
  display: flex;
  gap: 18px;
  color: #d2d2d7;
}
.gn-list a:hover { color: #fff; }
.gn-bag { color: #d2d2d7; }
.gn-bag:hover { color: #fff; }

@media (max-width: 1068px) {
  .gn-list { display: none; }
}

/* Local nav — Apple product subnav */
.localnav {
  position: fixed;
  top: var(--gn-h);
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--ln-h);
  background: rgba(29, 29, 31, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transform: translateY(-120%);
  transition: transform 0.45s var(--ease);
}
.localnav.is-shown { transform: translateY(0); }
.localnav-content {
  max-width: 980px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.localnav-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  display: flex;
  align-items: center;
}
.localnav-title .brand-mark-nav {
  height: 26px;
}
.localnav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: #d2d2d7;
}
.localnav-menu a:hover { color: #fff; }
.localnav-button {
  background: var(--apple-blue-btn) !important;
  color: #fff !important;
  padding: 4px 11px;
  border-radius: 980px;
  font-size: 12px;
}

/* Units — Apple homepage modules */
.unit {
  position: relative;
  min-height: 692px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 72px 22px 0;
  overflow: hidden;
}
.unit-hero {
  min-height: calc(100svh - var(--gn-h));
  padding-top: 56px;
}
.unit-dark { background: #000; color: #f5f5f7; }
.unit-light { background: var(--apple-bg); color: var(--apple-fg); }

.unit-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.unit-headline {
  font-size: clamp(40px, 7vw, 56px);
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
  display: flex;
  justify-content: center;
}
.unit-subhead {
  font-size: clamp(21px, 3.2vw, 28px);
  line-height: 1.14286;
  font-weight: 400;
  letter-spacing: 0.007em;
  margin: 0 0 12px;
}
.unit-desc {
  font-size: 17px;
  color: var(--apple-muted);
  max-width: 480px;
  margin: 0 auto 16px;
}
.unit-light .unit-desc { color: #6e6e73; }

.unit-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.link {
  color: var(--apple-blue);
  font-size: 21px;
  transition: color 0.2s ease;
}
.link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.link-dark { color: var(--apple-blue-dark); }
.link-dark:hover { color: var(--apple-blue-btn); }

.unit-media {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin-top: 20px;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  padding-bottom: 36px;
}

/* Device silhouettes */
.hero-stage {
  width: 100%;
  height: auto;
  min-height: min(62vh, 640px);
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.device { position: relative; }
.device-body {
  width: 220px;
  height: 340px;
  border-radius: 48% 48% 42% 42% / 28% 28% 48% 48%;
  background: linear-gradient(160deg, #3a3d45, #12141a 55%, #1c1f26);
  box-shadow: 0 40px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.14);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  animation: floaty 8s ease-in-out infinite;
}
.device-lg .device-body { width: 240px; height: 370px; }
.device-sm .device-body { width: 180px; height: 280px; }
.device-sheen {
  position: absolute;
  inset: 8% 18%;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.22), transparent 46%);
}
.device-inner {
  position: absolute;
  inset: 22% 28% 18%;
  border-radius: 40% 40% 36% 36% / 24% 24% 42% 42%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,230,210,0.35), transparent 40%),
    linear-gradient(180deg, #5a4638, #2a211c 70%, #1a1411);
  transition: background 0.7s var(--ease), filter 0.7s ease;
}
.device-cap {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: 42%;
  height: 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3a3d45, #9a9fa8, #3a3d45);
}
.tone-warm .device-inner,
.device-body.tone-warm .device-inner {
  background: linear-gradient(180deg, #6b5648, #2c221c);
}

/* Typography sticky unit */
.unit-type {
  min-height: 220vh;
  padding: 0;
  justify-content: stretch;
}
.type-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 0 22px;
  background: #000;
}
.type-line {
  margin: 0;
  font-size: clamp(32px, 7vw, 64px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  opacity: 0.18;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.6s ease;
}
.type-line.is-on {
  opacity: 1;
  transform: translateY(0);
  color: #f5f5f7;
}

/* Scrolly canvas — Apple sticky product */
.scrolly {
  position: relative;
  height: 500vh;
  background: #000;
}
.scrolly-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.scrolly-canvas {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.scrolly-canvas .device {
  transition: transform 0.2s linear, filter 0.2s linear;
  will-change: transform, filter;
}
.layer {
  position: absolute;
  width: min(160px, 28vw);
  height: min(160px, 28vw);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.85);
  will-change: transform, opacity;
}
.layer-a { background: linear-gradient(145deg, #6b5648, #2c221c); }
.layer-b { background: linear-gradient(145deg, #4d5a6b, #1d222b); }
.layer-c { background: linear-gradient(145deg, #5a4a63, #221c28); }

.scrolly-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  padding: 0 22px;
  margin-top: min(34vh, 280px);
  transition: opacity 0.28s ease, transform 0.35s var(--ease-out);
}
.scrolly-copy.is-swap {
  opacity: 0;
  transform: translateY(16px);
}
.eyebrow {
  font-size: 14px;
  color: var(--apple-muted);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.scrolly-copy h2 {
  font-size: clamp(32px, 5.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.08;
}
.scrolly-copy p:last-child {
  margin: 0;
  color: var(--apple-muted);
  font-size: 19px;
}
.scrolly-progress {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(180px, 40vw);
  height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.scrolly-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.scrolly-pins { height: 100%; }
.pin { height: 100vh; }

/* Light media */
.media-light {
  place-items: center;
}
.glow-orb {
  position: absolute;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,0.18), transparent 65%);
  filter: blur(10px);
}

/* Tiles — Apple 2x2 */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: #fff;
}
.tiles .tile:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.tile {
  min-height: 640px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 0;
  position: relative;
}
.tile-dark { background: #000; color: #f5f5f7; }
.tile-light { background: var(--apple-bg); color: var(--apple-fg); }
.tile-copy h3 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 6px;
  line-height: 1.1;
}
.tile-copy p {
  margin: 0 0 12px;
  font-size: 21px;
  color: var(--apple-muted);
}
.tile-light .tile-copy p { color: #6e6e73; }
.tile-media {
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 8px 16px 28px;
}
.mini-device {
  width: 110px;
  height: 180px;
  border-radius: 48% 48% 42% 42% / 28% 28% 48% 48%;
  box-shadow: 0 30px 50px rgba(0,0,0,0.35);
  transition: transform 0.6s var(--ease-out);
}
.mini-device.lg { width: 160px; height: 260px; }
.tile:hover .mini-device { transform: translateY(-10px) scale(1.03); }

.product-photo {
  display: block;
  width: min(560px, 90%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}
.tile-light .product-photo,
.shop-card .product-photo,
.compare-table .product-photo {
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.12));
}
.product-photo.lg {
  width: min(620px, 92%);
}
.product-photo.xl,
.product-hero .product-photo {
  width: min(720px, 94vw);
  margin: 28px auto 20px;
}
.hero-photo {
  width: min(640px, 92vw);
  margin: 0;
}
.tile-media .product-photo {
  width: min(460px, 88%);
}
.tile:hover .product-photo,
.shelf-card:hover img.shelf-art,
.family-card:hover .product-photo,
.shop-card:hover .product-photo {
  transform: translateY(-8px) scale(1.03);
}
.pack-art {
  width: min(200px, 52%);
  height: 140px;
  border-radius: 18px;
  background: linear-gradient(180deg, #3a3a3c, #1d1d1f);
  box-shadow: 0 24px 40px rgba(0,0,0,0.28);
}
.media-light .pack-art {
  background: linear-gradient(180deg, #ececef, #d2d2d7);
}
.tone-a { background: linear-gradient(160deg, #6b5648, #2c221c); }
.tone-b { background: linear-gradient(160deg, #4d5a6b, #1d222b); }
.tone-c { background: linear-gradient(160deg, #5a4a63, #221c28); }
.tone-d { background: linear-gradient(160deg, #3d4a42, #161c18); }
.tile-map {
  background:
    radial-gradient(circle at 50% 40%, rgba(41,151,255,0.35), transparent 45%),
    linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
  width: 70%;
  height: 45%;
  border-radius: 50%;
  margin-bottom: 48px;
}

@media (max-width: 734px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding-bottom: 28px; }
  .tile-copy h3 { font-size: 32px; }
}

/* Collection models */
.collection { background: #000; }
.section-head {
  text-align: center;
  padding: 80px 22px 40px;
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.model {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: 620px;
  padding: 60px 6vw;
}
.model-copy { text-align: left; max-width: 460px; }
.model .eyebrow { color: var(--apple-muted); margin-bottom: 8px; }
.model h3 {
  font-size: 48px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.model .price {
  font-size: 21px;
  margin: 0 0 16px;
  color: var(--apple-muted);
}
.unit-light .price { color: #6e6e73; }
.model-desc {
  font-size: 17px;
  color: var(--apple-muted);
  margin: 0 0 18px;
}
.unit-light .model-desc { color: #6e6e73; }
.bullets {
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
  color: var(--apple-muted);
  font-size: 14px;
}
.bullets li::before {
  content: "• ";
  color: var(--apple-blue);
}
.model-media {
  display: grid;
  place-items: center;
  min-height: 320px;
}
@media (max-width: 734px) {
  .model {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px 22px;
    text-align: center;
  }
  .model-copy { text-align: center; margin: 0 auto; }
  .model h3 { font-size: 36px; }
}

/* Shelf carousel — Apple TV shelf */
.shelf {
  background: #fff;
  color: var(--apple-fg);
  padding: 72px 0 80px;
  overflow: hidden;
}
.shelf-title {
  max-width: 980px;
  margin: 0 auto 28px;
  padding: 0 22px;
  font-size: 40px;
  font-weight: 600;
}
.shelf-track {
  display: flex;
  gap: 20px;
  padding: 0 22px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-card {
  flex: 0 0 min(320px, 72vw);
  scroll-snap-align: start;
  margin: 0;
}
.shelf-art {
  height: 220px;
  border-radius: 18px;
  margin-bottom: 12px;
  transition: transform 0.45s var(--ease-out);
}
img.shelf-art {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: contain;
  background: #fff;
}
.highlights img.shelf-art { background: #111; }
.shelf-card:hover .shelf-art { transform: scale(1.03); }
.shelf-art.a { background: linear-gradient(145deg, #2a241f, #6b5648); }
.shelf-art.b { background: linear-gradient(145deg, #1f2430, #4d5a6b); }
.shelf-art.c { background: linear-gradient(145deg, #241f2a, #5a4a63); }
.shelf-art.d { background: linear-gradient(145deg, #1a221c, #3d4a42); }
.shelf-art.e { background: linear-gradient(145deg, #0b1c33, #2997ff); }
.shelf-art.f { background: linear-gradient(145deg, #222, #666); }
.shelf-card figcaption {
  font-size: 14px;
  color: #6e6e73;
}

/* Buy */
.unit-buy {
  min-height: auto;
  padding: 100px 22px 120px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
  text-align: left;
  max-width: 980px;
  margin: 0 auto;
}
.unit-buy .unit-copy { text-align: left; margin: 0; }
.bag-panel {
  background: #1d1d1f;
  border-radius: 28px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.08);
}
.bag-panel h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
}
#bag-list {
  display: grid;
  gap: 10px;
  min-height: 72px;
  margin-bottom: 16px;
  color: var(--apple-muted);
}
#bag-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.bag-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 8px;
}
.fine {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--apple-muted);
}

.db-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  border-radius: 980px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  color: var(--apple-muted);
}
.db-badge.is-cloud {
  background: rgba(41, 151, 255, 0.18);
  color: var(--apple-blue);
}

.order-form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.order-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--apple-muted);
  text-align: left;
}
.order-form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.35);
  color: #f5f5f7;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
}
.order-form input:focus {
  outline: none;
  border-color: rgba(41, 151, 255, 0.7);
}
@media (max-width: 734px) {
  .unit-buy {
    grid-template-columns: 1fr;
    padding: 72px 22px;
  }
}

/* Footer — Apple style */
.footer {
  background: var(--apple-bg);
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.33337;
  padding: 20px 0 40px;
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}
.footer-dir {
  border-bottom: 1px solid #d2d2d7;
  padding-bottom: 12px;
  margin: 0 0 12px;
  color: #1d1d1f;
  font-size: 12px;
}
.footer-legal { margin: 0 0 16px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 16px;
}
.footer-links a:hover { text-decoration: underline; }
.footer-copy { margin: 0; color: #6e6e73; }

/* Scroll-driven progressive enhancement */
@supports (animation-timeline: view()) {
  [data-unit] .unit-copy,
  [data-unit] .tile-copy,
  [data-unit] .model-copy {
    animation: view-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }
}

@keyframes view-fade {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* JS reveal fallback */
.reveal-ready .unit-copy,
.reveal-ready .tile-copy,
.reveal-ready .model-copy,
.reveal-ready .section-head,
.reveal-ready .shelf-title {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-ready .is-in {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .device-body { animation: none !important; }
}

/* —— Inner pages: apple.com product / store / support system —— */
body.inner-page {
  background: var(--apple-bg);
  color: var(--apple-fg);
  padding-top: calc(var(--gn-h) + var(--ln-h));
}
body.inner-page .corner-face {
  top: calc(var(--gn-h) + var(--ln-h) + 10px);
}

/* Light localnav on Store / Support / Compare — like apple.com/store */
body.inner-page:not([data-page="product"]) .localnav {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
body.inner-page:not([data-page="product"]) .localnav-title {
  color: #1d1d1f;
}
body.inner-page:not([data-page="product"]) .localnav-menu {
  color: #1d1d1f;
}
body.inner-page:not([data-page="product"]) .localnav-menu a:hover {
  color: #000;
}

.ribbon {
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  padding: 12px 22px;
  background: #1d1d1f;
  color: #f5f5f7;
  margin: 0;
}
.ribbon a { color: var(--apple-blue); }
.ribbon a:hover { text-decoration: underline; }

.btn-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
.mini-device.xl {
  width: 200px;
  height: 320px;
  margin: 40px auto 28px;
}
.center-link {
  text-align: center;
  padding: 36px 22px 80px;
  margin: 0;
}

/* Globalnav tools, flyouts, drawer, search — apple.com */
.gn-menu {
  display: none;
  width: 30px;
  height: 30px;
  background: transparent;
  color: #d2d2d7;
  position: relative;
}
.gn-menu span {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  margin: 5px auto;
  transition: transform 0.25s var(--ease);
}
body.nav-open .gn-menu span:first-child { transform: translateY(3px) rotate(45deg); }
body.nav-open .gn-menu span:last-child { transform: translateY(-3px) rotate(-45deg); }

.gn-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.gn-lang {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.gn-lang button {
  background: none;
  border: 0;
  color: #86868b;
  cursor: pointer;
  padding: 0 5px;
  min-height: 0;
  font: inherit;
  font-weight: 600;
}
.gn-lang button.is-on { color: #f5f5f7; }
.gn-lang span { color: #515154; padding: 0 1px; }
.age-lang {
  justify-content: center;
  margin-top: 18px;
}
.age-lang button.is-on { color: #1d1d1f; }
.age-lang button { color: #86868b; }
.drawer-lang {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 15px;
}
.gn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #d2d2d7;
  padding: 0;
  min-height: 0;
  position: relative;
}
.gn-icon:hover { color: #fff; }
.gn-bag-count {
  position: absolute;
  top: -7px;
  right: -10px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 980px;
  background: var(--apple-blue-btn);
  color: #fff;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
}
.gn-bag-count:empty,
.gn-bag-count[data-empty="1"] { display: none; }

.gn-list li { position: static; }
.gn-flyout {
  display: none;
  position: fixed;
  top: var(--gn-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(22, 22, 23, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 28px 22px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.has-flyout:hover .gn-flyout,
.has-flyout:focus-within .gn-flyout {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 220px));
  gap: 40px;
  justify-content: center;
}
.gn-flyout-head {
  margin: 0 0 10px;
  font-size: 12px;
  color: #86868b;
  font-weight: 400;
}
.gn-flyout-col {
  max-height: min(70vh, 560px);
  overflow: auto;
}
.gn-flyout-col a {
  display: block;
  color: #fff;
  font-size: 14px;
  padding: 5px 0;
}
.gn-flyout-col a.gn-flyout-lg {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 4px 0 8px;
}
.gn-flyout-col a:hover { color: var(--apple-blue); }

.gn-drawer {
  display: none;
  position: fixed;
  inset: var(--gn-h) 0 0 0;
  z-index: 95;
  background: #000;
  padding: 20px 40px 40px;
  overflow: auto;
}
.gn-drawer a {
  display: block;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: #f5f5f7;
}
body.nav-open { overflow: hidden; }
body.nav-open .gn-drawer { display: block; }
body.nav-open .localnav { visibility: hidden; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.48);
  display: none;
}
.search-overlay.is-open { display: block; }
.search-overlay[hidden] { display: none !important; }
.search-panel {
  background: #fff;
  color: var(--apple-fg);
  padding: 18px 22px 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.search-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #d2d2d7;
  padding-bottom: 10px;
}
.search-mag { color: #86868b; display: flex; }
.search-form input {
  flex: 1;
  border: 0;
  font: inherit;
  font-size: 24px;
  padding: 10px 0;
  outline: none;
  background: transparent;
  color: var(--apple-fg);
}
.search-close {
  background: none;
  color: var(--apple-blue-dark);
  font-size: 17px;
  min-height: 0;
  padding: 0;
}
.search-results {
  max-width: 680px;
  margin: 18px auto 0;
}
.search-kicker {
  font-size: 12px;
  color: #86868b;
  margin: 0 0 8px;
}
.search-results a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f7;
  color: var(--apple-fg);
  font-size: 14px;
}
.search-results a:hover { color: var(--apple-blue-dark); }
.search-results a span { color: #86868b; }

@media (max-width: 1068px) {
  .gn-list { display: none; }
  .gn-menu { display: block; }
  .has-flyout:hover .gn-flyout,
  .has-flyout:focus-within .gn-flyout { display: none; }
  .search-form input { font-size: 19px; }
}

/* Family / collection — apple.com/iphone */
.family-hero {
  text-align: center;
  padding: 64px 22px 20px;
}
.family-hero h1 {
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 10px;
}
.family-hero .hero-split {
  display: block;
}
.family-hero .hero-split em {
  font-style: normal;
  color: var(--apple-blue-btn);
}
.family-hero p {
  font-size: 21px;
  color: #6e6e73;
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.38;
}
.story-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 22px 96px;
}
.story-body .brand-mark-hero {
  display: block;
  margin: 0 auto 36px;
}
.story-body p {
  font-size: 21px;
  line-height: 1.47;
  letter-spacing: 0.011em;
  margin: 0 0 22px;
  color: var(--apple-fg);
}
.story-body .story-note {
  color: #6e6e73;
  font-size: 19px;
}
.family-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 22px 20px;
}
.family-card {
  background: #fff;
  border-radius: 28px;
  padding: 40px 24px 32px;
  text-align: center;
  display: block;
  color: inherit;
  transition: transform 0.35s var(--ease-out);
}
.family-card:hover { transform: translateY(-6px); }
.family-card h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 18px 0 4px;
  letter-spacing: -0.01em;
}
.family-card p { margin: 0 0 6px; color: #6e6e73; font-size: 17px; }
.family-card .price { color: var(--apple-fg); font-size: 17px; margin-bottom: 12px; }
.family-card .mini-device,
.family-card .product-photo { margin: 0 auto 8px; }
.family-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 8px;
}
.family-links .link { font-size: 17px; }

@media (max-width: 734px) {
  .family-grid { grid-template-columns: 1fr; }
  .family-hero h1 { font-size: 40px; }
}

/* Product overview — apple.com/iphone-16 style */
.product-hero {
  text-align: center;
  padding: 48px 22px 56px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.product-story {
  width: 100%;
  margin: 0;
  padding: 32px 22px 16px;
  text-align: center;
  background: var(--apple-bg);
  color: #6e6e73;
  font-size: 19px;
  line-height: 1.47;
}
.product-story p {
  max-width: 640px;
  margin: 0 auto;
}
.product-hero + .tech { padding-top: 24px; }
.product-hero h1 {
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  line-height: 1.05;
}
.product-hero .lede {
  font-size: clamp(21px, 3vw, 28px);
  margin: 0 0 16px;
  font-weight: 400;
}
.product-hero .unit-links .link { font-size: 21px; }
.product-hero .add-btn { margin-top: 8px; }

.chapter-unit { min-height: 620px; }
.chapter-unit .unit-copy { padding-top: 8px; }

.highlights { background: #000; color: #f5f5f7; padding: 72px 0 40px; }
.highlights .shelf-title { color: #f5f5f7; }
.highlights .shelf-card figcaption { color: #a1a1a6; }

.tech {
  background: #fff;
  color: var(--apple-fg);
  padding: 80px 22px;
}
.tech h2 {
  text-align: center;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}
.tech-table {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}
.tech-table th,
.tech-table td {
  padding: 18px 0;
  border-bottom: 1px solid #d2d2d7;
  text-align: left;
  font-size: 17px;
}
.tech-table th {
  width: 38%;
  font-weight: 600;
}
.tech-table td { color: #6e6e73; }

.compare-strip,
.ways {
  text-align: center;
  padding: 72px 22px;
  background: var(--apple-bg);
  color: var(--apple-fg);
}
.compare-strip h2,
.ways h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.ways { background: #fff; }
.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 28px auto 0;
  text-align: left;
}
.ways-card {
  background: var(--apple-bg);
  border-radius: 18px;
  padding: 28px 24px;
}
.ways-card h3 { margin: 0 0 8px; font-size: 21px; }
.ways-card p { margin: 0; color: #6e6e73; font-size: 14px; }

@media (max-width: 734px) {
  .ways-grid { grid-template-columns: 1fr; }
  .product-hero { min-height: auto; padding-bottom: 48px; }
}

/* Compare — apple.com/iphone/compare */
.compare-wrap {
  overflow-x: auto;
  padding: 12px 22px 80px;
}
.compare-table {
  width: 100%;
  max-width: 1100px;
  min-width: 760px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: 18px;
}
.compare-table th,
.compare-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #d2d2d7;
  text-align: center;
  vertical-align: top;
  font-size: 14px;
}
.compare-table thead th { padding-top: 28px; }
.compare-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--apple-fg);
}
.compare-table .cmp-name {
  font-size: 21px;
  font-weight: 600;
  display: block;
  margin: 10px 0 4px;
  color: var(--apple-fg);
}
.compare-table .cmp-price { color: #6e6e73; display: block; margin-bottom: 10px; }
.compare-table .mini-device,
.compare-table .product-photo { margin: 0 auto; }
.compare-table .product-photo {
  width: 160px;
  height: 160px;
  box-shadow: none;
}

/* Store — apple.com/store */
.store-pills {
  display: flex;
  gap: 28px;
  justify-content: center;
  overflow-x: auto;
  padding: 8px 22px 36px;
  scrollbar-width: none;
}
.store-pills::-webkit-scrollbar { display: none; }
.store-pills a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--apple-fg);
  min-width: 84px;
}
.store-pills a:hover { color: var(--apple-blue-dark); }
.pill-icon {
  width: 56px;
  height: 88px;
  border-radius: 40% 40% 36% 36% / 24% 24% 42% 42%;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}
.pill-photo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: transparent;
  border-radius: 14px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 22px 40px;
}
.shop-card {
  background: #fff;
  border-radius: 28px;
  padding: 36px 24px 28px;
  text-align: center;
}
.shop-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 16px 0 4px;
}
.shop-card .price { margin: 0 0 16px; color: #6e6e73; }
.shop-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.shop-actions .link { font-size: 17px; }
.shop-card .mini-device,
.shop-card .product-photo { margin: 0 auto; }
.shop-card .product-photo {
  width: min(360px, 92%);
  height: auto;
}

.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px 80px;
}
.help-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px 32px;
}
.help-card h3 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.help-card p { margin: 0 0 12px; color: #6e6e73; }
.section-kicker {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 22px 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-kicker em {
  font-style: normal;
  color: #6e6e73;
  font-weight: 400;
}

@media (max-width: 734px) {
  .shop-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
}

/* Buy / Bag — apple.com/shop/buy + bag */
.buy-page {
  background: var(--apple-bg);
  color: var(--apple-fg);
  min-height: 70vh;
  padding-bottom: 40px;
}
.buy-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 22px 80px;
  align-items: start;
}
.buy-models h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.pick {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #d2d2d7;
  margin-bottom: 12px;
  font-size: 17px;
  color: var(--apple-fg);
}
.pick-photo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
}
.pick:hover { border-color: var(--apple-blue-btn); }
.pick.is-added { border-color: var(--apple-blue-btn); box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.25); }
.pick small { color: #6e6e73; font-size: 13px; }

.inner-page .bag-panel {
  background: #fff;
  color: var(--apple-fg);
  border: 1px solid #d2d2d7;
}
.inner-page .bag-panel h3 { color: var(--apple-fg); }
.inner-page #bag-list { color: #6e6e73; }
.inner-page .bag-total { border-top-color: #d2d2d7; }
.inner-page .order-form input {
  background: #fff;
  color: var(--apple-fg);
  border-color: #d2d2d7;
}
.inner-page .fine { color: #6e6e73; }
.bag-panel-wide {
  max-width: 680px;
  margin: 0 auto 80px;
}
.bag-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bag-qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--apple-bg);
  color: var(--apple-fg);
  font-size: 16px;
  min-height: 0;
  padding: 0;
}
#bag-list .bag-row {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  gap: 12px;
  align-items: center;
}
.bag-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
}

@media (max-width: 734px) {
  .buy-layout { grid-template-columns: 1fr; }
}

/* Support — apple.com/support */
.support-hero {
  text-align: center;
  padding: 56px 22px 24px;
}
.support-hero h1 {
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.support-search {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  padding: 10px 16px;
}
.support-search input {
  flex: 1;
  border: 0;
  font: inherit;
  font-size: 17px;
  outline: none;
  background: transparent;
}
.support-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto 20px;
  padding: 20px 22px 40px;
}
.support-topic {
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  display: block;
  color: inherit;
}
.support-topic strong {
  display: block;
  font-size: 19px;
  margin-bottom: 6px;
}
.support-topic span { color: #6e6e73; font-size: 14px; }

.inner-page .faq { padding-top: 24px; }

@media (max-width: 734px) {
  .support-topics { grid-template-columns: 1fr; }
}

/* Site map directory */
.sitemap-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 22px 80px;
}
.sitemap-page h1 {
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 28px;
}
.sitemap-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sitemap-cols h2 {
  font-size: 12px;
  color: #6e6e73;
  margin: 0 0 10px;
  font-weight: 600;
}
.sitemap-cols a {
  display: block;
  padding: 5px 0;
  color: var(--apple-fg);
  font-size: 14px;
}
.sitemap-cols a:hover { color: var(--apple-blue-dark); text-decoration: underline; }
@media (max-width: 734px) {
  .sitemap-cols { grid-template-columns: 1fr; }
}

/* Footer columns — apple.com footer */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 8px 0 20px;
  border-bottom: 1px solid #d2d2d7;
}
.footer-cols h4 {
  font-size: 12px;
  color: #1d1d1f;
  margin: 0 0 10px;
  font-weight: 600;
}
.footer-cols a {
  display: block;
  margin: 5px 0;
  color: #424245;
  font-size: 12px;
}
.footer-cols a:hover { text-decoration: underline; }
.footer-dir a { color: #424245; }
.footer-dir a:hover { text-decoration: underline; }
.footer-more {
  margin: 12px 0;
  font-size: 12px;
}
.footer-more a { color: var(--apple-blue-dark); }
.footer-more a:hover { text-decoration: underline; }
.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0 12px;
  border-bottom: 1px solid #d2d2d7;
  margin-bottom: 12px;
}
.footer-pipe {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.footer-pipe li {
  padding: 0 10px;
  border-right: 1px solid #d2d2d7;
  line-height: 1.3;
}
.footer-pipe li:last-child { border-right: 0; }
.footer-pipe a { color: #424245; }
.footer-pipe a:hover { text-decoration: underline; }
.footer-locale { margin: 0; color: #1d1d1f; }
@media (max-width: 734px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

body.search-open { overflow: hidden; }

