{
  "$description": "Ofi redesign tokens, aligned on the Flutter app (lib/student/ui/tokens.dart + theme.dart, Flutter 3.44, Material 3, light mode only). Colors are sRGB hex. Same values as the prototype (app.js rolesTheme, app.css).",
  "colorRoles": {
    "$note": "The app's 9 color roles. One value changes the whole app. gradientEnd is a 10th role, only needed if the gradient is kept.",
    "themes": {
      "violet":      { "accent": "#6947F5", "accentStrong": "#7B5CFA", "accentSoft": "#F2EFFD", "surfaceSunken": "#F4F3F9", "line": "#E1DEEA", "text1": "#1F1938", "text2": "#534D6A", "text3": "#7F7A94", "onAccent": "#FFFFFF", "gradientEnd": "#C056F0" },
      "sunrise":     { "accent": "#F14B63", "accentStrong": "#F2546B", "accentSoft": "#FDEFF1", "surfaceSunken": "#F9F3F4", "line": "#EADEE0", "text1": "#38191E", "text2": "#6A4D51", "text3": "#947A7E", "onAccent": "#FFFFFF", "gradientEnd": "#E8673A" },
      "mint":        { "accent": "#0FA492", "accentStrong": "#0E9F8E", "accentSoft": "#EFFDFC", "surfaceSunken": "#F3F9F8", "line": "#DEEAE9", "text1": "#193835", "text2": "#4D6A67", "text3": "#7A9491", "onAccent": "#FFFFFF", "gradientEnd": "#2FA572" },
      "lagoon":      { "accent": "#5D55E7", "accentStrong": "#4F46E5", "accentSoft": "#F1F0FD", "surfaceSunken": "#F3F3F9", "line": "#DFDEEA", "text1": "#1B1938", "text2": "#4F4D6A", "text3": "#7B7A94", "onAccent": "#FFFFFF", "gradientEnd": "#0891B2" },
      "currentBlue": { "accent": "#357ED1", "accentStrong": "#2A6DB8", "accentSoft": "#F1F6FC", "surfaceSunken": "#F3F6F9", "line": "#DEE4EA", "text1": "#192838", "text2": "#4D5B6A", "text3": "#7A8694", "onAccent": "#FFFFFF" }
    },
    "derived": {
      "$note": "Not new roles: opacity of an existing role (Flutter: color.withValues(alpha: x)).",
      "accentTint16": "accent at 16% (chips, highlights, selection)",
      "accentTint32": "accent at 32% (focus ring, record button halo)",
      "pressedSurface": "text1 at 7% (meter tracks, pressed cards)",
      "recordingBackground": "text1 (the recording screen is the only dark screen; no dark mode)"
    },
    "fixed": {
      "$note": "Not affected by the theme.",
      "background": "#FFFFFF",
      "ready":   { "bg": "#E5F4EB", "fg": "#276F46", "solid": "#34A065" },
      "warning": { "bg": "#FDF1E2", "fg": "#8A5413", "solid": "#E39A3B" },
      "danger":  { "bg": "#FCEBEA", "solid": "#E0483E" },
      "course":  { "purple": "#7B61D9", "blue": "#3A8BDD", "teal": "#1F9E8A", "orange": "#DB8530" }
    }
  },
  "font": {
    "family": "Assistant 300–800 (Hebrew + Latin). Varela Round only for the Ofi wordmark.",
    "size": { "largeTitle": 32, "title1": 26, "title2": 22, "title3": 20, "body": 17, "callout": 16, "subhead": 15, "footnote": 14, "caption": 13, "tab": 11.5, "timer": 64 },
    "weight": { "light": 300, "regular": 400, "semibold": 600, "bold": 700, "heavy": 800 },
    "lineHeight": { "text": 1.45, "reading": 1.55, "display": 1.12 },
    "numbers": "tabular figures for timers, prices, counters (FontFeature.tabularFigures())"
  },
  "radius": { "s": 10, "m": 14, "l": 20, "xl": 28, "pill": 999 },
  "spacing": { "scale": [4, 8, 12, 16, 20], "screenGutter": 20, "cardPadding": 16, "stackGap": 12, "inlineGap": 8, "sectionGap": "20 + 8" },
  "icons": "Material Icons, rounded style (Icons.<name>_rounded). Name map in icones.js (const MATERIAL) and HANDOFF.md.",
  "referenceScreen": { "device": "iPhone 6.9 inch", "points": [440, 956] },
  "size": { "touchMin": 44, "button": 56, "tabBar": 64, "recordButtonInTabBar": 66, "recordHeart": 132 },
  "motion": {
    "duration": { "tap": 120, "state": 220, "screen": 420, "sheet": 460, "sheetOut": 300, "toast": 420 },
    "easing": {
      "out": "cubic-bezier(0.16, 1, 0.3, 1)",
      "ios": "cubic-bezier(0.32, 0.72, 0, 1)",
      "in": "cubic-bezier(0.55, 0, 0.75, 0.2)",
      "spring": "cubic-bezier(0.34, 1.45, 0.64, 1)"
    },
    "flutter": {
      "out": "Cubic(0.16, 1, 0.3, 1)",
      "ios": "Cubic(0.32, 0.72, 0, 1)",
      "in": "Cubic(0.55, 0, 0.75, 0.2)",
      "spring": "Cubic(0.34, 1.45, 0.64, 1), or SpringDescription(mass: 1, stiffness: 220, damping: 18)",
      "reduceMotion": "MediaQuery.disableAnimationsOf(context)"
    },
    "stagger": 50,
    "reducedMotion": "Replace movement with an instant change or a 150 ms crossfade. Keep every state change."
  }
}
