/*
 * Polish layer for the public pages (order, track, repair, repair-track, analytics).
 * Injected after each page's own styles by serve_legacy_page(); same layout and
 * colors, refined type, depth, focus states and motion.
 */
:root {
  --omps-ease: cubic-bezier(.22, 1, .36, 1);
  --omps-spring: cubic-bezier(.34, 1.4, .64, 1);
  --omps-border: #e6e8ee;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; -webkit-font-smoothing: antialiased; }

.card, .landing-card, .lookup-card, .status-card, .success-card, .not-found-card {
  border-radius: 14px;
  border: 1px solid var(--omps-border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
}
.omps-reveal { opacity: 0; transform: translateY(10px); }
.omps-reveal.omps-in { opacity: 1; transform: none; transition: opacity .5s var(--omps-ease), transform .5s var(--omps-ease); }

.landing-card, .lookup-card, .success-card, .not-found-card, .modal-box, .dup-modal { animation: omps-pop .45s var(--omps-spring) both; }

.btn {
  transition: transform .14s var(--omps-ease), box-shadow .14s ease, filter .14s ease, background-color .14s ease;
}
.btn:hover:not(:disabled) { filter: brightness(1.05); box-shadow: 0 2px 6px rgba(16, 24, 40, .12); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }

input, select, textarea { transition: border-color .14s ease, box-shadow .14s ease; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18) !important;
}

.priority-btn, .item-check, .addon-row { transition: transform .14s var(--omps-ease), border-color .14s ease, background-color .14s ease; }
.priority-btn:active, .item-check:active { transform: scale(.98); }

.modal-backdrop, .payment-modal-backdrop, .dup-overlay { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: omps-fade .2s ease both; }

@keyframes omps-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes omps-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .omps-reveal { opacity: 1 !important; transform: none !important; }
}
