/* =========================================================
   VMCC / Comeketo — Slide deck stylesheet.
   Pairs with tokens.css + components.css.
   1920 × 1080 cream-paper deck mirroring the dark kit structure.
   ========================================================= */

deck-stage { --deck-bg: #1a1814; }

deck-stage > section {
  background: var(--paper);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: var(--normal);
  width: 1920px;
  height: 1080px;
  padding: 64px 96px;
  position: relative;
  overflow: hidden;
  font-feature-settings: "ss01","ss02","cv11";
}

/* Subtle paper texture / vignette */
deck-stage > section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(27,158,146,0.030), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(176,113,46,0.025), transparent 60%);
}

/* ===== Slide chrome ===== */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--fg-mute); font-family: var(--sans);
  font-size: 13.5px; letter-spacing: 0.06em;
  position: relative;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--cy-bright);
  box-shadow: 0 0 0 4px var(--cy-bg);
  animation: pulse-ring 1.8s ease-out infinite;
}
.eyebrow b { color: var(--fg); font-weight: 500; }
.eyebrow .num {
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-faint); letter-spacing: 0.04em;
}

.slide-footer {
  position: absolute; left: 96px; right: 96px; bottom: 38px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--fg-mute); font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.slide-footer .l, .slide-footer .r { display: flex; gap: 18px; align-items: center; }
.slide-footer b { color: var(--fg); font-weight: 500; }
.slide-footer .pulse { display: inline-flex; align-items: center; gap: 6px; color: var(--cy-shade); }
.slide-footer .pulse::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--cy-bright);
  animation: pulse-ring 1.8s ease-out infinite;
}

/* ===== Display type ===== */
.display {
  font-family: var(--serif); font-weight: 500;
  font-size: 132px; line-height: 0.96;
  letter-spacing: -0.035em; color: var(--fg);
}
.display .em { font-style: italic; color: var(--cy-shade); font-weight: 500; }
.display .ghost { color: var(--fg-faint); }

.title-1 {
  font-family: var(--serif); font-weight: 500;
  font-size: 64px; line-height: 1.04;
  letter-spacing: -0.028em;
}
.title-1 .em { font-style: italic; color: var(--cy-shade); font-weight: 500; }
.title-2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 40px; line-height: 1.1;
  letter-spacing: -0.025em;
}
.title-3 {
  font-family: var(--sans); font-weight: 500;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.018em;
}
.label {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute); font-weight: 600;
}
.body { font-size: 16px; line-height: 1.55; color: var(--fg-dim); }
.body-sm { font-size: 13.5px; line-height: 1.55; color: var(--fg-dim); }
.caption { font-size: 11.5px; color: var(--fg-mute); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--fg-mute); }

/* ===== Grid helpers ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gap-sm { gap: 8px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 40px; }

/* ===== Swatch ===== */
.swatch { display: flex; flex-direction: column; gap: 6px; }
.swatch .chip {
  height: 88px; border-radius: 12px;
  border: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.swatch .chip .corner {
  position: absolute; right: 8px; top: 8px;
  font-family: var(--mono); font-size: 10.5px;
  background: rgba(255,255,255,0.65);
  padding: 2px 7px; border-radius: 5px;
  color: var(--fg);
}
.swatch .name { font-size: 13px; color: var(--fg); font-weight: 500; }
.swatch .hex {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-mute); letter-spacing: 0.02em;
}

/* ===== Tone swatch (8 tones) ===== */
.tone-swatch {
  border-radius: 12px;
  padding: 16px 18px;
  position: relative;
  min-height: 120px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.tone-swatch .nm {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}
.tone-swatch .role {
  font-family: var(--serif); font-style: italic; font-size: 15px;
}
.tone-swatch .hex { font-family: var(--mono); font-size: 11px; }
.tone-swatch .pair {
  display: flex; gap: 6px; align-items: center;
}
.tone-swatch .pair .dot {
  width: 10px; height: 10px; border-radius: 999px;
}

/* ===== Big EKG card ===== */
.ekg-big {
  width: 100%; height: 120px; display: block;
}
.ekg-big path.main {
  stroke: var(--cy);
  stroke-width: 1.6;
  fill: none;
  filter: drop-shadow(0 0 4px rgba(27,158,146,0.20));
}
.ekg-big path.echo {
  stroke: var(--cy-bg-2); stroke-width: 1; fill: none;
}

/* ===== Cron expression number row ===== */
.cron-num {
  display: flex; flex-direction: column;
  gap: 8px; align-items: center;
}
.cron-num .v {
  font-family: var(--mono); font-size: 36px; font-weight: 500;
  color: var(--fg); line-height: 1; letter-spacing: -0.005em;
}
.cron-num .v.cy { color: var(--cy-shade); }
.cron-num .v.mute { color: var(--fg-mute); }
.cron-num .l { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); letter-spacing: 0.06em; }

/* ===== State node (state machine) ===== */
.state-node {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 140px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.state-node.glow { border-color: var(--cy-edge); box-shadow: 0 0 0 1px var(--cy-edge), 0 0 30px -10px rgba(27,158,146,0.30); }
.state-node.danger { background: rgba(163,63,63,0.05); border-color: rgba(163,63,63,0.30); }
.state-node .nm { font-size: 13.5px; font-weight: 500; color: var(--fg); display: flex; align-items: center; gap: 8px; }
.state-node .sub { font-size: 11px; color: var(--fg-mute); }

/* ===== Inline diff (code-like) ===== */
.diff-line {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  padding: 3px 8px; border-radius: 5px; margin: 2px 0;
}
.diff-add { background: rgba(77,122,71,0.10); color: #2E5A2A; }
.diff-rem { background: rgba(163,63,63,0.08);  color: #6E2828; }

/* ===== Big-number widget ===== */
.bignum {
  font-family: var(--serif); font-weight: 500;
  font-size: 56px; letter-spacing: -0.025em; line-height: 1;
  color: var(--fg);
}

/* ===== Avatar stack ===== */
.avi-stack { display: inline-flex; align-items: center; }
.avi-stack > * { margin-left: -8px; border: 2.5px solid var(--card) !important; }
.avi-stack > *:first-child { margin-left: 0; }

/* ===== Mini bars (sparkbars) ===== */
.minibars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.minibars > i {
  flex: 1; border-radius: 4px;
  background: var(--cy-bg-2);
  display: block;
}
.minibars > i.on { background: var(--cy); }

/* ===== Lifecycle bar (color band) ===== */
.lifecycle-bar {
  height: 28px; border-radius: 999px;
  background: linear-gradient(90deg,
    var(--mint-dot) 0%, var(--mint-dot) 30%,
    var(--lemon-dot) 30%, var(--lemon-dot) 70%,
    var(--rose-dot) 70%, var(--rose-dot) 100%);
  border: 1px solid var(--rule);
  overflow: hidden;
}

/* ===== Sweep progress shimmer ===== */
.sweep-bar {
  height: 4px; background: var(--well);
  border-radius: 2px; overflow: hidden; position: relative;
}
.sweep-bar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--cy-bright), transparent);
  width: 40%;
  animation: sweep-x 2.2s linear infinite;
}
@keyframes sweep-x {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(360%); }
}

/* ===== Wordmark ===== */
.wordmark {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: -0.01em;
  color: var(--fg);
}
.wordmark .em { font-style: italic; color: var(--cy-shade); }

/* ===== KBD-on-paper ===== */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 7px; min-width: 22px;
  font: 500 11.5px/1 var(--mono);
  background: var(--card); border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 5px; color: var(--fg-dim);
}

/* ===== Terminal / log block ===== */
.term {
  background: var(--ink); color: var(--paper);
  border-radius: 10px; padding: 16px 18px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  border: 1px solid var(--ink-2);
}
.term .c { color: var(--fg-faint); }
.term .k { color: var(--cy-bright); }
.term .v { color: var(--paper); }
.term .o { color: #DDEDD8; }
.term .w { color: #F0E6B5; }
.term .e { color: #F4CFCF; }
.term .m { color: #DCD3EE; }

/* ===== Toast ===== */
.toast {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  background: var(--card); border: 1px solid var(--cy-edge);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(20,20,15,0.08);
}
.toast .ic { color: var(--cy-shade); margin-top: 2px; }

/* ===== Big stat label ===== */
.stat-label {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-mute); font-weight: 600;
}

/* ===== Inline tag-as-token (used in body text) ===== */
.tok {
  font-family: var(--mono); font-size: 0.92em;
  background: var(--well); border: 1px solid var(--rule);
  padding: 1px 6px; border-radius: 4px;
  color: var(--fg-dim);
}
.tok.cy    { background: var(--cy-bg);    color: var(--cy-shade); border-color: var(--cy-edge); }
.tok.mint  { background: var(--mint-bg);  color: var(--mint-ink); border-color: rgba(77,122,71,0.32); }
.tok.peach { background: var(--peach-bg); color: var(--peach-ink); border-color: rgba(176,113,46,0.32); }
.tok.lav   { background: var(--lav-bg);   color: var(--lav-ink); border-color: rgba(111,91,176,0.32); }
.tok.rose  { background: var(--rose-bg);  color: var(--rose-ink); border-color: rgba(163,63,63,0.32); }
.tok.sky   { background: var(--sky-bg);   color: var(--sky-ink); border-color: rgba(63,90,142,0.32); }
.tok.lemon { background: var(--lemon-bg); color: var(--lemon-ink); border-color: rgba(142,119,36,0.32); }

/* Lock strip variant (smaller, for ribbon placement on slides) */
.lock-strip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  background: var(--peach-bg); color: var(--peach-ink);
  border: 1px solid rgba(176,113,46,0.32);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  position: relative; overflow: hidden;
}
.lock-strip::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(176,113,46,0.10) 6px 7px);
}
.lock-strip > * { position: relative; }

/* Pulse dot inline */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--cy-bright);
  display: inline-block;
  box-shadow: 0 0 0 0 var(--cy-halo);
  animation: ring-out 1.8s ease-out infinite;
}
@keyframes ring-out {
  0%   { box-shadow: 0 0 0 0 var(--cy-halo); opacity: 1; }
  60%  { box-shadow: 0 0 0 12px transparent; opacity: 0.4; }
  100% { box-shadow: 0 0 0 14px transparent; opacity: 1; }
}

/* Pretty heartbeat dot (override in deck context) */
.heartbeat-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--cy-bright);
  display: inline-block; position: relative;
}
.heartbeat-dot::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 999px;
  border: 1.5px solid var(--cy);
  opacity: 0;
  animation: ring-grow 1.8s ease-out infinite;
}
@keyframes ring-grow {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Speaker-notes don't render anyway, but normalize */
html, body { margin: 0; padding: 0; background: #1a1814; }
