/* tokens.css - Airbnb token values mapped to shared variable names */
/* Derived from clara-web/DESIGN.md (getdesign airbnb template) */

:root {
  /* ===================== FONTS ===================== */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  /* ===================== TYPE SCALE ===================== */
  --text-display: 28px;
  --text-hero: 44px;
  --text-h1: 28px;
  --text-h2: 22px;
  --text-h3: 20px;
  --text-lg: 18px;
  --text-body: 16px;
  --text-sm: 14px;
  --text-xs: 13px;
  --text-button: 16px;
  --text-badge: 11px;

  /* ===================== SPACING ===================== */
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 64px;

  /* ===================== RADIUS ===================== */
  --radius-none: 0px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* ===================== COLORS - SURFACES ===================== */
  --color-canvas: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #f7f7f7;
  --color-surface-strong: #f2f2f2;

  /* ===================== COLORS - TEXT ===================== */
  --color-ink: #222222;
  --color-body: #3f3f3f;
  --color-muted: #6a6a6a;
  --color-muted-soft: #929292;
  --color-on-primary: #ffffff;

  /* ===================== COLORS - ACCENT ===================== */
  --color-primary: #ff385c;
  --color-primary-hover: #e00b41;
  --color-primary-disabled: #ffd1da;
  --color-primary-active: #e00b41;
  --color-luxe: #460479;
  --color-plus: #92174d;
  --color-legal-link: #428bff;

  /* ===================== COLORS - BORDERS ===================== */
  --color-border: #dddddd;
  --color-border-strong: #c1c1c1;
  --color-hairline: #dddddd;
  --color-hairline-soft: #ebebeb;

  /* ===================== COLORS - SEMANTIC ===================== */
  --color-success-bg: #e8f5e9;
  --color-success-fg: #2e7d32;
  --color-warning-bg: #fff8e1;
  --color-warning-fg: #f57c00;
  --color-error-bg: #fbe9e7;
  --color-error-fg: #c62828;

  /* ===================== BUTTONS ===================== */
  --btn-primary-bg: var(--color-primary);
  --btn-primary-fg: var(--color-on-primary);
  --btn-primary-border: var(--color-primary);
  --btn-primary-hover: var(--color-primary-hover);

  --btn-secondary-bg: var(--color-canvas);
  --btn-secondary-fg: var(--color-ink);
  --btn-secondary-border: var(--color-ink);
  --btn-secondary-hover: var(--color-surface-strong);

  --btn-padding-x: 24px;
  --btn-padding-y: 14px;
  --btn-height: 48px;

  /* ===================== LAYOUT ===================== */
  --container-max: 1280px;
  --header-height: 80px;

  /* ===================== SHADOWS ===================== */
  --shadow-card: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0;

  /* ===================== STEP NUMBER ===================== */
  --step-number-size: 40px;
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================== FOCUS VISIBLE POLYFILL ===================== */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}