/* === Base ============================================================
 * Typography defaults. Ambient orbs (subtle). Shared animations.
 * ===================================================================== */

/* Tabular numbers wherever money lives */
.num,
.money,
.field__input[type="number"],
.field__input[inputmode="decimal"] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--tx);
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }

p { color: var(--t2); }

strong { font-weight: var(--w-semibold); color: var(--tx); }

::selection {
  background: var(--primary-tint);
  color: var(--primary-deep);
}

/* ─── Utility classes ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted    { color: var(--t3); }
.soft     { color: var(--t2); }
.strong   { color: var(--tx); }
.positive { color: var(--positive-deep); }
.negative { color: var(--negative); }
.warning  { color: var(--warning); }

.eyebrow {
  font-size: var(--text-2xs);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--t3);
}

/* ─── Ambient orbs (quiet, business-y dial) ───────────────────────── */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  animation: drift 40s ease-in-out infinite;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -14%; left: -10%;
  opacity: 0.08;
  animation-duration: 42s;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--indigo) 0%, transparent 70%);
  bottom: -20%; right: -14%;
  opacity: 0.06;
  animation-duration: 50s;
  animation-delay: -10s;
}
.orb-3 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
  top: 44%; left: 56%;
  opacity: 0.04;
  animation-duration: 58s;
  animation-delay: -20s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(40px, -60px) scale(1.06); }
  50%      { transform: translate(-50px, 30px) scale(0.96); }
  75%      { transform: translate(30px, 50px) scale(1.03); }
}

/* ─── Shared keyframes ─────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
@keyframes ringExpand {
  0%   { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
