/* ══════════════════════════════════════════════════════════════════════════
   STUDYFORGE / OPS — deck + landing shared design system
   Tokens lifted verbatim from src/index.css ("ignite" gunmetal theme).
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:            #0a0c10;
  --bg-2:          #0e1117;
  --panel:         #141821;
  --panel-inner:   #181d28;
  --panel-deep:    #0e1218;

  --text:          #e8edf5;
  --text-sub:      #98a1b3;
  --text-dim:      #5a6478;
  --text-faint:    #2d3447;

  --c-dev:         #3ec9ff;   /* developer — electric cyan   */
  --c-dev-dim:     #0d3a4e;
  --c-gf:          #9db4ff;   /* girlfriend — soft periwinkle */
  --c-gf-dim:      #1c2740;

  --accent:        var(--c-dev);
  --accent-dim:    var(--c-dev-dim);

  --success:       #4ade80;  --success-dim: #0d2818;
  --warning:       #fbbf24;  --warning-dim: #2a1d05;
  --danger:        #f87171;  --danger-dim:  #2a0d0d;

  --border:        #232a3a;
  --border-strong: #34405a;
  --border-hair:   #1a1f2c;
  --separator:     #1a1f2c;

  --grid-line:     rgba(120, 200, 240, 0.045);

  --disp: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --semi: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* modular scale, ratio 1.333 — rule 6 */
  --t-display: 92px;
  --t-head:    62px;
  --t-sub:     28px;
  --t-body:    21px;
  --t-cap:     14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── eyebrow / label / rule ──────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-cap);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--accent); flex: none;
}
.eyebrow.plain::before { display: none; }

.kicker {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ── deck stage ──────────────────────────────────────────────────────────── */
.stage-wrap {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 78% 12%, rgba(62,201,255,0.055), transparent 62%),
    var(--bg);
}
.stage {
  width: 1280px; height: 720px;
  position: relative;
  transform-origin: center center;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-hair), 0 40px 120px rgba(0,0,0,0.6);
}
.stage::before {           /* canvas grid — the app's signature backdrop */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.slide {
  position: absolute; inset: 0;
  padding: 64px 72px;            /* 5% edge safe-zone — rule 5 */
  display: none;
  flex-direction: column;
}
.slide.is-active { display: flex; }

/* staggered reveal — rule 15 web / motion layer */
.slide.is-active .rv {
  animation: rise 520ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
}
.slide.is-active .rv:nth-child(1) { animation-delay: 40ms; }
.slide.is-active .rv:nth-child(2) { animation-delay: 110ms; }
.slide.is-active .rv:nth-child(3) { animation-delay: 180ms; }
.slide.is-active .rv:nth-child(4) { animation-delay: 250ms; }
.slide.is-active .rv:nth-child(5) { animation-delay: 320ms; }
.slide.is-active .rv:nth-child(6) { animation-delay: 390ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide.is-active .rv { animation: none; }
}

/* ── slide typography ────────────────────────────────────────────────────── */
h1.display {
  font-family: var(--disp);
  font-size: var(--t-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
}
h2.head {
  font-family: var(--disp);
  font-size: var(--t-head);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.008em;
  text-transform: uppercase;
  margin: 14px 0 0;
  max-width: 17ch;
}
.sub {
  font-family: var(--body);
  font-size: var(--t-sub);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-sub);
  max-width: 46ch;
  margin: 18px 0 0;
}
.body {
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--text-sub);
  max-width: 52ch;
  margin: 0;
}
.accent { color: var(--accent); }
.gf     { color: var(--c-gf); }

.slide-num {
  position: absolute; right: 40px; bottom: 30px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--text-faint);
}
.src {
  position: absolute; left: 72px; bottom: 30px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--text-faint);
}

/* ── layout helpers ──────────────────────────────────────────────────────── */
.split {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; min-height: 0;
}
.split.narrow-left  { grid-template-columns: 0.86fr 1.14fr; }
.split.narrow-right { grid-template-columns: 1.16fr 0.84fr; }
.col { min-width: 0; }
.center-col { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }

/* ── cards ───────────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 26px;
  min-width: 0;
}
.card-title {
  font-family: var(--semi);
  font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 8px;
}
.card-body { font-size: 17px; line-height: 1.5; color: var(--text-sub); margin: 0; }
.card-ico {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent);
  margin-bottom: 16px;
}

/* stat tile — dataviz KPI spec: number dominant, label quiet */
.stat { border-left: 2px solid var(--accent); padding-left: 20px; }
.stat-num {
  font-family: var(--disp); font-weight: 700;
  font-size: 68px; line-height: 0.9;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.stat-num .unit { font-size: 0.42em; color: var(--text-dim); margin-left: 4px; }
.stat-lbl {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 10px;
}

/* numbered step list */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; align-items: start; }
.steps .n {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent); padding-top: 5px; letter-spacing: 0.08em;
}
.steps .t { font-family: var(--semi); font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text); }
.steps .d { font-size: 16.5px; line-height: 1.5; color: var(--text-sub); margin-top: 3px; }

/* ── deck chrome ─────────────────────────────────────────────────────────── */
.deck-bar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--border-hair); z-index: 40;
}
.deck-bar span {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  transition: width 320ms cubic-bezier(0.2,0.7,0.2,1);
}
.deck-nav {
  position: fixed; right: 22px; bottom: 22px; z-index: 41;
  display: flex; gap: 8px; align-items: center;
}
.navbtn {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 86%, transparent);
  color: var(--text-sub); cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(10px);
  transition: color 160ms, border-color 160ms, background 160ms;
}
.navbtn:hover { color: var(--accent); border-color: var(--accent); }
.navbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.navbtn:active { transform: scale(0.94); }
.deck-count {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--text-dim); padding: 0 8px;
}

/* ══════════════════════════════════════════════════════════════════════════
   PHONE MOCKUPS — the app's real chrome, rebuilt with mock data
   ══════════════════════════════════════════════════════════════════════════ */
.phone {
  --tile: var(--accent);
  width: 300px; height: 620px;
  border-radius: 30px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), inset 0 0 0 6px #05070a;
  padding: 10px 6px;
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
  flex: none;
  font-family: var(--body);
}
.phone.gf { --tile: var(--c-gf); --accent: var(--c-gf); --accent-dim: var(--c-gf-dim); }
.phone.wide { width: 330px; }

.ph-notch {
  width: 78px; height: 5px; border-radius: 3px;
  background: #05070a; margin: 0 auto 8px;
}
.ph-top {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px 10px; border-bottom: 1px solid var(--separator);
  flex: none;
}
.ph-title {
  font-family: var(--disp); font-weight: 700; font-size: 19px;
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--text);
  flex: 1; line-height: 1;
}
.ph-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px 0 7px; border-radius: 999px;
  border: 1.5px solid var(--accent); background: var(--accent-dim); color: var(--accent);
  font-family: var(--semi); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.ph-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.ph-screen { flex: 1; overflow: hidden; padding: 12px; display: flex; flex-direction: column; gap: 12px; }

.ph-eyebrow {
  font-family: var(--semi); font-weight: 700; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim);
  display: flex; justify-content: space-between;
}

.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-tile {
  border: 1px solid var(--separator); background: var(--panel);
  border-radius: 14px; padding: 11px;
  display: flex; flex-direction: column; gap: 9px;
  min-height: 108px;
  position: relative; overflow: hidden;
}
.ph-chip {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--tile); color: #05070a;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tile) 32%, transparent);
}
.ph-chip svg { width: 18px; height: 18px; }
.ph-name {
  font-family: var(--semi); font-weight: 700; font-size: 13px; line-height: 1.12;
  color: var(--text);
}
.ph-meta {
  font-family: var(--semi); font-weight: 600; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim);
}
.ph-bar { height: 6px; border-radius: 999px; background: var(--separator); overflow: hidden; }
.ph-bar i { display: block; height: 100%; border-radius: 999px; background: var(--tile); }

.ph-banner {
  border-radius: 14px; padding: 14px; color: #04070c;
  background: linear-gradient(135deg, var(--tile), color-mix(in srgb, var(--tile) 74%, #000));
}
.ph-banner h4 {
  font-family: var(--disp); font-weight: 700; font-size: 22px; line-height: 1;
  text-transform: uppercase; margin: 0;
}
.ph-banner-stats { display: flex; gap: 18px; margin-top: 11px; }
.ph-bnum { font-family: var(--disp); font-weight: 700; font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.ph-blbl { font-family: var(--semi); font-weight: 600; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.78; margin-top: 3px; }
.ph-bbar { height: 6px; border-radius: 999px; background: rgba(0,0,0,0.24); overflow: hidden; margin-top: 12px; }
.ph-bbar i { display: block; height: 100%; background: #04070c; border-radius: 999px; }

.ph-row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--separator); background: var(--panel);
  border-radius: 12px; padding: 10px 11px;
}
.ph-row .grow { flex: 1; min-width: 0; }

.ph-status {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px; white-space: nowrap;
}
.st-good { color: var(--success); background: var(--success-dim); }
.st-warn { color: var(--warning); background: var(--warning-dim); }
.st-bad  { color: var(--danger);  background: var(--danger-dim); }
.st-acc  { color: var(--accent);  background: var(--accent-dim); }

.ph-dual { display: flex; flex-direction: column; gap: 6px; }
.ph-dual-row { display: flex; align-items: center; gap: 7px; }
.ph-dual-key { font-family: var(--semi); font-weight: 700; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); width: 26px; flex: none; }
.ph-dual-val { font-family: var(--disp); font-weight: 700; font-size: 12px; color: var(--text-sub); width: 20px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.ph-dual .ph-bar { flex: 1; height: 5px; }

.ph-tabbar {
  flex: none; display: flex; height: 50px;
  border-top: 1px solid var(--separator);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}
.ph-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-dim); position: relative;
}
.ph-tab svg { width: 18px; height: 18px; }
.ph-tab span { font-family: var(--semi); font-weight: 600; font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; }
.ph-tab.on { color: var(--accent); }
.ph-tab.on::before {
  content: ''; position: absolute; top: 0; width: 24px; height: 2.5px;
  border-radius: 0 0 3px 3px; background: var(--accent);
}

/* big LCD clock (Together) */
.lcd {
  font-family: var(--mono); font-weight: 600;
  font-size: 40px; letter-spacing: 0.04em;
  color: var(--accent); font-variant-numeric: tabular-nums;
  text-align: center; line-height: 1;
  text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ── inline SVG charts (dataviz: high data-ink, no chartjunk) ────────────── */
.chart-legend {
  display: flex; gap: 22px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.chart-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 2px; vertical-align: middle; }
