/* Motion used by the homepage and selected sections of the main pages. */
[data-reveal="marker"] { position: relative; display: inline-block; }
.pitch-marker {
  display: block;
  position: absolute;
  inset: auto 0 -.17em;
  width: 100%;
  height: .18em;
  overflow: visible;
  pointer-events: none;
}

body main .slim-faq .explanation-panel p { margin-block: 0; line-height: 1.9; }
.motion-anchor { scroll-margin-top: 9rem; }

@media screen and (prefers-reduced-motion: no-preference) {
  .explanation-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .26s ease-out;
  }
  details[open] > .explanation-panel { grid-template-rows: 1fr; }
  .explanation-panel > div { overflow: hidden; min-height: 0; }
  :is(.slim-faq details, .demo-recording)::details-content {
    transition: content-visibility .26s allow-discrete;
  }
  @starting-style {
    details[open] > .explanation-panel { grid-template-rows: 0fr; }
  }
  dialog.ai-prompt-dialog[open] {
    animation: ai-dialog-enter .2s ease-out;
  }
  dialog.ai-prompt-dialog[open]::backdrop {
    animation: ai-backdrop-enter .2s ease-out;
  }
  @keyframes ai-dialog-enter {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes ai-backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes marker-sweep {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
  }
  @keyframes card-arrival {
    from { translate: 0 38px; opacity: 0; }
    to { translate: 0 0; opacity: 1; }
  }
  @keyframes context-title-in {
    from { opacity: .3; translate: 0 5px; }
    to { opacity: 1; translate: 0 0; }
  }
  [data-reveal="marker"].motion-ready:not(.in-view) .pitch-marker {
    clip-path: inset(0 100% 0 0);
  }
  [data-reveal="marker"].in-view .pitch-marker {
    animation: marker-sweep .56s cubic-bezier(.35,.08,.3,1) both;
  }
  [data-reveal="fade"].in-view, .verb-panel.tab-revealed:not([hidden]) .verb-copy {
    animation: context-title-in .36s ease-out;
  }
  [data-reveal="series"].motion-ready:not(.in-view):not(:focus-within) {
    opacity: 0;
    translate: 0 38px;
  }
  [data-reveal="series"].in-view {
    animation: card-arrival .66s cubic-bezier(.3333,.6667,.6667,1) backwards;
  }
  @media (min-width: 851px) {
    [data-reveal="series"][data-order="2"].in-view { animation-delay: .12s; }
    [data-reveal="series"][data-order="3"].in-view { animation-delay: .24s; }
  }
  [data-reveal="series"]:focus-within { animation: none; }
  [data-motion-copy].is-copied .copy-check {
    stroke-dasharray: 1;
    animation: copy-confirmed .24s ease-out;
  }
  @keyframes copy-confirmed { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
[data-motion-copy] .copy-check { display: none; }
[data-motion-copy].is-copied svg > :not(.copy-check) { display: none; }
[data-motion-copy].is-copied .copy-check { display: inline; }
