.tutorial-hero{
  position:relative;
  max-width:100%;
  overflow-x:clip;
  padding-top:72px;
  padding-bottom:64px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,var(--bg-hero-top),var(--bg-hero-bottom));
}
.tutorial-hero::before{
  position:absolute;
  inset:0;
  background-image:var(--grain);
  content:"";
  opacity:.03;
  pointer-events:none;
}
.tutorial-hero::after{
  position:absolute;
  right:8%;
  bottom:0;
  left:8%;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--accent-mid),transparent);
  content:"";
}
.tutorial-hero__inner{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.tutorial-hero h1{
  max-width:880px;
  margin-bottom:18px;
}
.tutorial-hero__lede{
  max-width:760px;
  margin-bottom:0;
  color:var(--text-muted);
  font-size:18px;
}
.tutorial-hero__actions{
  display:flex;
  gap:12px;
  margin-top:28px;
}
.tutorial-route{
  display:flex;
  max-width:100%;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:44px;
  padding:12px 18px;
  overflow-x:auto;
  border:1px solid var(--border);
  border-radius:var(--radius-pill);
  background:var(--panel);
  box-shadow:var(--shadow-card);
  color:var(--text-muted);
  font-family:var(--font-mono);
  font-size:12px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.tutorial-route::-webkit-scrollbar{display:none}
.tutorial-route span{
  flex-shrink:0;
  white-space:nowrap;
}
.tutorial-route svg{
  width:18px;
  height:18px;
  flex-shrink:0;
  color:var(--accent);
}
.tutorial-main{
  background:var(--bg);
}
.tutorial-article{
  max-width:960px;
  margin-inline:auto;
}
.tutorial-article>.callout{
  margin-bottom:34px;
}
.tutorial-step{
  position:relative;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:22px;
  padding-top:44px;
  padding-bottom:52px;
  border-bottom:1px solid var(--border);
  counter-increment:tutorial-step;
}
.tutorial-article{
  counter-reset:tutorial-step;
}
.tutorial-step__marker{
  position:relative;
  display:grid;
  width:42px;
  height:42px;
  place-items:center;
  border-radius:50%;
  background:var(--accent);
  box-shadow:var(--shadow-button);
  color:var(--on-accent);
  font-family:var(--font-mono);
  font-size:14px;
  font-weight:800;
}
.tutorial-step__marker::before{
  content:counter(tutorial-step);
}
.tutorial-step:not(:last-child) .tutorial-step__marker::after{
  position:absolute;
  top:50px;
  bottom:-52px;
  left:50%;
  width:1px;
  background:linear-gradient(180deg,var(--accent-mid),var(--border-soft));
  content:"";
  transform:translateX(-50%);
}
.tutorial-step__body h2{
  margin-bottom:18px;
}
.tutorial-step__body>p{
  color:var(--text-muted);
}
.tutorial-step__body a:not(.btn){
  color:var(--accent);
  font-weight:700;
  text-decoration:underline;
  text-decoration-color:var(--border);
  text-underline-offset:4px;
}
.tutorial-step__body code{
  padding:2px 6px;
  border:1px solid var(--border);
  border-radius:var(--radius-xs);
  background:var(--panel-bar);
  color:var(--accent);
  font-size:.88em;
}
.tutorial-step__action{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:28px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--panel);
  box-shadow:var(--shadow-card);
}
.tutorial-step__action .btn{
  flex-shrink:0;
}
.tutorial-step__action span{
  font-size:14px;
}
.platform-instructions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:30px;
}
.platform-instruction{
  position:relative;
  padding:24px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--panel);
  box-shadow:var(--shadow-card);
}
.platform-instruction::before{
  position:absolute;
  top:0;
  right:24px;
  left:24px;
  height:2px;
  background:var(--accent);
  content:"";
}
.platform-instruction__tag{
  display:inline-flex;
  min-height:28px;
  align-items:center;
  margin-bottom:14px;
  padding:4px 10px;
  border-radius:var(--radius-pill);
  background:var(--accent-soft);
  color:var(--accent);
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:800;
}
.platform-instruction h3{
  margin-bottom:12px;
  font-size:22px;
}
.platform-instruction p{
  color:var(--text-muted);
  font-size:15px;
}
.platform-instruction p:last-child{
  margin-bottom:0;
}
.tutorial-complete{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:center;
  margin-top:34px;
  padding:30px;
  border-radius:var(--radius-lg);
  background:linear-gradient(135deg,var(--accent),var(--accent-dark));
  box-shadow:var(--shadow-window);
  color:var(--on-accent);
}
.tutorial-complete h3{
  margin-bottom:8px;
  color:var(--on-accent);
}
.tutorial-complete p{
  margin-bottom:0;
  color:var(--border);
}
.tutorial-complete .btn{
  border-color:var(--panel);
  background:var(--panel);
  box-shadow:none;
  color:var(--accent);
}
@media (max-width:768px){
  .tutorial-hero{
    padding-top:52px;
    padding-bottom:48px;
  }
  .tutorial-route{
    width:100%;
    justify-content:flex-start;
  }
  .platform-instructions{
    grid-template-columns:1fr;
  }
  .tutorial-complete{
    grid-template-columns:1fr;
  }
}
@media (max-width:640px){
  .tutorial-hero__actions{
    width:100%;
    flex-direction:column;
  }
  .tutorial-step{
    grid-template-columns:34px minmax(0,1fr);
    gap:14px;
    padding-top:36px;
    padding-bottom:42px;
  }
  .tutorial-step__marker{
    width:32px;
    height:32px;
    font-size:12px;
  }
  .tutorial-step:not(:last-child) .tutorial-step__marker::after{
    top:40px;
    bottom:-42px;
  }
  .tutorial-step__action{
    align-items:flex-start;
    flex-direction:column;
    padding:16px;
  }
  .tutorial-step__action .btn{
    width:100%;
  }
  .platform-instruction{
    padding:20px 18px;
  }
  .tutorial-complete{
    padding:24px 20px;
  }
}