/* ============================================================
   Sublime LMS — Platform hero + system (v3, product-led)
   HERO: a real app window (the "Today" workspace).
   SYSTEM: one learner's week, showing the 4 parts in context.
   Loaded after platform-overview.css; .ph2-* / .psys2-* only.
   ============================================================ */

/* ============================================================
   HERO — product window
   ============================================================ */
.ph2-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}
.ph2-glow {
  position: absolute; inset: -8% -6% -14% -6%;
  background: radial-gradient(60% 55% at 70% 35%, rgba(167,139,250,.30), transparent 70%),
              radial-gradient(50% 50% at 20% 90%, rgba(20,184,166,.16), transparent 70%);
  filter: blur(4px); z-index: 0;
}
.ph2-window {
  position: relative; z-index: 2;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 40px 80px -36px rgba(15,23,42,.34), 0 12px 30px -16px rgba(15,23,42,.12);
  overflow: hidden;
}
.ph2-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg,#FCFAFF,#fff);
}
.ph2-chrome .dots { display: flex; gap: 6px; }
.ph2-chrome .dots span { width: 10px; height: 10px; border-radius: 999px; }
.ph2-chrome .dots span:nth-child(1){background:#FCA5A5}
.ph2-chrome .dots span:nth-child(2){background:#FCD34D}
.ph2-chrome .dots span:nth-child(3){background:#86EFAC}
.ph2-url {
  flex: 1; max-width: 240px; margin: 0 auto;
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 5px 12px; border-radius: 999px;
  background: var(--color-mist); border: 1px solid var(--border-soft);
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted);
}
.ph2-url i { width: 11px; height: 11px; color: var(--color-emerald-600); }

.ph2-body { display: grid; grid-template-columns: 132px 1fr; min-height: 380px; }
.ph2-side {
  border-right: 1px solid var(--border);
  background: var(--color-mist);
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.ph2-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 0 4px; }
.ph2-brand img { height: 22px; width: auto; }
.ph2-nav { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: var(--fg-body); }
.ph2-nav i { width: 15px; height: 15px; color: var(--fg-muted); }
.ph2-nav.active { background: #fff; color: var(--color-violet-700); box-shadow: var(--shadow-xs); }
.ph2-nav.active i { color: var(--color-violet-600); }

.ph2-main { padding: 20px 22px; position: relative; }
.ph2-greet-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-violet-700); }
.ph2-greet-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--fg); letter-spacing: -0.015em; margin-top: 3px; }

.ph2-cards { display: grid; grid-template-columns: 116px 1fr; gap: 14px; margin-top: 18px; }
.ph2-ring-card, .ph2-week-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs); padding: 14px;
}
.ph2-ring { position: relative; width: 84px; height: 84px; margin: 2px auto 8px; }
.ph2-ring svg { width: 84px; height: 84px; }
.ph2-ring-bg { fill: none; stroke: #F1F5F9; stroke-width: 9; }
.ph2-ring-fg {
  fill: none; stroke: #6D28D9; stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 220; stroke-dashoffset: 220; transform: rotate(-90deg); transform-origin: center;
  animation: ph2-ring 1.8s var(--ease-out) .6s forwards;
}
@keyframes ph2-ring { to { stroke-dashoffset: 62; } }
.ph2-ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ph2-ring-val b { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--fg); letter-spacing: -0.02em; line-height: 1; }
.ph2-ring-val span { font-size: 8px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }
.ph2-ring-card .cap { text-align: center; font-family: var(--font-display); font-weight: 650; font-size: 11px; color: var(--fg); }

.ph2-week-lbl { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 10px; }
.ph2-step { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.ph2-step + .ph2-step { border-top: 1px solid var(--border-soft); }
.ph2-step .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.ph2-step .ic i { width: 13px; height: 13px; }
.ph2-step.teal .ic { background: var(--color-teal-100); color: var(--color-teal-700); }
.ph2-step.violet .ic { background: var(--color-violet-100); color: var(--color-violet-700); }
.ph2-step.blue .ic { background: var(--color-blue-100); color: var(--color-blue-700); }
.ph2-step.emerald .ic { background: var(--color-emerald-100); color: var(--color-emerald-700); }
.ph2-step .tx { flex: 1; min-width: 0; }
.ph2-step .tx b { display: block; font-family: var(--font-display); font-weight: 650; font-size: 11.5px; color: var(--fg); }
.ph2-step .tx span { display: block; font-size: 9.5px; color: var(--fg-muted); }
.ph2-step .dn { width: 16px; height: 16px; color: var(--color-emerald-600); flex-shrink: 0; }
.ph2-step .pct { font-size: 10px; font-weight: 700; color: var(--color-violet-700); }

/* floating Sublime Intelligence insight, overlapping right edge */
.ph2-insight {
  position: absolute; z-index: 6;
  top: 30%; right: -7%;
  width: 210px;
  background: #fff; border: 1px solid var(--color-violet-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 13px 14px;
  display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start;
  opacity: 0; transform: translateX(16px);
  animation: ph2-slide .7s var(--ease-out) 1.3s forwards, ph2-float 5.5s ease-in-out 2s infinite;
}
@keyframes ph2-slide { to { opacity: 1; transform: translateX(0); } }
@keyframes ph2-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ph2-insight .ai { position: relative; width: 32px; height: 32px; border-radius: 9px; background: var(--gradient-ai-primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-violet-soft); }
.ph2-insight .ai i { width: 16px; height: 16px; }
.ph2-insight .ai .pd { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 999px; background: #8B5CF6; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(139,92,246,.3); animation: ph2-breathe 2.4s ease-in-out infinite; }
@keyframes ph2-breathe { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
.ph2-insight .lbl { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-violet-700); }
.ph2-insight b { display: block; font-family: var(--font-display); font-weight: 650; font-size: 12px; color: var(--fg); margin-top: 2px; line-height: 1.35; letter-spacing: -0.005em; }

/* floating live-cohort pill bottom-left */
.ph2-live {
  position: absolute; z-index: 6;
  bottom: 6%; left: -5%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-family: var(--font-display); font-weight: 650; font-size: 11.5px; color: var(--fg);
  animation: ph2-float 6s ease-in-out 1s infinite;
}
.ph2-live .av { display: flex; }
.ph2-live .av span { width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid #fff; margin-left: -7px; display: grid; place-items: center; color: #fff; font-size: 8px; font-weight: 700; font-family: var(--font-display); }
.ph2-live .av span:first-child { margin-left: 0; }
.ph2-live .pulse { width: 7px; height: 7px; border-radius: 999px; background: var(--color-teal-500); box-shadow: 0 0 0 3px rgba(20,184,166,.2); }

/* ============================================================
   SYSTEM — one learner's week (4 parts in context)
   ============================================================ */
.psys2 {
  position: relative;
  width: 100%; max-width: 960px;
  margin: 36px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 24px 26px 22px;
}
.psys2-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.psys2-head .ttl { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--fg); letter-spacing: -0.01em; }
.psys2-head .sub { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.psys2-head .chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--color-emerald-50); color: var(--color-emerald-700); font-size: 11px; font-weight: 700; }
.psys2-head .chip i { width: 13px; height: 13px; }

.psys2-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.psys2-day { position: relative; }
.psys2-day-h { text-align: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--fg-muted); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.psys2-day.today .psys2-day-h {
  color: #fff;
  background: var(--color-violet-600);
  border-bottom: none;
  border-radius: 999px;
  padding: 5px 0 4px;
  margin: -2px 8px 12px;
  position: relative;
  box-shadow: 0 6px 16px -6px rgba(109,40,217,.5);
}
.psys2-day.today .psys2-day-h::after {
  content: 'Today'; display: inline-block; margin-left: 6px;
  font-family: var(--font-sans); font-size: 8px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  opacity: .9;
}
.psys2-day.today { position: relative; }
.psys2-day.today .psys2-chips::before {
  content: ''; position: absolute; top: 30px; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: calc(100% + 14px); border-radius: 14px;
  background: rgba(109,40,217,.04); border: 1px dashed rgba(109,40,217,.16);
  z-index: 0; pointer-events: none;
}
.psys2-day.today .psys2-chip { position: relative; z-index: 1; }

.psys2-chips { display: flex; flex-direction: column; gap: 8px; }
.psys2-chip {
  border-radius: 12px; padding: 11px 12px;
  border: 1px solid var(--border-soft);
  opacity: 0; transform: translateY(8px);
  animation: psys2-in .5s var(--ease-out) forwards;
}
@keyframes psys2-in { to { opacity: 1; transform: none; } }
.psys2-chip .top { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.psys2-chip .top i { width: 14px; height: 14px; }
.psys2-chip .top span { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.psys2-chip b { display: block; font-family: var(--font-display); font-weight: 650; font-size: 12px; color: var(--fg); letter-spacing: -0.005em; line-height: 1.3; }
.psys2-chip small { display: block; font-size: 10px; color: var(--fg-muted); margin-top: 2px; }

.psys2-chip.learning { background: var(--color-teal-50); border-color: var(--color-teal-100); }
.psys2-chip.learning .top { color: var(--color-teal-700); }
.psys2-chip.learning .top i { color: var(--color-teal-700); }
.psys2-chip.quiz { background: var(--color-violet-50); border-color: var(--color-violet-200); }
.psys2-chip.quiz .top { color: var(--color-violet-700); }
.psys2-chip.quiz .top i { color: var(--color-violet-700); }
.psys2-chip.intel { background: linear-gradient(135deg, #FAF5FF, #fff); border-color: var(--color-violet-200); }
.psys2-chip.intel .top { color: var(--color-violet-700); }
.psys2-chip.intel .top i { color: var(--color-violet-700); }
.psys2-chip.cohort { background: var(--color-teal-50); border-color: var(--color-teal-100); }
.psys2-chip.cohort .top { color: var(--color-teal-700); }
.psys2-chip.cohort .top i { color: var(--color-teal-700); }
.psys2-chip.assign { background: var(--color-blue-50); border-color: var(--color-blue-100); }
.psys2-chip.assign .top { color: var(--color-blue-700); }
.psys2-chip.assign .top i { color: var(--color-blue-700); }
.psys2-chip.recovery { background: var(--color-emerald-50); border-color: var(--color-emerald-100); }
.psys2-chip.recovery .top { color: var(--color-emerald-700); }
.psys2-chip.recovery .top i { color: var(--color-emerald-700); }

.psys2-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-soft);
}
.psys2-legend .spacer { flex: 1; }
.psys2-legend .psys2-foot-note {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--fg-muted); font-weight: 500;
}
.psys2-legend .psys2-foot-note i { width: 14px; height: 14px; color: var(--color-violet-600); border-radius: 0; background: none; }
.psys2-legend .psys2-foot-note b { font-family: var(--font-display); font-weight: 700; color: var(--fg); }
.psys2-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--fg-body); font-weight: 500; }
.psys2-legend i { width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; }
.psys2-legend i svg, .psys2-legend i [data-lucide] { width: 10px; height: 10px; }
.psys2-legend .lg-learning { background: var(--color-teal-100); color: var(--color-teal-700); }
.psys2-legend .lg-cohort { background: var(--color-teal-100); color: var(--color-teal-700); }
.psys2-legend .lg-intel { background: var(--color-violet-100); color: var(--color-violet-700); }
.psys2-legend .lg-recovery { background: var(--color-emerald-100); color: var(--color-emerald-700); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .psys2-week { grid-template-columns: repeat(5, 1fr); gap: 8px; }
}
@media (max-width: 760px) {
  .ph2-insight { right: 2%; }
  .ph2-live { left: 2%; }
}
@media (max-width: 680px) {
  .ph2-body { grid-template-columns: 1fr; }
  .ph2-side { display: none; }
  .ph2-cards { grid-template-columns: 1fr; }
  .ph2-insight { position: static; width: auto; margin: 14px 0 0; transform: none; opacity: 1; animation: none; }
  .ph2-live { position: static; margin: 12px auto 0; animation: none; }
  .psys2 { padding: 20px; }
  .psys2-week { grid-template-columns: 1fr 1fr; }
  .psys2-day { padding-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .ph2-ring-fg, .ph2-insight, .ph2-live, .psys2-chip, .psys2-day.today::before {
    animation: none !important;
  }
  .ph2-ring-fg { stroke-dashoffset: 62 !important; }
  .ph2-insight { opacity: 1 !important; transform: none !important; }
  .psys2-chip { opacity: 1 !important; transform: none !important; }
}
