/* =========================================================
   Avanai · n8n Source Control & Environments - Presentation
   Brand palette
     --purple : #7857F2   (Avanai logo purple)
     --blue   : #25B2F9   (Avanai logo blue)
     --navy   : #002F47   (Avanai logo navy)
     --blue   : #25B2F9   (Avanai)
     --navy   : #002F47
   ========================================================= */

:root {
  --orange: #7857F2;
  --orange2: #5A3DDB;
  --purple: #7857F2;
  --blue: #25B2F9;
  --light: #f6f7fa;
  --dark: #1d4258;
  --navy: #002F47;

  --bg: #f6f7fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --ink: #002F47;
  --ink-2: #1d4258;
  --ink-3: #4a6378;
  --muted: #7e92a4;
  --line: rgba(0, 47, 71, 0.10);
  --line-2: rgba(0, 47, 71, 0.06);

  --grad: linear-gradient(135deg, var(--orange2) 0%, var(--orange) 60%, #25B2F9 100%);
  --grad-soft: linear-gradient(135deg, rgba(120,87,242,0.12) 0%, rgba(37,178,249,0.10) 100%);
  --shadow-sm: 0 1px 2px rgba(0, 47, 71, 0.04), 0 2px 6px rgba(0, 47, 71, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 47, 71, 0.06), 0 12px 36px -8px rgba(0, 47, 71, 0.10);
  --shadow-lg: 0 10px 30px rgba(0, 47, 71, 0.08), 0 30px 80px -20px rgba(120, 87, 242, 0.18);

  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 280ms;
  --t-mid: 520ms;
  --t-slow: 780ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink-2);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
a { color: var(--orange); }

/* ------- Hero background ------- */
.hero-bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(120,87,242,0.13) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 20% 80%, rgba(37,178,249,0.10) 0%, transparent 60%),
              #f6f7fa;
}

/* ------- Top bar ------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 36px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(0, 47, 71, 0.07);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  height: 26px; display: flex; align-items: center; gap: 8px;
}
.avanai-logo {
  height: 22px; width: auto; display: block;
}
.ty-bottom {
  position: absolute; bottom: 56px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.thankyou-logos {
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.ty-logo-avanai { height: 28px; width: auto; }
.ty-logo-n8n { height: 28px; width: auto; }
.ty-x { font-size: 18px; font-weight: 300; color: var(--muted); line-height: 1; }

.title-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 28px;
}
.title-logo-avanai { height: 36px; width: auto; }
.title-logo-n8n { height: 36px; width: auto; }
.title-logo-x {
  font-size: 22px; font-weight: 300; color: var(--muted); line-height: 1;
}
.n8n-wordmark {
  font-size: 18px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink);
}
.n8n-wordmark span { color: var(--orange); }
.brand .pill {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.6);
  font-weight: 600;
}
.deck-meta { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); display: inline-block; }

/* ------- Progress bar ------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 3px;
  background: var(--line-2);
}
.progress > span {
  display: block; height: 100%; width: 0;
  background: var(--grad);
  transition: width 0.4s var(--easing);
}

/* ------- Nav controls ------- */
.nav-controls {
  position: fixed; bottom: 28px; right: 32px; z-index: 30;
  display: flex; gap: 8px; align-items: center;
}
.nav-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.8); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; color: var(--ink-3);
  backdrop-filter: blur(10px);
}
.nav-btn:hover { background: #fff; color: var(--orange); border-color: rgba(120,87,242,0.3); }
.nav-btn svg { width: 16px; height: 16px; }

/* ------- Stage / slides ------- */
.stage { position: fixed; inset: 0; z-index: 10; }

.slide {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: 76px 64px 60px;
}
.slide.is-active { display: flex; }

.slide-inner {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  max-width: 1100px; width: 100%; margin: 0 auto;
  gap: 0;
}
.slide-inner.center { align-items: center; text-align: center; }

.slide-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted); padding-top: 16px; flex-shrink: 0;
  max-width: 1100px; width: 100%; margin: 0 auto;
}

/* ------- Section divider ------- */
.section-divider .slide-inner { align-items: center; text-align: center; }
.section-divider .big-num {
  font-size: 96px; font-weight: 900; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.section-divider h2 { font-size: 36px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.section-divider .sub { font-size: 17px; color: var(--ink-3); max-width: 540px; }

/* ------- Typography ------- */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px; display: block;
}
.eyebrow.purple { color: var(--purple); }
.eyebrow.muted { color: var(--muted); }

.display {
  font-size: clamp(40px, 5.5vw, 68px); font-weight: 900; line-height: 1.04;
  letter-spacing: -0.03em; color: var(--ink);
}
.grad {
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.title {
  font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.025em; color: var(--ink); margin-bottom: 14px;
}
.subtitle { font-size: 18px; color: var(--ink-3); line-height: 1.6; max-width: 700px; }
.lead { font-size: 16px; color: var(--ink-3); line-height: 1.7; max-width: 740px; }

/* ------- Pills / chips ------- */
.pillars { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--ink-2);
}
.chip {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  background: var(--grad-soft); color: var(--orange2); border: 1px solid rgba(120,87,242,0.2);
}
.chip.purple { background: rgba(120,87,242,0.1); color: var(--purple); border-color: rgba(120,87,242,0.2); }
.chip.muted { background: rgba(0,47,71,0.05); color: var(--muted); border-color: var(--line); }

/* ------- Section tag / pip ------- */
.section-tag { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.pip { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); display: inline-block; }

/* ------- Cards ------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.card h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.card p { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.card .icon { font-size: 24px; margin-bottom: 10px; }
.card.compact { padding: 16px 18px; }

/* ------- Stats ------- */
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat .num {
  font-size: 42px; font-weight: 900; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .label { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }

/* ------- Comparison table ------- */
.compare {
  display: grid; grid-template-columns: 2.2fr 1fr 1.3fr 1fr;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); font-size: 13px;
}
.compare > div { padding: 10px 14px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.compare > div:nth-last-child(-n+4) { border-bottom: none; }
.compare .head { font-weight: 700; font-size: 12px; background: var(--surface-2); color: var(--ink-3); letter-spacing: 0.04em; }
.compare .head.middle { background: rgba(120,87,242,0.07); color: var(--orange2); }
.compare .label { color: var(--ink-3); }
.compare .yes { color: #16a34a; font-weight: 600; background: rgba(22,163,74,0.05); }
.compare .no { color: var(--muted); }
.compare .partial { color: #d97706; background: rgba(217,119,6,0.05); font-weight: 500; }

/* ------- Feature availability table ------- */
.avail-table {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); font-size: 13px; width: 100%;
}
.avail-table thead th { background: var(--surface-2); padding: 10px 16px; text-align: left; font-weight: 700; color: var(--ink-3); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.avail-table td { padding: 5px 16px; border-top: 1px solid var(--line-2); color: var(--ink-3); vertical-align: middle; }
.avail-table tr:hover td { background: var(--surface-2); }

/* ------- Interactive "covered" checkboxes (Nodes slide) ------- */
.avail-table .chk-col { width: 46px; }
.avail-table td.chk-cell { width: 46px; text-align: center; padding-right: 4px; }
.node-chk { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.node-chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.node-chk-box {
  width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--line); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .15s ease;
}
.node-chk:hover .node-chk-box { border-color: var(--purple); transform: scale(1.06); }
.node-chk-box::after {
  content: ""; width: 5px; height: 10px; margin-top: -2px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .25s cubic-bezier(.5,1.7,.4,1);
}
.node-chk input:checked + .node-chk-box {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent; box-shadow: 0 4px 12px rgba(120,87,242,0.35);
}
.node-chk input:checked + .node-chk-box::after { transform: rotate(45deg) scale(1); }
.node-chk input:focus-visible + .node-chk-box { outline: 2px solid var(--purple); outline-offset: 2px; }

/* Row marked as covered: dim + animated strike-through sweeping left -> right */
.avail-table tbody tr { transition: opacity .4s ease; }
.avail-table tbody tr:has(input:checked) { opacity: .5; }
.avail-table tbody tr:has(input:checked) td { color: var(--muted); }
.avail-table tbody tr td:not(.chk-cell) { position: relative; }
.avail-table tbody tr td:not(.chk-cell)::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; background: linear-gradient(90deg, var(--purple), var(--blue));
  transform: scaleX(0); transform-origin: left center; opacity: 0;
  transition: transform .45s cubic-bezier(.6,.1,.2,1), opacity .25s ease;
  pointer-events: none;
}
.avail-table tbody tr:has(input:checked) td:not(.chk-cell)::after { transform: scaleX(1); opacity: 1; }
.avail-table tbody tr:has(input:checked) td:nth-child(3)::after { transition-delay: .1s; }
.avail-table tbody tr:has(input:checked) td:nth-child(4)::after { transition-delay: .2s; }

.badge-plan { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.badge-ent { background: rgba(120,87,242,0.12); color: var(--orange2); }
.badge-biz { background: rgba(120,87,242,0.10); color: var(--purple); }
.badge-all { background: rgba(22,163,74,0.10); color: #16a34a; }

/* ------- Branch pattern diagram ------- */
.branch-diagram {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 18px;
}
/* Pattern grid (slide 08) */
.patterns-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; margin-top: 8px;
}
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 16px 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
}
.pcard.highlighted-card { border-color: rgba(120,87,242,0.5); background: rgba(120,87,242,0.02); }
.pcard-head h4 { font-size: 12px; font-weight: 700; color: var(--ink); margin: 6px 0 4px; }
.pcard-head p { font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.pdiagram { width: 100%; height: auto; display: block; margin-top: 8px; min-height: 120px; }
.pchip {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.pchip.recommended { background: rgba(120,87,242,0.12); color: var(--orange2); }
.pchip.simpler { background: rgba(120,87,242,0.10); color: var(--purple); }
.pchip.review { background: rgba(0,47,71,0.07); color: var(--navy); }
.pchip.simplest { background: rgba(37,178,249,0.10); color: #1a8fcc; }

/* Mermaid diagram wrapper */
.mermaid-wrap {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.mermaid-wrap .mermaid { width: 100%; max-height: 100%; }
.mermaid-wrap svg { width: 100% !important; height: auto !important; max-height: 340px; }
.cicd-legend {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.cicd-badge.eval { background: rgba(22,163,74,0.10); color: #15803d; }

/* Enterprise CI/CD pipeline slide */
.cicd-pipeline {
  display: flex; align-items: center; gap: 0;
  margin: 10px 0 12px; overflow-x: auto;
}
.cicd-node {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 10px 14px; min-width: 108px; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.cicd-node.instance { border-color: rgba(120,87,242,0.4); background: rgba(120,87,242,0.04); }
.cicd-node.git      { border-color: rgba(0,47,71,0.25); background: rgba(0,47,71,0.03); }
.cicd-node.scanners { border-color: rgba(120,87,242,0.4); background: rgba(120,87,242,0.04); min-width: 160px; }
.cicd-node.comment  { border-color: rgba(37,178,249,0.4); background: rgba(37,178,249,0.04); }
.cicd-node.prod     { border-color: rgba(22,163,74,0.4); background: rgba(22,163,74,0.04); }
.cicd-icon { font-size: 20px; line-height: 1; }
.cicd-label { font-size: 11px; font-weight: 700; color: var(--ink); text-align: center; }
.cicd-sub   { font-size: 9px; color: var(--muted); text-align: center; }
.cicd-scanner-list { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.cicd-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-align: center; }
.cicd-badge.claude { background: rgba(120,87,242,0.14); color: var(--purple); }
.cicd-badge.tool   { background: rgba(0,47,71,0.07); color: var(--navy); }
.cicd-arrow {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; flex-shrink: 0; padding: 0 4px;
}
.cicd-arrowline {
  display: block; width: 28px; height: 2px; background: var(--line);
  position: relative;
}
.cicd-arrowline::after {
  content: ''; position: absolute; right: -1px; top: -3px;
  border: 4px solid transparent; border-left-color: var(--muted);
}
.cicd-arrowlabel { font-size: 8px; color: var(--muted); white-space: nowrap; }

/* PR comment preview */
.cicd-prbox {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; font-size: 13px;
}
.cicd-prbox-head {
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  padding: 8px 14px; display: flex; justify-content: space-between; align-items: center;
}
.cicd-prbox-bot  { font-weight: 700; font-size: 13px; color: var(--purple); }
.cicd-prbox-time { font-size: 11px; color: var(--muted); }
.cicd-prbox-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.cicd-prbox-body p { margin: 0; line-height: 1.55; color: var(--ink-3); font-size: 13px; }
.cicd-prbox-body code { font-size: 12px; background: rgba(0,47,71,0.06); padding: 1px 5px; border-radius: 4px; }

/* Screenshot carousel (multi-image, next/prev) */
.sc-carousel {
  position: relative; display: flex; flex-direction: column;
  width: 100%; flex: 1; min-height: 0; gap: 12px;
}
.sc-viewport {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: stretch;
}
.sc-track { position: relative; flex: 1; min-width: 0; }
.sc-slide {
  display: none; position: absolute; inset: 0;
  flex-direction: column; gap: 12px;
}
.sc-slide.active { display: flex; animation: scFade 0.32s var(--easing); }
@keyframes scFade { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.sc-frame {
  flex: 1; min-height: 0; width: 100%;
  border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
}
/* keep the dashed placeholder styling only when a placeholder is inside */
.sc-frame .shot { width: 100%; height: 100%; border: 2px dashed rgba(120,87,242,0.4); border-radius: 12px; }
.sc-img { width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; }
.sc-caption {
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  padding: 0 4px; flex-shrink: 0;
}
.sc-tags { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.sc-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.sc-tag.orange { background: rgba(120,87,242,0.12); color: var(--orange2); }
.sc-tag.navy   { background: rgba(0,47,71,0.08); color: var(--navy); }
.sc-tag.purple { background: rgba(120,87,242,0.10); color: var(--purple); }
.sc-tag.green  { background: rgba(22,163,74,0.10); color: #15803d; }
.sc-caption p  { font-size: 13px; line-height: 1.6; color: var(--ink-3); margin: 0; }
.sc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.92); color: var(--ink-3); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: background 0.15s, box-shadow 0.15s, color 0.15s;
  backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
}
.sc-arrow:hover { background: #fff; color: var(--orange); box-shadow: var(--shadow-md); }
.sc-prev { left: 10px; }
.sc-next { right: 10px; }
.sc-counter {
  position: absolute; top: 12px; right: 14px; z-index: 10;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  background: rgba(255,255,255,0.9); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; backdrop-filter: blur(6px);
}
.sc-counter b { color: var(--purple); }

/* Pattern modal */
.pmodal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,21,33,0.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.pmodal-overlay.open { opacity: 1; pointer-events: all; }
.pmodal-box {
  background: var(--surface); border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  padding: 44px 52px 44px; max-width: 760px; width: 92%;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(.22,.68,0,1.2);
}
.pmodal-overlay.open .pmodal-box { transform: translateY(0) scale(1); }
.pmodal-box .pcard-head h4 { font-size: 22px; margin: 10px 0 8px; }
.pmodal-box .pcard-head p { font-size: 15px; line-height: 1.6; }
.pmodal-box .pdiagram { max-width: 560px; margin: 36px auto 0; display: block; }
.pmodal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-3);
  transition: background 0.15s;
}
.pmodal-close:hover { background: var(--bg); }

.branch-pattern {
  flex: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
  box-shadow: var(--shadow-sm); cursor: default;
}
.branch-pattern.highlighted { border-color: rgba(120,87,242,0.4); background: rgba(120,87,242,0.03); }
.branch-pattern h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.branch-pattern p { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-bottom: 10px; }
.instances {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.instance-box {
  padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 700;
  border: 1.5px solid var(--line); color: var(--ink-2); background: var(--surface);
  text-align: center;
}
.instance-box.dev { border-color: rgba(120,87,242,0.4); color: var(--purple); background: rgba(120,87,242,0.06); }
.instance-box.prod { border-color: rgba(120,87,242,0.4); color: var(--orange2); background: rgba(120,87,242,0.06); }
.instance-box.git { border-color: rgba(0,47,71,0.2); color: var(--ink-3); background: rgba(0,47,71,0.04); }
.arrow { font-size: 16px; color: var(--muted); align-self: center; flex-shrink: 0; }

/* ------- Workflow panel (use-case style) ------- */
.usecase { display: flex; gap: 36px; align-items: flex-start; }
.usecase .left { flex: 1.2; }
.usecase .right { flex: 1; }
.impact { display: flex; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.stat-mini { text-align: center; }
.stat-mini .v { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-mini .l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; box-shadow: var(--shadow-md);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h5 { font-size: 13px; font-weight: 700; color: var(--ink); }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }
.step:last-child { border-bottom: none; }
.step .n { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-soft); color: var(--orange2); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.out { font-size: 11px; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }

/* ------- Code / prompt block ------- */
.prompt {
  background: #0d1b2a; border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px; padding: 20px 24px;
  font-family: 'Courier New', monospace; font-size: 15px; line-height: 1.95;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-md);
}
.prompt .sys { color: #e2e8f0; }
.prompt .you { color: #5eead4; font-weight: 700; }
.prompt .ai  { color: #bcd6ff; font-weight: 600; }
code {
  font-family: 'Courier New', monospace; font-size: 12px;
  background: rgba(120,87,242,0.08); color: var(--orange2);
  padding: 1px 6px; border-radius: 4px;
}

/* ------- Diff panes ------- */
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pane { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.pane.bad { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.03); }
.pane.good { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.03); }
.pane h5 { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.pane ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pane ul li { font-size: 13px; color: var(--ink-3); line-height: 1.5; padding-left: 14px; position: relative; }
.pane ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.pane.good ul li::before { background: #22c55e; }
.pane.bad ul li::before { background: #ef4444; }

/* ------- Bullets ------- */
.bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; }
.bullets li { font-size: 15px; color: var(--ink-3); line-height: 1.6; padding-left: 20px; position: relative; }
.bullets li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

/* ------- Row/col layout ------- */
.row { display: flex; gap: 28px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }

/* ------- Spotlight ring ------- */
.spotlight { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ring {
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 16px rgba(120,87,242,0.10), 0 0 0 32px rgba(120,87,242,0.05);
}
.ring .val { font-size: 36px; font-weight: 900; color: white; letter-spacing: -0.04em; }
.kicker { font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* ------- Diff visual (change colors) ------- */
.change-added { color: #16a34a; font-weight: 700; }
.change-modified { color: #d97706; font-weight: 700; }
.change-deleted { color: #dc2626; font-weight: 700; }

/* ------- Merge conflict table ------- */
.merge-table { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 13px; }
.merge-table > div { padding: 9px 14px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.merge-table > div:nth-last-child(-n+3) { border-bottom: none; }
.merge-table .mh { font-weight: 700; font-size: 11px; background: var(--surface-2); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ------- Animations ------- */
.anim { opacity: 0; transform: translateY(14px); }
.is-active .anim { animation: fadeUp 0.55s var(--easing) forwards; }
.is-active .anim-1 { animation-delay: 0.05s; }
.is-active .anim-2 { animation-delay: 0.12s; }
.is-active .anim-3 { animation-delay: 0.20s; }
.is-active .anim-4 { animation-delay: 0.28s; }
.is-active .anim-5 { animation-delay: 0.36s; }
.is-active .anim-6 { animation-delay: 0.44s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ------- Help overlay ------- */
.help {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(28,34,48,0.7); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.help.open { display: flex; }
.help-box {
  background: var(--surface); border-radius: 18px; padding: 32px 36px;
  max-width: 380px; width: 90%; box-shadow: var(--shadow-lg);
}
.help-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.help-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.help-box dt { font-family: monospace; background: var(--surface-2); padding: 2px 8px; border-radius: 5px; color: var(--ink-3); font-weight: 700; }
.help-box dd { color: var(--ink-3); display: flex; align-items: center; }
.help-close { margin-top: 20px; width: 100%; padding: 10px; background: var(--grad); color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; }

/* ------- Scrollbar ------- */
.slide::-webkit-scrollbar { width: 4px; }
.slide::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* ------- Image screenshot ------- */
.screenshot {
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); width: 100%;
}
.screenshot img { width: 100%; display: block; }

/* =========================================================
   FDE Workshop additions - interactive quiz
   ========================================================= */

/* Quiz layout */
.quiz-head { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.quiz-context {
  font-size: 14px; color: var(--ink-3); line-height: 1.65;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--purple);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; max-width: 860px;
}
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.quiz-option {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.quiz-option:hover { border-color: rgba(120,87,242,0.45); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.opt-letter {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: rgba(120,87,242,0.10); color: var(--purple);
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
/* Revealed states */
.slide.revealed .quiz-option { cursor: default; transform: none; }
.slide.revealed .quiz-option:not(.correct):not(.wrong) { opacity: 0.45; }
.quiz-option.correct {
  border-color: #16a34a; background: rgba(22,163,74,0.07);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.quiz-option.correct .opt-letter { background: #16a34a; color: #fff; }
.quiz-option.wrong {
  border-color: #dc2626; background: rgba(220,38,38,0.06);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}
.quiz-option.wrong .opt-letter { background: #dc2626; color: #fff; }

/* Verdict banner */
.quiz-verdict {
  display: none; margin-top: 16px; font-size: 15px; font-weight: 800;
  padding: 10px 16px; border-radius: 10px; width: fit-content;
}
.slide.revealed .quiz-verdict { display: block; animation: fadeUp 0.4s var(--easing) both; }
.quiz-verdict.ok { background: rgba(22,163,74,0.10); color: #15803d; }
.quiz-verdict.ko { background: rgba(220,38,38,0.08); color: #b91c1c; }

/* How-to-handle panel */
.quiz-explain {
  display: none; margin-top: 14px;
  background: var(--surface); border: 1px solid rgba(22,163,74,0.3);
  border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow-md);
}
.slide.revealed .quiz-explain { display: block; animation: fadeUp 0.5s var(--easing) 0.15s both; }
.quiz-explain h4 { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #15803d; margin-bottom: 8px; }
.quiz-explain p { font-size: 14px; color: var(--ink-3); line-height: 1.65; margin-bottom: 8px; }
.quiz-explain .bullets li { font-size: 13px; }

/* Reset button */
.quiz-reset {
  display: none; margin-top: 14px; width: fit-content;
  font-size: 12px; font-weight: 700; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px;
  background: rgba(255,255,255,0.7); transition: all 0.15s;
}
.quiz-reset:hover { color: var(--orange); border-color: rgba(120,87,242,0.4); }
.slide.revealed .quiz-reset { display: inline-block; }

/* Falling particles (confetti + emoji rain) */
.fx-layer { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; }
.fx-piece {
  position: absolute; top: -6vh; will-change: transform, opacity;
  animation: fxFall var(--dur) linear var(--delay) forwards;
  left: var(--x);
}
.fx-piece.confetti { width: var(--s); height: calc(var(--s) * 0.45); background: var(--c); border-radius: 2px; }
.fx-piece.emoji { font-size: var(--s); line-height: 1; }
@keyframes fxFall {
  0%   { transform: translateY(-6vh) rotate(0deg) translateX(0); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(115vh) rotate(var(--rot)) translateX(var(--drift)); opacity: 0.85; }
}

/* Scenario divider accent */
.scenario-a .big-num, .scenario-a h2 .accent { color: var(--purple); }
.quiz-progress { font-size: 12px; color: var(--muted); font-weight: 600; }

@media (max-width: 900px) { .quiz-options { grid-template-columns: 1fr; } }

/* =========================================================
   Bayer n8n Starter Session - additions
   ========================================================= */

/* ------- Sticker callouts ------- */
.sticker {
  position: absolute; z-index: 20;
  font-size: 13px; font-weight: 800; letter-spacing: -0.01em;
  padding: 9px 15px; border-radius: 12px;
  color: #fff; line-height: 1.1;
  box-shadow: 0 8px 22px -6px rgba(0,47,71,0.35), 0 2px 6px rgba(0,47,71,0.12);
  transform: rotate(-4deg);
  border: 2px solid rgba(255,255,255,0.65);
  white-space: nowrap;
}
.sticker::after {
  content: ''; position: absolute; left: 22px; bottom: -7px;
  width: 14px; height: 14px; background: inherit;
  border-right: 2px solid rgba(255,255,255,0.65);
  border-bottom: 2px solid rgba(255,255,255,0.65);
  transform: rotate(45deg); z-index: -1;
}
.sticker.purple { background: linear-gradient(135deg,#7857F2,#5A3DDB); }
.sticker.blue   { background: linear-gradient(135deg,#25B2F9,#1a8fcc); }
.sticker.green  { background: linear-gradient(135deg,#16a34a,#0f7a37); }
.sticker.navy   { background: linear-gradient(135deg,#1d4258,#002F47); }
.sticker.rot-r  { transform: rotate(4deg); }
.sticker.rot-0  { transform: rotate(0deg); }
.sticker.sm     { font-size: 11px; padding: 7px 12px; }
/* common placements */
.sticker.tr { top: 70px; right: 48px; }
.sticker.tl { top: 70px; left: 48px; }
.sticker.br { bottom: 70px; right: 48px; }
.sticker.bl { bottom: 70px; left: 48px; }

/* ------- n8n workflow node-flow diagram ------- */
.node-flow {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  justify-content: center; margin: 6px 0 4px;
}
.wf-node {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 14px 16px; min-width: 132px;
  box-shadow: var(--shadow-sm); position: relative; flex-shrink: 0;
}
.wf-node .wf-icon {
  font-size: 22px; line-height: 1;
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.wf-node .wf-name { font-size: 12.5px; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.2; }
.wf-node .wf-sub  { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.3; }
.wf-node.trigger  { border-color: rgba(37,178,249,0.45); background: rgba(37,178,249,0.04); }
.wf-node.trigger .wf-icon { background: rgba(37,178,249,0.12); }
.wf-node.agent    { border-color: rgba(120,87,242,0.5); background: rgba(120,87,242,0.05); }
.wf-node.agent .wf-icon { background: rgba(120,87,242,0.14); }
.wf-node.action   { border-color: rgba(0,47,71,0.22); background: rgba(0,47,71,0.03); }
.wf-node.action .wf-icon { background: rgba(0,47,71,0.07); }
.wf-node.send     { border-color: rgba(22,163,74,0.45); background: rgba(22,163,74,0.04); }
.wf-node.send .wf-icon { background: rgba(22,163,74,0.12); }
.wf-arrow {
  width: 56px; height: 2px; background: var(--line); position: relative; flex-shrink: 0;
  margin: 0 10px;
}
.wf-arrow::after {
  content: ''; position: absolute; right: -4px; top: -5px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid var(--muted);
}
/* tool branch (dashed, below agent) */
.wf-tool-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wf-tool-line { width: 2px; height: 20px; border-left: 2px dashed rgba(120,87,242,0.5); }
.wf-node.tool { border-color: rgba(120,87,242,0.4); background: rgba(120,87,242,0.03); border-style: dashed; }
.wf-node.tool .wf-icon { background: rgba(120,87,242,0.10); }

/* ------- Node config readout ------- */
.cfg {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.cfg-head {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  padding: 9px 14px; font-size: 12px; font-weight: 800; color: var(--ink);
}
.cfg-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.cfg-row:last-child { border-bottom: none; }
.cfg-k { color: var(--muted); font-weight: 600; }
.cfg-v { color: var(--ink-2); }
.cfg-v code { font-size: 11.5px; }

/* ------- Screenshot placeholder ------- */
.shot {
  border: 2px dashed rgba(120,87,242,0.4);
  border-radius: 14px; background:
    repeating-linear-gradient(45deg, rgba(120,87,242,0.025) 0 12px, rgba(37,178,249,0.025) 12px 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 26px 24px; gap: 8px; min-height: 150px;
}
.shot .shot-ico { font-size: 30px; opacity: 0.8; }
.shot .shot-id {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--purple); background: rgba(120,87,242,0.10);
  padding: 3px 10px; border-radius: 999px;
}
.shot .shot-cap { font-size: 13px; color: var(--ink-3); line-height: 1.55; max-width: 560px; }
.shot .shot-arrows { font-size: 11px; color: var(--muted); font-style: italic; }
.shot-grid { display: grid; gap: 12px; }
.shot-grid.two { grid-template-columns: 1fr 1fr; }

/* Vertical scrolling screenshot list (slide 13 style) */
.shot-list { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; padding-bottom: 8px; }
.shot-item { width: 100%; }
.shot-item .shot { min-height: 180px; padding: 20px 22px; }
.shot-img {
  width: 100%; display: block; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.shot.mini { min-height: 120px; padding: 18px 16px; }
.shot.mini .shot-ico { font-size: 22px; }
.shot.mini .shot-cap { font-size: 12px; }

/* ------- Agenda timeline ------- */
.agenda { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.ag-row {
  display: grid; grid-template-columns: 138px 1fr auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 18px; box-shadow: var(--shadow-sm);
}
.ag-time {
  font-size: 13px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px;
}
.ag-time span { color: var(--muted); font-weight: 500; }
.ag-body { display: flex; align-items: center; gap: 12px; }
.ag-body .ag-ico { font-size: 20px; flex-shrink: 0; }
.ag-body h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0; }
.ag-body p { font-size: 12px; color: var(--ink-3); margin: 2px 0 0; line-height: 1.5; }
.ag-dur {
  font-size: 11px; font-weight: 700; color: var(--orange2);
  background: var(--grad-soft); padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.ag-row.session { border-left: 3px solid var(--purple); }
.ag-row.break {
  background: rgba(0,47,71,0.025); border-style: dashed; padding: 8px 18px;
}
.ag-row.break .ag-body h4 { font-size: 13px; color: var(--ink-3); }
.ag-row.break .ag-dur { color: var(--muted); background: rgba(0,47,71,0.05); }

/* ------- Idea chips (brainstorm) ------- */
.idea-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 8px; }
.idea {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.idea .ico { font-size: 20px; margin-bottom: 6px; }
.idea h5 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.idea p { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

/* ------- Constraint / do-not list ------- */
.nope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.nope-chip {
  font-size: 12px; font-weight: 700; padding: 6px 13px; border-radius: 999px;
  background: rgba(220,38,38,0.06); color: #b91c1c; border: 1px solid rgba(220,38,38,0.22);
  display: flex; align-items: center; gap: 6px;
}

@media (max-width: 900px) { .idea-grid { grid-template-columns: 1fr; } .shot-grid.two { grid-template-columns: 1fr; } }

/* ------- AvaStage join slide ------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 12px; text-decoration: none;
  box-shadow: 0 8px 20px rgba(120,87,242,0.32);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(120,87,242,0.44); }

.ava-join {
  margin-top: 22px; padding: 24px 30px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.ava-join-row { display: flex; align-items: center; gap: 30px; }
.ava-step { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.ava-step-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ava-url {
  font-size: 21px; font-weight: 800; color: var(--ink-2); text-decoration: none;
  border-bottom: 2px solid rgba(120,87,242,0.32); padding-bottom: 2px;
}
.ava-url:hover { color: var(--purple); border-color: var(--purple); }
.ava-code {
  font-size: 38px; font-weight: 900; letter-spacing: .26em;
  color: var(--ink); background: var(--grad-soft);
  padding: 6px 14px 6px 24px; border-radius: 12px; line-height: 1.1;
}
.ava-divider { width: 1px; height: 60px; background: var(--line); }

.ava-feats { display: flex; gap: 28px; margin-top: 20px; flex-wrap: wrap; justify-content: center;
  font-size: 14px; color: var(--ink-3); font-weight: 500; }
.ava-feats span { display: inline-flex; align-items: center; gap: 8px; }
.ava-feat-ico { font-size: 17px; }

/* ------- Workflow divider: two-column text + canvas screenshot ------- */
.wf-divider .slide-inner { align-items: center; text-align: left; }
.wf-split {
  display: flex; align-items: center; gap: 56px;
  width: 100%; max-width: 1340px; margin: 0 auto;
}
.wf-text { flex: 0 0 34%; max-width: 440px; }
.wf-text .big-num { font-size: 76px; margin-bottom: 4px; }
.wf-text h2 { text-align: left; font-size: clamp(30px,3vw,44px); margin-bottom: 14px; }
.wf-text .sub { text-align: left; max-width: none; margin-bottom: 26px; font-size: 18px; }
.wf-shot { flex: 1 1 auto; min-width: 0; }
.wf-shot .sc-img {
  width: 100%; height: auto; max-height: 620px; object-fit: contain;
  display: block; border: none; border-radius: 12px;
}
.btn-download {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 11px; text-decoration: none;
  border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .2s ease, color .2s ease;
}
.btn-download:hover { transform: translateY(-2px); border-color: var(--purple); color: var(--purple); }
.btn-download .dl-ico { font-size: 16px; }

/* ------- Break slides (live countdown) ------- */
.break-slide .slide-inner { align-items: center; text-align: center; justify-content: center; }
.break-emoji { font-size: clamp(40px, 7vw, 84px); margin-bottom: 4px; }
.break-timer {
  font-size: clamp(76px, 15vw, 190px); font-weight: 900; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.break-timer.done {
  background: linear-gradient(135deg, #16a34a, #0f7a37);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.break-bar { width: min(440px, 60vw); height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 20px auto 0; }
.break-bar span { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--blue)); transition: width 1s linear; }
.btn-break {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff; font-weight: 700; font-size: 16px;
  padding: 13px 30px; border-radius: 12px; border: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(120,87,242,0.32);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-break:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(120,87,242,0.44); }
.btn-break[hidden] { display: none; }
.break-back { margin-top: 16px; font-size: 20px; color: var(--ink-2); font-weight: 600; }
.break-back strong { font-variant-numeric: tabular-nums; }
.break-next { margin-top: 6px; font-size: 15px; color: var(--muted); }
.break-next strong { color: var(--ink-3); }

/* ------- Live agenda board ------- */
.agenda-board .slide-inner { justify-content: flex-start; }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; margin-bottom: 14px; gap: 16px; }
.board-clock { text-align: right; line-height: 1; flex: none; }
.board-clock span { font-size: 42px; font-weight: 900; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--purple), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.board-clock small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.board-list { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.board-row { display: flex; align-items: center; gap: 14px; padding: 7px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); transition: opacity .3s ease, box-shadow .3s ease, transform .3s ease, background .3s ease; }
.board-row .b-ico { font-size: 18px; width: 24px; text-align: center; }
.board-row .b-name { flex: 1; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.board-row .b-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; font-weight: 600; }
.board-row.break { background: var(--grad-soft); border-color: rgba(120,87,242,0.18); }
.board-row.break .b-name { color: var(--purple); }
.board-row.past { opacity: .4; }
.board-row.now { border-color: var(--purple); box-shadow: 0 0 0 2px rgba(120,87,242,0.25), var(--shadow-sm); transform: scale(1.012); background: #fff; opacity: 1; }
.board-row.now .b-name::after { content: "NOW"; margin-left: 10px; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: linear-gradient(135deg, var(--purple), var(--blue)); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* ------- Live timeline pill + overlay ------- */
.timeline-pill {
  width: auto; border-radius: 999px; padding: 0 14px 0 12px; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; transition: background .3s ease, box-shadow .3s ease; }
.tl-dot.is-idle { background: var(--muted); box-shadow: 0 0 0 3px rgba(126,146,164,0.12); }
.tl-dot.is-ok   { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }
.tl-dot.is-warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.20); }
.tl-dot.is-bad  { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.20); }
.tl-dot.live { animation: tl-pulse 1.7s ease-in-out infinite; }
@keyframes tl-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.tl-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,47,71,0.32); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 24px;
}
.tl-overlay.open { display: flex; }
.tl-box {
  background: var(--surface); border-radius: 20px; padding: 26px 28px;
  width: min(760px, 92vw); max-height: 88vh; overflow: auto;
  box-shadow: 0 30px 80px rgba(0,47,71,0.28); border: 1px solid var(--line);
}
.board-statusline { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.board-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.tl-start {
  border: 1.5px solid var(--purple); color: var(--purple); background: rgba(120,87,242,0.06);
  font-weight: 700; font-size: 12.5px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  white-space: nowrap; transition: background .2s ease, color .2s ease;
}
.tl-start:hover { background: var(--purple); color: #fff; }
.tl-close { margin-top: 18px; width: 100%; padding: 11px; background: var(--grad); color: #fff; border: none; border-radius: 11px; font-weight: 700; font-size: 14px; cursor: pointer; }
/* Live-timeline row columns: duration · clock range · relative countdown */
.tl-box .board-row { gap: 10px; }
.tl-box .board-row .b-dur  { font-size: 12px; font-weight: 600; color: var(--muted); width: 52px; text-align: right; flex: none; }
.tl-box .board-row .b-time { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--ink-3); width: 104px; text-align: right; flex: none; }
.tl-box .board-row .b-rel  { font-size: 12px; font-weight: 700; color: var(--purple); width: 78px; text-align: right; flex: none; }
.tl-box .board-row.past .b-rel { color: var(--muted); font-weight: 600; }
.tl-box .board-row.now  .b-rel { color: #16a34a; }

/* ------- Workflow 2 output / payoff slide ------- */
.out-points { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.out-points li { font-size: 15px; color: var(--ink-3); line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.out-points li .op-ico { font-size: 18px; line-height: 1.4; flex: none; }
.out-points li strong { color: var(--ink-2); }

/* ------- About the trainer ------- */
.about-split { display: flex; align-items: center; gap: 60px; max-width: 1080px; margin: 0 auto; }
.about-photo {
  width: 300px; height: 300px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; flex: none;
  box-shadow: 0 18px 50px rgba(0,47,71,0.18); border: 5px solid #fff;
}
.about-text { text-align: left; max-width: 540px; }
.about-text h2 { text-align: left; }
.about-role {
  font-size: 19px; font-weight: 800; margin: 2px 0 16px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.about-pills { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
