/* Content stays visible until the observer has been installed successfully. */
#landing .land-conversation[data-land-motion="ready"] .land-message,
#landing [data-land-reveal][data-land-motion="ready"] {
  opacity: 0;
}

#landing .land-conversation[data-land-motion="shown"] .land-message {
  animation: land-message-enter 240ms var(--ease-out) both;
}

#landing .land-conversation[data-land-motion="shown"] .land-message:nth-child(2) {
  animation-delay: 600ms;
}

#landing .land-conversation[data-land-motion="shown"] .land-message:nth-child(3) {
  animation-delay: 1200ms;
}

#landing [data-land-reveal][data-land-motion="shown"] {
  animation: land-figure-enter 420ms var(--ease-out) both;
}

/* Reserve space for both the confirmation mark and the changing label. */
#landing .promptbox #landCopy {
  width: 224px;
  max-width: 100%;
  gap: 8px;
}

#landing #landCopy .land-copy-check {
  display: inline-block;
  flex: 0 0 1em;
  width: 1em;
  opacity: 0;
  transform: scale(.9);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

#landing #landCopy[data-copied="true"] .land-copy-check {
  opacity: 1;
  transform: scale(1);
}

@keyframes land-message-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes land-figure-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes land-gentle-enter {
  from { opacity: .85; }
  to { opacity: 1; }
}

@media (hover: hover) and (pointer: fine) {
  #landing .btn:hover { transform: translateY(-2px); }
}

@media (max-width: 700px) {
  #landing .promptbox #landCopy { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #landing .land-hero-art {
    animation: land-gentle-enter 120ms var(--ease-out) both;
    transform: none;
  }

  #landing .land-conversation[data-land-motion="ready"] .land-message,
  #landing [data-land-reveal][data-land-motion="ready"] {
    opacity: .85;
  }

  #landing .land-conversation[data-land-motion="shown"] .land-message,
  #landing [data-land-reveal][data-land-motion="shown"] {
    animation: land-gentle-enter 120ms var(--ease-out) both;
    transform: none;
  }

  #landing .land-conversation[data-land-motion="shown"] .land-message:nth-child(n) {
    animation-delay: 0ms;
  }

  #landing #landCopy .land-copy-check {
    visibility: hidden;
    opacity: .85;
    transform: none;
    transition: opacity 120ms var(--ease-out);
  }

  #landing #landCopy[data-copied="true"] .land-copy-check {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  #landing .btn:hover,
  #landing .btn:active { transform: none; }
}

/* Keyboard confirmation is instant, including when reduced motion is enabled. */
#landing #landCopy:focus-visible:hover,
#landing #landCopy:focus-visible:active {
  transform: none;
}

#landing #landCopy[data-copy-input="keyboard"] .land-copy-check {
  transition: none;
  transform: none;
}
