.tutorial-hero {
  position: relative;
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(72px, 9vw, 116px);
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 24%, var(--hero-mid), var(--black-clear) 34%),
    linear-gradient(125deg, var(--hero-deep), var(--accent-dark));
  color: var(--white);
}

.tutorial-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
}

.tutorial-hero-grid > * {
  min-width: 0;
}

.tutorial-kicker {
  margin-bottom: 16px;
  color: var(--hero-ink-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tutorial-hero h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: var(--white);
}

.tutorial-hero-lede {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--hero-ink);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.85;
}

.tutorial-hero .button-secondary {
  border-color: var(--hero-border);
  background: var(--hero-pill);
  color: var(--white);
}

.tutorial-hero .button-secondary:hover {
  border-color: var(--hero-border);
  background: var(--hero-pill-hover);
  color: var(--white);
}

.tutorial-route-map {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-panel);
  background: var(--hero-pill);
  color: var(--white);
  box-shadow: var(--shadow-hero-card);
}

.route-map-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hero-border);
  color: var(--hero-ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.route-map-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--cta);
}

.route-map-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
}

.route-map-list li {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  align-items: start;
}

.route-map-list li:not(:last-child)::after {
  position: absolute;
  top: 43px;
  bottom: -4px;
  left: 18px;
  width: 1px;
  background: var(--hero-border);
  content: "";
}

.route-map-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-small);
  background: var(--hero-pill);
  color: var(--cta);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.route-map-list strong,
.route-map-list small {
  display: block;
}

.route-map-list strong {
  color: var(--white);
  line-height: 1.45;
}

.route-map-list small {
  margin-top: 3px;
  color: var(--hero-ink-dim);
  line-height: 1.5;
}

.tutorial-content {
  padding-top: clamp(48px, 7vw, 88px);
}

.tutorial-intro,
.tutorial-step,
.quick-fixes {
  scroll-margin-top: 96px;
}

.tutorial-intro > h2 {
  margin-top: 0;
}

.preflight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.preflight-item {
  display: flex;
  min-width: 0;
  gap: 13px;
  padding: 18px;
  border-radius: var(--radius-control);
  background: var(--bg-panel);
}

.preflight-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  border-radius: var(--radius-small);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.preflight-item h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

.preflight-item p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.tutorial-step {
  margin-top: clamp(72px, 10vw, 112px);
  padding-top: 4px;
}

.tutorial-step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 30px;
  align-items: start;
}

.tutorial-step-index {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--shadow-card);
}

.tutorial-step-label {
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tutorial-step-head h2 {
  margin: 0;
}

.tutorial-screen {
  margin: 30px 0;
  padding: 10px;
  border-radius: calc(var(--radius-card) + 6px);
  background: linear-gradient(145deg, var(--accent-soft), var(--bg));
}

.mode-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0;
}

.mode-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
}

.mode-card-current {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.mode-card h3 {
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 22px;
}

.mode-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.connection-checklist {
  margin: 30px 0;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
}

.connection-checklist h3 {
  margin-bottom: 18px;
  font-size: 22px;
}

.connection-checklist ol {
  margin-bottom: 0;
}

.connection-checklist li {
  padding: 7px 0;
}

.verification-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.verification-flow article {
  min-width: 0;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--bg-panel);
}

.verification-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.verification-icon svg {
  width: 23px;
  height: 23px;
}

.verification-flow h3 {
  margin-bottom: 9px;
  font-size: 19px;
}

.verification-flow p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.quick-fixes {
  margin-top: clamp(76px, 11vw, 124px);
  padding: clamp(24px, 5vw, 44px);
  border-radius: var(--radius-panel);
  background: var(--bg-panel);
}

.quick-fixes > h2 {
  margin-top: 0;
}

.quick-fix-list {
  display: grid;
  gap: 12px;
  margin: 30px 0;
  padding: 0;
  counter-reset: quick-fix;
  list-style: none;
}

.quick-fix-list li {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(170px, 0.6fr) minmax(0, 1.4fr);
  gap: 18px;
  padding: 18px 18px 18px 58px;
  border-radius: var(--radius-control);
  background: var(--bg);
  counter-increment: quick-fix;
}

.quick-fix-list li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: var(--radius-small);
  background: var(--accent-soft);
  color: var(--accent-dark);
  content: counter(quick-fix);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.quick-fix-list strong {
  color: var(--text);
}

.quick-fix-list span {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .tutorial-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tutorial-route-map {
    max-width: 620px;
  }

  .preflight-grid,
  .verification-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-fix-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .tutorial-hero {
    padding-top: 54px;
    padding-bottom: 66px;
  }

  .tutorial-route-map {
    padding: 18px;
  }

  .tutorial-step-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .tutorial-step-index {
    width: 46px;
    height: 46px;
  }

  .mode-comparison {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-fixes {
    padding: 22px;
  }

  .quick-fix-list li {
    padding: 54px 16px 16px;
  }

  .quick-fix-list li::before {
    top: 16px;
    left: 16px;
  }
}