:root {
  --bg: #000;
  --tile: #161617;
  --tile-raised: #1d1d1f;
  --line: #2c2c2e;
  --line-strong: #424245;
  --text: #f5f5f7;
  --muted: #86868b;
  --muted-light: #a1a1a6;
  --pink: #ffdcdc;
  --pink-hover: #ffeaea;
  --on-pink: #1d1d1f;
  --link: #5ab8e0;
  --link-hover: #84cdec;
  --wrap: 980px;
  --wrap-wide: 1260px;
  --breakout: min(100vw - 44px, var(--wrap-wide));
  --radius-tile: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 52px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

.wrap {
  width: min(100% - 44px, var(--wrap));
  margin-inline: auto;
}

.center {
  text-align: center;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--pink);
}

/* Local navigation */

.localnav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 52px;
  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);
}

.localnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 44px, var(--wrap));
  height: 100%;
  margin-inline: auto;
}

.localnav-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
}

.localnav-brand:hover {
  color: var(--text);
  text-decoration: none;
}

.localnav-brand .wordmark {
  font-size: 21px;
}

.localnav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}

.localnav-menu a:not(.pill) {
  color: var(--muted-light);
}

.localnav-menu a:not(.pill):hover {
  color: var(--text);
  text-decoration: none;
}

/* Buttons and links */

.pill {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  background: var(--pink);
  color: var(--on-pink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease);
}

.pill:hover {
  background: var(--pink-hover);
  color: var(--on-pink);
  text-decoration: none;
}

.pill-small {
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 500;
}

.link-arrow {
  font-size: 17px;
  white-space: nowrap;
}

.link-arrow::after {
  content: "›";
  display: inline-block;
  margin-left: 4px;
  transform: translateY(-1px) scale(1.2);
}

kbd {
  display: inline-block;
  padding: 0 6px;
  font-family: var(--font);
  font-size: 0.86em;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  background: var(--tile-raised);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  letter-spacing: 0;
}

.badge {
  display: inline-block;
  vertical-align: middle;
  padding: 3px 9px;
  border-radius: 980px;
  background: var(--pink);
  color: var(--on-pink);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero */

.hero {
  padding: 72px 0 40px;
  text-align: center;
  overflow: hidden;
}

.hero-product {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: 0.007em;
}

.hero-title {
  margin: 6px auto 0;
  width: min(100% - 44px, 1100px);
  font-family: var(--font-display);
  font-size: clamp(72px, 13vw, 168px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  background: linear-gradient(100deg, #ffdcdc 10%, #ffb6c8 45%, #8fd3ea 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 20px auto 0;
  width: min(100% - 44px, 640px);
  font-size: clamp(19px, 1.8vw, 21px);
  color: var(--muted-light);
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 32px;
}

.hero-meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.hero-media {
  position: relative;
  width: min(100% - 44px, var(--wrap-wide));
  margin: 72px auto 0;
}

.hero-glow {
  position: absolute;
  inset: 12% 8% -6%;
  background:
    radial-gradient(closest-side, rgba(255, 182, 200, 0.28), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(143, 211, 234, 0.22), transparent);
  filter: blur(60px);
  pointer-events: none;
}

.zoomable {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.hero-shot {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 100px rgba(0, 0, 0, 0.6);
}

/* Section scaffolding */

.section {
  padding: 140px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 72px;
}

.section-head.center {
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 600;
  color: var(--muted);
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.02em;
}

.section-copy {
  margin-top: 28px;
  max-width: 700px;
  font-size: clamp(19px, 1.8vw, 21px);
  font-weight: 500;
  line-height: 1.38;
  color: var(--muted);
}

.section-copy.center {
  margin-inline: auto;
}

.section-copy strong {
  color: var(--text);
  font-weight: 600;
}

/* Highlights gallery */

.highlights {
  padding: 120px 0 40px;
}

.highlights .section-title {
  margin-bottom: 48px;
}

.gallery {
  --peek: max(22px, calc((100vw - var(--wrap)) / 2));
}

.gallery-track {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0 var(--peek);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--peek);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  /* Width follows the window height so a whole card (caption and screenshot) fits on screen. */
  flex: 0 0 min(86vw, 1000px, calc((100vh - 262px) * 1.68 + 80px));
  flex: 0 0 min(86vw, 1000px, calc((100svh - 262px) * 1.68 + 80px));
  scroll-snap-align: start;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px 40px 0;
  border-radius: var(--radius-tile);
  background: var(--tile);
  overflow: hidden;
}

.gallery-caption {
  max-width: 620px;
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 600;
  line-height: 1.18;
  color: var(--muted);
}

.gallery-caption strong {
  color: var(--text);
  font-weight: 600;
}

.gallery-card img {
  margin-top: auto;
  width: 100%;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 44px, var(--wrap));
  margin: 32px auto 0;
}

.gallery-dots {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 980px;
  background: rgba(66, 66, 69, 0.72);
}

.gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.gallery-dots button[aria-current="true"] {
  width: 44px;
  background: var(--text);
}

.gallery-arrows {
  display: flex;
  gap: 16px;
}

.round-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(66, 66, 69, 0.72);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.round-button:hover {
  background: rgba(86, 86, 90, 0.85);
}

.round-button:disabled {
  opacity: 0.36;
  cursor: default;
}

.round-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Feature explorer */

.explorer {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  width: var(--breakout);
  margin-inline: calc((100% - var(--breakout)) / 2);
}

.explorer-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.explorer-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  padding: 14px 22px 14px 18px;
  border: 0;
  border-radius: 28px;
  background: var(--tile-raised);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.explorer-tab:hover {
  background: #2a2a2d;
}

.explorer-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.explorer-name::before {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--text);
  color: var(--tile-raised);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.explorer-text {
  display: none;
  font-weight: 400;
  color: var(--muted-light);
  line-height: 1.42;
}

.explorer-tab[aria-selected="true"] {
  padding: 22px 26px 24px;
  border-radius: 24px;
  background: var(--tile-raised);
  cursor: default;
}

.explorer-tab[aria-selected="true"] .explorer-name::before {
  display: none;
}

.explorer-tab[aria-selected="true"] .explorer-text {
  display: block;
}

.explorer-media {
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 1600 / 922;
  border-radius: 18px;
  overflow: hidden;
  background: var(--tile);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.explorer-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Older screenshots are a little wider than the new ones: show them whole. */
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.explorer-media img.is-active {
  opacity: 1;
}

/* Numbers */

.numbers {
  padding-top: 40px;
}

.numbers .section-title {
  margin-bottom: 80px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 72px;
  text-align: center;
}

.stats > div {
  display: flex;
  flex-direction: column-reverse;
  flex: 0 0 33.333%;
  min-width: 0;
  gap: 8px;
  padding: 0 16px;
}

.stats > div[hidden] {
  display: none;
}

.stats dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-light);
}

.stats dd {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Bento tiles */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  width: var(--breakout);
  margin-inline: calc((100% - var(--breakout)) / 2);
}

.tile {
  display: flex;
  flex-direction: column;
  grid-column: span 3;
  padding: 44px 44px 0;
  border-radius: var(--radius-tile);
  background: var(--tile);
  overflow: hidden;
}

.tile-wide {
  grid-column: 1 / -1;
}

.tile-text,
.tile-third {
  grid-column: span 2;
  padding-bottom: 44px;
}

.tile-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.tile p {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.47;
  color: var(--muted-light);
}

.tile-copy {
  max-width: 640px;
}

.tile-media {
  margin-top: 36px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tile-wide .tile-media {
  margin-top: 44px;
}

.tile-media-contain {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 220px;
  padding: 24px;
  background: #0b0b0c;
  border-radius: 14px;
  margin-bottom: 44px;
}

.tile-third .tile-media-contain {
  margin-bottom: 0;
  min-height: 0;
  padding: 20px;
}

.tile-third .tile-media-contain img {
  width: auto;
  max-height: 380px;
}

.tile p.tile-note {
  margin: 12px 0 28px;
  font-size: 12px;
  color: var(--muted);
}

/* Shortcuts */

.keys.tile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  padding: 28px 44px;
}

.keys > div {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.keys > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.keys dt {
  flex: 0 0 180px;
  white-space: nowrap;
}

.keys dd {
  color: var(--muted-light);
}

/* Install */

.steps {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 24px;
  width: var(--breakout);
  margin: 0 0 0 calc((100% - var(--breakout)) / 2);
  padding: 0;
  list-style: none;
}

.steps .tile {
  grid-column: auto;
  padding: 40px 36px;
}

.step-number {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(160deg, #ffdcdc, #8fd3ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-action {
  align-self: flex-start;
  margin-top: 24px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0;
}

.tile p code {
  color: var(--text);
}

.code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.code code {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  color: var(--pink);
  font-size: 12.5px;
  line-height: 1.5;
}

.copy {
  flex: none;
  padding: 5px 12px;
  border: 0;
  border-radius: 980px;
  background: var(--tile-raised);
  color: var(--text);
  font: 500 12px var(--font);
  cursor: pointer;
}

.copy:hover {
  background: #2a2a2d;
}

/* Apple TV */

.tv {
  padding-top: 40px;
}

.tv .section-copy {
  margin-bottom: 24px;
}

/* Footer */

.footer {
  padding: 24px 0 40px;
  background: var(--tile);
  font-size: 12px;
  line-height: 1.34;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.footer a {
  color: var(--muted-light);
}

.footer a:hover {
  color: var(--text);
}

.footnotes {
  margin: 0;
  padding: 16px 0 20px;
  list-style: none;
  border-bottom: 1px solid var(--line-strong);
}

.footnotes li + li {
  margin-top: 10px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 18px;
}

.wordmark-small {
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* Lightbox */

.lightbox {
  max-width: min(96vw, 1600px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--tile);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: zoom-out;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox img {
  max-width: 100%;
  max-height: 94vh;
  width: auto;
  object-fit: contain;
}

/* Scroll reveal (only when JS runs) */

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Pinned explorer: on wide, tall enough screens the list stays in place and
   steps through the features as the page scrolls, like a product page. */

@media (min-width: 1069px) and (min-height: 700px) {
  .explorer-track {
    height: calc(100vh - 52px + var(--steps, 10) * 32vh);
  }

  .explorer {
    position: sticky;
    top: 52px;
    min-height: calc(100vh - 52px);
    align-content: center;
  }

  .explorer-list {
    gap: 8px;
  }

  .explorer-tab {
    padding: 10px 20px 10px 14px;
  }
}

/* Responsive */

@media (max-width: 1068px) {
  .explorer {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .explorer-media {
    order: -1;
  }

  .explorer-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .explorer-tab[aria-selected="true"] {
    flex-basis: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 734px) {
  body {
    font-size: 16px;
  }

  .localnav-menu a:not(.pill) {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-media {
    margin-top: 48px;
  }

  .section {
    padding: 96px 0;
  }

  .highlights {
    padding-top: 80px;
  }

  .gallery-item {
    flex-basis: 88vw;
  }

  .gallery-card {
    padding: 28px 24px 0;
  }

  .gallery-caption {
    margin-bottom: 24px;
  }

  .section-head {
    margin-bottom: 48px;
  }

  .stats {
    row-gap: 48px;
  }

  .stats > div {
    flex-basis: 50%;
    padding: 0 8px;
  }

  .bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tile,
  .tile-wide,
  .tile-text,
  .tile-third {
    grid-column: auto;
    padding: 32px 26px 0;
  }

  .tile-text,
  .tile-third {
    padding-bottom: 32px;
  }

  .tile-media {
    margin-top: 28px;
  }

  .keys.tile {
    grid-template-columns: 1fr;
    padding: 16px 26px;
  }

  .keys > div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .keys dt {
    flex-basis: 112px;
    white-space: normal;
  }

  .steps .tile {
    padding: 32px 26px;
  }

  .stats dd {
    font-size: 30px;
  }

  .code {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .code code {
    flex-basis: 100%;
  }

  .copy {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
