/* SellFast motion system — an expressive marketing surface, not a scroll hijack. */
:root {
  --motion-out: cubic-bezier(0.23, 1, 0.32, 1);
  --motion-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --motion-arrive: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-quick: 150ms;
  --motion-ui: 240ms;
  --motion-stage: 520ms;
}
html {
  scroll-behavior: smooth;
}
button,
a,
summary,
.chips label,
.format-control label {
  touch-action: manipulation;
}
.site-header {
  transition: background-color var(--motion-ui) var(--motion-out);
}
.site-header.is-scrolled {
  background: rgba(18, 18, 18, 0.88);
}
.button {
  transition:
    background-color var(--motion-ui) ease,
    transform var(--motion-quick) var(--motion-out);
}
.button:active {
  transform: scale(0.97);
}
.button > span {
  display: inline-block;
  transition: transform var(--motion-ui) var(--motion-out);
}
.nav-links a {
  position: relative;
  overflow: hidden;
  transition:
    background-color var(--motion-ui) ease,
    color var(--motion-ui) ease;
}
.nav-links a[aria-current="location"] {
  background: #41413e;
  color: white;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover > span {
    transform: translate(3px, -3px);
  }
  .export-button:hover > span {
    transform: translateY(3px);
  }
  .text-link > span {
    display: inline-block;
    transition: transform var(--motion-ui) var(--motion-out);
  }
  .text-link:hover > span {
    transform: translate(3px, -2px);
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--motion-ui) var(--motion-out);
  }
  .nav-links a:hover::after {
    transform: scaleX(1);
  }
}
.stage-screen-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 420ms var(--motion-out),
    transform var(--motion-stage) var(--motion-out);
  transform: translate3d(0, 8px, 0) scale(0.99);
  background: var(--ground);
}
.stage-screen-layer > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.showcase[data-step="1"] [data-screen="1"],
.showcase[data-step="2"] [data-screen="2"],
.showcase[data-step="3"] [data-screen="3"] {
  opacity: 1;
  transform: none;
}
.showcase .stage-screen-layer[data-screen="2"] .phone-photo,
.showcase .stage-screen-layer[data-screen="3"] .phone-photo {
  display: block;
  left: 11.6%;
  top: 7.15%;
  width: 76.8%;
  height: 44.3%;
}
.showcase .stage-screen-layer[data-screen="3"] .phone-photo {
  left: 12%;
  top: 15.8%;
  width: 76%;
  height: 43.8%;
}
.showcase .raw-photo > img {
  transition: transform 720ms var(--motion-arrive);
}
.showcase .raw-price {
  transition:
    opacity 360ms var(--motion-out),
    transform var(--motion-stage) var(--motion-out);
}
.showcase .device {
  transition: transform 650ms var(--motion-arrive);
}
@media (min-width: 701px) {
  .showcase[data-step="1"] .device {
    transform: rotate(-7deg) translateY(6px);
  }
  .showcase[data-step="2"] .device {
    transform: rotate(-5deg) translateY(-8px);
  }
  .showcase[data-step="3"] .device {
    transform: rotate(3deg) translateY(-8px);
  }
}
.stage-controls {
  --stage-pad: 4px;
  --stage-gap: 3px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--stage-gap);
  padding: var(--stage-pad);
  isolation: isolate;
}
.stage-controls::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: var(--stage-pad);
  bottom: var(--stage-pad);
  left: var(--stage-pad);
  width: calc((100% - 2 * var(--stage-pad) - 2 * var(--stage-gap)) / 3);
  border-radius: 8px;
  background: var(--orange);
  transform: translateX(0);
  transition: transform 340ms var(--motion-in-out);
  pointer-events: none;
}
.showcase[data-step="2"] .stage-controls::before {
  transform: translateX(calc(100% + var(--stage-gap)));
}
.showcase[data-step="3"] .stage-controls::before {
  transform: translateX(calc(200% + 2 * var(--stage-gap)));
}
.stage-controls button {
  background: transparent !important;
  transition:
    color 220ms var(--motion-out),
    transform 120ms var(--motion-out);
}
.stage-controls button[aria-pressed="true"] {
  color: var(--ink);
}
.stage-controls button:active {
  transform: scale(0.96);
}
@media (hover: hover) and (pointer: fine) {
  .stage-controls button:hover:not([aria-pressed="true"]) {
    color: #ffb18e;
  }
}
.stage-play {
  position: absolute;
  z-index: 3;
  right: 24px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  background: #121212c7;
  color: #fff;
  transition:
    background-color var(--motion-ui) ease,
    transform var(--motion-quick) var(--motion-out);
}
.stage-play[hidden] {
  display: none;
}
.stage-play:active {
  transform: scale(0.94);
}
.stage-play svg {
  width: 22px;
  height: 22px;
  grid-area: 1/1;
  transition: opacity 180ms var(--motion-out);
}
.stage-play .pause-symbol,
.stage-play[aria-pressed="true"] .play-symbol {
  opacity: 0;
}
.stage-play[aria-pressed="true"] .pause-symbol {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .stage-play:hover {
    background: #42423e;
  }
}
.motion-word {
  display: inline-block;
  white-space: nowrap;
}
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .path-visual img {
      animation: photo-depth linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    .closing-inner img {
      animation: photo-depth linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes photo-depth {
      from {
        transform: scale(1.08) translateY(2%);
      }
      to {
        transform: scale(1.08) translateY(-2%);
      }
    }
  }
}
@media (max-width: 700px) {
  .stage-controls {
    --stage-pad: 3px;
  }
  .stage-play {
    width: 44px;
    height: 44px;
    top: 8px;
    right: 8px;
    background: #121212e0;
  }
  .stage-play svg {
    width: 19px;
    height: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .stage-screen-layer,
  .stage-controls::before,
  .stage-play,
  .button,
  .button > span,
  .nav-links a,
  .site-header {
    transition: none !important;
    animation: none !important;
  }
  .stage-screen-layer {
    transform: none !important;
  }
  .path-visual img,
  .closing-inner img {
    animation: none !important;
    transform: none !important;
  }
  .button:active,
  .stage-controls button:active,
  .stage-play:active {
    transform: none !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled,
  .stage-play {
    background: #121212;
  }
}
@media (prefers-contrast: more) {
  .site-header.is-scrolled,
  .stage-play {
    background: #121212;
  }
}
/* Keep the approved emphasis, even when the individual words are animated. */
.hero h1 .motion-word,
.trust-layout h2 .motion-word {
  color: inherit;
}
