/* apple-web.css — Apple-product-page style system. Values measured from apple.com (see reference/measured-tokens.md).
   Original code. Not affiliated with Apple. SF Pro is used only where the OS provides it; Inter elsewhere. */

@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600&display=swap");

:root {
  /* color */
  --c-black: #000;
  --c-ink: #1d1d1f;
  --c-snow: #f5f5f7;
  --c-white: #fff;
  --c-mist: #e8e8ed;
  --c-gray: #86868b;
  --c-gray-dark: #6e6e73;
  --c-graphite: #1d1d1f;
  --c-graphite-2: #2a2a2d;
  --c-blue: #0071e3;
  --c-blue-hover: #0077ed;
  --c-link: #0066cc;
  --c-link-dark: #2997ff;
  --c-new: #bf4800;
  --c-new-dark: #f56300;

  /* font */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* shape */
  --r-pill: 980px;
  --r-tile-lg: 36px;
  --r-tile: 28px;
  --r-card: 18px;
  --r-sm: 5px;

  /* layout */
  --w-text: 980px;
  --w-content: 1260px;
  --w-max: 1440px;
  --gutter: 22px;
  --section-pt: 120px;
  --section-pb: 120px;
  --nav-h: 44px;
  --localnav-h: 52px;

  /* motion */
  --ease: cubic-bezier(0.4, 0, 0.6, 1);         /* UI state */
  --ease-out: cubic-bezier(0.25, 0.1, 0.3, 1);  /* reveals */
  --d-hover: 100ms;
  --d-fade: 240ms;
  --d-color: 320ms;
  --d-reveal: 1000ms;
}

@media (max-width: 1068px) { :root { --section-pt: 100px; --section-pb: 100px; } }
@media (max-width: 734px)  { :root { --section-pt: 80px;  --section-pb: 80px;  } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px; line-height: 1.47059; letter-spacing: -0.022em; font-weight: 400;
  color: var(--c-ink); background: var(--c-white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--c-link-dark); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: inherit; color: var(--c-ink); }

/* ---------- themes ---------- */
.theme-dark  { background: var(--c-black); color: var(--c-snow); }
.theme-light { background: var(--c-snow);  color: var(--c-ink); }
.theme-white { background: var(--c-white); color: var(--c-ink); }
.theme-dark a { color: var(--c-link-dark); }
.theme-dark strong { color: var(--c-snow); }
.theme-dark .muted, .theme-dark .t-intro { color: var(--c-gray); }
.theme-light .muted, .theme-white .muted, .theme-light .t-intro, .theme-white .t-intro { color: var(--c-gray-dark); }
/* nested themes (dark tile inside a light section and vice versa) */
:is(.theme-light, .theme-white) .theme-dark :is(.muted, .t-intro) { color: var(--c-gray); }
.theme-dark :is(.theme-light, .theme-white) :is(.muted, .t-intro) { color: var(--c-gray-dark); }
:is(.theme-light, .theme-white) .theme-dark strong { color: var(--c-snow); }

/* ---------- type (size / leading / tracking measured) ---------- */
.t-hero            { font-size: 64px; line-height: 1.0625;  letter-spacing: -0.009em; font-weight: 600; }
.t-headline        { font-size: 48px; line-height: 1.08349; letter-spacing: -0.003em; font-weight: 600; }
.t-section         { font-size: 40px; line-height: 1.1;     letter-spacing: 0;        font-weight: 600; }
.t-headline-reduced{ font-size: 32px; line-height: 1.125;   letter-spacing: 0.004em;  font-weight: 600; }
.t-eyebrow-large   { font-size: 28px; line-height: 1.14286; letter-spacing: 0.007em;  font-weight: 600; }
.t-eyebrow         { font-size: 21px; line-height: 1.19048; letter-spacing: 0.011em;  font-weight: 600; }
.t-intro           { font-size: 21px; line-height: 1.381;   letter-spacing: 0.011em;  font-weight: 400; }
.t-body-large      { font-size: 19px; line-height: 1.42105; letter-spacing: 0.012em;  font-weight: 400; }
.t-body            { font-size: 17px; line-height: 1.47059; letter-spacing: -0.022em; font-weight: 400; }
.t-body-reduced    { font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; font-weight: 400; }
.t-caption         { font-size: 12px; line-height: 1.33337; letter-spacing: -0.01em;  font-weight: 400; }
.t-new             { color: var(--c-new); }
.theme-dark .t-new { color: var(--c-new-dark); }

@media (max-width: 1068px) {
  .t-hero { font-size: 56px; line-height: 1.07143; }
  .t-headline { font-size: 40px; line-height: 1.1; }
  .t-section { font-size: 32px; line-height: 1.125; }
}
@media (max-width: 734px) {
  .t-hero { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
  .t-headline, .t-section { font-size: 32px; line-height: 1.125; letter-spacing: 0.004em; }
  .t-headline-reduced, .t-eyebrow-large { font-size: 24px; line-height: 1.16667; }
  .t-intro { font-size: 19px; line-height: 1.42105; }
}

/* ---------- layout ---------- */
.section { padding: var(--section-pt) 0 var(--section-pb); overflow: clip; }
.section-tall { padding-bottom: 176px; }
.container { width: min(var(--w-content), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.container-text { width: min(var(--w-text), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--stack, 16px); }

/* ---------- buttons & links ---------- */
.button {
  display: inline-block; cursor: pointer; border: 0;
  font: inherit; font-size: 17px; line-height: 1.17648; letter-spacing: -0.022em;
  padding: 11px 21px; min-width: 28px; border-radius: var(--r-pill);
  background: var(--c-blue); color: #fff !important; text-decoration: none !important;
  transition: background-color var(--d-hover) linear, transform var(--d-hover) var(--ease);
}
.button:hover { background: var(--c-blue-hover); }
.button:active { transform: scale(0.97); }
.button-sm { font-size: 14px; line-height: 1.28577; letter-spacing: -0.016em; padding: 4px 11px; }
.button-md { font-size: 14px; padding: 8px 15px; }
.button-ghost { background: transparent; color: var(--c-link) !important; box-shadow: inset 0 0 0 1px currentColor; }
.theme-dark .button-ghost { color: var(--c-link-dark) !important; }
.button-ghost:hover { background: var(--c-link); color: #fff !important; }
.link-more::after { content: "\00a0›"; }
.cta-row { display: flex; gap: 24px 36px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- global nav ---------- */
.globalnav {
  position: relative; z-index: 20; height: var(--nav-h);
  background: rgba(22, 22, 23, 0.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.globalnav ul { height: 100%; display: flex; align-items: center; justify-content: space-between; max-width: 1024px; margin-inline: auto; padding: 0 var(--gutter); }
.globalnav a { color: rgba(255, 255, 255, 0.8); font-size: 12px; letter-spacing: -0.01em; transition: color var(--d-color) var(--ease); }
.globalnav a:hover { color: #fff; text-decoration: none; }
.globalnav .brand { font-size: 17px; font-weight: 600; letter-spacing: -0.022em; color: #fff; }
@media (max-width: 834px) { .globalnav li:not(:first-child):not(:last-child) { display: none; } }

/* ---------- ribbon ---------- */
.ribbon { text-align: center; padding: 14px var(--gutter); font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; }

/* ---------- local nav (sticky, translucent once stuck) ---------- */
.localnav { position: sticky; top: 0; z-index: 15; height: var(--localnav-h); color: var(--c-snow); }
.localnav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color var(--d-color) var(--ease), backdrop-filter var(--d-color) var(--ease), border-color var(--d-color) var(--ease);
}
.localnav.is-stuck::before {
  background: rgba(22, 22, 23, 0.72); border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.localnav.light { color: var(--c-ink); }
.localnav.light.is-stuck::before { background: rgba(251, 251, 253, 0.8); border-color: rgba(0, 0, 0, 0.16); }
.localnav .inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.localnav .title { font-size: 21px; font-weight: 600; letter-spacing: 0.011em; color: inherit; }
.localnav .links { display: flex; align-items: center; gap: 24px; font-size: 12px; letter-spacing: -0.01em; }
.localnav .links a:not(.button) { color: inherit; opacity: 0.88; }
.localnav .links a[aria-current="page"] { opacity: 0.56; pointer-events: none; }
@media (max-width: 734px) { .localnav .links a:not(.button) { display: none; } .localnav .title { font-size: 19px; } }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 52px; overflow: clip; }
.hero .t-eyebrow { margin-bottom: 8px; }
.hero .meta { margin-top: 18px; }
.hero .price { margin-top: 4px; font-weight: 600; }
.hero .visual { margin-top: 48px; }

/* ---------- section header ---------- */
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
@media (max-width: 734px) { .section-header { flex-direction: column; align-items: start; } }

/* ---------- lockup (eyebrow + headline + intro) ---------- */
.lockup { max-width: 820px; }
.lockup.center { margin-inline: auto; }
.lockup .t-eyebrow { margin-bottom: 12px; }
.lockup .t-intro { margin-top: 24px; }

/* ---------- tiles ---------- */
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-tile); background: var(--c-graphite); color: var(--c-snow);
  padding: 40px;
}
.theme-light .tile, .theme-white .tile.alt { background: var(--c-white); color: var(--c-ink); }
.theme-white .tile { background: var(--c-snow); color: var(--c-ink); }
/* an explicit theme on the tile itself always wins over the section theme */
.tile.tile.theme-dark { background: var(--c-graphite); color: var(--c-snow); }
.tile.tile.theme-light { background: var(--c-white); color: var(--c-ink); }
.tile .media { transition: transform 600ms var(--ease-out); }
.tile:hover .media { transform: scale(1.02); }
.tiles { display: grid; gap: 24px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.tiles .span-2 { grid-column: span 2; }
@media (max-width: 734px) { .tiles { grid-template-columns: 1fr; } .tiles .span-2 { grid-column: auto; } .tile { padding: 28px; border-radius: var(--r-card); } }

/* ---------- gallery (horizontal snap) ---------- */
.gallery { position: relative; }
.gallery-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100vw - var(--w-content)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--w-content)) / 2));
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 min(1000px, 86vw); aspect-ratio: 16 / 10; scroll-snap-align: start;
  border-radius: var(--r-tile); overflow: hidden; position: relative; background: var(--c-graphite);
}
.gallery-item .caption { position: absolute; top: 40px; left: 40px; right: 40px; max-width: 380px; font-size: 21px; line-height: 1.381; letter-spacing: 0.011em; font-weight: 600; z-index: 1; }
@media (max-width: 734px) { .gallery-item { aspect-ratio: 3 / 4; } .gallery-item .caption { top: 28px; left: 28px; font-size: 19px; } }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
.gallery-dots {
  display: flex; gap: 12px; padding: 18px 22px; border-radius: var(--r-pill);
  background: rgba(66, 66, 69, 0.72); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.theme-light .gallery-dots, .theme-white .gallery-dots { background: rgba(210, 210, 215, 0.64); }
.gallery-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: rgba(255, 255, 255, 0.42); transition: width var(--d-color) var(--ease), background-color var(--d-color) var(--ease);
}
.theme-light .gallery-dots button, .theme-white .gallery-dots button { background: rgba(0, 0, 0, 0.42); }
.gallery-dots button[aria-current="true"] { width: 48px; background: var(--c-snow); }
.theme-light .gallery-dots button[aria-current="true"], .theme-white .gallery-dots button[aria-current="true"] { background: var(--c-ink); }
.paddle {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(66, 66, 69, 0.72); color: var(--c-snow); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  transition: opacity var(--d-fade) var(--ease), transform var(--d-hover) var(--ease);
}
.paddle:active { transform: scale(0.94); }
.paddle:disabled { opacity: 0.36; cursor: default; }
.theme-light .paddle, .theme-white .paddle { background: rgba(210, 210, 215, 0.64); color: var(--c-ink); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 48px 24px; margin-top: 64px; }
.stat .label { font-size: 17px; letter-spacing: -0.022em; font-weight: 600; }
.stat .value { font-size: 80px; line-height: 1.05; letter-spacing: -0.015em; font-weight: 600; font-variant-numeric: tabular-nums; margin: 8px 0 4px; }
.stat .unit { font-size: 21px; line-height: 1.19; letter-spacing: 0.011em; font-weight: 600; }
.stat .note { margin-top: 8px; }
@media (max-width: 734px) { .stats { grid-template-columns: 1fr; } .stat .value { font-size: 64px; } }

/* ---------- scroll-scrub (JS sets --p: 0..1) ---------- */
.scrub { height: 260vh; position: relative; }
.scrub-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.scrub [data-scrub-fade] { opacity: calc(var(--p, 0) * 2 - 0.4); }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; }
.compare-card { text-align: center; padding: 40px 24px; border-radius: var(--r-card); background: var(--c-snow); }
.compare-card .swatches { display: flex; justify-content: center; gap: 8px; margin: 16px 0; }
.compare-card .swatches span { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
@media (max-width: 734px) { .compare { grid-template-columns: 1fr; } }

/* ---------- footnotes & footer ---------- */
.footnotes { padding: 40px 0 20px; color: var(--c-gray-dark); font-size: 12px; line-height: 1.33337; letter-spacing: -0.01em; }
.footnotes ol { padding-left: 1.2em; }
.footnotes li + li { margin-top: 10px; }
.footnotes a { color: var(--c-ink); text-decoration: underline; }
sup { font-size: 0.6em; vertical-align: super; line-height: 0; }
sup a { color: inherit !important; }
.footer { background: var(--c-snow); color: var(--c-gray-dark); font-size: 12px; line-height: 1.33337; letter-spacing: -0.01em; padding: 20px 0 30px; }
.footer .cols { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid #d2d2d7; border-bottom: 1px solid #d2d2d7; }
.footer h3 { font-size: 12px; font-weight: 600; color: var(--c-ink); margin-bottom: 8px; }
.footer li + li { margin-top: 8px; }
.footer a { color: var(--c-gray-dark); }
.footer .legal { padding-top: 16px; }
@media (max-width: 734px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- reveal (JS adds .is-in) ---------- */
[data-reveal] {
  opacity: 0; transform: translate3d(0, 36px, 0);
  transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 100ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
  [data-reveal] { transform: none; }
  .scrub { height: auto; }
  .scrub-sticky { position: relative; height: auto; padding: var(--section-pt) 0; }
  .tile:hover .media { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .globalnav, .localnav.is-stuck::before, .gallery-dots, .paddle { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .globalnav, .localnav.is-stuck::before { background: #161617; }
}
@media (prefers-contrast: more) {
  .theme-dark .t-intro, .theme-dark .muted { color: #c7c7cc; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
