/* =========================================================
   Indeed · n8n Pre-Hackathon Training - Presentation
   Brand palette (Indeed)
     --indeed-blue       : #003A9B   (primary, from Indeed logo)
     --indeed-blue-light : #2563EB   (lighter accent)
     --n8n-coral         : #EA4B71   (n8n brand, for n8n-specific elements)
     --light             : #f6f7fa
     --ink               : #1c2230
   ========================================================= */

:root {
  --indeed-blue: #003A9B;
  --indeed-blue-light: #2563EB;
  --indeed-blue-soft: rgba(0, 58, 155, 0.10);
  --n8n-coral: #EA4B71;
  --navy: #002247;
  --light: #f6f7fa;

  --bg: #f6f7fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --ink: #1c2230;
  --ink-2: #2e2f3a;
  --ink-3: #5b6273;
  --muted: #8b94a7;
  --line: rgba(0, 58, 155, 0.10);
  --line-2: rgba(0, 58, 155, 0.06);

  --grad: linear-gradient(135deg, var(--indeed-blue) 0%, var(--indeed-blue-light) 100%);
  --grad-soft: linear-gradient(135deg, rgba(0, 58, 155, 0.10) 0%, rgba(37, 99, 235, 0.10) 100%);
  --shadow-sm: 0 1px 2px rgba(0, 58, 155, 0.04), 0 2px 6px rgba(0, 58, 155, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 58, 155, 0.08), 0 12px 36px -8px rgba(0, 58, 155, 0.12);
  --shadow-lg: 0 10px 30px rgba(0, 58, 155, 0.10), 0 30px 80px -20px rgba(0, 58, 155, 0.20);

  --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(--indeed-blue); }

/* ------- Hero background (subtle gradient field) ------- */
.hero-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(0, 58, 155, 0.10), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(37, 99, 235, 0.10), transparent 60%),
    var(--bg);
}

/* ------- Top bar (frosted, sticky) ------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 36px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(0, 58, 155, 0.06);
}
.brand {
  display: flex; align-items: center; gap: 14px;
}
.brand img, .brand svg { height: 24px; width: auto; display: block; }
.brand-logos { display: flex; align-items: center; gap: 10px; }
.brand-logos .brand-x { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: -0.02em; }
.brand-logos .brand-avanai { height: 18px; }
.brand .pill {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.deck-meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-3);
  font-size: 13px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.55);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
}
.deck-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--indeed-blue-light); }

/* ------- Progress bar ------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40;
  background: rgba(0, 58, 155, 0.06);
}
.progress > span {
  display: block; height: 100%;
  background: var(--grad);
  width: 0%;
  transition: width var(--t-mid) var(--easing);
  box-shadow: 0 0 12px rgba(0, 58, 155, 0.35);
}

/* ------- Slide stage ------- */
.stage {
  position: relative; z-index: 10;
  width: 100vw; height: 100vh;
  display: grid; place-items: center;
  perspective: 1600px;
}

.slide {
  position: absolute; inset: 0;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 96px 8vw 100px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(40px, 0, 0) scale(0.985);
  transition:
    opacity var(--t-mid) var(--easing),
    transform var(--t-mid) var(--easing),
    filter var(--t-mid) var(--easing);
  filter: blur(6px);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 58, 155, 0.18) transparent;
}
.slide::-webkit-scrollbar { width: 8px; }
.slide::-webkit-scrollbar-track { background: transparent; }
.slide::-webkit-scrollbar-thumb { background: rgba(0, 58, 155, 0.16); border-radius: 8px; }
.slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}
.slide.leaving-left {
  opacity: 0;
  transform: translate3d(-40px, 0, 0) scale(0.985);
  filter: blur(6px);
}

.slide.is-active .anim {
  animation: rise 720ms var(--easing) both;
}
.slide.is-active .anim-1 { animation-delay: 80ms; }
.slide.is-active .anim-2 { animation-delay: 180ms; }
.slide.is-active .anim-3 { animation-delay: 280ms; }
.slide.is-active .anim-4 { animation-delay: 380ms; }
.slide.is-active .anim-5 { animation-delay: 480ms; }
.slide.is-active .anim-6 { animation-delay: 580ms; }

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(8px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

/* ------- Typography ------- */
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--indeed-blue-light);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.30);
  margin-bottom: 26px;
  font-weight: 600;
}
.eyebrow.coral {
  color: var(--n8n-coral); background: rgba(234, 75, 113, 0.10); border-color: rgba(234, 75, 113, 0.32);
}
.eyebrow.deep {
  color: var(--indeed-blue); background: rgba(0, 58, 155, 0.10); border-color: rgba(0, 58, 155, 0.32);
}

h1.display {
  font-size: clamp(40px, 6.6vw, 92px);
  font-weight: 800; line-height: 0.98; letter-spacing: -0.025em;
  color: var(--navy);
}
h1.display .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

h2.title {
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--navy);
}
h3.subtitle {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 500; line-height: 1.4;
  color: var(--ink-3);
  max-width: 880px;
}
.lead {
  font-size: clamp(17px, 1.3vw, 21px); line-height: 1.55;
  color: var(--ink-2);
  max-width: 880px;
}
.lead em { font-style: normal; font-weight: 600; color: var(--indeed-blue); }
.lead code, .card code, code.inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(0, 58, 155, 0.08);
  color: var(--indeed-blue);
  padding: 2px 6px; border-radius: 5px;
}

.kicker {
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ------- Layout primitives ------- */
.slide-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
  min-height: calc(100vh - 200px);
  justify-content: center;
}
.slide-inner.center { align-items: center; text-align: center; }
.slide-inner.tall { justify-content: flex-start; min-height: 0; }

.row { display: flex; gap: 28px; align-items: stretch; }
.row.wrap { flex-wrap: wrap; }
.col { flex: 1 1 0; min-width: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* ------- Card ------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--easing), border-color var(--t-fast) var(--easing), box-shadow var(--t-fast) var(--easing);
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 58, 155, 0.30);
  box-shadow: var(--shadow-md);
}
.card .icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}
.card h4 {
  font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em;
  color: var(--navy);
}
.card p {
  font-size: 14.5px; line-height: 1.55; color: var(--ink-3);
}
.card.compact { padding: 18px; }
.card.compact h4 { font-size: 16px; }
.card.compact p { font-size: 13.5px; }

/* Tag chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--indeed-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.28);
}
.chip.deep { color: var(--indeed-blue); background: rgba(0, 58, 155, 0.10); border-color: rgba(0, 58, 155, 0.30); }
.chip.coral { color: var(--n8n-coral); background: rgba(234, 75, 113, 0.10); border-color: rgba(234, 75, 113, 0.30); }
.chip.muted { color: var(--ink-3); background: rgba(0, 58, 155, 0.04); border-color: var(--line); }

/* Bullet list */
.bullets { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.bullets li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 17px; line-height: 1.5; color: var(--ink-2);
}
.bullets li::before {
  content: ''; flex: 0 0 auto;
  width: 8px; height: 8px; margin-top: 9px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(0, 58, 155, 0.45);
}
.bullets li strong { color: var(--navy); font-weight: 700; }

/* Stat */
.stat {
  text-align: center; padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.stat .num {
  font-size: clamp(40px, 4.5vw, 56px); font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}

/* Compare table - Do / Avoid */
.compare {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.compare > div {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  font-size: 14.5px;
  color: var(--ink-2);
}
.compare > div:nth-child(2n) { border-right: none; }
.compare > div:nth-last-child(-n+2) { border-bottom: none; }
.compare .head {
  background: rgba(0, 58, 155, 0.08);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy);
}
.compare .head.avoid { background: rgba(220, 38, 38, 0.08); color: #b91c1c; }
.compare .yes { color: #0d9488; font-weight: 600; }
.compare .no  { color: #dc2626; font-weight: 600; }

/* Section divider slides */
.slide.section-divider .slide-inner { text-align: center; align-items: center; }
.slide.section-divider .big-num {
  font-size: clamp(120px, 18vw, 240px);
  font-weight: 900; line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 16px 50px rgba(0, 58, 155, 0.30));
  display: inline-block;
  padding: 0 0.06em;
}
.slide.section-divider h2 {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 800; letter-spacing: -0.02em; margin-top: 12px;
  color: var(--navy);
}
.slide.section-divider .sub {
  margin-top: 14px; font-size: 18px; color: var(--ink-3); max-width: 720px;
}

/* Pillar badges */
.pillars { display: flex; gap: 10px; flex-wrap: wrap; }
.pillars .pill {
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* Final CTA */
.cta-box {
  text-align: center; padding: 36px;
  background: linear-gradient(135deg, rgba(0, 58, 155, 0.08), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(0, 58, 155, 0.25);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

/* Per-slide footer removed; section + slide number live in the topbar */
.slide-foot { display: none; }

/* ------- Timeline (agenda) ------- */
.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.timeline .seg {
  position: relative;
  padding: 22px 18px 18px;
  border-right: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 8px;
}
.timeline .seg:last-child { border-right: none; }
.timeline .seg .time {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
}
.timeline .seg .dur {
  font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.timeline .seg .label {
  font-size: 14px; font-weight: 700; color: var(--navy); margin-top: 4px;
}
.timeline .seg .sub {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.45;
}
.timeline .seg.is-build {
  background: linear-gradient(180deg, rgba(0, 58, 155, 0.05), rgba(37, 99, 235, 0.06));
}

/* ------- Node card (workflow architecture diagram) ------- */
.flow {
  display: flex; align-items: stretch; gap: 8px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.flow .node {
  flex: 1 1 120px;
  min-width: 110px;
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  text-align: center;
}
.flow .node .nm { font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.flow .node .ty { font-size: 11px; color: var(--ink-3); }
.flow .arrow {
  align-self: center; color: var(--indeed-blue);
  font-size: 18px; font-weight: 700;
}
.flow .node.code { border-color: rgba(234, 75, 113, 0.45); background: rgba(234, 75, 113, 0.04); }
.flow .node.ai { border-color: rgba(0, 58, 155, 0.35); background: rgba(0, 58, 155, 0.04); }
.flow .node.set { border-color: rgba(13, 148, 136, 0.30); background: rgba(13, 148, 136, 0.04); }

/* ------- Node-detail layout (one slide per node) -------
   3-column: square screenshot · text · config panel */
.node-detail {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}
.node-detail .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 12px;
}
.node-detail .panel h5 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700;
}
.node-detail .panel .config-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0; border-top: 1px dashed var(--line-2);
  font-size: 14px;
}
.node-detail .panel .config-row:first-of-type { border-top: 0; padding-top: 0; }
.node-detail .panel .config-row .k { color: var(--ink-3); font-weight: 500; }
.node-detail .panel .config-row .v { color: var(--navy); font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; text-align: right; }
.node-detail .left h2 { margin-bottom: 12px; }
.node-detail .left .lead { margin-bottom: 16px; }

/* Per-node screenshot - square card on the LEFT of .node-detail */
.node-screenshot {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.node-screenshot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

/* Heads-up callouts inside node detail */
.callout {
  padding: 14px 16px; border-radius: 12px;
  font-size: 14px; line-height: 1.5;
  border: 1px solid;
}
.callout.warn { background: #fff8e6; border-color: rgba(217, 119, 6, 0.30); color: #92400e; }
.callout.note { background: #eef4ff; border-color: rgba(37, 99, 235, 0.25); color: #1e3a8a; }
.callout.win  { background: #ecfdf5; border-color: rgba(13, 148, 136, 0.30); color: #065f46; }
.callout strong { font-weight: 700; }

/* ------- Stat row for top-nodes-at-Indeed slide ------- */
.bar {
  display: grid; grid-template-columns: 1fr 64px; gap: 10px;
  align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
}
.bar:last-child { border-bottom: 0; }
.bar .b { display: flex; align-items: center; gap: 12px; }
.bar .name { font-size: 13.5px; font-weight: 600; color: var(--navy); min-width: 180px; }
.bar .track { flex: 1; height: 10px; border-radius: 999px; background: rgba(0, 58, 155, 0.08); overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.bar .fill.coral { background: linear-gradient(135deg, var(--n8n-coral), #ff6d42); }
.bar .count { font-size: 13px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.bar .tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700; letter-spacing: 0.04em; }
.bar .tag.flag { background: rgba(234, 75, 113, 0.12); color: var(--n8n-coral); border: 1px solid rgba(234, 75, 113, 0.35); }

/* ------- Policy / external link styling ------- */
.policy-link {
  color: var(--indeed-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 58, 155, 0.35);
  font-weight: 600;
  transition: border-color var(--t-fast) var(--easing), color var(--t-fast) var(--easing);
}
.policy-link:hover {
  color: var(--indeed-blue-light);
  border-bottom-color: var(--indeed-blue-light);
}

/* ------- Two-card download grid ------- */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.dl-card-mini {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 12px;
}
.dl-card-head {
  display: flex; flex-direction: column; gap: 6px;
}
.dl-card-mini .dl-tag {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--indeed-blue-light); font-weight: 700;
}
.dl-card-mini h3 {
  font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.015em;
}
.dl-card-mini .filename {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; color: var(--indeed-blue);
  background: rgba(0, 58, 155, 0.06);
  padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line);
  display: inline-flex; gap: 8px; align-items: center;
  width: fit-content;
}
.dl-card-mini .meta-row {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 4px 0;
}
.dl-card-mini .meta-row .m {
  font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.dl-card-mini .meta-row .m strong {
  color: var(--navy); font-weight: 700; display: block;
  font-size: 16px; margin-bottom: 2px;
  text-transform: none; letter-spacing: -0.01em;
}
.dl-card-mini .dl-btn {
  align-self: flex-start;
}
.dl-card-mini .next {
  font-size: 12.5px; color: var(--ink-3); margin-top: 4px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.dl-card-mini .file-list {
  font-size: 12.5px;
  margin-top: 6px;
}
.dl-card-mini .file-list summary {
  cursor: pointer;
  color: var(--indeed-blue);
  font-weight: 600;
  list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 0;
  transition: color var(--t-fast) var(--easing);
}
.dl-card-mini .file-list summary::-webkit-details-marker { display: none; }
.dl-card-mini .file-list summary::before {
  content: '+';
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px; font-weight: 700;
  color: var(--indeed-blue);
  line-height: 1;
}
.dl-card-mini .file-list[open] summary::before { content: '\2212'; }
.dl-card-mini .file-list summary:hover { color: var(--indeed-blue-light); }
.dl-card-mini .file-list ul {
  list-style: none;
  padding: 10px 0 0 24px;
  margin: 0;
  display: flex; flex-direction: column; gap: 5px;
}
.dl-card-mini .file-list li a {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--indeed-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--easing);
}
.dl-card-mini .file-list li a:hover {
  border-bottom-color: var(--indeed-blue);
}

/* ------- Download CTA card (legacy, kept for reuse) ------- */
.dl-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  align-items: center;
}
.dl-card .dl-meta { display: flex; flex-direction: column; gap: 14px; }
.dl-card h3 { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -0.015em; }
.dl-card .filename {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px; color: var(--indeed-blue);
  background: rgba(0, 58, 155, 0.06);
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line);
  display: inline-flex; gap: 8px; align-items: center;
  width: fit-content;
}
.dl-card .meta-row { display: flex; gap: 24px; flex-wrap: wrap; }
.dl-card .meta-row .m { font-size: 13px; color: var(--ink-3); }
.dl-card .meta-row .m strong { color: var(--navy); font-weight: 700; display: block; font-size: 18px; margin-bottom: 2px; }
.dl-card .dl-action { text-align: center; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px; border-radius: 14px;
  background: var(--grad); color: white;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 12px 28px -6px rgba(0, 58, 155, 0.55);
  transition: transform var(--t-fast) var(--easing), box-shadow var(--t-fast) var(--easing);
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -6px rgba(0, 58, 155, 0.65); }
.dl-btn svg { width: 20px; height: 20px; }
.dl-card .next { font-size: 13px; color: var(--ink-3); margin-top: 12px; }

/* ------- Screen gallery (slide reserved for screenshots) ------- */
.gallery-stage {
  position: absolute;
  inset: 64px 88px 120px;
  background: transparent;
}
.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .22s ease;
  border-radius: 12px;
}
.gallery-img.is-active { opacity: 1; }
.gallery-btn {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  box-shadow: var(--shadow-sm);
}
.gallery-btn:hover { background: var(--indeed-blue); color: #fff; border-color: var(--indeed-blue); }
.gallery-counter {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .03em;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-block;
}

/* Title slide "Brought to you by Avanai" signature (link to avanai.io) */
.brought-by {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  width: 100%; max-width: 360px;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--easing);
}
.brought-by:hover { transform: translateY(-1px); }
.brought-by:hover .brought-by-text { color: var(--indeed-blue); }
.brought-by:hover .brought-by-logo { opacity: 1; }
.brought-by-text {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  transition: color var(--t-fast) var(--easing);
}
.brought-by-logo {
  height: clamp(22px, 2.4vw, 30px);
  width: auto;
  display: block;
  opacity: 0.92;
  transition: opacity var(--t-fast) var(--easing);
}

/* n8n inline logo bit */
/* Keep the n8n brand lowercase even inside uppercased labels */
.lc { text-transform: none !important; }

.n8n-mark {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(234, 75, 113, 0.08);
  border: 1px solid rgba(234, 75, 113, 0.30);
  color: var(--n8n-coral);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}

/* ------- Bottom controls ------- */
.controls {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  z-index: 35;
  box-shadow: var(--shadow-md);
}
.controls button {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--navy); opacity: 0.78;
  transition: background var(--t-fast) var(--easing), color var(--t-fast) var(--easing), opacity var(--t-fast) var(--easing);
}
.controls button:hover { background: rgba(0, 58, 155, 0.08); color: var(--indeed-blue); opacity: 1; }
.controls .count {
  padding: 0 10px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-3);
}
.controls .sep { width: 1px; height: 20px; background: var(--line); }

/* Help overlay */
.help {
  position: fixed; inset: 0; z-index: 50;
  display: none;
  background: rgba(0, 58, 155, 0.45);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  animation: fadeIn 220ms var(--easing);
}
.help.open { display: flex; }
.help .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 32px; max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.help h4 { font-size: 18px; margin-bottom: 16px; color: var(--navy); }
.help kbd {
  display: inline-block; min-width: 26px; padding: 4px 8px;
  border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; text-align: center;
}
.help .row-k { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--ink-2); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Responsive */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-detail { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .slide { padding: 96px 5vw 90px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .compare, .dl-card, .dl-grid { grid-template-columns: 1fr; }
  .timeline { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
}

/* Print mode (one slide per page) */
@media print {
  body { background: white; color: var(--ink); overflow: visible; }
  .topbar, .controls, .progress, .hero-bg, .help, .slide-foot { display: none !important; }
  .stage { display: block; height: auto; }
  .slide { position: relative; opacity: 1 !important; transform: none !important; filter: none !important; page-break-after: always; min-height: 100vh; padding: 60px 50px; overflow: visible; }
  .card, .stat, .compare, .timeline, .flow, .dl-card { box-shadow: none; }
}

/* =========================================================
   indeedn8nhack additions
   ========================================================= */

/* ------- Inline gallery wrapper (per-slide screenshot stepper) ------- */
.gallery-inline {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 22px 64px 60px;
  display: grid;
  place-items: center;
}
.gallery-inline-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border-radius: 12px;
  overflow: hidden;
}
.gallery-inline-stage .gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .22s ease;
  border-radius: 12px;
  background: #fff;
}
.gallery-inline-stage .gallery-img.is-active { opacity: 1; }

.gallery-inline .gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}
.gallery-inline .gallery-btn[data-gal-prev] { left: 12px; }
.gallery-inline .gallery-btn[data-gal-next] { right: 12px; }
.gallery-inline .gallery-btn:hover { background: var(--indeed-blue); color: #fff; border-color: var(--indeed-blue); }
.gallery-inline .gallery-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.gallery-inline .gallery-counter {
  position: absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .03em;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.gallery-inline .gallery-step-label {
  position: static;
  display: table;
  margin: 0 auto 12px;
  transform: none;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--indeed-blue-light);
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.30);
  padding: 5px 12px; border-radius: 999px;
  z-index: 6;
  pointer-events: none;
}

/* ------- Copy / download button pair (used on checkpoint cheat sheets) ------- */
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--easing), box-shadow var(--t-fast) var(--easing), background var(--t-fast) var(--easing);
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad); color: white;
  box-shadow: 0 8px 22px -6px rgba(0, 58, 155, 0.45);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -6px rgba(0, 58, 155, 0.55); }
.btn-secondary {
  background: var(--surface);
  color: var(--indeed-blue);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: rgba(0, 58, 155, 0.04);
  border-color: rgba(0, 58, 155, 0.30);
  color: var(--indeed-blue);
}
.btn-success { background: #10b981 !important; color: white !important; border-color: transparent !important; }

/* Copied! confirmation animation (Copy JSON buttons + code-block copy fabs) */
@keyframes copiedPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.14); }
  55%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}
@keyframes copiedCheck {
  0%   { transform: scale(0.2) rotate(-12deg); opacity: 0; }
  60%  { transform: scale(1.25) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.btn.is-copied,
.copy-fab.is-copied { animation: copiedPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn.is-copied svg,
.copy-fab.is-copied svg { animation: copiedCheck 0.4s ease-out; }
.btn.is-copied { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.20); }

/* Progressive "attached to the agent" build visual (live-demo steps) */
.node.is-dim, .mini-node.is-dim { opacity: 0.4; }
.node.is-on { border-color: var(--indeed-blue); box-shadow: 0 10px 26px -10px rgba(0, 58, 155, 0.5); }
.subnode-label { text-align: center; margin-top: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.subnode-row { display: flex; justify-content: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.mini-node { border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 15px; font-size: 14px; font-weight: 700; color: var(--navy); background: var(--surface); display: flex; align-items: center; gap: 7px; transition: opacity 0.2s ease; }
.mini-node.is-on { border-color: var(--indeed-blue); box-shadow: 0 8px 20px -10px rgba(0, 58, 155, 0.45); }

/* ===== Demo + AvaStage slides — bayer-n8n-starter purple shade (scoped) ===== */
.slide.demo-theme {
  --purple: #7857F2;
  --blue: #25B2F9;
  --indeed-blue: #7857F2;
  --indeed-blue-light: #25B2F9;
  --grad: linear-gradient(135deg, #5A3DDB 0%, #7857F2 60%, #25B2F9 100%);
  --grad-soft: linear-gradient(135deg, rgba(120, 87, 242, 0.12) 0%, rgba(37, 178, 249, 0.10) 100%);
}

/* ------- "Let's Build" hero slide ------- */
.slide.build-slide h2 {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 40px rgba(120, 87, 242, 0.28));
}
.build-hero {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 4px auto 14px;
  line-height: 0;
}
.build-glow {
  position: absolute; inset: 50% auto auto 50%;
  width: 190px; height: 190px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 87, 242, 0.30) 0%, rgba(37, 178, 249, 0.14) 45%, transparent 70%);
  animation: build-pulse 3.2s ease-in-out infinite;
  z-index: 0;
}
.build-icon { position: relative; z-index: 1; filter: drop-shadow(0 14px 34px rgba(0, 58, 155, 0.22)); }
.build-icon .blk { transform-box: fill-box; transform-origin: center; animation: build-rise 3.4s ease-in-out infinite; }
.build-icon .blk-1 { animation-delay: 0s; }
.build-icon .blk-2 { animation-delay: 0.25s; }
.build-icon .blk-3 { animation-delay: 0.5s; }
.build-icon .blk-dot { transform-box: fill-box; transform-origin: center; animation: build-blink 1.8s ease-in-out infinite; }

@keyframes build-pulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.94); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes build-rise {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes build-blink {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .build-glow, .build-icon .blk, .build-icon .blk-dot { animation: none; }
}
/* AvaStage "follow along" join card (ported from bayer-n8n-starter) */
.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-join-split { flex-direction: row; align-items: stretch; gap: 38px; padding: 30px 38px; }
.ava-divider-tall { height: auto; align-self: stretch; }
.ava-qr-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.ava-qr { width: 200px; height: 200px; border-radius: 14px; background: #fff; padding: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ava-qr-hint { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.ava-join-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.ava-join-or { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.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; }
.ava-tip { display: flex; align-items: flex-start; gap: 11px; margin: 16px auto 0; max-width: 720px; padding: 13px 18px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--line); }
.ava-tip-ico { font-size: 18px; line-height: 1.4; flex-shrink: 0; }
.ava-tip-text { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); text-align: left; }
.ava-tip-text strong { color: var(--ink-2); font-weight: 700; }

/* ------- Code block (for prompt + JSON snippets) ------- */
.code-block {
  position: relative;
  background: #0b1220;
  color: #d6deeb;
  border-radius: 14px;
  border: 1px solid rgba(0, 58, 155, 0.20);
  padding: 18px 18px 18px 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.55;
  overflow: auto;
  max-height: 380px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.code-block::-webkit-scrollbar { width: 8px; }
.code-block::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 8px; }
.code-block pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
.code-block .copy-fab {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37, 99, 235, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.30);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  z-index: 2;
}
.code-block .copy-fab:hover {
  background: var(--indeed-blue);
  border-color: rgba(255, 255, 255, 0.40);
  transform: translateY(-1px);
}
.code-block .copy-fab.is-copied {
  background: #10b981;
  color: #fff;
  border-color: transparent;
}
.code-block .copy-fab svg { width: 14px; height: 14px; }
.code-block pre { padding-right: 90px; } /* keep text away from the floating button */

/* ------- Checkpoint cheat-sheet card ------- */
.cp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 16px;
}
.cp-card h3 {
  font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.015em;
}
.cp-card .filename {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; color: var(--indeed-blue);
  background: rgba(0, 58, 155, 0.06);
  padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line);
  display: inline-flex; gap: 8px; align-items: center;
  width: fit-content;
}

/* ------- Modal dialog (paste-into-n8n instructions) ------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex;
  background: rgba(0, 58, 155, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--easing);
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  max-width: 640px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(12px) scale(0.985);
  opacity: 0;
  transition: transform 320ms var(--easing), opacity 280ms var(--easing);
}
.modal.open .panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal .panel h3 {
  font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.modal .panel h3 .check {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #10b981; color: white;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.modal .panel p.lead-modal {
  font-size: 15px; color: var(--ink-3); line-height: 1.5;
  margin-bottom: 16px;
}
.modal .panel ol {
  list-style: none;
  counter-reset: m;
  display: flex; flex-direction: column; gap: 14px;
  padding: 0; margin: 0 0 18px;
}
.modal .panel ol li {
  counter-increment: m;
  position: relative;
  padding-left: 44px;
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
}
.modal .panel ol li::before {
  content: counter(m);
  position: absolute;
  left: 0; top: 1px;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  background: var(--grad); color: white;
  border-radius: 50%;
  font-weight: 700; font-size: 13px;
  line-height: 1;
}
.modal .panel ol li strong { color: var(--navy); font-weight: 700; }
.modal .panel ol li code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(0, 58, 155, 0.08);
  color: var(--indeed-blue);
  padding: 2px 6px; border-radius: 5px;
}
.modal .panel .actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.modal .panel .close-x {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-3);
  font-size: 18px; font-weight: 700;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  transition: background .15s, color .15s;
}
.modal .panel .close-x:hover { background: rgba(0, 58, 155, 0.08); color: var(--indeed-blue); }

/* ------- Diff highlighting in CP architecture diagrams ------- */
.flow .node.is-new {
  border-color: rgba(13, 148, 136, 0.45);
  background: rgba(13, 148, 136, 0.06);
  position: relative;
}
.flow .node.is-new::after {
  content: 'NEW';
  position: absolute;
  top: -8px; right: -6px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  background: #10b981; color: white;
  padding: 2px 6px; border-radius: 999px;
}

/* ------- Numbered step list (clone-sheet, slack member id) -------
   Note: cannot use display: grid on the LI itself, because text nodes
   between inline children become anonymous grid items and the line
   breaks between every word. Using ::before absolutely positioned
   inside a relatively-positioned LI keeps inline content on one line. */
.steps {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  counter-reset: stp;
  padding: 0; margin: 0;
}
.steps li {
  position: relative;
  padding-left: 42px;
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
  list-style: none;
  counter-increment: stp;
}
.steps li::before {
  content: counter(stp);
  position: absolute;
  left: 0; top: 1px;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  background: var(--grad); color: white;
  border-radius: 50%;
  font-weight: 700; font-size: 12px;
  line-height: 1;
}
.steps li strong { color: var(--navy); font-weight: 700; }
.steps li code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(0, 58, 155, 0.08);
  color: var(--indeed-blue);
  padding: 2px 6px; border-radius: 5px;
  white-space: nowrap;
}

/* ------- Two-column split (steps + gallery) ------- */
.split-2 {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 1.4fr;
  gap: 24px;
  align-items: stretch;
}

/* Section dividers - checkpoint-coloured */
.slide.section-divider .big-num.cp1 {
  background: linear-gradient(135deg, var(--indeed-blue) 0%, var(--indeed-blue-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slide.section-divider .big-num.cp2 {
  background: linear-gradient(135deg, #10b981 0%, #2563eb 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slide.section-divider .big-num.cp3 {
  background: linear-gradient(135deg, var(--n8n-coral) 0%, var(--indeed-blue-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* AI-Agent-definition card (slide 4) */
.definition-card {
  background: linear-gradient(135deg, rgba(0, 58, 155, 0.08), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(0, 58, 155, 0.25);
  border-radius: 22px;
  padding: 36px 44px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.definition-card .quote {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.definition-card .quote em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Eyebrow color: green for "added" tier in checkpoint diffs */
.eyebrow.green {
  color: #047857; background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.32);
}

/* Compact callout for tight slides */
.callout.compact {
  padding: 10px 14px; font-size: 13.5px;
}

/* Gallery responsive */
@media (max-width: 1100px) {
  .split-2 { grid-template-columns: 1fr; }
  .gallery-inline { padding: 22px 16px 56px; }
  .gallery-inline .gallery-btn[data-gal-prev] { left: 6px; }
  .gallery-inline .gallery-btn[data-gal-next] { right: 6px; }
}

/* ------- Wider 2-column split for steps + gallery (stops the right
   panel from being too wide and the left panel from being too narrow) */
.split-steps-gallery {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.6fr);
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .split-steps-gallery { grid-template-columns: 1fr; }
}

/* Hero gallery (full-width screenshot stage for CP step galleries) */
.gallery-hero {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 48px 0 52px;
  position: relative;
}
.gallery-hero .gallery-inline-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.gallery-hero .gallery-inline-stage .gallery-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .22s ease;
  background: transparent;
}
.gallery-hero .gallery-inline-stage .gallery-img.is-active { opacity: 1; }
.gallery-hero .gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}
.gallery-hero .gallery-btn[data-gal-prev] { left: 16px; }
.gallery-hero .gallery-btn[data-gal-next] { right: 16px; }
.gallery-hero .gallery-btn:hover { background: var(--indeed-blue); color: #fff; border-color: var(--indeed-blue); }
.gallery-hero .gallery-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.gallery-hero .gallery-counter {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: var(--ink-3); letter-spacing: .03em;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.gallery-hero .gallery-step-label {
  position: static;
  display: table;
  margin: 0 auto 14px;
  transform: none;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--indeed-blue-light);
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.30);
  padding: 6px 14px; border-radius: 999px;
  z-index: 6;
  pointer-events: none;
  max-width: 70%;
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 1100px) {
  .gallery-hero { padding: 48px 0 52px; }
  .gallery-hero .gallery-btn { width: 44px; height: 44px; }
  .gallery-hero .gallery-btn[data-gal-prev] { left: 6px; }
  .gallery-hero .gallery-btn[data-gal-next] { right: 6px; }
}

/* ------- Partnership graphic (n8n x Avanai)
   Small badge tucked in the bottom-right corner so the slide's
   focus stays on the title and lead, not the logos. */
.partnership-corner {
  position: absolute;
  bottom: 110px;
  right: 8vw;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.partnership-corner .label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.partnership-mini {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.partnership-mini img {
  height: 22px;
  width: auto;
  display: block;
}
.partnership-mini .x {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: -0.02em;
}
@media (max-width: 1100px) {
  .partnership-corner { right: 5vw; bottom: 90px; }
}

/* ------- Anatomy layout: small left card (canvas) + big right card (open node)
   The small card is roughly half the size of the big one so the focus stays
   on the open-mode screenshot while the on-canvas thumbnail provides context. */
.anatomy-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
.anatomy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.anatomy-card.small .anatomy-stage { min-height: 180px; }
.anatomy-card .anatomy-stage {
  flex: 1 1 auto;
  background: var(--surface-2);
  border-radius: 10px;
  overflow: hidden;
  display: grid; place-items: center;
  min-height: 360px;
}
.anatomy-card .anatomy-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  display: block;
}
.anatomy-card .anatomy-cap {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
@media (max-width: 1100px) {
  .anatomy-grid { grid-template-columns: 1fr; }
  .anatomy-card.small .anatomy-stage { min-height: 200px; }
}

/* ------- Bonus chip (used on Checkpoint 3 slides) ------- */
.bonus-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.20);
}
.bonus-chip::before {
  content: '★';
  font-size: 12px;
  color: #b45309;
}

/* Small inline variant for tight rows (e.g. the timeline time row) */
.bonus-tag {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
  font-size: 10px; font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.45);
  line-height: 1.4;
}
.bonus-tag::before {
  content: '★';
  font-size: 9px;
  color: #b45309;
  letter-spacing: 0;
}

/* ------- Section divider · Checkpoint 3 (bonus framing) ------- */
.slide.section-divider .bonus-banner {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #f59e0b;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ------- Confetti slide (celebration) ------- */
.celebrate {
  text-align: center;
  position: relative;
  padding: 36px 0;
}
.celebrate .trophy {
  font-size: clamp(120px, 16vw, 180px);
  line-height: 1;
  filter: drop-shadow(0 16px 50px rgba(0, 58, 155, 0.30));
  animation: trophyPop 800ms var(--easing) both;
  animation-delay: 200ms;
  opacity: 0;
}
@keyframes trophyPop {
  0%   { opacity: 0; transform: translateY(20px) scale(0.7); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Canvas-confetti container */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 25;
}

/* ------- Workflow screenshot frame (slide 4) -------
   No frame: image sits flush on the slide background so the n8n
   canvas reads as the canvas, not a card-wrapped illustration. */
.workflow-shot {
  margin-top: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.workflow-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* ------- Inline icon-with-text card (structured-output slide) ------- */
.icon-card {
  display: flex; flex-direction: row; align-items: stretch; gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.icon-card-right {
  display: flex; flex-direction: column; gap: 14px;
  flex: 1; min-width: 0;
  justify-content: center;
}
.icon-card .icon-shot {
  width: 480px; height: 480px;
  flex-shrink: 0;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.icon-card .icon-shot img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.icon-card .icon-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.icon-card .icon-text strong { color: var(--navy); }

/* ===== Live timeline (ported from n8n starter session · blue-themed) ===== */
@keyframes tl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.controls .timeline-pill { width: auto; height: 30px; border-radius: 999px; padding: 0 13px 0 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: transparent; border: 1px solid var(--line); cursor: pointer; white-space: nowrap; transition: background .2s ease; }
.controls .timeline-pill:hover { background: rgba(0, 58, 155, 0.05); }
.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; }
.tl-overlay { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0, 20, 55, 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, 20, 55, 0.28); border: 1px solid var(--line); }
.tl-box .board-head { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; margin-bottom: 14px; gap: 16px; }
.tl-box .board-clock { text-align: right; line-height: 1; flex: none; }
.tl-box .board-clock span { font-size: 42px; font-weight: 900; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.tl-box .board-clock small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.tl-box .board-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.tl-box .board-statusline { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.tl-start { border: 1.5px solid var(--indeed-blue); color: var(--indeed-blue); background: rgba(0, 58, 155, 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(--indeed-blue); color: #fff; }
.board-list { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.board-row { display: flex; align-items: center; gap: 10px; padding: 8px 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-dur { font-size: 12px; font-weight: 600; color: var(--muted); width: 52px; text-align: right; flex: none; }
.board-row .b-time { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--ink-3); width: 116px; text-align: right; flex: none; }
.board-row .b-rel { font-size: 12px; font-weight: 700; color: var(--indeed-blue); width: 70px; text-align: right; flex: none; }
.board-row.past { opacity: .4; }
.board-row.past .b-rel { color: var(--muted); font-weight: 600; }
.board-row.now { border-color: var(--indeed-blue); box-shadow: 0 0 0 2px rgba(0, 58, 155, 0.25), var(--shadow-sm); transform: scale(1.012); background: #fff; opacity: 1; }
.board-row.now .b-rel { color: #16a34a; }
.board-row.now .b-name::after { content: "NOW"; margin-left: 10px; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--grad); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.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; }

/* ===== About the trainer (ported from n8n starter session slide 3) ===== */
.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, 20, 55, 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: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.about-pills { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

/* ===== Click-to-zoom lightbox (slides with zoomable screenshots) ===== */
.zoomable { cursor: zoom-in; transition: filter .2s ease, transform .2s ease; }
.zoomable:hover { filter: brightness(0.97); }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center; padding: 3vh 3vw;
  background: rgba(240, 243, 250, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 96vw; max-height: 94vh; border-radius: 14px;
  box-shadow: 0 40px 120px rgba(0, 12, 40, 0.55);
  transform: scale(0.85); opacity: 0;
  transition: transform .36s cubic-bezier(0.22, 1, 0.36, 1), opacity .3s ease;
}
.lightbox.open img { transform: scale(1); opacity: 1; }
.lightbox-close {
  position: fixed; top: 22px; right: 26px; z-index: 201;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 10px 28px rgba(0, 12, 40, 0.35);
  transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover { background: var(--indeed-blue); transform: scale(1.08); }
