// Shared mock data for AJ's Vanta dashboard.
// Same data feeds all three directions — only the visual language differs.

const VANTA_DATA = {
  user: { name: 'AJ', date: new Date('2026-05-07T07:42:00') },

  // Daily reflection — Vanta's voice. Quiet, poetic.
  reflections: [
    'The garden does not hurry, and yet it blooms.',
    'You do not have to finish the field. Only the next row.',
    'Small, steady, repeated — the shape of every river.',
    'Some mornings are for tending. Others, for noticing.',
    'A day held lightly holds more.',
  ],

  greeting: {
    salutation: 'Good morning, AJ.',
    weather: { temp: 58, sky: 'overcast', city: 'Oakland' },
    pulse: 'Three things move you forward today. The rest can wait.',
  },

  // 11 areas of life, each with a current snapshot + history + drilldown
  areas: {
    health: {
      label: 'Health',
      headline: '7,824 steps',
      sub: '62 HRV · 142.4 lb',
      trend: [5400, 6800, 9100, 7200, 8800, 11200, 7824],
      details: [
        { k: 'Steps',    v: '7,824',  goal: '8,000',   pct: 0.978 },
        { k: 'HRV',      v: '62 ms',  goal: '55+',     pct: 1 },
        { k: 'Resting',  v: '54 bpm', goal: '< 60',    pct: 1 },
        { k: 'Weight',   v: '142.4',  goal: '142',     pct: 0.99 },
        { k: 'Workouts', v: '3 / wk', goal: '4 / wk',  pct: 0.75 },
      ],
    },
    sleep: {
      label: 'Sleep',
      headline: '7h 12m',
      sub: '86% quality · in by 11:14',
      trend: [6.2, 7.4, 6.8, 7.9, 5.9, 7.1, 7.2],
      details: [
        { k: 'Last night', v: '7h 12m',     goal: '7.5h', pct: 0.96 },
        { k: 'Deep',       v: '1h 24m',     goal: '1h+',  pct: 1 },
        { k: 'REM',        v: '1h 51m',     goal: '1.5h+',pct: 1 },
        { k: 'In bed by',  v: '11:14 pm',   goal: '11:00',pct: 0.92 },
        { k: 'Avg / week', v: '6h 58m',     goal: '7.5h', pct: 0.93 },
      ],
    },
    thoughts: {
      label: 'Thoughts',
      headline: '2 today',
      sub: 'last planted 6:48 am',
      trend: [1, 3, 0, 2, 4, 1, 2],
      details: [
        { k: '“ask Dana about the panel”',      v: '6:48 am',  pct: 1 },
        { k: '“transition idea · amapiano set”', v: '6:12 am',  pct: 1 },
        { k: '“ch. 9 — attention as care”',      v: 'yesterday', pct: 0.7 },
        { k: '“reframe resume bullets”',         v: '2 d ago',  pct: 0.5 },
      ],
    },
    finance: {
      label: 'Finance',
      // Not linked yet — Garden renders a calm "connect" state. The numbers
      // below are what will populate once accounts are linked (kept for the
      // other directions + the eventual connected view).
      connect: true,
      connectCopy: 'Link your accounts and Vanta will quietly track net worth, savings rate, and spending. Prototype — no real accounts are touched.',
      headline: 'Not linked',
      sub: 'net worth · savings · spending',
      trend: [78400, 79100, 80300, 81600, 82400, 83100, 84210],
      details: [
        { k: 'Net worth',   v: '$84,210',     goal: '$100k', pct: 0.84 },
        { k: 'Spent / mo',  v: '$1,240',      goal: '$2,400',pct: 0.52 },
        { k: 'Savings rate',v: '31%',         goal: '25%+',  pct: 1 },
        { k: 'Emergency',   v: '4.2 months',  goal: '6 mo',  pct: 0.7 },
        { k: 'Subs review', v: '2 unused',    goal: '0',     pct: 0.5 },
      ],
    },
    work: {
      label: 'Work',
      headline: '4 / 5 done',
      sub: "today's assignments · 3 loops open",
      note: 'Atlas v2 — design review back, unblocked. Ship candidate Thu.',
      trend: [3, 5, 4, 5, 4, 4, 4],
      details: [
        { k: 'Assignments',  v: '4 / 5',   goal: 'today', pct: 0.8 },
        { k: 'Atlas v2',     v: '64%',     goal: 'Jul 1', pct: 0.64 },
        { k: 'Onboarding',   v: '30%',     goal: 'Jul 18',pct: 0.3 },
        { k: 'Open loops',   v: '3',       goal: 'close', pct: 0.4 },
        { k: 'Focus time',   v: '4h 12m',  goal: '4h',    pct: 1 },
      ],
    },
    habits: {
      label: 'Habits',
      headline: '5 of 7',
      sub: '18-day streak · morning pages',
      trend: [6, 7, 4, 7, 5, 6, 5],
      details: [
        { k: 'Morning pages',  v: '✓', streak: 18, done: true },
        { k: 'Walk + coffee',  v: '✓', streak: 42, done: true },
        { k: 'No phone in bed',v: '✓', streak: 9,  done: true },
        { k: 'Stretch · 10m',  v: '✓', streak: 6,  done: true },
        { k: 'Read · 20m',     v: '✓', streak: 31, done: true },
        { k: 'Language · 15m', v: '·', streak: 0,  done: false },
        { k: 'Lights out 11pm',v: '·', streak: 0,  done: false },
      ],
    },
    professional: {
      label: 'Professional',
      headline: '12 applied',
      sub: '2 interviews · 3 events this sem',
      trend: [1, 3, 2, 4, 2, 5, 3],
      details: [
        { k: 'Internships',   v: '12 applied',  note: '2 interviews pending',   pct: 0.6 },
        { k: 'Last applied',  v: '2 d ago',     note: 'Figma · product intern', pct: 0.8, href: 'https://www.figma.com/careers/' },
        { k: 'Skills',        v: 'SQL · u4',    note: 'last touched 3d ago',    pct: 0.55 },
        { k: 'Club events',   v: '3 this sem',  note: 'AMA panel · thu',        pct: 0.75 },
        { k: 'Network',       v: '2 coffees',   note: 'follow up w/ Dana',      pct: 0.5 },
      ],
    },
    learning: {
      label: 'Learning',
      headline: '3 pick-ups',
      sub: 'Bewilderment · p. 214 / 334',
      trend: [2, 3, 0, 4, 1, 5, 3],  // pick-ups per day
      details: [
        { k: 'Bewilderment',    v: '64%',     goal: '214 / 334 pp', pct: 0.64, href: 'https://www.goodreads.com/search?q=Bewilderment%20Richard%20Powers' },
        { k: 'Pick-ups',        v: '3 today', goal: 'this book',    pct: 1 },
        { k: 'News skimmed',    v: '✓ today', goal: '5-day run',    streak: 5, pct: 1 },
        { k: 'Articles read',   v: '6',       goal: '4 news · 2 fin', pct: 0.75 },
        { k: 'Academic study',  v: '45 min',  goal: 'set aside ✓',  pct: 1 },
      ],
    },
    goals: {
      label: 'Goals · 2026',
      headline: '4 themes',
      sub: 'on pace for 3',
      trend: [0.18, 0.24, 0.31, 0.38, 0.44, 0.52, 0.57],
      details: [
        { k: 'Run a half',     v: '62%', goal: 'Sep 12',  pct: 0.62 },
        { k: 'Save $20k',      v: '47%', goal: 'Dec 31',  pct: 0.47 },
        { k: 'French · B1',    v: '28%', goal: 'Dec 31',  pct: 0.28 },
        { k: '24 books',       v: '33%', goal: 'Dec 31',  pct: 0.33 },
      ],
    },
    home: {
      label: 'Home',
      headline: '3 to do',
      sub: 'mop · bathrooms · clothes',
      trend: [2, 1, 3, 2, 4, 2, 3],
      details: [
        { k: 'Mop / sweep',    v: 'today',   pct: 0 },
        { k: 'Clean bathrooms',v: 'today',   pct: 0 },
        { k: 'Hang clothes',   v: 'today',   pct: 0 },
        { k: 'Laundry',        v: 'done',    pct: 1 },
      ],
    },
    hobbies: {
      label: 'Hobbies',
      headline: '4 practices',
      sub: 'reading · fitness · yoga · dj',
      trend: [1.5, 2.0, 0.5, 2.5, 1.0, 2.0, 2.2],
      details: [
        { k: 'Reading',  v: '4 / wk',      goal: '—',   pct: 0.8 },
        { k: 'Fitness',  v: '3 / wk',      goal: '4',   pct: 0.75 },
        { k: 'Yoga',     v: '2 / wk',      goal: '3',   pct: 0.66 },
        { k: 'DJing',    v: '1h 20m',      goal: '—',   pct: 1 },
      ],
    },
  },
};

// Order matters — used by all three directions for default layout.
const VANTA_AREA_ORDER = [
  'health', 'sleep', 'thoughts',
  'work', 'finance', 'habits',
  'goals', 'learning', 'professional',
  'home', 'hobbies',
];

window.VANTA_DATA = VANTA_DATA;
window.VANTA_AREA_ORDER = VANTA_AREA_ORDER;
