/* Lead Intelligence — app styles. Tokens come from tokens.css (44i Digital
   design system). Most component styling is inline in app.js, exactly as the
   design prototype specifies; this file holds what inline styles can't:
   keyframes, hover/active states, focus, and the sign-in pages. */

html, body { margin: 0; background: #F7F9FC; }
* { box-sizing: border-box; }
body { font-family: var(--font-sans); color: var(--fg-1); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #2F6FA8; outline-offset: 2px; }
a { color: #2F6FA8; text-decoration: none; }
a:hover { color: #2B4863; text-decoration: underline; text-underline-offset: 3px; }
::selection { background: #A9CFEC; }
h1, h2, h3 { color: inherit; }
li-icon { display: inline-flex; flex: none; }
[hidden] { display: none !important; }

/* Hover utilities. Inline styles beat stylesheet rules, so hover states are
   !important and read their value from a custom property on the element. */
.hb:hover { background: var(--hb) !important; }
.hf:hover { color: var(--hf) !important; }
.hd:hover { border-color: var(--hd) !important; }
.hs:hover { box-shadow: var(--hs) !important; }
.ht:hover { transform: var(--ht) !important; }
.hu:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 44i Digital design-system Button: hover brightens, press scales to 0.98,
   focus shows the ring. */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; line-height: 1; border-radius: var(--radius-md); cursor: pointer; transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); -webkit-tap-highlight-color: transparent; text-decoration: none !important; white-space: nowrap; }
.ds-btn:focus-visible { outline: none; box-shadow: var(--ring) !important; }
.ds-btn:active:not(:disabled) { transform: scale(0.98); }
.ds-btn:disabled { cursor: not-allowed; opacity: 0.45; }
.ds-sm { padding: 9px 16px; font-size: 13px; }
.ds-md { padding: 13px 22px; font-size: 15px; }
.ds-dark { background: var(--brand-navy); color: #fff !important; border: 1px solid transparent; box-shadow: var(--shadow-sm); }
.ds-dark:hover:not(:disabled) { background: var(--brand-navy-soft); box-shadow: var(--shadow-md); }
.ds-dark:active:not(:disabled) { background: var(--brand-navy-deep); }
.ds-secondary { background: #fff; color: var(--brand-ink) !important; border: 1px solid var(--border-strong); box-shadow: var(--shadow-xs); }
.ds-secondary:hover:not(:disabled) { background: var(--gray-50); box-shadow: var(--shadow-md); }
.ds-ghost { background: transparent; color: var(--brand-ink) !important; border: 1px solid transparent; box-shadow: none; }
.ds-ghost:hover:not(:disabled) { background: var(--brand-blue-soft); box-shadow: var(--shadow-md); }
.ds-danger { background: #fff; color: #B42318 !important; border: 1px solid #F5C2BC; box-shadow: var(--shadow-xs); }
.ds-danger:hover:not(:disabled) { background: #FEF6F5; }

input, select, textarea { outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #2F6FA8; outline-offset: 1px; }

@keyframes li-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes li-panel { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes li-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes li-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes li-slot { 0% { height: 0; opacity: 0; transform: scaleY(.92); } 55% { opacity: 1; } 100% { height: var(--h, 96px); opacity: 1; transform: scaleY(1); } }
@keyframes li-pop { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 55% { transform: scale(1.18) rotate(3deg); opacity: 1; } 78% { transform: scale(.96) rotate(-1deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes li-settle { 0% { transform: translateY(-5px) scale(.985); box-shadow: 0 18px 36px rgba(11,15,20,.14), 0 0 0 0 rgba(75,155,215,.42); } 45% { transform: translateY(1px) scale(1.006); box-shadow: 0 5px 12px rgba(11,15,20,.08), 0 0 0 7px rgba(75,155,215,.14); } 100% { transform: none; box-shadow: 0 1px 2px rgba(11,15,20,.05), 0 0 0 15px rgba(75,155,215,0); } }
@keyframes li-progress-1 { 0% { transform: translateY(-6px) scale(.982); box-shadow: 0 20px 42px rgba(11,15,20,.16), 0 0 0 0 rgba(75,155,215,.44); } 38% { transform: translateY(1px) scale(1.008); box-shadow: 0 6px 14px rgba(11,15,20,.09), 0 0 0 8px rgba(75,155,215,.16); } 100% { transform: none; box-shadow: 0 1px 2px rgba(11,15,20,.05), 0 0 0 16px rgba(75,155,215,0); } }
@keyframes li-progress-2 { 0% { transform: translateY(-7px) scale(.98); box-shadow: 0 22px 46px rgba(11,15,20,.17), 0 0 0 0 rgba(75,155,215,.48); } 34% { transform: translateY(1px) scale(1.011); box-shadow: 0 7px 16px rgba(11,15,20,.09), 0 0 0 9px rgba(75,155,215,.18); } 64% { transform: translateY(-1px) scale(.998); } 100% { transform: none; box-shadow: 0 1px 2px rgba(11,15,20,.05), 0 0 0 18px rgba(75,155,215,0); } }
@keyframes li-progress-3 { 0% { transform: translateY(-8px) scale(.978); box-shadow: 0 24px 50px rgba(11,15,20,.18), 0 0 0 0 rgba(75,155,215,.52); } 30% { transform: translateY(2px) scale(1.014); box-shadow: 0 8px 18px rgba(11,15,20,.1), 0 0 0 10px rgba(75,155,215,.2); } 58% { transform: translateY(-1px) scale(.997); } 100% { transform: none; box-shadow: 0 1px 2px rgba(11,15,20,.05), 0 0 0 20px rgba(75,155,215,0); } }
@keyframes li-won { 0% { transform: translateY(-14px) scale(.955); box-shadow: 0 34px 68px rgba(11,15,20,.24), 0 0 0 0 rgba(22,163,74,.72); border-color: #16A34A; filter: saturate(1.02); } 18% { transform: translateY(3px) scale(1.032); box-shadow: 0 10px 24px rgba(11,15,20,.12), 0 0 0 9px rgba(22,163,74,.30); border-color: #16A34A; filter: saturate(1.18); } 34% { transform: translateY(-4px) scale(.992); box-shadow: 0 6px 16px rgba(11,15,20,.10), 0 0 0 17px rgba(22,163,74,.18); } 52% { transform: translateY(1px) scale(1.014); box-shadow: 0 4px 12px rgba(11,15,20,.08), 0 0 0 25px rgba(22,163,74,.09); } 72% { transform: translateY(-1px) scale(.999); border-color: #16A34A; } 100% { transform: none; box-shadow: 0 1px 2px rgba(11,15,20,.05), 0 0 0 36px rgba(22,163,74,0); border-color: #E2E8F0; filter: none; } }
@keyframes li-lost { 0% { transform: translateY(-3px); opacity: .84; box-shadow: 0 10px 24px rgba(11,15,20,.10); } 100% { transform: none; opacity: 1; box-shadow: 0 1px 2px rgba(11,15,20,.05); } }
@keyframes li-fail { 0% { transform: translateX(0); box-shadow: 0 0 0 0 rgba(225,72,59,.45); } 18% { transform: translateX(-3px); } 36% { transform: translateX(3px); } 54% { transform: translateX(-2px); } 72% { transform: translateX(1px); box-shadow: 0 0 0 5px rgba(225,72,59,.14); } 100% { transform: none; box-shadow: 0 0 0 12px rgba(225,72,59,0); } }
@keyframes li-count { 0% { transform: translateY(0) scale(1); } 28% { transform: translateY(-2px) scale(1.28); } 52% { transform: translateY(1px) scale(.96); } 100% { transform: none; } }
@keyframes li-target-ready { 0% { box-shadow: inset 0 0 0 0 rgba(75,155,215,.04); } 100% { box-shadow: inset 0 0 0 3px rgba(75,155,215,.10); } }
@keyframes li-shimmer { 0% { background-position: -480px 0; } 100% { background-position: 480px 0; } }
@keyframes li-spin { to { transform: rotate(360deg); } }

/* Reduced motion collapses every duration, from the OS setting or the
   per-person preference. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; } }
[data-rm="true"] * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }

.skel { background: linear-gradient(90deg, #EEF2F7 0%, #F7F9FC 50%, #EEF2F7 100%); background-size: 960px 100%; animation: li-shimmer 1.2s linear infinite; }

/* ------------------------------------------------------------ sign-in pages */
.auth-body { min-height: 100vh; background: #F7F9FC; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid #E2E8F0; border-radius: 24px; box-shadow: var(--shadow-md); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; animation: li-in 260ms var(--ease-out); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; line-height: 1.15; }
.auth-brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.auth-brand-by { font-size: 12.5px; color: #2F6FA8; font-weight: 600; }
.auth-title { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.auth-sub { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--fg-2); }
.field input { height: 44px; padding: 0 12px; border: 1px solid #CBD3DE; border-radius: 10px; font-size: 15px; color: var(--fg-1); background: #fff; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-error { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #FEF6F5; border: 1px solid #F5C2BC; color: #B42318; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.auth-foot { margin: 6px 0 0; font-size: 12.5px; color: var(--fg-3); line-height: 1.5; }
