/* Short, quiet movement for the public site, order page and studio on phones. */
@keyframes mobile-sheet-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mobile-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 800px) {
  :where(button, .button, .text-button, .demo-choice, .direction-card, .style-card, .choice-chip span) {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  :where(button, .button, .text-button) { min-height: 44px; }
  .choice-chip span { min-height: 44px; display: flex; align-items: center; }
  :where(.faq-list, .questionnaire-modal) summary { min-height: 44px; }
  :where(button, .button, .text-button, .demo-choice) {
    transition: transform .22s var(--ease), background-color .22s, border-color .22s;
  }
  :where(button, .button, .text-button, .demo-choice, .direction-card, .style-card).touch-pressed {
    transform: scale(.975);
    transition-duration: .09s;
  }
  .choice-chip.touch-pressed span { transform: scale(.95); transition-duration: .09s; }
  .reveal { transform: translateY(12px); transition-duration: .42s; }
  .reveal.shown { transform: none; }
  #modal {
    width: calc(100% - 16px);
    max-height: 88dvh;
    margin: auto 8px 0;
    border-radius: 18px 18px 0 0;
    overscroll-behavior-y: contain;
    scroll-padding: 20px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
  #modal[open] { animation: mobile-sheet-in .32s var(--ease) both; }
  #modal::backdrop {
    backdrop-filter: none;
    animation: mobile-backdrop-in .22s ease both;
  }
  #modal .close { width: 44px; height: 44px; }
  #modal.questionnaire-modal:has(.form-brand) { padding: 0; }
  #modal .form-body { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .form-stage { --slide-from: 10px; animation-duration: .3s; }
  .form-stage.step-back { --slide-from: -10px; }
  .form-stage.step-still { animation: none; }
  .form-stage .field :is(input, textarea, select) { font-size: 16px; }
  .toast, #client-notice { bottom: max(20px, env(safe-area-inset-bottom)); }
}
/* Touch devices must not retain mouse hover effects after a tap. */
@media (hover: none) {
  .button:hover { transform: none; box-shadow: none; }
  .button:hover span { transform: none; }
  .hero-art:hover .sleeve { transform: rotate(-8deg); }
  .hero-art:hover .record { transform: rotate(16deg); }
  .track-card:hover .track-art, .hero-benefits li:hover { transform: none; }
  .sample-toggle:hover, .demo-card:hover { transform: none; }
  .hero-record:hover { transform: rotate(13deg); }
  .style-card:hover, .direction-card:hover { transform: none; box-shadow: none; }
  .questionnaire-modal:has(.form-brand) .close:hover { transform: none; background: transparent; }
  .button.touch-pressed, .style-card.touch-pressed, .direction-card.touch-pressed { transform: scale(.975); }
  .sample-toggle.touch-pressed { transform: scale(.95); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .touch-pressed, .choice-chip.touch-pressed span { transform: none !important; }
}
