/* Tutorials page. Loaded after styles.css, which holds the tokens and shared components. */
.tut-hero {
  padding: 56px 0 32px;
  text-align: center;
  background: linear-gradient(to bottom, var(--surface-low), var(--bg));
}
.tut-hero h1 {
  max-width: 760px;
  margin: 8px auto 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.tut-hero .lead { margin: 0 auto 28px; }
.toc {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 860px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  font: 600 13.5px/20px var(--font-label);
}
.toc a:hover { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.toc b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 12px;
}

.tutorials { padding: 24px 0 72px; }
.tutorial {
  display: grid;
  gap: 28px;
  align-items: start;
  padding: 28px 20px;
  margin-top: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  scroll-margin-top: 96px;
}
@media (min-width: 900px) {
  .tutorial { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 40px; }
  .tutorial.wide { grid-template-columns: minmax(0, 1fr); }
}
.tutorial-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 18px;
}
.tutorial h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-bottom: 8px; }
.tutorial .intro { color: var(--text-muted); margin-bottom: 20px; }
.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.steps-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  font-size: 15.5px;
}
.steps-list li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-mid);
  font: 700 13px var(--font-label);
}
.steps-list strong { font-weight: 700; }
.tip {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--surface-low);
  font-size: 14.5px;
}
.tip .ms { flex: none; color: var(--secondary); }
.tip.pro .ms { color: var(--primary); }
.shot {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 300px;
}
.tutorial.wide .shot { max-width: 100%; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-3), 0 0 0 1px var(--line);
}
.shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}
.keys { white-space: nowrap; }
.plan-table { margin-top: 4px; }
.tut-end {
  margin-top: 32px;
  padding: 32px 24px;
  border-radius: var(--r-lg);
  text-align: center;
  background: linear-gradient(135deg, var(--surface-low), var(--surface), var(--surface-mid));
}
.tut-end h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.tut-end p { color: var(--text-muted); margin-bottom: 20px; }
.tut-end .hero-ctas { margin-bottom: 0; }
.toc-demo { margin: 0 0 20px; }
