/* =========================================================
   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 .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 {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad);
  color: white; font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 8px 22px -6px rgba(0, 58, 155, 0.45);
}
.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-template-columns: repeat(5, 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;
}

/* ------- 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 */
.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)); }
  .timeline { grid-template-columns: repeat(5, 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-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; }
}
