/* Quiet motion and duotone icons for the whole site. Uses `translate`/`scale`, so it never fights Motion's inline transforms. */
.feat svg.duo { width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: #efeaff; color: var(--accent); margin-bottom: 18px; }
.feat svg.duo .soft { fill: currentColor; opacity: .18; stroke: none; }
.feat:nth-child(6n+2) svg.duo { background: #ffe9dd; color: #c45a2c; }
.feat:nth-child(6n+3) svg.duo { background: #e2f0ff; color: #2866b8; }
.feat:nth-child(6n+4) svg.duo { background: #e4f4ea; color: #1b7a47; }
.feat:nth-child(6n+5) svg.duo { background: #f8e6f6; color: #a13a96; }
.feat:nth-child(6n+6) svg.duo { background: #fbf0d4; color: #8f6410; }

@media (prefers-reduced-motion: no-preference) {
  .feat svg.duo { transition: rotate .45s cubic-bezier(.2, .8, .2, 1), scale .45s cubic-bezier(.2, .8, .2, 1); }
  .feat:hover svg.duo { rotate: -4deg; scale: 1.07; }

  .btn { transition: background-color .25s, border-color .25s, color .25s, scale .18s; }
  .btn:active { scale: .97; }
  .btn svg { transition: translate .3s cubic-bezier(.2, .8, .2, 1); }
  .btn:hover svg { translate: 0 1px; }

  .brand img { transition: rotate .5s cubic-bezier(.2, .8, .2, 1); }
  .brand:hover img { rotate: -8deg; }
  .nav-links a { transition: color .2s, background-color .3s; }
  .site-footer li a { display: inline-block; transition: color .2s, translate .3s cubic-bezier(.2, .8, .2, 1); }
  .site-footer li a:hover { translate: 3px 0; }

  .plans .plan { transition: box-shadow .4s, translate .4s cubic-bezier(.2, .8, .2, 1); }
  .plans .plan:hover { translate: 0 -3px; box-shadow: 0 20px 44px -30px rgba(45, 25, 110, .45); }
  .steps-3 > * .n { transition: color .3s, translate .35s; }
  .steps-3 > *:hover .n { color: var(--accent); translate: 2px 0; }
  .faq-list details[open] > :not(summary) { animation: polish-open .35s cubic-bezier(.2, .8, .2, 1); }

  /* the product window works through its task once, then only breathes */
  .shot .steps span { animation: polish-step .7s cubic-bezier(.2, .8, .2, 1) backwards; }
  .shot .steps span:nth-child(1) { animation-delay: 1.1s; }
  .shot .steps span:nth-child(2) { animation-delay: 1.6s; }
  .shot .steps span:nth-child(3) { animation-delay: 2.1s; }
  .shot .diff pre .a { animation: polish-line .5s ease backwards; animation-delay: 2.6s; }
  .shot .diff pre .a:nth-child(n+4) { animation-delay: 2.85s; }
  .shot .diff pre .a:nth-child(n+7) { animation-delay: 3.1s; }
  .shot .diff-head .acts .apply { animation: polish-breathe 3.6s 3.6s ease-in-out infinite; }
  .shot .composer .ph::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: polish-caret 1.15s steps(1) infinite; }
}

@keyframes polish-open { from { opacity: 0; translate: 0 -5px; } }
@keyframes polish-step { from { opacity: 0; translate: -6px 0; } }
@keyframes polish-line { from { opacity: 0; } }
@keyframes polish-breathe { 50% { box-shadow: 0 0 0 5px rgba(109, 74, 255, .16); } }
@keyframes polish-caret { 50% { opacity: 0; } }
