/**
 * trialBannerVariant — trial-expiry-conversion-ui spec (Task 8).
 *
 * Pure helper that maps trial days-remaining to a design-token color variant.
 * Consumed by the app-shell TrialBanner render to select the correct Alert variant.
 *
 * Design tokens used:
 *   'info'    → --info    (blue — for trial_active, daysLeft > 3)
 *   'warning' → --warning (amber, bold — for daysLeft ≤ 3)
 */

/** Color variant for the active-trial banner */
export type TrialBannerColorVariant = 'info' | 'warning'

/**
 * Returns 'warning' (amber, bold) when daysLeft is ≤ 3, otherwise 'info' (blue).
 */
export function trialBannerVariant(daysLeft: number): TrialBannerColorVariant {
  return daysLeft <= 3 ? 'warning' : 'info'
}
