/* FX WorkPay — shared design tokens (light/dark) */
:root {
  --bg: #f7f7fc; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #f1f0fb; --border: #e4e2f3;
  --text: #15132b; --muted: #5d5a78; --faint: #8a87a6;
  --brand: #6d28d9; --brand-2: #4f46e5; --accent: #0ea5a4; --accent-2: #f59e0b;
  --ok: #059669; --warn: #d97706; --bad: #dc2626; --info: #2563eb;
  --ok-bg: #ecfdf5; --warn-bg: #fffbeb; --bad-bg: #fef2f2; --info-bg: #eff6ff;
  --grad: linear-gradient(135deg, #7c3aed 0%, #4f46e5 45%, #0ea5a4 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.12), rgba(14,165,164,.12));
  --shadow: 0 1px 2px rgba(21,19,43,.06), 0 8px 24px rgba(21,19,43,.08);
  --shadow-lg: 0 24px 60px rgba(49,32,120,.18);
  --radius: 16px; --radius-sm: 10px;
  --font: "Plus Jakarta Sans", "Noto Sans Tamil", "Noto Sans Malayalam", "Noto Sans Telugu", "Noto Sans Kannada", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0b17; --bg-2: #12101f; --surface: #171528; --surface-2: #1f1c35; --border: #2c2848;
    --text: #f1effc; --muted: #a9a5c7; --faint: #77739a;
    --ok-bg: rgba(5,150,105,.15); --warn-bg: rgba(217,119,6,.15); --bad-bg: rgba(220,38,38,.15); --info-bg: rgba(37,99,235,.15);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0b17; --bg-2: #12101f; --surface: #171528; --surface-2: #1f1c35; --border: #2c2848;
  --text: #f1effc; --muted: #a9a5c7; --faint: #77739a;
  --ok-bg: rgba(5,150,105,.15); --warn-bg: rgba(217,119,6,.15); --bad-bg: rgba(220,38,38,.15); --info-bg: rgba(37,99,235,.15);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 999px; border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; font-size: .95rem; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(109,40,217,.3); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(109,40,217,.45); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; }
.logo-mark .ring { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.6s ease forwards .2s; }
.logo-mark .tick { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s ease forwards 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .logo-mark .ring, .logo-mark .tick { stroke-dashoffset: 0; } }
