/* ============================================================
   Pesara Digital — Spacing, radii, shadows, motion, layout
   8px grid. Tap targets never below 56px (senior-first).
   Flat surfaces — shadows are soft and sparing, never heavy.
   ============================================================ */
:root {
  /* ---- Spacing scale (8px grid) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;

  /* ---- Tap targets (accessibility commitment) ---- */
  --tap-min: 56px;          /* every interactive target ≥ 56px */
  --tap-comfortable: 64px;
  --icon-floor: 28px;       /* in-app icon floor on a 24-grid */

  /* ---- Corner radii ---- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;        /* inputs, small tiles */
  --radius-lg: 18px;        /* cards */
  --radius-xl: 24px;        /* service tiles, sheets */
  --radius-2xl: 32px;       /* hero / member card */
  --radius-pill: 999px;

  /* ---- Borders ---- */
  --border-width: 1px;
  --border-width-strong: 2px;

  /* ---- Shadows (soft, flat brand — used sparingly) ---- */
  --shadow-card:   0 1px 2px rgba(16,37,90,0.06), 0 4px 16px rgba(16,37,90,0.06);
  --shadow-raised: 0 6px 20px rgba(16,37,90,0.16);   /* the gold scan button */
  --shadow-sheet:  0 -8px 32px rgba(16,37,90,0.12);  /* bottom sheets */
  --shadow-focus:  0 0 0 3px rgba(46,91,255,0.35);   /* focus ring */

  /* ---- Motion (calm — ease-out, never linear) ---- */
  --motion-micro: 200ms;       /* @kind other */ /* taps, toggles */
  --motion-standard: 400ms;    /* @kind other */ /* cards, sheets, pages */
  --motion-expressive: 700ms;  /* @kind other */ /* splash + celebration only */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */

  /* ---- Layout ---- */
  --screen-max: 440px;         /* phone canvas width */
  --content-gutter: 20px;      /* default screen side padding */
  --nav-height: 84px;          /* fixed bottom bar */
}
