:root {
  --home-paper: var(--site-paper);
  --home-surface: var(--site-surface);
  --home-ink: var(--site-ink);
  --home-muted: var(--site-muted);
  --home-accent: #a63c25;
  --home-link: var(--site-link);
  --home-line: var(--site-line);
  --home-gutter: clamp(22px, 5vw, 64px);
  --home-space: clamp(68px, 9vw, 122px);
}

html {
  scroll-behavior: smooth;
}

body.home-page {
  color: var(--home-ink);
  background: var(--home-paper);
  line-height: 1.6;
}

.home-page :focus-visible {
  outline: 2px solid var(--home-link);
  outline-offset: 5px;
}

.home-width {
  width: min(1160px, calc(100% - var(--home-gutter) * 2));
  margin-inline: auto;
}

.home-heading {
  max-width: 890px;
  margin-inline: auto;
  text-align: center;
  padding-inline: var(--home-gutter);
}

.home-heading h1,
.home-heading h2,
.feature-copy h2 {
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.home-heading h1 {
  font-size: clamp(2.85rem, 7.4vw, 6.25rem);
  margin-top: 18px;
}

.home-heading h2 {
  font-size: clamp(2.35rem, 5.25vw, 4.5rem);
}

.home-heading p:not(.app-name) {
  max-width: 31em;
  margin: 19px auto 0;
  color: var(--home-muted);
  font-size: clamp(1rem, 0.77rem + 0.65vw, 1.28rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.home-hero {
  padding-top: max(clamp(51px, 6.8vw, 89px), env(safe-area-inset-top));
  overflow: clip;
}

.app-mark {
  display: block;
  width: clamp(64px, 7vw, 82px);
  height: auto;
  margin: 0 auto 10px;
  border-radius: 22%;
  box-shadow: 0 5px 20px #171a2410, 0 0 0 1px #171a2409;
}

.app-name {
  font-size: 1.1rem;
  font-weight: 670;
}

.home-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  min-height: 48px;
  margin-top: 26px;
  border-radius: 100px;
  background: var(--home-accent);
  color: #fff;
  font-weight: 640;
  text-decoration: none;
}

.home-button:hover {
  background: #87301f;
}

.phone-strip {
  overflow: hidden;
  margin-top: clamp(44px, 5.8vw, 76px);
  padding: 8px 0 clamp(34px, 5vw, 68px);
}

.phone-lineup {
  --phone-width: clamp(144px, 17.4vw, 232px);
  width: max-content;
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.85vw, 28px);
  margin-inline: auto;
}

.phone-lineup > .phone-frame {
  width: var(--phone-width);
  position: relative;
}

.phone-frame,
.tablet-frame,
.mac-frame,
.watch-frame {
  overflow: hidden;
  flex-shrink: 0;
  background: #16171c;
  box-shadow: 0 16px 32px #20273729, 0 3px 6px #20273724;
}

.phone-frame {
  border: clamp(4px, 0.52vw, 7px) solid #25262c;
  border-radius: clamp(19px, 3vw, 39px);
  aspect-ratio: 660 / 1434;
  isolation: isolate;
}

.phone-frame img,
.tablet-frame img,
.watch-frame img,
.mac-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-home {
  margin-top: clamp(28px, 3.5vw, 50px);
}

.phone-categories {
  margin-top: clamp(12px, 1.4vw, 25px);
}

.phone-player {
  z-index: 1;
}

.phone-library {
  margin-top: clamp(18px, 2.3vw, 36px);
}

.phone-search {
  margin-top: clamp(36px, 4.7vw, 62px);
}

.section-copy {
  margin-bottom: clamp(28px, 4.5vw, 52px);
}

.home-catalog {
  padding: clamp(40px, 6.4vw, 88px) 0 clamp(60px, 8vw, 112px);
}

.cover-gallery {
  overflow: hidden;
  display: grid;
  gap: clamp(9px, 1.4vw, 19px);
  width: 100%;
}

.cover-row {
  --cover-width: clamp(160px, 17vw, 248px);
  --cover-gap: clamp(9px, 1.3vw, 17px);
  overflow: hidden;
}

.cover-track,
.cover-set {
  display: flex;
  width: max-content;
}

.cover-set {
  gap: var(--cover-gap);
  padding-inline-end: var(--cover-gap);
}

.cover-tile {
  position: relative;
  display: block;
  width: var(--cover-width);
  aspect-ratio: 16 / 9;
  background-color: var(--home-surface);
  border-radius: 11px;
  overflow: hidden;
  text-decoration: none;
}

.cover-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cover-tile:focus-visible {
  outline-offset: -3px;
}

.cover-action {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-inline: 15px;
  min-height: 38px;
  border-radius: 100px;
  color: var(--site-ink);
  background: var(--site-paper);
  box-shadow: 0 2px 12px #0004;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 160ms ease;
}

.cover-action::after {
  content: '';
  width: 0;
  height: 0;
  border-block: 4px solid transparent;
  border-inline-start: 6px solid currentColor;
}

.cover-tile:is(:focus-visible, [data-selected]) .cover-action {
  opacity: 1;
}

.cover-track {
  animation: cover-scroll 210s linear infinite paused;
}

.cover-gallery[data-moving] .cover-track {
  animation-play-state: running;
}

.cover-row + .cover-row .cover-track {
  animation-direction: reverse;
}

.cover-gallery:is(:active, [data-selected]) .cover-track {
  animation-play-state: paused;
}

.cover-gallery[data-keyboard] .cover-track {
  animation: none;
}

@media (hover: hover) {
  .cover-gallery:hover .cover-track {
    animation-play-state: paused;
  }

  .cover-tile:hover .cover-action {
    opacity: 1;
  }
}

@keyframes cover-scroll {
  to { transform: translateX(-50%); }
}

.text-link {
  color: var(--home-link);
  text-decoration: none;
  text-underline-offset: 0.24em;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
}

.home-features {
  padding-block: var(--home-space);
  background: var(--home-surface);
}

.feature-stack {
  display: grid;
  gap: clamp(18px, 2.2vw, 28px);
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  min-height: clamp(440px, 47vw, 590px);
  overflow: hidden;
  border-radius: clamp(22px, 2.7vw, 32px);
  isolation: isolate;
}

.feature-copy {
  position: relative;
  z-index: 1;
  padding: clamp(30px, 5.8vw, 72px);
  padding-inline-end: 12px;
}

.feature-copy h2 {
  font-size: clamp(2.25rem, 4.6vw, 4rem);
}

.feature-copy p {
  max-width: 24em;
  margin-top: 20px;
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  line-height: 1.6;
}

.feature-download {
  background: linear-gradient(130deg, #d9e8fb 0%, #eef5ff 79%);
  color: #182f49;
}

.feature-playback {
  background: radial-gradient(ellipse at 86% 92%, #7b304b 1%, #4e2345 44%, #271c38 100%);
  color: #fff;
}

.feature-sync {
  background: var(--home-paper);
  color: var(--home-ink);
}

.feature-widgets {
  background: linear-gradient(128deg, #eae7fb 0%, #e3e9fb 100%);
  color: #292645;
}

.feature-art {
  position: relative;
  align-self: stretch;
  min-width: 0;
}

.download-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  padding: 32px 26px 0 8px;
}

.download-art .phone-frame {
  width: min(45%, 214px);
}

.download-art .phone-frame:first-child {
  transform: translateY(13%);
}

.download-art .phone-frame + .phone-frame {
  transform: translateY(24%);
}

.playback-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  align-items: end;
  gap: clamp(12px, 1.6vw, 22px);
  padding: clamp(27px, 4.4vw, 58px) clamp(18px, 4vw, 52px);
}

.playback-crop {
  position: relative;
  aspect-ratio: 660 / var(--crop-height);
  overflow: hidden;
  border-radius: clamp(16px, 2.6vw, 28px);
  background: #fff;
  box-shadow: 0 12px 30px #190a2760;
}

.playback-crop img {
  display: block;
  position: absolute;
  width: 100%;
  height: auto;
  inset-block-start: calc(-100% * var(--crop-top) / var(--crop-height));
}

.playback-speed {
  --crop-top: 842;
  --crop-height: 514;
}

.playback-sleep {
  --crop-top: 718;
  --crop-height: 638;
}

.mac-frame {
  border: 7px solid #262422;
  border-bottom-width: 11px;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
}

.tablet-frame {
  border: 6px solid #282624;
  border-radius: 17px;
  aspect-ratio: 4 / 5.3;
}

.watch-frame {
  border: 4px solid #262423;
  border-radius: 23%;
  aspect-ratio: 416 / 496;
}

.sync-art,
.widgets-art {
  display: grid;
  place-items: center;
  padding-block: clamp(20px, 3.4vw, 40px);
}

.feature-devices {
  position: relative;
  width: min(90%, 590px);
  aspect-ratio: 6 / 5;
}

.widgets-art .feature-devices {
  width: min(86%, 565px);
  aspect-ratio: 5 / 4;
}

.sync-art .mac-frame {
  position: absolute;
  inset: 0 0 auto auto;
  width: 90%;
}

.sync-art .tablet-frame {
  position: absolute;
  inset: auto auto 6% 0;
  width: 44%;
}

.sync-art .phone-frame {
  position: absolute;
  inset: auto auto 0 40%;
  width: 27%;
}

.sync-art .watch-frame {
  position: absolute;
  inset: auto 1% 6% auto;
  width: 20%;
}

.widgets-art .mac-frame {
  position: absolute;
  inset: 0 auto auto 0;
  width: 99%;
}

.mac-widget-screen {
  display: grid;
  grid-template-columns: minmax(0, 328fr) minmax(0, 688fr);
  align-items: center;
  gap: 3%;
  width: 100%;
  height: 100%;
  padding-inline: 7%;
  background: linear-gradient(120deg, #e1ddd0, #c1c1aa);
}

.mac-widget-screen img {
  height: auto;
  border-radius: 5.5% / 12%;
  box-shadow: 0 4px 10px #31322a25;
}

.mac-widget-screen img:first-child {
  border-radius: 12%;
}

.widgets-art .phone-frame {
  position: absolute;
  inset: auto 0 0 auto;
  width: min(31%, 175px);
}

.home-downloads {
  padding-block: var(--home-space);
}

.device-rows {
  width: min(880px, 100%);
  margin: 0 auto;
}

.device-row {
  padding-block: clamp(22px, 3.1vw, 42px);
}

.device-row + .device-row {
  border-block-start: 1px solid var(--home-line);
}

.device-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(17px, 3.3vw, 49px);
  list-style: none;
}

.device-icons li,
.device-device {
  min-width: 72px;
  display: grid;
  gap: 9px;
  justify-items: center;
  align-content: start;
  font-weight: 650;
  text-align: center;
}

.device-icon {
  position: relative;
  display: grid;
  width: min(100%, 106px);
  height: 106px;
  place-items: center;
  color: var(--home-ink);
  font-size: 20px;
}

.device-icon::before,
.device-icon::after {
  position: absolute;
  box-sizing: border-box;
  content: "";
}

.device-icon::before {
  border: .2em solid currentColor;
  border-radius: .42em;
}

.icon-iphone::before,
.icon-android-phone::before {
  height: 3.6em;
}

.icon-iphone::before {
  width: 2.1em;
  border-radius: .52em;
}

.icon-iphone::after {
  width: .58em;
  height: .12em;
  inset-block-start: calc(50% - 1.4em);
  border-radius: 1em;
  background: currentColor;
}

.icon-ipad::before {
  width: 2.9em;
  height: 3.9em;
}

.icon-android-phone::before {
  width: 2.15em;
  border-radius: .33em;
  border-block-end-width: .32em;
}

.icon-android-tablet::before {
  width: 4.15em;
  height: 2.65em;
  border-inline-width: .28em;
}

.icon-ipad::after,
.icon-android-phone::after,
.icon-android-tablet::after {
  width: .17em;
  height: .17em;
  border-radius: 50%;
  background: currentColor;
}

.icon-ipad::after {
  inset-block-start: calc(50% - 1.54em);
}

.icon-android-phone::after {
  inset-block-start: calc(50% - 1.37em);
}

.icon-android-tablet::after {
  inset-block-start: calc(50% - .98em);
}

.icon-watch::before {
  z-index: 1;
  width: 2.36em;
  height: 2.28em;
  border-radius: .65em;
  background: var(--home-paper);
}

.icon-watch::after {
  width: 1.38em;
  height: 3.7em;
  border: .2em solid currentColor;
  border-radius: .24em;
}

.icon-vision::before {
  width: 4.5em;
  height: 2.5em;
  border-radius: .95em .95em .82em .82em;
}

.icon-vision::after {
  width: 3.65em;
  height: 1.53em;
  border: .12em solid currentColor;
  border-radius: .63em;
}

.icon-laptop::before {
  width: 4.1em;
  height: 2.7em;
  border-radius: .34em .34em .08em .08em;
  translate: 0 -.12em;
}

.icon-laptop::after {
  width: 5.25em;
  height: .35em;
  inset-block-start: calc(50% + 1.12em);
  border: .16em solid currentColor;
  border-radius: .07em .07em .42em .42em;
  background: var(--home-paper);
}

.icon-tv::before,
.icon-desktop::before,
.icon-browser::before {
  height: 2.55em;
  border-radius: .34em;
  translate: 0 -.16em;
}

.icon-tv::before {
  width: 4.45em;
}

.icon-tv::after {
  width: 3.42em;
  height: .34em;
  inset-block-start: calc(50% + 1.04em);
  border-inline: .24em solid currentColor;
}

.icon-desktop::before {
  width: 5.2em;
}

.icon-desktop::after {
  width: 1.68em;
  height: .6em;
  inset-block-start: calc(50% + 1.04em);
  border-block-end: .18em solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / .21em 100% no-repeat;
}

.icon-browser::before {
  width: 4.65em;
  background: linear-gradient(currentColor, currentColor) center top .62em / 100% .15em no-repeat;
}

.icon-browser::after {
  width: .17em;
  height: .17em;
  inset-block-start: calc(50% - .97em);
  inset-inline-start: calc(50% - 1.85em);
  border-radius: 50%;
  background: currentColor;
  box-shadow: .34em 0 currentColor, .68em 0 currentColor;
}

@media (max-width: 1068px) {
  .device-icon {
    height: 69px;
    font-size: 14.15px;
  }
}

@media (max-width: 734px) {
  .device-icon {
    width: min(100%, 75px);
  }
}

.device-links {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 22px;
  min-height: 38px;
  margin-top: 14px;
  text-align: center;
  font-size: .94rem;
}

.device-links .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 5px;
}

.device-links .text-link[aria-disabled="true"],
.download-status {
  color: var(--home-muted);
}

.download-status {
  text-align: center;
}

.device-platforms,
.device-android .device-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0;
}

.device-platforms {
  width: min(100%, 420px);
  margin-inline: auto;
  row-gap: 24px;
}

.device-android {
  grid-column: 1 / -1;
}

.device-other {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 264px);
}

.device-other .text-link {
  max-width: 100%;
  white-space: normal;
}

@media (min-width: 720px) {
  .device-row-apple .device-icons,
  .device-platforms {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 0;
    width: 100%;
  }

  .device-android {
    grid-column: span 3;
  }

  .device-other {
    grid-column: span 2;
  }
}

.home-faq {
  padding-block: var(--home-space);
  padding-inline: var(--home-gutter);
  background: var(--home-surface);
}

.faq-items {
  width: min(880px, 100%);
  margin: 0 auto;
  border-block-end: 1px solid var(--home-line);
}

.faq-items details + details {
  border-block-start: 1px solid var(--home-line);
}

.faq-items summary {
  position: relative;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-size: clamp(1rem, 0.88rem + .4vw, 1.2rem);
  font-weight: 660;
  line-height: 1.5;
  cursor: pointer;
}

.faq-items summary::-webkit-details-marker {
  display: none;
}

.faq-items summary::after {
  content: "";
  position: absolute;
  inset: 29px 7px auto auto;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}

.faq-items details[open] summary::after {
  translate: 0 5px;
  rotate: 225deg;
}

.faq-answer {
  max-width: 67ch;
  padding: 0 24px 21px 0;
  color: var(--home-muted);
}

.faq-answer p + p {
  margin-block-start: 0.75em;
}

.faq-answer a {
  color: var(--home-link);
  text-underline-offset: 0.2em;
}

.home-footer {
  background: #f5f5f7;
  color: rgb(0 0 0 / 0.56);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.3333;
  padding: 37px 22px max(11px, env(safe-area-inset-bottom));
}

.home-footer .home-width {
  width: min(980px, 100%);
}

.home-footer a {
  white-space: nowrap;
}

.footer-contact {
  padding-block-end: 19px;
}

.footer-contact a {
  color: #06c;
  text-decoration: underline;
  text-underline-offset: .12em;
}

.footer-legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border-block-start: 1px solid rgb(0 0 0 / 0.16);
  padding-block-start: 16px;
}

.footer-legal a {
  color: rgb(0 0 0 / 0.72);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

@media (max-width: 734px) {
  .home-footer {
    padding: 17px 16px max(9px, env(safe-area-inset-bottom));
  }

  .footer-contact {
    padding-block-end: 8px;
  }

  .footer-legal {
    padding-block-start: 12px;
  }
}

@media (min-width: 776px) {
  .feature-download,
  .feature-sync {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  :is(.feature-download, .feature-sync) .feature-copy {
    grid-area: 1 / 2;
    padding-inline: 20px clamp(30px, 5.8vw, 72px);
  }

  :is(.feature-download, .feature-sync) .feature-art {
    grid-area: 1 / 1;
  }
}

@media (max-width: 775px) {
  .phone-strip {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .phone-strip::-webkit-scrollbar {
    display: none;
  }

  .phone-lineup {
    padding-inline: max(16px, calc(50vw - var(--phone-width) / 2));
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-copy {
    padding: clamp(24px, 7vw, 48px);
    padding-bottom: 0;
  }

  .feature-copy h2 br {
    display: none;
  }

  .feature-copy p {
    max-width: 30em;
    margin-top: 12px;
  }

  .download-art {
    padding-top: 8px;
  }

  .download-art .phone-frame {
    width: min(38%, 180px);
  }

  .device-other .device-links {
    font-size: .85rem;
  }

  .home-downloads .home-heading,
  .home-faq .home-heading {
    padding-inline: 0;
  }
}

@media (max-width: 540px) {
  .playback-art {
    grid-template-columns: minmax(0, 320px);
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .device-icons {
    gap: 14px 11px;
    font-size: .85rem;
  }

  .device-icons li {
    min-width: 62px;
  }

  .device-column .device-links {
    gap: 0;
  }

  .mac-frame {
    border-width: 4px 4px 7px;
    border-radius: 7px;
  }

  .tablet-frame {
    border-width: 4px;
    border-radius: 11px;
  }
}

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

  .cover-gallery .cover-track {
    animation: none;
  }

  .cover-action {
    transition: none;
  }
}
